public class BankAccount extends ApiResource implements MetadataStore<BankAccount>, ExternalAccount, PaymentSource
ApiResource.RequestMethod
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 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()
The last four digits of the bank account number.
|
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 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)
The last four digits of the bank account number.
|
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, request, request, requestCollection, requestCollection, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeId
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getLastResponse, setLastResponse
public java.lang.String getAccount()
account
object.public void setAccount(java.lang.String id)
public Account getAccountObject()
account
.public void setAccountObject(Account expandableObject)
public java.lang.String getCustomer()
customer
object.public void setCustomer(java.lang.String id)
public Customer getCustomerObject()
customer
.public void setCustomerObject(Customer expandableObject)
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 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 java.lang.String getAccountHolderName()
public java.lang.String getAccountHolderType()
individual
or company
.public java.lang.String getBankName()
WELLS FARGO
).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()
Equal to bank_account
.
public java.lang.String getRoutingNumber()
public java.lang.String getStatus()
new
, validated
, verified
, verification_failed
, or errored
. A bank account that hasn't had any activity or
validation performed is new
. If Stripe can determine that the bank account exists, its
status will be validated
. Note that there often isn’t enough information to know (e.g.,
for smaller credit unions), and the validation is not always run. If customer bank account
verification has succeeded, the bank account status will be verified
. If the
verification failed for any reason, such as microdeposit failure, the status will be verification_failed
. If a transfer sent to this bank account fails, we'll set the status to
errored
and will not continue to send transfers until the bank details are updated.
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)
individual
or company
.public void setBankName(java.lang.String bankName)
WELLS FARGO
).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)
Equal to bank_account
.
public void setRoutingNumber(java.lang.String routingNumber)
public void setStatus(java.lang.String status)
new
, validated
, verified
, verification_failed
, or errored
. A bank account that hasn't had any activity or
validation performed is new
. If Stripe can determine that the bank account exists, its
status will be validated
. Note that there often isn’t enough information to know (e.g.,
for smaller credit unions), and the validation is not always run. If customer bank account
verification has succeeded, the bank account status will be verified
. If the
verification failed for any reason, such as microdeposit failure, the status will be verification_failed
. If a transfer sent to this bank account fails, we'll set the status to
errored
and will not continue to send transfers until the bank details are updated.
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>