[][src]Struct stripe::Account

pub struct Account {
    pub id: AccountId,
    pub business_profile: Option<BusinessProfile>,
    pub business_type: Option<BusinessType>,
    pub capabilities: Option<AccountCapabilities>,
    pub charges_enabled: bool,
    pub company: Option<Company>,
    pub country: Option<String>,
    pub created: Option<Timestamp>,
    pub default_currency: Option<Currency>,
    pub deleted: bool,
    pub details_submitted: bool,
    pub email: Option<String>,
    pub external_accounts: List<ExternalAccount>,
    pub individual: Option<Person>,
    pub metadata: Metadata,
    pub payouts_enabled: bool,
    pub requirements: Option<AccountRequirements>,
    pub settings: Option<AccountSettings>,
    pub tos_acceptance: Option<TosAcceptance>,
    pub type_: Option<AccountType>,
}

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<BusinessProfile>

Optional information related to the business.

business_type: Option<BusinessType>

The business type.

Can be individual or company.

capabilities: Option<AccountCapabilities>charges_enabled: bool

Whether the account can create live charges.

company: Option<Company>country: Option<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: booldetails_submitted: bool

Whether account details have been submitted.

Standard accounts cannot receive payouts before this is true.

email: Option<String>

The primary user's email address.

external_accounts: List<ExternalAccount>

External accounts (bank accounts and debit cards) currently attached to this account.

individual: Option<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: bool

Whether Stripe can send payouts to this account.

requirements: Option<AccountRequirements>settings: Option<AccountSettings>

Account options for customizing how the account functions within Stripe.

tos_acceptance: Option<TosAcceptance>type_: Option<AccountType>

The Stripe account type.

Can be standard, express, or custom.

Methods

impl Account[src]

pub fn list(client: &Client, params: ListAccounts) -> Response<List<Account>>[src]

Returns a list of accounts connected to your platform via Connect.

If you’re not a platform, the list is empty.

pub fn create(client: &Client, params: CreateAccount) -> Response<Account>[src]

With Connect, you can create Stripe accounts for your users. To do this, you’ll first need to register your platform.

For Standard accounts, parameters other than country, email, and type are used to prefill the account application that we ask the account holder to complete.

pub fn retrieve(
    client: &Client,
    id: &AccountId,
    expand: &[&str]
) -> Response<Account>
[src]

Retrieves the details of an account.

pub fn update(
    client: &Client,
    id: &AccountId,
    params: UpdateAccount
) -> Response<Account>
[src]

Updates a connected Express or Custom 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 supported by both account types. To update your own account, use the Dashboard. Refer to our Connect documentation to learn more about updating accounts.

pub fn delete(client: &Client, id: &AccountId) -> Response<Deleted<AccountId>>[src]

With Connect, you may delete Custom accounts you manage.

Custom accounts created using test-mode keys can be deleted at any time.

Custom accounts created using live-mode keys may only be deleted once all balances are zero. If you are looking to close your own account, use the data tab in your account settings instead.

Trait Implementations

impl Object for Account[src]

type Id = AccountId

The canonical id type for this object.

impl Clone for Account[src]

impl Debug for Account[src]

impl Serialize for Account[src]

impl<'de> Deserialize<'de> for Account[src]

Auto Trait Implementations

impl Unpin for Account

impl Sync for Account

impl Send for Account

impl UnwindSafe for Account

impl RefUnwindSafe for Account

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err

impl<T> Same<T> for T

type Output = T

Should always be Self