Package com.adyen.model
Class Card
- java.lang.Object
-
- com.adyen.model.Card
-
public class Card extends Object
Card
-
-
Constructor Summary
Constructors Constructor Description Card()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Cardcvc(String cvc)booleanequals(Object o)CardexpiryMonth(String expiryMonth)CardexpiryYear(String expiryYear)StringgetCvc()the card security code which, depending on card brand, is referred to as CVV2/CVC2 (three digits) or CID (4 digits)StringgetExpiryMonth()the month component of the expiry date (may be left padded with 0 for single digits)StringgetExpiryYear()the year component of the expiry dateStringgetHolderName()the cardholder name as printed on the cardStringgetIssueNumber()for some UK debit cards only the issue number of the cardStringgetNumber()the card number (without separators)StringgetStartMonth()for some UK debit cards only the month component of the start dateStringgetStartYear()for some UK debit cards only the year component of the start dateinthashCode()CardholderName(String holderName)CardissueNumber(String issueNumber)Cardnumber(String number)voidsetCvc(String cvc)voidsetExpiryMonth(String expiryMonth)voidsetExpiryYear(String expiryYear)voidsetHolderName(String holderName)voidsetIssueNumber(String issueNumber)voidsetNumber(String number)voidsetStartMonth(String startMonth)voidsetStartYear(String startYear)CardstartMonth(String startMonth)CardstartYear(String startYear)StringtoString()
-
-
-
Method Detail
-
getExpiryMonth
public String getExpiryMonth()
the month component of the expiry date (may be left padded with 0 for single digits)- Returns:
- expiryMonth
-
setExpiryMonth
public void setExpiryMonth(String expiryMonth)
-
getExpiryYear
public String getExpiryYear()
the year component of the expiry date- Returns:
- expiryYear
-
setExpiryYear
public void setExpiryYear(String expiryYear)
-
getCvc
public String getCvc()
the card security code which, depending on card brand, is referred to as CVV2/CVC2 (three digits) or CID (4 digits)- Returns:
- cvc
-
setCvc
public void setCvc(String cvc)
-
getHolderName
public String getHolderName()
the cardholder name as printed on the card- Returns:
- holderName
-
setHolderName
public void setHolderName(String holderName)
-
getIssueNumber
public String getIssueNumber()
for some UK debit cards only the issue number of the card- Returns:
- issueNumber
-
setIssueNumber
public void setIssueNumber(String issueNumber)
-
getNumber
public String getNumber()
the card number (without separators)- Returns:
- number
-
setNumber
public void setNumber(String number)
-
getStartMonth
public String getStartMonth()
for some UK debit cards only the month component of the start date- Returns:
- startMonth
-
setStartMonth
public void setStartMonth(String startMonth)
-
getStartYear
public String getStartYear()
for some UK debit cards only the year component of the start date- Returns:
- startYear
-
setStartYear
public void setStartYear(String startYear)
-
-