Class: Stripe::PaymentMethod::CreateParams::Klarna::Dob

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



876
877
878
879
880
# File 'lib/stripe/resources/payment_method.rb', line 876

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.



870
871
872
# File 'lib/stripe/resources/payment_method.rb', line 870

def day
  @day
end

#monthObject

The month of birth, between 1 and 12.



872
873
874
# File 'lib/stripe/resources/payment_method.rb', line 872

def month
  @month
end

#yearObject

The four-digit year of birth.



874
875
876
# File 'lib/stripe/resources/payment_method.rb', line 874

def year
  @year
end