Class: Stripe::V2::Payments::OffSessionPaymentCreateParams::PaymentMethodData::Card

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/v2/payments/off_session_payment_create_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#cvcObject

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_monthObject

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_yearObject

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

#numberObject

The card number.



74
75
76
# File 'lib/stripe/params/v2/payments/off_session_payment_create_params.rb', line 74

def number
  @number
end