Struct stripe::Account [−][src]
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: bool
details_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]
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.
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]
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 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]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
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 Serialize for Account
[src]
Auto Trait Implementations
impl RefUnwindSafe for Account
[src]
impl Send for Account
[src]
impl Sync for Account
[src]
impl Unpin for Account
[src]
impl UnwindSafe for Account
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut 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.
pub 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.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,