diff --git a/prebuilt/core/booking.json b/prebuilt/core/booking.json index 66058f5e0..bc3ae4718 100644 --- a/prebuilt/core/booking.json +++ b/prebuilt/core/booking.json @@ -357,7 +357,14 @@ "maximum": 9007199254740991, "minimum": 1451606400 } - } + }, + "additionalProperties": false + }, + "value": { + "description": "Arbitrary token value", + "type": "string", + "minLength": 1, + "maxLength": 9999 }, "data": { "description": "Arbitrary ticket data for the client", @@ -539,12 +546,75 @@ "minimum": 1451606400 } }, + "additionalProperties": false, "required": [ "startTime", "endTime" ] + }, + "cancellation": { + "description": "Booking cancellation info", + "type": "object", + "properties": { + "isCancellable": { + "description": "Indicates whether or not the booking is cancellable", + "type": "boolean" + }, + "cost": { + "description": "Cost of the cancellation", + "type": "object", + "required": [ + "amount", + "currency" + ], + "properties": { + "amount": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "discount": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "taxes": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "currency": { + "description": "Accepted monetary unit in ISO 4127 format, see https://en.wikipedia.org/wiki/ISO_4217#cite_note-1", + "type": "string", + "enum": [ + "EUR", + "GBP" + ] + } + }, + "additionalProperties": false + }, + "expiration": { + "description": "Expiration date of the cancellation terms.", + "type": "integer", + "maximum": 9007199254740991, + "minimum": 1451606400 + } + } + }, + "validFrom": { + "description": "[DEPRECATED] Validity starting time", + "type": "integer", + "maximum": 9007199254740991, + "minimum": 1451606400 + }, + "validSeconds": { + "description": "[DEPRECATED] Validity duration in seconds", + "type": "integer", + "minimum": 0 } - } + }, + "additionalProperties": false }, "customer": { "type": "object", @@ -956,7 +1026,14 @@ "maximum": 9007199254740991, "minimum": 1451606400 } - } + }, + "additionalProperties": false + }, + "value": { + "description": "Arbitrary token value", + "type": "string", + "minLength": 1, + "maxLength": 9999 }, "data": { "description": "Arbitrary ticket data for the client", @@ -1138,12 +1215,75 @@ "minimum": 1451606400 } }, + "additionalProperties": false, "required": [ "startTime", "endTime" ] + }, + "cancellation": { + "description": "Booking cancellation info", + "type": "object", + "properties": { + "isCancellable": { + "description": "Indicates whether or not the booking is cancellable", + "type": "boolean" + }, + "cost": { + "description": "Cost of the cancellation", + "type": "object", + "required": [ + "amount", + "currency" + ], + "properties": { + "amount": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "discount": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "taxes": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "currency": { + "description": "Accepted monetary unit in ISO 4127 format, see https://en.wikipedia.org/wiki/ISO_4217#cite_note-1", + "type": "string", + "enum": [ + "EUR", + "GBP" + ] + } + }, + "additionalProperties": false + }, + "expiration": { + "description": "Expiration date of the cancellation terms.", + "type": "integer", + "maximum": 9007199254740991, + "minimum": 1451606400 + } + } + }, + "validFrom": { + "description": "[DEPRECATED] Validity starting time", + "type": "integer", + "maximum": 9007199254740991, + "minimum": 1451606400 + }, + "validSeconds": { + "description": "[DEPRECATED] Validity duration in seconds", + "type": "integer", + "minimum": 0 } - } + }, + "additionalProperties": false }, "customer": { "type": "object", @@ -1690,12 +1830,75 @@ "minimum": 1451606400 } }, + "additionalProperties": false, "required": [ "startTime", "endTime" ] + }, + "cancellation": { + "description": "Booking cancellation info", + "type": "object", + "properties": { + "isCancellable": { + "description": "Indicates whether or not the booking is cancellable", + "type": "boolean" + }, + "cost": { + "description": "Cost of the cancellation", + "type": "object", + "required": [ + "amount", + "currency" + ], + "properties": { + "amount": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "discount": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "taxes": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "currency": { + "description": "Accepted monetary unit in ISO 4127 format, see https://en.wikipedia.org/wiki/ISO_4217#cite_note-1", + "type": "string", + "enum": [ + "EUR", + "GBP" + ] + } + }, + "additionalProperties": false + }, + "expiration": { + "description": "Expiration date of the cancellation terms.", + "type": "integer", + "maximum": 9007199254740991, + "minimum": 1451606400 + } + } + }, + "validFrom": { + "description": "[DEPRECATED] Validity starting time", + "type": "integer", + "maximum": 9007199254740991, + "minimum": 1451606400 + }, + "validSeconds": { + "description": "[DEPRECATED] Validity duration in seconds", + "type": "integer", + "minimum": 0 } - } + }, + "additionalProperties": false }, "token": { "description": "The validity token (such as booking ID, travel ticket etc.) that MaaS clients will display to validate the trip when starting the leg.", @@ -1717,7 +1920,14 @@ "maximum": 9007199254740991, "minimum": 1451606400 } - } + }, + "additionalProperties": false + }, + "value": { + "description": "Arbitrary token value", + "type": "string", + "minLength": 1, + "maxLength": 9999 }, "data": { "description": "Arbitrary ticket data for the client", diff --git a/prebuilt/maas-backend/bookings/bookings-cancel/response.json b/prebuilt/maas-backend/bookings/bookings-cancel/response.json index ae518245a..0984b497a 100644 --- a/prebuilt/maas-backend/bookings/bookings-cancel/response.json +++ b/prebuilt/maas-backend/bookings/bookings-cancel/response.json @@ -357,7 +357,14 @@ "maximum": 9007199254740991, "minimum": 1451606400 } - } + }, + "additionalProperties": false + }, + "value": { + "description": "Arbitrary token value", + "type": "string", + "minLength": 1, + "maxLength": 9999 }, "data": { "description": "Arbitrary ticket data for the client", @@ -539,12 +546,75 @@ "minimum": 1451606400 } }, + "additionalProperties": false, "required": [ "startTime", "endTime" ] + }, + "cancellation": { + "description": "Booking cancellation info", + "type": "object", + "properties": { + "isCancellable": { + "description": "Indicates whether or not the booking is cancellable", + "type": "boolean" + }, + "cost": { + "description": "Cost of the cancellation", + "type": "object", + "required": [ + "amount", + "currency" + ], + "properties": { + "amount": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "discount": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "taxes": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "currency": { + "description": "Accepted monetary unit in ISO 4127 format, see https://en.wikipedia.org/wiki/ISO_4217#cite_note-1", + "type": "string", + "enum": [ + "EUR", + "GBP" + ] + } + }, + "additionalProperties": false + }, + "expiration": { + "description": "Expiration date of the cancellation terms.", + "type": "integer", + "maximum": 9007199254740991, + "minimum": 1451606400 + } + } + }, + "validFrom": { + "description": "[DEPRECATED] Validity starting time", + "type": "integer", + "maximum": 9007199254740991, + "minimum": 1451606400 + }, + "validSeconds": { + "description": "[DEPRECATED] Validity duration in seconds", + "type": "integer", + "minimum": 0 } - } + }, + "additionalProperties": false }, "customer": { "type": "object", @@ -956,7 +1026,14 @@ "maximum": 9007199254740991, "minimum": 1451606400 } - } + }, + "additionalProperties": false + }, + "value": { + "description": "Arbitrary token value", + "type": "string", + "minLength": 1, + "maxLength": 9999 }, "data": { "description": "Arbitrary ticket data for the client", @@ -1138,12 +1215,75 @@ "minimum": 1451606400 } }, + "additionalProperties": false, "required": [ "startTime", "endTime" ] + }, + "cancellation": { + "description": "Booking cancellation info", + "type": "object", + "properties": { + "isCancellable": { + "description": "Indicates whether or not the booking is cancellable", + "type": "boolean" + }, + "cost": { + "description": "Cost of the cancellation", + "type": "object", + "required": [ + "amount", + "currency" + ], + "properties": { + "amount": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "discount": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "taxes": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "currency": { + "description": "Accepted monetary unit in ISO 4127 format, see https://en.wikipedia.org/wiki/ISO_4217#cite_note-1", + "type": "string", + "enum": [ + "EUR", + "GBP" + ] + } + }, + "additionalProperties": false + }, + "expiration": { + "description": "Expiration date of the cancellation terms.", + "type": "integer", + "maximum": 9007199254740991, + "minimum": 1451606400 + } + } + }, + "validFrom": { + "description": "[DEPRECATED] Validity starting time", + "type": "integer", + "maximum": 9007199254740991, + "minimum": 1451606400 + }, + "validSeconds": { + "description": "[DEPRECATED] Validity duration in seconds", + "type": "integer", + "minimum": 0 } - } + }, + "additionalProperties": false }, "customer": { "type": "object", @@ -1690,12 +1830,75 @@ "minimum": 1451606400 } }, + "additionalProperties": false, "required": [ "startTime", "endTime" ] + }, + "cancellation": { + "description": "Booking cancellation info", + "type": "object", + "properties": { + "isCancellable": { + "description": "Indicates whether or not the booking is cancellable", + "type": "boolean" + }, + "cost": { + "description": "Cost of the cancellation", + "type": "object", + "required": [ + "amount", + "currency" + ], + "properties": { + "amount": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "discount": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "taxes": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "currency": { + "description": "Accepted monetary unit in ISO 4127 format, see https://en.wikipedia.org/wiki/ISO_4217#cite_note-1", + "type": "string", + "enum": [ + "EUR", + "GBP" + ] + } + }, + "additionalProperties": false + }, + "expiration": { + "description": "Expiration date of the cancellation terms.", + "type": "integer", + "maximum": 9007199254740991, + "minimum": 1451606400 + } + } + }, + "validFrom": { + "description": "[DEPRECATED] Validity starting time", + "type": "integer", + "maximum": 9007199254740991, + "minimum": 1451606400 + }, + "validSeconds": { + "description": "[DEPRECATED] Validity duration in seconds", + "type": "integer", + "minimum": 0 } - } + }, + "additionalProperties": false }, "token": { "description": "The validity token (such as booking ID, travel ticket etc.) that MaaS clients will display to validate the trip when starting the leg.", @@ -1717,7 +1920,14 @@ "maximum": 9007199254740991, "minimum": 1451606400 } - } + }, + "additionalProperties": false + }, + "value": { + "description": "Arbitrary token value", + "type": "string", + "minLength": 1, + "maxLength": 9999 }, "data": { "description": "Arbitrary ticket data for the client", diff --git a/prebuilt/maas-backend/bookings/bookings-create/response.json b/prebuilt/maas-backend/bookings/bookings-create/response.json index 8a4ad3f7d..3c543b369 100644 --- a/prebuilt/maas-backend/bookings/bookings-create/response.json +++ b/prebuilt/maas-backend/bookings/bookings-create/response.json @@ -357,7 +357,14 @@ "maximum": 9007199254740991, "minimum": 1451606400 } - } + }, + "additionalProperties": false + }, + "value": { + "description": "Arbitrary token value", + "type": "string", + "minLength": 1, + "maxLength": 9999 }, "data": { "description": "Arbitrary ticket data for the client", @@ -539,12 +546,75 @@ "minimum": 1451606400 } }, + "additionalProperties": false, "required": [ "startTime", "endTime" ] + }, + "cancellation": { + "description": "Booking cancellation info", + "type": "object", + "properties": { + "isCancellable": { + "description": "Indicates whether or not the booking is cancellable", + "type": "boolean" + }, + "cost": { + "description": "Cost of the cancellation", + "type": "object", + "required": [ + "amount", + "currency" + ], + "properties": { + "amount": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "discount": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "taxes": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "currency": { + "description": "Accepted monetary unit in ISO 4127 format, see https://en.wikipedia.org/wiki/ISO_4217#cite_note-1", + "type": "string", + "enum": [ + "EUR", + "GBP" + ] + } + }, + "additionalProperties": false + }, + "expiration": { + "description": "Expiration date of the cancellation terms.", + "type": "integer", + "maximum": 9007199254740991, + "minimum": 1451606400 + } + } + }, + "validFrom": { + "description": "[DEPRECATED] Validity starting time", + "type": "integer", + "maximum": 9007199254740991, + "minimum": 1451606400 + }, + "validSeconds": { + "description": "[DEPRECATED] Validity duration in seconds", + "type": "integer", + "minimum": 0 } - } + }, + "additionalProperties": false }, "customer": { "type": "object", @@ -956,7 +1026,14 @@ "maximum": 9007199254740991, "minimum": 1451606400 } - } + }, + "additionalProperties": false + }, + "value": { + "description": "Arbitrary token value", + "type": "string", + "minLength": 1, + "maxLength": 9999 }, "data": { "description": "Arbitrary ticket data for the client", @@ -1138,12 +1215,75 @@ "minimum": 1451606400 } }, + "additionalProperties": false, "required": [ "startTime", "endTime" ] + }, + "cancellation": { + "description": "Booking cancellation info", + "type": "object", + "properties": { + "isCancellable": { + "description": "Indicates whether or not the booking is cancellable", + "type": "boolean" + }, + "cost": { + "description": "Cost of the cancellation", + "type": "object", + "required": [ + "amount", + "currency" + ], + "properties": { + "amount": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "discount": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "taxes": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "currency": { + "description": "Accepted monetary unit in ISO 4127 format, see https://en.wikipedia.org/wiki/ISO_4217#cite_note-1", + "type": "string", + "enum": [ + "EUR", + "GBP" + ] + } + }, + "additionalProperties": false + }, + "expiration": { + "description": "Expiration date of the cancellation terms.", + "type": "integer", + "maximum": 9007199254740991, + "minimum": 1451606400 + } + } + }, + "validFrom": { + "description": "[DEPRECATED] Validity starting time", + "type": "integer", + "maximum": 9007199254740991, + "minimum": 1451606400 + }, + "validSeconds": { + "description": "[DEPRECATED] Validity duration in seconds", + "type": "integer", + "minimum": 0 } - } + }, + "additionalProperties": false }, "customer": { "type": "object", @@ -1690,12 +1830,75 @@ "minimum": 1451606400 } }, + "additionalProperties": false, "required": [ "startTime", "endTime" ] + }, + "cancellation": { + "description": "Booking cancellation info", + "type": "object", + "properties": { + "isCancellable": { + "description": "Indicates whether or not the booking is cancellable", + "type": "boolean" + }, + "cost": { + "description": "Cost of the cancellation", + "type": "object", + "required": [ + "amount", + "currency" + ], + "properties": { + "amount": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "discount": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "taxes": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "currency": { + "description": "Accepted monetary unit in ISO 4127 format, see https://en.wikipedia.org/wiki/ISO_4217#cite_note-1", + "type": "string", + "enum": [ + "EUR", + "GBP" + ] + } + }, + "additionalProperties": false + }, + "expiration": { + "description": "Expiration date of the cancellation terms.", + "type": "integer", + "maximum": 9007199254740991, + "minimum": 1451606400 + } + } + }, + "validFrom": { + "description": "[DEPRECATED] Validity starting time", + "type": "integer", + "maximum": 9007199254740991, + "minimum": 1451606400 + }, + "validSeconds": { + "description": "[DEPRECATED] Validity duration in seconds", + "type": "integer", + "minimum": 0 } - } + }, + "additionalProperties": false }, "token": { "description": "The validity token (such as booking ID, travel ticket etc.) that MaaS clients will display to validate the trip when starting the leg.", @@ -1717,7 +1920,14 @@ "maximum": 9007199254740991, "minimum": 1451606400 } - } + }, + "additionalProperties": false + }, + "value": { + "description": "Arbitrary token value", + "type": "string", + "minLength": 1, + "maxLength": 9999 }, "data": { "description": "Arbitrary ticket data for the client", diff --git a/prebuilt/maas-backend/bookings/bookings-list/response.json b/prebuilt/maas-backend/bookings/bookings-list/response.json index 4371dcedb..12929f129 100644 --- a/prebuilt/maas-backend/bookings/bookings-list/response.json +++ b/prebuilt/maas-backend/bookings/bookings-list/response.json @@ -366,7 +366,14 @@ "maximum": 9007199254740991, "minimum": 1451606400 } - } + }, + "additionalProperties": false + }, + "value": { + "description": "Arbitrary token value", + "type": "string", + "minLength": 1, + "maxLength": 9999 }, "data": { "description": "Arbitrary ticket data for the client", @@ -548,12 +555,75 @@ "minimum": 1451606400 } }, + "additionalProperties": false, "required": [ "startTime", "endTime" ] + }, + "cancellation": { + "description": "Booking cancellation info", + "type": "object", + "properties": { + "isCancellable": { + "description": "Indicates whether or not the booking is cancellable", + "type": "boolean" + }, + "cost": { + "description": "Cost of the cancellation", + "type": "object", + "required": [ + "amount", + "currency" + ], + "properties": { + "amount": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "discount": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "taxes": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "currency": { + "description": "Accepted monetary unit in ISO 4127 format, see https://en.wikipedia.org/wiki/ISO_4217#cite_note-1", + "type": "string", + "enum": [ + "EUR", + "GBP" + ] + } + }, + "additionalProperties": false + }, + "expiration": { + "description": "Expiration date of the cancellation terms.", + "type": "integer", + "maximum": 9007199254740991, + "minimum": 1451606400 + } + } + }, + "validFrom": { + "description": "[DEPRECATED] Validity starting time", + "type": "integer", + "maximum": 9007199254740991, + "minimum": 1451606400 + }, + "validSeconds": { + "description": "[DEPRECATED] Validity duration in seconds", + "type": "integer", + "minimum": 0 } - } + }, + "additionalProperties": false }, "customer": { "type": "object", @@ -965,7 +1035,14 @@ "maximum": 9007199254740991, "minimum": 1451606400 } - } + }, + "additionalProperties": false + }, + "value": { + "description": "Arbitrary token value", + "type": "string", + "minLength": 1, + "maxLength": 9999 }, "data": { "description": "Arbitrary ticket data for the client", @@ -1147,12 +1224,75 @@ "minimum": 1451606400 } }, + "additionalProperties": false, "required": [ "startTime", "endTime" ] + }, + "cancellation": { + "description": "Booking cancellation info", + "type": "object", + "properties": { + "isCancellable": { + "description": "Indicates whether or not the booking is cancellable", + "type": "boolean" + }, + "cost": { + "description": "Cost of the cancellation", + "type": "object", + "required": [ + "amount", + "currency" + ], + "properties": { + "amount": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "discount": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "taxes": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "currency": { + "description": "Accepted monetary unit in ISO 4127 format, see https://en.wikipedia.org/wiki/ISO_4217#cite_note-1", + "type": "string", + "enum": [ + "EUR", + "GBP" + ] + } + }, + "additionalProperties": false + }, + "expiration": { + "description": "Expiration date of the cancellation terms.", + "type": "integer", + "maximum": 9007199254740991, + "minimum": 1451606400 + } + } + }, + "validFrom": { + "description": "[DEPRECATED] Validity starting time", + "type": "integer", + "maximum": 9007199254740991, + "minimum": 1451606400 + }, + "validSeconds": { + "description": "[DEPRECATED] Validity duration in seconds", + "type": "integer", + "minimum": 0 } - } + }, + "additionalProperties": false }, "customer": { "type": "object", @@ -1699,12 +1839,75 @@ "minimum": 1451606400 } }, + "additionalProperties": false, "required": [ "startTime", "endTime" ] + }, + "cancellation": { + "description": "Booking cancellation info", + "type": "object", + "properties": { + "isCancellable": { + "description": "Indicates whether or not the booking is cancellable", + "type": "boolean" + }, + "cost": { + "description": "Cost of the cancellation", + "type": "object", + "required": [ + "amount", + "currency" + ], + "properties": { + "amount": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "discount": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "taxes": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "currency": { + "description": "Accepted monetary unit in ISO 4127 format, see https://en.wikipedia.org/wiki/ISO_4217#cite_note-1", + "type": "string", + "enum": [ + "EUR", + "GBP" + ] + } + }, + "additionalProperties": false + }, + "expiration": { + "description": "Expiration date of the cancellation terms.", + "type": "integer", + "maximum": 9007199254740991, + "minimum": 1451606400 + } + } + }, + "validFrom": { + "description": "[DEPRECATED] Validity starting time", + "type": "integer", + "maximum": 9007199254740991, + "minimum": 1451606400 + }, + "validSeconds": { + "description": "[DEPRECATED] Validity duration in seconds", + "type": "integer", + "minimum": 0 } - } + }, + "additionalProperties": false }, "token": { "description": "The validity token (such as booking ID, travel ticket etc.) that MaaS clients will display to validate the trip when starting the leg.", @@ -1726,7 +1929,14 @@ "maximum": 9007199254740991, "minimum": 1451606400 } - } + }, + "additionalProperties": false + }, + "value": { + "description": "Arbitrary token value", + "type": "string", + "minLength": 1, + "maxLength": 9999 }, "data": { "description": "Arbitrary ticket data for the client", diff --git a/prebuilt/maas-backend/bookings/bookings-retrieve/response.json b/prebuilt/maas-backend/bookings/bookings-retrieve/response.json index b3a0d9d53..efeea8311 100644 --- a/prebuilt/maas-backend/bookings/bookings-retrieve/response.json +++ b/prebuilt/maas-backend/bookings/bookings-retrieve/response.json @@ -357,7 +357,14 @@ "maximum": 9007199254740991, "minimum": 1451606400 } - } + }, + "additionalProperties": false + }, + "value": { + "description": "Arbitrary token value", + "type": "string", + "minLength": 1, + "maxLength": 9999 }, "data": { "description": "Arbitrary ticket data for the client", @@ -539,12 +546,75 @@ "minimum": 1451606400 } }, + "additionalProperties": false, "required": [ "startTime", "endTime" ] + }, + "cancellation": { + "description": "Booking cancellation info", + "type": "object", + "properties": { + "isCancellable": { + "description": "Indicates whether or not the booking is cancellable", + "type": "boolean" + }, + "cost": { + "description": "Cost of the cancellation", + "type": "object", + "required": [ + "amount", + "currency" + ], + "properties": { + "amount": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "discount": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "taxes": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "currency": { + "description": "Accepted monetary unit in ISO 4127 format, see https://en.wikipedia.org/wiki/ISO_4217#cite_note-1", + "type": "string", + "enum": [ + "EUR", + "GBP" + ] + } + }, + "additionalProperties": false + }, + "expiration": { + "description": "Expiration date of the cancellation terms.", + "type": "integer", + "maximum": 9007199254740991, + "minimum": 1451606400 + } + } + }, + "validFrom": { + "description": "[DEPRECATED] Validity starting time", + "type": "integer", + "maximum": 9007199254740991, + "minimum": 1451606400 + }, + "validSeconds": { + "description": "[DEPRECATED] Validity duration in seconds", + "type": "integer", + "minimum": 0 } - } + }, + "additionalProperties": false }, "customer": { "type": "object", @@ -956,7 +1026,14 @@ "maximum": 9007199254740991, "minimum": 1451606400 } - } + }, + "additionalProperties": false + }, + "value": { + "description": "Arbitrary token value", + "type": "string", + "minLength": 1, + "maxLength": 9999 }, "data": { "description": "Arbitrary ticket data for the client", @@ -1138,12 +1215,75 @@ "minimum": 1451606400 } }, + "additionalProperties": false, "required": [ "startTime", "endTime" ] + }, + "cancellation": { + "description": "Booking cancellation info", + "type": "object", + "properties": { + "isCancellable": { + "description": "Indicates whether or not the booking is cancellable", + "type": "boolean" + }, + "cost": { + "description": "Cost of the cancellation", + "type": "object", + "required": [ + "amount", + "currency" + ], + "properties": { + "amount": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "discount": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "taxes": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "currency": { + "description": "Accepted monetary unit in ISO 4127 format, see https://en.wikipedia.org/wiki/ISO_4217#cite_note-1", + "type": "string", + "enum": [ + "EUR", + "GBP" + ] + } + }, + "additionalProperties": false + }, + "expiration": { + "description": "Expiration date of the cancellation terms.", + "type": "integer", + "maximum": 9007199254740991, + "minimum": 1451606400 + } + } + }, + "validFrom": { + "description": "[DEPRECATED] Validity starting time", + "type": "integer", + "maximum": 9007199254740991, + "minimum": 1451606400 + }, + "validSeconds": { + "description": "[DEPRECATED] Validity duration in seconds", + "type": "integer", + "minimum": 0 } - } + }, + "additionalProperties": false }, "customer": { "type": "object", @@ -1690,12 +1830,75 @@ "minimum": 1451606400 } }, + "additionalProperties": false, "required": [ "startTime", "endTime" ] + }, + "cancellation": { + "description": "Booking cancellation info", + "type": "object", + "properties": { + "isCancellable": { + "description": "Indicates whether or not the booking is cancellable", + "type": "boolean" + }, + "cost": { + "description": "Cost of the cancellation", + "type": "object", + "required": [ + "amount", + "currency" + ], + "properties": { + "amount": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "discount": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "taxes": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "currency": { + "description": "Accepted monetary unit in ISO 4127 format, see https://en.wikipedia.org/wiki/ISO_4217#cite_note-1", + "type": "string", + "enum": [ + "EUR", + "GBP" + ] + } + }, + "additionalProperties": false + }, + "expiration": { + "description": "Expiration date of the cancellation terms.", + "type": "integer", + "maximum": 9007199254740991, + "minimum": 1451606400 + } + } + }, + "validFrom": { + "description": "[DEPRECATED] Validity starting time", + "type": "integer", + "maximum": 9007199254740991, + "minimum": 1451606400 + }, + "validSeconds": { + "description": "[DEPRECATED] Validity duration in seconds", + "type": "integer", + "minimum": 0 } - } + }, + "additionalProperties": false }, "token": { "description": "The validity token (such as booking ID, travel ticket etc.) that MaaS clients will display to validate the trip when starting the leg.", @@ -1717,7 +1920,14 @@ "maximum": 9007199254740991, "minimum": 1451606400 } - } + }, + "additionalProperties": false + }, + "value": { + "description": "Arbitrary token value", + "type": "string", + "minLength": 1, + "maxLength": 9999 }, "data": { "description": "Arbitrary ticket data for the client", diff --git a/prebuilt/maas-backend/bookings/bookings-update/response.json b/prebuilt/maas-backend/bookings/bookings-update/response.json index aaee2d7d0..e1eae8bad 100644 --- a/prebuilt/maas-backend/bookings/bookings-update/response.json +++ b/prebuilt/maas-backend/bookings/bookings-update/response.json @@ -363,7 +363,14 @@ "maximum": 9007199254740991, "minimum": 1451606400 } - } + }, + "additionalProperties": false + }, + "value": { + "description": "Arbitrary token value", + "type": "string", + "minLength": 1, + "maxLength": 9999 }, "data": { "description": "Arbitrary ticket data for the client", @@ -545,12 +552,75 @@ "minimum": 1451606400 } }, + "additionalProperties": false, "required": [ "startTime", "endTime" ] + }, + "cancellation": { + "description": "Booking cancellation info", + "type": "object", + "properties": { + "isCancellable": { + "description": "Indicates whether or not the booking is cancellable", + "type": "boolean" + }, + "cost": { + "description": "Cost of the cancellation", + "type": "object", + "required": [ + "amount", + "currency" + ], + "properties": { + "amount": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "discount": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "taxes": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "currency": { + "description": "Accepted monetary unit in ISO 4127 format, see https://en.wikipedia.org/wiki/ISO_4217#cite_note-1", + "type": "string", + "enum": [ + "EUR", + "GBP" + ] + } + }, + "additionalProperties": false + }, + "expiration": { + "description": "Expiration date of the cancellation terms.", + "type": "integer", + "maximum": 9007199254740991, + "minimum": 1451606400 + } + } + }, + "validFrom": { + "description": "[DEPRECATED] Validity starting time", + "type": "integer", + "maximum": 9007199254740991, + "minimum": 1451606400 + }, + "validSeconds": { + "description": "[DEPRECATED] Validity duration in seconds", + "type": "integer", + "minimum": 0 } - } + }, + "additionalProperties": false }, "customer": { "type": "object", @@ -962,7 +1032,14 @@ "maximum": 9007199254740991, "minimum": 1451606400 } - } + }, + "additionalProperties": false + }, + "value": { + "description": "Arbitrary token value", + "type": "string", + "minLength": 1, + "maxLength": 9999 }, "data": { "description": "Arbitrary ticket data for the client", @@ -1144,12 +1221,75 @@ "minimum": 1451606400 } }, + "additionalProperties": false, "required": [ "startTime", "endTime" ] + }, + "cancellation": { + "description": "Booking cancellation info", + "type": "object", + "properties": { + "isCancellable": { + "description": "Indicates whether or not the booking is cancellable", + "type": "boolean" + }, + "cost": { + "description": "Cost of the cancellation", + "type": "object", + "required": [ + "amount", + "currency" + ], + "properties": { + "amount": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "discount": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "taxes": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "currency": { + "description": "Accepted monetary unit in ISO 4127 format, see https://en.wikipedia.org/wiki/ISO_4217#cite_note-1", + "type": "string", + "enum": [ + "EUR", + "GBP" + ] + } + }, + "additionalProperties": false + }, + "expiration": { + "description": "Expiration date of the cancellation terms.", + "type": "integer", + "maximum": 9007199254740991, + "minimum": 1451606400 + } + } + }, + "validFrom": { + "description": "[DEPRECATED] Validity starting time", + "type": "integer", + "maximum": 9007199254740991, + "minimum": 1451606400 + }, + "validSeconds": { + "description": "[DEPRECATED] Validity duration in seconds", + "type": "integer", + "minimum": 0 } - } + }, + "additionalProperties": false }, "customer": { "type": "object", @@ -1696,12 +1836,75 @@ "minimum": 1451606400 } }, + "additionalProperties": false, "required": [ "startTime", "endTime" ] + }, + "cancellation": { + "description": "Booking cancellation info", + "type": "object", + "properties": { + "isCancellable": { + "description": "Indicates whether or not the booking is cancellable", + "type": "boolean" + }, + "cost": { + "description": "Cost of the cancellation", + "type": "object", + "required": [ + "amount", + "currency" + ], + "properties": { + "amount": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "discount": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "taxes": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "currency": { + "description": "Accepted monetary unit in ISO 4127 format, see https://en.wikipedia.org/wiki/ISO_4217#cite_note-1", + "type": "string", + "enum": [ + "EUR", + "GBP" + ] + } + }, + "additionalProperties": false + }, + "expiration": { + "description": "Expiration date of the cancellation terms.", + "type": "integer", + "maximum": 9007199254740991, + "minimum": 1451606400 + } + } + }, + "validFrom": { + "description": "[DEPRECATED] Validity starting time", + "type": "integer", + "maximum": 9007199254740991, + "minimum": 1451606400 + }, + "validSeconds": { + "description": "[DEPRECATED] Validity duration in seconds", + "type": "integer", + "minimum": 0 } - } + }, + "additionalProperties": false }, "token": { "description": "The validity token (such as booking ID, travel ticket etc.) that MaaS clients will display to validate the trip when starting the leg.", @@ -1723,7 +1926,14 @@ "maximum": 9007199254740991, "minimum": 1451606400 } - } + }, + "additionalProperties": false + }, + "value": { + "description": "Arbitrary token value", + "type": "string", + "minLength": 1, + "maxLength": 9999 }, "data": { "description": "Arbitrary ticket data for the client", diff --git a/prebuilt/maas-backend/webhooks/webhooks-bookings-update/request.json b/prebuilt/maas-backend/webhooks/webhooks-bookings-update/request.json index a4a28cf78..95a203fb0 100644 --- a/prebuilt/maas-backend/webhooks/webhooks-bookings-update/request.json +++ b/prebuilt/maas-backend/webhooks/webhooks-bookings-update/request.json @@ -408,12 +408,75 @@ "minimum": 1451606400 } }, + "additionalProperties": false, "required": [ "startTime", "endTime" ] + }, + "cancellation": { + "description": "Booking cancellation info", + "type": "object", + "properties": { + "isCancellable": { + "description": "Indicates whether or not the booking is cancellable", + "type": "boolean" + }, + "cost": { + "description": "Cost of the cancellation", + "type": "object", + "required": [ + "amount", + "currency" + ], + "properties": { + "amount": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "discount": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "taxes": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "currency": { + "description": "Accepted monetary unit in ISO 4127 format, see https://en.wikipedia.org/wiki/ISO_4217#cite_note-1", + "type": "string", + "enum": [ + "EUR", + "GBP" + ] + } + }, + "additionalProperties": false + }, + "expiration": { + "description": "Expiration date of the cancellation terms.", + "type": "integer", + "maximum": 9007199254740991, + "minimum": 1451606400 + } + } + }, + "validFrom": { + "description": "[DEPRECATED] Validity starting time", + "type": "integer", + "maximum": 9007199254740991, + "minimum": 1451606400 + }, + "validSeconds": { + "description": "[DEPRECATED] Validity duration in seconds", + "type": "integer", + "minimum": 0 } - } + }, + "additionalProperties": false }, "token": { "description": "The validity token (such as booking ID, travel ticket etc.) that MaaS clients will display to validate the trip when starting the leg.", @@ -435,7 +498,14 @@ "maximum": 9007199254740991, "minimum": 1451606400 } - } + }, + "additionalProperties": false + }, + "value": { + "description": "Arbitrary token value", + "type": "string", + "minLength": 1, + "maxLength": 9999 }, "data": { "description": "Arbitrary ticket data for the client", diff --git a/prebuilt/maas-backend/webhooks/webhooks-bookings-update/response.json b/prebuilt/maas-backend/webhooks/webhooks-bookings-update/response.json index 3e9f9c9ff..1c8d79be5 100644 --- a/prebuilt/maas-backend/webhooks/webhooks-bookings-update/response.json +++ b/prebuilt/maas-backend/webhooks/webhooks-bookings-update/response.json @@ -407,12 +407,75 @@ "minimum": 1451606400 } }, + "additionalProperties": false, "required": [ "startTime", "endTime" ] + }, + "cancellation": { + "description": "Booking cancellation info", + "type": "object", + "properties": { + "isCancellable": { + "description": "Indicates whether or not the booking is cancellable", + "type": "boolean" + }, + "cost": { + "description": "Cost of the cancellation", + "type": "object", + "required": [ + "amount", + "currency" + ], + "properties": { + "amount": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "discount": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "taxes": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "currency": { + "description": "Accepted monetary unit in ISO 4127 format, see https://en.wikipedia.org/wiki/ISO_4217#cite_note-1", + "type": "string", + "enum": [ + "EUR", + "GBP" + ] + } + }, + "additionalProperties": false + }, + "expiration": { + "description": "Expiration date of the cancellation terms.", + "type": "integer", + "maximum": 9007199254740991, + "minimum": 1451606400 + } + } + }, + "validFrom": { + "description": "[DEPRECATED] Validity starting time", + "type": "integer", + "maximum": 9007199254740991, + "minimum": 1451606400 + }, + "validSeconds": { + "description": "[DEPRECATED] Validity duration in seconds", + "type": "integer", + "minimum": 0 } - } + }, + "additionalProperties": false }, "token": { "description": "The validity token (such as booking ID, travel ticket etc.) that MaaS clients will display to validate the trip when starting the leg.", @@ -434,7 +497,14 @@ "maximum": 9007199254740991, "minimum": 1451606400 } - } + }, + "additionalProperties": false + }, + "value": { + "description": "Arbitrary token value", + "type": "string", + "minLength": 1, + "maxLength": 9999 }, "data": { "description": "Arbitrary ticket data for the client", @@ -863,12 +933,75 @@ "minimum": 1451606400 } }, + "additionalProperties": false, "required": [ "startTime", "endTime" ] + }, + "cancellation": { + "description": "Booking cancellation info", + "type": "object", + "properties": { + "isCancellable": { + "description": "Indicates whether or not the booking is cancellable", + "type": "boolean" + }, + "cost": { + "description": "Cost of the cancellation", + "type": "object", + "required": [ + "amount", + "currency" + ], + "properties": { + "amount": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "discount": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "taxes": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "currency": { + "description": "Accepted monetary unit in ISO 4127 format, see https://en.wikipedia.org/wiki/ISO_4217#cite_note-1", + "type": "string", + "enum": [ + "EUR", + "GBP" + ] + } + }, + "additionalProperties": false + }, + "expiration": { + "description": "Expiration date of the cancellation terms.", + "type": "integer", + "maximum": 9007199254740991, + "minimum": 1451606400 + } + } + }, + "validFrom": { + "description": "[DEPRECATED] Validity starting time", + "type": "integer", + "maximum": 9007199254740991, + "minimum": 1451606400 + }, + "validSeconds": { + "description": "[DEPRECATED] Validity duration in seconds", + "type": "integer", + "minimum": 0 } - } + }, + "additionalProperties": false }, "token": { "description": "The validity token (such as booking ID, travel ticket etc.) that MaaS clients will display to validate the trip when starting the leg.", @@ -890,7 +1023,14 @@ "maximum": 9007199254740991, "minimum": 1451606400 } - } + }, + "additionalProperties": false + }, + "value": { + "description": "Arbitrary token value", + "type": "string", + "minLength": 1, + "maxLength": 9999 }, "data": { "description": "Arbitrary ticket data for the client", diff --git a/prebuilt/tsp/booking-cancel/response.json b/prebuilt/tsp/booking-cancel/response.json index bc29196d7..6b296b2d2 100644 --- a/prebuilt/tsp/booking-cancel/response.json +++ b/prebuilt/tsp/booking-cancel/response.json @@ -400,12 +400,75 @@ "minimum": 1451606400 } }, + "additionalProperties": false, "required": [ "startTime", "endTime" ] + }, + "cancellation": { + "description": "Booking cancellation info", + "type": "object", + "properties": { + "isCancellable": { + "description": "Indicates whether or not the booking is cancellable", + "type": "boolean" + }, + "cost": { + "description": "Cost of the cancellation", + "type": "object", + "required": [ + "amount", + "currency" + ], + "properties": { + "amount": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "discount": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "taxes": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "currency": { + "description": "Accepted monetary unit in ISO 4127 format, see https://en.wikipedia.org/wiki/ISO_4217#cite_note-1", + "type": "string", + "enum": [ + "EUR", + "GBP" + ] + } + }, + "additionalProperties": false + }, + "expiration": { + "description": "Expiration date of the cancellation terms.", + "type": "integer", + "maximum": 9007199254740991, + "minimum": 1451606400 + } + } + }, + "validFrom": { + "description": "[DEPRECATED] Validity starting time", + "type": "integer", + "maximum": 9007199254740991, + "minimum": 1451606400 + }, + "validSeconds": { + "description": "[DEPRECATED] Validity duration in seconds", + "type": "integer", + "minimum": 0 } - } + }, + "additionalProperties": false }, "token": { "description": "The validity token (such as booking ID, travel ticket etc.) that MaaS clients will display to validate the trip when starting the leg.", @@ -427,7 +490,14 @@ "maximum": 9007199254740991, "minimum": 1451606400 } - } + }, + "additionalProperties": false + }, + "value": { + "description": "Arbitrary token value", + "type": "string", + "minLength": 1, + "maxLength": 9999 }, "data": { "description": "Arbitrary ticket data for the client", diff --git a/prebuilt/tsp/booking-create/request.json b/prebuilt/tsp/booking-create/request.json index b4b3c65ab..fd04af108 100644 --- a/prebuilt/tsp/booking-create/request.json +++ b/prebuilt/tsp/booking-create/request.json @@ -391,12 +391,75 @@ "minimum": 1451606400 } }, + "additionalProperties": false, "required": [ "startTime", "endTime" ] + }, + "cancellation": { + "description": "Booking cancellation info", + "type": "object", + "properties": { + "isCancellable": { + "description": "Indicates whether or not the booking is cancellable", + "type": "boolean" + }, + "cost": { + "description": "Cost of the cancellation", + "type": "object", + "required": [ + "amount", + "currency" + ], + "properties": { + "amount": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "discount": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "taxes": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "currency": { + "description": "Accepted monetary unit in ISO 4127 format, see https://en.wikipedia.org/wiki/ISO_4217#cite_note-1", + "type": "string", + "enum": [ + "EUR", + "GBP" + ] + } + }, + "additionalProperties": false + }, + "expiration": { + "description": "Expiration date of the cancellation terms.", + "type": "integer", + "maximum": 9007199254740991, + "minimum": 1451606400 + } + } + }, + "validFrom": { + "description": "[DEPRECATED] Validity starting time", + "type": "integer", + "maximum": 9007199254740991, + "minimum": 1451606400 + }, + "validSeconds": { + "description": "[DEPRECATED] Validity duration in seconds", + "type": "integer", + "minimum": 0 } - } + }, + "additionalProperties": false }, "customer": { "type": "object", diff --git a/prebuilt/tsp/booking-create/response.json b/prebuilt/tsp/booking-create/response.json index 07d83aa6c..57eae055d 100644 --- a/prebuilt/tsp/booking-create/response.json +++ b/prebuilt/tsp/booking-create/response.json @@ -402,12 +402,75 @@ "minimum": 1451606400 } }, + "additionalProperties": false, "required": [ "startTime", "endTime" ] + }, + "cancellation": { + "description": "Booking cancellation info", + "type": "object", + "properties": { + "isCancellable": { + "description": "Indicates whether or not the booking is cancellable", + "type": "boolean" + }, + "cost": { + "description": "Cost of the cancellation", + "type": "object", + "required": [ + "amount", + "currency" + ], + "properties": { + "amount": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "discount": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "taxes": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "currency": { + "description": "Accepted monetary unit in ISO 4127 format, see https://en.wikipedia.org/wiki/ISO_4217#cite_note-1", + "type": "string", + "enum": [ + "EUR", + "GBP" + ] + } + }, + "additionalProperties": false + }, + "expiration": { + "description": "Expiration date of the cancellation terms.", + "type": "integer", + "maximum": 9007199254740991, + "minimum": 1451606400 + } + } + }, + "validFrom": { + "description": "[DEPRECATED] Validity starting time", + "type": "integer", + "maximum": 9007199254740991, + "minimum": 1451606400 + }, + "validSeconds": { + "description": "[DEPRECATED] Validity duration in seconds", + "type": "integer", + "minimum": 0 } - } + }, + "additionalProperties": false }, "token": { "description": "The validity token (such as booking ID, travel ticket etc.) that MaaS clients will display to validate the trip when starting the leg.", @@ -429,7 +492,14 @@ "maximum": 9007199254740991, "minimum": 1451606400 } - } + }, + "additionalProperties": false + }, + "value": { + "description": "Arbitrary token value", + "type": "string", + "minLength": 1, + "maxLength": 9999 }, "data": { "description": "Arbitrary ticket data for the client", diff --git a/prebuilt/tsp/booking-option.json b/prebuilt/tsp/booking-option.json index feb79a73d..2919c3061 100644 --- a/prebuilt/tsp/booking-option.json +++ b/prebuilt/tsp/booking-option.json @@ -246,12 +246,75 @@ "minimum": 1451606400 } }, + "additionalProperties": false, "required": [ "startTime", "endTime" ] + }, + "cancellation": { + "description": "Booking cancellation info", + "type": "object", + "properties": { + "isCancellable": { + "description": "Indicates whether or not the booking is cancellable", + "type": "boolean" + }, + "cost": { + "description": "Cost of the cancellation", + "type": "object", + "required": [ + "amount", + "currency" + ], + "properties": { + "amount": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "discount": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "taxes": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "currency": { + "description": "Accepted monetary unit in ISO 4127 format, see https://en.wikipedia.org/wiki/ISO_4217#cite_note-1", + "type": "string", + "enum": [ + "EUR", + "GBP" + ] + } + }, + "additionalProperties": false + }, + "expiration": { + "description": "Expiration date of the cancellation terms.", + "type": "integer", + "maximum": 9007199254740991, + "minimum": 1451606400 + } + } + }, + "validFrom": { + "description": "[DEPRECATED] Validity starting time", + "type": "integer", + "maximum": 9007199254740991, + "minimum": 1451606400 + }, + "validSeconds": { + "description": "[DEPRECATED] Validity duration in seconds", + "type": "integer", + "minimum": 0 } - } + }, + "additionalProperties": false }, "meta": { "type": "object", diff --git a/prebuilt/tsp/booking-options-list/response.json b/prebuilt/tsp/booking-options-list/response.json index 7925488e0..87044729f 100644 --- a/prebuilt/tsp/booking-options-list/response.json +++ b/prebuilt/tsp/booking-options-list/response.json @@ -254,12 +254,75 @@ "minimum": 1451606400 } }, + "additionalProperties": false, "required": [ "startTime", "endTime" ] + }, + "cancellation": { + "description": "Booking cancellation info", + "type": "object", + "properties": { + "isCancellable": { + "description": "Indicates whether or not the booking is cancellable", + "type": "boolean" + }, + "cost": { + "description": "Cost of the cancellation", + "type": "object", + "required": [ + "amount", + "currency" + ], + "properties": { + "amount": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "discount": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "taxes": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "currency": { + "description": "Accepted monetary unit in ISO 4127 format, see https://en.wikipedia.org/wiki/ISO_4217#cite_note-1", + "type": "string", + "enum": [ + "EUR", + "GBP" + ] + } + }, + "additionalProperties": false + }, + "expiration": { + "description": "Expiration date of the cancellation terms.", + "type": "integer", + "maximum": 9007199254740991, + "minimum": 1451606400 + } + } + }, + "validFrom": { + "description": "[DEPRECATED] Validity starting time", + "type": "integer", + "maximum": 9007199254740991, + "minimum": 1451606400 + }, + "validSeconds": { + "description": "[DEPRECATED] Validity duration in seconds", + "type": "integer", + "minimum": 0 } - } + }, + "additionalProperties": false }, "meta": { "type": "object", diff --git a/prebuilt/tsp/booking-read-by-id/response.json b/prebuilt/tsp/booking-read-by-id/response.json index 56bd55647..d75254cf4 100644 --- a/prebuilt/tsp/booking-read-by-id/response.json +++ b/prebuilt/tsp/booking-read-by-id/response.json @@ -396,12 +396,75 @@ "minimum": 1451606400 } }, + "additionalProperties": false, "required": [ "startTime", "endTime" ] + }, + "cancellation": { + "description": "Booking cancellation info", + "type": "object", + "properties": { + "isCancellable": { + "description": "Indicates whether or not the booking is cancellable", + "type": "boolean" + }, + "cost": { + "description": "Cost of the cancellation", + "type": "object", + "required": [ + "amount", + "currency" + ], + "properties": { + "amount": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "discount": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "taxes": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "currency": { + "description": "Accepted monetary unit in ISO 4127 format, see https://en.wikipedia.org/wiki/ISO_4217#cite_note-1", + "type": "string", + "enum": [ + "EUR", + "GBP" + ] + } + }, + "additionalProperties": false + }, + "expiration": { + "description": "Expiration date of the cancellation terms.", + "type": "integer", + "maximum": 9007199254740991, + "minimum": 1451606400 + } + } + }, + "validFrom": { + "description": "[DEPRECATED] Validity starting time", + "type": "integer", + "maximum": 9007199254740991, + "minimum": 1451606400 + }, + "validSeconds": { + "description": "[DEPRECATED] Validity duration in seconds", + "type": "integer", + "minimum": 0 } - } + }, + "additionalProperties": false }, "token": { "description": "The validity token (such as booking ID, travel ticket etc.) that MaaS clients will display to validate the trip when starting the leg.", @@ -423,7 +486,14 @@ "maximum": 9007199254740991, "minimum": 1451606400 } - } + }, + "additionalProperties": false + }, + "value": { + "description": "Arbitrary token value", + "type": "string", + "minLength": 1, + "maxLength": 9999 }, "data": { "description": "Arbitrary ticket data for the client", diff --git a/prebuilt/tsp/webhooks-bookings-update/remote-request.json b/prebuilt/tsp/webhooks-bookings-update/remote-request.json index cb9b81d31..ffac3e556 100644 --- a/prebuilt/tsp/webhooks-bookings-update/remote-request.json +++ b/prebuilt/tsp/webhooks-bookings-update/remote-request.json @@ -397,12 +397,75 @@ "minimum": 1451606400 } }, + "additionalProperties": false, "required": [ "startTime", "endTime" ] + }, + "cancellation": { + "description": "Booking cancellation info", + "type": "object", + "properties": { + "isCancellable": { + "description": "Indicates whether or not the booking is cancellable", + "type": "boolean" + }, + "cost": { + "description": "Cost of the cancellation", + "type": "object", + "required": [ + "amount", + "currency" + ], + "properties": { + "amount": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "discount": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "taxes": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "currency": { + "description": "Accepted monetary unit in ISO 4127 format, see https://en.wikipedia.org/wiki/ISO_4217#cite_note-1", + "type": "string", + "enum": [ + "EUR", + "GBP" + ] + } + }, + "additionalProperties": false + }, + "expiration": { + "description": "Expiration date of the cancellation terms.", + "type": "integer", + "maximum": 9007199254740991, + "minimum": 1451606400 + } + } + }, + "validFrom": { + "description": "[DEPRECATED] Validity starting time", + "type": "integer", + "maximum": 9007199254740991, + "minimum": 1451606400 + }, + "validSeconds": { + "description": "[DEPRECATED] Validity duration in seconds", + "type": "integer", + "minimum": 0 } - } + }, + "additionalProperties": false }, "token": { "description": "The validity token (such as booking ID, travel ticket etc.) that MaaS clients will display to validate the trip when starting the leg.", @@ -424,7 +487,14 @@ "maximum": 9007199254740991, "minimum": 1451606400 } - } + }, + "additionalProperties": false + }, + "value": { + "description": "Arbitrary token value", + "type": "string", + "minLength": 1, + "maxLength": 9999 }, "data": { "description": "Arbitrary ticket data for the client", diff --git a/prebuilt/tsp/webhooks-bookings-update/remote-response.json b/prebuilt/tsp/webhooks-bookings-update/remote-response.json index 0a7ed908e..0e966282c 100644 --- a/prebuilt/tsp/webhooks-bookings-update/remote-response.json +++ b/prebuilt/tsp/webhooks-bookings-update/remote-response.json @@ -407,12 +407,75 @@ "minimum": 1451606400 } }, + "additionalProperties": false, "required": [ "startTime", "endTime" ] + }, + "cancellation": { + "description": "Booking cancellation info", + "type": "object", + "properties": { + "isCancellable": { + "description": "Indicates whether or not the booking is cancellable", + "type": "boolean" + }, + "cost": { + "description": "Cost of the cancellation", + "type": "object", + "required": [ + "amount", + "currency" + ], + "properties": { + "amount": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "discount": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "taxes": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "currency": { + "description": "Accepted monetary unit in ISO 4127 format, see https://en.wikipedia.org/wiki/ISO_4217#cite_note-1", + "type": "string", + "enum": [ + "EUR", + "GBP" + ] + } + }, + "additionalProperties": false + }, + "expiration": { + "description": "Expiration date of the cancellation terms.", + "type": "integer", + "maximum": 9007199254740991, + "minimum": 1451606400 + } + } + }, + "validFrom": { + "description": "[DEPRECATED] Validity starting time", + "type": "integer", + "maximum": 9007199254740991, + "minimum": 1451606400 + }, + "validSeconds": { + "description": "[DEPRECATED] Validity duration in seconds", + "type": "integer", + "minimum": 0 } - } + }, + "additionalProperties": false }, "token": { "description": "The validity token (such as booking ID, travel ticket etc.) that MaaS clients will display to validate the trip when starting the leg.", @@ -434,7 +497,14 @@ "maximum": 9007199254740991, "minimum": 1451606400 } - } + }, + "additionalProperties": false + }, + "value": { + "description": "Arbitrary token value", + "type": "string", + "minLength": 1, + "maxLength": 9999 }, "data": { "description": "Arbitrary ticket data for the client", @@ -863,12 +933,75 @@ "minimum": 1451606400 } }, + "additionalProperties": false, "required": [ "startTime", "endTime" ] + }, + "cancellation": { + "description": "Booking cancellation info", + "type": "object", + "properties": { + "isCancellable": { + "description": "Indicates whether or not the booking is cancellable", + "type": "boolean" + }, + "cost": { + "description": "Cost of the cancellation", + "type": "object", + "required": [ + "amount", + "currency" + ], + "properties": { + "amount": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "discount": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "taxes": { + "type": "number", + "minimum": 0, + "multipleOf": 0.01 + }, + "currency": { + "description": "Accepted monetary unit in ISO 4127 format, see https://en.wikipedia.org/wiki/ISO_4217#cite_note-1", + "type": "string", + "enum": [ + "EUR", + "GBP" + ] + } + }, + "additionalProperties": false + }, + "expiration": { + "description": "Expiration date of the cancellation terms.", + "type": "integer", + "maximum": 9007199254740991, + "minimum": 1451606400 + } + } + }, + "validFrom": { + "description": "[DEPRECATED] Validity starting time", + "type": "integer", + "maximum": 9007199254740991, + "minimum": 1451606400 + }, + "validSeconds": { + "description": "[DEPRECATED] Validity duration in seconds", + "type": "integer", + "minimum": 0 } - } + }, + "additionalProperties": false }, "token": { "description": "The validity token (such as booking ID, travel ticket etc.) that MaaS clients will display to validate the trip when starting the leg.", @@ -890,7 +1023,14 @@ "maximum": 9007199254740991, "minimum": 1451606400 } - } + }, + "additionalProperties": false + }, + "value": { + "description": "Arbitrary token value", + "type": "string", + "minLength": 1, + "maxLength": 9999 }, "data": { "description": "Arbitrary ticket data for the client", diff --git a/schemas/core/booking.json b/schemas/core/booking.json index f03064049..c04a96a9e 100644 --- a/schemas/core/booking.json +++ b/schemas/core/booking.json @@ -254,9 +254,38 @@ "startTime": { "$ref": "./units.json#/definitions/time" }, "endTime": { "$ref": "./units.json#/definitions/time" } }, + "additionalProperties": false, "required": ["startTime", "endTime"] + }, + "cancellation": { + "description": "Booking cancellation info", + "type": "object", + "properties": { + "isCancellable": { + "description": "Indicates whether or not the booking is cancellable", + "type": "boolean" + }, + "cost": { + "description": "Cost of the cancellation", + "$ref": "./units.json#/definitions/cost" + }, + "expiration": { + "description": "Expiration date of the cancellation terms.", + "$ref": "./units.json#/definitions/time" + } + } + }, + "validFrom": { + "description": "[DEPRECATED] Validity starting time", + "$ref": "./units.json#/definitions/time" + }, + "validSeconds": { + "description": "[DEPRECATED] Validity duration in seconds", + "type": "integer", + "minimum": 0 } - } + }, + "additionalProperties": false }, "token": { "description": "The validity token (such as booking ID, travel ticket etc.) that MaaS clients will display to validate the trip when starting the leg.", @@ -274,7 +303,14 @@ "description": "The finishing time the ticket is valid for", "$ref": "./units.json#/definitions/time" } - } + }, + "additionalProperties": false + }, + "value": { + "description": "Arbitrary token value", + "type": "string", + "minLength": 1, + "maxLength": 9999 }, "data": { "description": "Arbitrary ticket data for the client", diff --git a/schemas/tsp/booking-option.json b/schemas/tsp/booking-option.json index 116f0ea4c..081cac14f 100644 --- a/schemas/tsp/booking-option.json +++ b/schemas/tsp/booking-option.json @@ -10,7 +10,7 @@ "leg": { "$ref": "#/definitions/leg" }, - "terms": { + "terms": { "$ref": "../core/booking.json#/definitions/terms" }, "meta": {