Class: Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::Klarna::Dob

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



4319
4320
4321
4322
4323
# File 'lib/stripe/services/payment_intent_service.rb', line 4319

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.



4313
4314
4315
# File 'lib/stripe/services/payment_intent_service.rb', line 4313

def day
  @day
end

#monthObject

The month of birth, between 1 and 12.



4315
4316
4317
# File 'lib/stripe/services/payment_intent_service.rb', line 4315

def month
  @month
end

#yearObject

The four-digit year of birth.



4317
4318
4319
# File 'lib/stripe/services/payment_intent_service.rb', line 4317

def year
  @year
end