UpdatePerson

Struct UpdatePerson 

Source
pub struct UpdatePerson { /* private fields */ }
Expand description

Updates an existing person.

Implementations§

Source§

impl UpdatePerson

Source

pub fn new(account: impl Into<AccountId>, person: impl Into<String>) -> Self

Construct a new UpdatePerson.

Source

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.

Source

pub fn address(self, address: impl Into<UpdatePersonAddress>) -> Self

The person’s address.

Source

pub fn address_kana( self, address_kana: impl Into<UpdatePersonAddressKana>, ) -> Self

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

Source

pub fn address_kanji( self, address_kanji: impl Into<UpdatePersonAddressKanji>, ) -> Self

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

Source

pub fn dob(self, dob: impl Into<DateOfBirthSpecs>) -> Self

The person’s date of birth.

Source

pub fn documents(self, documents: impl Into<PersonDocumentsSpecs>) -> Self

Documents that may be submitted to satisfy various informational requests.

Source

pub fn email(self, email: impl Into<String>) -> Self

The person’s email address.

Source

pub fn expand(self, expand: impl Into<Vec<String>>) -> Self

Specifies which fields in the response should be expanded.

Source

pub fn first_name(self, first_name: impl Into<String>) -> Self

The person’s first name.

Source

pub fn first_name_kana(self, first_name_kana: impl Into<String>) -> Self

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

Source

pub fn first_name_kanji(self, first_name_kanji: impl Into<String>) -> Self

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

Source

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.

Source

pub fn gender(self, gender: impl Into<String>) -> Self

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

Source

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.

Source

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.

Source

pub fn last_name(self, last_name: impl Into<String>) -> Self

The person’s last name.

Source

pub fn last_name_kana(self, last_name_kana: impl Into<String>) -> Self

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

Source

pub fn last_name_kanji(self, last_name_kanji: impl Into<String>) -> Self

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

Source

pub fn maiden_name(self, maiden_name: impl Into<String>) -> Self

The person’s maiden name.

Source

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.

Source

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.

Source

pub fn person_token(self, person_token: impl Into<String>) -> Self

A person token, used to securely provide details to the person.

Source

pub fn phone(self, phone: impl Into<String>) -> Self

The person’s phone number.

Source

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.

Source

pub fn registered_address( self, registered_address: impl Into<UpdatePersonRegisteredAddress>, ) -> Self

The person’s registered address.

Source

pub fn relationship(self, relationship: impl Into<RelationshipSpecs>) -> Self

The relationship that this person has with the account’s legal entity.

Source

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

Source

pub fn us_cfpb_data( self, us_cfpb_data: impl Into<UpdatePersonUsCfpbData>, ) -> Self

Demographic data related to the person.

Source

pub fn verification( self, verification: impl Into<PersonVerificationSpecs>, ) -> Self

The person’s verification status.

Source§

impl UpdatePerson

Source

pub async fn send<C: StripeClient>( &self, client: &C, ) -> Result<<Self as StripeRequest>::Output, C::Err>

Send the request and return the deserialized response.

Source

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 UpdatePerson

Source§

fn clone(&self) -> UpdatePerson

Returns a duplicate 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 UpdatePerson

Source§

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

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

impl Serialize for UpdatePerson

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

impl StripeRequest for UpdatePerson

Source§

type Output = Person

The data returned from the eventual API call.
Source§

fn build(&self) -> RequestBuilder

Convert the struct into library-agnostic data that can be used by compatible clients to make API calls.
Source§

fn customize(&self) -> CustomizableStripeRequest<Self::Output>

Convert to a builder allowing per-request customization.

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

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

Source§

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

Source§

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