Class: Stripe::PaymentIntent::CreateParams::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.



2986
2987
2988
2989
2990
# File 'lib/stripe/resources/payment_intent.rb', line 2986

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.



2980
2981
2982
# File 'lib/stripe/resources/payment_intent.rb', line 2980

def day
  @day
end

#monthObject

The month of birth, between 1 and 12.



2982
2983
2984
# File 'lib/stripe/resources/payment_intent.rb', line 2982

def month
  @month
end

#yearObject

The four-digit year of birth.



2984
2985
2986
# File 'lib/stripe/resources/payment_intent.rb', line 2984

def year
  @year
end