Struct stripe::CreateAccount

source ·
pub struct CreateAccount<'a> {
Show 16 fields pub account_token: Option<&'a str>, pub business_profile: Option<BusinessProfile>, pub business_type: Option<AccountBusinessType>, pub capabilities: Option<CreateAccountCapabilities>, pub company: Option<CompanyParams>, pub country: Option<&'a str>, pub default_currency: Option<Currency>, pub documents: Option<CreateAccountDocuments>, pub email: Option<&'a str>, pub expand: &'a [&'a str], pub external_account: Option<&'a str>, pub individual: Option<PersonParams>, pub metadata: Option<Metadata>, pub settings: Option<AccountSettingsParams>, pub tos_acceptance: Option<AcceptTos>, pub type_: Option<AccountType>,
}
Expand description

The parameters for Account::create.

Fields§

§account_token: Option<&'a str>

An account token, used to securely provide details to the account.

§business_profile: Option<BusinessProfile>

Business information about the account.

§business_type: Option<AccountBusinessType>

The business type.

Once you create an Account Link or Account Session, this property can only be updated for Custom accounts.

§capabilities: Option<CreateAccountCapabilities>

Each key of the dictionary represents a capability, and each capability maps to its settings (e.g.

whether it has been requested or not). Each capability will be inactive until you have provided its specific requirements and Stripe has verified them. An account may have some of its requested capabilities be active and some be inactive.

§company: Option<CompanyParams>

Information about the company or business.

This field is available for any business_type. Once you create an Account Link or Account Session, this property can only be updated for Custom accounts.

§country: Option<&'a str>

The country in which the account holder resides, or in which the business is legally established.

This should be an ISO 3166-1 alpha-2 country code. For example, if you are in the United States and the business for which you’re creating an account is legally represented in Canada, you would use CA as the country for the account being created. Available countries include Stripe’s global markets as well as countries where cross-border payouts are supported.

§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.

§documents: Option<CreateAccountDocuments>

Documents that may be submitted to satisfy various informational requests.

§email: Option<&'a str>

The email address of the account holder.

This is only to make the account easier to identify to you. Stripe only emails Custom accounts with your consent.

§expand: &'a [&'a str]

Specifies which fields in the response should be expanded.

§external_account: Option<&'a str>

A card or bank account to attach to the account for receiving payouts (you won’t be able to use it for top-ups).

You can provide either a token, like the ones returned by Stripe.js, or a dictionary, as documented in the external_account parameter for bank account creation. By default, providing an external account sets it as the new default external account for its currency, and deletes the old default if one exists. To add additional external accounts without replacing the existing default for the currency, use the bank account or card creation APIs. After you create an Account Link or Account Session, this property can only be updated for Custom accounts.

§individual: Option<PersonParams>

Information about the person represented by the account.

This field is null unless business_type is set to individual. Once you create an Account Link or Account Session, this property can only be updated for Custom accounts.

§metadata: Option<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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to metadata.

§settings: Option<AccountSettingsParams>

Options for customizing how the account functions within Stripe.

§tos_acceptance: Option<AcceptTos>

Details on the account’s acceptance of the Stripe Services Agreement This property can only be updated for Custom accounts.

§type_: Option<AccountType>

The type of Stripe account to create.

May be one of custom, express or standard.

Implementations§

source§

impl<'a> CreateAccount<'a>

source

pub fn new() -> Self

Trait Implementations§

source§

impl<'a> Clone for CreateAccount<'a>

source§

fn clone(&self) -> CreateAccount<'a>

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<'a> Debug for CreateAccount<'a>

source§

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

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

impl<'a> Default for CreateAccount<'a>

source§

fn default() -> CreateAccount<'a>

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

impl<'a> Serialize for CreateAccount<'a>

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§

§

impl<'a> Freeze for CreateAccount<'a>

§

impl<'a> RefUnwindSafe for CreateAccount<'a>

§

impl<'a> Send for CreateAccount<'a>

§

impl<'a> Sync for CreateAccount<'a>

§

impl<'a> Unpin for CreateAccount<'a>

§

impl<'a> UnwindSafe for CreateAccount<'a>

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

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 T
where U: From<T>,

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 for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where 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 T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

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

Performs the conversion.
source§

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

§

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

The type returned in the event of a conversion error.
source§

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

Performs the conversion.
source§

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

source§

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