Package com.adyen.model.checkout
Class AchDetails
- java.lang.Object
-
- com.adyen.model.checkout.AchDetails
-
public class AchDetails extends Object
AchDetails
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAchDetails.BankAccountTypeEnumThe bank account type (checking, savings...).static classAchDetails.TypeEnum**ach**
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_BANK_ACCOUNT_NUMBERstatic StringJSON_PROPERTY_BANK_ACCOUNT_TYPEstatic StringJSON_PROPERTY_BANK_LOCATION_IDstatic StringJSON_PROPERTY_CHECKOUT_ATTEMPT_IDstatic StringJSON_PROPERTY_ENCRYPTED_BANK_ACCOUNT_NUMBERstatic StringJSON_PROPERTY_ENCRYPTED_BANK_LOCATION_IDstatic StringJSON_PROPERTY_OWNER_NAMEstatic StringJSON_PROPERTY_RECURRING_DETAIL_REFERENCEstatic StringJSON_PROPERTY_STORED_PAYMENT_METHOD_IDstatic StringJSON_PROPERTY_TRANSFER_INSTRUMENT_IDstatic StringJSON_PROPERTY_TYPE
-
Constructor Summary
Constructors Constructor Description AchDetails()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AchDetailsbankAccountNumber(String bankAccountNumber)The bank account number (without separators).AchDetailsbankAccountType(AchDetails.BankAccountTypeEnum bankAccountType)The bank account type (checking, savings...).AchDetailsbankLocationId(String bankLocationId)The bank routing number of the account.AchDetailscheckoutAttemptId(String checkoutAttemptId)The checkout attempt identifier.AchDetailsencryptedBankAccountNumber(String encryptedBankAccountNumber)Encrypted bank account number.AchDetailsencryptedBankLocationId(String encryptedBankLocationId)Encrypted location id.booleanequals(Object o)Return true if this AchDetails object is equal to o.static AchDetailsfromJson(String jsonString)Create an instance of AchDetails given an JSON stringStringgetBankAccountNumber()The bank account number (without separators).AchDetails.BankAccountTypeEnumgetBankAccountType()The bank account type (checking, savings...).StringgetBankLocationId()The bank routing number of the account.StringgetCheckoutAttemptId()The checkout attempt identifier.StringgetEncryptedBankAccountNumber()Encrypted bank account number.StringgetEncryptedBankLocationId()Encrypted location id.StringgetOwnerName()The name of the bank account holder.StringgetRecurringDetailReference()Deprecated.since Adyen Checkout API v49 Use `storedPaymentMethodId` instead.StringgetStoredPaymentMethodId()This is the `recurringDetailReference` returned in the response when you created the token.StringgetTransferInstrumentId()The unique identifier of your user's verified transfer instrument, which you can use to top up their balance accounts.AchDetails.TypeEnumgetType()**ach**inthashCode()AchDetailsownerName(String ownerName)The name of the bank account holder.AchDetailsrecurringDetailReference(String recurringDetailReference)Deprecated.since Adyen Checkout API v49 Use `storedPaymentMethodId` instead.voidsetBankAccountNumber(String bankAccountNumber)The bank account number (without separators).voidsetBankAccountType(AchDetails.BankAccountTypeEnum bankAccountType)The bank account type (checking, savings...).voidsetBankLocationId(String bankLocationId)The bank routing number of the account.voidsetCheckoutAttemptId(String checkoutAttemptId)The checkout attempt identifier.voidsetEncryptedBankAccountNumber(String encryptedBankAccountNumber)Encrypted bank account number.voidsetEncryptedBankLocationId(String encryptedBankLocationId)Encrypted location id.voidsetOwnerName(String ownerName)The name of the bank account holder.voidsetRecurringDetailReference(String recurringDetailReference)Deprecated.since Adyen Checkout API v49 Use `storedPaymentMethodId` instead.voidsetStoredPaymentMethodId(String storedPaymentMethodId)This is the `recurringDetailReference` returned in the response when you created the token.voidsetTransferInstrumentId(String transferInstrumentId)The unique identifier of your user's verified transfer instrument, which you can use to top up their balance accounts.voidsetType(AchDetails.TypeEnum type)**ach**AchDetailsstoredPaymentMethodId(String storedPaymentMethodId)This is the `recurringDetailReference` returned in the response when you created the token.StringtoJson()Convert an instance of AchDetails to an JSON stringStringtoString()AchDetailstransferInstrumentId(String transferInstrumentId)The unique identifier of your user's verified transfer instrument, which you can use to top up their balance accounts.AchDetailstype(AchDetails.TypeEnum type)**ach**
-
-
-
Field Detail
-
JSON_PROPERTY_BANK_ACCOUNT_NUMBER
public static final String JSON_PROPERTY_BANK_ACCOUNT_NUMBER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_BANK_ACCOUNT_TYPE
public static final String JSON_PROPERTY_BANK_ACCOUNT_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_BANK_LOCATION_ID
public static final String JSON_PROPERTY_BANK_LOCATION_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CHECKOUT_ATTEMPT_ID
public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ENCRYPTED_BANK_ACCOUNT_NUMBER
public static final String JSON_PROPERTY_ENCRYPTED_BANK_ACCOUNT_NUMBER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ENCRYPTED_BANK_LOCATION_ID
public static final String JSON_PROPERTY_ENCRYPTED_BANK_LOCATION_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_OWNER_NAME
public static final String JSON_PROPERTY_OWNER_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_RECURRING_DETAIL_REFERENCE
public static final String JSON_PROPERTY_RECURRING_DETAIL_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STORED_PAYMENT_METHOD_ID
public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TRANSFER_INSTRUMENT_ID
public static final String JSON_PROPERTY_TRANSFER_INSTRUMENT_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
bankAccountNumber
public AchDetails bankAccountNumber(String bankAccountNumber)
The bank account number (without separators).- Parameters:
bankAccountNumber-- Returns:
- the current
AchDetailsinstance, allowing for method chaining
-
getBankAccountNumber
public String getBankAccountNumber()
The bank account number (without separators).- Returns:
- bankAccountNumber
-
setBankAccountNumber
public void setBankAccountNumber(String bankAccountNumber)
The bank account number (without separators).- Parameters:
bankAccountNumber-
-
bankAccountType
public AchDetails bankAccountType(AchDetails.BankAccountTypeEnum bankAccountType)
The bank account type (checking, savings...).- Parameters:
bankAccountType-- Returns:
- the current
AchDetailsinstance, allowing for method chaining
-
getBankAccountType
public AchDetails.BankAccountTypeEnum getBankAccountType()
The bank account type (checking, savings...).- Returns:
- bankAccountType
-
setBankAccountType
public void setBankAccountType(AchDetails.BankAccountTypeEnum bankAccountType)
The bank account type (checking, savings...).- Parameters:
bankAccountType-
-
bankLocationId
public AchDetails bankLocationId(String bankLocationId)
The bank routing number of the account. The field value is `nil` in most cases.- Parameters:
bankLocationId-- Returns:
- the current
AchDetailsinstance, allowing for method chaining
-
getBankLocationId
public String getBankLocationId()
The bank routing number of the account. The field value is `nil` in most cases.- Returns:
- bankLocationId
-
setBankLocationId
public void setBankLocationId(String bankLocationId)
The bank routing number of the account. The field value is `nil` in most cases.- Parameters:
bankLocationId-
-
checkoutAttemptId
public AchDetails checkoutAttemptId(String checkoutAttemptId)
The checkout attempt identifier.- Parameters:
checkoutAttemptId-- Returns:
- the current
AchDetailsinstance, allowing for method chaining
-
getCheckoutAttemptId
public String getCheckoutAttemptId()
The checkout attempt identifier.- Returns:
- checkoutAttemptId
-
setCheckoutAttemptId
public void setCheckoutAttemptId(String checkoutAttemptId)
The checkout attempt identifier.- Parameters:
checkoutAttemptId-
-
encryptedBankAccountNumber
public AchDetails encryptedBankAccountNumber(String encryptedBankAccountNumber)
Encrypted bank account number. The bank account number (without separators).- Parameters:
encryptedBankAccountNumber-- Returns:
- the current
AchDetailsinstance, allowing for method chaining
-
getEncryptedBankAccountNumber
public String getEncryptedBankAccountNumber()
Encrypted bank account number. The bank account number (without separators).- Returns:
- encryptedBankAccountNumber
-
setEncryptedBankAccountNumber
public void setEncryptedBankAccountNumber(String encryptedBankAccountNumber)
Encrypted bank account number. The bank account number (without separators).- Parameters:
encryptedBankAccountNumber-
-
encryptedBankLocationId
public AchDetails encryptedBankLocationId(String encryptedBankLocationId)
Encrypted location id. The bank routing number of the account. The field value is `nil` in most cases.- Parameters:
encryptedBankLocationId-- Returns:
- the current
AchDetailsinstance, allowing for method chaining
-
getEncryptedBankLocationId
public String getEncryptedBankLocationId()
Encrypted location id. The bank routing number of the account. The field value is `nil` in most cases.- Returns:
- encryptedBankLocationId
-
setEncryptedBankLocationId
public void setEncryptedBankLocationId(String encryptedBankLocationId)
Encrypted location id. The bank routing number of the account. The field value is `nil` in most cases.- Parameters:
encryptedBankLocationId-
-
ownerName
public AchDetails ownerName(String ownerName)
The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'.- Parameters:
ownerName-- Returns:
- the current
AchDetailsinstance, allowing for method chaining
-
getOwnerName
public String getOwnerName()
The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'.- Returns:
- ownerName
-
setOwnerName
public void setOwnerName(String ownerName)
The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'.- Parameters:
ownerName-
-
recurringDetailReference
@Deprecated public AchDetails recurringDetailReference(String recurringDetailReference)
Deprecated.since Adyen Checkout API v49 Use `storedPaymentMethodId` instead.This is the `recurringDetailReference` returned in the response when you created the token.- Parameters:
recurringDetailReference-- Returns:
- the current
AchDetailsinstance, allowing for method chaining
-
getRecurringDetailReference
@Deprecated public String getRecurringDetailReference()
Deprecated.since Adyen Checkout API v49 Use `storedPaymentMethodId` instead.This is the `recurringDetailReference` returned in the response when you created the token.- Returns:
- recurringDetailReference
-
setRecurringDetailReference
@Deprecated public void setRecurringDetailReference(String recurringDetailReference)
Deprecated.since Adyen Checkout API v49 Use `storedPaymentMethodId` instead.This is the `recurringDetailReference` returned in the response when you created the token.- Parameters:
recurringDetailReference-
-
storedPaymentMethodId
public AchDetails storedPaymentMethodId(String storedPaymentMethodId)
This is the `recurringDetailReference` returned in the response when you created the token.- Parameters:
storedPaymentMethodId-- Returns:
- the current
AchDetailsinstance, allowing for method chaining
-
getStoredPaymentMethodId
public String getStoredPaymentMethodId()
This is the `recurringDetailReference` returned in the response when you created the token.- Returns:
- storedPaymentMethodId
-
setStoredPaymentMethodId
public void setStoredPaymentMethodId(String storedPaymentMethodId)
This is the `recurringDetailReference` returned in the response when you created the token.- Parameters:
storedPaymentMethodId-
-
transferInstrumentId
public AchDetails transferInstrumentId(String transferInstrumentId)
The unique identifier of your user's verified transfer instrument, which you can use to top up their balance accounts.- Parameters:
transferInstrumentId-- Returns:
- the current
AchDetailsinstance, allowing for method chaining
-
getTransferInstrumentId
public String getTransferInstrumentId()
The unique identifier of your user's verified transfer instrument, which you can use to top up their balance accounts.- Returns:
- transferInstrumentId
-
setTransferInstrumentId
public void setTransferInstrumentId(String transferInstrumentId)
The unique identifier of your user's verified transfer instrument, which you can use to top up their balance accounts.- Parameters:
transferInstrumentId-
-
type
public AchDetails type(AchDetails.TypeEnum type)
**ach**- Parameters:
type-- Returns:
- the current
AchDetailsinstance, allowing for method chaining
-
getType
public AchDetails.TypeEnum getType()
**ach**- Returns:
- type
-
setType
public void setType(AchDetails.TypeEnum type)
**ach**- Parameters:
type-
-
equals
public boolean equals(Object o)
Return true if this AchDetails object is equal to o.
-
fromJson
public static AchDetails fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of AchDetails given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AchDetails
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to AchDetails
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of AchDetails to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-