class Stripe::InvoiceDefaultPaymentMethod

Overview

ID of the default payment method for the invoice. It must belong to the customer associated with the invoice. If not set, defaults to the subscription's default payment method, if any, or to the default payment method in the customer's invoice settings.

Included Modules

Defined in:

stripe/models/invoice_default_payment_method.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, 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

Class Method Summary

Instance Method Summary

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

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

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


[View source]

Class Method Detail

def self.openapi_any_of #

List of class defined in anyOf (OpenAPI v3)


[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=(_type : String | Nil) #

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

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

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

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

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

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

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

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

[View source]
def allow_redisplay : String | Nil #

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

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

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

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

[View source]
def au_becs_debit=(au_becs_debit : Stripe::PaymentMethodAuBecsDebit | Nil) #

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

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

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

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

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

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

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

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

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

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

[View source]
def card : Stripe::PaymentMethodCard | Nil #

[View source]
def card=(card : Stripe::PaymentMethodCard | Nil) #

[View source]
def card_present2 : Stripe::PaymentMethodCardPresent | Nil #

[View source]
def card_present2=(card_present2 : Stripe::PaymentMethodCardPresent | Nil) #

[View source]
def cashapp : Stripe::PaymentMethodCashapp | Nil #

[View source]
def cashapp=(cashapp : Stripe::PaymentMethodCashapp | Nil) #

[View source]
def created : Int64 | Nil #

[View source]
def created=(created : Int64 | Nil) #

[View source]

[View source]

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

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

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

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

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

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

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

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

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

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

[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 id : String | Nil #

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

[View source]
def ideal : Stripe::PaymentMethodIdeal | Nil #

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

[View source]
def interac_present : Stripe::PaymentMethodInteracPresent | Nil #

[View source]
def interac_present=(interac_present : Stripe::PaymentMethodInteracPresent | Nil) #

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

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

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

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

[View source]
def link : Stripe::PaymentMethodLink | Nil #

[View source]
def link=(link : Stripe::PaymentMethodLink | Nil) #

[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 livemode : Bool | Nil #

[View source]
def livemode=(livemode : Bool | Nil) #

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

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

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

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

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

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

[View source]
def object : String | Nil #

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

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

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

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

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

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

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

[View source]
def paypal : Stripe::PaymentMethodPaypal | Nil #

[View source]
def paypal=(paypal : Stripe::PaymentMethodPaypal | Nil) #

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[View source]
def us_bank_account=(us_bank_account : Stripe::PaymentMethodUsBankAccount | Nil) #

[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=(wechat_pay : JSON::Any | Nil) #

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

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

[View source]