class Stripe::PaymentMethodOptionsUsBankAccount

Overview

Optional fields for #us_bank_account.

Included Modules

Defined in:

stripe/models/payment_method_options_us_bank_account.cr

Constant Summary

ERROR_MESSAGE_FOR_ARES_TRANS_STATUS = "invalid value for \"ares_trans_status\", must be one of [A, C, I, N, R, U, Y]."
ERROR_MESSAGE_FOR_CAPTURE_METHOD = "invalid value for \"capture_method\", must be one of [, manual]."
ERROR_MESSAGE_FOR_CLIENT = "invalid value for \"client\", must be one of [android, ios, web]."
ERROR_MESSAGE_FOR_CURRENCY = "invalid value for \"currency\", must be one of [cad, usd]."
ERROR_MESSAGE_FOR_ELECTRONIC_COMMERCE_INDICATOR = "invalid value for \"electronic_commerce_indicator\", must be one of [01, 02, 05, 06, 07]."
ERROR_MESSAGE_FOR_EXEMPTION_INDICATOR = "invalid value for \"exemption_indicator\", must be one of [low_risk, none]."
ERROR_MESSAGE_FOR_FUNDING_TYPE = "invalid value for \"funding_type\", must be one of [bank_transfer]."
ERROR_MESSAGE_FOR_PREFERRED_LOCALE = "invalid value for \"preferred_locale\", must be one of [cs-CZ, da-DK, de-AT, de-DE, de-LU, el-GR, en-GB, en-US, es-ES, fi-FI, fr-BE, fr-FR, fr-LU, hu-HU, it-IT, nl-BE, nl-NL, pl-PL, pt-PT, sk-SK, sv-SE]."
ERROR_MESSAGE_FOR_REQUEST_THREE_D_SECURE = "invalid value for \"request_three_d_secure\", must be one of [any, automatic, challenge]."
ERROR_MESSAGE_FOR_SETUP_FUTURE_USAGE = "invalid value for \"setup_future_usage\", must be one of [none]."
ERROR_MESSAGE_FOR_VERIFICATION_METHOD = "invalid value for \"verification_method\", must be one of [automatic, instant]."
ERROR_MESSAGE_FOR_VERSION = "invalid value for \"version\", must be one of [1.0.2, 2.1.0, 2.2.0]."
MAX_LENGTH_FOR_APP_ID = 5000
MAX_LENGTH_FOR_BILLING_AGREEMENT_ID = 5000
MAX_LENGTH_FOR_CRYPTOGRAM = 5000
MAX_LENGTH_FOR_REFERENCE = 5000
MAX_LENGTH_FOR_REQUESTOR_CHALLENGE_INDICATOR = 2
MAX_LENGTH_FOR_RISK_CORRELATION_ID = 32
MAX_LENGTH_FOR_STATEMENT_DESCRIPTOR_SUFFIX_KANA = 22
MAX_LENGTH_FOR_STATEMENT_DESCRIPTOR_SUFFIX_KANJI = 17
MAX_LENGTH_FOR_TRANSACTION_ID = 5000
VALID_VALUES_FOR_ARES_TRANS_STATUS = String.static_array("A", "C", "I", "N", "R", "U", "Y")
VALID_VALUES_FOR_CAPTURE_METHOD = String.static_array("", "manual")
VALID_VALUES_FOR_CLIENT = String.static_array("android", "ios", "web")
VALID_VALUES_FOR_CURRENCY = String.static_array("cad", "usd")
VALID_VALUES_FOR_ELECTRONIC_COMMERCE_INDICATOR = String.static_array("01", "02", "05", "06", "07")
VALID_VALUES_FOR_EXEMPTION_INDICATOR = String.static_array("low_risk", "none")
VALID_VALUES_FOR_FUNDING_TYPE = String.static_array("bank_transfer")
VALID_VALUES_FOR_PREFERRED_LOCALE = String.static_array("cs-CZ", "da-DK", "de-AT", "de-DE", "de-LU", "el-GR", "en-GB", "en-US", "es-ES", "fi-FI", "fr-BE", "fr-FR", "fr-LU", "hu-HU", "it-IT", "nl-BE", "nl-NL", "pl-PL", "pt-PT", "sk-SK", "sv-SE")
VALID_VALUES_FOR_REQUEST_THREE_D_SECURE = String.static_array("any", "automatic", "challenge")
VALID_VALUES_FOR_SETUP_FUTURE_USAGE = String.static_array("none")
VALID_VALUES_FOR_VERIFICATION_METHOD = String.static_array("automatic", "instant")
VALID_VALUES_FOR_VERSION = String.static_array("1.0.2", "2.1.0", "2.2.0")

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(*, cryptogram : String | Nil = nil, transaction_id : String | Nil = nil, version : String | Nil = nil, acss_debit : Stripe::SetupIntentPaymentMethodOptionsParam | Nil = nil, affirm : Stripe::PaymentMethodOptionsParam | Nil = nil, afterpay_clearpay : Stripe::PaymentMethodOptionsParam | Nil = nil, alipay : Stripe::PaymentMethodOptionsParam | Nil = nil, amazon_pay : Stripe::SetupIntentPaymentMethodOptionsParam | Nil = nil, app_id : String | Nil = nil, ares_trans_status : String | Nil = nil, au_becs_debit : Stripe::PaymentMethodOptionsParam | Nil = nil, bacs_debit : Stripe::SetupIntentPaymentMethodOptionsParam | Nil = nil, bancontact : Stripe::PaymentMethodOptionsParam | Nil = nil, bank_transfer : Stripe::BankTransferParam | Nil = nil, billing_agreement_id : String | Nil = nil, blik : Stripe::PaymentMethodOptionsParamBlik | Nil = nil, boleto : Stripe::PaymentMethodOptionsParam | Nil = nil, capture_method : String | Nil = nil, card : Stripe::SetupIntentParam | Nil = nil, card_present2 : Stripe::SetupIntentPaymentMethodOptionsParam | Nil = nil, cashapp : Stripe::PaymentMethodOptionsParam | Nil = nil, client : String | Nil = nil, currency : String | Nil = nil, customer_balance : Stripe::PaymentMethodOptionsParam | Nil = nil, electronic_commerce_indicator : String | Nil = nil, eps : Stripe::PaymentMethodOptionsParam | Nil = nil, exemption_indicator : String | Nil = nil, expires_after_days : Int64 | Nil = nil, expires_after_seconds : Int64 | Nil = nil, financial_connections : Stripe::LinkedAccountOptionsParam | Nil = nil, fpx : Stripe::PaymentMethodOptionsParam | Nil = nil, funding_type : String | Nil = nil, giropay : Stripe::PaymentMethodOptionsParam | Nil = nil, grabpay : Stripe::PaymentMethodOptionsParam | Nil = nil, ideal : Stripe::PaymentMethodOptionsParam | Nil = nil, installments : Stripe::InstallmentsParam | Nil = nil, interac_present : Stripe::PaymentMethodOptionsParamInteracPresent | Nil = nil, klarna : Stripe::PaymentMethodOptionsParam | Nil = nil, konbini : Stripe::PaymentMethodOptionsParam | Nil = nil, link : Stripe::SetupIntentPaymentMethodOptionsParam | Nil = nil, mandate_options : Stripe::MandateOptionsParam | Nil = nil, mobilepay : Stripe::PaymentMethodOptionsParam | Nil = nil, multibanco : Stripe::PaymentMethodOptionsParam | Nil = nil, network_options : Stripe::NetworkOptionsParam | Nil = nil, oxxo : Stripe::PaymentMethodOptionsParam | Nil = nil, p24 : Stripe::PaymentMethodOptionsParam | Nil = nil, paynow : Stripe::PaymentMethodOptionsParam | Nil = nil, paypal : Stripe::PaymentMethodOptionsParam | Nil = nil, pix : Stripe::PaymentMethodOptionsParam | Nil = nil, preferred_locale : String | Nil = nil, promptpay : Stripe::PaymentMethodOptionsParamPromptpay | Nil = nil, reference : String | Nil = nil, request_three_d_secure : String | Nil = nil, requestor_challenge_indicator : String | Nil = nil, revolut_pay : Stripe::PaymentMethodOptionsParam | Nil = nil, risk_correlation_id : String | Nil = nil, sepa_debit : Stripe::SetupIntentPaymentMethodOptionsParam | Nil = nil, setup_future_usage : String | Nil = nil, sofort : Stripe::PaymentMethodOptionsParam | Nil = nil, statement_descriptor_suffix_kana : String | Nil = nil, statement_descriptor_suffix_kanji : String | Nil = nil, swish : Stripe::PaymentMethodOptionsParam | Nil = nil, tos_shown_and_accepted : Bool | Nil = nil, twint : Stripe::PaymentMethodOptionsParamTwint | Nil = nil, us_bank_account : Stripe::SetupIntentPaymentMethodOptionsParam | Nil = nil, verification_method : String | Nil = nil, wechat_pay : Stripe::PaymentMethodOptionsParam | Nil = nil, zip : Stripe::PaymentMethodOptionsParamZip | 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



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

[View source]

[View source]
def affirm=(affirm : Stripe::PaymentMethodOptionsParam | Nil) #

[View source]
def afterpay_clearpay : Stripe::PaymentMethodOptionsParam | Nil #

[View source]
def afterpay_clearpay=(afterpay_clearpay : Stripe::PaymentMethodOptionsParam | Nil) #

[View source]

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

[View source]

[View source]
def amazon_pay=(amazon_pay : Stripe::SetupIntentPaymentMethodOptionsParam | Nil) #

[View source]
def app_id : String | Nil #

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

[View source]
def ares_trans_status : String | Nil #

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

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

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

[View source]

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

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

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

[View source]
def bank_transfer : Stripe::BankTransferParam | Nil #

[View source]
def bank_transfer=(bank_transfer : Stripe::BankTransferParam | Nil) #

[View source]
def billing_agreement_id : String | Nil #

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

[View source]

[View source]
def blik=(blik : Stripe::PaymentMethodOptionsParamBlik | Nil) #

[View source]

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

[View source]
def capture_method : String | Nil #

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

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

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

[View source]

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

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

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

[View source]
def client : String | Nil #

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

[View source]
def cryptogram : String | Nil #

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

[View source]
def currency : String | Nil #

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

[View source]
def customer_balance : Stripe::PaymentMethodOptionsParam | Nil #

[View source]
def customer_balance=(customer_balance : Stripe::PaymentMethodOptionsParam | Nil) #

[View source]
def electronic_commerce_indicator : String | Nil #

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

[View source]

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

[View source]
def exemption_indicator : String | Nil #

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

[View source]
def expires_after_days : Int64 | Nil #

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

[View source]
def expires_after_seconds : Int64 | Nil #

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

[View source]
def financial_connections : Stripe::LinkedAccountOptionsParam | Nil #

[View source]
def financial_connections=(financial_connections : Stripe::LinkedAccountOptionsParam | Nil) #

[View source]

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

[View source]
def funding_type : String | Nil #

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

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

[View source]
def giropay=(giropay : Stripe::PaymentMethodOptionsParam | Nil) #

[View source]
def grabpay : Stripe::PaymentMethodOptionsParam | Nil #

[View source]
def grabpay=(grabpay : Stripe::PaymentMethodOptionsParam | 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



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

[View source]
def installments : Stripe::InstallmentsParam | Nil #

[View source]
def installments=(installments : Stripe::InstallmentsParam | Nil) #

[View source]

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

[View source]

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

[View source]
def konbini : Stripe::PaymentMethodOptionsParam | Nil #

[View source]
def konbini=(konbini : Stripe::PaymentMethodOptionsParam | Nil) #

[View source]

[View source]

[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 mandate_options : Stripe::MandateOptionsParam | Nil #

[View source]
def mandate_options=(mandate_options : Stripe::MandateOptionsParam | Nil) #

[View source]
def mobilepay : Stripe::PaymentMethodOptionsParam | Nil #

[View source]
def mobilepay=(mobilepay : Stripe::PaymentMethodOptionsParam | Nil) #

[View source]
def multibanco : Stripe::PaymentMethodOptionsParam | Nil #

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

[View source]
def network_options : Stripe::NetworkOptionsParam | Nil #

[View source]
def network_options=(network_options : Stripe::NetworkOptionsParam | Nil) #

[View source]

[View source]
def oxxo=(oxxo : Stripe::PaymentMethodOptionsParam | Nil) #

[View source]

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

[View source]

[View source]
def paynow=(paynow : Stripe::PaymentMethodOptionsParam | Nil) #

[View source]

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

[View source]

[View source]
def pix=(pix : Stripe::PaymentMethodOptionsParam | Nil) #

[View source]
def preferred_locale : String | Nil #

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

[View source]

[View source]
def promptpay=(promptpay : Stripe::PaymentMethodOptionsParamPromptpay | Nil) #

[View source]
def reference : String | Nil #

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

[View source]
def request_three_d_secure : String | Nil #

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

[View source]
def requestor_challenge_indicator : String | Nil #

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

[View source]
def revolut_pay : Stripe::PaymentMethodOptionsParam | Nil #

[View source]
def revolut_pay=(revolut_pay : Stripe::PaymentMethodOptionsParam | Nil) #

[View source]
def risk_correlation_id : String | Nil #

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

[View source]

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

[View source]
def setup_future_usage : String | Nil #

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

[View source]

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

[View source]
def statement_descriptor_suffix_kana : String | Nil #

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

[View source]
def statement_descriptor_suffix_kanji : String | Nil #

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

[View source]

[View source]
def swish=(swish : Stripe::PaymentMethodOptionsParam | Nil) #

[View source]
def tos_shown_and_accepted : Bool | Nil #

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

[View source]
def transaction_id : String | Nil #

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

[View source]

[View source]
def twint=(twint : Stripe::PaymentMethodOptionsParamTwint | Nil) #

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

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

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

[View source]
def version : String | Nil #

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

[View source]
def wechat_pay : Stripe::PaymentMethodOptionsParam | Nil #

[View source]
def wechat_pay=(wechat_pay : Stripe::PaymentMethodOptionsParam | Nil) #

[View source]

[View source]
def zip=(zip : Stripe::PaymentMethodOptionsParamZip | Nil) #

[View source]