Class: Stripe::PaymentIntentCaptureParams::PaymentDetails::CarRentalDatum::Vehicle

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(make: nil, model: nil, odometer: nil, type: nil, vehicle_class: nil, vehicle_identification_number: nil) ⇒ Vehicle

Returns a new instance of Vehicle.



738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 738

def initialize(
  make: nil,
  model: nil,
  odometer: nil,
  type: nil,
  vehicle_class: nil,
  vehicle_identification_number: nil
)
  @make = make
  @model = model
  @odometer = odometer
  @type = type
  @vehicle_class = vehicle_class
  @vehicle_identification_number = vehicle_identification_number
end

Instance Attribute Details

#makeObject

Make of the rental vehicle.



726
727
728
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 726

def make
  @make
end

#modelObject

Model of the rental vehicle.



728
729
730
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 728

def model
  @model
end

#odometerObject

Odometer reading at the time of rental.



730
731
732
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 730

def odometer
  @odometer
end

#typeObject

Type of the rental vehicle.



732
733
734
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 732

def type
  @type
end

#vehicle_classObject

Class of the rental vehicle.



734
735
736
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 734

def vehicle_class
  @vehicle_class
end

#vehicle_identification_numberObject

Vehicle identification number (VIN).



736
737
738
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 736

def vehicle_identification_number
  @vehicle_identification_number
end