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.



4097
4098
4099
4100
4101
# File 'lib/stripe/resources/payment_intent.rb', line 4097

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.



4091
4092
4093
# File 'lib/stripe/resources/payment_intent.rb', line 4091

def day
  @day
end

#monthObject

The month of birth, between 1 and 12.



4093
4094
4095
# File 'lib/stripe/resources/payment_intent.rb', line 4093

def month
  @month
end

#yearObject

The four-digit year of birth.



4095
4096
4097
# File 'lib/stripe/resources/payment_intent.rb', line 4095

def year
  @year
end