Class: Stripe::PaymentIntent::UpdateParams::PaymentMethodData::Klarna::Dob

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/resources/payment_intent.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(day: nil, month: nil, year: nil) ⇒ Dob

Returns a new instance of Dob.



4147
4148
4149
4150
4151
# File 'lib/stripe/resources/payment_intent.rb', line 4147

def initialize(day: nil, month: nil, year: nil)
  @day = day
  @month = month
  @year = year
end

Instance Attribute Details

#dayObject

The day of birth, between 1 and 31.



4141
4142
4143
# File 'lib/stripe/resources/payment_intent.rb', line 4141

def day
  @day
end

#monthObject

The month of birth, between 1 and 12.



4143
4144
4145
# File 'lib/stripe/resources/payment_intent.rb', line 4143

def month
  @month
end

#yearObject

The four-digit year of birth.



4145
4146
4147
# File 'lib/stripe/resources/payment_intent.rb', line 4145

def year
  @year
end