class Stripe::PaymentMethodDataParams

Included Modules

Defined in:

stripe/models/payment_method_data_params.cr

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

Instance Method Summary

Instance methods inherited from module OpenApi::Json

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

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(*, _type : String | Nil = nil, acss_debit : Stripe::PaymentMethodParam | 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::Param | Nil = nil, bacs_debit : Stripe::Param1 | Nil = nil, bancontact : JSON::Any | Nil = nil, billing_details : Stripe::BillingDetailsInnerParams | Nil = nil, blik : JSON::Any | Nil = nil, boleto : Stripe::Param2 | Nil = nil, cashapp : JSON::Any | Nil = nil, customer_balance : JSON::Any | Nil = nil, eps : Stripe::Param3 | Nil = nil, fpx : Stripe::PaymentMethodFpx | Nil = nil, giropay : JSON::Any | Nil = nil, grabpay : JSON::Any | Nil = nil, ideal : Stripe::Param4 | Nil = nil, interac_present : JSON::Any | Nil = nil, klarna : Stripe::Param5 | Nil = nil, konbini : JSON::Any | Nil = nil, link : JSON::Any | Nil = nil, metadata : Hash(String, String) | Nil = nil, mobilepay : JSON::Any | Nil = nil, multibanco : JSON::Any | Nil = nil, oxxo : JSON::Any | Nil = nil, p24 : Stripe::Param6 | Nil = nil, paynow : JSON::Any | Nil = nil, paypal : JSON::Any | Nil = nil, pix : JSON::Any | Nil = nil, promptpay : JSON::Any | Nil = nil, radar_options : Stripe::RadarOptionsWithHiddenOptions | Nil = nil, revolut_pay : JSON::Any | Nil = nil, sepa_debit : Stripe::Param7 | Nil = nil, sofort : Stripe::Param8 | Nil = nil, swish : JSON::Any | Nil = nil, twint : JSON::Any | Nil = nil, us_bank_account : Stripe::PaymentMethodParam | 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


[View source]

Instance Method Detail

def ==(other : self) #

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


def _type : String | Nil #

[View source]
def _type=(new_value : String | Nil) #

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


[View source]
def acss_debit : Stripe::PaymentMethodParam | Nil #

[View source]
def acss_debit=(new_value : Stripe::PaymentMethodParam | Nil) #

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


[View source]
def affirm : JSON::Any | Nil #

[View source]
def affirm=(new_value : JSON::Any | Nil) #

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


[View source]
def afterpay_clearpay : JSON::Any | Nil #

[View source]
def afterpay_clearpay=(new_value : JSON::Any | Nil) #

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


[View source]
def alipay : JSON::Any | Nil #

[View source]
def alipay=(new_value : JSON::Any | Nil) #

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


[View source]
def allow_redisplay : String | Nil #

[View source]
def allow_redisplay=(new_value : String | Nil) #

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


[View source]
def amazon_pay : JSON::Any | Nil #

[View source]
def amazon_pay=(new_value : JSON::Any | Nil) #

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


[View source]
def au_becs_debit : Stripe::Param | Nil #

[View source]
def 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


[View source]
def bacs_debit : Stripe::Param1 | Nil #

[View source]
def bacs_debit=(new_value : Stripe::Param1 | Nil) #

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


[View source]
def bancontact : JSON::Any | Nil #

[View source]
def bancontact=(new_value : JSON::Any | Nil) #

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


[View source]
def billing_details : Stripe::BillingDetailsInnerParams | Nil #

[View source]
def billing_details=(new_value : Stripe::BillingDetailsInnerParams | Nil) #

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


[View source]
def blik : JSON::Any | Nil #

[View source]
def blik=(new_value : JSON::Any | Nil) #

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


[View source]
def boleto : Stripe::Param2 | Nil #

[View source]
def boleto=(new_value : Stripe::Param2 | Nil) #

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


[View source]
def cashapp : JSON::Any | Nil #

[View source]
def cashapp=(new_value : JSON::Any | Nil) #

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


[View source]
def customer_balance : JSON::Any | Nil #

[View source]
def customer_balance=(new_value : JSON::Any | Nil) #

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


[View source]
def eps : Stripe::Param3 | Nil #

[View source]
def eps=(new_value : Stripe::Param3 | Nil) #

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


[View source]
def fpx : Stripe::PaymentMethodFpx | Nil #

[View source]
def fpx=(new_value : Stripe::PaymentMethodFpx | Nil) #

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


[View source]
def giropay : JSON::Any | Nil #

[View source]
def giropay=(new_value : JSON::Any | Nil) #

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


[View source]
def grabpay : JSON::Any | Nil #

[View source]
def grabpay=(new_value : JSON::Any | Nil) #

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


[View source]
def hash(hasher) #

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


def ideal : Stripe::Param4 | Nil #

[View source]
def ideal=(new_value : Stripe::Param4 | Nil) #

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


[View source]
def interac_present : JSON::Any | Nil #

[View source]
def interac_present=(new_value : JSON::Any | Nil) #

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


[View source]
def klarna : Stripe::Param5 | Nil #

[View source]
def klarna=(new_value : Stripe::Param5 | Nil) #

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


[View source]
def konbini : JSON::Any | Nil #

[View source]
def konbini=(new_value : JSON::Any | Nil) #

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


[View source]
def link : JSON::Any | Nil #

[View source]
def link=(new_value : JSON::Any | Nil) #

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


[View source]
def list_invalid_properties : Array(String) #

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


[View source]
def metadata : Hash(String, String) | Nil #

[View source]
def metadata=(new_value : Hash(String, String) | Nil) #

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


[View source]
def mobilepay : JSON::Any | Nil #

[View source]
def mobilepay=(new_value : JSON::Any | Nil) #

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


[View source]
def multibanco : JSON::Any | Nil #

[View source]
def multibanco=(new_value : JSON::Any | Nil) #

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


[View source]
def oxxo : JSON::Any | Nil #

[View source]
def oxxo=(new_value : JSON::Any | Nil) #

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


[View source]
def p24 : Stripe::Param6 | Nil #

[View source]
def p24=(new_value : Stripe::Param6 | Nil) #

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


[View source]
def paynow : JSON::Any | Nil #

[View source]
def paynow=(new_value : JSON::Any | Nil) #

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


[View source]
def paypal : JSON::Any | Nil #

[View source]
def paypal=(new_value : JSON::Any | Nil) #

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


[View source]
def pix : JSON::Any | Nil #

[View source]
def pix=(new_value : JSON::Any | Nil) #

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


[View source]
def promptpay : JSON::Any | Nil #

[View source]
def promptpay=(new_value : JSON::Any | Nil) #

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


[View source]
def radar_options : Stripe::RadarOptionsWithHiddenOptions | Nil #

[View source]
def radar_options=(new_value : Stripe::RadarOptionsWithHiddenOptions | Nil) #

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


[View source]
def revolut_pay : JSON::Any | Nil #

[View source]
def revolut_pay=(new_value : JSON::Any | Nil) #

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


[View source]
def sepa_debit : Stripe::Param7 | Nil #

[View source]
def sepa_debit=(new_value : Stripe::Param7 | Nil) #

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


[View source]
def sofort : Stripe::Param8 | Nil #

[View source]
def sofort=(new_value : Stripe::Param8 | Nil) #

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


[View source]
def swish : JSON::Any | Nil #

[View source]
def swish=(new_value : JSON::Any | Nil) #

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


[View source]
def twint : JSON::Any | Nil #

[View source]
def twint=(new_value : JSON::Any | Nil) #

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


[View source]
def us_bank_account : Stripe::PaymentMethodParam | Nil #

[View source]
def 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


[View source]
def valid? : Bool #

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


[View source]
def wechat_pay : JSON::Any | Nil #

[View source]
def wechat_pay=(new_value : JSON::Any | Nil) #

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


[View source]
def zip : JSON::Any | Nil #

[View source]
def zip=(new_value : JSON::Any | Nil) #

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


[View source]