Struct stripe::CreatePaymentMethod[][src]

pub struct CreatePaymentMethod<'a> {
    pub alipay: Option<CreatePaymentMethodAlipay>,
    pub au_becs_debit: Option<CreatePaymentMethodAuBecsDebit>,
    pub bacs_debit: Option<CreatePaymentMethodBacsDebit>,
    pub bancontact: Option<CreatePaymentMethodBancontact>,
    pub billing_details: Option<BillingDetails>,
    pub customer: Option<CustomerId>,
    pub eps: Option<CreatePaymentMethodEps>,
    pub expand: &'a [&'a str],
    pub fpx: Option<CreatePaymentMethodFpx>,
    pub giropay: Option<CreatePaymentMethodGiropay>,
    pub grabpay: Option<CreatePaymentMethodGrabpay>,
    pub ideal: Option<CreatePaymentMethodIdeal>,
    pub interac_present: Option<CreatePaymentMethodInteracPresent>,
    pub metadata: Option<Metadata>,
    pub oxxo: Option<CreatePaymentMethodOxxo>,
    pub p24: Option<CreatePaymentMethodP24>,
    pub payment_method: Option<PaymentMethodId>,
    pub sepa_debit: Option<CreatePaymentMethodSepaDebit>,
    pub sofort: Option<CreatePaymentMethodSofort>,
    pub type_: Option<PaymentMethodTypeFilter>,
}

The parameters for PaymentMethod::create.

Fields

alipay: Option<CreatePaymentMethodAlipay>

If this is an Alipay PaymentMethod, this hash contains details about the Alipay payment method.

au_becs_debit: Option<CreatePaymentMethodAuBecsDebit>

If this is an au_becs_debit PaymentMethod, this hash contains details about the bank account.

bacs_debit: Option<CreatePaymentMethodBacsDebit>

If this is a bacs_debit PaymentMethod, this hash contains details about the Bacs Direct Debit bank account.

bancontact: Option<CreatePaymentMethodBancontact>

If this is a bancontact PaymentMethod, this hash contains details about the Bancontact payment method.

billing_details: Option<BillingDetails>

Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.

customer: Option<CustomerId>

The Customer to whom the original PaymentMethod is attached.

eps: Option<CreatePaymentMethodEps>

If this is an eps PaymentMethod, this hash contains details about the EPS payment method.

expand: &'a [&'a str]

Specifies which fields in the response should be expanded.

fpx: Option<CreatePaymentMethodFpx>

If this is an fpx PaymentMethod, this hash contains details about the FPX payment method.

giropay: Option<CreatePaymentMethodGiropay>

If this is a giropay PaymentMethod, this hash contains details about the Giropay payment method.

grabpay: Option<CreatePaymentMethodGrabpay>

If this is a grabpay PaymentMethod, this hash contains details about the GrabPay payment method.

ideal: Option<CreatePaymentMethodIdeal>

If this is an ideal PaymentMethod, this hash contains details about the iDEAL payment method.

interac_present: Option<CreatePaymentMethodInteracPresent>

If this is an interac_present PaymentMethod, this hash contains details about the Interac Present payment method.

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.

oxxo: Option<CreatePaymentMethodOxxo>

If this is an oxxo PaymentMethod, this hash contains details about the OXXO payment method.

p24: Option<CreatePaymentMethodP24>

If this is a p24 PaymentMethod, this hash contains details about the P24 payment method.

payment_method: Option<PaymentMethodId>

The PaymentMethod to share.

sepa_debit: Option<CreatePaymentMethodSepaDebit>

If this is a sepa_debit PaymentMethod, this hash contains details about the SEPA debit bank account.

sofort: Option<CreatePaymentMethodSofort>

If this is a sofort PaymentMethod, this hash contains details about the SOFORT payment method.

type_: Option<PaymentMethodTypeFilter>

The type of the PaymentMethod.

An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.

Implementations

impl<'a> CreatePaymentMethod<'a>[src]

pub fn new() -> Self[src]

Trait Implementations

impl<'a> Clone for CreatePaymentMethod<'a>[src]

impl<'a> Debug for CreatePaymentMethod<'a>[src]

impl<'a> Default for CreatePaymentMethod<'a>[src]

impl<'a> Serialize for CreatePaymentMethod<'a>[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> 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]