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()Get bankAccountMap<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.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.TransferInstrumentInfo.TypeEnumgetType()The type of transfer instrument.inthashCode()TransferInstrumentInfoincludeNullValues(boolean includeNullValues)Configures whether null values are explicitly serialized in the JSON payload.booleanisIncludeNullValues()Returns whether null values are explicitly serialized in the JSON payload.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)bankAccountvoidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.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.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()
Get 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- 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
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 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.
-
type
public TransferInstrumentInfo type(TransferInstrumentInfo.TypeEnum type)
The type of transfer instrument. Possible value: **bankAccount**.- Parameters:
type- The type of transfer instrument. Possible value: **bankAccount**.- Returns:
- the current
TransferInstrumentInfoinstance, allowing for method chaining
-
getType
public TransferInstrumentInfo.TypeEnum getType()
The type of transfer instrument. Possible value: **bankAccount**.- Returns:
- type The type of transfer instrument. Possible value: **bankAccount**.
-
setType
public void setType(TransferInstrumentInfo.TypeEnum type)
The type of transfer instrument. Possible value: **bankAccount**.- Parameters:
type- The type of transfer instrument. Possible value: **bankAccount**.
-
includeNullValues
public TransferInstrumentInfo includeNullValues(boolean includeNullValues)
Configures whether null values are explicitly serialized in the JSON payload. Default is false.
-
isIncludeNullValues
public boolean isIncludeNullValues()
Returns whether null values are explicitly serialized in the JSON payload.
-
setIncludeNullValues
public void setIncludeNullValues(boolean includeNullValues)
Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
-
equals
public boolean equals(Object o)
Return true if this TransferInstrumentInfo object is equal to o.
-
getExplicitNulls
public Map<String,Object> getExplicitNulls()
Returns a map of properties to be merged into the JSON payload as explicit null values.
-
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
-
-