Class Card


  • public class Card
    extends Object
    Card
    • Constructor Detail

      • Card

        public Card()
    • Method Detail

      • expiryMonth

        public Card expiryMonth​(String expiryMonth)
      • 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)
      • expiryYear

        public Card expiryYear​(String expiryYear)
      • 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)
      • holderName

        public Card holderName​(String holderName)
      • getHolderName

        public String getHolderName()
        the cardholder name as printed on the card
        Returns:
        holderName
      • setHolderName

        public void setHolderName​(String holderName)
      • issueNumber

        public Card issueNumber​(String issueNumber)
      • 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)
      • startMonth

        public Card startMonth​(String startMonth)
      • 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)
      • startYear

        public Card startYear​(String startYear)
      • 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)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object