Class: Stripe::ConfirmationToken::CreateParams::PaymentMethodData::Klarna::Dob

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



1967
1968
1969
1970
1971
# File 'lib/stripe/resources/confirmation_token.rb', line 1967

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.



1961
1962
1963
# File 'lib/stripe/resources/confirmation_token.rb', line 1961

def day
  @day
end

#monthObject

The month of birth, between 1 and 12.



1963
1964
1965
# File 'lib/stripe/resources/confirmation_token.rb', line 1963

def month
  @month
end

#yearObject

The four-digit year of birth.



1965
1966
1967
# File 'lib/stripe/resources/confirmation_token.rb', line 1965

def year
  @year
end