Skip to content

Commit 23bff6b

Browse files
committed
Deprecate old model code of Java SDK
1 parent 89aaf18 commit 23bff6b

88 files changed

Lines changed: 827 additions & 9 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/main/java/net/authorize/AuthNetField.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,16 @@
22

33
/**
44
* Enumeration to handle all the x_ field names and xml element names
5+
*
6+
* @deprecated since version 1.9.8
7+
* @deprecated We have reorganized and simplified the Authorize.Net API to ease integration and to focus on merchants' needs.
8+
* @deprecated We have deprecated AIM, ARB, CIM, and Reporting as separate options, in favor of AuthorizeNet::API.
9+
* @deprecated We have also deprecated SIM as a separate option, in favor of Accept Hosted. See https://developer.authorize.net/api/reference/features/accept_hosted.html for details on Accept Hosted.
10+
* @deprecated For details on AIM, see https://github.com/AuthorizeNet/sample-code-php/tree/master/PaymentTransactions.
11+
* @deprecated For details on the deprecation and replacement of legacy Authorize.Net methods, visit https://developer.authorize.net/api/upgrade_guide/.
12+
*
513
*/
14+
@Deprecated
615
public enum AuthNetField {
716
ELEMENT__ACCOUNT_NUMBER("AccountNumber"),
817
ELEMENT__ACCOUNT_TYPE("AccountType"),

src/main/java/net/authorize/Merchant.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,15 @@
1515
* The Merchant is also responsible for creating transactions and
1616
* posting them to the gateway are performed through the Merchant.
1717
*
18+
* @deprecated since version 1.9.8
19+
* @deprecated We have reorganized and simplified the Authorize.Net API to ease integration and to focus on merchants' needs.
20+
* @deprecated We have deprecated AIM, ARB, CIM, and Reporting as separate options, in favor of AuthorizeNet::API.
21+
* @deprecated We have also deprecated SIM as a separate option, in favor of Accept Hosted. See https://developer.authorize.net/api/reference/features/accept_hosted.html for details on Accept Hosted.
22+
* @deprecated For details on AIM, see https://github.com/AuthorizeNet/sample-code-php/tree/master/PaymentTransactions.
23+
* @deprecated For details on the deprecation and replacement of legacy Authorize.Net methods, visit https://developer.authorize.net/api/upgrade_guide/.
24+
*
1825
*/
26+
@Deprecated
1927
public class Merchant implements Serializable {
2028

2129
/**
@@ -203,6 +211,7 @@ public void setUserRef(String userRef) {
203211
*
204212
* @return A newly created Transaction will be returned.
205213
*/
214+
@Deprecated
206215
public net.authorize.aim.Transaction createAIMTransaction(TransactionType transactionType,
207216
BigDecimal amount) {
208217
return net.authorize.aim.Transaction.createTransaction(this, transactionType, amount);
@@ -217,6 +226,7 @@ public net.authorize.aim.Transaction createAIMTransaction(TransactionType transa
217226
*
218227
* @return A newly created Transaction will be returned.
219228
*/
229+
@Deprecated
220230
public net.authorize.sim.Transaction createSIMTransaction(TransactionType transactionType,
221231
long fingerPrintSequence, BigDecimal amount) {
222232

@@ -231,6 +241,7 @@ public net.authorize.sim.Transaction createSIMTransaction(TransactionType transa
231241
*
232242
* @return A newly created Transaction will be returned.
233243
*/
244+
@Deprecated
234245
public net.authorize.arb.Transaction createARBTransaction(net.authorize.arb.TransactionType transactionType, Subscription subscription) {
235246

236247
return net.authorize.arb.Transaction.createTransaction(this, transactionType, subscription);
@@ -243,6 +254,7 @@ public net.authorize.arb.Transaction createARBTransaction(net.authorize.arb.Tran
243254
*
244255
* @return A newly created Transaction will be returned.
245256
*/
257+
@Deprecated
246258
public net.authorize.cim.Transaction createCIMTransaction(net.authorize.cim.TransactionType transactionType) {
247259

248260
return net.authorize.cim.Transaction.createTransaction(this, transactionType);
@@ -255,6 +267,7 @@ public net.authorize.cim.Transaction createCIMTransaction(net.authorize.cim.Tran
255267
*
256268
* @return A newly created Transaction will be returned.
257269
*/
270+
@Deprecated
258271
public net.authorize.reporting.Transaction createReportingTransaction(net.authorize.reporting.TransactionType transactionType) {
259272

260273
return net.authorize.reporting.Transaction.createTransaction(this, transactionType);
@@ -268,6 +281,7 @@ public net.authorize.reporting.Transaction createReportingTransaction(net.author
268281
* @return Result is returned with each post.
269282
*
270283
*/
284+
@Deprecated
271285
public net.authorize.Result<?> postTransaction(Transaction transaction) {
272286

273287
Result<Transaction> result = null;

src/main/java/net/authorize/PaymentMethod.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,16 @@
33
/**
44
* The method of payment for the transaction.
55
* CC (credit card) or ECHECK (electronic check).
6+
*
7+
* @deprecated since version 1.9.8
8+
* @deprecated We have reorganized and simplified the Authorize.Net API to ease integration and to focus on merchants' needs.
9+
* @deprecated We have deprecated AIM, ARB, CIM, and Reporting as separate options, in favor of AuthorizeNet::API.
10+
* @deprecated We have also deprecated SIM as a separate option, in favor of Accept Hosted. See https://developer.authorize.net/api/reference/features/accept_hosted.html for details on Accept Hosted.
11+
* @deprecated For details on AIM, see https://github.com/AuthorizeNet/sample-code-php/tree/master/PaymentTransactions.
12+
* @deprecated For details on the deprecation and replacement of legacy Authorize.Net methods, visit https://developer.authorize.net/api/upgrade_guide/.
13+
*
614
*/
15+
@Deprecated
716
public enum PaymentMethod {
817
CREDIT_CARD("CC"),
918
E_CHECK("ECHECK"),

src/main/java/net/authorize/ResponseCode.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,15 @@
66
* Response code indicates the overall status of the transaction
77
* with possible values of approved, declined, error, or held for review.
88
*
9+
* @deprecated since version 1.9.8
10+
* @deprecated We have reorganized and simplified the Authorize.Net API to ease integration and to focus on merchants' needs.
11+
* @deprecated We have deprecated AIM, ARB, CIM, and Reporting as separate options, in favor of AuthorizeNet::API.
12+
* @deprecated We have also deprecated SIM as a separate option, in favor of Accept Hosted. See https://developer.authorize.net/api/reference/features/accept_hosted.html for details on Accept Hosted.
13+
* @deprecated For details on AIM, see https://github.com/AuthorizeNet/sample-code-php/tree/master/PaymentTransactions.
14+
* @deprecated For details on the deprecation and replacement of legacy Authorize.Net methods, visit https://developer.authorize.net/api/upgrade_guide/.
15+
*
916
*/
17+
@Deprecated
1018
public enum ResponseCode {
1119
APPROVED(1, "This transaction has been approved."),
1220
DECLINED(2, "This transaction has been declined"),

src/main/java/net/authorize/ResponseField.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,16 @@
1010
*
1111
* This enum is leveraged across all the integrations of
1212
* AIM,SIM,DPM,ARB and CIM.
13+
*
14+
* @deprecated since version 1.9.8
15+
* @deprecated We have reorganized and simplified the Authorize.Net API to ease integration and to focus on merchants' needs.
16+
* @deprecated We have deprecated AIM, ARB, CIM, and Reporting as separate options, in favor of AuthorizeNet::API.
17+
* @deprecated We have also deprecated SIM as a separate option, in favor of Accept Hosted. See https://developer.authorize.net/api/reference/features/accept_hosted.html for details on Accept Hosted.
18+
* @deprecated For details on AIM, see https://github.com/AuthorizeNet/sample-code-php/tree/master/PaymentTransactions.
19+
* @deprecated For details on the deprecation and replacement of legacy Authorize.Net methods, visit https://developer.authorize.net/api/upgrade_guide/.
1320
*
1421
*/
22+
@Deprecated
1523
public enum ResponseField {
1624
RESPONSE_CODE(AuthNetField.X_RESPONSE_CODE.getFieldName()),
1725
RESPONSE_SUBCODE(null),

src/main/java/net/authorize/ResponseReasonCode.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,15 @@
66
/**
77
* Response Reason Code is a numeric representation of a more specific reason for the transaction status.
88
*
9+
* @deprecated since version 1.9.8
10+
* @deprecated We have reorganized and simplified the Authorize.Net API to ease integration and to focus on merchants' needs.
11+
* @deprecated We have deprecated AIM, ARB, CIM, and Reporting as separate options, in favor of AuthorizeNet::API.
12+
* @deprecated We have also deprecated SIM as a separate option, in favor of Accept Hosted. See https://developer.authorize.net/api/reference/features/accept_hosted.html for details on Accept Hosted.
13+
* @deprecated For details on AIM, see https://github.com/AuthorizeNet/sample-code-php/tree/master/PaymentTransactions.
14+
* @deprecated For details on the deprecation and replacement of legacy Authorize.Net methods, visit https://developer.authorize.net/api/upgrade_guide/.
15+
*
916
*/
17+
@Deprecated
1018
public enum ResponseReasonCode {
1119

1220
RRC_1_1(ResponseCode.APPROVED, 1,"This transaction has been approved.", ""),

src/main/java/net/authorize/Result.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@
55
import java.security.MessageDigest;
66
import java.security.NoSuchAlgorithmException;
77

8+
/**
9+
*
10+
* @deprecated since version 1.9.8
11+
* @deprecated We have reorganized and simplified the Authorize.Net API to ease integration and to focus on merchants' needs.
12+
* @deprecated We have deprecated AIM, ARB, CIM, and Reporting as separate options, in favor of AuthorizeNet::API.
13+
* @deprecated We have also deprecated SIM as a separate option, in favor of Accept Hosted. See https://developer.authorize.net/api/reference/features/accept_hosted.html for details on Accept Hosted.
14+
* @deprecated For details on AIM, see https://github.com/AuthorizeNet/sample-code-php/tree/master/PaymentTransactions.
15+
* @deprecated For details on the deprecation and replacement of legacy Authorize.Net methods, visit https://developer.authorize.net/api/upgrade_guide/.
16+
*/
17+
@Deprecated
818
public abstract class Result<T> implements Serializable {
919

1020
private static final long serialVersionUID = 1L;

src/main/java/net/authorize/Transaction.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@
77

88
import org.w3c.dom.Node;
99

10+
/**
11+
*
12+
* @deprecated since version 1.9.8
13+
* @deprecated We have reorganized and simplified the Authorize.Net API to ease integration and to focus on merchants' needs.
14+
* @deprecated We have deprecated AIM, ARB, CIM, and Reporting as separate options, in favor of AuthorizeNet::API.
15+
* @deprecated We have also deprecated SIM as a separate option, in favor of Accept Hosted. See https://developer.authorize.net/api/reference/features/accept_hosted.html for details on Accept Hosted.
16+
* @deprecated For details on AIM, see https://github.com/AuthorizeNet/sample-code-php/tree/master/PaymentTransactions.
17+
* @deprecated For details on the deprecation and replacement of legacy Authorize.Net methods, visit https://developer.authorize.net/api/upgrade_guide/.
18+
*/
19+
@Deprecated
1020
public abstract class Transaction implements Serializable{
1121

1222
private static final long serialVersionUID = 1L;

src/main/java/net/authorize/TransactionType.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,15 @@
33
/**
44
* The credit card transaction types supported by the payment gateway.
55
*
6+
* @deprecated since version 1.9.8
7+
* @deprecated We have reorganized and simplified the Authorize.Net API to ease integration and to focus on merchants' needs.
8+
* @deprecated We have deprecated AIM, ARB, CIM, and Reporting as separate options, in favor of AuthorizeNet::API.
9+
* @deprecated We have also deprecated SIM as a separate option, in favor of Accept Hosted. See https://developer.authorize.net/api/reference/features/accept_hosted.html for details on Accept Hosted.
10+
* @deprecated For details on AIM, see https://github.com/AuthorizeNet/sample-code-php/tree/master/PaymentTransactions.
11+
* @deprecated For details on the deprecation and replacement of legacy Authorize.Net methods, visit https://developer.authorize.net/api/upgrade_guide/.
12+
*
613
*/
14+
@Deprecated
715
public enum TransactionType {
816
AUTH_CAPTURE("AUTH_CAPTURE", "profileTransAuthCapture"),
917
AUTH_ONLY("AUTH_ONLY", "profileTransAuthOnly"),

src/main/java/net/authorize/aim/Result.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,15 @@
99
/**
1010
* Templated wrapper container for passing back the result from the request gateway.
1111
*
12+
* @deprecated since version 1.9.8
13+
* @deprecated We have reorganized and simplified the Authorize.Net API to ease integration and to focus on merchants' needs.
14+
* @deprecated We have deprecated AIM, ARB, CIM, and Reporting as separate options, in favor of AuthorizeNet::API.
15+
* @deprecated We have also deprecated SIM as a separate option, in favor of Accept Hosted. See https://developer.authorize.net/api/reference/features/accept_hosted.html for details on Accept Hosted.
16+
* @deprecated For details on AIM, see https://github.com/AuthorizeNet/sample-code-php/tree/master/PaymentTransactions.
17+
* @deprecated For details on the deprecation and replacement of legacy Authorize.Net methods, visit https://developer.authorize.net/api/upgrade_guide/.
18+
*
1219
*/
20+
@Deprecated
1321
public class Result<T> extends net.authorize.Result<T> {
1422

1523
private static final long serialVersionUID = 1L;

0 commit comments

Comments
 (0)