Struct stripe::PersonParams

source ·
pub struct PersonParams {
Show 23 fields pub address: Option<Address>, pub address_kana: Option<Address>, pub address_kanji: Option<Address>, pub dob: Option<PersonParamsDob>, pub email: Option<String>, pub first_name: Option<String>, pub first_name_kana: Option<String>, pub first_name_kanji: Option<String>, pub full_name_aliases: Option<Vec<String>>, pub gender: Option<String>, pub id_number: Option<String>, pub id_number_secondary: Option<String>, pub last_name: Option<String>, pub last_name_kana: Option<String>, pub last_name_kanji: Option<String>, pub maiden_name: Option<String>, pub metadata: Option<Metadata>, pub phone: Option<String>, pub political_exposure: Option<PersonParamsPoliticalExposure>, pub registered_address: Option<PersonParamsRegisteredAddress>, pub relationship: Option<PersonParamsRelationship>, pub ssn_last_4: Option<String>, pub verification: Option<PersonVerificationParams>,
}

Fields§

§address: Option<Address>

The individual’s primary address.

§address_kana: Option<Address>

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

§address_kanji: Option<Address>

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

§dob: Option<PersonParamsDob>

The individual’s date of birth.

§email: Option<String>

The individual’s email address.

§first_name: Option<String>

The individual’s first name.

§first_name_kana: Option<String>

The Kana variation of the the individual’s first name (Japan only).

§first_name_kanji: Option<String>

The Kanji variation of the individual’s first name (Japan only).

§full_name_aliases: Option<Vec<String>>

A list of alternate names or aliases that the individual is known by.

§gender: Option<String>

The individual’s gender (International regulations require either “male” or “female”).

§id_number: Option<String>

The government-issued ID number of the individual, as appropriate for the representative’s country.

(Examples are a Social Security Number in the U.S., or a Social Insurance Number in Canada). Instead of the number itself, you can also provide a PII token created with Stripe.js.

§id_number_secondary: Option<String>

The government-issued secondary ID number of the individual, as appropriate for the representative’s country, will be used for enhanced verification checks.

In Thailand, this would be the laser code found on the back of an ID card. Instead of the number itself, you can also provide a PII token created with Stripe.js.

§last_name: Option<String>

The individual’s last name.

§last_name_kana: Option<String>

The Kana variation of the individual’s last name (Japan only).

§last_name_kanji: Option<String>

The Kanji variation of the individual’s last name (Japan only).

§maiden_name: Option<String>

The individual’s maiden name.

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

§phone: Option<String>

The individual’s phone number.

§political_exposure: Option<PersonParamsPoliticalExposure>

Indicates if the person or any of their representatives, family members, or other closely related persons, declares that they hold or have held an important public job or function, in any jurisdiction.

§registered_address: Option<PersonParamsRegisteredAddress>

The individual’s registered address.

§relationship: Option<PersonParamsRelationship>

Describes the person’s relationship to the account.

§ssn_last_4: Option<String>

The last four digits of the individual’s Social Security Number (U.S.

only).

§verification: Option<PersonVerificationParams>

The individual’s verification document information.

Trait Implementations§

source§

impl Clone for PersonParams

source§

fn clone(&self) -> PersonParams

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 PersonParams

source§

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

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

impl Default for PersonParams

source§

fn default() -> PersonParams

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

impl<'de> Deserialize<'de> for PersonParams

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 PersonParams

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