Class: Stripe::PaymentIntentCreateParams::PaymentDetails::CarRentalDatum::Driver::DateOfBirth
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::PaymentIntentCreateParams::PaymentDetails::CarRentalDatum::Driver::DateOfBirth
- Defined in:
- lib/stripe/params/payment_intent_create_params.rb
Instance Attribute Summary collapse
-
#day ⇒ Object
Day of birth (1-31).
-
#month ⇒ Object
Month of birth (1-12).
-
#year ⇒ Object
Year of birth (must be greater than 1900).
Instance Method Summary collapse
-
#initialize(day: nil, month: nil, year: nil) ⇒ DateOfBirth
constructor
A new instance of DateOfBirth.
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.
592 593 594 595 596 |
# File 'lib/stripe/params/payment_intent_create_params.rb', line 592 def initialize(day: nil, month: nil, year: nil) @day = day @month = month @year = year end |
Instance Attribute Details
#day ⇒ Object
Day of birth (1-31).
586 587 588 |
# File 'lib/stripe/params/payment_intent_create_params.rb', line 586 def day @day end |
#month ⇒ Object
Month of birth (1-12).
588 589 590 |
# File 'lib/stripe/params/payment_intent_create_params.rb', line 588 def month @month end |
#year ⇒ Object
Year of birth (must be greater than 1900).
590 591 592 |
# File 'lib/stripe/params/payment_intent_create_params.rb', line 590 def year @year end |