Class: Stripe::PaymentIntentConfirmParams::PaymentDetails::CarRentalDatum::Vehicle

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/payment_intent_confirm_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#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.



774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 774

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.



762
763
764
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 762

def make
  @make
end

#modelObject

Model of the rental vehicle.



764
765
766
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 764

def model
  @model
end

#odometerObject

Odometer reading at the time of rental.



766
767
768
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 766

def odometer
  @odometer
end

#typeObject

Type of the rental vehicle.



768
769
770
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 768

def type
  @type
end

#vehicle_classObject

Class of the rental vehicle.



770
771
772
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 770

def vehicle_class
  @vehicle_class
end

#vehicle_identification_numberObject

Vehicle identification number (VIN).



772
773
774
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 772

def vehicle_identification_number
  @vehicle_identification_number
end