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
Constructor Details
#initialize(cvc: nil, exp_month: nil, exp_year: nil, number: nil) ⇒ Card
Returns a new instance of Card.
88 89 90 91 92 93 |
# File 'lib/stripe/params/v2/payments/off_session_payment_create_params.rb', line 88 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.
80 81 82 |
# File 'lib/stripe/params/v2/payments/off_session_payment_create_params.rb', line 80 def cvc @cvc end |
#exp_month ⇒ Object
The card expiration month.
82 83 84 |
# File 'lib/stripe/params/v2/payments/off_session_payment_create_params.rb', line 82 def exp_month @exp_month end |
#exp_year ⇒ Object
The card expiration year.
84 85 86 |
# File 'lib/stripe/params/v2/payments/off_session_payment_create_params.rb', line 84 def exp_year @exp_year end |
#number ⇒ Object
The card number.
86 87 88 |
# File 'lib/stripe/params/v2/payments/off_session_payment_create_params.rb', line 86 def number @number end |