Class: Stripe::PaymentIntentUpdateParams::PaymentDetails::CarRentalDatum::Vehicle

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/payment_intent_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(make: nil, model: nil, odometer: nil, type: nil, vehicle_class: nil, vehicle_identification_number: nil) ⇒ Vehicle

Returns a new instance of Vehicle.



871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
# File 'lib/stripe/params/payment_intent_update_params.rb', line 871

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.



859
860
861
# File 'lib/stripe/params/payment_intent_update_params.rb', line 859

def make
  @make
end

#modelObject

Model of the rental vehicle.



861
862
863
# File 'lib/stripe/params/payment_intent_update_params.rb', line 861

def model
  @model
end

#odometerObject

Odometer reading at the time of rental.



863
864
865
# File 'lib/stripe/params/payment_intent_update_params.rb', line 863

def odometer
  @odometer
end

#typeObject

Type of the rental vehicle.



865
866
867
# File 'lib/stripe/params/payment_intent_update_params.rb', line 865

def type
  @type
end

#vehicle_classObject

Class of the rental vehicle.



867
868
869
# File 'lib/stripe/params/payment_intent_update_params.rb', line 867

def vehicle_class
  @vehicle_class
end

#vehicle_identification_numberObject

Vehicle identification number (VIN).



869
870
871
# File 'lib/stripe/params/payment_intent_update_params.rb', line 869

def vehicle_identification_number
  @vehicle_identification_number
end