Class CardIdentification


  • public class CardIdentification
    extends Object
    CardIdentification
    • Constructor Detail

      • CardIdentification

        public CardIdentification()
    • 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 CardIdentification instance, 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 CardIdentification instance, 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 CardIdentification instance, 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 CardIdentification instance, 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 CardIdentification instance, 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 CardIdentification instance, 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 CardIdentification instance, 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.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • 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