Struct IdentityVerificationSession

Source
pub struct IdentityVerificationSession {
Show 17 fields pub client_reference_id: Option<String>, pub client_secret: Option<String>, pub created: Timestamp, pub id: IdentityVerificationSessionId, pub last_error: Option<GelatoSessionLastError>, pub last_verification_report: Option<Expandable<IdentityVerificationReport>>, pub livemode: bool, pub metadata: HashMap<String, String>, pub options: Option<GelatoVerificationSessionOptions>, pub provided_details: Option<GelatoProvidedDetails>, pub redaction: Option<VerificationSessionRedaction>, pub related_customer: Option<String>, pub status: IdentityVerificationSessionStatus, pub type_: IdentityVerificationSessionType, pub url: Option<String>, pub verification_flow: Option<String>, pub verified_outputs: Option<GelatoVerifiedOutputs>,
}
Expand description

A VerificationSession guides you through the process of collecting and verifying the identities of your users. It contains details about the type of verification, such as what verification check to perform. Only create one VerificationSession for each verification in your system.

A VerificationSession transitions through multiple statuses throughout its lifetime as it progresses through the verification flow. The VerificationSession contains the user’s verified data after verification checks are complete.

Related guide: The Verification Sessions API.

For more details see <https://stripe.com/docs/api/identity/verification_sessions/object>.

Fields§

§client_reference_id: Option<String>

A string to reference this user. This can be a customer ID, a session ID, or similar, and can be used to reconcile this verification with your internal systems.

§client_secret: Option<String>

The short-lived client secret used by Stripe.js to show a verification modal inside your app. This client secret expires after 24 hours and can only be used once. Don’t store it, log it, embed it in a URL, or expose it to anyone other than the user. Make sure that you have TLS enabled on any page that includes the client secret. Refer to our docs on passing the client secret to the frontend to learn more.

§created: Timestamp

Time at which the object was created. Measured in seconds since the Unix epoch.

§id: IdentityVerificationSessionId

Unique identifier for the object.

§last_error: Option<GelatoSessionLastError>

If present, this property tells you the last error encountered when processing the verification.

§last_verification_report: Option<Expandable<IdentityVerificationReport>>

ID of the most recent VerificationReport. Learn more about accessing detailed verification results..

§livemode: bool

Has the value true if the object exists in live mode or the value false if the object exists in test mode.

§metadata: HashMap<String, String>

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.

§options: Option<GelatoVerificationSessionOptions>

A set of options for the session’s verification checks.

§provided_details: Option<GelatoProvidedDetails>

Details provided about the user being verified. These details may be shown to the user.

§redaction: Option<VerificationSessionRedaction>

Redaction status of this VerificationSession. If the VerificationSession is not redacted, this field will be null.

§related_customer: Option<String>

Customer ID

§status: IdentityVerificationSessionStatus

Status of this VerificationSession. Learn more about the lifecycle of sessions.

§type_: IdentityVerificationSessionType

The type of verification check to be performed.

§url: Option<String>

The short-lived URL that you use to redirect a user to Stripe to submit their identity information. This URL expires after 48 hours and can only be used once. Don’t store it, log it, send it in emails or expose it to anyone other than the user. Refer to our docs on verifying identity documents to learn how to redirect users to Stripe.

§verification_flow: Option<String>

The configuration token of a verification flow from the dashboard.

§verified_outputs: Option<GelatoVerifiedOutputs>

The user’s verified data.

Trait Implementations§

Source§

impl Clone for IdentityVerificationSession

Source§

fn clone(&self) -> IdentityVerificationSession

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 IdentityVerificationSession

Source§

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

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

impl Deserialize for IdentityVerificationSession

Source§

fn begin(out: &mut Option<Self>) -> &mut dyn Visitor

The only correct implementation of this method is: Read more
Source§

impl FromValueOpt for IdentityVerificationSession

Source§

impl Object for IdentityVerificationSession

Source§

type Id = IdentityVerificationSessionId

The canonical id type for this object.
Source§

fn id(&self) -> &Self::Id

The id of the object.
Source§

fn into_id(self) -> Self::Id

The owned id of the object.
Source§

impl ObjectDeser for IdentityVerificationSession

Source§

type Builder = IdentityVerificationSessionBuilder

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