class

Stripe::PaymentMethodCard

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_DESCRIPTION = 5000
MAX_LENGTH_FOR_DISPLAY_BRAND = 5000
MAX_LENGTH_FOR_FINGERPRINT = 5000
MAX_LENGTH_FOR_FUNDING = 5000
MAX_LENGTH_FOR_IIN = 5000
MAX_LENGTH_FOR_ISSUER = 5000
MAX_LENGTH_FOR_LAST4 = 5000

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new(*, brand : String | Nil = nil, checks : Stripe::PaymentMethodCardChecks1 | Nil = nil, country : String | Nil = nil, display_brand : String | Nil = nil, exp_month : Int64 | Nil = nil, exp_year : Int64 | Nil = nil, funding : String | Nil = nil, generated_from : Stripe::PaymentMethodCardGeneratedFrom | Nil = nil, last4 : String | Nil = nil, networks : Stripe::PaymentMethodCardNetworks | Nil = nil, three_d_secure_usage : Stripe::PaymentMethodCardThreeDSecureUsage | Nil = nil, wallet : Stripe::PaymentMethodCardWallet1 | Nil = nil, description : String | Nil = nil, fingerprint : String | Nil = nil, iin : String | Nil = nil, issuer : 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

Card brand. Can be amex, diners, discover, eftpos_au, jcb, mastercard, unionpay, visa, or unknown.

Source
brand=(new_value : String | Nil)

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

Source
checks
Source
checks=(new_value : Stripe::PaymentMethodCardChecks1 | Nil)

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

Source
country

Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.

Source
country=(new_value : String | Nil)

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

Source
description

A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.)

Source
description=(new_value : String | Nil)

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

Source
description_present=(description_present : Bool)
Source
description_present?
Source
display_brand

The brand to use when displaying the card, this accounts for customer's brand choice on dual-branded cards. Can be american_express, cartes_bancaires, diners_club, discover, eftpos_australia, interac, jcb, mastercard, union_pay, visa, or other and may contain more values in the future.

Source
display_brand=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] display_brand 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

Four-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
fingerprint

Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number. As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.

Source
fingerprint=(new_value : String | Nil)

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

Source
fingerprint_present=(fingerprint_present : Bool)
Source
fingerprint_present?
Source
funding

Card funding type. Can be credit, debit, prepaid, or unknown.

Source
funding=(new_value : String | Nil)

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

Source
generated_from
Source
generated_from=(new_value : Stripe::PaymentMethodCardGeneratedFrom | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] generated_from 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

iin

Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)

Source
iin=(new_value : String | Nil)

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

Source
iin_present=(iin_present : Bool)
Source
iin_present?
Source
issuer

The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.)

Source
issuer=(new_value : String | Nil)

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

Source
issuer_present=(issuer_present : Bool)
Source
issuer_present?
Source
last4

The last four 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
networks
Source
networks=(new_value : Stripe::PaymentMethodCardNetworks | Nil)

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

Source
three_d_secure_usage
Source
three_d_secure_usage=(new_value : Stripe::PaymentMethodCardThreeDSecureUsage | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] three_d_secure_usage 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
wallet
Source
wallet=(new_value : Stripe::PaymentMethodCardWallet1 | Nil)

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

Source