http://maasglobal.com/core/components/car-rental.json
Base schema for MODE_CAR* metas
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Defined In |
|---|---|---|---|---|---|---|
| Can be instantiated | Yes | Develop | No | Forbidden | Forbidden | core/components/car-rental.json |
http://maasglobal.com/core/components/car-rental.json
| Property | Type | Group |
|---|---|---|
| icon | url | http://maasglobal.com/core/components/car-rental.json#/definitions/instruction |
| text | string |
http://maasglobal.com/core/components/car-rental.json#/definitions/instruction |
| title | string |
http://maasglobal.com/core/components/car-rental.json#/definitions/instruction |
icon
http://maasglobal.com/core/components/units.json#/definitions/urltext
stringstring
title
stringstring
| Property | Type | Required | Nullable | Defined by |
|---|---|---|---|---|
| car | object |
Optional | No | car-rental (this schema) |
| description | string |
Required | No | car-rental (this schema) |
| id | string |
Optional | No | car-rental (this schema) |
| image | string |
Required | No | car-rental (this schema) |
| instructions | instruction | Optional | No | car-rental (this schema) |
| name | string |
Required | No | car-rental (this schema) |
| pickupInfo | string |
Optional | No | car-rental (this schema) |
| returnInfo | string |
Optional | No | car-rental (this schema) |
| startEndGeoRegionUrl | string |
Optional | No | car-rental (this schema) |
| terms | complex | Optional | No | car-rental (this schema) |
| vendor | object |
Optional | No | car-rental (this schema) |
car
objectobject with following properties:
| Property | Type | Required |
|---|---|---|
classification |
Required | |
damage |
string | Optional |
doors |
array | Optional |
fuel |
Optional | |
fuelLevel |
number | Optional |
location |
object | Optional |
luggage |
array | Optional |
passengers |
integer | Optional |
registrationPlate |
string | Optional |
transmission |
Optional |
classification
One of the following conditions need to be fulfilled.
http://maasglobal.com/core/components/ACRISS.jsonAny reported damages to the car (if available)
damage
stringstring
The number of doors this car model may have - an array of min & max
doors
integer[]* between 2 and 2 items in the arrayArray type: integer[]
All items must be of the type: integer
010fuel
enumThe value of this property must be equal to one of the known values below.
| Value | Description |
|---|---|
diesel |
|
electric |
|
ethanol |
|
gasoline |
|
hybrid |
|
hydrogen |
|
lpg |
|
multifuel |
|
null |
The percentage of fuel the car has at the moment
fuelLevel
numbernumber
Current geo location
location
object with following properties:
| Property | Type | Required |
|---|---|---|
lat |
Required | |
lon |
Required |
lat
#/definitions/latitudelon
#/definitions/longitudeThe number of luggage this vehicle will be able to transport - an array of [big, small] luggage
luggage
integer[]* between 2 and 2 items in the arrayArray type: integer[]
All items must be of the type: integer
0200The number of passengers this vehicle will be able to transport
passengers
integerinteger
0200Registration plate (e.g. if we know the actual car already)
registrationPlate
stringstring
transmission
enumThe value of this property must be equal to one of the known values below.
| Value | Description |
|---|---|
manual |
|
automatic |
|
null |
description
stringstring
id
stringstring
Uniform resource locator, see https://en.wikipedia.org/wiki/Uniform_Resource_Locator and https://mathiasbynens.be/demo/url-regex
image
stringstring
All instances must conform to this regular expression (test examples here):
^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$
Additional instruction sections displayed for booking
instructions
Array type: instruction
All items must be of the type:
#/definitions/instructionname
stringstring
Pickup instructions in HTML format
pickupInfo
stringstring
Return Instructions in HTML format
returnInfo
stringstring
Region in which car can be rented and returned. Url to GeoJSON file
startEndGeoRegionUrl
stringstring
All instances must conform to this regular expression (test examples here):
^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$
terms
Unknown type ``.
{
"simpletype": "complex"
}
Some fields have a vendor specific format, but appear in all, or most TSPs
vendor
objectobject with following properties:
| Property | Type | Required |
|---|---|---|
voucher |
Optional |
voucher
Unknown type ``.
{
"simpletype": "complex"
}