Class: Stripe::PaymentIntentCreateParams::PaymentDetails::CarRentalDatum::Driver::DateOfBirth

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



529
530
531
532
533
# File 'lib/stripe/params/payment_intent_create_params.rb', line 529

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

Instance Attribute Details

#dayObject

Day of birth (1-31).



523
524
525
# File 'lib/stripe/params/payment_intent_create_params.rb', line 523

def day
  @day
end

#monthObject

Month of birth (1-12).



525
526
527
# File 'lib/stripe/params/payment_intent_create_params.rb', line 525

def month
  @month
end

#yearObject

Year of birth (must be greater than 1900).



527
528
529
# File 'lib/stripe/params/payment_intent_create_params.rb', line 527

def year
  @year
end