@fenixalliance/abs-api-client 1.0.12 → 1.0.13

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.
@@ -1,1289 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do no edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- import type { BooleanEnvelope } from '../models/BooleanEnvelope';
6
- import type { CartDtoEnvelope } from '../models/CartDtoEnvelope';
7
- import type { CartUpdateRequest } from '../models/CartUpdateRequest';
8
- import type { CountryDtoEnvelope } from '../models/CountryDtoEnvelope';
9
- import type { CountrySwitchRequest } from '../models/CountrySwitchRequest';
10
- import type { CurrencyDtoEnvelope } from '../models/CurrencyDtoEnvelope';
11
- import type { CurrencySwitchRequest } from '../models/CurrencySwitchRequest';
12
- import type { EmptyEnvelope } from '../models/EmptyEnvelope';
13
- import type { ItemCartRecordDto } from '../models/ItemCartRecordDto';
14
- import type { ItemCartRecordDtoListEnvelope } from '../models/ItemCartRecordDtoListEnvelope';
15
- import type { ItemCartRecordUpdateDto } from '../models/ItemCartRecordUpdateDto';
16
- import type { ItemToCompareCartRecordDto } from '../models/ItemToCompareCartRecordDto';
17
- import type { ItemToCompareCartRecordDtoEnvelope } from '../models/ItemToCompareCartRecordDtoEnvelope';
18
- import type { ItemToCompareCartRecordDtoListEnvelope } from '../models/ItemToCompareCartRecordDtoListEnvelope';
19
- import type { NewWishListRequest } from '../models/NewWishListRequest';
20
- import type { ProductToWishListRequest } from '../models/ProductToWishListRequest';
21
- import type { WishListDto } from '../models/WishListDto';
22
- import type { WishListDtoEnvelope } from '../models/WishListDtoEnvelope';
23
- import type { WishListItemRecordDto } from '../models/WishListItemRecordDto';
24
- import type { WishListUpdateDto } from '../models/WishListUpdateDto';
25
- import type { CancelablePromise } from '../core/CancelablePromise';
26
- import { OpenAPI } from '../core/OpenAPI';
27
- import { request as __request } from '../core/request';
28
- export class ECommerceService {
29
- /**
30
- * Get all business owned contacts
31
- * Get all business owned contacts
32
- * @param cartId
33
- * @param xApiVersion
34
- * @returns CartDtoEnvelope OK
35
- * @throws ApiError
36
- */
37
- public static getCartByIdAsync(
38
- cartId: string,
39
- xApiVersion?: string,
40
- ): CancelablePromise<CartDtoEnvelope> {
41
- return __request(OpenAPI, {
42
- method: 'GET',
43
- url: '/api/v2/CartService/Carts/{cartId}',
44
- path: {
45
- 'cartId': cartId,
46
- },
47
- headers: {
48
- 'x-api-version': xApiVersion,
49
- },
50
- errors: {
51
- 401: `Unauthorized`,
52
- 403: `Forbidden`,
53
- },
54
- });
55
- }
56
- /**
57
- * Update a cart
58
- * Update a cart
59
- * @param cartId
60
- * @param xApiVersion
61
- * @param requestBody
62
- * @returns EmptyEnvelope OK
63
- * @throws ApiError
64
- */
65
- public static updateCartAsync(
66
- cartId: string,
67
- xApiVersion?: string,
68
- requestBody?: CartUpdateRequest,
69
- ): CancelablePromise<EmptyEnvelope> {
70
- return __request(OpenAPI, {
71
- method: 'PUT',
72
- url: '/api/v2/CartService/Carts/{cartId}',
73
- path: {
74
- 'cartId': cartId,
75
- },
76
- headers: {
77
- 'x-api-version': xApiVersion,
78
- },
79
- body: requestBody,
80
- mediaType: 'application/json',
81
- errors: {
82
- 401: `Unauthorized`,
83
- 403: `Forbidden`,
84
- },
85
- });
86
- }
87
- /**
88
- * Set the currency of a cart
89
- * Set the currency of a cart
90
- * @param cartId
91
- * @param xApiVersion
92
- * @param requestBody
93
- * @returns EmptyEnvelope OK
94
- * @throws ApiError
95
- */
96
- public static setCartCurrencyAsync(
97
- cartId: string,
98
- xApiVersion?: string,
99
- requestBody?: CurrencySwitchRequest,
100
- ): CancelablePromise<EmptyEnvelope> {
101
- return __request(OpenAPI, {
102
- method: 'PUT',
103
- url: '/api/v2/CartService/Carts/{cartId}/Currency',
104
- path: {
105
- 'cartId': cartId,
106
- },
107
- headers: {
108
- 'x-api-version': xApiVersion,
109
- },
110
- body: requestBody,
111
- mediaType: 'application/json',
112
- errors: {
113
- 401: `Unauthorized`,
114
- 403: `Forbidden`,
115
- },
116
- });
117
- }
118
- /**
119
- * Get the currency of a cart
120
- * The currency of a cart used for display purposes
121
- * @param cartId
122
- * @param xApiVersion
123
- * @returns CurrencyDtoEnvelope OK
124
- * @throws ApiError
125
- */
126
- public static getCartCurrencyAsync(
127
- cartId: string,
128
- xApiVersion?: string,
129
- ): CancelablePromise<CurrencyDtoEnvelope> {
130
- return __request(OpenAPI, {
131
- method: 'GET',
132
- url: '/api/v2/CartService/Carts/{cartId}/Currency',
133
- path: {
134
- 'cartId': cartId,
135
- },
136
- headers: {
137
- 'x-api-version': xApiVersion,
138
- },
139
- errors: {
140
- 401: `Unauthorized`,
141
- 403: `Forbidden`,
142
- },
143
- });
144
- }
145
- /**
146
- * Set the country of a cart
147
- * Set the country of a cart
148
- * @param cartId
149
- * @param xApiVersion
150
- * @param requestBody
151
- * @returns EmptyEnvelope OK
152
- * @throws ApiError
153
- */
154
- public static setCartCountryAsync(
155
- cartId: string,
156
- xApiVersion?: string,
157
- requestBody?: CountrySwitchRequest,
158
- ): CancelablePromise<EmptyEnvelope> {
159
- return __request(OpenAPI, {
160
- method: 'PUT',
161
- url: '/api/v2/CartService/Carts/{cartId}/Country',
162
- path: {
163
- 'cartId': cartId,
164
- },
165
- headers: {
166
- 'x-api-version': xApiVersion,
167
- },
168
- body: requestBody,
169
- mediaType: 'application/json',
170
- errors: {
171
- 401: `Unauthorized`,
172
- 403: `Forbidden`,
173
- },
174
- });
175
- }
176
- /**
177
- * Get the country of a cart
178
- * The country of a cart is used to calculate taxes and shipping costs
179
- * @param cartId
180
- * @param xApiVersion
181
- * @returns CountryDtoEnvelope OK
182
- * @throws ApiError
183
- */
184
- public static getCartCountryAsync(
185
- cartId: string,
186
- xApiVersion?: string,
187
- ): CancelablePromise<CountryDtoEnvelope> {
188
- return __request(OpenAPI, {
189
- method: 'GET',
190
- url: '/api/v2/CartService/Carts/{cartId}/Country',
191
- path: {
192
- 'cartId': cartId,
193
- },
194
- headers: {
195
- 'x-api-version': xApiVersion,
196
- },
197
- errors: {
198
- 401: `Unauthorized`,
199
- 403: `Forbidden`,
200
- },
201
- });
202
- }
203
- /**
204
- * Submit a cart for processing
205
- * Submit a cart for processing
206
- * @param cartId
207
- * @param tenantId
208
- * @param xApiVersion
209
- * @returns EmptyEnvelope OK
210
- * @throws ApiError
211
- */
212
- public static submitCartAsync(
213
- cartId: string,
214
- tenantId?: string,
215
- xApiVersion?: string,
216
- ): CancelablePromise<EmptyEnvelope> {
217
- return __request(OpenAPI, {
218
- method: 'POST',
219
- url: '/api/v2/CartService/Carts/{cartId}/Submit',
220
- path: {
221
- 'cartId': cartId,
222
- },
223
- headers: {
224
- 'x-api-version': xApiVersion,
225
- },
226
- query: {
227
- 'tenantId': tenantId,
228
- },
229
- errors: {
230
- 401: `Unauthorized`,
231
- 403: `Forbidden`,
232
- },
233
- });
234
- }
235
- /**
236
- * Get the acting cart
237
- * Get the acting cart
238
- * @param xApiVersion
239
- * @returns CartDtoEnvelope OK
240
- * @throws ApiError
241
- */
242
- public static getActingCart(
243
- xApiVersion?: string,
244
- ): CancelablePromise<CartDtoEnvelope> {
245
- return __request(OpenAPI, {
246
- method: 'GET',
247
- url: '/api/v2/CartService/Carts/ActingCart',
248
- headers: {
249
- 'x-api-version': xApiVersion,
250
- },
251
- errors: {
252
- 401: `Unauthorized`,
253
- 403: `Forbidden`,
254
- },
255
- });
256
- }
257
- /**
258
- * Get the guest cart
259
- * Get the guest cart
260
- * @param xApiVersion
261
- * @returns CartDtoEnvelope OK
262
- * @throws ApiError
263
- */
264
- public static getGuestCartAsync(
265
- xApiVersion?: string,
266
- ): CancelablePromise<CartDtoEnvelope> {
267
- return __request(OpenAPI, {
268
- method: 'GET',
269
- url: '/api/v2/CartService/Carts/GuestCart',
270
- headers: {
271
- 'x-api-version': xApiVersion,
272
- },
273
- errors: {
274
- 401: `Unauthorized`,
275
- 403: `Forbidden`,
276
- },
277
- });
278
- }
279
- /**
280
- * Get the current user's cart
281
- * Get the current user's cart
282
- * @param xApiVersion
283
- * @returns CartDtoEnvelope OK
284
- * @throws ApiError
285
- */
286
- public static getUserCart(
287
- xApiVersion?: string,
288
- ): CancelablePromise<CartDtoEnvelope> {
289
- return __request(OpenAPI, {
290
- method: 'GET',
291
- url: '/api/v2/CartService/Carts/UserCart',
292
- headers: {
293
- 'x-api-version': xApiVersion,
294
- },
295
- errors: {
296
- 401: `Unauthorized`,
297
- 403: `Forbidden`,
298
- },
299
- });
300
- }
301
- /**
302
- * Get the business cart
303
- * Get the business cart
304
- * @param tenantId
305
- * @param xApiVersion
306
- * @returns CartDtoEnvelope OK
307
- * @throws ApiError
308
- */
309
- public static getTenantCartAsync(
310
- tenantId: string,
311
- xApiVersion?: string,
312
- ): CancelablePromise<CartDtoEnvelope> {
313
- return __request(OpenAPI, {
314
- method: 'GET',
315
- url: '/api/v2/CartService/Carts/BusinessCart/{tenantId}',
316
- path: {
317
- 'tenantId': tenantId,
318
- },
319
- headers: {
320
- 'x-api-version': xApiVersion,
321
- },
322
- errors: {
323
- 401: `Unauthorized`,
324
- 403: `Forbidden`,
325
- },
326
- });
327
- }
328
- /**
329
- * Get all cart lines
330
- * Get all cart lines
331
- * @param cartId
332
- * @param xApiVersion
333
- * @returns ItemCartRecordDtoListEnvelope OK
334
- * @throws ApiError
335
- */
336
- public static getItemsInCartAsync(
337
- cartId: string,
338
- xApiVersion?: string,
339
- ): CancelablePromise<ItemCartRecordDtoListEnvelope> {
340
- return __request(OpenAPI, {
341
- method: 'GET',
342
- url: '/api/v2/CartService/Carts/{cartId}/Items',
343
- path: {
344
- 'cartId': cartId,
345
- },
346
- headers: {
347
- 'x-api-version': xApiVersion,
348
- },
349
- errors: {
350
- 401: `Unauthorized`,
351
- 404: `Not Found`,
352
- },
353
- });
354
- }
355
- /**
356
- * Clear all items from a cart
357
- * Clear all items from a cart
358
- * @param cartId
359
- * @param xApiVersion
360
- * @returns EmptyEnvelope OK
361
- * @throws ApiError
362
- */
363
- public static clearCartAsync(
364
- cartId: string,
365
- xApiVersion?: string,
366
- ): CancelablePromise<EmptyEnvelope> {
367
- return __request(OpenAPI, {
368
- method: 'DELETE',
369
- url: '/api/v2/CartService/Carts/{cartId}/Items',
370
- path: {
371
- 'cartId': cartId,
372
- },
373
- headers: {
374
- 'x-api-version': xApiVersion,
375
- },
376
- errors: {
377
- 401: `Unauthorized`,
378
- 404: `Not Found`,
379
- },
380
- });
381
- }
382
- /**
383
- * Add an Item to a cart
384
- * Add an Item to a cart
385
- * @param cartId
386
- * @param itemId
387
- * @param quantity
388
- * @param xApiVersion
389
- * @returns EmptyEnvelope OK
390
- * @throws ApiError
391
- */
392
- public static addItemToCartAsync(
393
- cartId: string,
394
- itemId: string,
395
- quantity: number = 1,
396
- xApiVersion?: string,
397
- ): CancelablePromise<EmptyEnvelope> {
398
- return __request(OpenAPI, {
399
- method: 'POST',
400
- url: '/api/v2/CartService/Carts/{cartId}/Items/{itemId}',
401
- path: {
402
- 'cartId': cartId,
403
- 'itemId': itemId,
404
- },
405
- headers: {
406
- 'x-api-version': xApiVersion,
407
- },
408
- query: {
409
- 'quantity': quantity,
410
- },
411
- errors: {
412
- 401: `Unauthorized`,
413
- 404: `Not Found`,
414
- },
415
- });
416
- }
417
- /**
418
- * Update an Item in a cart
419
- * Update an Item in a cart
420
- * @param cartId
421
- * @param itemId
422
- * @param xApiVersion
423
- * @param requestBody
424
- * @returns EmptyEnvelope OK
425
- * @throws ApiError
426
- */
427
- public static updateItemCartRecordAsync(
428
- cartId: string,
429
- itemId: string,
430
- xApiVersion?: string,
431
- requestBody?: ItemCartRecordUpdateDto,
432
- ): CancelablePromise<EmptyEnvelope> {
433
- return __request(OpenAPI, {
434
- method: 'PUT',
435
- url: '/api/v2/CartService/Carts/{cartId}/Items/{itemId}',
436
- path: {
437
- 'cartId': cartId,
438
- 'itemId': itemId,
439
- },
440
- headers: {
441
- 'x-api-version': xApiVersion,
442
- },
443
- body: requestBody,
444
- mediaType: 'application/json',
445
- errors: {
446
- 401: `Unauthorized`,
447
- 404: `Not Found`,
448
- },
449
- });
450
- }
451
- /**
452
- * Remove an Item from a cart
453
- * Remove an Item from a cart
454
- * @param cartId
455
- * @param itemId
456
- * @param xApiVersion
457
- * @returns EmptyEnvelope OK
458
- * @throws ApiError
459
- */
460
- public static removeItemFromCartAsync(
461
- cartId: string,
462
- itemId: string,
463
- xApiVersion?: string,
464
- ): CancelablePromise<EmptyEnvelope> {
465
- return __request(OpenAPI, {
466
- method: 'DELETE',
467
- url: '/api/v2/CartService/Carts/{cartId}/Items/{itemId}',
468
- path: {
469
- 'cartId': cartId,
470
- 'itemId': itemId,
471
- },
472
- headers: {
473
- 'x-api-version': xApiVersion,
474
- },
475
- errors: {
476
- 401: `Unauthorized`,
477
- 404: `Not Found`,
478
- },
479
- });
480
- }
481
- /**
482
- * Assesses if an Item is already in a cart
483
- * Assesses if an Item is already in a cart
484
- * @param cartId
485
- * @param itemId
486
- * @param xApiVersion
487
- * @returns BooleanEnvelope OK
488
- * @throws ApiError
489
- */
490
- public static isItemAlreadyInCartAsync(
491
- cartId: string,
492
- itemId: string,
493
- xApiVersion?: string,
494
- ): CancelablePromise<BooleanEnvelope> {
495
- return __request(OpenAPI, {
496
- method: 'GET',
497
- url: '/api/v2/CartService/Carts/{cartId}/Contains/{itemId}',
498
- path: {
499
- 'cartId': cartId,
500
- 'itemId': itemId,
501
- },
502
- headers: {
503
- 'x-api-version': xApiVersion,
504
- },
505
- errors: {
506
- 401: `Unauthorized`,
507
- 404: `Not Found`,
508
- },
509
- });
510
- }
511
- /**
512
- * Increase an Item in a cart
513
- * Increase an Item in a cart
514
- * @param cartId
515
- * @param itemId
516
- * @param xApiVersion
517
- * @param requestBody
518
- * @returns EmptyEnvelope OK
519
- * @throws ApiError
520
- */
521
- public static increaseItemCartRecordQuantityAsync(
522
- cartId: string,
523
- itemId: string,
524
- xApiVersion?: string,
525
- requestBody?: ItemCartRecordUpdateDto,
526
- ): CancelablePromise<EmptyEnvelope> {
527
- return __request(OpenAPI, {
528
- method: 'PUT',
529
- url: '/api/v2/CartService/Carts/{cartId}/Items/{itemId}/Increase',
530
- path: {
531
- 'cartId': cartId,
532
- 'itemId': itemId,
533
- },
534
- headers: {
535
- 'x-api-version': xApiVersion,
536
- },
537
- body: requestBody,
538
- mediaType: 'application/json',
539
- errors: {
540
- 401: `Unauthorized`,
541
- 404: `Not Found`,
542
- },
543
- });
544
- }
545
- /**
546
- * Decrease an Item in a cart
547
- * Decrease an Item in a cart
548
- * @param cartId
549
- * @param itemId
550
- * @param xApiVersion
551
- * @param requestBody
552
- * @returns EmptyEnvelope OK
553
- * @throws ApiError
554
- */
555
- public static removeItemFromCartAsync1(
556
- cartId: string,
557
- itemId: string,
558
- xApiVersion?: string,
559
- requestBody?: ItemCartRecordUpdateDto,
560
- ): CancelablePromise<EmptyEnvelope> {
561
- return __request(OpenAPI, {
562
- method: 'PUT',
563
- url: '/api/v2/CartService/Carts/{cartId}/Items/{itemId}/Decrease',
564
- path: {
565
- 'cartId': cartId,
566
- 'itemId': itemId,
567
- },
568
- headers: {
569
- 'x-api-version': xApiVersion,
570
- },
571
- body: requestBody,
572
- mediaType: 'application/json',
573
- errors: {
574
- 401: `Unauthorized`,
575
- 404: `Not Found`,
576
- },
577
- });
578
- }
579
- /**
580
- * Get all cart lines
581
- * Get all cart lines
582
- * @param cartId
583
- * @param xApiVersion
584
- * @returns ItemCartRecordDtoListEnvelope OK
585
- * @throws ApiError
586
- */
587
- public static getCartLinesAsync(
588
- cartId: string,
589
- xApiVersion?: string,
590
- ): CancelablePromise<ItemCartRecordDtoListEnvelope> {
591
- return __request(OpenAPI, {
592
- method: 'GET',
593
- url: '/api/v2/CartService/Carts/{cartId}/Lines',
594
- path: {
595
- 'cartId': cartId,
596
- },
597
- headers: {
598
- 'x-api-version': xApiVersion,
599
- },
600
- errors: {
601
- 401: `Unauthorized`,
602
- 404: `Not Found`,
603
- },
604
- });
605
- }
606
- /**
607
- * Get a cart line by ID
608
- * Get a cart line by ID
609
- * @param cartId
610
- * @param lineId
611
- * @param xApiVersion
612
- * @returns EmptyEnvelope OK
613
- * @throws ApiError
614
- */
615
- public static getCartLineAsync(
616
- cartId: string,
617
- lineId: string,
618
- xApiVersion?: string,
619
- ): CancelablePromise<EmptyEnvelope> {
620
- return __request(OpenAPI, {
621
- method: 'GET',
622
- url: '/api/v2/CartService/Carts/{cartId}/Lines/{lineId}',
623
- path: {
624
- 'cartId': cartId,
625
- 'lineId': lineId,
626
- },
627
- headers: {
628
- 'x-api-version': xApiVersion,
629
- },
630
- errors: {
631
- 401: `Unauthorized`,
632
- 404: `Not Found`,
633
- },
634
- });
635
- }
636
- /**
637
- * Update a cart line
638
- * Update a cart line
639
- * @param cartId
640
- * @param lineId
641
- * @param xApiVersion
642
- * @param requestBody
643
- * @returns EmptyEnvelope OK
644
- * @throws ApiError
645
- */
646
- public static updateCartLineAsync(
647
- cartId: string,
648
- lineId: string,
649
- xApiVersion?: string,
650
- requestBody?: ItemCartRecordUpdateDto,
651
- ): CancelablePromise<EmptyEnvelope> {
652
- return __request(OpenAPI, {
653
- method: 'PUT',
654
- url: '/api/v2/CartService/Carts/{cartId}/Lines/{lineId}',
655
- path: {
656
- 'cartId': cartId,
657
- 'lineId': lineId,
658
- },
659
- headers: {
660
- 'x-api-version': xApiVersion,
661
- },
662
- body: requestBody,
663
- mediaType: 'application/json',
664
- errors: {
665
- 401: `Unauthorized`,
666
- 404: `Not Found`,
667
- },
668
- });
669
- }
670
- /**
671
- * Remove a cart line
672
- * Remove a cart line
673
- * @param cartId
674
- * @param lineId
675
- * @param xApiVersion
676
- * @returns EmptyEnvelope OK
677
- * @throws ApiError
678
- */
679
- public static removeCartLineAsync(
680
- cartId: string,
681
- lineId: string,
682
- xApiVersion?: string,
683
- ): CancelablePromise<EmptyEnvelope> {
684
- return __request(OpenAPI, {
685
- method: 'DELETE',
686
- url: '/api/v2/CartService/Carts/{cartId}/Lines/{lineId}',
687
- path: {
688
- 'cartId': cartId,
689
- 'lineId': lineId,
690
- },
691
- headers: {
692
- 'x-api-version': xApiVersion,
693
- },
694
- errors: {
695
- 401: `Unauthorized`,
696
- 404: `Not Found`,
697
- },
698
- });
699
- }
700
- /**
701
- * Increase the quantity of a cart line
702
- * Increase the quantity of a cart line
703
- * @param cartId
704
- * @param lineId
705
- * @param quantity
706
- * @param xApiVersion
707
- * @returns EmptyEnvelope OK
708
- * @throws ApiError
709
- */
710
- public static increaseCartLineAsync(
711
- cartId: string,
712
- lineId: string,
713
- quantity: number = 1,
714
- xApiVersion?: string,
715
- ): CancelablePromise<EmptyEnvelope> {
716
- return __request(OpenAPI, {
717
- method: 'PUT',
718
- url: '/api/v2/CartService/Carts/{cartId}/Lines/{lineId}/Increase',
719
- path: {
720
- 'cartId': cartId,
721
- 'lineId': lineId,
722
- },
723
- headers: {
724
- 'x-api-version': xApiVersion,
725
- },
726
- query: {
727
- 'quantity': quantity,
728
- },
729
- errors: {
730
- 401: `Unauthorized`,
731
- 404: `Not Found`,
732
- },
733
- });
734
- }
735
- /**
736
- * Decrease the quantity of a cart line
737
- * Decrease the quantity of a cart line
738
- * @param cartId
739
- * @param lineId
740
- * @param quantity
741
- * @param xApiVersion
742
- * @returns EmptyEnvelope OK
743
- * @throws ApiError
744
- */
745
- public static decreaseCartLineAsync(
746
- cartId: string,
747
- lineId: string,
748
- quantity: number = 1,
749
- xApiVersion?: string,
750
- ): CancelablePromise<EmptyEnvelope> {
751
- return __request(OpenAPI, {
752
- method: 'PUT',
753
- url: '/api/v2/CartService/Carts/{cartId}/Lines/{lineId}/Decrease',
754
- path: {
755
- 'cartId': cartId,
756
- 'lineId': lineId,
757
- },
758
- headers: {
759
- 'x-api-version': xApiVersion,
760
- },
761
- query: {
762
- 'quantity': quantity,
763
- },
764
- errors: {
765
- 401: `Unauthorized`,
766
- 404: `Not Found`,
767
- },
768
- });
769
- }
770
- /**
771
- * Get all wishlists in a cart
772
- * Get all wishlists in a cart
773
- * @param cartId
774
- * @param xApiVersion
775
- * @returns WishListDto OK
776
- * @throws ApiError
777
- */
778
- public static getWishListAsync(
779
- cartId: string,
780
- xApiVersion?: string,
781
- ): CancelablePromise<Array<WishListDto>> {
782
- return __request(OpenAPI, {
783
- method: 'GET',
784
- url: '/api/v2/CartService/Carts/{cartId}/WishLists',
785
- path: {
786
- 'cartId': cartId,
787
- },
788
- headers: {
789
- 'x-api-version': xApiVersion,
790
- },
791
- errors: {
792
- 401: `Unauthorized`,
793
- 404: `Not Found`,
794
- },
795
- });
796
- }
797
- /**
798
- * Create a new wish list
799
- * Create a new wish list
800
- * @param cartId
801
- * @param xApiVersion
802
- * @param requestBody
803
- * @returns EmptyEnvelope OK
804
- * @throws ApiError
805
- */
806
- public static createWishListAsync(
807
- cartId: string,
808
- xApiVersion?: string,
809
- requestBody?: NewWishListRequest,
810
- ): CancelablePromise<EmptyEnvelope> {
811
- return __request(OpenAPI, {
812
- method: 'POST',
813
- url: '/api/v2/CartService/Carts/{cartId}/WishLists',
814
- path: {
815
- 'cartId': cartId,
816
- },
817
- headers: {
818
- 'x-api-version': xApiVersion,
819
- },
820
- body: requestBody,
821
- mediaType: 'application/json',
822
- errors: {
823
- 401: `Unauthorized`,
824
- 404: `Not Found`,
825
- },
826
- });
827
- }
828
- /**
829
- * Assesses if an Item is already in any of the cart's wishlists
830
- * Assesses if an Item is already in any of the cart's wishlists
831
- * @param cartId
832
- * @param itemId
833
- * @param xApiVersion
834
- * @returns BooleanEnvelope OK
835
- * @throws ApiError
836
- */
837
- public static isItemInWishLists(
838
- cartId: string,
839
- itemId: string,
840
- xApiVersion?: string,
841
- ): CancelablePromise<BooleanEnvelope> {
842
- return __request(OpenAPI, {
843
- method: 'GET',
844
- url: '/api/v2/CartService/Carts/{cartId}/WishLists/Contains/{itemId}',
845
- path: {
846
- 'cartId': cartId,
847
- 'itemId': itemId,
848
- },
849
- headers: {
850
- 'x-api-version': xApiVersion,
851
- },
852
- errors: {
853
- 401: `Unauthorized`,
854
- 404: `Not Found`,
855
- },
856
- });
857
- }
858
- /**
859
- * Assesses if a WishList exists
860
- * Assesses if a WishList exists
861
- * @param cartId
862
- * @param wishListId
863
- * @param xApiVersion
864
- * @returns BooleanEnvelope OK
865
- * @throws ApiError
866
- */
867
- public static wishListExistsAsync(
868
- cartId: string,
869
- wishListId: string,
870
- xApiVersion?: string,
871
- ): CancelablePromise<BooleanEnvelope> {
872
- return __request(OpenAPI, {
873
- method: 'GET',
874
- url: '/api/v2/CartService/Carts/{cartId}/WishLists/{wishListId}/Exists',
875
- path: {
876
- 'cartId': cartId,
877
- 'wishListId': wishListId,
878
- },
879
- headers: {
880
- 'x-api-version': xApiVersion,
881
- },
882
- errors: {
883
- 401: `Unauthorized`,
884
- 404: `Not Found`,
885
- },
886
- });
887
- }
888
- /**
889
- * Assesses if a WishList exists
890
- * Assesses if a WishList exists but does not return the content
891
- * @param cartId
892
- * @param wishListId
893
- * @param xApiVersion
894
- * @returns EmptyEnvelope OK
895
- * @throws ApiError
896
- */
897
- public static wishListExistsHeadAsync(
898
- cartId: string,
899
- wishListId: string,
900
- xApiVersion?: string,
901
- ): CancelablePromise<EmptyEnvelope> {
902
- return __request(OpenAPI, {
903
- method: 'HEAD',
904
- url: '/api/v2/CartService/Carts/{cartId}/WishLists/{wishListId}/Exists',
905
- path: {
906
- 'cartId': cartId,
907
- 'wishListId': wishListId,
908
- },
909
- headers: {
910
- 'x-api-version': xApiVersion,
911
- },
912
- errors: {
913
- 401: `Unauthorized`,
914
- 404: `Not Found`,
915
- },
916
- });
917
- }
918
- /**
919
- * Update a wish list
920
- * Update a wish list
921
- * @param cartId
922
- * @param wishListId
923
- * @param xApiVersion
924
- * @param requestBody
925
- * @returns EmptyEnvelope OK
926
- * @throws ApiError
927
- */
928
- public static updateItemToWishList(
929
- cartId: string,
930
- wishListId: string,
931
- xApiVersion?: string,
932
- requestBody?: WishListUpdateDto,
933
- ): CancelablePromise<EmptyEnvelope> {
934
- return __request(OpenAPI, {
935
- method: 'PUT',
936
- url: '/api/v2/CartService/Carts/{cartId}/WishLists/{wishListId}',
937
- path: {
938
- 'cartId': cartId,
939
- 'wishListId': wishListId,
940
- },
941
- headers: {
942
- 'x-api-version': xApiVersion,
943
- },
944
- body: requestBody,
945
- mediaType: 'application/json',
946
- errors: {
947
- 401: `Unauthorized`,
948
- 404: `Not Found`,
949
- },
950
- });
951
- }
952
- /**
953
- * Get a wish list by ID
954
- * Get a wish list by ID
955
- * @param cartId
956
- * @param wishListId
957
- * @param xApiVersion
958
- * @returns WishListDtoEnvelope OK
959
- * @throws ApiError
960
- */
961
- public static getCartWishListDetailsAsync(
962
- cartId: string,
963
- wishListId: string,
964
- xApiVersion?: string,
965
- ): CancelablePromise<WishListDtoEnvelope> {
966
- return __request(OpenAPI, {
967
- method: 'GET',
968
- url: '/api/v2/CartService/Carts/{cartId}/WishLists/{wishListId}',
969
- path: {
970
- 'cartId': cartId,
971
- 'wishListId': wishListId,
972
- },
973
- headers: {
974
- 'x-api-version': xApiVersion,
975
- },
976
- errors: {
977
- 401: `Unauthorized`,
978
- 404: `Not Found`,
979
- },
980
- });
981
- }
982
- /**
983
- * Delete a wish list
984
- * Delete a wish list
985
- * @param cartId
986
- * @param wishListId
987
- * @param xApiVersion
988
- * @returns EmptyEnvelope OK
989
- * @throws ApiError
990
- */
991
- public static deleteWishList(
992
- cartId: string,
993
- wishListId: string,
994
- xApiVersion?: string,
995
- ): CancelablePromise<EmptyEnvelope> {
996
- return __request(OpenAPI, {
997
- method: 'DELETE',
998
- url: '/api/v2/CartService/Carts/{cartId}/WishLists/{wishListId}',
999
- path: {
1000
- 'cartId': cartId,
1001
- 'wishListId': wishListId,
1002
- },
1003
- headers: {
1004
- 'x-api-version': xApiVersion,
1005
- },
1006
- errors: {
1007
- 401: `Unauthorized`,
1008
- 404: `Not Found`,
1009
- },
1010
- });
1011
- }
1012
- /**
1013
- * Get all records in a wish list
1014
- * Get all records in a wish list
1015
- * @param cartId
1016
- * @param wishListId
1017
- * @param xApiVersion
1018
- * @returns WishListItemRecordDto OK
1019
- * @throws ApiError
1020
- */
1021
- public static getCartWishListItemsAsync(
1022
- cartId: string,
1023
- wishListId: string,
1024
- xApiVersion?: string,
1025
- ): CancelablePromise<Array<WishListItemRecordDto>> {
1026
- return __request(OpenAPI, {
1027
- method: 'GET',
1028
- url: '/api/v2/CartService/Carts/{cartId}/WishLists/{wishListId}/Records',
1029
- path: {
1030
- 'cartId': cartId,
1031
- 'wishListId': wishListId,
1032
- },
1033
- headers: {
1034
- 'x-api-version': xApiVersion,
1035
- },
1036
- errors: {
1037
- 401: `Unauthorized`,
1038
- 404: `Not Found`,
1039
- },
1040
- });
1041
- }
1042
- /**
1043
- * Add a record to a wish list
1044
- * Add a record to a wish list
1045
- * @param cartId
1046
- * @param wishListId
1047
- * @param xApiVersion
1048
- * @param requestBody
1049
- * @returns EmptyEnvelope OK
1050
- * @throws ApiError
1051
- */
1052
- public static addItemToWishList(
1053
- cartId: string,
1054
- wishListId: string,
1055
- xApiVersion?: string,
1056
- requestBody?: ProductToWishListRequest,
1057
- ): CancelablePromise<EmptyEnvelope> {
1058
- return __request(OpenAPI, {
1059
- method: 'POST',
1060
- url: '/api/v2/CartService/Carts/{cartId}/WishLists/{wishListId}/Records',
1061
- path: {
1062
- 'cartId': cartId,
1063
- 'wishListId': wishListId,
1064
- },
1065
- headers: {
1066
- 'x-api-version': xApiVersion,
1067
- },
1068
- body: requestBody,
1069
- mediaType: 'application/json',
1070
- errors: {
1071
- 401: `Unauthorized`,
1072
- 404: `Not Found`,
1073
- },
1074
- });
1075
- }
1076
- /**
1077
- * Get a record in a wish list
1078
- * Get a record in a wish list
1079
- * @param cartId
1080
- * @param wishListId
1081
- * @param recordId
1082
- * @param xApiVersion
1083
- * @returns WishListItemRecordDto OK
1084
- * @throws ApiError
1085
- */
1086
- public static getCartWishListItemAsync(
1087
- cartId: string,
1088
- wishListId: string,
1089
- recordId: string,
1090
- xApiVersion?: string,
1091
- ): CancelablePromise<Array<WishListItemRecordDto>> {
1092
- return __request(OpenAPI, {
1093
- method: 'GET',
1094
- url: '/api/v2/CartService/Carts/{cartId}/WishLists/{wishListId}/Records/{recordId}',
1095
- path: {
1096
- 'cartId': cartId,
1097
- 'wishListId': wishListId,
1098
- 'recordId': recordId,
1099
- },
1100
- headers: {
1101
- 'x-api-version': xApiVersion,
1102
- },
1103
- errors: {
1104
- 401: `Unauthorized`,
1105
- 404: `Not Found`,
1106
- },
1107
- });
1108
- }
1109
- /**
1110
- * Remove a record from a wish list
1111
- * Remove a record from a wish list
1112
- * @param cartId
1113
- * @param wishListId
1114
- * @param recordId
1115
- * @param xApiVersion
1116
- * @returns EmptyEnvelope OK
1117
- * @throws ApiError
1118
- */
1119
- public static deleteWishListRecord(
1120
- cartId: string,
1121
- wishListId: string,
1122
- recordId: string,
1123
- xApiVersion?: string,
1124
- ): CancelablePromise<EmptyEnvelope> {
1125
- return __request(OpenAPI, {
1126
- method: 'DELETE',
1127
- url: '/api/v2/CartService/Carts/{cartId}/WishLists/{wishListId}/Records/{recordId}',
1128
- path: {
1129
- 'cartId': cartId,
1130
- 'wishListId': wishListId,
1131
- 'recordId': recordId,
1132
- },
1133
- headers: {
1134
- 'x-api-version': xApiVersion,
1135
- },
1136
- errors: {
1137
- 401: `Unauthorized`,
1138
- 404: `Not Found`,
1139
- },
1140
- });
1141
- }
1142
- /**
1143
- * Get all items in the compare table
1144
- * Get all items in the compare table
1145
- * @param cartId
1146
- * @param xApiVersion
1147
- * @returns ItemToCompareCartRecordDtoListEnvelope OK
1148
- * @throws ApiError
1149
- */
1150
- public static getItemToCompareRecords(
1151
- cartId: string,
1152
- xApiVersion?: string,
1153
- ): CancelablePromise<ItemToCompareCartRecordDtoListEnvelope> {
1154
- return __request(OpenAPI, {
1155
- method: 'GET',
1156
- url: '/api/v2/CartService/Carts/{cartId}/Compare',
1157
- path: {
1158
- 'cartId': cartId,
1159
- },
1160
- headers: {
1161
- 'x-api-version': xApiVersion,
1162
- },
1163
- errors: {
1164
- 401: `Unauthorized`,
1165
- 404: `Not Found`,
1166
- },
1167
- });
1168
- }
1169
- /**
1170
- * Get an item from the compare table
1171
- * Get an item from the compare table
1172
- * @param cartId
1173
- * @param itemId
1174
- * @param xApiVersion
1175
- * @returns ItemToCompareCartRecordDtoEnvelope OK
1176
- * @throws ApiError
1177
- */
1178
- public static getItemToCompareRecord(
1179
- cartId: string,
1180
- itemId: string,
1181
- xApiVersion?: string,
1182
- ): CancelablePromise<ItemToCompareCartRecordDtoEnvelope> {
1183
- return __request(OpenAPI, {
1184
- method: 'GET',
1185
- url: '/api/v2/CartService/Carts/{cartId}/Compare/{itemId}',
1186
- path: {
1187
- 'cartId': cartId,
1188
- 'itemId': itemId,
1189
- },
1190
- headers: {
1191
- 'x-api-version': xApiVersion,
1192
- },
1193
- errors: {
1194
- 401: `Unauthorized`,
1195
- 404: `Not Found`,
1196
- },
1197
- });
1198
- }
1199
- /**
1200
- * Add an item to the compare table
1201
- * Add an item to the compare table
1202
- * @param cartId
1203
- * @param itemId
1204
- * @param xApiVersion
1205
- * @returns ItemCartRecordDto OK
1206
- * @throws ApiError
1207
- */
1208
- public static addItemToCompareTableAsync(
1209
- cartId: string,
1210
- itemId: string,
1211
- xApiVersion?: string,
1212
- ): CancelablePromise<ItemCartRecordDto> {
1213
- return __request(OpenAPI, {
1214
- method: 'POST',
1215
- url: '/api/v2/CartService/Carts/{cartId}/Compare/{itemId}',
1216
- path: {
1217
- 'cartId': cartId,
1218
- 'itemId': itemId,
1219
- },
1220
- headers: {
1221
- 'x-api-version': xApiVersion,
1222
- },
1223
- errors: {
1224
- 401: `Unauthorized`,
1225
- 404: `Not Found`,
1226
- },
1227
- });
1228
- }
1229
- /**
1230
- * Remove an item from the compare table
1231
- * Remove an item from the compare table
1232
- * @param cartId
1233
- * @param itemId
1234
- * @param xApiVersion
1235
- * @returns ItemToCompareCartRecordDto OK
1236
- * @throws ApiError
1237
- */
1238
- public static removeItemFromCompareTableAsync(
1239
- cartId: string,
1240
- itemId: string,
1241
- xApiVersion?: string,
1242
- ): CancelablePromise<ItemToCompareCartRecordDto> {
1243
- return __request(OpenAPI, {
1244
- method: 'DELETE',
1245
- url: '/api/v2/CartService/Carts/{cartId}/Compare/{itemId}',
1246
- path: {
1247
- 'cartId': cartId,
1248
- 'itemId': itemId,
1249
- },
1250
- headers: {
1251
- 'x-api-version': xApiVersion,
1252
- },
1253
- errors: {
1254
- 401: `Unauthorized`,
1255
- 404: `Not Found`,
1256
- },
1257
- });
1258
- }
1259
- /**
1260
- * Assesses if an Item is already in the compare table
1261
- * Assesses if an Item is already in the compare table
1262
- * @param cartId
1263
- * @param itemId
1264
- * @param xApiVersion
1265
- * @returns BooleanEnvelope OK
1266
- * @throws ApiError
1267
- */
1268
- public static isItemInCompareTableAsync(
1269
- cartId: string,
1270
- itemId: string,
1271
- xApiVersion?: string,
1272
- ): CancelablePromise<BooleanEnvelope> {
1273
- return __request(OpenAPI, {
1274
- method: 'GET',
1275
- url: '/api/v2/CartService/Carts/{cartId}/Compare/Contains/{itemId}',
1276
- path: {
1277
- 'cartId': cartId,
1278
- 'itemId': itemId,
1279
- },
1280
- headers: {
1281
- 'x-api-version': xApiVersion,
1282
- },
1283
- errors: {
1284
- 401: `Unauthorized`,
1285
- 404: `Not Found`,
1286
- },
1287
- });
1288
- }
1289
- }