btrz-api-client 8.60.0 → 8.61.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 binary routes (btrz-api-notifications). Client uses type/family to resolve path.
|
|
9
9
|
* @typedef {Object} PdfGetQuery
|
|
10
|
-
* @property {string} type - Document type (e.g. product, giftCertificate, voucher, transaction, ssr, manifest, passengersManifest, order, shift, remainderSlip, exchange, invoice, locationClosure, parcelManifest, startingBalance, partialShiftDeposits, shiftLocationClosure, bankDepositSlip, terminalVoucher, manualTickets)
|
|
10
|
+
* @property {string} type - Document type (e.g. product, giftCertificate, voucher, transaction, ssr, manifest, passengersManifest, order, shift, remainderSlip, exchange, invoice, locationClosure, parcelManifest, startingBalance, partialShiftDeposits, shiftLocationClosure, bankDepositSlip, terminalVoucher, manualTickets, externalWalletVoucher)
|
|
11
11
|
* @property {string} [family] - When type is "product": "ticket" | "reservation" | "paid in" | "paid out" | "parcel" | "flexpass" | "bundle"
|
|
12
12
|
*/
|
|
13
13
|
|
|
@@ -130,6 +130,9 @@ function pdfFactory(_ref) {
|
|
|
130
130
|
if (query.type === "manualTickets") {
|
|
131
131
|
url = "/pdf-manual-tickets/" + itemId;
|
|
132
132
|
}
|
|
133
|
+
if (query.type === "externalWalletVoucher") {
|
|
134
|
+
url = "/pdf-external-wallet-voucher/" + itemId;
|
|
135
|
+
}
|
|
133
136
|
|
|
134
137
|
return client.get(url, {
|
|
135
138
|
params: query,
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@ const {
|
|
|
6
6
|
/**
|
|
7
7
|
* Query params for GET pdf-templates-processing binary routes (btrz-api-notifications). Client uses type/family to resolve path.
|
|
8
8
|
* @typedef {Object} PdfGetQuery
|
|
9
|
-
* @property {string} type - Document type (e.g. product, giftCertificate, voucher, transaction, ssr, manifest, passengersManifest, order, shift, remainderSlip, exchange, invoice, locationClosure, parcelManifest, startingBalance, partialShiftDeposits, shiftLocationClosure, bankDepositSlip, terminalVoucher, manualTickets)
|
|
9
|
+
* @property {string} type - Document type (e.g. product, giftCertificate, voucher, transaction, ssr, manifest, passengersManifest, order, shift, remainderSlip, exchange, invoice, locationClosure, parcelManifest, startingBalance, partialShiftDeposits, shiftLocationClosure, bankDepositSlip, terminalVoucher, manualTickets, externalWalletVoucher)
|
|
10
10
|
* @property {string} [family] - When type is "product": "ticket" | "reservation" | "paid in" | "paid out" | "parcel" | "flexpass" | "bundle"
|
|
11
11
|
*/
|
|
12
12
|
|
|
@@ -126,6 +126,9 @@ function pdfFactory({
|
|
|
126
126
|
if (query.type === "manualTickets") {
|
|
127
127
|
url = `/pdf-manual-tickets/${itemId}`;
|
|
128
128
|
}
|
|
129
|
+
if (query.type === "externalWalletVoucher") {
|
|
130
|
+
url = `/pdf-external-wallet-voucher/${itemId}`;
|
|
131
|
+
}
|
|
129
132
|
|
|
130
133
|
return client.get(url, {
|
|
131
134
|
params: query,
|