class Stripe::PostCustomersCustomerSourcesId200Response

Included Modules

Defined in:

stripe/models/post_customers_customer_sources_id200_response.cr

Constant Summary

ERROR_MESSAGE_FOR__TYPE = "invalid value for \"_type\", must be one of [ach_credit_transfer, ach_debit, acss_debit, alipay, au_becs_debit, bancontact, card, card_present, eps, giropay, ideal, klarna, multibanco, p24, sepa_credit_transfer, sepa_debit, sofort, three_d_secure, wechat]."
ERROR_MESSAGE_FOR_AVAILABLE_PAYOUT_METHODS = "invalid value for \"available_payout_methods\", must be one of [instant, standard]."
ERROR_MESSAGE_FOR_OBJECT = "invalid value for \"object\", must be one of [source]."
MAX_LENGTH_FOR_ACCOUNT_HOLDER_NAME = 5000
MAX_LENGTH_FOR_ACCOUNT_HOLDER_TYPE = 5000
MAX_LENGTH_FOR_ACCOUNT_TYPE = 5000
MAX_LENGTH_FOR_ADDRESS_CITY = 5000
MAX_LENGTH_FOR_ADDRESS_COUNTRY = 5000
MAX_LENGTH_FOR_ADDRESS_LINE1 = 5000
MAX_LENGTH_FOR_ADDRESS_LINE1_CHECK = 5000
MAX_LENGTH_FOR_ADDRESS_LINE2 = 5000
MAX_LENGTH_FOR_ADDRESS_STATE = 5000
MAX_LENGTH_FOR_ADDRESS_ZIP = 5000
MAX_LENGTH_FOR_ADDRESS_ZIP_CHECK = 5000
MAX_LENGTH_FOR_BANK_NAME = 5000
MAX_LENGTH_FOR_BRAND = 5000
MAX_LENGTH_FOR_CLIENT_SECRET = 5000
MAX_LENGTH_FOR_COUNTRY = 5000
MAX_LENGTH_FOR_CUSTOMER = 5000
MAX_LENGTH_FOR_CVC_CHECK = 5000
MAX_LENGTH_FOR_DESCRIPTION = 5000
MAX_LENGTH_FOR_DYNAMIC_LAST4 = 5000
MAX_LENGTH_FOR_FINGERPRINT = 5000
MAX_LENGTH_FOR_FLOW = 5000
MAX_LENGTH_FOR_FUNDING = 5000
MAX_LENGTH_FOR_ID = 5000
MAX_LENGTH_FOR_IIN = 5000
MAX_LENGTH_FOR_ISSUER = 5000
MAX_LENGTH_FOR_LAST4 = 5000
MAX_LENGTH_FOR_NAME = 5000
MAX_LENGTH_FOR_ROUTING_NUMBER = 5000
MAX_LENGTH_FOR_STATEMENT_DESCRIPTOR = 5000
MAX_LENGTH_FOR_STATUS = 5000
MAX_LENGTH_FOR_TOKENIZATION_METHOD = 5000
MAX_LENGTH_FOR_USAGE = 5000
VALID_VALUES_FOR__TYPE = String.static_array("ach_credit_transfer", "ach_debit", "acss_debit", "alipay", "au_becs_debit", "bancontact", "card", "card_present", "eps", "giropay", "ideal", "klarna", "multibanco", "p24", "sepa_credit_transfer", "sepa_debit", "sofort", "three_d_secure", "wechat")
VALID_VALUES_FOR_AVAILABLE_PAYOUT_METHODS = String.static_array("instant", "standard")
VALID_VALUES_FOR_OBJECT = String.static_array("source")

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(*, account_holder_name : String | Nil = nil, account_holder_type : String | Nil = nil, account_type : String | Nil = nil, bank_name : String | Nil = nil, country : String | Nil = nil, currency : String | Nil = nil, fingerprint : String | Nil = nil, id : String | Nil = nil, last4 : String | Nil = nil, metadata : Hash(String, String) | Nil = nil, object : String | Nil = nil, routing_number : String | Nil = nil, status : String | Nil = nil, address_city : String | Nil = nil, address_country : String | Nil = nil, address_line1 : String | Nil = nil, address_line1_check : String | Nil = nil, address_line2 : String | Nil = nil, address_state : String | Nil = nil, address_zip : String | Nil = nil, address_zip_check : String | Nil = nil, brand : String | Nil = nil, cvc_check : String | Nil = nil, dynamic_last4 : String | Nil = nil, exp_month : Int64 | Nil = nil, exp_year : Int64 | Nil = nil, funding : String | Nil = nil, name : String | Nil = nil, tokenization_method : String | Nil = nil, amount : Int64 | Nil = nil, client_secret : String | Nil = nil, created : Int64 | Nil = nil, flow : String | Nil = nil, livemode : Bool | Nil = nil, owner : Stripe::SourceOwner | Nil = nil, statement_descriptor : String | Nil = nil, _type : String | Nil = nil, usage : String | Nil = nil, account : Stripe::CardAccount | Nil = nil, available_payout_methods : Array(String) | Nil = nil, customer : String | Nil = nil, default_for_currency : Bool | Nil = nil, future_requirements : Stripe::ExternalAccountRequirements | Nil = nil, requirements : Stripe::ExternalAccountRequirements | Nil = nil, description : String | Nil = nil, iin : String | Nil = nil, issuer : String | Nil = nil, networks : Stripe::TokenCardNetworks | Nil = nil, ach_credit_transfer : Stripe::SourceTypeAchCreditTransfer | Nil = nil, ach_debit : Stripe::SourceTypeAchDebit | Nil = nil, acss_debit : Stripe::SourceTypeAcssDebit | Nil = nil, alipay : Stripe::SourceTypeAlipay | Nil = nil, au_becs_debit : Stripe::SourceTypeAuBecsDebit | Nil = nil, bancontact : Stripe::SourceTypeBancontact | Nil = nil, card : Stripe::SourceTypeCard | Nil = nil, card_present2 : Stripe::SourceTypeCardPresent | Nil = nil, code_verification : Stripe::SourceCodeVerificationFlow | Nil = nil, eps : Stripe::SourceTypeEps | Nil = nil, giropay : Stripe::SourceTypeGiropay | Nil = nil, ideal : Stripe::SourceTypeIdeal | Nil = nil, klarna : Stripe::SourceTypeKlarna | Nil = nil, multibanco : Stripe::SourceTypeMultibanco | Nil = nil, p24 : Stripe::SourceTypeP24 | Nil = nil, receiver : Stripe::SourceReceiverFlow | Nil = nil, redirect : Stripe::SourceRedirectFlow | Nil = nil, sepa_credit_transfer : Stripe::SourceTypeSepaCreditTransfer | Nil = nil, sepa_debit : Stripe::SourceTypeSepaDebit | Nil = nil, sofort : Stripe::SourceTypeSofort | Nil = nil, source_order : Stripe::SourceOrder | Nil = nil, three_d_secure : Stripe::SourceTypeThreeDSecure | Nil = nil, wechat : Stripe::SourceTypeWechat | 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 account : Stripe::CardAccount | Nil #

[View source]
def account=(account : Stripe::CardAccount | Nil) #

[View source]
def account_holder_name : String | Nil #

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

[View source]
def account_holder_type : String | Nil #

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

[View source]
def account_present=(account_present : Bool) #

[View source]
def account_present? : Bool #

[View source]
def account_type : String | Nil #

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

[View source]
def ach_credit_transfer : Stripe::SourceTypeAchCreditTransfer | Nil #

[View source]
def ach_credit_transfer=(ach_credit_transfer : Stripe::SourceTypeAchCreditTransfer | Nil) #

[View source]
def ach_debit : Stripe::SourceTypeAchDebit | Nil #

[View source]
def ach_debit=(ach_debit : Stripe::SourceTypeAchDebit | Nil) #

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

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

[View source]
def address_city : String | Nil #

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

[View source]
def address_country : String | Nil #

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

[View source]
def address_line1 : String | Nil #

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

[View source]
def address_line1_check : String | Nil #

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

[View source]
def address_line2 : String | Nil #

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

[View source]
def address_state : String | Nil #

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

[View source]
def address_zip : String | Nil #

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

[View source]
def address_zip_check : String | Nil #

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

[View source]
def alipay : Stripe::SourceTypeAlipay | Nil #

[View source]
def alipay=(alipay : Stripe::SourceTypeAlipay | Nil) #

[View source]
def amount : Int64 | Nil #

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

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

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

[View source]
def available_payout_methods : Array(String) | Nil #

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

[View source]
def available_payout_methods_present=(available_payout_methods_present : Bool) #

[View source]
def available_payout_methods_present? : Bool #

[View source]
def bancontact : Stripe::SourceTypeBancontact | Nil #

[View source]
def bancontact=(bancontact : Stripe::SourceTypeBancontact | Nil) #

[View source]
def bank_name : String | Nil #

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

[View source]
def brand : String | Nil #

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

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

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

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

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

[View source]
def client_secret : String | Nil #

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

[View source]
def code_verification : Stripe::SourceCodeVerificationFlow | Nil #

[View source]
def code_verification=(code_verification : Stripe::SourceCodeVerificationFlow | Nil) #

[View source]
def country : String | Nil #

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

[View source]
def created : Int64 | Nil #

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

[View source]
def currency : String | Nil #

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

[View source]
def customer : String | Nil #

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

[View source]
def cvc_check : String | Nil #

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

[View source]
def default_for_currency : Bool | Nil #

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

[View source]
def default_for_currency_present=(default_for_currency_present : Bool) #

[View source]
def default_for_currency_present? : Bool #

[View source]
def description : String | Nil #

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

[View source]
def dynamic_last4 : String | Nil #

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

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

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

[View source]
def exp_month : Int64 | Nil #

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

[View source]
def exp_year : Int64 | Nil #

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

[View source]
def fingerprint : String | Nil #

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

[View source]
def flow : String | Nil #

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

[View source]
def funding : String | Nil #

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

[View source]
def future_requirements : Stripe::ExternalAccountRequirements | Nil #

[View source]
def future_requirements=(future_requirements : Stripe::ExternalAccountRequirements | Nil) #

[View source]
def giropay : Stripe::SourceTypeGiropay | Nil #

[View source]
def giropay=(giropay : Stripe::SourceTypeGiropay | 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::SourceTypeIdeal | Nil #

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

[View source]
def iin : String | Nil #

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

[View source]
def issuer : String | Nil #

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

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

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

[View source]
def last4 : String | Nil #

[View source]
def last4=(last4 : String | 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 multibanco : Stripe::SourceTypeMultibanco | Nil #

[View source]
def multibanco=(multibanco : Stripe::SourceTypeMultibanco | Nil) #

[View source]
def name : String | Nil #

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

[View source]
def networks : Stripe::TokenCardNetworks | Nil #

[View source]
def networks=(networks : Stripe::TokenCardNetworks | Nil) #

[View source]
def object : String | Nil #

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

[View source]
def owner : Stripe::SourceOwner | Nil #

[View source]
def owner=(owner : Stripe::SourceOwner | Nil) #

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

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

[View source]
def receiver : Stripe::SourceReceiverFlow | Nil #

[View source]
def receiver=(receiver : Stripe::SourceReceiverFlow | Nil) #

[View source]
def redirect : Stripe::SourceRedirectFlow | Nil #

[View source]
def redirect=(redirect : Stripe::SourceRedirectFlow | Nil) #

[View source]
def requirements : Stripe::ExternalAccountRequirements | Nil #

[View source]
def requirements=(requirements : Stripe::ExternalAccountRequirements | Nil) #

[View source]
def routing_number : String | Nil #

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

[View source]
def sepa_credit_transfer : Stripe::SourceTypeSepaCreditTransfer | Nil #

[View source]
def sepa_credit_transfer=(sepa_credit_transfer : Stripe::SourceTypeSepaCreditTransfer | Nil) #

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

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

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

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

[View source]
def source_order : Stripe::SourceOrder | Nil #

[View source]
def source_order=(source_order : Stripe::SourceOrder | Nil) #

[View source]
def statement_descriptor : String | Nil #

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

[View source]
def status : String | Nil #

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

[View source]
def three_d_secure : Stripe::SourceTypeThreeDSecure | Nil #

[View source]
def three_d_secure=(three_d_secure : Stripe::SourceTypeThreeDSecure | Nil) #

[View source]
def tokenization_method : String | Nil #

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

[View source]
def usage : String | Nil #

[View source]
def usage=(usage : String | 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 : Stripe::SourceTypeWechat | Nil #

[View source]
def wechat=(wechat : Stripe::SourceTypeWechat | Nil) #

[View source]