class Stripe::ExternalAccount

Included Modules

Defined in:

stripe/models/external_account.cr

Constant Summary

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 [card]."
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_COUNTRY = 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_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_STATUS = 5000
MAX_LENGTH_FOR_TOKENIZATION_METHOD = 5000
VALID_VALUES_FOR_AVAILABLE_PAYOUT_METHODS = String.static_array("instant", "standard")
VALID_VALUES_FOR_OBJECT = String.static_array("card")

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, account : Stripe::CardAccount | Nil = nil, available_payout_methods : Array(String) | Nil = nil, customer : Stripe::CardCustomer | 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) #

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

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

[View source]
def currency : String | Nil #

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

[View source]
def customer : Stripe::CardCustomer | Nil #

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

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

[View source]
def customer_present? : Bool #

[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 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 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 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 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 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 metadata : Hash(String, String) | Nil #

[View source]
def metadata=(metadata : Hash(String, String) | 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 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 status : String | Nil #

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

[View source]
def tokenization_method : String | Nil #

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