Class: Stripe::ChargeCaptureParams::PaymentDetails::CarRentalDatum::Driver::DateOfBirth

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



267
268
269
270
271
# File 'lib/stripe/params/charge_capture_params.rb', line 267

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

Instance Attribute Details

#dayObject

Day of birth (1-31).



261
262
263
# File 'lib/stripe/params/charge_capture_params.rb', line 261

def day
  @day
end

#monthObject

Month of birth (1-12).



263
264
265
# File 'lib/stripe/params/charge_capture_params.rb', line 263

def month
  @month
end

#yearObject

Year of birth (must be greater than 1900).



265
266
267
# File 'lib/stripe/params/charge_capture_params.rb', line 265

def year
  @year
end