Struct stripe::CreatePaymentMethod[][src]

pub struct CreatePaymentMethod<'a> {
Show 25 fields pub acss_debit: Option<Box<CreatePaymentMethodAcssDebit>>, pub afterpay_clearpay: Option<Box<CreatePaymentMethodAfterpayClearpay>>, pub alipay: Option<Box<CreatePaymentMethodAlipay>>, pub au_becs_debit: Option<Box<CreatePaymentMethodAuBecsDebit>>, pub bacs_debit: Option<Box<CreatePaymentMethodBacsDebit>>, pub bancontact: Option<Box<CreatePaymentMethodBancontact>>, pub billing_details: Option<BillingDetails>, pub boleto: Option<Box<CreatePaymentMethodBoleto>>, pub customer: Option<CustomerId>, pub eps: Option<Box<CreatePaymentMethodEps>>, pub expand: &'a [&'a str], pub fpx: Option<Box<CreatePaymentMethodFpx>>, pub giropay: Option<Box<CreatePaymentMethodGiropay>>, pub grabpay: Option<Box<CreatePaymentMethodGrabpay>>, pub ideal: Option<Box<CreatePaymentMethodIdeal>>, pub interac_present: Option<Box<CreatePaymentMethodInteracPresent>>, pub klarna: Option<Box<CreatePaymentMethodKlarna>>, pub metadata: Option<Metadata>, pub oxxo: Option<Box<CreatePaymentMethodOxxo>>, pub p24: Option<Box<CreatePaymentMethodP24>>, pub payment_method: Option<PaymentMethodId>, pub sepa_debit: Option<Box<CreatePaymentMethodSepaDebit>>, pub sofort: Option<Box<CreatePaymentMethodSofort>>, pub type_: Option<PaymentMethodTypeFilter>, pub wechat_pay: Option<Box<CreatePaymentMethodWechatPay>>,
}
Expand description

The parameters for PaymentMethod::create.

Fields

acss_debit: Option<Box<CreatePaymentMethodAcssDebit>>

If this is an acss_debit PaymentMethod, this hash contains details about the ACSS Debit payment method.

afterpay_clearpay: Option<Box<CreatePaymentMethodAfterpayClearpay>>

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

alipay: Option<Box<CreatePaymentMethodAlipay>>

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

au_becs_debit: Option<Box<CreatePaymentMethodAuBecsDebit>>

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

bacs_debit: Option<Box<CreatePaymentMethodBacsDebit>>

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

bancontact: Option<Box<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.

boleto: Option<Box<CreatePaymentMethodBoleto>>

If this is a boleto PaymentMethod, this hash contains details about the Boleto payment method.

customer: Option<CustomerId>

The Customer to whom the original PaymentMethod is attached.

eps: Option<Box<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<Box<CreatePaymentMethodFpx>>

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

giropay: Option<Box<CreatePaymentMethodGiropay>>

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

grabpay: Option<Box<CreatePaymentMethodGrabpay>>

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

ideal: Option<Box<CreatePaymentMethodIdeal>>

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

interac_present: Option<Box<CreatePaymentMethodInteracPresent>>

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

klarna: Option<Box<CreatePaymentMethodKlarna>>

If this is a klarna PaymentMethod, this hash contains details about the Klarna 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<Box<CreatePaymentMethodOxxo>>

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

p24: Option<Box<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<Box<CreatePaymentMethodSepaDebit>>

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

sofort: Option<Box<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.

wechat_pay: Option<Box<CreatePaymentMethodWechatPay>>

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

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more