-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add network_token destination request. Fix challenge indicator and ex…
…emption (#447)
- Loading branch information
1 parent
002807a
commit cc36679
Showing
4 changed files
with
79 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 59 additions & 0 deletions
59
...java/com/checkout/payments/request/destination/PaymentRequestNetworkTokenDestination.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
package com.checkout.payments.request.destination; | ||
|
||
import com.checkout.common.AccountHolder; | ||
import com.checkout.payments.NetworkTokenType; | ||
import com.checkout.payments.PaymentDestinationType; | ||
import com.google.gson.annotations.SerializedName; | ||
import lombok.Builder; | ||
import lombok.EqualsAndHashCode; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
import lombok.ToString; | ||
|
||
@Getter | ||
@Setter | ||
@EqualsAndHashCode(callSuper = true) | ||
@ToString(callSuper = true) | ||
public final class PaymentRequestNetworkTokenDestination extends PaymentRequestDestination { | ||
|
||
private String token; | ||
|
||
@SerializedName("expiry_month") | ||
private Integer expiryMonth; | ||
|
||
@SerializedName("expiry_year") | ||
private Integer expiryYear; | ||
|
||
@SerializedName("token_type") | ||
private NetworkTokenType tokenType; | ||
|
||
private String cryptogram; | ||
|
||
private String eci; | ||
|
||
@SerializedName("account_holder") | ||
private AccountHolder accountHolder; | ||
|
||
@Builder | ||
private PaymentRequestNetworkTokenDestination(final String token, | ||
final Integer expiryMonth, | ||
final Integer expiryYear, | ||
final NetworkTokenType tokenType, | ||
final String cryptogram, | ||
final String eci, | ||
final AccountHolder accountHolder) { | ||
super(PaymentDestinationType.NETWORK_TOKEN); | ||
this.token = token; | ||
this.expiryMonth = expiryMonth; | ||
this.expiryYear = expiryYear; | ||
this.tokenType = tokenType; | ||
this.cryptogram = cryptogram; | ||
this.eci = eci; | ||
this.accountHolder = accountHolder; | ||
} | ||
|
||
public PaymentRequestNetworkTokenDestination() { | ||
super(PaymentDestinationType.NETWORK_TOKEN); | ||
} | ||
|
||
} |