Class TransferInstrumentInfo
- java.lang.Object
-
- com.adyen.model.legalentitymanagement.TransferInstrumentInfo
-
public class TransferInstrumentInfo extends Object
TransferInstrumentInfo
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTransferInstrumentInfo.CustomTypeAdapterFactorystatic classTransferInstrumentInfo.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_LEGAL_ENTITY_IDstatic StringSERIALIZED_NAME_TYPE
-
Constructor Summary
Constructors Constructor Description TransferInstrumentInfo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TransferInstrumentInfobankAccount(BankAccountInfo bankAccount)booleanequals(Object o)static TransferInstrumentInfofromJson(String jsonString)Create an instance of TransferInstrumentInfo given an JSON stringBankAccountInfogetBankAccount()Get bankAccountStringgetLegalEntityId()The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) that owns the transfer instrument.TransferInstrumentInfo.TypeEnumgetType()The type of transfer instrument.inthashCode()TransferInstrumentInfolegalEntityId(String legalEntityId)voidsetBankAccount(BankAccountInfo bankAccount)voidsetLegalEntityId(String legalEntityId)voidsetType(TransferInstrumentInfo.TypeEnum type)StringtoJson()Convert an instance of TransferInstrumentInfo to an JSON stringStringtoString()TransferInstrumentInfotype(TransferInstrumentInfo.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_LEGAL_ENTITY_ID
public static final String SERIALIZED_NAME_LEGAL_ENTITY_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
bankAccount
public TransferInstrumentInfo bankAccount(BankAccountInfo bankAccount)
-
getBankAccount
public BankAccountInfo getBankAccount()
Get bankAccount- Returns:
- bankAccount
-
setBankAccount
public void setBankAccount(BankAccountInfo bankAccount)
-
legalEntityId
public TransferInstrumentInfo legalEntityId(String legalEntityId)
-
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)
-
type
public TransferInstrumentInfo type(TransferInstrumentInfo.TypeEnum type)
-
getType
public TransferInstrumentInfo.TypeEnum getType()
The type of transfer instrument. Possible value: **bankAccount**.- Returns:
- type
-
setType
public void setType(TransferInstrumentInfo.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 TransferInstrumentInfo
-
fromJson
public static TransferInstrumentInfo fromJson(String jsonString) throws IOException
Create an instance of TransferInstrumentInfo given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TransferInstrumentInfo
- Throws:
IOException- if the JSON string is invalid with respect to TransferInstrumentInfo
-
toJson
public String toJson()
Convert an instance of TransferInstrumentInfo to an JSON string- Returns:
- JSON string
-
-