Class CardDetailsResponse
- java.lang.Object
-
- com.checkout.HttpMetadata
-
- com.checkout.common.Resource
-
- com.checkout.issuing.cards.responses.CardDetailsResponse
-
- Direct Known Subclasses:
PhysicalCardDetailsResponse,VirtualCardDetailsResponse
public abstract class CardDetailsResponse extends Resource
-
-
Field Summary
Fields Modifier and Type Field Description protected CurrencybillingCurrencyprotected java.lang.StringcardholderIdprotected java.lang.StringcardProductIdprotected java.lang.StringclientIdprotected java.time.InstantcreatedDateprotected java.lang.StringdisplayNameprotected java.lang.IntegerexpiryMonthprotected java.lang.IntegerexpiryYearprotected java.lang.Stringidprotected CountryCodeissuingCountryprotected java.lang.StringlastFourprotected java.time.InstantlastModifiedDateprotected java.lang.Stringreferenceprotected CardStatusstatusprotected CardTypetype
-
Constructor Summary
Constructors Modifier Constructor Description protectedCardDetailsResponse(CardType type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)CurrencygetBillingCurrency()java.lang.StringgetCardholderId()java.lang.StringgetCardProductId()java.lang.StringgetClientId()java.time.InstantgetCreatedDate()java.lang.StringgetDisplayName()java.lang.IntegergetExpiryMonth()java.lang.IntegergetExpiryYear()java.lang.StringgetId()CountryCodegetIssuingCountry()java.lang.StringgetLastFour()java.time.InstantgetLastModifiedDate()java.lang.StringgetReference()CardStatusgetStatus()CardTypegetType()inthashCode()voidsetBillingCurrency(Currency billingCurrency)voidsetCardholderId(java.lang.String cardholderId)voidsetCardProductId(java.lang.String cardProductId)voidsetClientId(java.lang.String clientId)voidsetCreatedDate(java.time.Instant createdDate)voidsetDisplayName(java.lang.String displayName)voidsetExpiryMonth(java.lang.Integer expiryMonth)voidsetExpiryYear(java.lang.Integer expiryYear)voidsetId(java.lang.String id)voidsetIssuingCountry(CountryCode issuingCountry)voidsetLastFour(java.lang.String lastFour)voidsetLastModifiedDate(java.time.Instant lastModifiedDate)voidsetReference(java.lang.String reference)voidsetStatus(CardStatus status)java.lang.StringtoString()-
Methods inherited from class com.checkout.common.Resource
getLink, getLinks, getSelfLink, setLinks
-
Methods inherited from class com.checkout.HttpMetadata
getBody, getHttpStatusCode, getRequestId, getResponseHeaders, setBody, setHttpStatusCode, setResponseHeaders
-
-
-
-
Field Detail
-
type
protected final CardType type
-
id
protected java.lang.String id
-
cardholderId
@SerializedName("cardholder_id") protected java.lang.String cardholderId
-
cardProductId
@SerializedName("card_product_id") protected java.lang.String cardProductId
-
clientId
@SerializedName("client_id") protected java.lang.String clientId
-
lastFour
@SerializedName("last_four") protected java.lang.String lastFour
-
expiryMonth
@SerializedName("expiry_month") protected java.lang.Integer expiryMonth
-
expiryYear
@SerializedName("expiry_year") protected java.lang.Integer expiryYear
-
status
protected CardStatus status
-
displayName
@SerializedName("display_name") protected java.lang.String displayName
-
billingCurrency
@SerializedName("billing_currency") protected Currency billingCurrency
-
issuingCountry
@SerializedName("issuing_country") protected CountryCode issuingCountry
-
reference
protected java.lang.String reference
-
createdDate
@SerializedName("created_date") protected java.time.Instant createdDate
-
lastModifiedDate
@SerializedName("last_modified_date") protected java.time.Instant lastModifiedDate
-
-
Constructor Detail
-
CardDetailsResponse
protected CardDetailsResponse(CardType type)
-
-
Method Detail
-
getType
public CardType getType()
-
getId
public java.lang.String getId()
-
getCardholderId
public java.lang.String getCardholderId()
-
getCardProductId
public java.lang.String getCardProductId()
-
getClientId
public java.lang.String getClientId()
-
getLastFour
public java.lang.String getLastFour()
-
getExpiryMonth
public java.lang.Integer getExpiryMonth()
-
getExpiryYear
public java.lang.Integer getExpiryYear()
-
getStatus
public CardStatus getStatus()
-
getDisplayName
public java.lang.String getDisplayName()
-
getBillingCurrency
public Currency getBillingCurrency()
-
getIssuingCountry
public CountryCode getIssuingCountry()
-
getReference
public java.lang.String getReference()
-
getCreatedDate
public java.time.Instant getCreatedDate()
-
getLastModifiedDate
public java.time.Instant getLastModifiedDate()
-
setId
public void setId(java.lang.String id)
-
setCardholderId
public void setCardholderId(java.lang.String cardholderId)
-
setCardProductId
public void setCardProductId(java.lang.String cardProductId)
-
setClientId
public void setClientId(java.lang.String clientId)
-
setLastFour
public void setLastFour(java.lang.String lastFour)
-
setExpiryMonth
public void setExpiryMonth(java.lang.Integer expiryMonth)
-
setExpiryYear
public void setExpiryYear(java.lang.Integer expiryYear)
-
setStatus
public void setStatus(CardStatus status)
-
setDisplayName
public void setDisplayName(java.lang.String displayName)
-
setBillingCurrency
public void setBillingCurrency(Currency billingCurrency)
-
setIssuingCountry
public void setIssuingCountry(CountryCode issuingCountry)
-
setReference
public void setReference(java.lang.String reference)
-
setCreatedDate
public void setCreatedDate(java.time.Instant createdDate)
-
setLastModifiedDate
public void setLastModifiedDate(java.time.Instant lastModifiedDate)
-
-