Class: Stripe::SetupIntentService::UpdateParams::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.



1358
1359
1360
1361
1362
# File 'lib/stripe/services/setup_intent_service.rb', line 1358

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.



1352
1353
1354
# File 'lib/stripe/services/setup_intent_service.rb', line 1352

def day
  @day
end

#monthObject

The month of birth, between 1 and 12.



1354
1355
1356
# File 'lib/stripe/services/setup_intent_service.rb', line 1354

def month
  @month
end

#yearObject

The four-digit year of birth.



1356
1357
1358
# File 'lib/stripe/services/setup_intent_service.rb', line 1356

def year
  @year
end