Struct stripe::CompanyParams

source ·
pub struct CompanyParams {
Show 19 fields pub address: Option<Address>, pub address_kana: Option<Address>, pub address_kanji: Option<Address>, pub directors_provided: Option<bool>, pub executives_provided: Option<bool>, pub export_license_id: Option<String>, pub export_purpose_code: Option<String>, pub name: Option<String>, pub name_kana: Option<String>, pub name_kanji: Option<String>, pub owners_provided: Option<bool>, pub ownership_declaration: Option<CompanyParamsOwnershipDeclaration>, pub phone: Option<String>, pub registration_number: Option<String>, pub structure: Option<CompanyParamsStructure>, pub tax_id: Option<String>, pub tax_id_registrar: Option<String>, pub vat_id: Option<String>, pub verification: Option<CompanyVerificationParams>,
}

Fields§

§address: Option<Address>

The company’s primary address.

§address_kana: Option<Address>

The Kana variation of the company’s primary address (Japan only).

§address_kanji: Option<Address>

The Kanji variation of the company’s primary address (Japan only).

§directors_provided: Option<bool>

Whether the company’s directors have been provided.

Set this Boolean to true after creating all the company’s directors with the Persons API for accounts with a relationship.director requirement. This value is not automatically set to true after creating directors, so it needs to be updated to indicate all directors have been provided.

§executives_provided: Option<bool>

Whether the company’s executives have been provided.

Set this Boolean to true after creating all the company’s executives with the Persons API for accounts with a relationship.executive requirement.

§export_license_id: Option<String>

The export license ID number of the company, also referred as Import Export Code (India only).

§export_purpose_code: Option<String>

The purpose code to use for export transactions (India only).

§name: Option<String>

The company’s legal name.

§name_kana: Option<String>

The Kana variation of the company’s legal name (Japan only).

§name_kanji: Option<String>

The Kanji variation of the company’s legal name (Japan only).

§owners_provided: Option<bool>

Whether the company’s owners have been provided.

Set this Boolean to true after creating all the company’s owners with the Persons API for accounts with a relationship.owner requirement.

§ownership_declaration: Option<CompanyParamsOwnershipDeclaration>

This hash is used to attest that the beneficial owner information provided to Stripe is both current and correct.

§phone: Option<String>

The company’s phone number (used for verification).

§registration_number: Option<String>

The identification number given to a company when it is registered or incorporated, if distinct from the identification number used for filing taxes.

(Examples are the CIN for companies and LLP IN for partnerships in India, and the Company Registration Number in Hong Kong).

§structure: Option<CompanyParamsStructure>

The category identifying the legal structure of the company or legal entity.

See Business structure for more details. Pass an empty string to unset this value.

§tax_id: Option<String>

The business ID number of the company, as appropriate for the company’s country.

(Examples are an Employer ID Number in the U.S., a Business Number in Canada, or a Company Number in the UK.).

§tax_id_registrar: Option<String>

The jurisdiction in which the tax_id is registered (Germany-based companies only).

§vat_id: Option<String>

The VAT number of the company.

§verification: Option<CompanyVerificationParams>

Information on the verification state of the company.

Trait Implementations§

source§

impl Clone for CompanyParams

source§

fn clone(&self) -> CompanyParams

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 CompanyParams

source§

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

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

impl Default for CompanyParams

source§

fn default() -> CompanyParams

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

impl<'de> Deserialize<'de> for CompanyParams

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 Serialize for CompanyParams

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

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