Struct stripe::CreatePaymentIntentPaymentMethodData

source ·
pub struct CreatePaymentIntentPaymentMethodData {
Show 37 fields pub acss_debit: Option<CreatePaymentIntentPaymentMethodDataAcssDebit>, pub affirm: Option<CreatePaymentIntentPaymentMethodDataAffirm>, pub afterpay_clearpay: Option<CreatePaymentIntentPaymentMethodDataAfterpayClearpay>, pub alipay: Option<CreatePaymentIntentPaymentMethodDataAlipay>, pub au_becs_debit: Option<CreatePaymentIntentPaymentMethodDataAuBecsDebit>, pub bacs_debit: Option<CreatePaymentIntentPaymentMethodDataBacsDebit>, pub bancontact: Option<CreatePaymentIntentPaymentMethodDataBancontact>, pub billing_details: Option<CreatePaymentIntentPaymentMethodDataBillingDetails>, pub blik: Option<CreatePaymentIntentPaymentMethodDataBlik>, pub boleto: Option<CreatePaymentIntentPaymentMethodDataBoleto>, pub cashapp: Option<CreatePaymentIntentPaymentMethodDataCashapp>, pub customer_balance: Option<CreatePaymentIntentPaymentMethodDataCustomerBalance>, pub eps: Option<CreatePaymentIntentPaymentMethodDataEps>, pub fpx: Option<CreatePaymentIntentPaymentMethodDataFpx>, pub giropay: Option<CreatePaymentIntentPaymentMethodDataGiropay>, pub grabpay: Option<CreatePaymentIntentPaymentMethodDataGrabpay>, pub ideal: Option<CreatePaymentIntentPaymentMethodDataIdeal>, pub interac_present: Option<CreatePaymentIntentPaymentMethodDataInteracPresent>, pub klarna: Option<CreatePaymentIntentPaymentMethodDataKlarna>, pub konbini: Option<CreatePaymentIntentPaymentMethodDataKonbini>, pub link: Option<CreatePaymentIntentPaymentMethodDataLink>, pub metadata: Option<Metadata>, pub oxxo: Option<CreatePaymentIntentPaymentMethodDataOxxo>, pub p24: Option<CreatePaymentIntentPaymentMethodDataP24>, pub paynow: Option<CreatePaymentIntentPaymentMethodDataPaynow>, pub paypal: Option<CreatePaymentIntentPaymentMethodDataPaypal>, pub pix: Option<CreatePaymentIntentPaymentMethodDataPix>, pub promptpay: Option<CreatePaymentIntentPaymentMethodDataPromptpay>, pub radar_options: Option<CreatePaymentIntentPaymentMethodDataRadarOptions>, pub revolut_pay: Option<CreatePaymentIntentPaymentMethodDataRevolutPay>, pub sepa_debit: Option<CreatePaymentIntentPaymentMethodDataSepaDebit>, pub sofort: Option<CreatePaymentIntentPaymentMethodDataSofort>, pub swish: Option<CreatePaymentIntentPaymentMethodDataSwish>, pub type_: CreatePaymentIntentPaymentMethodDataType, pub us_bank_account: Option<CreatePaymentIntentPaymentMethodDataUsBankAccount>, pub wechat_pay: Option<CreatePaymentIntentPaymentMethodDataWechatPay>, pub zip: Option<CreatePaymentIntentPaymentMethodDataZip>,
}

Fields§

§acss_debit: Option<CreatePaymentIntentPaymentMethodDataAcssDebit>

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

§affirm: Option<CreatePaymentIntentPaymentMethodDataAffirm>

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

§afterpay_clearpay: Option<CreatePaymentIntentPaymentMethodDataAfterpayClearpay>

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

§alipay: Option<CreatePaymentIntentPaymentMethodDataAlipay>

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

§au_becs_debit: Option<CreatePaymentIntentPaymentMethodDataAuBecsDebit>

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

§bacs_debit: Option<CreatePaymentIntentPaymentMethodDataBacsDebit>

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

§bancontact: Option<CreatePaymentIntentPaymentMethodDataBancontact>

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

§billing_details: Option<CreatePaymentIntentPaymentMethodDataBillingDetails>

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

