Commit d7028e7 1 parent 5f944c1 commit d7028e7 Copy full SHA for d7028e7
File tree 8 files changed +16
-7
lines changed
main/java/com/checkout/payments/contexts
8 files changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -9,4 +9,7 @@ public enum PaymentContextsItemsType {
9
9
10
10
@ SerializedName ("digital" )
11
11
DIGITAL ,
12
+
13
+ @ SerializedName ("discount" )
14
+ DISCOUNT ,
12
15
}
Original file line number Diff line number Diff line change @@ -27,8 +27,8 @@ public static class Visa {
27
27
28
28
public static final String NAME = "Mr. Duke" ;
29
29
public static final String NUMBER = "4242424242424242" ;
30
- public static final int EXPIRY_MONTH = 6 ;
31
- public static final int EXPIRY_YEAR = 2025 ;
30
+ public static final int EXPIRY_MONTH = 12 ;
31
+ public static final int EXPIRY_YEAR = 2030 ;
32
32
public static final String CVV = "100" ;
33
33
34
34
}
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ void shouldUpdateCardInstrument() {
86
86
87
87
final UpdateInstrumentCardRequest updateRequest = UpdateInstrumentCardRequest .builder ()
88
88
.expiryMonth (12 )
89
- .expiryYear (2024 )
89
+ .expiryYear (2030 )
90
90
.name ("John Doe" )
91
91
.customer (UpdateCustomerRequest .builder ().id (tokenInstrument .getCustomer ().getId ()).defaultCustomer (true ).build ())
92
92
.accountHolder (AccountHolder .builder ()
@@ -118,7 +118,7 @@ void shouldUpdateCardInstrument() {
118
118
assertNotNull (cardResponse .getId ());
119
119
assertNotNull (cardResponse .getFingerprint ());
120
120
assertEquals (12 , cardResponse .getExpiryMonth ());
121
- assertEquals (2024 , cardResponse .getExpiryYear ());
121
+ assertEquals (2030 , cardResponse .getExpiryYear ());
122
122
assertEquals ("John" , cardResponse .getAccountHolder ().getFirstName ());
123
123
assertEquals ("Doe" , cardResponse .getAccountHolder ().getLastName ());
124
124
assertTrue (cardResponse .getCustomer ().isDefault ());
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ void shouldMakeCardPayoutPayments() {
39
39
.destination (PaymentRequestCardDestination .builder ()
40
40
.number ("5219565036325411" )
41
41
.expiryMonth (12 )
42
- .expiryYear (2024 )
42
+ .expiryYear (2030 )
43
43
.accountHolder (AccountHolder .builder ()
44
44
.type (AccountHolderType .INDIVIDUAL )
45
45
.firstName ("John" )
@@ -61,7 +61,7 @@ void shouldMakeCardPayoutPayments() {
61
61
.type (AccountHolderIdentificationType .PASSPORT )
62
62
.number ("E2341" )
63
63
.issuingCountry (CountryCode .FR )
64
- .dateOfExpiry ("2024 -05-05" )
64
+ .dateOfExpiry ("2030 -05-05" )
65
65
.build ())
66
66
.email ("jonh.smith@checkout.com" )
67
67
.build ())
Original file line number Diff line number Diff line change 3
3
import com .checkout .payments .RefundRequest ;
4
4
import com .checkout .payments .RefundResponse ;
5
5
import com .checkout .payments .previous .response .PaymentResponse ;
6
+ import org .junit .jupiter .api .Disabled ;
6
7
import org .junit .jupiter .api .Test ;
7
8
8
9
import java .util .UUID ;
13
14
class RefundPaymentsTestIT extends AbstractPaymentsTestIT {
14
15
15
16
@ Test
17
+ @ Disabled ("unavailable" )
16
18
void shouldRefundPayment () {
17
19
18
20
final PaymentResponse paymentResponse = makeCardPayment (true , 10 );
@@ -33,6 +35,7 @@ void shouldRefundPayment() {
33
35
}
34
36
35
37
@ Test
38
+ @ Disabled ("unavailable" )
36
39
void shouldRefundPaymentIdempotently () {
37
40
38
41
final PaymentResponse paymentResponse = makeCardPayment (true , 10 );
Original file line number Diff line number Diff line change @@ -179,6 +179,7 @@ void shouldMakeCardVerification() {
179
179
}
180
180
181
181
@ Test
182
+ @ Disabled ("unavailable" )
182
183
void shouldMakeCardPayment_3ds () {
183
184
184
185
final PaymentResponse paymentResponse = make3dsCardPayment (false );
Original file line number Diff line number Diff line change 11
11
import com .checkout .payments .previous .request .PayoutRequest ;
12
12
import com .checkout .payments .previous .request .destination .PaymentRequestCardDestination ;
13
13
import com .checkout .payments .previous .response .PaymentResponse ;
14
+ import org .junit .jupiter .api .Disabled ;
14
15
import org .junit .jupiter .api .Test ;
15
16
16
17
import java .util .HashMap ;
@@ -27,6 +28,7 @@ class RequestPayoutsTestIT extends SandboxTestFixture {
27
28
}
28
29
29
30
@ Test
31
+ @ Disabled ("unavailable" )
30
32
void shouldRequestPayout () throws Exception {
31
33
32
34
final PaymentRequestCardDestination paymentCardDestination = PaymentRequestCardDestination .builder ()
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ void shouldRequestCardToken() {
77
77
when (sdkCredentials .getAuthorization (SdkAuthorizationType .PUBLIC_KEY )).thenReturn (authorization );
78
78
when (configuration .getSdkCredentials ()).thenReturn (sdkCredentials );
79
79
80
- final CardTokenRequest cardTokenRequest = CardTokenRequest .builder ().number ("123" ).expiryMonth (3 ).expiryYear (2024 ).build ();
80
+ final CardTokenRequest cardTokenRequest = CardTokenRequest .builder ().number ("123" ).expiryMonth (3 ).expiryYear (2030 ).build ();
81
81
82
82
tokensClient .requestCardToken (cardTokenRequest );
83
83
You can’t perform that action at this time.
0 commit comments