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.



1058
1059
1060
1061
1062
# File 'lib/stripe/resources/confirmation_token.rb', line 1058

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.



1052
1053
1054
# File 'lib/stripe/resources/confirmation_token.rb', line 1052

def day
  @day
end

#monthObject

The month of birth, between 1 and 12.



1054
1055
1056
# File 'lib/stripe/resources/confirmation_token.rb', line 1054

def month
  @month
end

#yearObject

The four-digit year of birth.



1056
1057
1058
# File 'lib/stripe/resources/confirmation_token.rb', line 1056

def year
  @year
end