class

Stripe::InternalCard

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

Constants

MAX_LENGTH_FOR_BRAND = 5000
MAX_LENGTH_FOR_COUNTRY = 5000
MAX_LENGTH_FOR_LAST4 = 5000

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new(*, brand : String | Nil = nil, country : String | Nil = nil, exp_month : Int64 | Nil = nil, exp_year : Int64 | Nil = nil, last4 : String | 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

brand

Brand of the card used in the transaction

Source
brand=(new_value : String | Nil)

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

Source
country

Two-letter ISO code representing the country of the card

Source
country=(new_value : String | Nil)

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

Source
exp_month

Two digit number representing the card's expiration month

Source
exp_month=(new_value : Int64 | Nil)

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

Source
exp_year

Two digit number representing the card's expiration year

Source
exp_year=(new_value : Int64 | 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

last4

The last 4 digits of the card

Source
last4=(new_value : String | Nil)

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

Source
list_invalid_properties

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

Source
valid?

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

Source