Class: Stripe::ChargeUpdateParams::PaymentDetails::CarRentalDatum::Vehicle

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



522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
# File 'lib/stripe/params/charge_update_params.rb', line 522

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.



510
511
512
# File 'lib/stripe/params/charge_update_params.rb', line 510

def make
  @make
end

#modelObject

Model of the rental vehicle.



512
513
514
# File 'lib/stripe/params/charge_update_params.rb', line 512

def model
  @model
end

#odometerObject

Odometer reading at the time of rental.



514
515
516
# File 'lib/stripe/params/charge_update_params.rb', line 514

def odometer
  @odometer
end

#typeObject

Type of the rental vehicle.



516
517
518
# File 'lib/stripe/params/charge_update_params.rb', line 516

def type
  @type
end

#vehicle_classObject

Class of the rental vehicle.



518
519
520
# File 'lib/stripe/params/charge_update_params.rb', line 518

def vehicle_class
  @vehicle_class
end

#vehicle_identification_numberObject

Vehicle identification number (VIN).



520
521
522
# File 'lib/stripe/params/charge_update_params.rb', line 520

def vehicle_identification_number
  @vehicle_identification_number
end