Class: Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Klarna::Dob

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



2751
2752
2753
2754
2755
# File 'lib/stripe/services/setup_intent_service.rb', line 2751

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.



2745
2746
2747
# File 'lib/stripe/services/setup_intent_service.rb', line 2745

def day
  @day
end

#monthObject

The month of birth, between 1 and 12.



2747
2748
2749
# File 'lib/stripe/services/setup_intent_service.rb', line 2747

def month
  @month
end

#yearObject

The four-digit year of birth.



2749
2750
2751
# File 'lib/stripe/services/setup_intent_service.rb', line 2749

def year
  @year
end