Class: Stripe::ChargeUpdateParams::PaymentDetails::CarRentalDatum::Driver::DateOfBirth

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



276
277
278
279
280
# File 'lib/stripe/params/charge_update_params.rb', line 276

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

Instance Attribute Details

#dayObject

Day of birth (1-31).



270
271
272
# File 'lib/stripe/params/charge_update_params.rb', line 270

def day
  @day
end

#monthObject

Month of birth (1-12).



272
273
274
# File 'lib/stripe/params/charge_update_params.rb', line 272

def month
  @month
end

#yearObject

Year of birth (must be greater than 1900).



274
275
276
# File 'lib/stripe/params/charge_update_params.rb', line 274

def year
  @year
end