Class: Stripe::DelegatedCheckout::RequestedSessionUpdateParams::PaymentMethodData::Card

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/delegated_checkout/requested_session_update_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(cvc: nil, exp_month: nil, exp_year: nil, number: nil) ⇒ Card

Returns a new instance of Card.



155
156
157
158
159
160
# File 'lib/stripe/params/delegated_checkout/requested_session_update_params.rb', line 155

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.



147
148
149
# File 'lib/stripe/params/delegated_checkout/requested_session_update_params.rb', line 147

def cvc
  @cvc
end

#exp_monthObject

The expiration month of the card.



149
150
151
# File 'lib/stripe/params/delegated_checkout/requested_session_update_params.rb', line 149

def exp_month
  @exp_month
end

#exp_yearObject

The expiration year of the card.



151
152
153
# File 'lib/stripe/params/delegated_checkout/requested_session_update_params.rb', line 151

def exp_year
  @exp_year
end

#numberObject

The number of the card.



153
154
155
# File 'lib/stripe/params/delegated_checkout/requested_session_update_params.rb', line 153

def number
  @number
end