Class: Stripe::PaymentMethodUpdateParams::Card

Inherits:
RequestParams show all
Defined in:
lib/stripe/params/payment_method_update_params.rb

Defined Under Namespace

Classes: Networks

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(exp_month: nil, exp_year: nil, networks: nil) ⇒ Card

Returns a new instance of Card.



73
74
75
76
77
# File 'lib/stripe/params/payment_method_update_params.rb', line 73

def initialize(exp_month: nil, exp_year: nil, networks: nil)
  @exp_month = exp_month
  @exp_year = exp_year
  @networks = networks
end

Instance Attribute Details

#exp_monthObject

Two-digit number representing the card’s expiration month.



67
68
69
# File 'lib/stripe/params/payment_method_update_params.rb', line 67

def exp_month
  @exp_month
end

#exp_yearObject

Four-digit number representing the card’s expiration year.



69
70
71
# File 'lib/stripe/params/payment_method_update_params.rb', line 69

def exp_year
  @exp_year
end

#networksObject

Contains information about card networks used to process the payment.



71
72
73
# File 'lib/stripe/params/payment_method_update_params.rb', line 71

def networks
  @networks
end