Package com.adyen.model.openbanking
Class BACSAccountIdentifier
- java.lang.Object
-
- com.adyen.model.openbanking.BACSAccountIdentifier
-
public class BACSAccountIdentifier extends Object
BACSAccountIdentifier
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ACCOUNT_NUMBERstatic StringJSON_PROPERTY_SORT_CODE
-
Constructor Summary
Constructors Constructor Description BACSAccountIdentifier()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BACSAccountIdentifieraccountNumber(String accountNumber)The account number of the bank account.booleanequals(Object o)Return true if this BACSAccountIdentifier object is equal to o.static BACSAccountIdentifierfromJson(String jsonString)Create an instance of BACSAccountIdentifier given an JSON stringStringgetAccountNumber()The account number of the bank account.StringgetSortCode()A number that identifies the specific bank and branch where a UK bank account is held.inthashCode()voidsetAccountNumber(String accountNumber)The account number of the bank account.voidsetSortCode(String sortCode)A number that identifies the specific bank and branch where a UK bank account is held.BACSAccountIdentifiersortCode(String sortCode)A number that identifies the specific bank and branch where a UK bank account is held.StringtoJson()Convert an instance of BACSAccountIdentifier to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_ACCOUNT_NUMBER
public static final String JSON_PROPERTY_ACCOUNT_NUMBER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SORT_CODE
public static final String JSON_PROPERTY_SORT_CODE
- See Also:
- Constant Field Values
-
-
Method Detail
-
accountNumber
public BACSAccountIdentifier accountNumber(String accountNumber)
The account number of the bank account.- Parameters:
accountNumber- The account number of the bank account.- Returns:
- the current
BACSAccountIdentifierinstance, allowing for method chaining
-
getAccountNumber
public String getAccountNumber()
The account number of the bank account.- Returns:
- accountNumber The account number of the bank account.
-
setAccountNumber
public void setAccountNumber(String accountNumber)
The account number of the bank account.- Parameters:
accountNumber- The account number of the bank account.
-
sortCode
public BACSAccountIdentifier sortCode(String sortCode)
A number that identifies the specific bank and branch where a UK bank account is held.- Parameters:
sortCode- A number that identifies the specific bank and branch where a UK bank account is held.- Returns:
- the current
BACSAccountIdentifierinstance, allowing for method chaining
-
getSortCode
public String getSortCode()
A number that identifies the specific bank and branch where a UK bank account is held.- Returns:
- sortCode A number that identifies the specific bank and branch where a UK bank account is held.
-
setSortCode
public void setSortCode(String sortCode)
A number that identifies the specific bank and branch where a UK bank account is held.- Parameters:
sortCode- A number that identifies the specific bank and branch where a UK bank account is held.
-
equals
public boolean equals(Object o)
Return true if this BACSAccountIdentifier object is equal to o.
-
fromJson
public static BACSAccountIdentifier fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of BACSAccountIdentifier given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of BACSAccountIdentifier
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to BACSAccountIdentifier
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of BACSAccountIdentifier to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-