Package com.adyen.model.capital
Class CALocalAccountIdentification
- java.lang.Object
-
- com.adyen.model.capital.BankAccountIdentification
-
- com.adyen.model.capital.CALocalAccountIdentification
-
public class CALocalAccountIdentification extends BankAccountIdentification
CALocalAccountIdentification
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ACCOUNT_NUMBERstatic StringJSON_PROPERTY_ACCOUNT_TYPEstatic StringJSON_PROPERTY_INSTITUTION_NUMBERstatic StringJSON_PROPERTY_TRANSIT_NUMBERstatic StringJSON_PROPERTY_TYPE
-
Constructor Summary
Constructors Constructor Description CALocalAccountIdentification()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CALocalAccountIdentificationaccountNumber(String accountNumber)The 5- to 12-digit bank account number, without separators or whitespace.CALocalAccountIdentificationaccountType(CALocalBankAccountType accountType)accountTypebooleanequals(Object o)Return true if this CALocalAccountIdentification object is equal to o.static CALocalAccountIdentificationfromJson(String jsonString)Create an instance of CALocalAccountIdentification given an JSON stringStringgetAccountNumber()The 5- to 12-digit bank account number, without separators or whitespace.CALocalBankAccountTypegetAccountType()Get accountTypeMap<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.StringgetInstitutionNumber()The 3-digit institution number, without separators or whitespace.StringgetTransitNumber()The 5-digit transit number, without separators or whitespace.StringgetType()**caLocal**inthashCode()CALocalAccountIdentificationincludeNullValues(boolean includeNullValues)Configures whether null values are explicitly serialized in the JSON payload.CALocalAccountIdentificationinstitutionNumber(String institutionNumber)The 3-digit institution number, without separators or whitespace.booleanisIncludeNullValues()Returns whether null values are explicitly serialized in the JSON payload.voidsetAccountNumber(String accountNumber)The 5- to 12-digit bank account number, without separators or whitespace.voidsetAccountType(CALocalBankAccountType accountType)accountTypevoidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetInstitutionNumber(String institutionNumber)The 3-digit institution number, without separators or whitespace.voidsetTransitNumber(String transitNumber)The 5-digit transit number, without separators or whitespace.voidsetType(String type)**caLocal**StringtoJson()Convert an instance of CALocalAccountIdentification to an JSON stringStringtoString()CALocalAccountIdentificationtransitNumber(String transitNumber)The 5-digit transit number, without separators or whitespace.CALocalAccountIdentificationtype(String type)**caLocal**
-
-
-
Field Detail
-
JSON_PROPERTY_ACCOUNT_NUMBER
public static final String JSON_PROPERTY_ACCOUNT_NUMBER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ACCOUNT_TYPE
public static final String JSON_PROPERTY_ACCOUNT_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_INSTITUTION_NUMBER
public static final String JSON_PROPERTY_INSTITUTION_NUMBER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TRANSIT_NUMBER
public static final String JSON_PROPERTY_TRANSIT_NUMBER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
accountNumber
public CALocalAccountIdentification accountNumber(String accountNumber)
The 5- to 12-digit bank account number, without separators or whitespace.- Parameters:
accountNumber- The 5- to 12-digit bank account number, without separators or whitespace.- Returns:
- the current
CALocalAccountIdentificationinstance, allowing for method chaining
-
getAccountNumber
public String getAccountNumber()
The 5- to 12-digit bank account number, without separators or whitespace.- Returns:
- accountNumber The 5- to 12-digit bank account number, without separators or whitespace.
-
setAccountNumber
public void setAccountNumber(String accountNumber)
The 5- to 12-digit bank account number, without separators or whitespace.- Parameters:
accountNumber- The 5- to 12-digit bank account number, without separators or whitespace.
-
accountType
public CALocalAccountIdentification accountType(CALocalBankAccountType accountType)
accountType- Parameters:
accountType-- Returns:
- the current
CALocalAccountIdentificationinstance, allowing for method chaining
-
getAccountType
public CALocalBankAccountType getAccountType()
Get accountType- Returns:
- accountType
-
setAccountType
public void setAccountType(CALocalBankAccountType accountType)
accountType- Parameters:
accountType-
-
institutionNumber
public CALocalAccountIdentification institutionNumber(String institutionNumber)
The 3-digit institution number, without separators or whitespace.- Parameters:
institutionNumber- The 3-digit institution number, without separators or whitespace.- Returns:
- the current
CALocalAccountIdentificationinstance, allowing for method chaining
-
getInstitutionNumber
public String getInstitutionNumber()
The 3-digit institution number, without separators or whitespace.- Returns:
- institutionNumber The 3-digit institution number, without separators or whitespace.
-
setInstitutionNumber
public void setInstitutionNumber(String institutionNumber)
The 3-digit institution number, without separators or whitespace.- Parameters:
institutionNumber- The 3-digit institution number, without separators or whitespace.
-
transitNumber
public CALocalAccountIdentification transitNumber(String transitNumber)
The 5-digit transit number, without separators or whitespace.- Parameters:
transitNumber- The 5-digit transit number, without separators or whitespace.- Returns:
- the current
CALocalAccountIdentificationinstance, allowing for method chaining
-
getTransitNumber
public String getTransitNumber()
The 5-digit transit number, without separators or whitespace.- Returns:
- transitNumber The 5-digit transit number, without separators or whitespace.
-
setTransitNumber
public void setTransitNumber(String transitNumber)
The 5-digit transit number, without separators or whitespace.- Parameters:
transitNumber- The 5-digit transit number, without separators or whitespace.
-
type
public CALocalAccountIdentification type(String type)
**caLocal**- Overrides:
typein classBankAccountIdentification- Parameters:
type- **caLocal**- Returns:
- the current
CALocalAccountIdentificationinstance, allowing for method chaining
-
getType
public String getType()
**caLocal**- Overrides:
getTypein classBankAccountIdentification- Returns:
- type **caLocal**
-
setType
public void setType(String type)
**caLocal**- Overrides:
setTypein classBankAccountIdentification- Parameters:
type- **caLocal**
-
includeNullValues
public CALocalAccountIdentification includeNullValues(boolean includeNullValues)
Configures whether null values are explicitly serialized in the JSON payload. Default is false.- Overrides:
includeNullValuesin classBankAccountIdentification
-
isIncludeNullValues
public boolean isIncludeNullValues()
Returns whether null values are explicitly serialized in the JSON payload.- Overrides:
isIncludeNullValuesin classBankAccountIdentification
-
setIncludeNullValues
public void setIncludeNullValues(boolean includeNullValues)
Sets whether null values should be explicitly serialized in the JSON payload. Default is false.- Overrides:
setIncludeNullValuesin classBankAccountIdentification
-
equals
public boolean equals(Object o)
Return true if this CALocalAccountIdentification object is equal to o.- Overrides:
equalsin classBankAccountIdentification
-
hashCode
public int hashCode()
- Overrides:
hashCodein classBankAccountIdentification
-
toString
public String toString()
- Overrides:
toStringin classBankAccountIdentification
-
getExplicitNulls
public Map<String,Object> getExplicitNulls()
Returns a map of properties to be merged into the JSON payload as explicit null values.- Overrides:
getExplicitNullsin classBankAccountIdentification
-
fromJson
public static CALocalAccountIdentification fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of CALocalAccountIdentification given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CALocalAccountIdentification
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to CALocalAccountIdentification
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of CALocalAccountIdentification to an JSON string- Overrides:
toJsonin classBankAccountIdentification- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-