5.14 Vehicle Preference Object

A vehicle preference associates a vehicle with rewards.

  1. Field: vehicle
    Required: Yes.
    Type: String.
    Description: The id of a vehicle.
  2. Field: fixed_reward
    Required: No.
    Type: Number.
    Default: 0.
    Description: A fixed reward for assigning the order to the vehicle.
  3. Field: weight_reward
    Required: No.
    Type: Number.
    Default: 0.
    Description: A weight reward for assigning the order to the vehicle. This reward is multiplied by the weight of the order.
  4. Field: volume_reward
    Required: No.
    Type: Number.
    Default: 0.
    Description: A volume reward for assigning the order to the vehicle. This reward is multiplied by the volume of the order.