class Stripe::Card
- Stripe::Card
- Reference
- Object
Overview
You can store multiple cards on a customer in order to charge the customer later. You can also store multiple debit cards on a recipient in order to transfer to those cards later. Related guide: Card payments with Sources
Included Modules
- JSON::Serializable
- JSON::Serializable::Unmapped
- OpenApi::Json
- OpenApi::Validatable
Defined in:
stripe/models/card.crConstant 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_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_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_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
- .new(pull : JSON::PullParser)
-
.new(*, 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, country : 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, id : String | Nil = nil, last4 : String | Nil = nil, metadata : Hash(String, String) | Nil = nil, name : String | Nil = nil, object : String | Nil = nil, tokenization_method : String | Nil = nil, account : Stripe::CardAccount | Nil = nil, available_payout_methods : Array(String) | Nil = nil, currency : String | Nil = nil, customer : Stripe::CardCustomer | Nil = nil, default_for_currency : Bool | Nil = nil, description : String | Nil = nil, fingerprint : String | Nil = nil, iin : String | Nil = nil, issuer : String | Nil = nil, networks : Stripe::TokenCardNetworks | Nil = nil, status : String | Nil = nil)
Initializes the object @param [Hash] attributes Model attributes in the form of hash
Instance Method Summary
-
#==(other : self)
Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes.
- #account : Stripe::CardAccount | Nil
-
#account=(new_value : Stripe::CardAccount | Nil)
Custom attribute writer method checking allowed values (enum).
- #account_present=(account_present : Bool)
- #account_present? : Bool
- #address_city : String | Nil
-
#address_city=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #address_country : String | Nil
-
#address_country=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #address_line1 : String | Nil
-
#address_line1=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #address_line1_check : String | Nil
-
#address_line1_check=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #address_line2 : String | Nil
-
#address_line2=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #address_state : String | Nil
-
#address_state=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #address_zip : String | Nil
-
#address_zip=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #address_zip_check : String | Nil
-
#address_zip_check=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #available_payout_methods : Array(String) | Nil
-
#available_payout_methods=(new_value : Array(String) | Nil)
Custom attribute writer method checking allowed values (enum).
- #available_payout_methods_present=(available_payout_methods_present : Bool)
- #available_payout_methods_present? : Bool
- #brand : String | Nil
-
#brand=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #country : String | Nil
-
#country=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #currency : String | Nil
-
#currency=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #currency_present=(currency_present : Bool)
- #currency_present? : Bool
- #customer : Stripe::CardCustomer | Nil
-
#customer=(new_value : Stripe::CardCustomer | Nil)
Custom attribute writer method checking allowed values (enum).
- #customer_present=(customer_present : Bool)
- #customer_present? : Bool
- #cvc_check : String | Nil
-
#cvc_check=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #default_for_currency : Bool | Nil
-
#default_for_currency=(new_value : Bool | Nil)
Custom attribute writer method checking allowed values (enum).
- #default_for_currency_present=(default_for_currency_present : Bool)
- #default_for_currency_present? : Bool
- #description : String | Nil
-
#description=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #dynamic_last4 : String | Nil
-
#dynamic_last4=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #exp_month : Int64 | Nil
-
#exp_month=(new_value : Int64 | Nil)
Custom attribute writer method checking allowed values (enum).
- #exp_year : Int64 | Nil
-
#exp_year=(new_value : Int64 | Nil)
Custom attribute writer method checking allowed values (enum).
- #fingerprint : String | Nil
-
#fingerprint=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #fingerprint_present=(fingerprint_present : Bool)
- #fingerprint_present? : Bool
- #funding : String | Nil
-
#funding=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
-
#hash(hasher)
Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes.
- #id : String | Nil
-
#id=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #iin : String | Nil
-
#iin=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #issuer : String | Nil
-
#issuer=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #last4 : String | Nil
-
#last4=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
-
#list_invalid_properties : Array(String)
Show invalid properties with the reasons.
- #metadata : Hash(String, String) | Nil
-
#metadata=(new_value : Hash(String, String) | Nil)
Custom attribute writer method checking allowed values (enum).
- #name : String | Nil
-
#name=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #networks : Stripe::TokenCardNetworks | Nil
-
#networks=(new_value : Stripe::TokenCardNetworks | Nil)
Custom attribute writer method checking allowed values (enum).
- #object : String | Nil
-
#object=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #status : String | Nil
-
#status=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #status_present=(status_present : Bool)
- #status_present? : Bool
- #tokenization_method : String | Nil
-
#tokenization_method=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
-
#valid? : Bool
Check to see if the all the properties in the model are valid @return true if the model is valid
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
Initializes the object @param [Hash] attributes Model attributes in the form of hash
Instance Method Detail
Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code
Custom attribute writer method checking allowed values (enum). @param [Object] account Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] address_city Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] address_country Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] address_line1 Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] address_line1_check Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] address_line2 Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] address_state Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] address_zip Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] address_zip_check Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] available_payout_methods Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] brand Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] country Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] currency Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] customer Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] cvc_check Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] default_for_currency Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] description Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] dynamic_last4 Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] exp_month Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] exp_year Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] fingerprint Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] funding Object to be assigned
Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code
Custom attribute writer method checking allowed values (enum). @param [Object] id Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] iin Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] issuer Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] last4 Object to be assigned
Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons
Custom attribute writer method checking allowed values (enum). @param [Object] metadata Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] name Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] networks Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] object Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] status Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] tokenization_method Object to be assigned
Check to see if the all the properties in the model are valid @return true if the model is valid