Package com.adyen.model.openbanking
Class BSBAccountIdentifier
- java.lang.Object
-
- com.adyen.model.openbanking.BSBAccountIdentifier
-
public class BSBAccountIdentifier extends Object
BSBAccountIdentifier
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ACCOUNT_NUMBERstatic StringJSON_PROPERTY_BSB_CODE
-
Constructor Summary
Constructors Constructor Description BSBAccountIdentifier()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BSBAccountIdentifieraccountNumber(String accountNumber)The account number of the bank account.BSBAccountIdentifierbsbCode(String bsbCode)The BSB (Bank-State-Branch) code.booleanequals(Object o)Return true if this BSBAccountIdentifier object is equal to o.static BSBAccountIdentifierfromJson(String jsonString)Create an instance of BSBAccountIdentifier given an JSON stringStringgetAccountNumber()The account number of the bank account.StringgetBsbCode()The BSB (Bank-State-Branch) code.inthashCode()voidsetAccountNumber(String accountNumber)The account number of the bank account.voidsetBsbCode(String bsbCode)The BSB (Bank-State-Branch) code.StringtoJson()Convert an instance of BSBAccountIdentifier 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_BSB_CODE
public static final String JSON_PROPERTY_BSB_CODE
- See Also:
- Constant Field Values
-
-
Method Detail
-
accountNumber
public BSBAccountIdentifier accountNumber(String accountNumber)
The account number of the bank account.- Parameters:
accountNumber- The account number of the bank account.- Returns:
- the current
BSBAccountIdentifierinstance, 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.
-
bsbCode
public BSBAccountIdentifier bsbCode(String bsbCode)
The BSB (Bank-State-Branch) code.- Parameters:
bsbCode- The BSB (Bank-State-Branch) code.- Returns:
- the current
BSBAccountIdentifierinstance, allowing for method chaining
-
getBsbCode
public String getBsbCode()
The BSB (Bank-State-Branch) code.- Returns:
- bsbCode The BSB (Bank-State-Branch) code.
-
setBsbCode
public void setBsbCode(String bsbCode)
The BSB (Bank-State-Branch) code.- Parameters:
bsbCode- The BSB (Bank-State-Branch) code.
-
equals
public boolean equals(Object o)
Return true if this BSBAccountIdentifier object is equal to o.
-
fromJson
public static BSBAccountIdentifier fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of BSBAccountIdentifier given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of BSBAccountIdentifier
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to BSBAccountIdentifier
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of BSBAccountIdentifier to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-