@cinerino/sdk 3.155.0-alpha.0 → 3.155.0-alpha.1
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.
- package/lib/abstract/chevre/customer.js +14 -1
- package/lib/abstract/chevre/emailMessage.js +1 -1
- package/lib/abstract/chevre/event.js +17 -2
- package/lib/abstract/chevre/iam.js +20 -6
- package/lib/abstract/chevre/offer.js +26 -8
- package/lib/abstract/chevre/offerCatalog.js +14 -1
- package/lib/abstract/chevre/payment.js +29 -12
- package/lib/abstract/chevre/product.js +18 -2
- package/lib/abstract/chevre/project.js +14 -1
- package/lib/abstract/chevre/reservation.js +1 -1
- package/lib/abstract/chevre/seller.js +14 -1
- package/lib/abstract/chevre/transaction/moneyTransfer.js +14 -1
- package/lib/abstract/chevre/transaction/placeOrder.js +23 -7
- package/lib/bundle.js +205 -44
- package/package.json +1 -1
|
@@ -50,6 +50,17 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
50
50
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
54
|
+
var t = {};
|
|
55
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
56
|
+
t[p] = s[p];
|
|
57
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
58
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
59
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
60
|
+
t[p[i]] = s[p[i]];
|
|
61
|
+
}
|
|
62
|
+
return t;
|
|
63
|
+
};
|
|
53
64
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
65
|
exports.CustomerService = void 0;
|
|
55
66
|
var http_status_1 = require("http-status");
|
|
@@ -86,12 +97,14 @@ var CustomerService = /** @class */ (function (_super) {
|
|
|
86
97
|
*/
|
|
87
98
|
CustomerService.prototype.findById = function (params) {
|
|
88
99
|
return __awaiter(this, void 0, void 0, function () {
|
|
100
|
+
var id, query;
|
|
89
101
|
var _this = this;
|
|
90
102
|
return __generator(this, function (_a) {
|
|
103
|
+
id = params.id, query = __rest(params, ["id"]);
|
|
91
104
|
return [2 /*return*/, this.fetch({
|
|
92
105
|
uri: "/customers/" + params.id,
|
|
93
106
|
method: 'GET',
|
|
94
|
-
qs:
|
|
107
|
+
qs: query,
|
|
95
108
|
expectedStatusCodes: [http_status_1.OK]
|
|
96
109
|
})
|
|
97
110
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
@@ -91,7 +91,7 @@ var EmailMessageService = /** @class */ (function (_super) {
|
|
|
91
91
|
return [2 /*return*/, this.fetch({
|
|
92
92
|
uri: "/emailMessages/" + params.id,
|
|
93
93
|
method: 'GET',
|
|
94
|
-
qs: params,
|
|
94
|
+
// qs: params,
|
|
95
95
|
expectedStatusCodes: [http_status_1.OK]
|
|
96
96
|
})
|
|
97
97
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
@@ -50,6 +50,17 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
50
50
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
54
|
+
var t = {};
|
|
55
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
56
|
+
t[p] = s[p];
|
|
57
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
58
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
59
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
60
|
+
t[p[i]] = s[p[i]];
|
|
61
|
+
}
|
|
62
|
+
return t;
|
|
63
|
+
};
|
|
53
64
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
65
|
exports.EventService = void 0;
|
|
55
66
|
var http_status_1 = require("http-status");
|
|
@@ -250,12 +261,14 @@ var EventService = /** @class */ (function (_super) {
|
|
|
250
261
|
*/
|
|
251
262
|
EventService.prototype.searchTicketOffers = function (params) {
|
|
252
263
|
return __awaiter(this, void 0, void 0, function () {
|
|
264
|
+
var id, query;
|
|
253
265
|
var _this = this;
|
|
254
266
|
return __generator(this, function (_a) {
|
|
267
|
+
id = params.id, query = __rest(params, ["id"]);
|
|
255
268
|
return [2 /*return*/, this.fetch({
|
|
256
269
|
uri: "/events/" + encodeURIComponent(String(params.id)) + "/offers/ticket",
|
|
257
270
|
method: 'GET',
|
|
258
|
-
qs:
|
|
271
|
+
qs: query,
|
|
259
272
|
expectedStatusCodes: [http_status_1.OK]
|
|
260
273
|
})
|
|
261
274
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
@@ -269,12 +282,14 @@ var EventService = /** @class */ (function (_super) {
|
|
|
269
282
|
*/
|
|
270
283
|
EventService.prototype.searchSeats = function (params) {
|
|
271
284
|
return __awaiter(this, void 0, void 0, function () {
|
|
285
|
+
var id, query;
|
|
272
286
|
var _this = this;
|
|
273
287
|
return __generator(this, function (_a) {
|
|
288
|
+
id = params.id, query = __rest(params, ["id"]);
|
|
274
289
|
return [2 /*return*/, this.fetch({
|
|
275
290
|
uri: "/events/" + encodeURIComponent(String(params.id)) + "/seats",
|
|
276
291
|
method: 'GET',
|
|
277
|
-
qs:
|
|
292
|
+
qs: query,
|
|
278
293
|
expectedStatusCodes: [http_status_1.OK]
|
|
279
294
|
})
|
|
280
295
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
@@ -50,6 +50,17 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
50
50
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
54
|
+
var t = {};
|
|
55
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
56
|
+
t[p] = s[p];
|
|
57
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
58
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
59
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
60
|
+
t[p[i]] = s[p[i]];
|
|
61
|
+
}
|
|
62
|
+
return t;
|
|
63
|
+
};
|
|
53
64
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
65
|
exports.IAMService = void 0;
|
|
55
66
|
var http_status_1 = require("http-status");
|
|
@@ -131,14 +142,17 @@ var IAMService = /** @class */ (function (_super) {
|
|
|
131
142
|
*/
|
|
132
143
|
IAMService.prototype.updateUserProfile = function (params) {
|
|
133
144
|
return __awaiter(this, void 0, void 0, function () {
|
|
145
|
+
var id, query;
|
|
134
146
|
return __generator(this, function (_a) {
|
|
135
147
|
switch (_a.label) {
|
|
136
|
-
case 0:
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
148
|
+
case 0:
|
|
149
|
+
id = params.id, query = __rest(params, ["id"]);
|
|
150
|
+
return [4 /*yield*/, this.fetch({
|
|
151
|
+
uri: "/iam/users/" + params.id + "/profile",
|
|
152
|
+
method: 'PATCH',
|
|
153
|
+
body: query,
|
|
154
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
155
|
+
})];
|
|
142
156
|
case 1:
|
|
143
157
|
_a.sent();
|
|
144
158
|
return [2 /*return*/];
|
|
@@ -61,6 +61,17 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
61
61
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
62
62
|
}
|
|
63
63
|
};
|
|
64
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
65
|
+
var t = {};
|
|
66
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
67
|
+
t[p] = s[p];
|
|
68
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
69
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
70
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
71
|
+
t[p[i]] = s[p[i]];
|
|
72
|
+
}
|
|
73
|
+
return t;
|
|
74
|
+
};
|
|
64
75
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
65
76
|
exports.OfferService = exports.FlgMember = void 0;
|
|
66
77
|
var http_status_1 = require("http-status");
|
|
@@ -230,14 +241,17 @@ var OfferService = /** @class */ (function (_super) {
|
|
|
230
241
|
*/
|
|
231
242
|
OfferService.prototype.voidAuthorization = function (params) {
|
|
232
243
|
return __awaiter(this, void 0, void 0, function () {
|
|
244
|
+
var id, object, body;
|
|
233
245
|
return __generator(this, function (_a) {
|
|
234
246
|
switch (_a.label) {
|
|
235
|
-
case 0:
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
247
|
+
case 0:
|
|
248
|
+
id = params.id, object = params.object, body = __rest(params, ["id", "object"]);
|
|
249
|
+
return [4 /*yield*/, this.fetch({
|
|
250
|
+
uri: "/offers/" + params.object.itemOffered.typeOf + "/authorize/" + params.id + "/void",
|
|
251
|
+
method: 'PUT',
|
|
252
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT],
|
|
253
|
+
body: body
|
|
254
|
+
})];
|
|
241
255
|
case 1:
|
|
242
256
|
_a.sent();
|
|
243
257
|
return [2 /*return*/];
|
|
@@ -269,13 +283,15 @@ var OfferService = /** @class */ (function (_super) {
|
|
|
269
283
|
*/
|
|
270
284
|
OfferService.prototype.voidAuthorizationByCOA = function (params) {
|
|
271
285
|
return __awaiter(this, void 0, void 0, function () {
|
|
286
|
+
var id, body;
|
|
272
287
|
var _this = this;
|
|
273
288
|
return __generator(this, function (_a) {
|
|
289
|
+
id = params.id, body = __rest(params, ["id"]);
|
|
274
290
|
return [2 /*return*/, this.fetch({
|
|
275
291
|
uri: "/offers/" + factory.product.ProductType.EventService + "ByCOA/authorize/" + params.id + "/void",
|
|
276
292
|
method: 'PUT',
|
|
277
293
|
expectedStatusCodes: [http_status_1.OK],
|
|
278
|
-
body:
|
|
294
|
+
body: body
|
|
279
295
|
})
|
|
280
296
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
281
297
|
return [2 /*return*/, response.json()];
|
|
@@ -288,13 +304,15 @@ var OfferService = /** @class */ (function (_super) {
|
|
|
288
304
|
*/
|
|
289
305
|
OfferService.prototype.updateEventServiceByCOA = function (params) {
|
|
290
306
|
return __awaiter(this, void 0, void 0, function () {
|
|
307
|
+
var id, body;
|
|
291
308
|
var _this = this;
|
|
292
309
|
return __generator(this, function (_a) {
|
|
310
|
+
id = params.id, body = __rest(params, ["id"]);
|
|
293
311
|
return [2 /*return*/, this.fetch({
|
|
294
312
|
uri: "/offers/" + factory.product.ProductType.EventService + "ByCOA/authorize/" + params.id,
|
|
295
313
|
method: 'PATCH',
|
|
296
314
|
expectedStatusCodes: [http_status_1.OK],
|
|
297
|
-
body:
|
|
315
|
+
body: body
|
|
298
316
|
})
|
|
299
317
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
300
318
|
return [2 /*return*/, response.json()];
|
|
@@ -50,6 +50,17 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
50
50
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
54
|
+
var t = {};
|
|
55
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
56
|
+
t[p] = s[p];
|
|
57
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
58
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
59
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
60
|
+
t[p[i]] = s[p[i]];
|
|
61
|
+
}
|
|
62
|
+
return t;
|
|
63
|
+
};
|
|
53
64
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
65
|
exports.OfferCatalogService = void 0;
|
|
55
66
|
var http_status_1 = require("http-status");
|
|
@@ -171,12 +182,14 @@ var OfferCatalogService = /** @class */ (function (_super) {
|
|
|
171
182
|
};
|
|
172
183
|
OfferCatalogService.prototype.searchItemListElement = function (params) {
|
|
173
184
|
return __awaiter(this, void 0, void 0, function () {
|
|
185
|
+
var id, query;
|
|
174
186
|
var _this = this;
|
|
175
187
|
return __generator(this, function (_a) {
|
|
188
|
+
id = params.id, query = __rest(params, ["id"]);
|
|
176
189
|
return [2 /*return*/, this.fetch({
|
|
177
190
|
uri: "/offerCatalogs/" + encodeURIComponent(String(params.id)) + "/itemListElement",
|
|
178
191
|
method: 'GET',
|
|
179
|
-
qs:
|
|
192
|
+
qs: query,
|
|
180
193
|
expectedStatusCodes: [http_status_1.OK]
|
|
181
194
|
})
|
|
182
195
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
@@ -50,6 +50,17 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
50
50
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
54
|
+
var t = {};
|
|
55
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
56
|
+
t[p] = s[p];
|
|
57
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
58
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
59
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
60
|
+
t[p[i]] = s[p[i]];
|
|
61
|
+
}
|
|
62
|
+
return t;
|
|
63
|
+
};
|
|
53
64
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
65
|
exports.PaymentService = void 0;
|
|
55
66
|
var http_status_1 = require("http-status");
|
|
@@ -183,14 +194,17 @@ var PaymentService = /** @class */ (function (_super) {
|
|
|
183
194
|
*/
|
|
184
195
|
PaymentService.prototype.voidAnyPayment = function (params) {
|
|
185
196
|
return __awaiter(this, void 0, void 0, function () {
|
|
197
|
+
var id, body;
|
|
186
198
|
return __generator(this, function (_a) {
|
|
187
199
|
switch (_a.label) {
|
|
188
|
-
case 0:
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
200
|
+
case 0:
|
|
201
|
+
id = params.id, body = __rest(params, ["id"]);
|
|
202
|
+
return [4 /*yield*/, this.fetch({
|
|
203
|
+
uri: "/payment/" + factory.service.paymentService.PaymentServiceType.FaceToFace + "/authorize/" + params.id + "/void",
|
|
204
|
+
method: 'PUT',
|
|
205
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT],
|
|
206
|
+
body: body
|
|
207
|
+
})];
|
|
194
208
|
case 1:
|
|
195
209
|
_a.sent();
|
|
196
210
|
return [2 /*return*/];
|
|
@@ -203,14 +217,17 @@ var PaymentService = /** @class */ (function (_super) {
|
|
|
203
217
|
*/
|
|
204
218
|
PaymentService.prototype.voidTransaction = function (params) {
|
|
205
219
|
return __awaiter(this, void 0, void 0, function () {
|
|
220
|
+
var id, object, body;
|
|
206
221
|
return __generator(this, function (_a) {
|
|
207
222
|
switch (_a.label) {
|
|
208
|
-
case 0:
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
223
|
+
case 0:
|
|
224
|
+
id = params.id, object = params.object, body = __rest(params, ["id", "object"]);
|
|
225
|
+
return [4 /*yield*/, this.fetch({
|
|
226
|
+
uri: "/payment/" + params.object.typeOf + "/authorize/" + params.id + "/void",
|
|
227
|
+
method: 'PUT',
|
|
228
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT],
|
|
229
|
+
body: body
|
|
230
|
+
})];
|
|
214
231
|
case 1:
|
|
215
232
|
_a.sent();
|
|
216
233
|
return [2 /*return*/];
|
|
@@ -50,6 +50,17 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
50
50
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
54
|
+
var t = {};
|
|
55
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
56
|
+
t[p] = s[p];
|
|
57
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
58
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
59
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
60
|
+
t[p[i]] = s[p[i]];
|
|
61
|
+
}
|
|
62
|
+
return t;
|
|
63
|
+
};
|
|
53
64
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
65
|
exports.ProductService = void 0;
|
|
55
66
|
var http_status_1 = require("http-status");
|
|
@@ -131,12 +142,15 @@ var ProductService = /** @class */ (function (_super) {
|
|
|
131
142
|
};
|
|
132
143
|
ProductService.prototype.findById = function (params) {
|
|
133
144
|
return __awaiter(this, void 0, void 0, function () {
|
|
145
|
+
var id, query;
|
|
134
146
|
var _this = this;
|
|
135
147
|
return __generator(this, function (_a) {
|
|
148
|
+
id = params.id, query = __rest(params, ["id"]);
|
|
136
149
|
return [2 /*return*/, this.fetch({
|
|
137
150
|
uri: "/products/" + encodeURIComponent(String(params.id)),
|
|
138
151
|
method: 'GET',
|
|
139
|
-
expectedStatusCodes: [http_status_1.OK]
|
|
152
|
+
expectedStatusCodes: [http_status_1.OK],
|
|
153
|
+
qs: query
|
|
140
154
|
})
|
|
141
155
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
142
156
|
return [2 /*return*/, response.json()];
|
|
@@ -182,12 +196,14 @@ var ProductService = /** @class */ (function (_super) {
|
|
|
182
196
|
*/
|
|
183
197
|
ProductService.prototype.searchOffers = function (params) {
|
|
184
198
|
return __awaiter(this, void 0, void 0, function () {
|
|
199
|
+
var id, query;
|
|
185
200
|
var _this = this;
|
|
186
201
|
return __generator(this, function (_a) {
|
|
202
|
+
id = params.id, query = __rest(params, ["id"]);
|
|
187
203
|
return [2 /*return*/, this.fetch({
|
|
188
204
|
uri: "/products/" + encodeURIComponent(String(params.id)) + "/offers",
|
|
189
205
|
method: 'GET',
|
|
190
|
-
qs:
|
|
206
|
+
qs: query,
|
|
191
207
|
expectedStatusCodes: [http_status_1.OK]
|
|
192
208
|
})
|
|
193
209
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
@@ -50,6 +50,17 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
50
50
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
54
|
+
var t = {};
|
|
55
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
56
|
+
t[p] = s[p];
|
|
57
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
58
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
59
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
60
|
+
t[p[i]] = s[p[i]];
|
|
61
|
+
}
|
|
62
|
+
return t;
|
|
63
|
+
};
|
|
53
64
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
65
|
exports.ProjectService = void 0;
|
|
55
66
|
var http_status_1 = require("http-status");
|
|
@@ -114,12 +125,14 @@ var ProjectService = /** @class */ (function (_super) {
|
|
|
114
125
|
*/
|
|
115
126
|
ProjectService.prototype.findById = function (params) {
|
|
116
127
|
return __awaiter(this, void 0, void 0, function () {
|
|
128
|
+
var id, query;
|
|
117
129
|
var _this = this;
|
|
118
130
|
return __generator(this, function (_a) {
|
|
131
|
+
id = params.id, query = __rest(params, ["id"]);
|
|
119
132
|
return [2 /*return*/, this.fetch({
|
|
120
133
|
uri: "/projects/" + params.id,
|
|
121
134
|
method: 'GET',
|
|
122
|
-
qs:
|
|
135
|
+
qs: query,
|
|
123
136
|
expectedStatusCodes: [http_status_1.OK]
|
|
124
137
|
})
|
|
125
138
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
@@ -100,7 +100,7 @@ var ReservationService = /** @class */ (function (_super) {
|
|
|
100
100
|
return [2 /*return*/, this.fetch({
|
|
101
101
|
uri: "/reservations/" + encodeURIComponent(String(params.id)),
|
|
102
102
|
method: 'GET',
|
|
103
|
-
qs: params,
|
|
103
|
+
// qs: params,
|
|
104
104
|
expectedStatusCodes: [http_status_1.OK]
|
|
105
105
|
})
|
|
106
106
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
@@ -50,6 +50,17 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
50
50
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
54
|
+
var t = {};
|
|
55
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
56
|
+
t[p] = s[p];
|
|
57
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
58
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
59
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
60
|
+
t[p[i]] = s[p[i]];
|
|
61
|
+
}
|
|
62
|
+
return t;
|
|
63
|
+
};
|
|
53
64
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
65
|
exports.SellerService = void 0;
|
|
55
66
|
var http_status_1 = require("http-status");
|
|
@@ -86,12 +97,14 @@ var SellerService = /** @class */ (function (_super) {
|
|
|
86
97
|
*/
|
|
87
98
|
SellerService.prototype.findById = function (params) {
|
|
88
99
|
return __awaiter(this, void 0, void 0, function () {
|
|
100
|
+
var id, query;
|
|
89
101
|
var _this = this;
|
|
90
102
|
return __generator(this, function (_a) {
|
|
103
|
+
id = params.id, query = __rest(params, ["id"]);
|
|
91
104
|
return [2 /*return*/, this.fetch({
|
|
92
105
|
uri: "/sellers/" + params.id,
|
|
93
106
|
method: 'GET',
|
|
94
|
-
qs:
|
|
107
|
+
qs: query,
|
|
95
108
|
expectedStatusCodes: [http_status_1.OK]
|
|
96
109
|
})
|
|
97
110
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
@@ -50,6 +50,17 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
50
50
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
54
|
+
var t = {};
|
|
55
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
56
|
+
t[p] = s[p];
|
|
57
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
58
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
59
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
60
|
+
t[p[i]] = s[p[i]];
|
|
61
|
+
}
|
|
62
|
+
return t;
|
|
63
|
+
};
|
|
53
64
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
65
|
exports.MoneyTransferTransactionService = void 0;
|
|
55
66
|
var http_status_1 = require("http-status");
|
|
@@ -176,12 +187,14 @@ var MoneyTransferTransactionService = /** @class */ (function (_super) {
|
|
|
176
187
|
*/
|
|
177
188
|
MoneyTransferTransactionService.prototype.searchActionsByTransactionId = function (params) {
|
|
178
189
|
return __awaiter(this, void 0, void 0, function () {
|
|
190
|
+
var id, query;
|
|
179
191
|
var _this = this;
|
|
180
192
|
return __generator(this, function (_a) {
|
|
193
|
+
id = params.id, query = __rest(params, ["id"]);
|
|
181
194
|
return [2 /*return*/, this.fetch({
|
|
182
195
|
uri: "/transactions/" + this.typeOf + "/" + params.id + "/actions",
|
|
183
196
|
method: 'GET',
|
|
184
|
-
qs:
|
|
197
|
+
qs: query,
|
|
185
198
|
expectedStatusCodes: [http_status_1.OK]
|
|
186
199
|
})
|
|
187
200
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
@@ -50,6 +50,17 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
50
50
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
54
|
+
var t = {};
|
|
55
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
56
|
+
t[p] = s[p];
|
|
57
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
58
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
59
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
60
|
+
t[p[i]] = s[p[i]];
|
|
61
|
+
}
|
|
62
|
+
return t;
|
|
63
|
+
};
|
|
53
64
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
65
|
exports.PlaceOrderTransactionService = void 0;
|
|
55
66
|
var http_status_1 = require("http-status");
|
|
@@ -126,14 +137,17 @@ var PlaceOrderTransactionService = /** @class */ (function (_super) {
|
|
|
126
137
|
*/
|
|
127
138
|
PlaceOrderTransactionService.prototype.changeExpiringDate = function (params) {
|
|
128
139
|
return __awaiter(this, void 0, void 0, function () {
|
|
140
|
+
var id, body;
|
|
129
141
|
return __generator(this, function (_a) {
|
|
130
142
|
switch (_a.label) {
|
|
131
|
-
case 0:
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
143
|
+
case 0:
|
|
144
|
+
id = params.id, body = __rest(params, ["id"]);
|
|
145
|
+
return [4 /*yield*/, this.fetch({
|
|
146
|
+
uri: "/transactions/" + this.typeOf + "/" + params.id + "/expires",
|
|
147
|
+
method: 'PUT',
|
|
148
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT],
|
|
149
|
+
body: body
|
|
150
|
+
})];
|
|
137
151
|
case 1:
|
|
138
152
|
_a.sent();
|
|
139
153
|
return [2 /*return*/];
|
|
@@ -213,12 +227,14 @@ var PlaceOrderTransactionService = /** @class */ (function (_super) {
|
|
|
213
227
|
*/
|
|
214
228
|
PlaceOrderTransactionService.prototype.searchActionsByTransactionId = function (params) {
|
|
215
229
|
return __awaiter(this, void 0, void 0, function () {
|
|
230
|
+
var id, query;
|
|
216
231
|
var _this = this;
|
|
217
232
|
return __generator(this, function (_a) {
|
|
233
|
+
id = params.id, query = __rest(params, ["id"]);
|
|
218
234
|
return [2 /*return*/, this.fetch({
|
|
219
235
|
uri: "/transactions/" + this.typeOf + "/" + params.id + "/actions",
|
|
220
236
|
method: 'GET',
|
|
221
|
-
qs:
|
|
237
|
+
qs: query,
|
|
222
238
|
expectedStatusCodes: [http_status_1.OK]
|
|
223
239
|
})
|
|
224
240
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
package/lib/bundle.js
CHANGED
|
@@ -3528,6 +3528,17 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
3528
3528
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
3529
3529
|
}
|
|
3530
3530
|
};
|
|
3531
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3532
|
+
var t = {};
|
|
3533
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
3534
|
+
t[p] = s[p];
|
|
3535
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
3536
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
3537
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
3538
|
+
t[p[i]] = s[p[i]];
|
|
3539
|
+
}
|
|
3540
|
+
return t;
|
|
3541
|
+
};
|
|
3531
3542
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3532
3543
|
exports.CustomerService = void 0;
|
|
3533
3544
|
var http_status_1 = require("http-status");
|
|
@@ -3564,12 +3575,14 @@ var CustomerService = /** @class */ (function (_super) {
|
|
|
3564
3575
|
*/
|
|
3565
3576
|
CustomerService.prototype.findById = function (params) {
|
|
3566
3577
|
return __awaiter(this, void 0, void 0, function () {
|
|
3578
|
+
var id, query;
|
|
3567
3579
|
var _this = this;
|
|
3568
3580
|
return __generator(this, function (_a) {
|
|
3581
|
+
id = params.id, query = __rest(params, ["id"]);
|
|
3569
3582
|
return [2 /*return*/, this.fetch({
|
|
3570
3583
|
uri: "/customers/" + params.id,
|
|
3571
3584
|
method: 'GET',
|
|
3572
|
-
qs:
|
|
3585
|
+
qs: query,
|
|
3573
3586
|
expectedStatusCodes: [http_status_1.OK]
|
|
3574
3587
|
})
|
|
3575
3588
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
@@ -3743,7 +3756,7 @@ var EmailMessageService = /** @class */ (function (_super) {
|
|
|
3743
3756
|
return [2 /*return*/, this.fetch({
|
|
3744
3757
|
uri: "/emailMessages/" + params.id,
|
|
3745
3758
|
method: 'GET',
|
|
3746
|
-
qs: params,
|
|
3759
|
+
// qs: params,
|
|
3747
3760
|
expectedStatusCodes: [http_status_1.OK]
|
|
3748
3761
|
})
|
|
3749
3762
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
@@ -3876,6 +3889,17 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
3876
3889
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
3877
3890
|
}
|
|
3878
3891
|
};
|
|
3892
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3893
|
+
var t = {};
|
|
3894
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
3895
|
+
t[p] = s[p];
|
|
3896
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
3897
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
3898
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
3899
|
+
t[p[i]] = s[p[i]];
|
|
3900
|
+
}
|
|
3901
|
+
return t;
|
|
3902
|
+
};
|
|
3879
3903
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3880
3904
|
exports.EventService = void 0;
|
|
3881
3905
|
var http_status_1 = require("http-status");
|
|
@@ -4076,12 +4100,14 @@ var EventService = /** @class */ (function (_super) {
|
|
|
4076
4100
|
*/
|
|
4077
4101
|
EventService.prototype.searchTicketOffers = function (params) {
|
|
4078
4102
|
return __awaiter(this, void 0, void 0, function () {
|
|
4103
|
+
var id, query;
|
|
4079
4104
|
var _this = this;
|
|
4080
4105
|
return __generator(this, function (_a) {
|
|
4106
|
+
id = params.id, query = __rest(params, ["id"]);
|
|
4081
4107
|
return [2 /*return*/, this.fetch({
|
|
4082
4108
|
uri: "/events/" + encodeURIComponent(String(params.id)) + "/offers/ticket",
|
|
4083
4109
|
method: 'GET',
|
|
4084
|
-
qs:
|
|
4110
|
+
qs: query,
|
|
4085
4111
|
expectedStatusCodes: [http_status_1.OK]
|
|
4086
4112
|
})
|
|
4087
4113
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
@@ -4095,12 +4121,14 @@ var EventService = /** @class */ (function (_super) {
|
|
|
4095
4121
|
*/
|
|
4096
4122
|
EventService.prototype.searchSeats = function (params) {
|
|
4097
4123
|
return __awaiter(this, void 0, void 0, function () {
|
|
4124
|
+
var id, query;
|
|
4098
4125
|
var _this = this;
|
|
4099
4126
|
return __generator(this, function (_a) {
|
|
4127
|
+
id = params.id, query = __rest(params, ["id"]);
|
|
4100
4128
|
return [2 /*return*/, this.fetch({
|
|
4101
4129
|
uri: "/events/" + encodeURIComponent(String(params.id)) + "/seats",
|
|
4102
4130
|
method: 'GET',
|
|
4103
|
-
qs:
|
|
4131
|
+
qs: query,
|
|
4104
4132
|
expectedStatusCodes: [http_status_1.OK]
|
|
4105
4133
|
})
|
|
4106
4134
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
@@ -4175,6 +4203,17 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
4175
4203
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
4176
4204
|
}
|
|
4177
4205
|
};
|
|
4206
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
4207
|
+
var t = {};
|
|
4208
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4209
|
+
t[p] = s[p];
|
|
4210
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
4211
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
4212
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
4213
|
+
t[p[i]] = s[p[i]];
|
|
4214
|
+
}
|
|
4215
|
+
return t;
|
|
4216
|
+
};
|
|
4178
4217
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4179
4218
|
exports.IAMService = void 0;
|
|
4180
4219
|
var http_status_1 = require("http-status");
|
|
@@ -4256,14 +4295,17 @@ var IAMService = /** @class */ (function (_super) {
|
|
|
4256
4295
|
*/
|
|
4257
4296
|
IAMService.prototype.updateUserProfile = function (params) {
|
|
4258
4297
|
return __awaiter(this, void 0, void 0, function () {
|
|
4298
|
+
var id, query;
|
|
4259
4299
|
return __generator(this, function (_a) {
|
|
4260
4300
|
switch (_a.label) {
|
|
4261
|
-
case 0:
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
4301
|
+
case 0:
|
|
4302
|
+
id = params.id, query = __rest(params, ["id"]);
|
|
4303
|
+
return [4 /*yield*/, this.fetch({
|
|
4304
|
+
uri: "/iam/users/" + params.id + "/profile",
|
|
4305
|
+
method: 'PATCH',
|
|
4306
|
+
body: query,
|
|
4307
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
4308
|
+
})];
|
|
4267
4309
|
case 1:
|
|
4268
4310
|
_a.sent();
|
|
4269
4311
|
return [2 /*return*/];
|
|
@@ -4764,6 +4806,17 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
4764
4806
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
4765
4807
|
}
|
|
4766
4808
|
};
|
|
4809
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
4810
|
+
var t = {};
|
|
4811
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4812
|
+
t[p] = s[p];
|
|
4813
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
4814
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
4815
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
4816
|
+
t[p[i]] = s[p[i]];
|
|
4817
|
+
}
|
|
4818
|
+
return t;
|
|
4819
|
+
};
|
|
4767
4820
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4768
4821
|
exports.OfferService = exports.FlgMember = void 0;
|
|
4769
4822
|
var http_status_1 = require("http-status");
|
|
@@ -4933,14 +4986,17 @@ var OfferService = /** @class */ (function (_super) {
|
|
|
4933
4986
|
*/
|
|
4934
4987
|
OfferService.prototype.voidAuthorization = function (params) {
|
|
4935
4988
|
return __awaiter(this, void 0, void 0, function () {
|
|
4989
|
+
var id, object, body;
|
|
4936
4990
|
return __generator(this, function (_a) {
|
|
4937
4991
|
switch (_a.label) {
|
|
4938
|
-
case 0:
|
|
4939
|
-
|
|
4940
|
-
|
|
4941
|
-
|
|
4942
|
-
|
|
4943
|
-
|
|
4992
|
+
case 0:
|
|
4993
|
+
id = params.id, object = params.object, body = __rest(params, ["id", "object"]);
|
|
4994
|
+
return [4 /*yield*/, this.fetch({
|
|
4995
|
+
uri: "/offers/" + params.object.itemOffered.typeOf + "/authorize/" + params.id + "/void",
|
|
4996
|
+
method: 'PUT',
|
|
4997
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT],
|
|
4998
|
+
body: body
|
|
4999
|
+
})];
|
|
4944
5000
|
case 1:
|
|
4945
5001
|
_a.sent();
|
|
4946
5002
|
return [2 /*return*/];
|
|
@@ -4972,13 +5028,15 @@ var OfferService = /** @class */ (function (_super) {
|
|
|
4972
5028
|
*/
|
|
4973
5029
|
OfferService.prototype.voidAuthorizationByCOA = function (params) {
|
|
4974
5030
|
return __awaiter(this, void 0, void 0, function () {
|
|
5031
|
+
var id, body;
|
|
4975
5032
|
var _this = this;
|
|
4976
5033
|
return __generator(this, function (_a) {
|
|
5034
|
+
id = params.id, body = __rest(params, ["id"]);
|
|
4977
5035
|
return [2 /*return*/, this.fetch({
|
|
4978
5036
|
uri: "/offers/" + factory.product.ProductType.EventService + "ByCOA/authorize/" + params.id + "/void",
|
|
4979
5037
|
method: 'PUT',
|
|
4980
5038
|
expectedStatusCodes: [http_status_1.OK],
|
|
4981
|
-
body:
|
|
5039
|
+
body: body
|
|
4982
5040
|
})
|
|
4983
5041
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
4984
5042
|
return [2 /*return*/, response.json()];
|
|
@@ -4991,13 +5049,15 @@ var OfferService = /** @class */ (function (_super) {
|
|
|
4991
5049
|
*/
|
|
4992
5050
|
OfferService.prototype.updateEventServiceByCOA = function (params) {
|
|
4993
5051
|
return __awaiter(this, void 0, void 0, function () {
|
|
5052
|
+
var id, body;
|
|
4994
5053
|
var _this = this;
|
|
4995
5054
|
return __generator(this, function (_a) {
|
|
5055
|
+
id = params.id, body = __rest(params, ["id"]);
|
|
4996
5056
|
return [2 /*return*/, this.fetch({
|
|
4997
5057
|
uri: "/offers/" + factory.product.ProductType.EventService + "ByCOA/authorize/" + params.id,
|
|
4998
5058
|
method: 'PATCH',
|
|
4999
5059
|
expectedStatusCodes: [http_status_1.OK],
|
|
5000
|
-
body:
|
|
5060
|
+
body: body
|
|
5001
5061
|
})
|
|
5002
5062
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
5003
5063
|
return [2 /*return*/, response.json()];
|
|
@@ -5062,6 +5122,17 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
5062
5122
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
5063
5123
|
}
|
|
5064
5124
|
};
|
|
5125
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
5126
|
+
var t = {};
|
|
5127
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5128
|
+
t[p] = s[p];
|
|
5129
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
5130
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
5131
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
5132
|
+
t[p[i]] = s[p[i]];
|
|
5133
|
+
}
|
|
5134
|
+
return t;
|
|
5135
|
+
};
|
|
5065
5136
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5066
5137
|
exports.OfferCatalogService = void 0;
|
|
5067
5138
|
var http_status_1 = require("http-status");
|
|
@@ -5183,12 +5254,14 @@ var OfferCatalogService = /** @class */ (function (_super) {
|
|
|
5183
5254
|
};
|
|
5184
5255
|
OfferCatalogService.prototype.searchItemListElement = function (params) {
|
|
5185
5256
|
return __awaiter(this, void 0, void 0, function () {
|
|
5257
|
+
var id, query;
|
|
5186
5258
|
var _this = this;
|
|
5187
5259
|
return __generator(this, function (_a) {
|
|
5260
|
+
id = params.id, query = __rest(params, ["id"]);
|
|
5188
5261
|
return [2 /*return*/, this.fetch({
|
|
5189
5262
|
uri: "/offerCatalogs/" + encodeURIComponent(String(params.id)) + "/itemListElement",
|
|
5190
5263
|
method: 'GET',
|
|
5191
|
-
qs:
|
|
5264
|
+
qs: query,
|
|
5192
5265
|
expectedStatusCodes: [http_status_1.OK]
|
|
5193
5266
|
})
|
|
5194
5267
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
@@ -5845,6 +5918,17 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
5845
5918
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
5846
5919
|
}
|
|
5847
5920
|
};
|
|
5921
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
5922
|
+
var t = {};
|
|
5923
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5924
|
+
t[p] = s[p];
|
|
5925
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
5926
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
5927
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
5928
|
+
t[p[i]] = s[p[i]];
|
|
5929
|
+
}
|
|
5930
|
+
return t;
|
|
5931
|
+
};
|
|
5848
5932
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5849
5933
|
exports.PaymentService = void 0;
|
|
5850
5934
|
var http_status_1 = require("http-status");
|
|
@@ -5978,14 +6062,17 @@ var PaymentService = /** @class */ (function (_super) {
|
|
|
5978
6062
|
*/
|
|
5979
6063
|
PaymentService.prototype.voidAnyPayment = function (params) {
|
|
5980
6064
|
return __awaiter(this, void 0, void 0, function () {
|
|
6065
|
+
var id, body;
|
|
5981
6066
|
return __generator(this, function (_a) {
|
|
5982
6067
|
switch (_a.label) {
|
|
5983
|
-
case 0:
|
|
5984
|
-
|
|
5985
|
-
|
|
5986
|
-
|
|
5987
|
-
|
|
5988
|
-
|
|
6068
|
+
case 0:
|
|
6069
|
+
id = params.id, body = __rest(params, ["id"]);
|
|
6070
|
+
return [4 /*yield*/, this.fetch({
|
|
6071
|
+
uri: "/payment/" + factory.service.paymentService.PaymentServiceType.FaceToFace + "/authorize/" + params.id + "/void",
|
|
6072
|
+
method: 'PUT',
|
|
6073
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT],
|
|
6074
|
+
body: body
|
|
6075
|
+
})];
|
|
5989
6076
|
case 1:
|
|
5990
6077
|
_a.sent();
|
|
5991
6078
|
return [2 /*return*/];
|
|
@@ -5998,14 +6085,17 @@ var PaymentService = /** @class */ (function (_super) {
|
|
|
5998
6085
|
*/
|
|
5999
6086
|
PaymentService.prototype.voidTransaction = function (params) {
|
|
6000
6087
|
return __awaiter(this, void 0, void 0, function () {
|
|
6088
|
+
var id, object, body;
|
|
6001
6089
|
return __generator(this, function (_a) {
|
|
6002
6090
|
switch (_a.label) {
|
|
6003
|
-
case 0:
|
|
6004
|
-
|
|
6005
|
-
|
|
6006
|
-
|
|
6007
|
-
|
|
6008
|
-
|
|
6091
|
+
case 0:
|
|
6092
|
+
id = params.id, object = params.object, body = __rest(params, ["id", "object"]);
|
|
6093
|
+
return [4 /*yield*/, this.fetch({
|
|
6094
|
+
uri: "/payment/" + params.object.typeOf + "/authorize/" + params.id + "/void",
|
|
6095
|
+
method: 'PUT',
|
|
6096
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT],
|
|
6097
|
+
body: body
|
|
6098
|
+
})];
|
|
6009
6099
|
case 1:
|
|
6010
6100
|
_a.sent();
|
|
6011
6101
|
return [2 /*return*/];
|
|
@@ -7370,6 +7460,17 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
7370
7460
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
7371
7461
|
}
|
|
7372
7462
|
};
|
|
7463
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
7464
|
+
var t = {};
|
|
7465
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
7466
|
+
t[p] = s[p];
|
|
7467
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7468
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7469
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
7470
|
+
t[p[i]] = s[p[i]];
|
|
7471
|
+
}
|
|
7472
|
+
return t;
|
|
7473
|
+
};
|
|
7373
7474
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7374
7475
|
exports.ProductService = void 0;
|
|
7375
7476
|
var http_status_1 = require("http-status");
|
|
@@ -7451,12 +7552,15 @@ var ProductService = /** @class */ (function (_super) {
|
|
|
7451
7552
|
};
|
|
7452
7553
|
ProductService.prototype.findById = function (params) {
|
|
7453
7554
|
return __awaiter(this, void 0, void 0, function () {
|
|
7555
|
+
var id, query;
|
|
7454
7556
|
var _this = this;
|
|
7455
7557
|
return __generator(this, function (_a) {
|
|
7558
|
+
id = params.id, query = __rest(params, ["id"]);
|
|
7456
7559
|
return [2 /*return*/, this.fetch({
|
|
7457
7560
|
uri: "/products/" + encodeURIComponent(String(params.id)),
|
|
7458
7561
|
method: 'GET',
|
|
7459
|
-
expectedStatusCodes: [http_status_1.OK]
|
|
7562
|
+
expectedStatusCodes: [http_status_1.OK],
|
|
7563
|
+
qs: query
|
|
7460
7564
|
})
|
|
7461
7565
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
7462
7566
|
return [2 /*return*/, response.json()];
|
|
@@ -7502,12 +7606,14 @@ var ProductService = /** @class */ (function (_super) {
|
|
|
7502
7606
|
*/
|
|
7503
7607
|
ProductService.prototype.searchOffers = function (params) {
|
|
7504
7608
|
return __awaiter(this, void 0, void 0, function () {
|
|
7609
|
+
var id, query;
|
|
7505
7610
|
var _this = this;
|
|
7506
7611
|
return __generator(this, function (_a) {
|
|
7612
|
+
id = params.id, query = __rest(params, ["id"]);
|
|
7507
7613
|
return [2 /*return*/, this.fetch({
|
|
7508
7614
|
uri: "/products/" + encodeURIComponent(String(params.id)) + "/offers",
|
|
7509
7615
|
method: 'GET',
|
|
7510
|
-
qs:
|
|
7616
|
+
qs: query,
|
|
7511
7617
|
expectedStatusCodes: [http_status_1.OK]
|
|
7512
7618
|
})
|
|
7513
7619
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
@@ -7573,6 +7679,17 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
7573
7679
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
7574
7680
|
}
|
|
7575
7681
|
};
|
|
7682
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
7683
|
+
var t = {};
|
|
7684
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
7685
|
+
t[p] = s[p];
|
|
7686
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7687
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7688
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
7689
|
+
t[p[i]] = s[p[i]];
|
|
7690
|
+
}
|
|
7691
|
+
return t;
|
|
7692
|
+
};
|
|
7576
7693
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7577
7694
|
exports.ProjectService = void 0;
|
|
7578
7695
|
var http_status_1 = require("http-status");
|
|
@@ -7637,12 +7754,14 @@ var ProjectService = /** @class */ (function (_super) {
|
|
|
7637
7754
|
*/
|
|
7638
7755
|
ProjectService.prototype.findById = function (params) {
|
|
7639
7756
|
return __awaiter(this, void 0, void 0, function () {
|
|
7757
|
+
var id, query;
|
|
7640
7758
|
var _this = this;
|
|
7641
7759
|
return __generator(this, function (_a) {
|
|
7760
|
+
id = params.id, query = __rest(params, ["id"]);
|
|
7642
7761
|
return [2 /*return*/, this.fetch({
|
|
7643
7762
|
uri: "/projects/" + params.id,
|
|
7644
7763
|
method: 'GET',
|
|
7645
|
-
qs:
|
|
7764
|
+
qs: query,
|
|
7646
7765
|
expectedStatusCodes: [http_status_1.OK]
|
|
7647
7766
|
})
|
|
7648
7767
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
@@ -7847,7 +7966,7 @@ var ReservationService = /** @class */ (function (_super) {
|
|
|
7847
7966
|
return [2 /*return*/, this.fetch({
|
|
7848
7967
|
uri: "/reservations/" + encodeURIComponent(String(params.id)),
|
|
7849
7968
|
method: 'GET',
|
|
7850
|
-
qs: params,
|
|
7969
|
+
// qs: params,
|
|
7851
7970
|
expectedStatusCodes: [http_status_1.OK]
|
|
7852
7971
|
})
|
|
7853
7972
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
@@ -7991,6 +8110,17 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
7991
8110
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
7992
8111
|
}
|
|
7993
8112
|
};
|
|
8113
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
8114
|
+
var t = {};
|
|
8115
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
8116
|
+
t[p] = s[p];
|
|
8117
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
8118
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8119
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8120
|
+
t[p[i]] = s[p[i]];
|
|
8121
|
+
}
|
|
8122
|
+
return t;
|
|
8123
|
+
};
|
|
7994
8124
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7995
8125
|
exports.SellerService = void 0;
|
|
7996
8126
|
var http_status_1 = require("http-status");
|
|
@@ -8027,12 +8157,14 @@ var SellerService = /** @class */ (function (_super) {
|
|
|
8027
8157
|
*/
|
|
8028
8158
|
SellerService.prototype.findById = function (params) {
|
|
8029
8159
|
return __awaiter(this, void 0, void 0, function () {
|
|
8160
|
+
var id, query;
|
|
8030
8161
|
var _this = this;
|
|
8031
8162
|
return __generator(this, function (_a) {
|
|
8163
|
+
id = params.id, query = __rest(params, ["id"]);
|
|
8032
8164
|
return [2 /*return*/, this.fetch({
|
|
8033
8165
|
uri: "/sellers/" + params.id,
|
|
8034
8166
|
method: 'GET',
|
|
8035
|
-
qs:
|
|
8167
|
+
qs: query,
|
|
8036
8168
|
expectedStatusCodes: [http_status_1.OK]
|
|
8037
8169
|
})
|
|
8038
8170
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
@@ -8387,6 +8519,17 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
8387
8519
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
8388
8520
|
}
|
|
8389
8521
|
};
|
|
8522
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
8523
|
+
var t = {};
|
|
8524
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
8525
|
+
t[p] = s[p];
|
|
8526
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
8527
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8528
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8529
|
+
t[p[i]] = s[p[i]];
|
|
8530
|
+
}
|
|
8531
|
+
return t;
|
|
8532
|
+
};
|
|
8390
8533
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8391
8534
|
exports.MoneyTransferTransactionService = void 0;
|
|
8392
8535
|
var http_status_1 = require("http-status");
|
|
@@ -8513,12 +8656,14 @@ var MoneyTransferTransactionService = /** @class */ (function (_super) {
|
|
|
8513
8656
|
*/
|
|
8514
8657
|
MoneyTransferTransactionService.prototype.searchActionsByTransactionId = function (params) {
|
|
8515
8658
|
return __awaiter(this, void 0, void 0, function () {
|
|
8659
|
+
var id, query;
|
|
8516
8660
|
var _this = this;
|
|
8517
8661
|
return __generator(this, function (_a) {
|
|
8662
|
+
id = params.id, query = __rest(params, ["id"]);
|
|
8518
8663
|
return [2 /*return*/, this.fetch({
|
|
8519
8664
|
uri: "/transactions/" + this.typeOf + "/" + params.id + "/actions",
|
|
8520
8665
|
method: 'GET',
|
|
8521
|
-
qs:
|
|
8666
|
+
qs: query,
|
|
8522
8667
|
expectedStatusCodes: [http_status_1.OK]
|
|
8523
8668
|
})
|
|
8524
8669
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
@@ -8584,6 +8729,17 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
8584
8729
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
8585
8730
|
}
|
|
8586
8731
|
};
|
|
8732
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
8733
|
+
var t = {};
|
|
8734
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
8735
|
+
t[p] = s[p];
|
|
8736
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
8737
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8738
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8739
|
+
t[p[i]] = s[p[i]];
|
|
8740
|
+
}
|
|
8741
|
+
return t;
|
|
8742
|
+
};
|
|
8587
8743
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8588
8744
|
exports.PlaceOrderTransactionService = void 0;
|
|
8589
8745
|
var http_status_1 = require("http-status");
|
|
@@ -8660,14 +8816,17 @@ var PlaceOrderTransactionService = /** @class */ (function (_super) {
|
|
|
8660
8816
|
*/
|
|
8661
8817
|
PlaceOrderTransactionService.prototype.changeExpiringDate = function (params) {
|
|
8662
8818
|
return __awaiter(this, void 0, void 0, function () {
|
|
8819
|
+
var id, body;
|
|
8663
8820
|
return __generator(this, function (_a) {
|
|
8664
8821
|
switch (_a.label) {
|
|
8665
|
-
case 0:
|
|
8666
|
-
|
|
8667
|
-
|
|
8668
|
-
|
|
8669
|
-
|
|
8670
|
-
|
|
8822
|
+
case 0:
|
|
8823
|
+
id = params.id, body = __rest(params, ["id"]);
|
|
8824
|
+
return [4 /*yield*/, this.fetch({
|
|
8825
|
+
uri: "/transactions/" + this.typeOf + "/" + params.id + "/expires",
|
|
8826
|
+
method: 'PUT',
|
|
8827
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT],
|
|
8828
|
+
body: body
|
|
8829
|
+
})];
|
|
8671
8830
|
case 1:
|
|
8672
8831
|
_a.sent();
|
|
8673
8832
|
return [2 /*return*/];
|
|
@@ -8747,12 +8906,14 @@ var PlaceOrderTransactionService = /** @class */ (function (_super) {
|
|
|
8747
8906
|
*/
|
|
8748
8907
|
PlaceOrderTransactionService.prototype.searchActionsByTransactionId = function (params) {
|
|
8749
8908
|
return __awaiter(this, void 0, void 0, function () {
|
|
8909
|
+
var id, query;
|
|
8750
8910
|
var _this = this;
|
|
8751
8911
|
return __generator(this, function (_a) {
|
|
8912
|
+
id = params.id, query = __rest(params, ["id"]);
|
|
8752
8913
|
return [2 /*return*/, this.fetch({
|
|
8753
8914
|
uri: "/transactions/" + this.typeOf + "/" + params.id + "/actions",
|
|
8754
8915
|
method: 'GET',
|
|
8755
|
-
qs:
|
|
8916
|
+
qs: query,
|
|
8756
8917
|
expectedStatusCodes: [http_status_1.OK]
|
|
8757
8918
|
})
|
|
8758
8919
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|