Package com.adyen.model.transfers
Class AdditionalBankIdentification
- java.lang.Object
-
- com.adyen.model.transfers.AdditionalBankIdentification
-
public class AdditionalBankIdentification extends Object
AdditionalBankIdentification
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAdditionalBankIdentification.TypeEnumThe type of additional bank identification, depending on the country.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CODEstatic StringJSON_PROPERTY_TYPE
-
Constructor Summary
Constructors Constructor Description AdditionalBankIdentification()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AdditionalBankIdentificationcode(String code)The value of the additional bank identification.booleanequals(Object o)Return true if this AdditionalBankIdentification object is equal to o.static AdditionalBankIdentificationfromJson(String jsonString)Create an instance of AdditionalBankIdentification given an JSON stringStringgetCode()The value of the additional bank identification.AdditionalBankIdentification.TypeEnumgetType()The type of additional bank identification, depending on the country.inthashCode()voidsetCode(String code)The value of the additional bank identification.voidsetType(AdditionalBankIdentification.TypeEnum type)The type of additional bank identification, depending on the country.StringtoJson()Convert an instance of AdditionalBankIdentification to an JSON stringStringtoString()AdditionalBankIdentificationtype(AdditionalBankIdentification.TypeEnum type)The type of additional bank identification, depending on the country.
-
-
-
Field Detail
-
JSON_PROPERTY_CODE
public static final String JSON_PROPERTY_CODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
code
public AdditionalBankIdentification code(String code)
The value of the additional bank identification.- Parameters:
code-- Returns:
- the current
AdditionalBankIdentificationinstance, allowing for method chaining
-
getCode
public String getCode()
The value of the additional bank identification.- Returns:
- code
-
setCode
public void setCode(String code)
The value of the additional bank identification.- Parameters:
code-
-
type
public AdditionalBankIdentification type(AdditionalBankIdentification.TypeEnum type)
The type of additional bank identification, depending on the country. Possible values: * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces.- Parameters:
type-- Returns:
- the current
AdditionalBankIdentificationinstance, allowing for method chaining
-
getType
public AdditionalBankIdentification.TypeEnum getType()
The type of additional bank identification, depending on the country. Possible values: * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces.- Returns:
- type
-
setType
public void setType(AdditionalBankIdentification.TypeEnum type)
The type of additional bank identification, depending on the country. Possible values: * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces.- Parameters:
type-
-
equals
public boolean equals(Object o)
Return true if this AdditionalBankIdentification object is equal to o.
-
fromJson
public static AdditionalBankIdentification fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of AdditionalBankIdentification given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AdditionalBankIdentification
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to AdditionalBankIdentification
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of AdditionalBankIdentification to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-