[−][src]Struct stripe::Account
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: bool
details_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]
client: &Client,
id: &AccountId,
expand: &[&str]
) -> Response<Account>
Retrieves the details of an account.
pub fn update(
client: &Client,
id: &AccountId,
params: UpdateAccount
) -> Response<Account>
[src]
client: &Client,
id: &AccountId,
params: UpdateAccount
) -> Response<Account>
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.
fn id(&self) -> Self::Id
[src]
fn object(&self) -> &'static str
[src]
impl Clone for Account
[src]
impl Debug for Account
[src]
impl Serialize for Account
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for Account
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
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]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> Erased for T
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self