File tree Expand file tree Collapse file tree 4 files changed +10
-15
lines changed
test/java/net/authorize/cim/functional_test Expand file tree Collapse file tree 4 files changed +10
-15
lines changed Original file line number Diff line number Diff line change @@ -319,7 +319,7 @@ else if (bank_account != null) {
319
319
320
320
if (bank_account .getBankAccountType () != null ) {
321
321
Element account_type_el = document .createElement (AuthNetField .ELEMENT_ACCOUNT_TYPE .getFieldName ());
322
- account_type_el .appendChild (document .getDocument ().createTextNode (bank_account .getBankAccountType ().getValue2 ()));
322
+ account_type_el .appendChild (document .getDocument ().createTextNode (bank_account .getBankAccountType ().getValue ()));
323
323
bankacct_el .appendChild (account_type_el );
324
324
}
325
325
Original file line number Diff line number Diff line change @@ -343,7 +343,7 @@ else if (bank_account != null) {
343
343
344
344
if (bank_account .getBankAccountType () != null ) {
345
345
Element account_type_el = document .createElement (AuthNetField .ELEMENT_ACCOUNT_TYPE .getFieldName ());
346
- account_type_el .appendChild (document .getDocument ().createTextNode (bank_account .getBankAccountType ().getValue2 ()));
346
+ account_type_el .appendChild (document .getDocument ().createTextNode (bank_account .getBankAccountType ().getValue ()));
347
347
bankacct_el .appendChild (account_type_el );
348
348
}
349
349
Original file line number Diff line number Diff line change 7
7
*
8
8
*/
9
9
public enum BankAccountType implements Serializable {
10
- CHECKING ("CHECKING" , "checking " ),
11
- BUSINESSCHECKING ("BUSINESSCHECKING " ,"businessChecking " ),
12
- SAVINGS ("SAVINGS " ,"savings " ),
13
- UNKNOWN ("UNKNOWN " ,"unknown " );
10
+ CHECKING ("checking" , "CHECKING " ),
11
+ BUSINESSCHECKING ("businessChecking " ,"BUSINESSCHECKING " ),
12
+ SAVINGS ("savings " ,"SAVINGS " ),
13
+ UNKNOWN ("unknown " ,"UNKNOWN " );
14
14
15
15
private final String value ;
16
16
private final String value2 ;
@@ -38,11 +38,6 @@ public String getValue() {
38
38
return value ;
39
39
}
40
40
41
- /**
42
- * @return the value2
43
- */
44
- public String getValue2 () {
45
- return value2 ;
46
- }
41
+
47
42
48
43
}
Original file line number Diff line number Diff line change @@ -75,10 +75,10 @@ public void setUp() throws Exception {
75
75
bankAccount = BankAccount .createBankAccount ();
76
76
bankAccount .setBankAccountName (bankAccountName );
77
77
bankAccount .setBankAccountNumber (bankAccountNumber );
78
- bankAccount .setBankAccountType (BankAccountType .CHECKING );
78
+ bankAccount .setBankAccountType (BankAccountType .BUSINESSCHECKING );
79
79
bankAccount .setBankName (bankName );
80
80
bankAccount .setRoutingNumber (routingNumber );
81
- bankAccount .setECheckType (ECheckType .WEB );
81
+ bankAccount .setECheckType (ECheckType .CCD );
82
82
83
83
// Create a billing info
84
84
//
@@ -683,7 +683,7 @@ public void testUpdateCustomerPaymentProfileRequest() {
683
683
ArrayList <Payment > pl = paymentProfileCC .getPaymentList ();
684
684
Payment p = pl .get (0 );
685
685
if (p .getCreditCard ()!=null )
686
- {p .getCreditCard ().setExpirationDate ("XXXX" );}
686
+ {p .getCreditCard ().setExpirationDate (CreditCard . MASKED_EXPIRY_DATE );}
687
687
transaction .setValidationMode (ValidationModeType .TEST_MODE );
688
688
689
689
Result <Transaction > result = (Result <Transaction >) merchant
You can’t perform that action at this time.
0 commit comments