Class: Stripe::PaymentIntentUpdateParams::PaymentDetails::CarRentalDatum::Driver::DateOfBirth

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



549
550
551
552
553
# File 'lib/stripe/params/payment_intent_update_params.rb', line 549

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

Instance Attribute Details

#dayObject

Day of birth (1-31).



543
544
545
# File 'lib/stripe/params/payment_intent_update_params.rb', line 543

def day
  @day
end

#monthObject

Month of birth (1-12).



545
546
547
# File 'lib/stripe/params/payment_intent_update_params.rb', line 545

def month
  @month
end

#yearObject

Year of birth (must be greater than 1900).



547
548
549
# File 'lib/stripe/params/payment_intent_update_params.rb', line 547

def year
  @year
end