@lcdp/api-react-rest-client 3.0.4-LDS-4910-rde2e-mettre-a-jour-les-tests.20373226962 → 3.0.5

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.
@@ -75,89 +75,13 @@ var ManageCartSubCartLineApi = /** @class */ (function (_super) {
75
75
  function ManageCartSubCartLineApi() {
76
76
  return _super !== null && _super.apply(this, arguments) || this;
77
77
  }
78
- /**
79
- * If Sale Offer from \'offerReference\' is a distribution type \'RANGE\', then distributedRangeId should not be null. In any case, \'quantity\' field should be >= 0
80
- * Create or update a cart line if its already exist
81
- */
82
- ManageCartSubCartLineApi.prototype.createOrUpdateCartSubCartLinesRaw = function (requestParameters, initOverrides) {
83
- return __awaiter(this, void 0, void 0, function () {
84
- var queryParameters, headerParameters, _a, _b, token, tokenString, response, response_1;
85
- return __generator(this, function (_c) {
86
- switch (_c.label) {
87
- case 0:
88
- if (requestParameters['cartId'] == null) {
89
- throw new runtime.RequiredError('cartId', 'Required parameter "cartId" was null or undefined when calling createOrUpdateCartSubCartLines().');
90
- }
91
- if (requestParameters['subCartId'] == null) {
92
- throw new runtime.RequiredError('subCartId', 'Required parameter "subCartId" was null or undefined when calling createOrUpdateCartSubCartLines().');
93
- }
94
- if (requestParameters['shoppedOffer'] == null) {
95
- throw new runtime.RequiredError('shoppedOffer', 'Required parameter "shoppedOffer" was null or undefined when calling createOrUpdateCartSubCartLines().');
96
- }
97
- queryParameters = {};
98
- headerParameters = {};
99
- headerParameters['Content-Type'] = 'application/json';
100
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
101
- _a = headerParameters;
102
- _b = "x-api-key";
103
- return [4 /*yield*/, this.configuration.apiKey("x-api-key")];
104
- case 1:
105
- _a[_b] = _c.sent(); // apiKeyAuth authentication
106
- _c.label = 2;
107
- case 2:
108
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
109
- token = this.configuration.accessToken;
110
- return [4 /*yield*/, token("bearerAuth", [])];
111
- case 3:
112
- tokenString = _c.sent();
113
- if (tokenString) {
114
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
115
- }
116
- _c.label = 4;
117
- case 4:
118
- _c.trys.push([4, 6, , 7]);
119
- return [4 /*yield*/, this.request({
120
- path: "/carts/{cartId}/sub-carts/{subCartId}/lines".replace("{".concat("cartId", "}"), encodeURIComponent(String(requestParameters['cartId']))).replace("{".concat("subCartId", "}"), encodeURIComponent(String(requestParameters['subCartId']))),
121
- method: 'POST',
122
- headers: headerParameters,
123
- query: queryParameters,
124
- body: (0, index_1.ShoppedOfferToJSON)(requestParameters['shoppedOffer']),
125
- }, initOverrides)];
126
- case 5:
127
- response = _c.sent();
128
- return [2 /*return*/, new runtime.VoidApiResponse(response)];
129
- case 6:
130
- response_1 = _c.sent();
131
- console.debug(response_1);
132
- throw response_1;
133
- case 7: return [2 /*return*/];
134
- }
135
- });
136
- });
137
- };
138
- /**
139
- * If Sale Offer from \'offerReference\' is a distribution type \'RANGE\', then distributedRangeId should not be null. In any case, \'quantity\' field should be >= 0
140
- * Create or update a cart line if its already exist
141
- */
142
- ManageCartSubCartLineApi.prototype.createOrUpdateCartSubCartLines = function (requestParameters, initOverrides) {
143
- return __awaiter(this, void 0, void 0, function () {
144
- return __generator(this, function (_a) {
145
- switch (_a.label) {
146
- case 0: return [4 /*yield*/, this.createOrUpdateCartSubCartLinesRaw(requestParameters, initOverrides)];
147
- case 1:
148
- _a.sent();
149
- return [2 /*return*/];
150
- }
151
- });
152
- });
153
- };
154
78
  /**
155
79
  * If Sale Offer from \'offerReference\' is a distribution type \'RANGE\', then distributedRangeId should not be null. In any case, \'quantity\' field should be >= 0
156
80
  * Create or update a cart line if its already exist
157
81
  */
158
82
  ManageCartSubCartLineApi.prototype.createOrUpdateCurrentCartSubCartLinesRaw = function (requestParameters, initOverrides) {
159
83
  return __awaiter(this, void 0, void 0, function () {
160
- var queryParameters, headerParameters, _a, _b, token, tokenString, response, response_2;
84
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response, response_1;
161
85
  return __generator(this, function (_c) {
162
86
  switch (_c.label) {
163
87
  case 0:
@@ -200,9 +124,9 @@ var ManageCartSubCartLineApi = /** @class */ (function (_super) {
200
124
  response = _c.sent();
201
125
  return [2 /*return*/, new runtime.VoidApiResponse(response)];
202
126
  case 6:
203
- response_2 = _c.sent();
204
- console.debug(response_2);
205
- throw response_2;
127
+ response_1 = _c.sent();
128
+ console.debug(response_1);
129
+ throw response_1;
206
130
  case 7: return [2 /*return*/];
207
131
  }
208
132
  });
@@ -224,87 +148,13 @@ var ManageCartSubCartLineApi = /** @class */ (function (_super) {
224
148
  });
225
149
  });
226
150
  };
227
- /**
228
- * Permit to delete a shopping cart line who is in current user shopping cart
229
- * Delete user cart line
230
- */
231
- ManageCartSubCartLineApi.prototype.deleteCartSubCartLineRaw = function (requestParameters, initOverrides) {
232
- return __awaiter(this, void 0, void 0, function () {
233
- var queryParameters, headerParameters, _a, _b, token, tokenString, response, response_3;
234
- return __generator(this, function (_c) {
235
- switch (_c.label) {
236
- case 0:
237
- if (requestParameters['cartId'] == null) {
238
- throw new runtime.RequiredError('cartId', 'Required parameter "cartId" was null or undefined when calling deleteCartSubCartLine().');
239
- }
240
- if (requestParameters['subCartId'] == null) {
241
- throw new runtime.RequiredError('subCartId', 'Required parameter "subCartId" was null or undefined when calling deleteCartSubCartLine().');
242
- }
243
- if (requestParameters['lineId'] == null) {
244
- throw new runtime.RequiredError('lineId', 'Required parameter "lineId" was null or undefined when calling deleteCartSubCartLine().');
245
- }
246
- queryParameters = {};
247
- headerParameters = {};
248
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
249
- _a = headerParameters;
250
- _b = "x-api-key";
251
- return [4 /*yield*/, this.configuration.apiKey("x-api-key")];
252
- case 1:
253
- _a[_b] = _c.sent(); // apiKeyAuth authentication
254
- _c.label = 2;
255
- case 2:
256
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
257
- token = this.configuration.accessToken;
258
- return [4 /*yield*/, token("bearerAuth", [])];
259
- case 3:
260
- tokenString = _c.sent();
261
- if (tokenString) {
262
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
263
- }
264
- _c.label = 4;
265
- case 4:
266
- _c.trys.push([4, 6, , 7]);
267
- return [4 /*yield*/, this.request({
268
- path: "/carts/{cartId}/sub-carts/{subCartId}/lines/{lineId}".replace("{".concat("cartId", "}"), encodeURIComponent(String(requestParameters['cartId']))).replace("{".concat("subCartId", "}"), encodeURIComponent(String(requestParameters['subCartId']))).replace("{".concat("lineId", "}"), encodeURIComponent(String(requestParameters['lineId']))),
269
- method: 'DELETE',
270
- headers: headerParameters,
271
- query: queryParameters,
272
- }, initOverrides)];
273
- case 5:
274
- response = _c.sent();
275
- return [2 /*return*/, new runtime.VoidApiResponse(response)];
276
- case 6:
277
- response_3 = _c.sent();
278
- console.debug(response_3);
279
- throw response_3;
280
- case 7: return [2 /*return*/];
281
- }
282
- });
283
- });
284
- };
285
- /**
286
- * Permit to delete a shopping cart line who is in current user shopping cart
287
- * Delete user cart line
288
- */
289
- ManageCartSubCartLineApi.prototype.deleteCartSubCartLine = function (requestParameters, initOverrides) {
290
- return __awaiter(this, void 0, void 0, function () {
291
- return __generator(this, function (_a) {
292
- switch (_a.label) {
293
- case 0: return [4 /*yield*/, this.deleteCartSubCartLineRaw(requestParameters, initOverrides)];
294
- case 1:
295
- _a.sent();
296
- return [2 /*return*/];
297
- }
298
- });
299
- });
300
- };
301
151
  /**
302
152
  * Permit to delete a shopping cart line who is in current user shopping cart
303
153
  * Delete user cart line
304
154
  */
305
155
  ManageCartSubCartLineApi.prototype.deleteCurrentCartSubCartLineRaw = function (requestParameters, initOverrides) {
306
156
  return __awaiter(this, void 0, void 0, function () {
307
- var queryParameters, headerParameters, _a, _b, token, tokenString, response, response_4;
157
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response, response_2;
308
158
  return __generator(this, function (_c) {
309
159
  switch (_c.label) {
310
160
  case 0:
@@ -345,9 +195,9 @@ var ManageCartSubCartLineApi = /** @class */ (function (_super) {
345
195
  response = _c.sent();
346
196
  return [2 /*return*/, new runtime.VoidApiResponse(response)];
347
197
  case 6:
348
- response_4 = _c.sent();
349
- console.debug(response_4);
350
- throw response_4;
198
+ response_2 = _c.sent();
199
+ console.debug(response_2);
200
+ throw response_2;
351
201
  case 7: return [2 /*return*/];
352
202
  }
353
203
  });
@@ -369,179 +219,12 @@ var ManageCartSubCartLineApi = /** @class */ (function (_super) {
369
219
  });
370
220
  });
371
221
  };
372
- /**
373
- * Get user cart line
374
- */
375
- ManageCartSubCartLineApi.prototype.getCartSubCartLineRaw = function (requestParameters, initOverrides) {
376
- return __awaiter(this, void 0, void 0, function () {
377
- var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType, response_5;
378
- return __generator(this, function (_c) {
379
- switch (_c.label) {
380
- case 0:
381
- if (requestParameters['cartId'] == null) {
382
- throw new runtime.RequiredError('cartId', 'Required parameter "cartId" was null or undefined when calling getCartSubCartLine().');
383
- }
384
- if (requestParameters['subCartId'] == null) {
385
- throw new runtime.RequiredError('subCartId', 'Required parameter "subCartId" was null or undefined when calling getCartSubCartLine().');
386
- }
387
- if (requestParameters['lineId'] == null) {
388
- throw new runtime.RequiredError('lineId', 'Required parameter "lineId" was null or undefined when calling getCartSubCartLine().');
389
- }
390
- queryParameters = {};
391
- headerParameters = {};
392
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
393
- _a = headerParameters;
394
- _b = "x-api-key";
395
- return [4 /*yield*/, this.configuration.apiKey("x-api-key")];
396
- case 1:
397
- _a[_b] = _c.sent(); // apiKeyAuth authentication
398
- _c.label = 2;
399
- case 2:
400
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
401
- token = this.configuration.accessToken;
402
- return [4 /*yield*/, token("bearerAuth", [])];
403
- case 3:
404
- tokenString = _c.sent();
405
- if (tokenString) {
406
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
407
- }
408
- _c.label = 4;
409
- case 4:
410
- _c.trys.push([4, 6, , 7]);
411
- return [4 /*yield*/, this.request({
412
- path: "/carts/{cartId}/sub-carts/{subCartId}/lines/{lineId}".replace("{".concat("cartId", "}"), encodeURIComponent(String(requestParameters['cartId']))).replace("{".concat("subCartId", "}"), encodeURIComponent(String(requestParameters['subCartId']))).replace("{".concat("lineId", "}"), encodeURIComponent(String(requestParameters['lineId']))),
413
- method: 'GET',
414
- headers: headerParameters,
415
- query: queryParameters,
416
- }, initOverrides)];
417
- case 5:
418
- response = _c.sent();
419
- contentType = response.headers.get("content-type");
420
- if (contentType && contentType.indexOf("application/json") !== -1) {
421
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.CartSubCartLineFromJSON)(jsonValue); })];
422
- }
423
- else if (contentType && contentType.indexOf("text/plain") !== -1) {
424
- return [2 /*return*/, new runtime.TextApiResponse(response)];
425
- }
426
- else {
427
- // TODO : Better handling of others application types
428
- return [2 /*return*/, new runtime.BlobWithMetaApiResponse(response)];
429
- }
430
- return [3 /*break*/, 7];
431
- case 6:
432
- response_5 = _c.sent();
433
- console.debug(response_5);
434
- throw response_5;
435
- case 7: return [2 /*return*/];
436
- }
437
- });
438
- });
439
- };
440
- /**
441
- * Get user cart line
442
- */
443
- ManageCartSubCartLineApi.prototype.getCartSubCartLine = function (requestParameters, initOverrides) {
444
- return __awaiter(this, void 0, void 0, function () {
445
- var response;
446
- return __generator(this, function (_a) {
447
- switch (_a.label) {
448
- case 0: return [4 /*yield*/, this.getCartSubCartLineRaw(requestParameters, initOverrides)];
449
- case 1:
450
- response = _a.sent();
451
- return [4 /*yield*/, response.value()];
452
- case 2: return [2 /*return*/, _a.sent()];
453
- }
454
- });
455
- });
456
- };
457
- /**
458
- * Get all cart lines for a SubCart
459
- */
460
- ManageCartSubCartLineApi.prototype.getCartSubCartLinesRaw = function (requestParameters, initOverrides) {
461
- return __awaiter(this, void 0, void 0, function () {
462
- var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType, response_6;
463
- return __generator(this, function (_c) {
464
- switch (_c.label) {
465
- case 0:
466
- if (requestParameters['cartId'] == null) {
467
- throw new runtime.RequiredError('cartId', 'Required parameter "cartId" was null or undefined when calling getCartSubCartLines().');
468
- }
469
- if (requestParameters['subCartId'] == null) {
470
- throw new runtime.RequiredError('subCartId', 'Required parameter "subCartId" was null or undefined when calling getCartSubCartLines().');
471
- }
472
- queryParameters = {};
473
- headerParameters = {};
474
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
475
- _a = headerParameters;
476
- _b = "x-api-key";
477
- return [4 /*yield*/, this.configuration.apiKey("x-api-key")];
478
- case 1:
479
- _a[_b] = _c.sent(); // apiKeyAuth authentication
480
- _c.label = 2;
481
- case 2:
482
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
483
- token = this.configuration.accessToken;
484
- return [4 /*yield*/, token("bearerAuth", [])];
485
- case 3:
486
- tokenString = _c.sent();
487
- if (tokenString) {
488
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
489
- }
490
- _c.label = 4;
491
- case 4:
492
- _c.trys.push([4, 6, , 7]);
493
- return [4 /*yield*/, this.request({
494
- path: "/carts/{cartId}/sub-carts/{subCartId}/lines".replace("{".concat("cartId", "}"), encodeURIComponent(String(requestParameters['cartId']))).replace("{".concat("subCartId", "}"), encodeURIComponent(String(requestParameters['subCartId']))),
495
- method: 'GET',
496
- headers: headerParameters,
497
- query: queryParameters,
498
- }, initOverrides)];
499
- case 5:
500
- response = _c.sent();
501
- contentType = response.headers.get("content-type");
502
- if (contentType && contentType.indexOf("application/json") !== -1) {
503
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.CartSubCartLineFromJSON); })];
504
- }
505
- else if (contentType && contentType.indexOf("text/plain") !== -1) {
506
- return [2 /*return*/, new runtime.TextApiResponse(response)];
507
- }
508
- else {
509
- // TODO : Better handling of others application types
510
- return [2 /*return*/, new runtime.BlobWithMetaApiResponse(response)];
511
- }
512
- return [3 /*break*/, 7];
513
- case 6:
514
- response_6 = _c.sent();
515
- console.debug(response_6);
516
- throw response_6;
517
- case 7: return [2 /*return*/];
518
- }
519
- });
520
- });
521
- };
522
- /**
523
- * Get all cart lines for a SubCart
524
- */
525
- ManageCartSubCartLineApi.prototype.getCartSubCartLines = function (requestParameters, initOverrides) {
526
- return __awaiter(this, void 0, void 0, function () {
527
- var response;
528
- return __generator(this, function (_a) {
529
- switch (_a.label) {
530
- case 0: return [4 /*yield*/, this.getCartSubCartLinesRaw(requestParameters, initOverrides)];
531
- case 1:
532
- response = _a.sent();
533
- return [4 /*yield*/, response.value()];
534
- case 2: return [2 /*return*/, _a.sent()];
535
- }
536
- });
537
- });
538
- };
539
222
  /**
540
223
  * Get user cart line
541
224
  */
