btrz-api-client 8.64.0 → 8.65.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.
|
@@ -82,7 +82,7 @@ function pdfDataFactory(_ref) {
|
|
|
82
82
|
url = "/pdf-redeemable-items/" + itemId;
|
|
83
83
|
}
|
|
84
84
|
if (query.type === "sold_item_confirmation") {
|
|
85
|
-
url = "/pdf-
|
|
85
|
+
url = "/pdf-paid-ins/" + itemId;
|
|
86
86
|
}
|
|
87
87
|
if (query.type === "customer_card_membership" || query.type === "scanning_badge" || query.type === "customer_activation" || query.type === "customer_activation_mobile" || query.type === "customer_password_reset" || query.type === "customer_password_reset_mobile") {
|
|
88
88
|
url = "/pdf-customer/" + itemId;
|
|
@@ -102,9 +102,6 @@ function pdfDataFactory(_ref) {
|
|
|
102
102
|
if (query.type === "transaction" || query.type === "operator_purchase" || query.type === "operator_ssr") {
|
|
103
103
|
url = "/pdf-transactions/" + itemId;
|
|
104
104
|
}
|
|
105
|
-
if (query.type === "operator_manifest_capacity") {
|
|
106
|
-
url = "/pdf-operator-manifest-capacities/" + itemId;
|
|
107
|
-
}
|
|
108
105
|
if (query.type === "ssr") {
|
|
109
106
|
url = "/pdf-ssrs/" + itemId;
|
|
110
107
|
}
|
|
@@ -112,9 +109,9 @@ function pdfDataFactory(_ref) {
|
|
|
112
109
|
url = "/pdf-passengers-manifests/" + itemId;
|
|
113
110
|
}
|
|
114
111
|
if (query.type === "reaccomodation" || query.type === "ticket_movement") {
|
|
115
|
-
url = "/pdf-
|
|
112
|
+
url = "/pdf-tickets/" + itemId;
|
|
116
113
|
}
|
|
117
|
-
if (query.type === "manifest" || query.type === "manifest_notification") {
|
|
114
|
+
if (query.type === "manifest" || query.type === "manifest_notification" || query.type === "operator_manifest_capacity") {
|
|
118
115
|
url = "/pdf-manifests/" + itemId;
|
|
119
116
|
}
|
|
120
117
|
var orderTypes = ["order", "order_confirmation", "cancellation", "change"];
|
package/package.json
CHANGED
|
@@ -78,7 +78,7 @@ function pdfDataFactory({
|
|
|
78
78
|
url = `/pdf-redeemable-items/${itemId}`;
|
|
79
79
|
}
|
|
80
80
|
if (query.type === "sold_item_confirmation") {
|
|
81
|
-
url = `/pdf-
|
|
81
|
+
url = `/pdf-paid-ins/${itemId}`;
|
|
82
82
|
}
|
|
83
83
|
if (query.type === "customer_card_membership" ||
|
|
84
84
|
query.type === "scanning_badge" ||
|
|
@@ -103,9 +103,6 @@ function pdfDataFactory({
|
|
|
103
103
|
if (query.type === "transaction" || query.type === "operator_purchase" || query.type === "operator_ssr") {
|
|
104
104
|
url = `/pdf-transactions/${itemId}`;
|
|
105
105
|
}
|
|
106
|
-
if (query.type === "operator_manifest_capacity") {
|
|
107
|
-
url = `/pdf-operator-manifest-capacities/${itemId}`;
|
|
108
|
-
}
|
|
109
106
|
if (query.type === "ssr") {
|
|
110
107
|
url = `/pdf-ssrs/${itemId}`;
|
|
111
108
|
}
|
|
@@ -113,9 +110,9 @@ function pdfDataFactory({
|
|
|
113
110
|
url = `/pdf-passengers-manifests/${itemId}`;
|
|
114
111
|
}
|
|
115
112
|
if (query.type === "reaccomodation" || query.type === "ticket_movement") {
|
|
116
|
-
url = `/pdf-
|
|
113
|
+
url = `/pdf-tickets/${itemId}`;
|
|
117
114
|
}
|
|
118
|
-
if (query.type === "manifest" || query.type === "manifest_notification") {
|
|
115
|
+
if (query.type === "manifest" || query.type === "manifest_notification" || query.type === "operator_manifest_capacity") {
|
|
119
116
|
url = `/pdf-manifests/${itemId}`;
|
|
120
117
|
}
|
|
121
118
|
const orderTypes = ["order", "order_confirmation", "cancellation", "change"];
|
|
@@ -337,7 +337,7 @@ describe("notifications/pdf-data", () => {
|
|
|
337
337
|
it("should return the proper data for sold_item_confirmation", () => {
|
|
338
338
|
const itemId = "12345";
|
|
339
339
|
const query = {type: "sold_item_confirmation"};
|
|
340
|
-
axiosMock.onGet(`/pdf-
|
|
340
|
+
axiosMock.onGet(`/pdf-paid-ins/${itemId}`)
|
|
341
341
|
.reply(expectRequest({statusCode: 200, token}));
|
|
342
342
|
return api.notifications.pdfData.get({token, query, itemId});
|
|
343
343
|
});
|
|
@@ -465,7 +465,7 @@ describe("notifications/pdf-data", () => {
|
|
|
465
465
|
it("should return the proper data for operator_manifest_capacity", () => {
|
|
466
466
|
const itemId = "12345";
|
|
467
467
|
const query = {type: "operator_manifest_capacity"};
|
|
468
|
-
axiosMock.onGet(`/pdf-
|
|
468
|
+
axiosMock.onGet(`/pdf-manifests/${itemId}`)
|
|
469
469
|
.reply(expectRequest({statusCode: 200, token}));
|
|
470
470
|
return api.notifications.pdfData.get({token, query, itemId});
|
|
471
471
|
});
|
|
@@ -473,7 +473,7 @@ describe("notifications/pdf-data", () => {
|
|
|
473
473
|
it("should return the proper data for reaccomodation", () => {
|
|
474
474
|
const itemId = "12345";
|
|
475
475
|
const query = {type: "reaccomodation"};
|
|
476
|
-
axiosMock.onGet(`/pdf-
|
|
476
|
+
axiosMock.onGet(`/pdf-tickets/${itemId}`)
|
|
477
477
|
.reply(expectRequest({statusCode: 200, token}));
|
|
478
478
|
return api.notifications.pdfData.get({token, query, itemId});
|
|
479
479
|
});
|
|
@@ -481,7 +481,7 @@ describe("notifications/pdf-data", () => {
|
|
|
481
481
|
it("should return the proper data for ticket_movement (pdf-reaccomodation)", () => {
|
|
482
482
|
const itemId = "12345";
|
|
483
483
|
const query = {type: "ticket_movement"};
|
|
484
|
-
axiosMock.onGet(`/pdf-
|
|
484
|
+
axiosMock.onGet(`/pdf-tickets/${itemId}`)
|
|
485
485
|
.reply(expectRequest({statusCode: 200, token}));
|
|
486
486
|
return api.notifications.pdfData.get({token, query, itemId});
|
|
487
487
|
});
|