@lcdp/api-react-rest-client 3.0.4-LDS-4910-rde2e-mettre-a-jour-les-tests.20373226962 → 3.0.4-LDS-5142-archive-ad.20455279399
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/package.json +1 -1
- package/sale-offer/src/models/SaleOfferStatusReason.d.ts +1 -0
- package/sale-offer/src/models/SaleOfferStatusReason.js +1 -0
- package/shipment/src/models/ShipmentParcelStatus.d.ts +1 -0
- package/shipment/src/models/ShipmentParcelStatus.js +2 -1
- package/shopping-cart/src/apis/ManageCartApi.d.ts +0 -22
- package/shopping-cart/src/apis/ManageCartApi.js +6 -164
- package/shopping-cart/src/apis/ManageCartSubCartApi.d.ts +0 -46
- package/shopping-cart/src/apis/ManageCartSubCartApi.js +12 -254
- package/shopping-cart/src/apis/ManageCartSubCartLineApi.d.ts +0 -69
- package/shopping-cart/src/apis/ManageCartSubCartLineApi.js +20 -427
- package/user/src/models/OffisanteStatus.d.ts +3 -1
- package/user/src/models/OffisanteStatus.js +4 -2
|
@@ -64,7 +64,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
66
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
-
exports.GetCurrentCartSubCartsOrderByEnum = exports.
|
|
67
|
+
exports.GetCurrentCartSubCartsOrderByEnum = exports.ManageCartSubCartApi = void 0;
|
|
68
68
|
var runtime = require("../runtime");
|
|
69
69
|
var index_1 = require("../models/index");
|
|
70
70
|
/**
|
|
@@ -78,17 +78,14 @@ var ManageCartSubCartApi = /** @class */ (function (_super) {
|
|
|
78
78
|
/**
|
|
79
79
|
* Delete a SubCart for user cart
|
|
80
80
|
*/
|
|
81
|
-
ManageCartSubCartApi.prototype.
|
|
81
|
+
ManageCartSubCartApi.prototype.deleteCurrentCartSubCartRaw = function (requestParameters, initOverrides) {
|
|
82
82
|
return __awaiter(this, void 0, void 0, function () {
|
|
83
83
|
var queryParameters, headerParameters, _a, _b, token, tokenString, response, response_1;
|
|
84
84
|
return __generator(this, function (_c) {
|
|
85
85
|
switch (_c.label) {
|
|
86
86
|
case 0:
|
|
87
|
-
if (requestParameters['cartId'] == null) {
|
|
88
|
-
throw new runtime.RequiredError('cartId', 'Required parameter "cartId" was null or undefined when calling deleteCartSubCart().');
|
|
89
|
-
}
|
|
90
87
|
if (requestParameters['subCartId'] == null) {
|
|
91
|
-
throw new runtime.RequiredError('subCartId', 'Required parameter "subCartId" was null or undefined when calling
|
|
88
|
+
throw new runtime.RequiredError('subCartId', 'Required parameter "subCartId" was null or undefined when calling deleteCurrentCartSubCart().');
|
|
92
89
|
}
|
|
93
90
|
queryParameters = {};
|
|
94
91
|
headerParameters = {};
|
|
@@ -112,7 +109,7 @@ var ManageCartSubCartApi = /** @class */ (function (_super) {
|
|
|
112
109
|
case 4:
|
|
113
110
|
_c.trys.push([4, 6, , 7]);
|
|
114
111
|
return [4 /*yield*/, this.request({
|
|
115
|
-
path: "/carts/
|
|
112
|
+
path: "/carts/me/sub-carts/{subCartId}".replace("{".concat("subCartId", "}"), encodeURIComponent(String(requestParameters['subCartId']))),
|
|
116
113
|
method: 'DELETE',
|
|
117
114
|
headers: headerParameters,
|
|
118
115
|
query: queryParameters,
|
|
@@ -129,72 +126,6 @@ var ManageCartSubCartApi = /** @class */ (function (_super) {
|
|
|
129
126
|
});
|
|
130
127
|
});
|
|
131
128
|
};
|
|
132
|
-
/**
|
|
133
|
-
* Delete a SubCart for user cart
|
|
134
|
-
*/
|
|
135
|
-
ManageCartSubCartApi.prototype.deleteCartSubCart = function (requestParameters, initOverrides) {
|
|
136
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
137
|
-
return __generator(this, function (_a) {
|
|
138
|
-
switch (_a.label) {
|
|
139
|
-
case 0: return [4 /*yield*/, this.deleteCartSubCartRaw(requestParameters, initOverrides)];
|
|
140
|
-
case 1:
|
|
141
|
-
_a.sent();
|
|
142
|
-
return [2 /*return*/];
|
|
143
|
-
}
|
|
144
|
-
});
|
|
145
|
-
});
|
|
146
|
-
};
|
|
147
|
-
/**
|
|
148
|
-
* Delete a SubCart for user cart
|
|
149
|
-
*/
|
|
150
|
-
ManageCartSubCartApi.prototype.deleteCurrentCartSubCartRaw = function (requestParameters, initOverrides) {
|
|
151
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
152
|
-
var queryParameters, headerParameters, _a, _b, token, tokenString, response, response_2;
|
|
153
|
-
return __generator(this, function (_c) {
|
|
154
|
-
switch (_c.label) {
|
|
155
|
-
case 0:
|
|
156
|
-
if (requestParameters['subCartId'] == null) {
|
|
157
|
-
throw new runtime.RequiredError('subCartId', 'Required parameter "subCartId" was null or undefined when calling deleteCurrentCartSubCart().');
|
|
158
|
-
}
|
|
159
|
-
queryParameters = {};
|
|
160
|
-
headerParameters = {};
|
|
161
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
162
|
-
_a = headerParameters;
|
|
163
|
-
_b = "x-api-key";
|
|
164
|
-
return [4 /*yield*/, this.configuration.apiKey("x-api-key")];
|
|
165
|
-
case 1:
|
|
166
|
-
_a[_b] = _c.sent(); // apiKeyAuth authentication
|
|
167
|
-
_c.label = 2;
|
|
168
|
-
case 2:
|
|
169
|
-
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
170
|
-
token = this.configuration.accessToken;
|
|
171
|
-
return [4 /*yield*/, token("bearerAuth", [])];
|
|
172
|
-
case 3:
|
|
173
|
-
tokenString = _c.sent();
|
|
174
|
-
if (tokenString) {
|
|
175
|
-
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
176
|
-
}
|
|
177
|
-
_c.label = 4;
|
|
178
|
-
case 4:
|
|
179
|
-
_c.trys.push([4, 6, , 7]);
|
|
180
|
-
return [4 /*yield*/, this.request({
|
|
181
|
-
path: "/carts/me/sub-carts/{subCartId}".replace("{".concat("subCartId", "}"), encodeURIComponent(String(requestParameters['subCartId']))),
|
|
182
|
-
method: 'DELETE',
|
|
183
|
-
headers: headerParameters,
|
|
184
|
-
query: queryParameters,
|
|
185
|
-
}, initOverrides)];
|
|
186
|
-
case 5:
|
|
187
|
-
response = _c.sent();
|
|
188
|
-
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
189
|
-
case 6:
|
|
190
|
-
response_2 = _c.sent();
|
|
191
|
-
console.debug(response_2);
|
|
192
|
-
throw response_2;
|
|
193
|
-
case 7: return [2 /*return*/];
|
|
194
|
-
}
|
|
195
|
-
});
|
|
196
|
-
});
|
|
197
|
-
};
|
|
198
129
|
/**
|
|
199
130
|
* Delete a SubCart for user cart
|
|
200
131
|
*/
|
|
@@ -210,176 +141,12 @@ var ManageCartSubCartApi = /** @class */ (function (_super) {
|
|
|
210
141
|
});
|
|
211
142
|
});
|
|
212
143
|
};
|
|
213
|
-
/**
|
|
214
|
-
* Get user sub cart for a specific SubCart
|
|
215
|
-
*/
|
|
216
|
-
ManageCartSubCartApi.prototype.getCartSubCartRaw = function (requestParameters, initOverrides) {
|
|
217
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
218
|
-
var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType, response_3;
|
|
219
|
-
return __generator(this, function (_c) {
|
|
220
|
-
switch (_c.label) {
|
|
221
|
-
case 0:
|
|
222
|
-
if (requestParameters['cartId'] == null) {
|
|
223
|
-
throw new runtime.RequiredError('cartId', 'Required parameter "cartId" was null or undefined when calling getCartSubCart().');
|
|
224
|
-
}
|
|
225
|
-
if (requestParameters['subCartId'] == null) {
|
|
226
|
-
throw new runtime.RequiredError('subCartId', 'Required parameter "subCartId" was null or undefined when calling getCartSubCart().');
|
|
227
|
-
}
|
|
228
|
-
queryParameters = {};
|
|
229
|
-
headerParameters = {};
|
|
230
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
231
|
-
_a = headerParameters;
|
|
232
|
-
_b = "x-api-key";
|
|
233
|
-
return [4 /*yield*/, this.configuration.apiKey("x-api-key")];
|
|
234
|
-
case 1:
|
|
235
|
-
_a[_b] = _c.sent(); // apiKeyAuth authentication
|
|
236
|
-
_c.label = 2;
|
|
237
|
-
case 2:
|
|
238
|
-
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
239
|
-
token = this.configuration.accessToken;
|
|
240
|
-
return [4 /*yield*/, token("bearerAuth", [])];
|
|
241
|
-
case 3:
|
|
242
|
-
tokenString = _c.sent();
|
|
243
|
-
if (tokenString) {
|
|
244
|
-
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
245
|
-
}
|
|
246
|
-
_c.label = 4;
|
|
247
|
-
case 4:
|
|
248
|
-
_c.trys.push([4, 6, , 7]);
|
|
249
|
-
return [4 /*yield*/, this.request({
|
|
250
|
-
path: "/carts/{cartId}/sub-carts/{subCartId}".replace("{".concat("cartId", "}"), encodeURIComponent(String(requestParameters['cartId']))).replace("{".concat("subCartId", "}"), encodeURIComponent(String(requestParameters['subCartId']))),
|
|
251
|
-
method: 'GET',
|
|
252
|
-
headers: headerParameters,
|
|
253
|
-
query: queryParameters,
|
|
254
|
-
}, initOverrides)];
|
|
255
|
-
case 5:
|
|
256
|
-
response = _c.sent();
|
|
257
|
-
contentType = response.headers.get("content-type");
|
|
258
|
-
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
259
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.CartSubCartFromJSON)(jsonValue); })];
|
|
260
|
-
}
|
|
261
|
-
else if (contentType && contentType.indexOf("text/plain") !== -1) {
|
|
262
|
-
return [2 /*return*/, new runtime.TextApiResponse(response)];
|
|
263
|
-
}
|
|
264
|
-
else {
|
|
265
|
-
// TODO : Better handling of others application types
|
|
266
|
-
return [2 /*return*/, new runtime.BlobWithMetaApiResponse(response)];
|
|
267
|
-
}
|
|
268
|
-
return [3 /*break*/, 7];
|
|
269
|
-
case 6:
|
|
270
|
-
response_3 = _c.sent();
|
|
271
|
-
console.debug(response_3);
|
|
272
|
-
throw response_3;
|
|
273
|
-
case 7: return [2 /*return*/];
|
|
274
|
-
}
|
|
275
|
-
});
|
|
276
|
-
});
|
|
277
|
-
};
|
|
278
|
-
/**
|
|
279
|
-
* Get user sub cart for a specific SubCart
|
|
280
|
-
*/
|
|
281
|
-
ManageCartSubCartApi.prototype.getCartSubCart = function (requestParameters, initOverrides) {
|
|
282
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
283
|
-
var response;
|
|
284
|
-
return __generator(this, function (_a) {
|
|
285
|
-
switch (_a.label) {
|
|
286
|
-
case 0: return [4 /*yield*/, this.getCartSubCartRaw(requestParameters, initOverrides)];
|
|
287
|
-
case 1:
|
|
288
|
-
response = _a.sent();
|
|
289
|
-
return [4 /*yield*/, response.value()];
|
|
290
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
291
|
-
}
|
|
292
|
-
});
|
|
293
|
-
});
|
|
294
|
-
};
|
|
295
|
-
/**
|
|
296
|
-
* Get user cart split by SubCart
|
|
297
|
-
*/
|
|
298
|
-
ManageCartSubCartApi.prototype.getCartSubCartsRaw = function (requestParameters, initOverrides) {
|
|
299
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
300
|
-
var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType, response_4;
|
|
301
|
-
return __generator(this, function (_c) {
|
|
302
|
-
switch (_c.label) {
|
|
303
|
-
case 0:
|
|
304
|
-
if (requestParameters['cartId'] == null) {
|
|
305
|
-
throw new runtime.RequiredError('cartId', 'Required parameter "cartId" was null or undefined when calling getCartSubCarts().');
|
|
306
|
-
}
|
|
307
|
-
queryParameters = {};
|
|
308
|
-
if (requestParameters['orderBy'] != null) {
|
|
309
|
-
queryParameters['orderBy'] = requestParameters['orderBy'];
|
|
310
|
-
}
|
|
311
|
-
headerParameters = {};
|
|
312
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
313
|
-
_a = headerParameters;
|
|
314
|
-
_b = "x-api-key";
|
|
315
|
-
return [4 /*yield*/, this.configuration.apiKey("x-api-key")];
|
|
316
|
-
case 1:
|
|
317
|
-
_a[_b] = _c.sent(); // apiKeyAuth authentication
|
|
318
|
-
_c.label = 2;
|
|
319
|
-
case 2:
|
|
320
|
-
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
321
|
-
token = this.configuration.accessToken;
|
|
322
|
-
return [4 /*yield*/, token("bearerAuth", [])];
|
|
323
|
-
case 3:
|
|
324
|
-
tokenString = _c.sent();
|
|
325
|
-
if (tokenString) {
|
|
326
|
-
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
327
|
-
}
|
|
328
|
-
_c.label = 4;
|
|
329
|
-
case 4:
|
|
330
|
-
_c.trys.push([4, 6, , 7]);
|
|
331
|
-
return [4 /*yield*/, this.request({
|
|
332
|
-
path: "/carts/{cartId}/sub-carts".replace("{".concat("cartId", "}"), encodeURIComponent(String(requestParameters['cartId']))),
|
|
333
|
-
method: 'GET',
|
|
334
|
-
headers: headerParameters,
|
|
335
|
-
query: queryParameters,
|
|
336
|
-
}, initOverrides)];
|
|
337
|
-
case 5:
|
|
338
|
-
response = _c.sent();
|
|
339
|
-
contentType = response.headers.get("content-type");
|
|
340
|
-
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
341
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.CartSubCartFromJSON); })];
|
|
342
|
-
}
|
|
343
|
-
else if (contentType && contentType.indexOf("text/plain") !== -1) {
|
|
344
|
-
return [2 /*return*/, new runtime.TextApiResponse(response)];
|
|
345
|
-
}
|
|
346
|
-
else {
|
|
347
|
-
// TODO : Better handling of others application types
|
|
348
|
-
return [2 /*return*/, new runtime.BlobWithMetaApiResponse(response)];
|
|
349
|
-
}
|
|
350
|
-
return [3 /*break*/, 7];
|
|
351
|
-
case 6:
|
|
352
|
-
response_4 = _c.sent();
|
|
353
|
-
console.debug(response_4);
|
|
354
|
-
throw response_4;
|
|
355
|
-
case 7: return [2 /*return*/];
|
|
356
|
-
}
|
|
357
|
-
});
|
|
358
|
-
});
|
|
359
|
-
};
|
|
360
|
-
/**
|
|
361
|
-
* Get user cart split by SubCart
|
|
362
|
-
*/
|
|
363
|
-
ManageCartSubCartApi.prototype.getCartSubCarts = function (requestParameters, initOverrides) {
|
|
364
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
365
|
-
var response;
|
|
366
|
-
return __generator(this, function (_a) {
|
|
367
|
-
switch (_a.label) {
|
|
368
|
-
case 0: return [4 /*yield*/, this.getCartSubCartsRaw(requestParameters, initOverrides)];
|
|
369
|
-
case 1:
|
|
370
|
-
response = _a.sent();
|
|
371
|
-
return [4 /*yield*/, response.value()];
|
|
372
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
373
|
-
}
|
|
374
|
-
});
|
|
375
|
-
});
|
|
376
|
-
};
|
|
377
144
|
/**
|
|
378
145
|
* Get user sub cart for a specific SubCart
|
|
379
146
|
*/
|
|
380
147
|
ManageCartSubCartApi.prototype.getCurrentCartSubCartRaw = function (requestParameters, initOverrides) {
|
|
381
148
|
return __awaiter(this, void 0, void 0, function () {
|
|
382
|
-
var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType,
|
|
149
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType, response_2;
|
|
383
150
|
return __generator(this, function (_c) {
|
|
384
151
|
switch (_c.label) {
|
|
385
152
|
case 0:
|
|
@@ -428,9 +195,9 @@ var ManageCartSubCartApi = /** @class */ (function (_super) {
|
|
|
428
195
|
}
|
|
429
196
|
return [3 /*break*/, 7];
|
|
430
197
|
case 6:
|
|
431
|
-
|
|
432
|
-
console.debug(
|
|
433
|
-
throw
|
|
198
|
+
response_2 = _c.sent();
|
|
199
|
+
console.debug(response_2);
|
|
200
|
+
throw response_2;
|
|
434
201
|
case 7: return [2 /*return*/];
|
|
435
202
|
}
|
|
436
203
|
});
|
|
@@ -458,7 +225,7 @@ var ManageCartSubCartApi = /** @class */ (function (_super) {
|
|
|
458
225
|
*/
|
|
459
226
|
ManageCartSubCartApi.prototype.getCurrentCartSubCartsRaw = function (requestParameters, initOverrides) {
|
|
460
227
|
return __awaiter(this, void 0, void 0, function () {
|
|
461
|
-
var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType,
|
|
228
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType, response_3;
|
|
462
229
|
return __generator(this, function (_c) {
|
|
463
230
|
switch (_c.label) {
|
|
464
231
|
case 0:
|
|
@@ -507,9 +274,9 @@ var ManageCartSubCartApi = /** @class */ (function (_super) {
|
|
|
507
274
|
}
|
|
508
275
|
return [3 /*break*/, 7];
|
|
509
276
|
case 6:
|
|
510
|
-
|
|
511
|
-
console.debug(
|
|
512
|
-
throw
|
|
277
|
+
response_3 = _c.sent();
|
|
278
|
+
console.debug(response_3);
|
|
279
|
+
throw response_3;
|
|
513
280
|
case 7: return [2 /*return*/];
|
|
514
281
|
}
|
|
515
282
|
});
|
|
@@ -536,15 +303,6 @@ var ManageCartSubCartApi = /** @class */ (function (_super) {
|
|
|
536
303
|
return ManageCartSubCartApi;
|
|
537
304
|
}(runtime.BaseAPI));
|
|
538
305
|
exports.ManageCartSubCartApi = ManageCartSubCartApi;
|
|
539
|
-
/**
|
|
540
|
-
* @export
|
|
541
|
-
*/
|
|
542
|
-
exports.GetCartSubCartsOrderByEnum = {
|
|
543
|
-
UPDATED_AT_ASC: 'UPDATED_AT:asc',
|
|
544
|
-
UPDATED_AT_DESC: 'UPDATED_AT:desc',
|
|
545
|
-
TOTAL_EXCLUDING_TAXES_ASC: 'TOTAL_EXCLUDING_TAXES:asc',
|
|
546
|
-
TOTAL_EXCLUDING_TAXES_DESC: 'TOTAL_EXCLUDING_TAXES:desc'
|
|
547
|
-
};
|
|
548
306
|
/**
|
|
549
307
|
* @export
|
|
550
308
|
*/
|
|
@@ -11,33 +11,14 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
13
|
import type { CartSubCartLine, CartSubCartLineUpdateParameters, ShoppedOffer } from '../models/index';
|
|
14
|
-
export interface CreateOrUpdateCartSubCartLinesRequest {
|
|
15
|
-
cartId: number;
|
|
16
|
-
subCartId: number;
|
|
17
|
-
shoppedOffer: ShoppedOffer;
|
|
18
|
-
}
|
|
19
14
|
export interface CreateOrUpdateCurrentCartSubCartLinesRequest {
|
|
20
15
|
subCartId: number;
|
|
21
16
|
shoppedOffer: ShoppedOffer;
|
|
22
17
|
}
|
|
23
|
-
export interface DeleteCartSubCartLineRequest {
|
|
24
|
-
cartId: number;
|
|
25
|
-
subCartId: number;
|
|
26
|
-
lineId: number;
|
|
27
|
-
}
|
|
28
18
|
export interface DeleteCurrentCartSubCartLineRequest {
|
|
29
19
|
subCartId: number;
|
|
30
20
|
lineId: number;
|
|
31
21
|
}
|
|
32
|
-
export interface GetCartSubCartLineRequest {
|
|
33
|
-
cartId: number;
|
|
34
|
-
subCartId: number;
|
|
35
|
-
lineId: number;
|
|
36
|
-
}
|
|
37
|
-
export interface GetCartSubCartLinesRequest {
|
|
38
|
-
cartId: number;
|
|
39
|
-
subCartId: number;
|
|
40
|
-
}
|
|
41
22
|
export interface GetCurrentCartSubCartLineRequest {
|
|
42
23
|
subCartId: number;
|
|
43
24
|
lineId: number;
|
|
@@ -45,12 +26,6 @@ export interface GetCurrentCartSubCartLineRequest {
|
|
|
45
26
|
export interface GetCurrentCartSubCartLinesRequest {
|
|
46
27
|
subCartId: number;
|
|
47
28
|
}
|
|
48
|
-
export interface UpdateCartSubCartLineRequest {
|
|
49
|
-
cartId: number;
|
|
50
|
-
subCartId: number;
|
|
51
|
-
lineId: number;
|
|
52
|
-
cartSubCartLineUpdateParameters: CartSubCartLineUpdateParameters;
|
|
53
|
-
}
|
|
54
29
|
export interface UpdateCurrentCartSubCartLineRequest {
|
|
55
30
|
subCartId: number;
|
|
56
31
|
lineId: number;
|
|
@@ -60,16 +35,6 @@ export interface UpdateCurrentCartSubCartLineRequest {
|
|
|
60
35
|
*
|
|
61
36
|
*/
|
|
62
37
|
export declare class ManageCartSubCartLineApi extends runtime.BaseAPI {
|
|
63
|
-
/**
|
|
64
|
-
* If Sale Offer from \'offerReference\' is a distribution type \'RANGE\', then distributedRangeId should not be null. In any case, \'quantity\' field should be >= 0
|
|
65
|
-
* Create or update a cart line if its already exist
|
|
66
|
-
*/
|
|
67
|
-
createOrUpdateCartSubCartLinesRaw(requestParameters: CreateOrUpdateCartSubCartLinesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
68
|
-
/**
|
|
69
|
-
* If Sale Offer from \'offerReference\' is a distribution type \'RANGE\', then distributedRangeId should not be null. In any case, \'quantity\' field should be >= 0
|
|
70
|
-
* Create or update a cart line if its already exist
|
|
71
|
-
*/
|
|
72
|
-
createOrUpdateCartSubCartLines(requestParameters: CreateOrUpdateCartSubCartLinesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
73
38
|
/**
|
|
74
39
|
* If Sale Offer from \'offerReference\' is a distribution type \'RANGE\', then distributedRangeId should not be null. In any case, \'quantity\' field should be >= 0
|
|
75
40
|
* Create or update a cart line if its already exist
|
|
@@ -80,16 +45,6 @@ export declare class ManageCartSubCartLineApi extends runtime.BaseAPI {
|
|
|
80
45
|
* Create or update a cart line if its already exist
|
|
81
46
|
*/
|
|
82
47
|
createOrUpdateCurrentCartSubCartLines(requestParameters: CreateOrUpdateCurrentCartSubCartLinesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
83
|
-
/**
|
|
84
|
-
* Permit to delete a shopping cart line who is in current user shopping cart
|
|
85
|
-
* Delete user cart line
|
|
86
|
-
*/
|
|
87
|
-
deleteCartSubCartLineRaw(requestParameters: DeleteCartSubCartLineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
88
|
-
/**
|
|
89
|
-
* Permit to delete a shopping cart line who is in current user shopping cart
|
|
90
|
-
* Delete user cart line
|
|
91
|
-
*/
|
|
92
|
-
deleteCartSubCartLine(requestParameters: DeleteCartSubCartLineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
93
48
|
/**
|
|
94
49
|
* Permit to delete a shopping cart line who is in current user shopping cart
|
|
95
50
|
* Delete user cart line
|
|
@@ -100,22 +55,6 @@ export declare class ManageCartSubCartLineApi extends runtime.BaseAPI {
|
|
|
100
55
|
* Delete user cart line
|
|
101
56
|
*/
|
|
102
57
|
deleteCurrentCartSubCartLine(requestParameters: DeleteCurrentCartSubCartLineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
103
|
-
/**
|
|
104
|
-
* Get user cart line
|
|
105
|
-
*/
|
|
106
|
-
getCartSubCartLineRaw(requestParameters: GetCartSubCartLineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CartSubCartLine | runtime.BlobWithMeta>>;
|
|
107
|
-
/**
|
|
108
|
-
* Get user cart line
|
|
109
|
-
*/
|
|
110
|
-
getCartSubCartLine(requestParameters: GetCartSubCartLineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CartSubCartLine | runtime.BlobWithMeta>;
|
|
111
|
-
/**
|
|
112
|
-
* Get all cart lines for a SubCart
|
|
113
|
-
*/
|
|
114
|
-
getCartSubCartLinesRaw(requestParameters: GetCartSubCartLinesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<CartSubCartLine> | runtime.BlobWithMeta>>;
|
|
115
|
-
/**
|
|
116
|
-
* Get all cart lines for a SubCart
|
|
117
|
-
*/
|
|
118
|
-
getCartSubCartLines(requestParameters: GetCartSubCartLinesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<CartSubCartLine> | runtime.BlobWithMeta>;
|
|
119
58
|
/**
|
|
120
59
|
* Get user cart line
|
|
121
60
|
*/
|
|
@@ -132,14 +71,6 @@ export declare class ManageCartSubCartLineApi extends runtime.BaseAPI {
|
|
|
132
71
|
* Get all cart lines for a SubCart
|
|
133
72
|
*/
|
|
134
73
|
getCurrentCartSubCartLines(requestParameters: GetCurrentCartSubCartLinesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<CartSubCartLine> | runtime.BlobWithMeta>;
|
|
135
|
-
/**
|
|
136
|
-
* Update user cart line
|
|
137
|
-
*/
|
|
138
|
-
updateCartSubCartLineRaw(requestParameters: UpdateCartSubCartLineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CartSubCartLine | runtime.BlobWithMeta>>;
|
|
139
|
-
/**
|
|
140
|
-
* Update user cart line
|
|
141
|
-
*/
|
|
142
|
-
updateCartSubCartLine(requestParameters: UpdateCartSubCartLineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CartSubCartLine | runtime.BlobWithMeta>;
|
|
143
74
|
/**
|
|
144
75
|
* Update user cart line
|
|
145
76
|
*/
|