542
225
  ManageCartSubCartLineApi.prototype.getCurrentCartSubCartLineRaw = function (requestParameters, initOverrides) {
543
226
  return __awaiter(this, void 0, void 0, function () {
544
- var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType, response_7;
227
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType, response_3;
545
228
  return __generator(this, function (_c) {
546
229
  switch (_c.label) {
547
230
  case 0:
@@ -593,9 +276,9 @@ var ManageCartSubCartLineApi = /** @class */ (function (_super) {
593
276
  }
594
277
  return [3 /*break*/, 7];
595
278
  case 6:
596
- response_7 = _c.sent();
597
- console.debug(response_7);
598
- throw response_7;
279
+ response_3 = _c.sent();
280
+ console.debug(response_3);
281
+ throw response_3;
599
282
  case 7: return [2 /*return*/];
600
283
  }
601
284
  });
@@ -623,7 +306,7 @@ var ManageCartSubCartLineApi = /** @class */ (function (_super) {
623
306
  */
624
307
  ManageCartSubCartLineApi.prototype.getCurrentCartSubCartLinesRaw = function (requestParameters, initOverrides) {
625
308
  return __awaiter(this, void 0, void 0, function () {
626
- var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType, response_8;
309
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType, response_4;
627
310
  return __generator(this, function (_c) {
628
311
  switch (_c.label) {
629
312
  case 0:
@@ -672,9 +355,9 @@ var ManageCartSubCartLineApi = /** @class */ (function (_super) {
672
355
  }
673
356
  return [3 /*break*/, 7];
674
357
  case 6:
675
- response_8 = _c.sent();
676
- console.debug(response_8);
677
- throw response_8;
358
+ response_4 = _c.sent();
359
+ console.debug(response_4);
360
+ throw response_4;
678
361
  case 7: return [2 /*return*/];
679
362
  }
680
363
  });
@@ -697,102 +380,12 @@ var ManageCartSubCartLineApi = /** @class */ (function (_super) {
697
380
  });
698
381
  });
699
382
  };
700
- /**
701
- * Update user cart line
702
- */
703
- ManageCartSubCartLineApi.prototype.updateCartSubCartLineRaw = function (requestParameters, initOverrides) {
704
- return __awaiter(this, void 0, void 0, function () {
705
- var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType, response_9;
706
- return __generator(this, function (_c) {
707
- switch (_c.label) {
708
- case 0:
709
- if (requestParameters['cartId'] == null) {
710
- throw new runtime.RequiredError('cartId', 'Required parameter "cartId" was null or undefined when calling updateCartSubCartLine().');
711
- }
712
- if (requestParameters['subCartId'] == null) {
713
- throw new runtime.RequiredError('subCartId', 'Required parameter "subCartId" was null or undefined when calling updateCartSubCartLine().');
714
- }
715
- if (requestParameters['lineId'] == null) {
716
- throw new runtime.RequiredError('lineId', 'Required parameter "lineId" was null or undefined when calling updateCartSubCartLine().');
717
- }
718
- if (requestParameters['cartSubCartLineUpdateParameters'] == null) {
719
- throw new runtime.RequiredError('cartSubCartLineUpdateParameters', 'Required parameter "cartSubCartLineUpdateParameters" was null or undefined when calling updateCartSubCartLine().');
720
- }
721
- queryParameters = {};
722
- headerParameters = {};
723
- headerParameters['Content-Type'] = 'application/merge-patch+json';
724
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
725
- _a = headerParameters;
726
- _b = "x-api-key";
727
- return [4 /*yield*/, this.configuration.apiKey("x-api-key")];
728
- case 1:
729
- _a[_b] = _c.sent(); // apiKeyAuth authentication
730
- _c.label = 2;
731
- case 2:
732
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
733
- token = this.configuration.accessToken;
734
- return [4 /*yield*/, token("bearerAuth", [])];
735
- case 3:
736
- tokenString = _c.sent();
737
- if (tokenString) {
738
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
739
- }
740
- _c.label = 4;
741
- case 4:
742
- _c.trys.push([4, 6, , 7]);
743
- return [4 /*yield*/, this.request({
744
- path: "/carts/{cartId}/sub-carts/{subCartId}/lines/{lineId}".replace("{".concat("cartId", "}"), encodeURIComponent(String(requestParameters['cartId']))).replace("{".concat("subCartId", "}"), encodeURIComponent(String(requestParameters['subCartId']))).replace("{".concat("lineId", "}"), encodeURIComponent(String(requestParameters['lineId']))),
745
- method: 'PATCH',
746
- headers: headerParameters,
747
- query: queryParameters,
748
- body: (0, index_1.CartSubCartLineUpdateParametersToJSON)(requestParameters['cartSubCartLineUpdateParameters']),
749
- }, initOverrides)];
750
- case 5:
751
- response = _c.sent();
752
- contentType = response.headers.get("content-type");
753
- if (contentType && contentType.indexOf("application/json") !== -1) {
754
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.CartSubCartLineFromJSON)(jsonValue); })];
755
- }
756
- else if (contentType && contentType.indexOf("text/plain") !== -1) {
757
- return [2 /*return*/, new runtime.TextApiResponse(response)];
758
- }
759
- else {
760
- // TODO : Better handling of others application types
761
- return [2 /*return*/, new runtime.BlobWithMetaApiResponse(response)];
762
- }
763
- return [3 /*break*/, 7];
764
- case 6:
765
- response_9 = _c.sent();
766
- console.debug(response_9);
767
- throw response_9;
768
- case 7: return [2 /*return*/];
769
- }
770
- });
771
- });
772
- };
773
- /**
774
- * Update user cart line
775
- */
776
- ManageCartSubCartLineApi.prototype.updateCartSubCartLine = function (requestParameters, initOverrides) {
777
- return __awaiter(this, void 0, void 0, function () {
778
- var response;
779
- return __generator(this, function (_a) {
780
- switch (_a.label) {
781
- case 0: return [4 /*yield*/, this.updateCartSubCartLineRaw(requestParameters, initOverrides)];
782
- case 1:
783
- response = _a.sent();
784
- return [4 /*yield*/, response.value()];
785
- case 2: return [2 /*return*/, _a.sent()];
786
- }
787
- });
788
- });
789
- };
790
383
  /**
791
384
  * Update user cart line
792
385
  */
793
386
  ManageCartSubCartLineApi.prototype.updateCurrentCartSubCartLineRaw = function (requestParameters, initOverrides) {
794
387
  return __awaiter(this, void 0, void 0, function () {
795
- var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType, response_10;
388
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType, response_5;
796
389
  return __generator(this, function (_c) {
797
390
  switch (_c.label) {
798
391
  case 0:
@@ -849,9 +442,9 @@ var ManageCartSubCartLineApi = /** @class */ (function (_super) {
849
442
  }
850
443
  return [3 /*break*/, 7];
851
444
  case 6:
852
- response_10 = _c.sent();
853
- console.debug(response_10);
854
- throw response_10;
445
+ response_5 = _c.sent();
446
+ console.debug(response_5);
447
+ throw response_5;
855
448
  case 7: return [2 /*return*/];
856
449
  }
857
450
  });
@@ -10,11 +10,12 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- * Status of company in our system against Offisante system.
13
+ * Status of company in our system against Offisante system
14
14
  * SET : Offisante know this resource but not yet its stock
15
15
  * NOT_SET : Offisante do not know this resource
16
16
  * IN_PROGRESS : Offisante is going to know this resource in the future
17
17
  * ACTIVE : Offisante know this resource and its stock
18
+ * UNSET : Offisante no longer knows about this resource
18
19
  *
19
20
  * @export
20
21
  */
@@ -23,6 +24,7 @@ export declare const OffisanteStatus: {
23
24
  readonly NOT_SET: "NOT_SET";
24
25
  readonly IN_PROGRESS: "IN_PROGRESS";
25
26
  readonly ACTIVE: "ACTIVE";
27
+ readonly UNSET: "UNSET";
26
28
  };
27
29
  export declare type OffisanteStatus = typeof OffisanteStatus[keyof typeof OffisanteStatus];
28
30
  export declare function instanceOfOffisanteStatus(value: any): boolean;
@@ -15,11 +15,12 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.OffisanteStatusToJSON = exports.OffisanteStatusFromJSONTyped = exports.OffisanteStatusFromJSON = exports.instanceOfOffisanteStatus = exports.OffisanteStatus = void 0;
17
17
  /**
18
- * Status of company in our system against Offisante system.
18
+ * Status of company in our system against Offisante system
19
19
  * SET : Offisante know this resource but not yet its stock
20
20
  * NOT_SET : Offisante do not know this resource
21
21
  * IN_PROGRESS : Offisante is going to know this resource in the future
22
22
  * ACTIVE : Offisante know this resource and its stock
23
+ * UNSET : Offisante no longer knows about this resource
23
24
  *
24
25
  * @export
25
26
  */
@@ -27,7 +28,8 @@ exports.OffisanteStatus = {
27
28
  SET: 'SET',
28
29
  NOT_SET: 'NOT_SET',
29
30
  IN_PROGRESS: 'IN_PROGRESS',
30
- ACTIVE: 'ACTIVE'
31
+ ACTIVE: 'ACTIVE',
32
+ UNSET: 'UNSET'
31
33
  };
32
34
  function instanceOfOffisanteStatus(value) {
33
35
  for (var key in exports.OffisanteStatus) {