Skip to content

VehicleInput

A vehicle represents the vehicle the booking will be using. Every booking must have exactly one vehicle, and the vehicle chosen determines how long the booking will take. Each vehicle also has a capacity. A booking will not be booked automatically into a space with too few capacity to contain the vehicle.

FieldTypeDescription
key*EntityKey!A user-defined, stable identifier for the vehicle.
name*String!The name of the vehicle. This cannot be changed after being set.
descriptionStringThe description of the vehicle.
size*Int!The size of the vehicle. A vehicle will only be booked into a space with the capacity to support it. By default, size is 1. A size cannot be below 0.
duration*Int!The duration a booking with this vehicle will take, in seconds. Must be above or equal to 0.
classVehicleClassOptional vehicle class