public class BankAccount extends ApiResource implements ExternalAccount, PaymentSource, MetadataStore<BankAccount>
ApiResource.RequestMethod, ApiResource.RequestType
CHARSET, GSON
PRETTY_PRINT_GSON
Constructor and Description |
---|
BankAccount() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(java.lang.Object other) |
BankAccount |
delete()
Delete a specified external account for a given account.
|
BankAccount |
delete(java.util.Map<java.lang.String,java.lang.Object> params)
Delete a specified external account for a given account.
|
BankAccount |
delete(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Delete a specified external account for a given account.
|
BankAccount |
delete(RequestOptions options)
Delete a specified external account for a given account.
|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getAccount()
Get id of expandable `account` object.
|
java.lang.String |
getAccountHolderName()
The name of the person or business that owns the bank account.
|
java.lang.String |
getAccountHolderType()
The type of entity that holds the account.
|
Account |
getAccountObject()
Get expanded `account`.
|
java.lang.String |
getBankName()
Name of the bank associated with the routing number (e.g., `WELLS FARGO`).
|
java.lang.String |
getCountry()
Two-letter ISO code representing the country the bank account is located in.
|
java.lang.String |
getCurrency()
Three-letter [ISO code for the currency](https://stripe.com/docs/payouts) paid out to the bank
account.
|
java.lang.String |
getCustomer()
Get id of expandable `customer` object.
|
Customer |
getCustomerObject()
Get expanded `customer`.
|
java.lang.Boolean |
getDefaultForCurrency()
Whether this bank account is the default external account for its currency.
|
java.lang.Boolean |
getDeleted()
Always true for a deleted object.
|
java.lang.String |
getFingerprint()
Uniquely identifies this particular bank account.
|
java.lang.String |
getId()
Unique identifier for the object.
|
java.lang.String |
getLast4() |
java.util.Map<java.lang.String,java.lang.String> |
getMetadata()
Set of key-value pairs that you can attach to an object.
|
java.lang.String |
getObject()
String representing the object's type.
|
java.lang.String |
getRoutingNumber()
The routing transit number for the bank account.
|
java.lang.String |
getStatus()
For bank accounts, possible values are `new`, `validated`, `verified`, `verification_failed`,
or `errored`.
|
int |
hashCode() |
void |
setAccount(java.lang.String id) |
void |
setAccountHolderName(java.lang.String accountHolderName)
The name of the person or business that owns the bank account.
|
void |
setAccountHolderType(java.lang.String accountHolderType)
The type of entity that holds the account.
|
void |
setAccountObject(Account expandableObject) |
void |
setBankName(java.lang.String bankName)
Name of the bank associated with the routing number (e.g., `WELLS FARGO`).
|
void |
setCountry(java.lang.String country)
Two-letter ISO code representing the country the bank account is located in.
|
void |
setCurrency(java.lang.String currency)
Three-letter [ISO code for the currency](https://stripe.com/docs/payouts) paid out to the bank
account.
|
void |
setCustomer(java.lang.String id) |
void |
setCustomerObject(Customer expandableObject) |
void |
setDefaultForCurrency(java.lang.Boolean defaultForCurrency)
Whether this bank account is the default external account for its currency.
|
void |
setDeleted(java.lang.Boolean deleted)
Always true for a deleted object.
|
void |
setFingerprint(java.lang.String fingerprint)
Uniquely identifies this particular bank account.
|
void |
setId(java.lang.String id)
Unique identifier for the object.
|
void |
setLast4(java.lang.String last4) |
void |
setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
Set of key-value pairs that you can attach to an object.
|
void |
setObject(java.lang.String object)
String representing the object's type.
|
void |
setRoutingNumber(java.lang.String routingNumber)
The routing transit number for the bank account.
|
void |
setStatus(java.lang.String status)
For bank accounts, possible values are `new`, `validated`, `verified`, `verification_failed`,
or `errored`.
|
BankAccount |
update(BankAccountUpdateOnAccountParams params)
Updates the metadata, account holder name, and account holder type of a bank account belonging
to a Custom account, and optionally sets it as the
default for its currency.
|
BankAccount |
update(BankAccountUpdateOnAccountParams params,
RequestOptions options)
Updates the metadata, account holder name, and account holder type of a bank account belonging
to a Custom account, and optionally sets it as the
default for its currency.
|
BankAccount |
update(BankAccountUpdateOnCustomerParams params)
Updates the metadata, account holder name, and account holder type of a bank account belonging
to a Custom account, and optionally sets it as the
default for its currency.
|
BankAccount |
update(BankAccountUpdateOnCustomerParams params,
RequestOptions options)
Updates the metadata, account holder name, and account holder type of a bank account belonging
to a Custom account, and optionally sets it as the
default for its currency.
|
BankAccount |
update(java.util.Map<java.lang.String,java.lang.Object> params)
Updates the metadata, account holder name, and account holder type of a bank account belonging
to a Custom account, and optionally sets it as the
default for its currency.
|
BankAccount |
update(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Updates the metadata, account holder name, and account holder type of a bank account belonging
to a Custom account, and optionally sets it as the
default for its currency.
|
BankAccount |
verify()
Verify a specified bank account for a given customer.
|
BankAccount |
verify(BankAccountVerifyParams params)
Verify a specified bank account for a given customer.
|
BankAccount |
verify(BankAccountVerifyParams params,
RequestOptions options)
Verify a specified bank account for a given customer.
|
BankAccount |
verify(java.util.Map<java.lang.String,java.lang.Object> params)
Verify a specified bank account for a given customer.
|
BankAccount |
verify(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Verify a specified bank account for a given customer.
|
BankAccount |
verify(RequestOptions options)
Verify a specified bank account for a given customer.
|
checkNullTypedParams, classUrl, classUrl, instanceUrl, instanceUrl, multipartRequest, request, request, requestCollection, requestCollection, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeId
equals, getLastResponse, setLastResponse, toJson, toString
public java.lang.String getAccount()
public void setAccount(java.lang.String id)
public Account getAccountObject()
public void setAccountObject(Account expandableObject)
public java.lang.String getCustomer()
public void setCustomer(java.lang.String id)
public Customer getCustomerObject()
public void setCustomerObject(Customer expandableObject)
public BankAccount update(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
You can re-enable a disabled bank account by performing an update call without providing any arguments or changes.
Updates the account_holder_name
, account_holder_type
, and
metadata
of a bank account belonging to a customer. Other bank account details are not
editable, by design.
update
in interface ExternalAccount
update
in interface MetadataStore<BankAccount>
StripeException
public BankAccount update(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
You can re-enable a disabled bank account by performing an update call without providing any arguments or changes.
Updates the account_holder_name
, account_holder_type
, and
metadata
of a bank account belonging to a customer. Other bank account details are not
editable, by design.
update
in interface ExternalAccount
update
in interface MetadataStore<BankAccount>
StripeException
public BankAccount update(BankAccountUpdateOnAccountParams params) throws StripeException
You can re-enable a disabled bank account by performing an update call without providing any arguments or changes.
Updates the account_holder_name
, account_holder_type
, and
metadata
of a bank account belonging to a customer. Other bank account details are not
editable, by design.
StripeException
public BankAccount update(BankAccountUpdateOnAccountParams params, RequestOptions options) throws StripeException
You can re-enable a disabled bank account by performing an update call without providing any arguments or changes.
Updates the account_holder_name
, account_holder_type
, and
metadata
of a bank account belonging to a customer. Other bank account details are not
editable, by design.
StripeException
public BankAccount update(BankAccountUpdateOnCustomerParams params) throws StripeException
You can re-enable a disabled bank account by performing an update call without providing any arguments or changes.
Updates the account_holder_name
, account_holder_type
, and
metadata
of a bank account belonging to a customer. Other bank account details are not
editable, by design.
StripeException
public BankAccount update(BankAccountUpdateOnCustomerParams params, RequestOptions options) throws StripeException
You can re-enable a disabled bank account by performing an update call without providing any arguments or changes.
Updates the account_holder_name
, account_holder_type
, and
metadata
of a bank account belonging to a customer. Other bank account details are not
editable, by design.
StripeException
public BankAccount delete() throws StripeException
Delete a specified source for a given customer.
delete
in interface ExternalAccount
StripeException
public BankAccount delete(RequestOptions options) throws StripeException
Delete a specified source for a given customer.
delete
in interface ExternalAccount
StripeException
public BankAccount delete(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
Delete a specified source for a given customer.
delete
in interface ExternalAccount
StripeException
public BankAccount delete(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Delete a specified source for a given customer.
delete
in interface ExternalAccount
StripeException
public BankAccount verify() throws StripeException
StripeException
public BankAccount verify(RequestOptions options) throws StripeException
StripeException
public BankAccount verify(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
StripeException
public BankAccount verify(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
StripeException
public BankAccount verify(BankAccountVerifyParams params) throws StripeException
StripeException
public BankAccount verify(BankAccountVerifyParams params, RequestOptions options) throws StripeException
StripeException
public java.lang.String getAccountHolderName()
public java.lang.String getAccountHolderType()
public java.lang.String getBankName()
public java.lang.String getCountry()
public java.lang.String getCurrency()
public java.lang.Boolean getDefaultForCurrency()
public java.lang.Boolean getDeleted()
public java.lang.String getFingerprint()
public java.lang.String getLast4()
public java.lang.String getObject()
public java.lang.String getRoutingNumber()
public java.lang.String getStatus()
For external accounts, possible values are `new` and `errored`. Validations aren't run against external accounts because they're only used for payouts. This means the other statuses don't apply. If a transfer fails, the status is set to `errored` and transfers are stopped until account details are updated.
public void setAccountHolderName(java.lang.String accountHolderName)
public void setAccountHolderType(java.lang.String accountHolderType)
public void setBankName(java.lang.String bankName)
public void setCountry(java.lang.String country)
public void setCurrency(java.lang.String currency)
public void setDefaultForCurrency(java.lang.Boolean defaultForCurrency)
public void setDeleted(java.lang.Boolean deleted)
public void setFingerprint(java.lang.String fingerprint)
public void setId(java.lang.String id)
public void setLast4(java.lang.String last4)
public void setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
public void setObject(java.lang.String object)
public void setRoutingNumber(java.lang.String routingNumber)
public void setStatus(java.lang.String status)
For external accounts, possible values are `new` and `errored`. Validations aren't run against external accounts because they're only used for payouts. This means the other statuses don't apply. If a transfer fails, the status is set to `errored` and transfers are stopped until account details are updated.
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
protected boolean canEqual(java.lang.Object other)
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String getId()
public java.util.Map<java.lang.String,java.lang.String> getMetadata()
getMetadata
in interface MetadataStore<BankAccount>