btrz-api-client 8.50.0 → 8.51.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -7,7 +7,7 @@ var _require = require("./../endpoints_helpers.js"),
|
|
|
7
7
|
/**
|
|
8
8
|
* Query params for GET pdf-templates-processing routes (btrz-api-notifications). Client uses type/family to resolve path.
|
|
9
9
|
* @typedef {Object} PdfDataGetQuery
|
|
10
|
-
* @property {string} type - Document type; determines path (e.g. product, giftCertificate, voucher, transaction, ssr, manifest, passengersManifest, order, order_confirmation, cancellation, change, shift, invoice, parcelManifest, startingBalance, partialShiftDeposits, bankDepositSlip, terminalVoucher, manualTickets, etc.)
|
|
10
|
+
* @property {string} type - Document type; determines path (e.g. product, giftCertificate, voucher, transaction, ssr, manifest, passengersManifest, order, order_confirmation, cancellation, change, shift, invoice, parcelManifest, startingBalance, partialShiftDeposits, bankDepositSlip, terminalVoucher, manualTickets, etc.). For pre_trip_notification and post_trip_notification the request uses GET /queue-notifications/manifest-notification-data/{itemId}.
|
|
11
11
|
* @property {string} [family] - When type is "product": "ticket" | "reservation" | "paid in" | "paid out" | "parcel" | "flexpass" | "bundle"
|
|
12
12
|
*/
|
|
13
13
|
|
|
@@ -73,7 +73,7 @@ function pdfDataFactory(_ref) {
|
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
if (query.type === "pre_trip_notification" || query.type === "post_trip_notification") {
|
|
76
|
-
url = "/manifest-notification-data/" + itemId;
|
|
76
|
+
url = "/queue-notifications/manifest-notification-data/" + itemId;
|
|
77
77
|
}
|
|
78
78
|
if (query.type === "parcel_confirmation") {
|
|
79
79
|
url = "/pdf-parcels/" + itemId;
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@ const {
|
|
|
6
6
|
/**
|
|
7
7
|
* Query params for GET pdf-templates-processing routes (btrz-api-notifications). Client uses type/family to resolve path.
|
|
8
8
|
* @typedef {Object} PdfDataGetQuery
|
|
9
|
-
* @property {string} type - Document type; determines path (e.g. product, giftCertificate, voucher, transaction, ssr, manifest, passengersManifest, order, order_confirmation, cancellation, change, shift, invoice, parcelManifest, startingBalance, partialShiftDeposits, bankDepositSlip, terminalVoucher, manualTickets, etc.)
|
|
9
|
+
* @property {string} type - Document type; determines path (e.g. product, giftCertificate, voucher, transaction, ssr, manifest, passengersManifest, order, order_confirmation, cancellation, change, shift, invoice, parcelManifest, startingBalance, partialShiftDeposits, bankDepositSlip, terminalVoucher, manualTickets, etc.). For pre_trip_notification and post_trip_notification the request uses GET /queue-notifications/manifest-notification-data/{itemId}.
|
|
10
10
|
* @property {string} [family] - When type is "product": "ticket" | "reservation" | "paid in" | "paid out" | "parcel" | "flexpass" | "bundle"
|
|
11
11
|
*/
|
|
12
12
|
|
|
@@ -69,7 +69,7 @@ function pdfDataFactory({
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
if (query.type === "pre_trip_notification" || query.type === "post_trip_notification") {
|
|
72
|
-
url = `/manifest-notification-data/${itemId}`;
|
|
72
|
+
url = `/queue-notifications/manifest-notification-data/${itemId}`;
|
|
73
73
|
}
|
|
74
74
|
if (query.type === "parcel_confirmation") {
|
|
75
75
|
url = `/pdf-parcels/${itemId}`;
|
|
@@ -305,7 +305,7 @@ describe("notifications/pdf-data", () => {
|
|
|
305
305
|
it("should return the proper data for pre_trip_notification (manifest notification data)", () => {
|
|
306
306
|
const itemId = "12345";
|
|
307
307
|
const query = {type: "pre_trip_notification"};
|
|
308
|
-
axiosMock.onGet(new RegExp(`^/manifest-notification-data/${itemId}`))
|
|
308
|
+
axiosMock.onGet(new RegExp(`^/queue-notifications/manifest-notification-data/${itemId}`))
|
|
309
309
|
.reply(expectRequest({statusCode: 200, token}));
|
|
310
310
|
return api.notifications.pdfData.get({token, query, itemId});
|
|
311
311
|
});
|
|
@@ -313,7 +313,7 @@ describe("notifications/pdf-data", () => {
|
|
|
313
313
|
it("should return the proper data for post_trip_notification (manifest notification data)", () => {
|
|
314
314
|
const itemId = "12345";
|
|
315
315
|
const query = {type: "post_trip_notification"};
|
|
316
|
-
axiosMock.onGet(new RegExp(`^/manifest-notification-data/${itemId}`))
|
|
316
|
+
axiosMock.onGet(new RegExp(`^/queue-notifications/manifest-notification-data/${itemId}`))
|
|
317
317
|
.reply(expectRequest({statusCode: 200, token}));
|
|
318
318
|
return api.notifications.pdfData.get({token, query, itemId});
|
|
319
319
|
});
|