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.



2610
2611
2612
2613
2614
# File 'lib/stripe/services/setup_intent_service.rb', line 2610

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.



2604
2605
2606
# File 'lib/stripe/services/setup_intent_service.rb', line 2604

def day
  @day
end

#monthObject

The month of birth, between 1 and 12.



2606
2607
2608
# File 'lib/stripe/services/setup_intent_service.rb', line 2606

def month
  @month
end

#yearObject

The four-digit year of birth.



2608
2609
2610
# File 'lib/stripe/services/setup_intent_service.rb', line 2608

def year
  @year
end