Package com.adyen.model.openbanking
Class ACHAccountIdentifier
- java.lang.Object
-
- com.adyen.model.openbanking.ACHAccountIdentifier
-
public class ACHAccountIdentifier extends Object
ACHAccountIdentifier
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ACCOUNT_NUMBERstatic StringJSON_PROPERTY_ROUTING_NUMBER
-
Constructor Summary
Constructors Constructor Description ACHAccountIdentifier()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ACHAccountIdentifieraccountNumber(String accountNumber)The account number of the bank account.booleanequals(Object o)Return true if this ACHAccountIdentifier object is equal to o.static ACHAccountIdentifierfromJson(String jsonString)Create an instance of ACHAccountIdentifier given an JSON stringStringgetAccountNumber()The account number of the bank account.StringgetRoutingNumber()The [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace.inthashCode()ACHAccountIdentifierroutingNumber(String routingNumber)The [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace.voidsetAccountNumber(String accountNumber)The account number of the bank account.voidsetRoutingNumber(String routingNumber)The [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace.StringtoJson()Convert an instance of ACHAccountIdentifier 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_ROUTING_NUMBER
public static final String JSON_PROPERTY_ROUTING_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
accountNumber
public ACHAccountIdentifier accountNumber(String accountNumber)
The account number of the bank account.- Parameters:
accountNumber- The account number of the bank account.- Returns:
- the current
ACHAccountIdentifierinstance, 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.
-
routingNumber
public ACHAccountIdentifier routingNumber(String routingNumber)
The [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace.- Parameters:
routingNumber- The [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace.- Returns:
- the current
ACHAccountIdentifierinstance, allowing for method chaining
-
getRoutingNumber
public String getRoutingNumber()
The [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace.- Returns:
- routingNumber The [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace.
-
setRoutingNumber
public void setRoutingNumber(String routingNumber)
The [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace.- Parameters:
routingNumber- The [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace.
-
equals
public boolean equals(Object o)
Return true if this ACHAccountIdentifier object is equal to o.
-
fromJson
public static ACHAccountIdentifier fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of ACHAccountIdentifier given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ACHAccountIdentifier
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to ACHAccountIdentifier
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of ACHAccountIdentifier to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-