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

attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h

Constructor Details

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

Returns a new instance of DateOfBirth.



647
648
649
650
651
# File 'lib/stripe/params/payment_intent_create_params.rb', line 647

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

Instance Attribute Details

#dayObject

Day of birth (1-31).



641
642
643
# File 'lib/stripe/params/payment_intent_create_params.rb', line 641

def day
  @day
end

#monthObject

Month of birth (1-12).



643
644
645
# File 'lib/stripe/params/payment_intent_create_params.rb', line 643

def month
  @month
end

#yearObject

Year of birth (must be greater than 1900).



645
646
647
# File 'lib/stripe/params/payment_intent_create_params.rb', line 645

def year
  @year
end