Class: Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Klarna::Dob

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



3537
3538
3539
3540
3541
# File 'lib/stripe/resources/setup_intent.rb', line 3537

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.



3531
3532
3533
# File 'lib/stripe/resources/setup_intent.rb', line 3531

def day
  @day
end

#monthObject

The month of birth, between 1 and 12.



3533
3534
3535
# File 'lib/stripe/resources/setup_intent.rb', line 3533

def month
  @month
end

#yearObject

The four-digit year of birth.



3535
3536
3537
# File 'lib/stripe/resources/setup_intent.rb', line 3535

def year
  @year
end