Struct stripe::SetupAttempt[][src]

pub struct SetupAttempt {
    pub id: SetupAttemptId,
    pub application: Option<Expandable<Application>>,
    pub created: Timestamp,
    pub customer: Option<Expandable<Customer>>,
    pub livemode: bool,
    pub on_behalf_of: Option<Expandable<Account>>,
    pub payment_method: Expandable<PaymentMethod>,
    pub payment_method_details: SetupAttemptPaymentMethodDetails,
    pub setup_error: Option<ApiErrors>,
    pub setup_intent: Expandable<SetupIntent>,
    pub status: String,
    pub usage: String,
}

The resource representing a Stripe "PaymentFlowsSetupIntentSetupAttempt".

For more details see https://stripe.com/docs/api/setup_attempts/object.

Fields

id: SetupAttemptId

Unique identifier for the object.

application: Option<Expandable<Application>>

The value of application on the SetupIntent at the time of this confirmation.

created: Timestamp

Time at which the object was created.

Measured in seconds since the Unix epoch.

customer: Option<Expandable<Customer>>

The value of customer on the SetupIntent at the time of this confirmation.

livemode: bool

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

on_behalf_of: Option<Expandable<Account>>

The value of on_behalf_of on the SetupIntent at the time of this confirmation.

payment_method: Expandable<PaymentMethod>

ID of the payment method used with this SetupAttempt.

payment_method_details: SetupAttemptPaymentMethodDetailssetup_error: Option<ApiErrors>

The error encountered during this attempt to confirm the SetupIntent, if any.

setup_intent: Expandable<SetupIntent>

ID of the SetupIntent that this attempt belongs to.

status: String

Status of this SetupAttempt, one of requires_confirmation, requires_action, processing, succeeded, failed, or abandoned.

usage: String

The value of usage on the SetupIntent at the time of this confirmation, one of off_session or on_session.

Implementations

impl SetupAttempt[src]

pub fn list(
    client: &Client,
    params: ListSetupAttempts<'_>
) -> Response<List<SetupAttempt>>
[src]

Returns a list of SetupAttempts associated with a provided SetupIntent.

Trait Implementations

impl Clone for SetupAttempt[src]

impl Debug for SetupAttempt[src]

impl<'de> Deserialize<'de> for SetupAttempt[src]

impl Object for SetupAttempt[src]

type Id = SetupAttemptId

The canonical id type for this object.

impl Serialize for SetupAttempt[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]