class

Stripe::CreditCardSpecs

Inherits OpenApi::Json < OpenApi::Validatable < JSON::Serializable::Unmapped < JSON::Serializable < Reference < Object

Constants

MAX_LENGTH_FOR_ADDRESS_CITY = 5000
MAX_LENGTH_FOR_ADDRESS_COUNTRY = 5000
MAX_LENGTH_FOR_ADDRESS_LINE1 = 5000
MAX_LENGTH_FOR_ADDRESS_LINE2 = 5000
MAX_LENGTH_FOR_ADDRESS_STATE = 5000
MAX_LENGTH_FOR_ADDRESS_ZIP = 5000
MAX_LENGTH_FOR_CURRENCY = 5000
MAX_LENGTH_FOR_CVC = 5000
MAX_LENGTH_FOR_EXP_MONTH = 5000
MAX_LENGTH_FOR_EXP_YEAR = 5000
MAX_LENGTH_FOR_NAME = 5000
MAX_LENGTH_FOR_NUMBER = 5000

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new(*, exp_month : String | Nil = nil, exp_year : String | Nil = nil, number : String | Nil = nil, address_city : String | Nil = nil, address_country : String | Nil = nil, address_line1 : String | Nil = nil, address_line2 : String | Nil = nil, address_state : String | Nil = nil, address_zip : String | Nil = nil, currency : String | Nil = nil, cvc : String | Nil = nil, name : String | Nil = nil, networks : Stripe::NetworksParamSpecs | Nil = nil)

Initializes the object @param [Hash] attributes Model attributes in the form of hash

Source

Instance methods

==(other : self)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

address_city

City / District / Suburb / Town / Village.

Source
address_city=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] address_city Object to be assigned

Source
address_country

Billing address country, if provided.

Source
address_country=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] address_country Object to be assigned

Source
address_line1

Address line 1 (Street address / PO Box / Company name).

Source
address_line1=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] address_line1 Object to be assigned

Source
address_line2

Address line 2 (Apartment / Suite / Unit / Building).

Source
address_line2=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] address_line2 Object to be assigned

Source
address_state

State / County / Province / Region.

Source
address_state=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] address_state Object to be assigned

Source
address_zip

ZIP or postal code.

Source
address_zip=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] address_zip Object to be assigned

Source
currency

Required in order to add the card to an account; in all other cases, this parameter is not used. When added to an account, the card (which must be a debit card) can be used as a transfer destination for funds in this currency.

Source
currency=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] currency Object to be assigned

Source
cvc

Card security code. Highly recommended to always include this value.

Source
cvc=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] cvc Object to be assigned

Source
exp_month

Two-digit number representing the card's expiration month.

Source
exp_month=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] exp_month Object to be assigned

Source
exp_year

Two- or four-digit number representing the card's expiration year.

Source
exp_year=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] exp_year Object to be assigned

Source
hash(hasher)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

list_invalid_properties

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons

Source
name

Cardholder's full name.

Source
name=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] name Object to be assigned

Source
networks
Source
networks=(new_value : Stripe::NetworksParamSpecs | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] networks Object to be assigned

Source
number

The card number, as a string without any separators.

Source
number=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] number Object to be assigned

Source
valid?

Check to see if the all the properties in the model are valid @return true if the model is valid

Source