§blik: Option<CreatePaymentIntentPaymentMethodDataBlik>

If this is a blik PaymentMethod, this hash contains details about the BLIK payment method.

§boleto: Option<CreatePaymentIntentPaymentMethodDataBoleto>

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

§cashapp: Option<CreatePaymentIntentPaymentMethodDataCashapp>

If this is a cashapp PaymentMethod, this hash contains details about the Cash App Pay payment method.

§customer_balance: Option<CreatePaymentIntentPaymentMethodDataCustomerBalance>

If this is a customer_balance PaymentMethod, this hash contains details about the CustomerBalance payment method.

§eps: Option<CreatePaymentIntentPaymentMethodDataEps>

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

§fpx: Option<CreatePaymentIntentPaymentMethodDataFpx>

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

§giropay: Option<CreatePaymentIntentPaymentMethodDataGiropay>

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

§grabpay: Option<CreatePaymentIntentPaymentMethodDataGrabpay>

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

§ideal: Option<CreatePaymentIntentPaymentMethodDataIdeal>

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

§interac_present: Option<CreatePaymentIntentPaymentMethodDataInteracPresent>

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

§klarna: Option<CreatePaymentIntentPaymentMethodDataKlarna>

If this is a klarna PaymentMethod, this hash contains details about the Klarna payment method.

§konbini: Option<CreatePaymentIntentPaymentMethodDataKonbini>

If this is a konbini PaymentMethod, this hash contains details about the Konbini payment method.

§link: Option<CreatePaymentIntentPaymentMethodDataLink>

If this is an Link PaymentMethod, this hash contains details about the Link 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<CreatePaymentIntentPaymentMethodDataOxxo>

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

§p24: Option<CreatePaymentIntentPaymentMethodDataP24>

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

§paynow: Option<CreatePaymentIntentPaymentMethodDataPaynow>

If this is a paynow PaymentMethod, this hash contains details about the PayNow payment method.

§paypal: Option<CreatePaymentIntentPaymentMethodDataPaypal>

If this is a paypal PaymentMethod, this hash contains details about the PayPal payment method.

§pix: Option<CreatePaymentIntentPaymentMethodDataPix>

If this is a pix PaymentMethod, this hash contains details about the Pix payment method.

§promptpay: Option<CreatePaymentIntentPaymentMethodDataPromptpay>

If this is a promptpay PaymentMethod, this hash contains details about the PromptPay payment method.

§radar_options: Option<CreatePaymentIntentPaymentMethodDataRadarOptions>

Options to configure Radar.

See Radar Session for more information.

§revolut_pay: Option<CreatePaymentIntentPaymentMethodDataRevolutPay>

If this is a Revolut Pay PaymentMethod, this hash contains details about the Revolut Pay payment method.

§sepa_debit: Option<CreatePaymentIntentPaymentMethodDataSepaDebit>

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

§sofort: Option<CreatePaymentIntentPaymentMethodDataSofort>

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

§swish: Option<CreatePaymentIntentPaymentMethodDataSwish>

If this is a swish PaymentMethod, this hash contains details about the Swish payment method.

§type_: CreatePaymentIntentPaymentMethodDataType

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.

§us_bank_account: Option<CreatePaymentIntentPaymentMethodDataUsBankAccount>

If this is an us_bank_account PaymentMethod, this hash contains details about the US bank account payment method.

§wechat_pay: Option<CreatePaymentIntentPaymentMethodDataWechatPay>

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

§zip: Option<CreatePaymentIntentPaymentMethodDataZip>

If this is a zip PaymentMethod, this hash contains details about the Zip payment method.

Trait Implementations§

source§

impl Clone for CreatePaymentIntentPaymentMethodData

source§

fn clone(&self) -> CreatePaymentIntentPaymentMethodData

Returns a copy 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 CreatePaymentIntentPaymentMethodData

source§

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

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

impl Default for CreatePaymentIntentPaymentMethodData

source§

fn default() -> CreatePaymentIntentPaymentMethodData

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

impl<'de> Deserialize<'de> for CreatePaymentIntentPaymentMethodData

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for CreatePaymentIntentPaymentMethodData

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

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> 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> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

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

§

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

§

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<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

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

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