Class TransferInstrument


  • public class TransferInstrument
    extends Object
    TransferInstrument
    • Constructor Detail

      • TransferInstrument

        public TransferInstrument()
      • TransferInstrument

        public TransferInstrument​(String id)
    • Method Detail

      • getBankAccount

        public BankAccountInfo getBankAccount()
        Get bankAccount
        Returns:
        bankAccount
      • setBankAccount

        public void setBankAccount​(BankAccountInfo bankAccount)
      • getDocumentDetails

        public List<DocumentReference> getDocumentDetails()
        List of documents uploaded for the transfer instrument.
        Returns:
        documentDetails
      • getId

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

        public String getLegalEntityId()
        The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) that owns the transfer instrument.
        Returns:
        legalEntityId
      • setLegalEntityId

        public void setLegalEntityId​(String legalEntityId)
      • getType

        public TransferInstrument.TypeEnum getType()
        The type of transfer instrument. Possible value: **bankAccount**.
        Returns:
        type
      • hashCode

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

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws IOException
        Validates the JSON Object and throws an exception if issues found
        Parameters:
        jsonObj - JSON Object
        Throws:
        IOException - if the JSON Object is invalid with respect to TransferInstrument
      • fromJson

        public static TransferInstrument fromJson​(String jsonString)
                                           throws IOException
        Create an instance of TransferInstrument given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of TransferInstrument
        Throws:
        IOException - if the JSON string is invalid with respect to TransferInstrument
      • toJson

        public String toJson()
        Convert an instance of TransferInstrument to an JSON string
        Returns:
        JSON string