From 26815a296898afdba662b84f5236f99c15b4938e Mon Sep 17 00:00:00 2001 From: Marcin Krawczyk Date: Fri, 13 Apr 2018 16:15:35 +0200 Subject: [PATCH] feat(ticket): support tokeb data path --- prebuilt/core/booking.json | 16 ++++++++++++++-- .../bookings-agency-options/response.json | 16 ++++++++++++++-- .../bookings/bookings-cancel/response.json | 16 ++++++++++++++-- .../bookings/bookings-create/request.json | 16 ++++++++++++++-- .../bookings/bookings-create/response.json | 16 ++++++++++++++-- .../bookings/bookings-list/response.json | 16 ++++++++++++++-- .../bookings/bookings-retrieve/response.json | 16 ++++++++++++++-- .../bookings/bookings-update/request.json | 16 ++++++++++++++-- .../bookings/bookings-update/response.json | 16 ++++++++++++++-- .../webhooks-bookings-update/request.json | 8 +++++++- .../webhooks-bookings-update/response.json | 16 ++++++++++++++-- prebuilt/tsp/booking-cancel/response.json | 8 +++++++- prebuilt/tsp/booking-create/response.json | 8 +++++++- prebuilt/tsp/booking-read-by-id/response.json | 8 +++++++- prebuilt/tsp/booking-ticket/request.json | 8 +++++++- prebuilt/tsp/booking-update/response.json | 8 +++++++- .../webhooks-bookings-update/remote-request.json | 8 +++++++- .../remote-response.json | 16 ++++++++++++++-- schemas/core/booking.json | 8 +++++++- 19 files changed, 210 insertions(+), 30 deletions(-) diff --git a/prebuilt/core/booking.json b/prebuilt/core/booking.json index 0aad66a86..f1b2aed6a 100644 --- a/prebuilt/core/booking.json +++ b/prebuilt/core/booking.json @@ -429,7 +429,13 @@ }, "data": { "description": "Arbitrary ticket data for the client", - "type": "object" + "type": "object", + "properties": { + "ticket": { + "type": "string", + "description": "Ticket path used by client to fetch ticket body (e.g ticket.html)" + } + } }, "meta": { "description": "Arbitrary metadata the TSP may pass along the ticket to the client (e.g. a booking code, base64 encoded binary)", @@ -2245,7 +2251,13 @@ }, "data": { "description": "Arbitrary ticket data for the client", - "type": "object" + "type": "object", + "properties": { + "ticket": { + "type": "string", + "description": "Ticket path used by client to fetch ticket body (e.g ticket.html)" + } + } }, "meta": { "description": "Arbitrary metadata the TSP may pass along the ticket to the client (e.g. a booking code, base64 encoded binary)", diff --git a/prebuilt/maas-backend/bookings/bookings-agency-options/response.json b/prebuilt/maas-backend/bookings/bookings-agency-options/response.json index 3e1160c7a..3c826fdf8 100644 --- a/prebuilt/maas-backend/bookings/bookings-agency-options/response.json +++ b/prebuilt/maas-backend/bookings/bookings-agency-options/response.json @@ -442,7 +442,13 @@ }, "data": { "description": "Arbitrary ticket data for the client", - "type": "object" + "type": "object", + "properties": { + "ticket": { + "type": "string", + "description": "Ticket path used by client to fetch ticket body (e.g ticket.html)" + } + } }, "meta": { "description": "Arbitrary metadata the TSP may pass along the ticket to the client (e.g. a booking code, base64 encoded binary)", @@ -2249,7 +2255,13 @@ }, "data": { "description": "Arbitrary ticket data for the client", - "type": "object" + "type": "object", + "properties": { + "ticket": { + "type": "string", + "description": "Ticket path used by client to fetch ticket body (e.g ticket.html)" + } + } }, "meta": { "description": "Arbitrary metadata the TSP may pass along the ticket to the client (e.g. a booking code, base64 encoded binary)", diff --git a/prebuilt/maas-backend/bookings/bookings-cancel/response.json b/prebuilt/maas-backend/bookings/bookings-cancel/response.json index 0de2ee3a8..3ee590d29 100644 --- a/prebuilt/maas-backend/bookings/bookings-cancel/response.json +++ b/prebuilt/maas-backend/bookings/bookings-cancel/response.json @@ -436,7 +436,13 @@ }, "data": { "description": "Arbitrary ticket data for the client", - "type": "object" + "type": "object", + "properties": { + "ticket": { + "type": "string", + "description": "Ticket path used by client to fetch ticket body (e.g ticket.html)" + } + } }, "meta": { "description": "Arbitrary metadata the TSP may pass along the ticket to the client (e.g. a booking code, base64 encoded binary)", @@ -2252,7 +2258,13 @@ }, "data": { "description": "Arbitrary ticket data for the client", - "type": "object" + "type": "object", + "properties": { + "ticket": { + "type": "string", + "description": "Ticket path used by client to fetch ticket body (e.g ticket.html)" + } + } }, "meta": { "description": "Arbitrary metadata the TSP may pass along the ticket to the client (e.g. a booking code, base64 encoded binary)", diff --git a/prebuilt/maas-backend/bookings/bookings-create/request.json b/prebuilt/maas-backend/bookings/bookings-create/request.json index 68cca84a9..2e0408f39 100644 --- a/prebuilt/maas-backend/bookings/bookings-create/request.json +++ b/prebuilt/maas-backend/bookings/bookings-create/request.json @@ -441,7 +441,13 @@ }, "data": { "description": "Arbitrary ticket data for the client", - "type": "object" + "type": "object", + "properties": { + "ticket": { + "type": "string", + "description": "Ticket path used by client to fetch ticket body (e.g ticket.html)" + } + } }, "meta": { "description": "Arbitrary metadata the TSP may pass along the ticket to the client (e.g. a booking code, base64 encoded binary)", @@ -2257,7 +2263,13 @@ }, "data": { "description": "Arbitrary ticket data for the client", - "type": "object" + "type": "object", + "properties": { + "ticket": { + "type": "string", + "description": "Ticket path used by client to fetch ticket body (e.g ticket.html)" + } + } }, "meta": { "description": "Arbitrary metadata the TSP may pass along the ticket to the client (e.g. a booking code, base64 encoded binary)", diff --git a/prebuilt/maas-backend/bookings/bookings-create/response.json b/prebuilt/maas-backend/bookings/bookings-create/response.json index 3dfc9c17d..139f5c9cd 100644 --- a/prebuilt/maas-backend/bookings/bookings-create/response.json +++ b/prebuilt/maas-backend/bookings/bookings-create/response.json @@ -435,7 +435,13 @@ }, "data": { "description": "Arbitrary ticket data for the client", - "type": "object" + "type": "object", + "properties": { + "ticket": { + "type": "string", + "description": "Ticket path used by client to fetch ticket body (e.g ticket.html)" + } + } }, "meta": { "description": "Arbitrary metadata the TSP may pass along the ticket to the client (e.g. a booking code, base64 encoded binary)", @@ -2251,7 +2257,13 @@ }, "data": { "description": "Arbitrary ticket data for the client", - "type": "object" + "type": "object", + "properties": { + "ticket": { + "type": "string", + "description": "Ticket path used by client to fetch ticket body (e.g ticket.html)" + } + } }, "meta": { "description": "Arbitrary metadata the TSP may pass along the ticket to the client (e.g. a booking code, base64 encoded binary)", diff --git a/prebuilt/maas-backend/bookings/bookings-list/response.json b/prebuilt/maas-backend/bookings/bookings-list/response.json index 565705b63..6f68dfdf8 100644 --- a/prebuilt/maas-backend/bookings/bookings-list/response.json +++ b/prebuilt/maas-backend/bookings/bookings-list/response.json @@ -438,7 +438,13 @@ }, "data": { "description": "Arbitrary ticket data for the client", - "type": "object" + "type": "object", + "properties": { + "ticket": { + "type": "string", + "description": "Ticket path used by client to fetch ticket body (e.g ticket.html)" + } + } }, "meta": { "description": "Arbitrary metadata the TSP may pass along the ticket to the client (e.g. a booking code, base64 encoded binary)", @@ -2254,7 +2260,13 @@ }, "data": { "description": "Arbitrary ticket data for the client", - "type": "object" + "type": "object", + "properties": { + "ticket": { + "type": "string", + "description": "Ticket path used by client to fetch ticket body (e.g ticket.html)" + } + } }, "meta": { "description": "Arbitrary metadata the TSP may pass along the ticket to the client (e.g. a booking code, base64 encoded binary)", diff --git a/prebuilt/maas-backend/bookings/bookings-retrieve/response.json b/prebuilt/maas-backend/bookings/bookings-retrieve/response.json index 5003d49e7..127a6956d 100644 --- a/prebuilt/maas-backend/bookings/bookings-retrieve/response.json +++ b/prebuilt/maas-backend/bookings/bookings-retrieve/response.json @@ -435,7 +435,13 @@ }, "data": { "description": "Arbitrary ticket data for the client", - "type": "object" + "type": "object", + "properties": { + "ticket": { + "type": "string", + "description": "Ticket path used by client to fetch ticket body (e.g ticket.html)" + } + } }, "meta": { "description": "Arbitrary metadata the TSP may pass along the ticket to the client (e.g. a booking code, base64 encoded binary)", @@ -2251,7 +2257,13 @@ }, "data": { "description": "Arbitrary ticket data for the client", - "type": "object" + "type": "object", + "properties": { + "ticket": { + "type": "string", + "description": "Ticket path used by client to fetch ticket body (e.g ticket.html)" + } + } }, "meta": { "description": "Arbitrary metadata the TSP may pass along the ticket to the client (e.g. a booking code, base64 encoded binary)", diff --git a/prebuilt/maas-backend/bookings/bookings-update/request.json b/prebuilt/maas-backend/bookings/bookings-update/request.json index 4ec047700..e2b8c2214 100644 --- a/prebuilt/maas-backend/bookings/bookings-update/request.json +++ b/prebuilt/maas-backend/bookings/bookings-update/request.json @@ -444,7 +444,13 @@ }, "data": { "description": "Arbitrary ticket data for the client", - "type": "object" + "type": "object", + "properties": { + "ticket": { + "type": "string", + "description": "Ticket path used by client to fetch ticket body (e.g ticket.html)" + } + } }, "meta": { "description": "Arbitrary metadata the TSP may pass along the ticket to the client (e.g. a booking code, base64 encoded binary)", @@ -2260,7 +2266,13 @@ }, "data": { "description": "Arbitrary ticket data for the client", - "type": "object" + "type": "object", + "properties": { + "ticket": { + "type": "string", + "description": "Ticket path used by client to fetch ticket body (e.g ticket.html)" + } + } }, "meta": { "description": "Arbitrary metadata the TSP may pass along the ticket to the client (e.g. a booking code, base64 encoded binary)", diff --git a/prebuilt/maas-backend/bookings/bookings-update/response.json b/prebuilt/maas-backend/bookings/bookings-update/response.json index c0822dab6..14d2445ad 100644 --- a/prebuilt/maas-backend/bookings/bookings-update/response.json +++ b/prebuilt/maas-backend/bookings/bookings-update/response.json @@ -435,7 +435,13 @@ }, "data": { "description": "Arbitrary ticket data for the client", - "type": "object" + "type": "object", + "properties": { + "ticket": { + "type": "string", + "description": "Ticket path used by client to fetch ticket body (e.g ticket.html)" + } + } }, "meta": { "description": "Arbitrary metadata the TSP may pass along the ticket to the client (e.g. a booking code, base64 encoded binary)", @@ -2251,7 +2257,13 @@ }, "data": { "description": "Arbitrary ticket data for the client", - "type": "object" + "type": "object", + "properties": { + "ticket": { + "type": "string", + "description": "Ticket path used by client to fetch ticket body (e.g ticket.html)" + } + } }, "meta": { "description": "Arbitrary metadata the TSP may pass along the ticket to the client (e.g. a booking code, base64 encoded binary)", diff --git a/prebuilt/maas-backend/webhooks/webhooks-bookings-update/request.json b/prebuilt/maas-backend/webhooks/webhooks-bookings-update/request.json index 94b5df31d..e06b37bff 100644 --- a/prebuilt/maas-backend/webhooks/webhooks-bookings-update/request.json +++ b/prebuilt/maas-backend/webhooks/webhooks-bookings-update/request.json @@ -1056,7 +1056,13 @@ }, "data": { "description": "Arbitrary ticket data for the client", - "type": "object" + "type": "object", + "properties": { + "ticket": { + "type": "string", + "description": "Ticket path used by client to fetch ticket body (e.g ticket.html)" + } + } }, "meta": { "description": "Arbitrary metadata the TSP may pass along the ticket to the client (e.g. a booking code, base64 encoded binary)", diff --git a/prebuilt/maas-backend/webhooks/webhooks-bookings-update/response.json b/prebuilt/maas-backend/webhooks/webhooks-bookings-update/response.json index 00c9193a8..7de546446 100644 --- a/prebuilt/maas-backend/webhooks/webhooks-bookings-update/response.json +++ b/prebuilt/maas-backend/webhooks/webhooks-bookings-update/response.json @@ -1065,7 +1065,13 @@ }, "data": { "description": "Arbitrary ticket data for the client", - "type": "object" + "type": "object", + "properties": { + "ticket": { + "type": "string", + "description": "Ticket path used by client to fetch ticket body (e.g ticket.html)" + } + } }, "meta": { "description": "Arbitrary metadata the TSP may pass along the ticket to the client (e.g. a booking code, base64 encoded binary)", @@ -2231,7 +2237,13 @@ }, "data": { "description": "Arbitrary ticket data for the client", - "type": "object" + "type": "object", + "properties": { + "ticket": { + "type": "string", + "description": "Ticket path used by client to fetch ticket body (e.g ticket.html)" + } + } }, "meta": { "description": "Arbitrary metadata the TSP may pass along the ticket to the client (e.g. a booking code, base64 encoded binary)", diff --git a/prebuilt/tsp/booking-cancel/response.json b/prebuilt/tsp/booking-cancel/response.json index 37e08efd3..765184e92 100644 --- a/prebuilt/tsp/booking-cancel/response.json +++ b/prebuilt/tsp/booking-cancel/response.json @@ -1052,7 +1052,13 @@ }, "data": { "description": "Arbitrary ticket data for the client", - "type": "object" + "type": "object", + "properties": { + "ticket": { + "type": "string", + "description": "Ticket path used by client to fetch ticket body (e.g ticket.html)" + } + } }, "meta": { "description": "Arbitrary metadata the TSP may pass along the ticket to the client (e.g. a booking code, base64 encoded binary)", diff --git a/prebuilt/tsp/booking-create/response.json b/prebuilt/tsp/booking-create/response.json index 34dd94a4f..ffeb42f46 100644 --- a/prebuilt/tsp/booking-create/response.json +++ b/prebuilt/tsp/booking-create/response.json @@ -1054,7 +1054,13 @@ }, "data": { "description": "Arbitrary ticket data for the client", - "type": "object" + "type": "object", + "properties": { + "ticket": { + "type": "string", + "description": "Ticket path used by client to fetch ticket body (e.g ticket.html)" + } + } }, "meta": { "description": "Arbitrary metadata the TSP may pass along the ticket to the client (e.g. a booking code, base64 encoded binary)", diff --git a/prebuilt/tsp/booking-read-by-id/response.json b/prebuilt/tsp/booking-read-by-id/response.json index 5cebd91ba..2f63c432d 100644 --- a/prebuilt/tsp/booking-read-by-id/response.json +++ b/prebuilt/tsp/booking-read-by-id/response.json @@ -1045,7 +1045,13 @@ }, "data": { "description": "Arbitrary ticket data for the client", - "type": "object" + "type": "object", + "properties": { + "ticket": { + "type": "string", + "description": "Ticket path used by client to fetch ticket body (e.g ticket.html)" + } + } }, "meta": { "description": "Arbitrary metadata the TSP may pass along the ticket to the client (e.g. a booking code, base64 encoded binary)", diff --git a/prebuilt/tsp/booking-ticket/request.json b/prebuilt/tsp/booking-ticket/request.json index 8a0542990..b3fd35347 100644 --- a/prebuilt/tsp/booking-ticket/request.json +++ b/prebuilt/tsp/booking-ticket/request.json @@ -50,7 +50,13 @@ }, "data": { "description": "Arbitrary ticket data for the client", - "type": "object" + "type": "object", + "properties": { + "ticket": { + "type": "string", + "description": "Ticket path used by client to fetch ticket body (e.g ticket.html)" + } + } }, "meta": { "description": "Arbitrary metadata the TSP may pass along the ticket to the client (e.g. a booking code, base64 encoded binary)", diff --git a/prebuilt/tsp/booking-update/response.json b/prebuilt/tsp/booking-update/response.json index 3a722a05f..68de093c3 100644 --- a/prebuilt/tsp/booking-update/response.json +++ b/prebuilt/tsp/booking-update/response.json @@ -1044,7 +1044,13 @@ }, "data": { "description": "Arbitrary ticket data for the client", - "type": "object" + "type": "object", + "properties": { + "ticket": { + "type": "string", + "description": "Ticket path used by client to fetch ticket body (e.g ticket.html)" + } + } }, "meta": { "description": "Arbitrary metadata the TSP may pass along the ticket to the client (e.g. a booking code, base64 encoded binary)", diff --git a/prebuilt/tsp/webhooks-bookings-update/remote-request.json b/prebuilt/tsp/webhooks-bookings-update/remote-request.json index 237a480f2..5e9d92a28 100644 --- a/prebuilt/tsp/webhooks-bookings-update/remote-request.json +++ b/prebuilt/tsp/webhooks-bookings-update/remote-request.json @@ -1045,7 +1045,13 @@ }, "data": { "description": "Arbitrary ticket data for the client", - "type": "object" + "type": "object", + "properties": { + "ticket": { + "type": "string", + "description": "Ticket path used by client to fetch ticket body (e.g ticket.html)" + } + } }, "meta": { "description": "Arbitrary metadata the TSP may pass along the ticket to the client (e.g. a booking code, base64 encoded binary)", diff --git a/prebuilt/tsp/webhooks-bookings-update/remote-response.json b/prebuilt/tsp/webhooks-bookings-update/remote-response.json index 96ec53e44..60d8fe9ee 100644 --- a/prebuilt/tsp/webhooks-bookings-update/remote-response.json +++ b/prebuilt/tsp/webhooks-bookings-update/remote-response.json @@ -1065,7 +1065,13 @@ }, "data": { "description": "Arbitrary ticket data for the client", - "type": "object" + "type": "object", + "properties": { + "ticket": { + "type": "string", + "description": "Ticket path used by client to fetch ticket body (e.g ticket.html)" + } + } }, "meta": { "description": "Arbitrary metadata the TSP may pass along the ticket to the client (e.g. a booking code, base64 encoded binary)", @@ -2231,7 +2237,13 @@ }, "data": { "description": "Arbitrary ticket data for the client", - "type": "object" + "type": "object", + "properties": { + "ticket": { + "type": "string", + "description": "Ticket path used by client to fetch ticket body (e.g ticket.html)" + } + } }, "meta": { "description": "Arbitrary metadata the TSP may pass along the ticket to the client (e.g. a booking code, base64 encoded binary)", diff --git a/schemas/core/booking.json b/schemas/core/booking.json index 1f7d76e04..f35677b8e 100644 --- a/schemas/core/booking.json +++ b/schemas/core/booking.json @@ -153,7 +153,13 @@ }, "data": { "description": "Arbitrary ticket data for the client", - "type": "object" + "type": "object", + "properties": { + "ticket": { + "type": "string", + "description": "Ticket path used by client to fetch ticket body (e.g ticket.html)" + } + } }, "meta": { "description": "Arbitrary metadata the TSP may pass along the ticket to the client (e.g. a booking code, base64 encoded binary)",