class

Stripe::PaymentMethodDataParams

Inherits OpenApi::Json < OpenApi::Validatable < JSON::Serializable::Unmapped < JSON::Serializable < Reference < Object

Constants

ERROR_MESSAGE_FOR__TYPE = "invalid value for \"_type\", must be one of [acss_debit, affirm, afterpay_clearpay, alipay, amazon_pay, au_becs_debit, bacs_debit, bancontact, blik, boleto, cashapp, customer_balance, eps, fpx, giropay, grabpay, ideal, klarna, konbini, link, mobilepay, multibanco, oxxo, p24, paynow, paypal, pix, promptpay, revolut_pay, sepa_debit, sofort, swish, twint, us_bank_account, wechat_pay, zip]."
ERROR_MESSAGE_FOR_ALLOW_REDISPLAY = "invalid value for \"allow_redisplay\", must be one of [always, limited, unspecified]."
VALID_VALUES_FOR__TYPE = String.static_array("acss_debit", "affirm", "afterpay_clearpay", "alipay", "amazon_pay", "au_becs_debit", "bacs_debit", "bancontact", "blik", "boleto", "cashapp", "customer_balance", "eps", "fpx", "giropay", "grabpay", "ideal", "klarna", "konbini", "link", "mobilepay", "multibanco", "oxxo", "p24", "paynow", "paypal", "pix", "promptpay", "revolut_pay", "sepa_debit", "sofort", "swish", "twint", "us_bank_account", "wechat_pay", "zip")
VALID_VALUES_FOR_ALLOW_REDISPLAY = String.static_array("always", "limited", "unspecified")

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

==(other : self)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

_type

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.

Source
_type=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] _type Object to be assigned

Source
acss_debit
Source
acss_debit=(new_value : Stripe::PaymentMethodParam | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] acss_debit Object to be assigned

Source
affirm

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

Source
affirm=(new_value : JSON::Any | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] affirm Object to be assigned

Source
afterpay_clearpay

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

Source
afterpay_clearpay=(new_value : JSON::Any | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] afterpay_clearpay Object to be assigned

Source
alipay

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

Source
alipay=(new_value : JSON::Any | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] alipay Object to be assigned

Source
allow_redisplay

This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to unspecified.

Source
allow_redisplay=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] allow_redisplay Object to be assigned

Source
amazon_pay

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

Source
amazon_pay=(new_value : JSON::Any | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] amazon_pay Object to be assigned

Source
au_becs_debit
Source
au_becs_debit=(new_value : Stripe::Param | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] au_becs_debit Object to be assigned

Source
bacs_debit
Source
bacs_debit=(new_value : Stripe::Param1 | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] bacs_debit Object to be assigned

Source
bancontact

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

Source
bancontact=(new_value : JSON::Any | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] bancontact Object to be assigned

Source
billing_details
Source
billing_details=(new_value : Stripe::BillingDetailsInnerParams | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] billing_details Object to be assigned

Source
blik

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

Source
blik=(new_value : JSON::Any | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] blik Object to be assigned

Source
boleto
Source
boleto=(new_value : Stripe::Param2 | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] boleto Object to be assigned

Source
cashapp

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

Source
cashapp=(new_value : JSON::Any | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] cashapp Object to be assigned

Source
customer_balance

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

Source
customer_balance=(new_value : JSON::Any | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] customer_balance Object to be assigned

Source
eps=(new_value : Stripe::Param3 | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] eps Object to be assigned

Source
fpx=(new_value : Stripe::PaymentMethodFpx | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] fpx Object to be assigned

Source
giropay

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

Source
giropay=(new_value : JSON::Any | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] giropay Object to be assigned

Source
grabpay

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

Source
grabpay=(new_value : JSON::Any | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] grabpay Object to be assigned

Source
hash(hasher)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

ideal
Source
ideal=(new_value : Stripe::Param4 | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] ideal Object to be assigned

Source
interac_present

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

Source
interac_present=(new_value : JSON::Any | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] interac_present Object to be assigned

Source
klarna
Source
klarna=(new_value : Stripe::Param5 | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] klarna Object to be assigned

Source
konbini

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

Source
konbini=(new_value : JSON::Any | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] konbini Object to be assigned

Source
list_invalid_properties

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons

Source
metadata
Source
metadata=(new_value : Hash(String, String) | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] metadata Object to be assigned

Source
mobilepay

If this is a mobilepay PaymentMethod, this hash contains details about the MobilePay payment method.

Source
mobilepay=(new_value : JSON::Any | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] mobilepay Object to be assigned

Source
multibanco

If this is a multibanco PaymentMethod, this hash contains details about the Multibanco payment method.

Source
multibanco=(new_value : JSON::Any | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] multibanco Object to be assigned

Source
oxxo

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

Source
oxxo=(new_value : JSON::Any | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] oxxo Object to be assigned

Source
p24=(new_value : Stripe::Param6 | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] p24 Object to be assigned

Source
paynow

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

Source
paynow=(new_value : JSON::Any | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] paynow Object to be assigned

Source
paypal

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

Source
paypal=(new_value : JSON::Any | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] paypal Object to be assigned

Source
pix

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

Source
pix=(new_value : JSON::Any | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] pix Object to be assigned

Source
promptpay

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

Source
promptpay=(new_value : JSON::Any | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] promptpay Object to be assigned

Source
radar_options
Source
radar_options=(new_value : Stripe::RadarOptionsWithHiddenOptions | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] radar_options Object to be assigned

Source
revolut_pay

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

Source
revolut_pay=(new_value : JSON::Any | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] revolut_pay Object to be assigned

Source
sepa_debit
Source
sepa_debit=(new_value : Stripe::Param7 | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] sepa_debit Object to be assigned

Source
sofort
Source
sofort=(new_value : Stripe::Param8 | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] sofort Object to be assigned

Source
swish

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

Source
swish=(new_value : JSON::Any | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] swish Object to be assigned

Source
twint

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

Source
twint=(new_value : JSON::Any | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] twint Object to be assigned

Source
us_bank_account
Source
us_bank_account=(new_value : Stripe::PaymentMethodParam | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] us_bank_account Object to be assigned

Source
valid?

Check to see if the all the properties in the model are valid @return true if the model is valid

Source
wechat_pay

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

Source
wechat_pay=(new_value : JSON::Any | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] wechat_pay Object to be assigned

Source
zip

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

Source
zip=(new_value : JSON::Any | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] zip Object to be assigned

Source