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.TypeEnumThe type of transfer instrument.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_BANK_ACCOUNTstatic StringJSON_PROPERTY_LEGAL_ENTITY_IDstatic StringJSON_PROPERTY_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)bankAccountbooleanequals(Object o)Return true if this TransferInstrumentInfo object is equal to o.static TransferInstrumentInfofromJson(String jsonString)Create an instance of TransferInstrumentInfo given an JSON stringBankAccountInfogetBankAccount()bankAccountStringgetLegalEntityId()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.TransferInstrumentInfo.TypeEnumgetType()The type of transfer instrument.inthashCode()TransferInstrumentInfolegalEntityId(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.voidsetBankAccount(BankAccountInfo bankAccount)bankAccountvoidsetLegalEntityId(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.voidsetType(TransferInstrumentInfo.TypeEnum type)The type of transfer instrument.StringtoJson()Convert an instance of TransferInstrumentInfo to an JSON stringStringtoString()TransferInstrumentInfotype(TransferInstrumentInfo.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_LEGAL_ENTITY_ID
public static final String JSON_PROPERTY_LEGAL_ENTITY_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
bankAccount
public TransferInstrumentInfo bankAccount(BankAccountInfo bankAccount)
bankAccount- Parameters:
bankAccount-- Returns:
- the current
TransferInstrumentInfoinstance, allowing for method chaining
-
getBankAccount
public BankAccountInfo getBankAccount()
bankAccount- Returns:
- bankAccount
-
setBankAccount
public void setBankAccount(BankAccountInfo bankAccount)
bankAccount- Parameters:
bankAccount-
-
legalEntityId
public TransferInstrumentInfo 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
TransferInstrumentInfoinstance, 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-
-
type
public TransferInstrumentInfo type(TransferInstrumentInfo.TypeEnum type)
The type of transfer instrument. Possible value: **bankAccount**.- Parameters:
type-- Returns:
- the current
TransferInstrumentInfoinstance, allowing for method chaining
-
getType
public TransferInstrumentInfo.TypeEnum getType()
The type of transfer instrument. Possible value: **bankAccount**.- Returns:
- type
-
setType
public void setType(TransferInstrumentInfo.TypeEnum type)
The type of transfer instrument. Possible value: **bankAccount**.- Parameters:
type-
-
equals
public boolean equals(Object o)
Return true if this TransferInstrumentInfo object is equal to o.
-
fromJson
public static TransferInstrumentInfo fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of TransferInstrumentInfo given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TransferInstrumentInfo
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to TransferInstrumentInfo
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of TransferInstrumentInfo to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-