Class: Stripe::PaymentIntentConfirmParams::PaymentDetails::CarRentalDatum::Driver::DateOfBirth

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/payment_intent_confirm_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(day: nil, month: nil, year: nil) ⇒ DateOfBirth

Returns a new instance of DateOfBirth.



541
542
543
544
545
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 541

def initialize(day: nil, month: nil, year: nil)
  @day = day
  @month = month
  @year = year
end

Instance Attribute Details

#dayObject

Day of birth (1-31).



535
536
537
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 535

def day
  @day
end

#monthObject

Month of birth (1-12).



537
538
539
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 537

def month
  @month
end

#yearObject

Year of birth (must be greater than 1900).



539
540
541
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 539

def year
  @year
end