Package com.adyen.model.transferwebhooks
Class CardIdentification
- java.lang.Object
-
- com.adyen.model.transferwebhooks.CardIdentification
-
public class CardIdentification extends Object
CardIdentification
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_EXPIRY_MONTHstatic StringJSON_PROPERTY_EXPIRY_YEARstatic StringJSON_PROPERTY_ISSUE_NUMBERstatic StringJSON_PROPERTY_NUMBERstatic StringJSON_PROPERTY_START_MONTHstatic StringJSON_PROPERTY_START_YEARstatic StringJSON_PROPERTY_STORED_PAYMENT_METHOD_ID
-
Constructor Summary
Constructors Constructor Description CardIdentification()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this CardIdentification object is equal to o.CardIdentificationexpiryMonth(String expiryMonth)The expiry month of the card.CardIdentificationexpiryYear(String expiryYear)The expiry year of the card.static CardIdentificationfromJson(String jsonString)Create an instance of CardIdentification given an JSON stringStringgetExpiryMonth()The expiry month of the card.StringgetExpiryYear()The expiry year of the card.StringgetIssueNumber()The issue number of the card.StringgetNumber()The card number without any separators.StringgetStartMonth()The month when the card was issued.StringgetStartYear()The year when the card was issued.StringgetStoredPaymentMethodId()The unique [token](/payouts/payout-service/pay-out-to-cards/manage-card-information#save-card-details) created to identify the counterparty.inthashCode()CardIdentificationissueNumber(String issueNumber)The issue number of the card.CardIdentificationnumber(String number)The card number without any separators.voidsetExpiryMonth(String expiryMonth)The expiry month of the card.voidsetExpiryYear(String expiryYear)The expiry year of the card.voidsetIssueNumber(String issueNumber)The issue number of the card.voidsetNumber(String number)The card number without any separators.voidsetStartMonth(String startMonth)The month when the card was issued.voidsetStartYear(String startYear)The year when the card was issued.voidsetStoredPaymentMethodId(String storedPaymentMethodId)The unique [token](/payouts/payout-service/pay-out-to-cards/manage-card-information#save-card-details) created to identify the counterparty.CardIdentificationstartMonth(String startMonth)The month when the card was issued.CardIdentificationstartYear(String startYear)The year when the card was issued.CardIdentificationstoredPaymentMethodId(String storedPaymentMethodId)The unique [token](/payouts/payout-service/pay-out-to-cards/manage-card-information#save-card-details) created to identify the counterparty.StringtoJson()Convert an instance of CardIdentification to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_EXPIRY_MONTH
public static final String JSON_PROPERTY_EXPIRY_MONTH
- See Also:
- Constant Field Values
-
JSON_PROPERTY_EXPIRY_YEAR
public static final String JSON_PROPERTY_EXPIRY_YEAR
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ISSUE_NUMBER
public static final String JSON_PROPERTY_ISSUE_NUMBER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NUMBER
public static final String JSON_PROPERTY_NUMBER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_START_MONTH
public static final String JSON_PROPERTY_START_MONTH
- See Also:
- Constant Field Values
-
JSON_PROPERTY_START_YEAR
public static final String JSON_PROPERTY_START_YEAR
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STORED_PAYMENT_METHOD_ID
public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
expiryMonth
public CardIdentification expiryMonth(String expiryMonth)
The expiry month of the card. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November- Parameters:
expiryMonth-- Returns:
- the current
CardIdentificationinstance, allowing for method chaining
-
getExpiryMonth
public String getExpiryMonth()
The expiry month of the card. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November- Returns:
- expiryMonth
-
setExpiryMonth
public void setExpiryMonth(String expiryMonth)
The expiry month of the card. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November- Parameters:
expiryMonth-
-
expiryYear
public CardIdentification expiryYear(String expiryYear)
The expiry year of the card. Format: four digits. For example: 2020- Parameters:
expiryYear-- Returns:
- the current
CardIdentificationinstance, allowing for method chaining
-
getExpiryYear
public String getExpiryYear()
The expiry year of the card. Format: four digits. For example: 2020- Returns:
- expiryYear
-
setExpiryYear
public void setExpiryYear(String expiryYear)
The expiry year of the card. Format: four digits. For example: 2020- Parameters:
expiryYear-
-
issueNumber
public CardIdentification issueNumber(String issueNumber)
The issue number of the card. Applies only to some UK debit cards.- Parameters:
issueNumber-- Returns:
- the current
CardIdentificationinstance, allowing for method chaining
-
getIssueNumber
public String getIssueNumber()
The issue number of the card. Applies only to some UK debit cards.- Returns:
- issueNumber
-
setIssueNumber
public void setIssueNumber(String issueNumber)
The issue number of the card. Applies only to some UK debit cards.- Parameters:
issueNumber-
-
number
public CardIdentification number(String number)
The card number without any separators. For security, the response only includes the last four digits of the card number.- Parameters:
number-- Returns:
- the current
CardIdentificationinstance, allowing for method chaining
-
getNumber
public String getNumber()
The card number without any separators. For security, the response only includes the last four digits of the card number.- Returns:
- number
-
setNumber
public void setNumber(String number)
The card number without any separators. For security, the response only includes the last four digits of the card number.- Parameters:
number-
-
startMonth
public CardIdentification startMonth(String startMonth)
The month when the card was issued. Applies only to some UK debit cards. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November- Parameters:
startMonth-- Returns:
- the current
CardIdentificationinstance, allowing for method chaining
-
getStartMonth
public String getStartMonth()
The month when the card was issued. Applies only to some UK debit cards. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November- Returns:
- startMonth
-
setStartMonth
public void setStartMonth(String startMonth)
The month when the card was issued. Applies only to some UK debit cards. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November- Parameters:
startMonth-
-
startYear
public CardIdentification startYear(String startYear)
The year when the card was issued. Applies only to some UK debit cards. Format: four digits. For example: 2020- Parameters:
startYear-- Returns:
- the current
CardIdentificationinstance, allowing for method chaining
-
getStartYear
public String getStartYear()
The year when the card was issued. Applies only to some UK debit cards. Format: four digits. For example: 2020- Returns:
- startYear
-
setStartYear
public void setStartYear(String startYear)
The year when the card was issued. Applies only to some UK debit cards. Format: four digits. For example: 2020- Parameters:
startYear-
-
storedPaymentMethodId
public CardIdentification storedPaymentMethodId(String storedPaymentMethodId)
The unique [token](/payouts/payout-service/pay-out-to-cards/manage-card-information#save-card-details) created to identify the counterparty.- Parameters:
storedPaymentMethodId-- Returns:
- the current
CardIdentificationinstance, allowing for method chaining
-
getStoredPaymentMethodId
public String getStoredPaymentMethodId()
The unique [token](/payouts/payout-service/pay-out-to-cards/manage-card-information#save-card-details) created to identify the counterparty.- Returns:
- storedPaymentMethodId
-
setStoredPaymentMethodId
public void setStoredPaymentMethodId(String storedPaymentMethodId)
The unique [token](/payouts/payout-service/pay-out-to-cards/manage-card-information#save-card-details) created to identify the counterparty.- Parameters:
storedPaymentMethodId-
-
equals
public boolean equals(Object o)
Return true if this CardIdentification object is equal to o.
-
fromJson
public static CardIdentification fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of CardIdentification given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CardIdentification
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to CardIdentification
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of CardIdentification to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-