Struct stripe::Account [−][src]
pub struct Account {Show 22 fields
pub id: AccountId,
pub business_profile: Option<Box<BusinessProfile>>,
pub business_type: Option<Box<AccountBusinessType>>,
pub capabilities: Option<Box<AccountCapabilities>>,
pub charges_enabled: Option<Box<bool>>,
pub company: Option<Box<Company>>,
pub controller: Option<Box<AccountUnificationAccountController>>,
pub country: Option<Box<String>>,
pub created: Option<Timestamp>,
pub default_currency: Option<Currency>,
pub deleted: bool,
pub details_submitted: Option<Box<bool>>,
pub email: Option<Box<String>>,
pub external_accounts: List<ExternalAccount>,
pub future_requirements: Option<Box<AccountFutureRequirements>>,
pub individual: Option<Box<Person>>,
pub metadata: Metadata,
pub payouts_enabled: Option<Box<bool>>,
pub requirements: Option<Box<AccountRequirements>>,
pub settings: Option<Box<AccountSettings>>,
pub tos_acceptance: Option<Box<TosAcceptance>>,
pub type_: Option<AccountType>,
}
Expand description
The resource representing a Stripe “Account”.
For more details see https://stripe.com/docs/api/accounts/object
Fields
id: AccountId
Unique identifier for the object.
business_profile: Option<Box<BusinessProfile>>
Business information about the account.
business_type: Option<Box<AccountBusinessType>>
The business type.
capabilities: Option<Box<AccountCapabilities>>
charges_enabled: Option<Box<bool>>
Whether the account can create live charges.
company: Option<Box<Company>>
controller: Option<Box<AccountUnificationAccountController>>
country: Option<Box<String>>
The account’s country.
created: Option<Timestamp>
Time at which the object was created.
Measured in seconds since the Unix epoch.
default_currency: Option<Currency>
Three-letter ISO currency code representing the default currency for the account.
This must be a currency that Stripe supports in the account’s country.
deleted: bool
details_submitted: Option<Box<bool>>
Whether account details have been submitted.
Standard accounts cannot receive payouts before this is true.
email: Option<Box<String>>
An email address associated with the account.
You can treat this as metadata: it is not used for authentication or messaging account holders.
external_accounts: List<ExternalAccount>
External accounts (bank accounts and debit cards) currently attached to this account.
future_requirements: Option<Box<AccountFutureRequirements>>
individual: Option<Box<Person>>
metadata: Metadata
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.
payouts_enabled: Option<Box<bool>>
Whether Stripe can send payouts to this account.
requirements: Option<Box<AccountRequirements>>
settings: Option<Box<AccountSettings>>
Options for customizing how the account functions within Stripe.
tos_acceptance: Option<Box<TosAcceptance>>
type_: Option<AccountType>
The Stripe account type.
Can be standard
, express
, or custom
.
Implementations
Returns a list of accounts connected to your platform via Connect.
If you’re not a platform, the list is empty.
With Connect, you can create Stripe accounts for your users. To do this, you’ll first need to register your platform.
Retrieves the details of an account.
Updates a connected account by setting the values of the parameters passed.
Any parameters not provided are left unchanged. Most parameters can be changed only for Custom accounts. (These are marked Custom Only below.) Parameters marked Custom and Express are not supported for Standard accounts. To update your own account, use the Dashboard. Refer to our Connect documentation to learn more about updating accounts.
With Connect, you can delete accounts you manage.
Accounts created using test-mode keys can be deleted at any time.
Custom or Express accounts created using live-mode keys can only be deleted once all balances are zero. If you want to delete your own account, use the account information tab in your account settings instead.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Account
impl UnwindSafe for Account
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more