class Stripe::MandatePaymentMethod
- Stripe::MandatePaymentMethod
- Reference
- Object
Overview
ID of the payment method associated with this mandate.
Included Modules
- JSON::Serializable
- JSON::Serializable::Unmapped
- OpenApi::Json
- OpenApi::Validatable
Defined in:
stripe/models/mandate_payment_method.crConstant Summary
-
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 : JSON::PullParser)
-
.new(*, billing_details : Stripe::BillingDetails | Nil = nil, created : Int64 | Nil = nil, customer : Stripe::ConfirmationTokensResourcePaymentMethodPreviewCustomer | Nil = nil, id : String | Nil = nil, livemode : Bool | Nil = nil, metadata : Hash(String, String) | Nil = nil, object : String | Nil = nil, _type : String | Nil = nil, acss_debit : Stripe::PaymentMethodAcssDebit | Nil = nil, affirm : JSON::Any | Nil = nil, afterpay_clearpay : JSON::Any | Nil = nil, alipay : JSON::Any | Nil = nil, allow_redisplay : String | Nil = nil, amazon_pay : JSON::Any | Nil = nil, au_becs_debit : Stripe::PaymentMethodAuBecsDebit | Nil = nil, bacs_debit : Stripe::PaymentMethodBacsDebit | Nil = nil, bancontact : JSON::Any | Nil = nil, blik : JSON::Any | Nil = nil, boleto : Stripe::PaymentMethodBoleto | Nil = nil, card : Stripe::PaymentMethodCard | Nil = nil, card_present2 : Stripe::PaymentMethodCardPresent | Nil = nil, cashapp : Stripe::PaymentMethodCashapp | Nil = nil, customer_balance : JSON::Any | Nil = nil, eps : Stripe::PaymentMethodEps | Nil = nil, fpx : Stripe::PaymentMethodFpx | Nil = nil, giropay : JSON::Any | Nil = nil, grabpay : JSON::Any | Nil = nil, ideal : Stripe::PaymentMethodIdeal | Nil = nil, interac_present : Stripe::PaymentMethodInteracPresent | Nil = nil, klarna : Stripe::PaymentMethodKlarna | Nil = nil, konbini : JSON::Any | Nil = nil, link : Stripe::PaymentMethodLink | Nil = nil, mobilepay : JSON::Any | Nil = nil, multibanco : JSON::Any | Nil = nil, oxxo : JSON::Any | Nil = nil, p24 : Stripe::PaymentMethodP24 | Nil = nil, paynow : JSON::Any | Nil = nil, paypal : Stripe::PaymentMethodPaypal | Nil = nil, pix : JSON::Any | Nil = nil, promptpay : JSON::Any | Nil = nil, radar_options : Stripe::RadarRadarOptions | Nil = nil, revolut_pay : JSON::Any | Nil = nil, sepa_debit : Stripe::PaymentMethodSepaDebit | Nil = nil, sofort : Stripe::PaymentMethodSofort | Nil = nil, swish : JSON::Any | Nil = nil, twint : JSON::Any | Nil = nil, us_bank_account : Stripe::PaymentMethodUsBankAccount | Nil = nil, wechat_pay : JSON::Any | Nil = nil, zip : JSON::Any | Nil = nil)
Initializes the object @param [Hash] attributes Model attributes in the form of hash
Class Method Summary
-
.openapi_any_of
List of class defined in anyOf (OpenAPI v3)
Instance Method Summary
-
#==(other : self)
Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes.
- #_type : String | Nil
- #_type=(_type : String | Nil)
- #acss_debit : Stripe::PaymentMethodAcssDebit | Nil
- #acss_debit=(acss_debit : Stripe::PaymentMethodAcssDebit | Nil)
- #affirm : JSON::Any | Nil
- #affirm=(affirm : JSON::Any | Nil)
- #afterpay_clearpay : JSON::Any | Nil
- #afterpay_clearpay=(afterpay_clearpay : JSON::Any | Nil)
- #alipay : JSON::Any | Nil
- #alipay=(alipay : JSON::Any | Nil)
- #allow_redisplay : String | Nil
- #allow_redisplay=(allow_redisplay : String | Nil)
- #amazon_pay : JSON::Any | Nil
- #amazon_pay=(amazon_pay : JSON::Any | Nil)
- #au_becs_debit : Stripe::PaymentMethodAuBecsDebit | Nil
- #au_becs_debit=(au_becs_debit : Stripe::PaymentMethodAuBecsDebit | Nil)
- #bacs_debit : Stripe::PaymentMethodBacsDebit | Nil
- #bacs_debit=(bacs_debit : Stripe::PaymentMethodBacsDebit | Nil)
- #bancontact : JSON::Any | Nil
- #bancontact=(bancontact : JSON::Any | Nil)
- #billing_details : Stripe::BillingDetails | Nil
- #billing_details=(billing_details : Stripe::BillingDetails | Nil)
- #blik : JSON::Any | Nil
- #blik=(blik : JSON::Any | Nil)
- #boleto : Stripe::PaymentMethodBoleto | Nil
- #boleto=(boleto : Stripe::PaymentMethodBoleto | Nil)
- #card : Stripe::PaymentMethodCard | Nil
- #card=(card : Stripe::PaymentMethodCard | Nil)
- #card_present2 : Stripe::PaymentMethodCardPresent | Nil
- #card_present2=(card_present2 : Stripe::PaymentMethodCardPresent | Nil)
- #cashapp : Stripe::PaymentMethodCashapp | Nil
- #cashapp=(cashapp : Stripe::PaymentMethodCashapp | Nil)
- #created : Int64 | Nil
- #created=(created : Int64 | Nil)
- #customer : Stripe::ConfirmationTokensResourcePaymentMethodPreviewCustomer | Nil
- #customer=(customer : Stripe::ConfirmationTokensResourcePaymentMethodPreviewCustomer | Nil)
- #customer_balance : JSON::Any | Nil
- #customer_balance=(customer_balance : JSON::Any | Nil)
- #eps : Stripe::PaymentMethodEps | Nil
- #eps=(eps : Stripe::PaymentMethodEps | Nil)
- #fpx : Stripe::PaymentMethodFpx | Nil
- #fpx=(fpx : Stripe::PaymentMethodFpx | Nil)
- #giropay : JSON::Any | Nil
- #giropay=(giropay : JSON::Any | Nil)
- #grabpay : JSON::Any | Nil
- #grabpay=(grabpay : JSON::Any | Nil)
-
#hash(hasher)
Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes.
- #id : String | Nil
- #id=(id : String | Nil)
- #ideal : Stripe::PaymentMethodIdeal | Nil
- #ideal=(ideal : Stripe::PaymentMethodIdeal | Nil)
- #interac_present : Stripe::PaymentMethodInteracPresent | Nil
- #interac_present=(interac_present : Stripe::PaymentMethodInteracPresent | Nil)
- #klarna : Stripe::PaymentMethodKlarna | Nil
- #klarna=(klarna : Stripe::PaymentMethodKlarna | Nil)
- #konbini : JSON::Any | Nil
- #konbini=(konbini : JSON::Any | Nil)
- #link : Stripe::PaymentMethodLink | Nil
- #link=(link : Stripe::PaymentMethodLink | Nil)
-
#list_invalid_properties : Array(String)
Show invalid properties with the reasons.
- #livemode : Bool | Nil
- #livemode=(livemode : Bool | Nil)
- #metadata : Hash(String, String) | Nil
- #metadata=(metadata : Hash(String, String) | Nil)
- #mobilepay : JSON::Any | Nil
- #mobilepay=(mobilepay : JSON::Any | Nil)
- #multibanco : JSON::Any | Nil
- #multibanco=(multibanco : JSON::Any | Nil)
- #object : String | Nil
- #object=(object : String | Nil)
- #oxxo : JSON::Any | Nil
- #oxxo=(oxxo : JSON::Any | Nil)
- #p24 : Stripe::PaymentMethodP24 | Nil
- #p24=(p24 : Stripe::PaymentMethodP24 | Nil)
- #paynow : JSON::Any | Nil
- #paynow=(paynow : JSON::Any | Nil)
- #paypal : Stripe::PaymentMethodPaypal | Nil
- #paypal=(paypal : Stripe::PaymentMethodPaypal | Nil)
- #pix : JSON::Any | Nil
- #pix=(pix : JSON::Any | Nil)
- #promptpay : JSON::Any | Nil
- #promptpay=(promptpay : JSON::Any | Nil)
- #radar_options : Stripe::RadarRadarOptions | Nil
- #radar_options=(radar_options : Stripe::RadarRadarOptions | Nil)
- #revolut_pay : JSON::Any | Nil
- #revolut_pay=(revolut_pay : JSON::Any | Nil)
- #sepa_debit : Stripe::PaymentMethodSepaDebit | Nil
- #sepa_debit=(sepa_debit : Stripe::PaymentMethodSepaDebit | Nil)
- #sofort : Stripe::PaymentMethodSofort | Nil
- #sofort=(sofort : Stripe::PaymentMethodSofort | Nil)
- #swish : JSON::Any | Nil
- #swish=(swish : JSON::Any | Nil)
- #twint : JSON::Any | Nil
- #twint=(twint : JSON::Any | Nil)
- #us_bank_account : Stripe::PaymentMethodUsBankAccount | Nil
- #us_bank_account=(us_bank_account : Stripe::PaymentMethodUsBankAccount | Nil)
-
#valid? : Bool
Check to see if the all the properties in the model are valid @return true if the model is valid
- #wechat_pay : JSON::Any | Nil
- #wechat_pay=(wechat_pay : JSON::Any | Nil)
- #zip : JSON::Any | Nil
- #zip=(zip : JSON::Any | Nil)
Instance methods inherited from module OpenApi::Json
after_initialize
after_initialize,
eql?(o : self)
eql?,
to_hash : Hash(String, JSON::Any)
to_hash,
to_json_any : JSON::Any
to_json_any
Class methods inherited from module OpenApi::Json
build_from_hash(hash : Hash)
build_from_hash,
build_from_json_any(json_any : JSON::Any)
build_from_json_any
Instance methods inherited from module OpenApi::Validatable
list_invalid_properties : Array(String)
list_invalid_properties,
list_invalid_properties_for(key : String) : Array(String)
list_invalid_properties_for,
valid? : Bool
valid?,
validate : Nil
validate
Constructor Detail
Initializes the object @param [Hash] attributes Model attributes in the form of hash
Class Method Detail
Instance Method Detail
Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code
Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code
Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons
Check to see if the all the properties in the model are valid @return true if the model is valid