Class TransferInstrument


  • public class TransferInstrument
    extends Object
    TransferInstrument
    • Constructor Detail

      • TransferInstrument

        public TransferInstrument()
      • TransferInstrument

        public TransferInstrument​(String id)
    • Method Detail

      • bankAccount

        public TransferInstrument bankAccount​(BankAccountInfo bankAccount)
        bankAccount
        Parameters:
        bankAccount -
        Returns:
        the current TransferInstrument instance, allowing for method chaining
      • getBankAccount

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

        public void setBankAccount​(BankAccountInfo bankAccount)
        bankAccount
        Parameters:
        bankAccount -
      • capabilities

        public TransferInstrument capabilities​(Map<String,​SupportingEntityCapability> capabilities)
        List of capabilities for this transfer instrument.
        Parameters:
        capabilities - List of capabilities for this transfer instrument.
        Returns:
        the current TransferInstrument instance, allowing for method chaining
      • getCapabilities

        public Map<String,​SupportingEntityCapability> getCapabilities()
        List of capabilities for this transfer instrument.
        Returns:
        capabilities List of capabilities for this transfer instrument.
      • setCapabilities

        public void setCapabilities​(Map<String,​SupportingEntityCapability> capabilities)
        List of capabilities for this transfer instrument.
        Parameters:
        capabilities - List of capabilities for this transfer instrument.
      • documentDetails

        public TransferInstrument documentDetails​(List<DocumentReference> documentDetails)
        List of documents uploaded for the transfer instrument.
        Parameters:
        documentDetails - List of documents uploaded for the transfer instrument.
        Returns:
        the current TransferInstrument instance, allowing for method chaining
      • getDocumentDetails

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

        public void setDocumentDetails​(List<DocumentReference> documentDetails)
        List of documents uploaded for the transfer instrument.
        Parameters:
        documentDetails - List of documents uploaded for the transfer instrument.
      • getId

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

        public TransferInstrument legalEntityId​(String legalEntityId)
        The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) that owns the transfer instrument.
        Parameters:
        legalEntityId - The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) that owns the transfer instrument.
        Returns:
        the current TransferInstrument instance, allowing for method chaining
      • getLegalEntityId

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

        public void setLegalEntityId​(String legalEntityId)
        The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) that owns the transfer instrument.
        Parameters:
        legalEntityId - The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) that owns the transfer instrument.
      • problems

        public TransferInstrument problems​(List<CapabilityProblem> problems)
        The verification errors related to capabilities for this transfer instrument.
        Parameters:
        problems - The verification errors related to capabilities for this transfer instrument.
        Returns:
        the current TransferInstrument instance, allowing for method chaining
      • getProblems

        public List<CapabilityProblem> getProblems()
        The verification errors related to capabilities for this transfer instrument.
        Returns:
        problems The verification errors related to capabilities for this transfer instrument.
      • setProblems

        public void setProblems​(List<CapabilityProblem> problems)
        The verification errors related to capabilities for this transfer instrument.
        Parameters:
        problems - The verification errors related to capabilities for this transfer instrument.
      • type

        public TransferInstrument type​(TransferInstrument.TypeEnum type)
        The type of transfer instrument. Possible value: **bankAccount**.
        Parameters:
        type - The type of transfer instrument. Possible value: **bankAccount**.
        Returns:
        the current TransferInstrument instance, allowing for method chaining
      • getType

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

        public void setType​(TransferInstrument.TypeEnum type)
        The type of transfer instrument. Possible value: **bankAccount**.
        Parameters:
        type - The type of transfer instrument. Possible value: **bankAccount**.
      • equals

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

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

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

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