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/url
text
string
string
title
string
string
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
object
object
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.json
Any reported damages to the car (if available)
damage
string
string
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
0
10
fuel
enum
The 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
number
number
Current geo location
location
object
with following properties:
Property | Type | Required |
---|---|---|
lat |
Required | |
lon |
Required |
lat
#/definitions/latitude
lon
#/definitions/longitude
The 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
0
200
The number of passengers this vehicle will be able to transport
passengers
integer
integer
0
200
Registration plate (e.g. if we know the actual car already)
registrationPlate
string
string
transmission
enum
The value of this property must be equal to one of the known values below.
Value | Description |
---|---|
manual |
|
automatic |
|
null |
description
string
string
id
string
string
Uniform resource locator, see https://en.wikipedia.org/wiki/Uniform_Resource_Locator and https://mathiasbynens.be/demo/url-regex
image
string
string
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/instruction
name
string
string
Pickup instructions in HTML format
pickupInfo
string
string
Return Instructions in HTML format
returnInfo
string
string
Region in which car can be rented and returned. Url to GeoJSON file
startEndGeoRegionUrl
string
string
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
object
object
with following properties:
Property | Type | Required |
---|---|---|
voucher |
Optional |
voucher
Unknown type ``.
{
"simpletype": "complex"
}