pub struct CreateAccountPerson { /* private fields */ }
Expand description
Creates a new person.
Implementations§
Source§impl CreateAccountPerson
impl CreateAccountPerson
Sourcepub fn additional_tos_acceptances(
self,
additional_tos_acceptances: impl Into<PersonAdditionalTosAcceptancesSpecs>,
) -> Self
pub fn additional_tos_acceptances( self, additional_tos_acceptances: impl Into<PersonAdditionalTosAcceptancesSpecs>, ) -> Self
Details on the legal guardian’s or authorizer’s acceptance of the required Stripe agreements.
Sourcepub fn address(self, address: impl Into<CreateAccountPersonAddress>) -> Self
pub fn address(self, address: impl Into<CreateAccountPersonAddress>) -> Self
The person’s address.
Sourcepub fn address_kana(
self,
address_kana: impl Into<CreateAccountPersonAddressKana>,
) -> Self
pub fn address_kana( self, address_kana: impl Into<CreateAccountPersonAddressKana>, ) -> Self
The Kana variation of the person’s address (Japan only).
Sourcepub fn address_kanji(
self,
address_kanji: impl Into<CreateAccountPersonAddressKanji>,
) -> Self
pub fn address_kanji( self, address_kanji: impl Into<CreateAccountPersonAddressKanji>, ) -> Self
The Kanji variation of the person’s address (Japan only).
Sourcepub fn dob(self, dob: impl Into<DateOfBirthSpecs>) -> Self
pub fn dob(self, dob: impl Into<DateOfBirthSpecs>) -> Self
The person’s date of birth.
Sourcepub fn documents(self, documents: impl Into<PersonDocumentsSpecs>) -> Self
pub fn documents(self, documents: impl Into<PersonDocumentsSpecs>) -> Self
Documents that may be submitted to satisfy various informational requests.
Sourcepub fn expand(self, expand: impl Into<Vec<String>>) -> Self
pub fn expand(self, expand: impl Into<Vec<String>>) -> Self
Specifies which fields in the response should be expanded.
Sourcepub fn first_name(self, first_name: impl Into<String>) -> Self
pub fn first_name(self, first_name: impl Into<String>) -> Self
The person’s first name.
Sourcepub fn first_name_kana(self, first_name_kana: impl Into<String>) -> Self
pub fn first_name_kana(self, first_name_kana: impl Into<String>) -> Self
The Kana variation of the person’s first name (Japan only).
Sourcepub fn first_name_kanji(self, first_name_kanji: impl Into<String>) -> Self
pub fn first_name_kanji(self, first_name_kanji: impl Into<String>) -> Self
The Kanji variation of the person’s first name (Japan only).
Sourcepub fn full_name_aliases(
self,
full_name_aliases: impl Into<Vec<String>>,
) -> Self
pub fn full_name_aliases( self, full_name_aliases: impl Into<Vec<String>>, ) -> Self
A list of alternate names or aliases that the person is known by.
Sourcepub fn gender(self, gender: impl Into<String>) -> Self
pub fn gender(self, gender: impl Into<String>) -> Self
The person’s gender (International regulations require either “male” or “female”).
Sourcepub fn id_number(self, id_number: impl Into<String>) -> Self
pub fn id_number(self, id_number: impl Into<String>) -> Self
The person’s ID number, as appropriate for their country. For example, a social security number in the U.S., social insurance number in Canada, etc. Instead of the number itself, you can also provide a PII token provided by Stripe.js.
Sourcepub fn id_number_secondary(self, id_number_secondary: impl Into<String>) -> Self
pub fn id_number_secondary(self, id_number_secondary: impl Into<String>) -> Self
The person’s secondary ID number, as appropriate for their 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 provided by Stripe.js.
Sourcepub fn last_name_kana(self, last_name_kana: impl Into<String>) -> Self
pub fn last_name_kana(self, last_name_kana: impl Into<String>) -> Self
The Kana variation of the person’s last name (Japan only).
Sourcepub fn last_name_kanji(self, last_name_kanji: impl Into<String>) -> Self
pub fn last_name_kanji(self, last_name_kanji: impl Into<String>) -> Self
The Kanji variation of the person’s last name (Japan only).
Sourcepub fn maiden_name(self, maiden_name: impl Into<String>) -> Self
pub fn maiden_name(self, maiden_name: impl Into<String>) -> Self
The person’s maiden name.
Sourcepub fn metadata(self, metadata: impl Into<HashMap<String, String>>) -> Self
pub fn metadata(self, metadata: impl Into<HashMap<String, String>>) -> Self
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
.
Sourcepub fn nationality(self, nationality: impl Into<String>) -> Self
pub fn nationality(self, nationality: impl Into<String>) -> Self
The country where the person is a national. Two-letter country code (ISO 3166-1 alpha-2), or “XX” if unavailable.
Sourcepub fn person_token(self, person_token: impl Into<String>) -> Self
pub fn person_token(self, person_token: impl Into<String>) -> Self
A person token, used to securely provide details to the person.
Sourcepub fn political_exposure(
self,
political_exposure: impl Into<PersonPoliticalExposure>,
) -> Self
pub fn political_exposure( self, political_exposure: impl Into<PersonPoliticalExposure>, ) -> Self
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.
Sourcepub fn registered_address(
self,
registered_address: impl Into<CreateAccountPersonRegisteredAddress>,
) -> Self
pub fn registered_address( self, registered_address: impl Into<CreateAccountPersonRegisteredAddress>, ) -> Self
The person’s registered address.
Sourcepub fn relationship(self, relationship: impl Into<RelationshipSpecs>) -> Self
pub fn relationship(self, relationship: impl Into<RelationshipSpecs>) -> Self
The relationship that this person has with the account’s legal entity.
Sourcepub fn ssn_last_4(self, ssn_last_4: impl Into<String>) -> Self
pub fn ssn_last_4(self, ssn_last_4: impl Into<String>) -> Self
The last four digits of the person’s Social Security number (U.S. only).
Sourcepub fn us_cfpb_data(
self,
us_cfpb_data: impl Into<CreateAccountPersonUsCfpbData>,
) -> Self
pub fn us_cfpb_data( self, us_cfpb_data: impl Into<CreateAccountPersonUsCfpbData>, ) -> Self
Demographic data related to the person.
Sourcepub fn verification(
self,
verification: impl Into<PersonVerificationSpecs>,
) -> Self
pub fn verification( self, verification: impl Into<PersonVerificationSpecs>, ) -> Self
The person’s verification status.
Source§impl CreateAccountPerson
impl CreateAccountPerson
Sourcepub async fn send<C: StripeClient>(
&self,
client: &C,
) -> Result<<Self as StripeRequest>::Output, C::Err>
pub async fn send<C: StripeClient>( &self, client: &C, ) -> Result<<Self as StripeRequest>::Output, C::Err>
Send the request and return the deserialized response.
Sourcepub fn send_blocking<C: StripeBlockingClient>(
&self,
client: &C,
) -> Result<<Self as StripeRequest>::Output, C::Err>
pub fn send_blocking<C: StripeBlockingClient>( &self, client: &C, ) -> Result<<Self as StripeRequest>::Output, C::Err>
Send the request and return the deserialized response, blocking until completion.
Trait Implementations§
Source§impl Clone for CreateAccountPerson
impl Clone for CreateAccountPerson
Source§fn clone(&self) -> CreateAccountPerson
fn clone(&self) -> CreateAccountPerson
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more