public static final class CreditorBankAccountService.CreditorBankAccountCreateRequest extends IdempotentPostRequest<CreditorBankAccount>
Request class for CreditorBankAccountService.create()
.
Creates a new creditor bank account object.
Modifier and Type | Class and Description |
---|---|
static class |
CreditorBankAccountService.CreditorBankAccountCreateRequest.Links |
execute
executeWrapped
public CreditorBankAccountService.CreditorBankAccountCreateRequest withAccountHolderName(java.lang.String accountHolderName)
Name of the account holder, as known by the bank. Usually this is the same as the name stored with the linked creditor. This field will be transliterated, upcased and truncated to 18 characters.
public CreditorBankAccountService.CreditorBankAccountCreateRequest withAccountNumber(java.lang.String accountNumber)
Bank account number - see local details for more information. Alternatively you can provide an iban
.
public CreditorBankAccountService.CreditorBankAccountCreateRequest withBankCode(java.lang.String bankCode)
Bank code - see local details for more information. Alternatively you can provide an iban
.
public CreditorBankAccountService.CreditorBankAccountCreateRequest withBranchCode(java.lang.String branchCode)
Branch code - see local details for more information. Alternatively you can provide an iban
.
public CreditorBankAccountService.CreditorBankAccountCreateRequest 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 CreditorBankAccountService.CreditorBankAccountCreateRequest withCurrency(java.lang.String currency)
ISO 4217 currency code, defaults to national currency of country_code
.
public CreditorBankAccountService.CreditorBankAccountCreateRequest 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 CreditorBankAccountService.CreditorBankAccountCreateRequest withLinks(CreditorBankAccountService.CreditorBankAccountCreateRequest.Links links)
public CreditorBankAccountService.CreditorBankAccountCreateRequest withLinksCreditor(java.lang.String creditor)
ID of the creditor that owns this bank account.
public CreditorBankAccountService.CreditorBankAccountCreateRequest 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 CreditorBankAccountService.CreditorBankAccountCreateRequest 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 CreditorBankAccountService.CreditorBankAccountCreateRequest withSetAsDefaultPayoutAccount(java.lang.Boolean setAsDefaultPayoutAccount)
Defaults to false
. When this is set to true
, it will cause this bank account to be set as the account that GoCardless will pay out to.
public CreditorBankAccountService.CreditorBankAccountCreateRequest withIdempotencyKey(java.lang.String idempotencyKey)
public CreditorBankAccountService.CreditorBankAccountCreateRequest withHeader(java.lang.String headerName, java.lang.String headerValue)