Class: Stripe::PaymentIntentCaptureParams::PaymentDetails::CarRentalDatum::Driver::DateOfBirth

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



492
493
494
495
496
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 492

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

Instance Attribute Details

#dayObject

Day of birth (1-31).



486
487
488
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 486

def day
  @day
end

#monthObject

Month of birth (1-12).



488
489
490
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 488

def month
  @month
end

#yearObject

Year of birth (must be greater than 1900).



490
491
492
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 490

def year
  @year
end