Class: Stripe::DelegatedCheckout::RequestedSessionCreateParams::PaymentMethodData::Card

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/delegated_checkout/requested_session_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.



191
192
193
194
195
196
# File 'lib/stripe/params/delegated_checkout/requested_session_create_params.rb', line 191

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 CVC of the card.



183
184
185
# File 'lib/stripe/params/delegated_checkout/requested_session_create_params.rb', line 183

def cvc
  @cvc
end

#exp_monthObject

The expiration month of the card.



185
186
187
# File 'lib/stripe/params/delegated_checkout/requested_session_create_params.rb', line 185

def exp_month
  @exp_month
end

#exp_yearObject

The expiration year of the card.



187
188
189
# File 'lib/stripe/params/delegated_checkout/requested_session_create_params.rb', line 187

def exp_year
  @exp_year
end

#numberObject

The number of the card.



189
190
191
# File 'lib/stripe/params/delegated_checkout/requested_session_create_params.rb', line 189

def number
  @number
end