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.CustomTypeAdapterFactorystatic classTransferInstrument.TypeEnumThe type of transfer instrument.
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_BANK_ACCOUNTstatic StringSERIALIZED_NAME_CAPABILITIESstatic StringSERIALIZED_NAME_DOCUMENT_DETAILSstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_LEGAL_ENTITY_IDstatic StringSERIALIZED_NAME_PROBLEMSstatic StringSERIALIZED_NAME_TYPE
-
Constructor Summary
Constructors Constructor Description TransferInstrument()TransferInstrument(String id)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TransferInstrumentaddDocumentDetailsItem(DocumentReference documentDetailsItem)TransferInstrumentaddProblemsItem(CapabilityProblem problemsItem)TransferInstrumentbankAccount(BankAccountInfo bankAccount)TransferInstrumentcapabilities(Map<String,SupportingEntityCapability> capabilities)TransferInstrumentdocumentDetails(List<DocumentReference> documentDetails)booleanequals(Object o)static TransferInstrumentfromJson(String jsonString)Create an instance of TransferInstrument given an JSON stringBankAccountInfogetBankAccount()Get bankAccountMap<String,SupportingEntityCapability>getCapabilities()List of capabilities for this supporting entity.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()List of the verification errors from capabilities for this supporting entity.TransferInstrument.TypeEnumgetType()The type of transfer instrument.inthashCode()TransferInstrumentlegalEntityId(String legalEntityId)TransferInstrumentproblems(List<CapabilityProblem> problems)TransferInstrumentputCapabilitiesItem(String key, SupportingEntityCapability capabilitiesItem)voidsetBankAccount(BankAccountInfo bankAccount)voidsetCapabilities(Map<String,SupportingEntityCapability> capabilities)voidsetDocumentDetails(List<DocumentReference> documentDetails)voidsetLegalEntityId(String legalEntityId)voidsetProblems(List<CapabilityProblem> problems)voidsetType(TransferInstrument.TypeEnum type)StringtoJson()Convert an instance of TransferInstrument to an JSON stringStringtoString()TransferInstrumenttype(TransferInstrument.TypeEnum type)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_BANK_ACCOUNT
public static final String SERIALIZED_NAME_BANK_ACCOUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CAPABILITIES
public static final String SERIALIZED_NAME_CAPABILITIES
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DOCUMENT_DETAILS
public static final String SERIALIZED_NAME_DOCUMENT_DETAILS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LEGAL_ENTITY_ID
public static final String SERIALIZED_NAME_LEGAL_ENTITY_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PROBLEMS
public static final String SERIALIZED_NAME_PROBLEMS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TransferInstrument
public TransferInstrument()
-
TransferInstrument
public TransferInstrument(String id)
-
-
Method Detail
-
bankAccount
public TransferInstrument bankAccount(BankAccountInfo bankAccount)
-
getBankAccount
public BankAccountInfo getBankAccount()
Get bankAccount- Returns:
- bankAccount
-
setBankAccount
public void setBankAccount(BankAccountInfo bankAccount)
-
capabilities
public TransferInstrument capabilities(Map<String,SupportingEntityCapability> capabilities)
-
putCapabilitiesItem
public TransferInstrument putCapabilitiesItem(String key, SupportingEntityCapability capabilitiesItem)
-
getCapabilities
public Map<String,SupportingEntityCapability> getCapabilities()
List of capabilities for this supporting entity.- Returns:
- capabilities
-
setCapabilities
public void setCapabilities(Map<String,SupportingEntityCapability> capabilities)
-
documentDetails
public TransferInstrument documentDetails(List<DocumentReference> documentDetails)
-
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)
-
getId
public String getId()
The unique identifier of the transfer instrument.- Returns:
- id
-
legalEntityId
public TransferInstrument legalEntityId(String legalEntityId)
-
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)
-
problems
public TransferInstrument problems(List<CapabilityProblem> problems)
-
addProblemsItem
public TransferInstrument addProblemsItem(CapabilityProblem problemsItem)
-
getProblems
public List<CapabilityProblem> getProblems()
List of the verification errors from capabilities for this supporting entity.- Returns:
- problems
-
setProblems
public void setProblems(List<CapabilityProblem> problems)
-
type
public TransferInstrument type(TransferInstrument.TypeEnum type)
-
getType
public TransferInstrument.TypeEnum getType()
The type of transfer instrument. Possible value: **bankAccount**.- Returns:
- type
-
setType
public void setType(TransferInstrument.TypeEnum type)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates 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
-
-