class

Stripe::PaymentMethod

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

PaymentMethod objects represent your customer's payment instruments. You can use them with PaymentIntents to collect payments or save them to Customer objects to store instrument details for future payments. Related guides: Payment Methods and More Payment Scenarios.

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, card, card_present, cashapp, customer_balance, eps, fpx, giropay, grabpay, ideal, interac_present, 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]."
ERROR_MESSAGE_FOR_OBJECT = "invalid value for \"object\", must be one of [payment_method]."
MAX_LENGTH_FOR_ID = 5000
VALID_VALUES_FOR__TYPE = String.static_array("acss_debit", "affirm", "afterpay_clearpay", "alipay", "amazon_pay", "au_becs_debit", "bacs_debit", "bancontact", "blik", "boleto", "card", "card_present", "cashapp", "customer_balance", "eps", "fpx", "giropay", "grabpay", "ideal", "interac_present", "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")
VALID_VALUES_FOR_OBJECT = String.static_array("payment_method")

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::PaymentMethodAcssDebit | Nil)

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

Source
affirm
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
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
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
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::PaymentMethodAuBecsDebit | 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::PaymentMethodBacsDebit | Nil)

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

Source
bancontact
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::BillingDetails | Nil)

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

Source
blik
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::PaymentMethodBoleto | Nil)

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

Source
card
Source
card=(new_value : Stripe::PaymentMethodCard | Nil)

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

Source
card_present
Source
card_present=(new_value : Stripe::PaymentMethodCardPresent | Nil)

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

Source
cashapp
Source
cashapp=(new_value : Stripe::PaymentMethodCashapp | Nil)

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

Source
created

Time at which the object was created. Measured in seconds since the Unix epoch.

Source
created=(new_value : Int64 | Nil)

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

Source
customer
Source

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

Source
customer_balance
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::PaymentMethodEps | 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
Source
giropay=(new_value : JSON::Any | Nil)

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

Source
grabpay
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

id

Unique identifier for the object.

Source
id=(new_value : String | Nil)

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

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

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

Source
interac_present
Source
interac_present=(new_value : Stripe::PaymentMethodInteracPresent | Nil)

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

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

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

Source
konbini
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
livemode

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

Source
livemode=(new_value : Bool | Nil)

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

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
Source
mobilepay=(new_value : JSON::Any | Nil)

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

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

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

Source
object

String representing the object's type. Objects of the same type share the same value.

Source
object=(new_value : String | Nil)

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

Source
oxxo
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::PaymentMethodP24 | Nil)

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

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

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

Source
paypal
Source
paypal=(new_value : Stripe::PaymentMethodPaypal | Nil)

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

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

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

Source
promptpay
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::RadarRadarOptions | Nil)

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

Source
revolut_pay
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::PaymentMethodSepaDebit | Nil)

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

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

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

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

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

Source
twint
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::PaymentMethodUsBankAccount | 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
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=(new_value : JSON::Any | Nil)

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

Source