Class: Stripe::V2::Payments::OffSessionPaymentCreateParams::PaymentMethodData::Card
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::V2::Payments::OffSessionPaymentCreateParams::PaymentMethodData::Card
- Defined in:
- lib/stripe/params/v2/payments/off_session_payment_create_params.rb
Instance Attribute Summary collapse
-
#cvc ⇒ Object
The card CVC.
-
#exp_month ⇒ Object
The card expiration month.
-
#exp_year ⇒ Object
The card expiration year.
-
#number ⇒ Object
The card number.
Instance Method Summary collapse
-
#initialize(cvc: nil, exp_month: nil, exp_year: nil, number: nil) ⇒ Card
constructor
A new instance of Card.
Methods inherited from RequestParams
attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h
Constructor Details
#initialize(cvc: nil, exp_month: nil, exp_year: nil, number: nil) ⇒ Card
Returns a new instance of Card.
76 77 78 79 80 81 |
# File 'lib/stripe/params/v2/payments/off_session_payment_create_params.rb', line 76 def initialize(cvc: nil, exp_month: nil, exp_year: nil, number: nil) @cvc = cvc @exp_month = exp_month @exp_year = exp_year @number = number end |
Instance Attribute Details
#cvc ⇒ Object
The card CVC.
68 69 70 |
# File 'lib/stripe/params/v2/payments/off_session_payment_create_params.rb', line 68 def cvc @cvc end |
#exp_month ⇒ Object
The card expiration month.
70 71 72 |
# File 'lib/stripe/params/v2/payments/off_session_payment_create_params.rb', line 70 def exp_month @exp_month end |
#exp_year ⇒ Object
The card expiration year.
72 73 74 |
# File 'lib/stripe/params/v2/payments/off_session_payment_create_params.rb', line 72 def exp_year @exp_year end |
#number ⇒ Object
The card number.
74 75 76 |
# File 'lib/stripe/params/v2/payments/off_session_payment_create_params.rb', line 74 def number @number end |