Class PaymentInstrument


  • public class PaymentInstrument
    extends Object
    PaymentInstrument
    • Constructor Detail

      • PaymentInstrument

        public PaymentInstrument()
    • Method Detail

      • getBalanceAccountId

        public String getBalanceAccountId()
        The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument.
        Returns:
        balanceAccountId
      • setBalanceAccountId

        public void setBalanceAccountId​(String balanceAccountId)
      • getCard

        public Card getCard()
        Get card
        Returns:
        card
      • setCard

        public void setCard​(Card card)
      • getDescription

        public String getDescription()
        Your description for the payment instrument, maximum 300 characters.
        Returns:
        description
      • setDescription

        public void setDescription​(String description)
      • getId

        public String getId()
        The unique identifier of the payment instrument.
        Returns:
        id
      • setId

        public void setId​(String id)
      • getIssuingCountryCode

        public String getIssuingCountryCode()
        The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**.
        Returns:
        issuingCountryCode
      • setIssuingCountryCode

        public void setIssuingCountryCode​(String issuingCountryCode)
      • paymentInstrumentGroupId

        public PaymentInstrument paymentInstrumentGroupId​(String paymentInstrumentGroupId)
      • getPaymentInstrumentGroupId

        public String getPaymentInstrumentGroupId()
        The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs.
        Returns:
        paymentInstrumentGroupId
      • setPaymentInstrumentGroupId

        public void setPaymentInstrumentGroupId​(String paymentInstrumentGroupId)
      • getReference

        public String getReference()
        Your reference for the payment instrument, maximum 150 characters.
        Returns:
        reference
      • setReference

        public void setReference​(String reference)
      • getStatus

        public PaymentInstrument.StatusEnum getStatus()
        The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **Active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **Requested**. Possible values: * **Active**: The payment instrument is active and can be used to make payments. * **Requested**: The payment instrument has been requested. This state is applicable for physical cards. * **Inactive**: The payment instrument is inactive and cannot be used to make payments. * **Suspended**: The payment instrument is temporarily suspended and cannot be used to make payments. * **Closed**: The payment instrument is permanently closed. This action cannot be undone. * **Stolen** * **Lost**
        Returns:
        status
      • getType

        public PaymentInstrument.TypeEnum getType()
        Type of payment instrument. Possible value: **card**, **bankAccount**.
        Returns:
        type
      • equals

        public boolean equals​(Object o)
        Return true if this PaymentInstrument object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • fromJson

        public static PaymentInstrument fromJson​(String jsonString)
                                          throws com.fasterxml.jackson.core.JsonProcessingException
        Create an instance of PaymentInstrument given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of PaymentInstrument
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - if the JSON string is invalid with respect to PaymentInstrument
      • toJson

        public String toJson()
                      throws com.fasterxml.jackson.core.JsonProcessingException
        Convert an instance of PaymentInstrument to an JSON string
        Returns:
        JSON string
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException