Class TransferInstrument
- java.lang.Object
-
- com.adyen.model.legalentitymanagement.TransferInstrument
-
public class TransferInstrument extends Object
TransferInstrument
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTransferInstrument.TypeEnumThe type of transfer instrument.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_BANK_ACCOUNTstatic StringJSON_PROPERTY_CAPABILITIESstatic StringJSON_PROPERTY_DOCUMENT_DETAILSstatic StringJSON_PROPERTY_IDstatic StringJSON_PROPERTY_LEGAL_ENTITY_IDstatic StringJSON_PROPERTY_PROBLEMSstatic StringJSON_PROPERTY_TYPE
-
Constructor Summary
Constructors Constructor Description TransferInstrument()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TransferInstrumentaddDocumentDetailsItem(DocumentReference documentDetailsItem)TransferInstrumentaddProblemsItem(CapabilityProblem problemsItem)TransferInstrumentbankAccount(BankAccountInfo bankAccount)bankAccountTransferInstrumentcapabilities(Map<String,SupportingEntityCapability> capabilities)List of capabilities for this transfer instrument.TransferInstrumentdocumentDetails(List<DocumentReference> documentDetails)List of documents uploaded for the transfer instrument.booleanequals(Object o)Return true if this TransferInstrument object is equal to o.static TransferInstrumentfromJson(String jsonString)Create an instance of TransferInstrument given an JSON stringBankAccountInfogetBankAccount()bankAccountMap<String,SupportingEntityCapability>getCapabilities()List of capabilities for this transfer instrument.List<DocumentReference>getDocumentDetails()List of documents uploaded for the transfer instrument.StringgetId()The unique identifier of the transfer instrument.StringgetLegalEntityId()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.List<CapabilityProblem>getProblems()The verification errors related to capabilities for this transfer instrument.TransferInstrument.TypeEnumgetType()The type of transfer instrument.inthashCode()TransferInstrumentid(String id)The unique identifier of the transfer instrument.TransferInstrumentlegalEntityId(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.TransferInstrumentproblems(List<CapabilityProblem> problems)The verification errors related to capabilities for this transfer instrument.TransferInstrumentputCapabilitiesItem(String key, SupportingEntityCapability capabilitiesItem)voidsetBankAccount(BankAccountInfo bankAccount)bankAccountvoidsetCapabilities(Map<String,SupportingEntityCapability> capabilities)List of capabilities for this transfer instrument.voidsetDocumentDetails(List<DocumentReference> documentDetails)List of documents uploaded for the transfer instrument.voidsetId(String id)The unique identifier of the transfer instrument.voidsetLegalEntityId(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.voidsetProblems(List<CapabilityProblem> problems)The verification errors related to capabilities for this transfer instrument.voidsetType(TransferInstrument.TypeEnum type)The type of transfer instrument.StringtoJson()Convert an instance of TransferInstrument to an JSON stringStringtoString()TransferInstrumenttype(TransferInstrument.TypeEnum type)The type of transfer instrument.
-
-
-
Field Detail
-
JSON_PROPERTY_BANK_ACCOUNT
public static final String JSON_PROPERTY_BANK_ACCOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CAPABILITIES
public static final String JSON_PROPERTY_CAPABILITIES
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DOCUMENT_DETAILS
public static final String JSON_PROPERTY_DOCUMENT_DETAILS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ID
public static final String JSON_PROPERTY_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_LEGAL_ENTITY_ID
public static final String JSON_PROPERTY_LEGAL_ENTITY_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PROBLEMS
public static final String JSON_PROPERTY_PROBLEMS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
bankAccount
public TransferInstrument bankAccount(BankAccountInfo bankAccount)
bankAccount- Parameters:
bankAccount-- Returns:
- the current
TransferInstrumentinstance, allowing for method chaining
-
getBankAccount
public BankAccountInfo getBankAccount()
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-- Returns:
- the current
TransferInstrumentinstance, allowing for method chaining
-
putCapabilitiesItem
public TransferInstrument putCapabilitiesItem(String key, SupportingEntityCapability capabilitiesItem)
-
getCapabilities
public Map<String,SupportingEntityCapability> getCapabilities()
List of capabilities for this transfer instrument.- Returns:
- capabilities
-
setCapabilities
public void setCapabilities(Map<String,SupportingEntityCapability> capabilities)
List of capabilities for this transfer instrument.- Parameters:
capabilities-
-
documentDetails
public TransferInstrument documentDetails(List<DocumentReference> documentDetails)
List of documents uploaded for the transfer instrument.- Parameters:
documentDetails-- Returns:
- the current
TransferInstrumentinstance, allowing for method chaining
-
addDocumentDetailsItem
public TransferInstrument addDocumentDetailsItem(DocumentReference documentDetailsItem)
-
getDocumentDetails
public List<DocumentReference> getDocumentDetails()
List of documents uploaded for the transfer instrument.- Returns:
- documentDetails
-
setDocumentDetails
public void setDocumentDetails(List<DocumentReference> documentDetails)
List of documents uploaded for the transfer instrument.- Parameters:
documentDetails-
-
id
public TransferInstrument id(String id)
The unique identifier of the transfer instrument.- Parameters:
id-- Returns:
- the current
TransferInstrumentinstance, allowing for method chaining
-
getId
public String getId()
The unique identifier of the transfer instrument.- Returns:
- id
-
setId
public void setId(String id)
The unique identifier of the transfer instrument.- Parameters:
id-
-
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-- Returns:
- the current
TransferInstrumentinstance, 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
-
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-
-
problems
public TransferInstrument problems(List<CapabilityProblem> problems)
The verification errors related to capabilities for this transfer instrument.- Parameters:
problems-- Returns:
- the current
TransferInstrumentinstance, allowing for method chaining
-
addProblemsItem
public TransferInstrument addProblemsItem(CapabilityProblem problemsItem)
-
getProblems
public List<CapabilityProblem> getProblems()
The verification errors related to capabilities for this transfer instrument.- Returns:
- problems
-
setProblems
public void setProblems(List<CapabilityProblem> problems)
The verification errors related to capabilities for this transfer instrument.- Parameters:
problems-
-
type
public TransferInstrument type(TransferInstrument.TypeEnum type)
The type of transfer instrument. Possible value: **bankAccount**.- Parameters:
type-- Returns:
- the current
TransferInstrumentinstance, allowing for method chaining
-
getType
public TransferInstrument.TypeEnum getType()
The type of transfer instrument. Possible value: **bankAccount**.- Returns:
- type
-
setType
public void setType(TransferInstrument.TypeEnum type)
The type of transfer instrument. Possible value: **bankAccount**.- Parameters:
type-
-
equals
public boolean equals(Object o)
Return true if this TransferInstrument object is equal to o.
-
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
-
-