public static final class CustomerBankAccountService.CustomerBankAccountCreateRequest extends IdempotentPostRequest<CustomerBankAccount>
Request class for CustomerBankAccountService.create()
.
Creates a new customer bank account object.
There are three different ways to supply bank account details:
For more information on the different fields required in each country, see local bank details.
Modifier and Type | Class and Description |
---|---|
static class |
CustomerBankAccountService.CustomerBankAccountCreateRequest.Links |
execute
executeWrapped
public CustomerBankAccountService.CustomerBankAccountCreateRequest withAccountHolderName(java.lang.String accountHolderName)
Name of the account holder, as known by the bank. Usually this matches the name of the linked customer. This field will be transliterated, upcased and truncated to 18 characters.
public CustomerBankAccountService.CustomerBankAccountCreateRequest withAccountNumber(java.lang.String accountNumber)
Bank account number - see local details for more information. Alternatively you can provide an iban
.
public CustomerBankAccountService.CustomerBankAccountCreateRequest withBankCode(java.lang.String bankCode)
Bank code - see local details for more information. Alternatively you can provide an iban
.
public CustomerBankAccountService.CustomerBankAccountCreateRequest withBranchCode(java.lang.String branchCode)
Branch code - see local details for more information. Alternatively you can provide an iban
.
public CustomerBankAccountService.CustomerBankAccountCreateRequest withCountryCode(java.lang.String countryCode)
ISO 3166-1 alpha-2 code. Defaults to the country code of the iban
if supplied, otherwise is required.
public CustomerBankAccountService.CustomerBankAccountCreateRequest withCurrency(java.lang.String currency)
ISO 4217 currency code, defaults to national currency of country_code
.
public CustomerBankAccountService.CustomerBankAccountCreateRequest withIban(java.lang.String iban)
International Bank Account Number. Alternatively you can provide local details. IBANs are not accepted for Swedish bank accounts denominated in SEK - you must supply local details.
public CustomerBankAccountService.CustomerBankAccountCreateRequest withLinks(CustomerBankAccountService.CustomerBankAccountCreateRequest.Links links)
public CustomerBankAccountService.CustomerBankAccountCreateRequest withLinksCustomer(java.lang.String customer)
ID of the customer that owns this bank account.
public CustomerBankAccountService.CustomerBankAccountCreateRequest withLinksCustomerBankAccountToken(java.lang.String customerBankAccountToken)
ID of a customer bank account token to use in place of bank account parameters.
public CustomerBankAccountService.CustomerBankAccountCreateRequest withMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
Key-value store of custom data. Up to 3 keys are permitted, with key names up to 50 characters and values up to 500 characters.
public CustomerBankAccountService.CustomerBankAccountCreateRequest withMetadata(java.lang.String key, java.lang.String value)
Key-value store of custom data. Up to 3 keys are permitted, with key names up to 50 characters and values up to 500 characters.
public CustomerBankAccountService.CustomerBankAccountCreateRequest withIdempotencyKey(java.lang.String idempotencyKey)
public CustomerBankAccountService.CustomerBankAccountCreateRequest withHeader(java.lang.String headerName, java.lang.String headerValue)