Package io.trippay.sdk.payment.model
Class VirtualCreditCard
java.lang.Object
io.trippay.sdk.payment.model.VirtualCreditCard
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2023-04-12T17:32:17.983408277+07:00[Asia/Bangkok]")
public class VirtualCreditCard
extends Object
Merchants can choose to be paid using a VCC. That VCC record is stored here.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe reason why the card was canceled.static enumWhether authorizations can be approved on this card.static enumThe type of the card. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncancellationReason(VirtualCreditCard.CancellationReasonEnum cancellationReason) cardholder(Cardholder cardholder) booleanexpirationMonth(Integer expirationMonth) expirationYear(Integer expirationYear) @NotNull StringgetBrand()The brand of the card.The reason why the card was canceled.@NotNull @Valid CardholderGet cardholder@NotNull @Min(1L) IntegerThe expiration month of the card.@NotNull @Min(2023L) IntegerThe expiration month of the card.@NotNull StringUnique VCC ID from Issuer.@NotNull StringgetLast4()The last 4 digits of the card number.@NotNull VirtualCreditCard.StatusEnumWhether authorizations can be approved on this card.@NotNull VirtualCreditCard.TypeEnumgetType()The type of the card.inthashCode()identifier(String identifier) voidvoidsetCancellationReason(VirtualCreditCard.CancellationReasonEnum cancellationReason) voidsetCardholder(Cardholder cardholder) voidsetExpirationMonth(Integer expirationMonth) voidsetExpirationYear(Integer expirationYear) voidsetIdentifier(String identifier) voidvoidvoidstatus(VirtualCreditCard.StatusEnum status) toString()
-
Field Details
-
JSON_PROPERTY_IDENTIFIER
- See Also:
-
JSON_PROPERTY_CARDHOLDER
- See Also:
-
JSON_PROPERTY_EXPIRATION_MONTH
- See Also:
-
JSON_PROPERTY_EXPIRATION_YEAR
- See Also:
-
JSON_PROPERTY_LAST4
- See Also:
-
JSON_PROPERTY_BRAND
- See Also:
-
JSON_PROPERTY_STATUS
- See Also:
-
JSON_PROPERTY_TYPE
- See Also:
-
JSON_PROPERTY_CANCELLATION_REASON
- See Also:
-
-
Constructor Details
-
VirtualCreditCard
public VirtualCreditCard()
-
-
Method Details
-
identifier
-
getIdentifier
Unique VCC ID from Issuer.- Returns:
- identifier
-
setIdentifier
-
cardholder
-
getCardholder
Get cardholder- Returns:
- cardholder
-
setCardholder
-
expirationMonth
-
getExpirationMonth
The expiration month of the card. minimum: 1- Returns:
- expirationMonth
-
setExpirationMonth
-
expirationYear
-
getExpirationYear
The expiration month of the card. minimum: 2023- Returns:
- expirationYear
-
setExpirationYear
-
last4
-
getLast4
The last 4 digits of the card number.- Returns:
- last4
-
setLast4
-
brand
-
getBrand
The brand of the card.- Returns:
- brand
-
setBrand
-
status
-
getStatus
Whether authorizations can be approved on this card. May be blocked from activating cards depending on past-due Cardholder requirements. Defaults to inactive.- Returns:
- status
-
setStatus
-
type
-
getType
The type of the card.- Returns:
- type
-
setType
-
cancellationReason
public VirtualCreditCard cancellationReason(VirtualCreditCard.CancellationReasonEnum cancellationReason) -
getCancellationReason
The reason why the card was canceled.- Returns:
- cancellationReason
-
setCancellationReason
-
equals
-
hashCode
public int hashCode() -
toString
-