@fenixalliance/abs-api-client 1.0.10 → 1.0.12
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/app/index.js +2 -2
- package/app/index.ts +1 -1
- package/clients/cartService/index.js +7 -3
- package/clients/cartService/index.ts +3 -1
- package/clients/cartService/services/CartLinesService.js +173 -0
- package/clients/cartService/services/CartLinesService.ts +203 -0
- package/clients/cartService/services/{CartsService.js → CartService.js} +137 -44
- package/clients/cartService/services/{CartsService.ts → CartService.ts} +135 -42
- package/clients/cartService/services/ECommerceService.js +1104 -0
- package/clients/cartService/services/ECommerceService.ts +1289 -0
- package/clients/cartService/services/WishListsService.js +321 -0
- package/clients/cartService/services/WishListsService.ts +373 -0
- package/package.json +1 -1
- package/schemas/cartService/schema.s.ts +2239 -1868
- package/tsconfig.json +1 -1
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.CartService = void 0;
|
|
4
4
|
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
5
|
const request_1 = require("../core/request");
|
|
6
|
-
class
|
|
6
|
+
class CartService {
|
|
7
7
|
/**
|
|
8
|
+
* Get all business owned contacts
|
|
9
|
+
* Get all business owned contacts
|
|
8
10
|
* @param cartId
|
|
9
11
|
* @param xApiVersion
|
|
10
12
|
* @returns CartDtoEnvelope OK
|
|
11
13
|
* @throws ApiError
|
|
12
14
|
*/
|
|
13
|
-
static
|
|
15
|
+
static getCartByIdAsync(cartId, xApiVersion) {
|
|
14
16
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
15
17
|
method: 'GET',
|
|
16
18
|
url: '/api/v2/CartService/Carts/{cartId}',
|
|
@@ -27,13 +29,15 @@ class CartsService {
|
|
|
27
29
|
});
|
|
28
30
|
}
|
|
29
31
|
/**
|
|
32
|
+
* Update a cart
|
|
33
|
+
* Update a cart
|
|
30
34
|
* @param cartId
|
|
31
35
|
* @param xApiVersion
|
|
32
36
|
* @param requestBody
|
|
33
37
|
* @returns EmptyEnvelope OK
|
|
34
38
|
* @throws ApiError
|
|
35
39
|
*/
|
|
36
|
-
static
|
|
40
|
+
static updateCartAsync(cartId, xApiVersion, requestBody) {
|
|
37
41
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
38
42
|
method: 'PUT',
|
|
39
43
|
url: '/api/v2/CartService/Carts/{cartId}',
|
|
@@ -52,13 +56,15 @@ class CartsService {
|
|
|
52
56
|
});
|
|
53
57
|
}
|
|
54
58
|
/**
|
|
59
|
+
* Set the currency of a cart
|
|
60
|
+
* Set the currency of a cart
|
|
55
61
|
* @param cartId
|
|
56
62
|
* @param xApiVersion
|
|
57
63
|
* @param requestBody
|
|
58
64
|
* @returns EmptyEnvelope OK
|
|
59
65
|
* @throws ApiError
|
|
60
66
|
*/
|
|
61
|
-
static
|
|
67
|
+
static setCartCurrencyAsync(cartId, xApiVersion, requestBody) {
|
|
62
68
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
63
69
|
method: 'PUT',
|
|
64
70
|
url: '/api/v2/CartService/Carts/{cartId}/Currency',
|
|
@@ -77,12 +83,14 @@ class CartsService {
|
|
|
77
83
|
});
|
|
78
84
|
}
|
|
79
85
|
/**
|
|
86
|
+
* Get the currency of a cart
|
|
87
|
+
* The currency of a cart used for display purposes
|
|
80
88
|
* @param cartId
|
|
81
89
|
* @param xApiVersion
|
|
82
90
|
* @returns CurrencyDtoEnvelope OK
|
|
83
91
|
* @throws ApiError
|
|
84
92
|
*/
|
|
85
|
-
static
|
|
93
|
+
static getCartCurrencyAsync(cartId, xApiVersion) {
|
|
86
94
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
87
95
|
method: 'GET',
|
|
88
96
|
url: '/api/v2/CartService/Carts/{cartId}/Currency',
|
|
@@ -99,13 +107,15 @@ class CartsService {
|
|
|
99
107
|
});
|
|
100
108
|
}
|
|
101
109
|
/**
|
|
110
|
+
* Set the country of a cart
|
|
111
|
+
* Set the country of a cart
|
|
102
112
|
* @param cartId
|
|
103
113
|
* @param xApiVersion
|
|
104
114
|
* @param requestBody
|
|
105
115
|
* @returns EmptyEnvelope OK
|
|
106
116
|
* @throws ApiError
|
|
107
117
|
*/
|
|
108
|
-
static
|
|
118
|
+
static setCartCountryAsync(cartId, xApiVersion, requestBody) {
|
|
109
119
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
110
120
|
method: 'PUT',
|
|
111
121
|
url: '/api/v2/CartService/Carts/{cartId}/Country',
|
|
@@ -124,12 +134,14 @@ class CartsService {
|
|
|
124
134
|
});
|
|
125
135
|
}
|
|
126
136
|
/**
|
|
137
|
+
* Get the country of a cart
|
|
138
|
+
* The country of a cart is used to calculate taxes and shipping costs
|
|
127
139
|
* @param cartId
|
|
128
140
|
* @param xApiVersion
|
|
129
141
|
* @returns CountryDtoEnvelope OK
|
|
130
142
|
* @throws ApiError
|
|
131
143
|
*/
|
|
132
|
-
static
|
|
144
|
+
static getCartCountryAsync(cartId, xApiVersion) {
|
|
133
145
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
134
146
|
method: 'GET',
|
|
135
147
|
url: '/api/v2/CartService/Carts/{cartId}/Country',
|
|
@@ -146,6 +158,8 @@ class CartsService {
|
|
|
146
158
|
});
|
|
147
159
|
}
|
|
148
160
|
/**
|
|
161
|
+
* Submit a cart for processing
|
|
162
|
+
* Submit a cart for processing
|
|
149
163
|
* @param cartId
|
|
150
164
|
* @param tenantId
|
|
151
165
|
* @param xApiVersion
|
|
@@ -172,11 +186,13 @@ class CartsService {
|
|
|
172
186
|
});
|
|
173
187
|
}
|
|
174
188
|
/**
|
|
189
|
+
* Get the acting cart
|
|
190
|
+
* Get the acting cart
|
|
175
191
|
* @param xApiVersion
|
|
176
192
|
* @returns CartDtoEnvelope OK
|
|
177
193
|
* @throws ApiError
|
|
178
194
|
*/
|
|
179
|
-
static
|
|
195
|
+
static getActingCart(xApiVersion) {
|
|
180
196
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
181
197
|
method: 'GET',
|
|
182
198
|
url: '/api/v2/CartService/Carts/ActingCart',
|
|
@@ -190,11 +206,13 @@ class CartsService {
|
|
|
190
206
|
});
|
|
191
207
|
}
|
|
192
208
|
/**
|
|
209
|
+
* Get the guest cart
|
|
210
|
+
* Get the guest cart
|
|
193
211
|
* @param xApiVersion
|
|
194
212
|
* @returns CartDtoEnvelope OK
|
|
195
213
|
* @throws ApiError
|
|
196
214
|
*/
|
|
197
|
-
static
|
|
215
|
+
static getGuestCartAsync(xApiVersion) {
|
|
198
216
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
199
217
|
method: 'GET',
|
|
200
218
|
url: '/api/v2/CartService/Carts/GuestCart',
|
|
@@ -208,11 +226,13 @@ class CartsService {
|
|
|
208
226
|
});
|
|
209
227
|
}
|
|
210
228
|
/**
|
|
229
|
+
* Get the current user's cart
|
|
230
|
+
* Get the current user's cart
|
|
211
231
|
* @param xApiVersion
|
|
212
232
|
* @returns CartDtoEnvelope OK
|
|
213
233
|
* @throws ApiError
|
|
214
234
|
*/
|
|
215
|
-
static
|
|
235
|
+
static getUserCart(xApiVersion) {
|
|
216
236
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
217
237
|
method: 'GET',
|
|
218
238
|
url: '/api/v2/CartService/Carts/UserCart',
|
|
@@ -221,16 +241,19 @@ class CartsService {
|
|
|
221
241
|
},
|
|
222
242
|
errors: {
|
|
223
243
|
401: `Unauthorized`,
|
|
244
|
+
403: `Forbidden`,
|
|
224
245
|
},
|
|
225
246
|
});
|
|
226
247
|
}
|
|
227
248
|
/**
|
|
249
|
+
* Get the business cart
|
|
250
|
+
* Get the business cart
|
|
228
251
|
* @param tenantId
|
|
229
252
|
* @param xApiVersion
|
|
230
253
|
* @returns CartDtoEnvelope OK
|
|
231
254
|
* @throws ApiError
|
|
232
255
|
*/
|
|
233
|
-
static
|
|
256
|
+
static getTenantCartAsync(tenantId, xApiVersion) {
|
|
234
257
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
235
258
|
method: 'GET',
|
|
236
259
|
url: '/api/v2/CartService/Carts/BusinessCart/{tenantId}',
|
|
@@ -247,12 +270,14 @@ class CartsService {
|
|
|
247
270
|
});
|
|
248
271
|
}
|
|
249
272
|
/**
|
|
273
|
+
* Get all cart lines
|
|
274
|
+
* Get all cart lines
|
|
250
275
|
* @param cartId
|
|
251
276
|
* @param xApiVersion
|
|
252
277
|
* @returns ItemCartRecordDtoListEnvelope OK
|
|
253
278
|
* @throws ApiError
|
|
254
279
|
*/
|
|
255
|
-
static
|
|
280
|
+
static getItemsInCartAsync(cartId, xApiVersion) {
|
|
256
281
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
257
282
|
method: 'GET',
|
|
258
283
|
url: '/api/v2/CartService/Carts/{cartId}/Items',
|
|
@@ -269,12 +294,14 @@ class CartsService {
|
|
|
269
294
|
});
|
|
270
295
|
}
|
|
271
296
|
/**
|
|
297
|
+
* Clear all items from a cart
|
|
298
|
+
* Clear all items from a cart
|
|
272
299
|
* @param cartId
|
|
273
300
|
* @param xApiVersion
|
|
274
301
|
* @returns EmptyEnvelope OK
|
|
275
302
|
* @throws ApiError
|
|
276
303
|
*/
|
|
277
|
-
static
|
|
304
|
+
static clearCartAsync(cartId, xApiVersion) {
|
|
278
305
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
279
306
|
method: 'DELETE',
|
|
280
307
|
url: '/api/v2/CartService/Carts/{cartId}/Items',
|
|
@@ -291,6 +318,8 @@ class CartsService {
|
|
|
291
318
|
});
|
|
292
319
|
}
|
|
293
320
|
/**
|
|
321
|
+
* Add an Item to a cart
|
|
322
|
+
* Add an Item to a cart
|
|
294
323
|
* @param cartId
|
|
295
324
|
* @param itemId
|
|
296
325
|
* @param quantity
|
|
@@ -298,7 +327,7 @@ class CartsService {
|
|
|
298
327
|
* @returns EmptyEnvelope OK
|
|
299
328
|
* @throws ApiError
|
|
300
329
|
*/
|
|
301
|
-
static
|
|
330
|
+
static addItemToCartAsync(cartId, itemId, quantity = 1, xApiVersion) {
|
|
302
331
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
303
332
|
method: 'POST',
|
|
304
333
|
url: '/api/v2/CartService/Carts/{cartId}/Items/{itemId}',
|
|
@@ -319,6 +348,8 @@ class CartsService {
|
|
|
319
348
|
});
|
|
320
349
|
}
|
|
321
350
|
/**
|
|
351
|
+
* Update an Item in a cart
|
|
352
|
+
* Update an Item in a cart
|
|
322
353
|
* @param cartId
|
|
323
354
|
* @param itemId
|
|
324
355
|
* @param xApiVersion
|
|
@@ -326,7 +357,7 @@ class CartsService {
|
|
|
326
357
|
* @returns EmptyEnvelope OK
|
|
327
358
|
* @throws ApiError
|
|
328
359
|
*/
|
|
329
|
-
static
|
|
360
|
+
static updateItemCartRecordAsync(cartId, itemId, xApiVersion, requestBody) {
|
|
330
361
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
331
362
|
method: 'PUT',
|
|
332
363
|
url: '/api/v2/CartService/Carts/{cartId}/Items/{itemId}',
|
|
@@ -346,13 +377,15 @@ class CartsService {
|
|
|
346
377
|
});
|
|
347
378
|
}
|
|
348
379
|
/**
|
|
380
|
+
* Remove an Item from a cart
|
|
381
|
+
* Remove an Item from a cart
|
|
349
382
|
* @param cartId
|
|
350
383
|
* @param itemId
|
|
351
384
|
* @param xApiVersion
|
|
352
385
|
* @returns EmptyEnvelope OK
|
|
353
386
|
* @throws ApiError
|
|
354
387
|
*/
|
|
355
|
-
static
|
|
388
|
+
static removeItemFromCartAsync(cartId, itemId, xApiVersion) {
|
|
356
389
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
357
390
|
method: 'DELETE',
|
|
358
391
|
url: '/api/v2/CartService/Carts/{cartId}/Items/{itemId}',
|
|
@@ -370,13 +403,15 @@ class CartsService {
|
|
|
370
403
|
});
|
|
371
404
|
}
|
|
372
405
|
/**
|
|
406
|
+
* Assesses if an Item is already in a cart
|
|
407
|
+
* Assesses if an Item is already in a cart
|
|
373
408
|
* @param cartId
|
|
374
409
|
* @param itemId
|
|
375
410
|
* @param xApiVersion
|
|
376
411
|
* @returns BooleanEnvelope OK
|
|
377
412
|
* @throws ApiError
|
|
378
413
|
*/
|
|
379
|
-
static
|
|
414
|
+
static isItemAlreadyInCartAsync(cartId, itemId, xApiVersion) {
|
|
380
415
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
381
416
|
method: 'GET',
|
|
382
417
|
url: '/api/v2/CartService/Carts/{cartId}/Contains/{itemId}',
|
|
@@ -394,6 +429,8 @@ class CartsService {
|
|
|
394
429
|
});
|
|
395
430
|
}
|
|
396
431
|
/**
|
|
432
|
+
* Increase an Item in a cart
|
|
433
|
+
* Increase an Item in a cart
|
|
397
434
|
* @param cartId
|
|
398
435
|
* @param itemId
|
|
399
436
|
* @param xApiVersion
|
|
@@ -401,7 +438,7 @@ class CartsService {
|
|
|
401
438
|
* @returns EmptyEnvelope OK
|
|
402
439
|
* @throws ApiError
|
|
403
440
|
*/
|
|
404
|
-
static
|
|
441
|
+
static increaseItemCartRecordQuantityAsync(cartId, itemId, xApiVersion, requestBody) {
|
|
405
442
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
406
443
|
method: 'PUT',
|
|
407
444
|
url: '/api/v2/CartService/Carts/{cartId}/Items/{itemId}/Increase',
|
|
@@ -421,6 +458,8 @@ class CartsService {
|
|
|
421
458
|
});
|
|
422
459
|
}
|
|
423
460
|
/**
|
|
461
|
+
* Decrease an Item in a cart
|
|
462
|
+
* Decrease an Item in a cart
|
|
424
463
|
* @param cartId
|
|
425
464
|
* @param itemId
|
|
426
465
|
* @param xApiVersion
|
|
@@ -428,7 +467,7 @@ class CartsService {
|
|
|
428
467
|
* @returns EmptyEnvelope OK
|
|
429
468
|
* @throws ApiError
|
|
430
469
|
*/
|
|
431
|
-
static
|
|
470
|
+
static removeItemFromCartAsync1(cartId, itemId, xApiVersion, requestBody) {
|
|
432
471
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
433
472
|
method: 'PUT',
|
|
434
473
|
url: '/api/v2/CartService/Carts/{cartId}/Items/{itemId}/Decrease',
|
|
@@ -448,12 +487,14 @@ class CartsService {
|
|
|
448
487
|
});
|
|
449
488
|
}
|
|
450
489
|
/**
|
|
490
|
+
* Get all cart lines
|
|
491
|
+
* Get all cart lines
|
|
451
492
|
* @param cartId
|
|
452
493
|
* @param xApiVersion
|
|
453
494
|
* @returns ItemCartRecordDtoListEnvelope OK
|
|
454
495
|
* @throws ApiError
|
|
455
496
|
*/
|
|
456
|
-
static
|
|
497
|
+
static getCartLinesAsync(cartId, xApiVersion) {
|
|
457
498
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
458
499
|
method: 'GET',
|
|
459
500
|
url: '/api/v2/CartService/Carts/{cartId}/Lines',
|
|
@@ -470,13 +511,15 @@ class CartsService {
|
|
|
470
511
|
});
|
|
471
512
|
}
|
|
472
513
|
/**
|
|
514
|
+
* Get a cart line by ID
|
|
515
|
+
* Get a cart line by ID
|
|
473
516
|
* @param cartId
|
|
474
517
|
* @param lineId
|
|
475
518
|
* @param xApiVersion
|
|
476
519
|
* @returns EmptyEnvelope OK
|
|
477
520
|
* @throws ApiError
|
|
478
521
|
*/
|
|
479
|
-
static
|
|
522
|
+
static getCartLineAsync(cartId, lineId, xApiVersion) {
|
|
480
523
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
481
524
|
method: 'GET',
|
|
482
525
|
url: '/api/v2/CartService/Carts/{cartId}/Lines/{lineId}',
|
|
@@ -494,6 +537,8 @@ class CartsService {
|
|
|
494
537
|
});
|
|
495
538
|
}
|
|
496
539
|
/**
|
|
540
|
+
* Update a cart line
|
|
541
|
+
* Update a cart line
|
|
497
542
|
* @param cartId
|
|
498
543
|
* @param lineId
|
|
499
544
|
* @param xApiVersion
|
|
@@ -501,7 +546,7 @@ class CartsService {
|
|
|
501
546
|
* @returns EmptyEnvelope OK
|
|
502
547
|
* @throws ApiError
|
|
503
548
|
*/
|
|
504
|
-
static
|
|
549
|
+
static updateCartLineAsync(cartId, lineId, xApiVersion, requestBody) {
|
|
505
550
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
506
551
|
method: 'PUT',
|
|
507
552
|
url: '/api/v2/CartService/Carts/{cartId}/Lines/{lineId}',
|
|
@@ -521,13 +566,15 @@ class CartsService {
|
|
|
521
566
|
});
|
|
522
567
|
}
|
|
523
568
|
/**
|
|
569
|
+
* Remove a cart line
|
|
570
|
+
* Remove a cart line
|
|
524
571
|
* @param cartId
|
|
525
572
|
* @param lineId
|
|
526
573
|
* @param xApiVersion
|
|
527
574
|
* @returns EmptyEnvelope OK
|
|
528
575
|
* @throws ApiError
|
|
529
576
|
*/
|
|
530
|
-
static
|
|
577
|
+
static removeCartLineAsync(cartId, lineId, xApiVersion) {
|
|
531
578
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
532
579
|
method: 'DELETE',
|
|
533
580
|
url: '/api/v2/CartService/Carts/{cartId}/Lines/{lineId}',
|
|
@@ -545,6 +592,8 @@ class CartsService {
|
|
|
545
592
|
});
|
|
546
593
|
}
|
|
547
594
|
/**
|
|
595
|
+
* Increase the quantity of a cart line
|
|
596
|
+
* Increase the quantity of a cart line
|
|
548
597
|
* @param cartId
|
|
549
598
|
* @param lineId
|
|
550
599
|
* @param quantity
|
|
@@ -552,7 +601,7 @@ class CartsService {
|
|
|
552
601
|
* @returns EmptyEnvelope OK
|
|
553
602
|
* @throws ApiError
|
|
554
603
|
*/
|
|
555
|
-
static
|
|
604
|
+
static increaseCartLineAsync(cartId, lineId, quantity = 1, xApiVersion) {
|
|
556
605
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
557
606
|
method: 'PUT',
|
|
558
607
|
url: '/api/v2/CartService/Carts/{cartId}/Lines/{lineId}/Increase',
|
|
@@ -573,6 +622,8 @@ class CartsService {
|
|
|
573
622
|
});
|
|
574
623
|
}
|
|
575
624
|
/**
|
|
625
|
+
* Decrease the quantity of a cart line
|
|
626
|
+
* Decrease the quantity of a cart line
|
|
576
627
|
* @param cartId
|
|
577
628
|
* @param lineId
|
|
578
629
|
* @param quantity
|
|
@@ -580,7 +631,7 @@ class CartsService {
|
|
|
580
631
|
* @returns EmptyEnvelope OK
|
|
581
632
|
* @throws ApiError
|
|
582
633
|
*/
|
|
583
|
-
static
|
|
634
|
+
static decreaseCartLineAsync(cartId, lineId, quantity = 1, xApiVersion) {
|
|
584
635
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
585
636
|
method: 'PUT',
|
|
586
637
|
url: '/api/v2/CartService/Carts/{cartId}/Lines/{lineId}/Decrease',
|
|
@@ -601,12 +652,14 @@ class CartsService {
|
|
|
601
652
|
});
|
|
602
653
|
}
|
|
603
654
|
/**
|
|
655
|
+
* Get all wishlists in a cart
|
|
656
|
+
* Get all wishlists in a cart
|
|
604
657
|
* @param cartId
|
|
605
658
|
* @param xApiVersion
|
|
606
659
|
* @returns WishListDto OK
|
|
607
660
|
* @throws ApiError
|
|
608
661
|
*/
|
|
609
|
-
static
|
|
662
|
+
static getWishListAsync(cartId, xApiVersion) {
|
|
610
663
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
611
664
|
method: 'GET',
|
|
612
665
|
url: '/api/v2/CartService/Carts/{cartId}/WishLists',
|
|
@@ -623,13 +676,15 @@ class CartsService {
|
|
|
623
676
|
});
|
|
624
677
|
}
|
|
625
678
|
/**
|
|
679
|
+
* Create a new wish list
|
|
680
|
+
* Create a new wish list
|
|
626
681
|
* @param cartId
|
|
627
682
|
* @param xApiVersion
|
|
628
683
|
* @param requestBody
|
|
629
684
|
* @returns EmptyEnvelope OK
|
|
630
685
|
* @throws ApiError
|
|
631
686
|
*/
|
|
632
|
-
static
|
|
687
|
+
static createWishListAsync(cartId, xApiVersion, requestBody) {
|
|
633
688
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
634
689
|
method: 'POST',
|
|
635
690
|
url: '/api/v2/CartService/Carts/{cartId}/WishLists',
|
|
@@ -648,13 +703,15 @@ class CartsService {
|
|
|
648
703
|
});
|
|
649
704
|
}
|
|
650
705
|
/**
|
|
706
|
+
* Assesses if an Item is already in any of the cart's wishlists
|
|
707
|
+
* Assesses if an Item is already in any of the cart's wishlists
|
|
651
708
|
* @param cartId
|
|
652
709
|
* @param itemId
|
|
653
710
|
* @param xApiVersion
|
|
654
711
|
* @returns BooleanEnvelope OK
|
|
655
712
|
* @throws ApiError
|
|
656
713
|
*/
|
|
657
|
-
static
|
|
714
|
+
static isItemInWishLists(cartId, itemId, xApiVersion) {
|
|
658
715
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
659
716
|
method: 'GET',
|
|
660
717
|
url: '/api/v2/CartService/Carts/{cartId}/WishLists/Contains/{itemId}',
|
|
@@ -672,13 +729,15 @@ class CartsService {
|
|
|
672
729
|
});
|
|
673
730
|
}
|
|
674
731
|
/**
|
|
732
|
+
* Assesses if a WishList exists
|
|
733
|
+
* Assesses if a WishList exists
|
|
675
734
|
* @param cartId
|
|
676
735
|
* @param wishListId
|
|
677
736
|
* @param xApiVersion
|
|
678
737
|
* @returns BooleanEnvelope OK
|
|
679
738
|
* @throws ApiError
|
|
680
739
|
*/
|
|
681
|
-
static
|
|
740
|
+
static wishListExistsAsync(cartId, wishListId, xApiVersion) {
|
|
682
741
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
683
742
|
method: 'GET',
|
|
684
743
|
url: '/api/v2/CartService/Carts/{cartId}/WishLists/{wishListId}/Exists',
|
|
@@ -696,13 +755,15 @@ class CartsService {
|
|
|
696
755
|
});
|
|
697
756
|
}
|
|
698
757
|
/**
|
|
758
|
+
* Assesses if a WishList exists
|
|
759
|
+
* Assesses if a WishList exists but does not return the content
|
|
699
760
|
* @param cartId
|
|
700
761
|
* @param wishListId
|
|
701
762
|
* @param xApiVersion
|
|
702
763
|
* @returns EmptyEnvelope OK
|
|
703
764
|
* @throws ApiError
|
|
704
765
|
*/
|
|
705
|
-
static
|
|
766
|
+
static wishListExistsHeadAsync(cartId, wishListId, xApiVersion) {
|
|
706
767
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
707
768
|
method: 'HEAD',
|
|
708
769
|
url: '/api/v2/CartService/Carts/{cartId}/WishLists/{wishListId}/Exists',
|
|
@@ -713,9 +774,15 @@ class CartsService {
|
|
|
713
774
|
headers: {
|
|
714
775
|
'x-api-version': xApiVersion,
|
|
715
776
|
},
|
|
777
|
+
errors: {
|
|
778
|
+
401: `Unauthorized`,
|
|
779
|
+
404: `Not Found`,
|
|
780
|
+
},
|
|
716
781
|
});
|
|
717
782
|
}
|
|
718
783
|
/**
|
|
784
|
+
* Update a wish list
|
|
785
|
+
* Update a wish list
|
|
719
786
|
* @param cartId
|
|
720
787
|
* @param wishListId
|
|
721
788
|
* @param xApiVersion
|
|
@@ -723,7 +790,7 @@ class CartsService {
|
|
|
723
790
|
* @returns EmptyEnvelope OK
|
|
724
791
|
* @throws ApiError
|
|
725
792
|
*/
|
|
726
|
-
static
|
|
793
|
+
static updateItemToWishList(cartId, wishListId, xApiVersion, requestBody) {
|
|
727
794
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
728
795
|
method: 'PUT',
|
|
729
796
|
url: '/api/v2/CartService/Carts/{cartId}/WishLists/{wishListId}',
|
|
@@ -743,13 +810,15 @@ class CartsService {
|
|
|
743
810
|
});
|
|
744
811
|
}
|
|
745
812
|
/**
|
|
813
|
+
* Get a wish list by ID
|
|
814
|
+
* Get a wish list by ID
|
|
746
815
|
* @param cartId
|
|
747
816
|
* @param wishListId
|
|
748
817
|
* @param xApiVersion
|
|
749
818
|
* @returns WishListDtoEnvelope OK
|
|
750
819
|
* @throws ApiError
|
|
751
820
|
*/
|
|
752
|
-
static
|
|
821
|
+
static getCartWishListDetailsAsync(cartId, wishListId, xApiVersion) {
|
|
753
822
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
754
823
|
method: 'GET',
|
|
755
824
|
url: '/api/v2/CartService/Carts/{cartId}/WishLists/{wishListId}',
|
|
@@ -767,13 +836,15 @@ class CartsService {
|
|
|
767
836
|
});
|
|
768
837
|
}
|
|
769
838
|
/**
|
|
839
|
+
* Delete a wish list
|
|
840
|
+
* Delete a wish list
|
|
770
841
|
* @param cartId
|
|
771
842
|
* @param wishListId
|
|
772
843
|
* @param xApiVersion
|
|
773
844
|
* @returns EmptyEnvelope OK
|
|
774
845
|
* @throws ApiError
|
|
775
846
|
*/
|
|
776
|
-
static
|
|
847
|
+
static deleteWishList(cartId, wishListId, xApiVersion) {
|
|
777
848
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
778
849
|
method: 'DELETE',
|
|
779
850
|
url: '/api/v2/CartService/Carts/{cartId}/WishLists/{wishListId}',
|
|
@@ -791,13 +862,15 @@ class CartsService {
|
|
|
791
862
|
});
|
|
792
863
|
}
|
|
793
864
|
/**
|
|
865
|
+
* Get all records in a wish list
|
|
866
|
+
* Get all records in a wish list
|
|
794
867
|
* @param cartId
|
|
795
868
|
* @param wishListId
|
|
796
869
|
* @param xApiVersion
|
|
797
870
|
* @returns WishListItemRecordDto OK
|
|
798
871
|
* @throws ApiError
|
|
799
872
|
*/
|
|
800
|
-
static
|
|
873
|
+
static getCartWishListItemsAsync(cartId, wishListId, xApiVersion) {
|
|
801
874
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
802
875
|
method: 'GET',
|
|
803
876
|
url: '/api/v2/CartService/Carts/{cartId}/WishLists/{wishListId}/Records',
|
|
@@ -815,6 +888,8 @@ class CartsService {
|
|
|
815
888
|
});
|
|
816
889
|
}
|
|
817
890
|
/**
|
|
891
|
+
* Add a record to a wish list
|
|
892
|
+
* Add a record to a wish list
|
|
818
893
|
* @param cartId
|
|
819
894
|
* @param wishListId
|
|
820
895
|
* @param xApiVersion
|
|
@@ -822,7 +897,7 @@ class CartsService {
|
|
|
822
897
|
* @returns EmptyEnvelope OK
|
|
823
898
|
* @throws ApiError
|
|
824
899
|
*/
|
|
825
|
-
static
|
|
900
|
+
static addItemToWishList(cartId, wishListId, xApiVersion, requestBody) {
|
|
826
901
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
827
902
|
method: 'POST',
|
|
828
903
|
url: '/api/v2/CartService/Carts/{cartId}/WishLists/{wishListId}/Records',
|
|
@@ -842,6 +917,8 @@ class CartsService {
|
|
|
842
917
|
});
|
|
843
918
|
}
|
|
844
919
|
/**
|
|
920
|
+
* Get a record in a wish list
|
|
921
|
+
* Get a record in a wish list
|
|
845
922
|
* @param cartId
|
|
846
923
|
* @param wishListId
|
|
847
924
|
* @param recordId
|
|
@@ -849,7 +926,7 @@ class CartsService {
|
|
|
849
926
|
* @returns WishListItemRecordDto OK
|
|
850
927
|
* @throws ApiError
|
|
851
928
|
*/
|
|
852
|
-
static
|
|
929
|
+
static getCartWishListItemAsync(cartId, wishListId, recordId, xApiVersion) {
|
|
853
930
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
854
931
|
method: 'GET',
|
|
855
932
|
url: '/api/v2/CartService/Carts/{cartId}/WishLists/{wishListId}/Records/{recordId}',
|
|
@@ -861,9 +938,15 @@ class CartsService {
|
|
|
861
938
|
headers: {
|
|
862
939
|
'x-api-version': xApiVersion,
|
|
863
940
|
},
|
|
941
|
+
errors: {
|
|
942
|
+
401: `Unauthorized`,
|
|
943
|
+
404: `Not Found`,
|
|
944
|
+
},
|
|
864
945
|
});
|
|
865
946
|
}
|
|
866
947
|
/**
|
|
948
|
+
* Remove a record from a wish list
|
|
949
|
+
* Remove a record from a wish list
|
|
867
950
|
* @param cartId
|
|
868
951
|
* @param wishListId
|
|
869
952
|
* @param recordId
|
|
@@ -871,7 +954,7 @@ class CartsService {
|
|
|
871
954
|
* @returns EmptyEnvelope OK
|
|
872
955
|
* @throws ApiError
|
|
873
956
|
*/
|
|
874
|
-
static
|
|
957
|
+
static deleteWishListRecord(cartId, wishListId, recordId, xApiVersion) {
|
|
875
958
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
876
959
|
method: 'DELETE',
|
|
877
960
|
url: '/api/v2/CartService/Carts/{cartId}/WishLists/{wishListId}/Records/{recordId}',
|
|
@@ -890,12 +973,14 @@ class CartsService {
|
|
|
890
973
|
});
|
|
891
974
|
}
|
|
892
975
|
/**
|
|
976
|
+
* Get all items in the compare table
|
|
977
|
+
* Get all items in the compare table
|
|
893
978
|
* @param cartId
|
|
894
979
|
* @param xApiVersion
|
|
895
980
|
* @returns ItemToCompareCartRecordDtoListEnvelope OK
|
|
896
981
|
* @throws ApiError
|
|
897
982
|
*/
|
|
898
|
-
static
|
|
983
|
+
static getItemToCompareRecords(cartId, xApiVersion) {
|
|
899
984
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
900
985
|
method: 'GET',
|
|
901
986
|
url: '/api/v2/CartService/Carts/{cartId}/Compare',
|
|
@@ -912,13 +997,15 @@ class CartsService {
|
|
|
912
997
|
});
|
|
913
998
|
}
|
|
914
999
|
/**
|
|
1000
|
+
* Get an item from the compare table
|
|
1001
|
+
* Get an item from the compare table
|
|
915
1002
|
* @param cartId
|
|
916
1003
|
* @param itemId
|
|
917
1004
|
* @param xApiVersion
|
|
918
1005
|
* @returns ItemToCompareCartRecordDtoEnvelope OK
|
|
919
1006
|
* @throws ApiError
|
|
920
1007
|
*/
|
|
921
|
-
static
|
|
1008
|
+
static getItemToCompareRecord(cartId, itemId, xApiVersion) {
|
|
922
1009
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
923
1010
|
method: 'GET',
|
|
924
1011
|
url: '/api/v2/CartService/Carts/{cartId}/Compare/{itemId}',
|
|
@@ -936,13 +1023,15 @@ class CartsService {
|
|
|
936
1023
|
});
|
|
937
1024
|
}
|
|
938
1025
|
/**
|
|
1026
|
+
* Add an item to the compare table
|
|
1027
|
+
* Add an item to the compare table
|
|
939
1028
|
* @param cartId
|
|
940
1029
|
* @param itemId
|
|
941
1030
|
* @param xApiVersion
|
|
942
1031
|
* @returns ItemCartRecordDto OK
|
|
943
1032
|
* @throws ApiError
|
|
944
1033
|
*/
|
|
945
|
-
static
|
|
1034
|
+
static addItemToCompareTableAsync(cartId, itemId, xApiVersion) {
|
|
946
1035
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
947
1036
|
method: 'POST',
|
|
948
1037
|
url: '/api/v2/CartService/Carts/{cartId}/Compare/{itemId}',
|
|
@@ -960,13 +1049,15 @@ class CartsService {
|
|
|
960
1049
|
});
|
|
961
1050
|
}
|
|
962
1051
|
/**
|
|
1052
|
+
* Remove an item from the compare table
|
|
1053
|
+
* Remove an item from the compare table
|
|
963
1054
|
* @param cartId
|
|
964
1055
|
* @param itemId
|
|
965
1056
|
* @param xApiVersion
|
|
966
1057
|
* @returns ItemToCompareCartRecordDto OK
|
|
967
1058
|
* @throws ApiError
|
|
968
1059
|
*/
|
|
969
|
-
static
|
|
1060
|
+
static removeItemFromCompareTableAsync(cartId, itemId, xApiVersion) {
|
|
970
1061
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
971
1062
|
method: 'DELETE',
|
|
972
1063
|
url: '/api/v2/CartService/Carts/{cartId}/Compare/{itemId}',
|
|
@@ -984,13 +1075,15 @@ class CartsService {
|
|
|
984
1075
|
});
|
|
985
1076
|
}
|
|
986
1077
|
/**
|
|
1078
|
+
* Assesses if an Item is already in the compare table
|
|
1079
|
+
* Assesses if an Item is already in the compare table
|
|
987
1080
|
* @param cartId
|
|
988
1081
|
* @param itemId
|
|
989
1082
|
* @param xApiVersion
|
|
990
1083
|
* @returns BooleanEnvelope OK
|
|
991
1084
|
* @throws ApiError
|
|
992
1085
|
*/
|
|
993
|
-
static
|
|
1086
|
+
static isItemInCompareTableAsync(cartId, itemId, xApiVersion) {
|
|
994
1087
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
995
1088
|
method: 'GET',
|
|
996
1089
|
url: '/api/v2/CartService/Carts/{cartId}/Compare/Contains/{itemId}',
|
|
@@ -1008,4 +1101,4 @@ class CartsService {
|
|
|
1008
1101
|
});
|
|
1009
1102
|
}
|
|
1010
1103
|
}
|
|
1011
|
-
exports.
|
|
1104
|
+
exports.CartService = CartService;
|