Struct stripe::Account[][src]

pub struct Account {
    pub id: AccountId,
    pub business_profile: Option<BusinessProfile>,
    pub business_type: Option<BusinessType>,
    pub capabilities: Option<AccountCapabilities>,
    pub charges_enabled: Option<bool>,
    pub company: Option<Company>,
    pub country: Option<String>,
    pub created: Option<Timestamp>,
    pub default_currency: Option<Currency>,
    pub deleted: bool,
    pub details_submitted: Option<bool>,
    pub email: Option<String>,
    pub external_accounts: List<ExternalAccount>,
    pub individual: Option<Person>,
    pub metadata: Metadata,
    pub payouts_enabled: Option<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>

Business information about the account.

business_type: Option<BusinessType>

The business type.

capabilities: Option<AccountCapabilities>charges_enabled: Option<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: Option<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: Option<bool>

Whether Stripe can send payouts to this account.

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

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.

Implementations

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.

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 can delete Custom or Express accounts you manage.

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

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

impl Clone for Account[src]

impl Debug for Account[src]

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

impl Object for Account[src]

type Id = AccountId

The canonical id type for this object.

impl Serialize for Account[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

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<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]