pub struct UpdateExternalAccount { /* private fields */ }
Expand description
Updates the metadata, account holder name, account holder type of a bank account belonging to a connected account and optionally sets it as the default for its currency. Other bank account details are not editable by design.
You can only update bank accounts when account.controller.requirement_collection is application
, which includes Custom accounts.
You can re-enable a disabled bank account by performing an update call without providing any arguments or changes.
Implementations§
Source§impl UpdateExternalAccount
impl UpdateExternalAccount
Sourcepub fn new(account: impl Into<AccountId>, id: impl Into<String>) -> Self
pub fn new(account: impl Into<AccountId>, id: impl Into<String>) -> Self
Construct a new UpdateExternalAccount
.
Sourcepub fn account_holder_name(self, account_holder_name: impl Into<String>) -> Self
pub fn account_holder_name(self, account_holder_name: impl Into<String>) -> Self
The name of the person or business that owns the bank account.
Sourcepub fn account_holder_type(
self,
account_holder_type: impl Into<UpdateExternalAccountAccountHolderType>,
) -> Self
pub fn account_holder_type( self, account_holder_type: impl Into<UpdateExternalAccountAccountHolderType>, ) -> Self
The type of entity that holds the account. This can be either individual
or company
.
Sourcepub fn account_type(
self,
account_type: impl Into<UpdateExternalAccountAccountType>,
) -> Self
pub fn account_type( self, account_type: impl Into<UpdateExternalAccountAccountType>, ) -> Self
The bank account type.
This can only be checking
or savings
in most countries.
In Japan, this can only be futsu
or toza
.
Sourcepub fn address_city(self, address_city: impl Into<String>) -> Self
pub fn address_city(self, address_city: impl Into<String>) -> Self
City/District/Suburb/Town/Village.
Sourcepub fn address_country(self, address_country: impl Into<String>) -> Self
pub fn address_country(self, address_country: impl Into<String>) -> Self
Billing address country, if provided when creating card.
Sourcepub fn address_line1(self, address_line1: impl Into<String>) -> Self
pub fn address_line1(self, address_line1: impl Into<String>) -> Self
Address line 1 (Street address/PO Box/Company name).
Sourcepub fn address_line2(self, address_line2: impl Into<String>) -> Self
pub fn address_line2(self, address_line2: impl Into<String>) -> Self
Address line 2 (Apartment/Suite/Unit/Building).
Sourcepub fn address_state(self, address_state: impl Into<String>) -> Self
pub fn address_state(self, address_state: impl Into<String>) -> Self
State/County/Province/Region.
Sourcepub fn address_zip(self, address_zip: impl Into<String>) -> Self
pub fn address_zip(self, address_zip: impl Into<String>) -> Self
ZIP or postal code.
Sourcepub fn default_for_currency(self, default_for_currency: impl Into<bool>) -> Self
pub fn default_for_currency(self, default_for_currency: impl Into<bool>) -> Self
When set to true, this becomes the default external account for its currency.
Sourcepub fn documents(
self,
documents: impl Into<UpdateExternalAccountDocuments>,
) -> Self
pub fn documents( self, documents: impl Into<UpdateExternalAccountDocuments>, ) -> Self
Documents that may be submitted to satisfy various informational requests.
Sourcepub fn exp_month(self, exp_month: impl Into<String>) -> Self
pub fn exp_month(self, exp_month: impl Into<String>) -> Self
Two digit number representing the card’s expiration month.
Sourcepub fn exp_year(self, exp_year: impl Into<String>) -> Self
pub fn exp_year(self, exp_year: impl Into<String>) -> Self
Four digit number representing the card’s expiration year.
Sourcepub fn expand(self, expand: impl Into<Vec<String>>) -> Self
pub fn expand(self, expand: impl Into<Vec<String>>) -> Self
Specifies which fields in the response should be expanded.
Sourcepub fn metadata(self, metadata: impl Into<HashMap<String, String>>) -> Self
pub fn metadata(self, metadata: impl Into<HashMap<String, String>>) -> Self
Set of key-value pairs that you can attach to an object.
This can be useful for storing additional information about the object in a structured format.
Individual keys can be unset by posting an empty value to them.
All keys can be unset by posting an empty value to metadata
.
Source§impl UpdateExternalAccount
impl UpdateExternalAccount
Sourcepub async fn send<C: StripeClient>(
&self,
client: &C,
) -> Result<<Self as StripeRequest>::Output, C::Err>
pub async fn send<C: StripeClient>( &self, client: &C, ) -> Result<<Self as StripeRequest>::Output, C::Err>
Send the request and return the deserialized response.
Sourcepub fn send_blocking<C: StripeBlockingClient>(
&self,
client: &C,
) -> Result<<Self as StripeRequest>::Output, C::Err>
pub fn send_blocking<C: StripeBlockingClient>( &self, client: &C, ) -> Result<<Self as StripeRequest>::Output, C::Err>
Send the request and return the deserialized response, blocking until completion.
Trait Implementations§
Source§impl Clone for UpdateExternalAccount
impl Clone for UpdateExternalAccount
Source§fn clone(&self) -> UpdateExternalAccount
fn clone(&self) -> UpdateExternalAccount
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more