pub struct Account {
Show 22 fields pub id: AccountId, pub business_profile: Option<BusinessProfile>, pub business_type: Option<AccountBusinessType>, pub capabilities: Option<AccountCapabilities>, pub charges_enabled: Option<bool>, pub company: Option<Company>, pub controller: Option<AccountUnificationAccountController>, 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 future_requirements: Option<AccountFutureRequirements>, 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>,
}
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<BusinessProfile>

Business information about the account.

§business_type: Option<AccountBusinessType>

The business type.

§capabilities: Option<AccountCapabilities>§charges_enabled: Option<bool>

Whether the account can create live charges.

§company: Option<Company>§controller: Option<AccountUnificationAccountController>§country: Option<String>

The account’s country.

§created: Option<Timestamp>

Time at which the account was connected.

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

Whether account details have been submitted.

Standard accounts cannot receive payouts before this is true.

§email: Option<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<AccountFutureRequirements>§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§

source§

impl Account

source

pub fn list( client: &Client, params: &ListAccounts<'_> ) -> Response<List<Account>>

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

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

source

pub fn create(client: &Client, params: CreateAccount<'_>) -> Response<Account>

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

If you’ve already collected information for your connected accounts, you can pre-fill that information when creating the account.

Connect Onboarding won’t ask for the pre-filled information during account onboarding. You can pre-fill any information on the account.

source

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

Retrieves the details of an account.

source

pub fn update( client: &Client, id: &AccountId, params: UpdateAccount<'_> ) -> Response<Account>

Updates a connected account by setting the values of the parameters passed.

Any parameters not provided are left unchanged. For Custom accounts, you can update any information on the account. For other accounts, you can update all information until that account has started to go through Connect Onboarding. Once you create an Account Link for a Standard or Express account, some parameters can no longer be changed. These are marked as Custom Only or Custom and Express below. To update your own account, use the Dashboard. Refer to our Connect documentation to learn more about updating accounts.

source

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

With Connect, you can delete accounts you manage.

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

Standard accounts created using live-mode keys cannot be deleted. 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§

source§

impl Clone for Account

source§

fn clone(&self) -> Account

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Account

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Account

source§

fn default() -> Account

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for Account

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Object for Account

§

type Id = AccountId

The canonical id type for this object.
source§

fn id(&self) -> Self::Id

The id of the object.
source§

fn object(&self) -> &'static str

The object’s type, typically represented in wire format as the object property.
source§

impl Serialize for Account

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

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

§

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

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,