@epcc-sdk/sdks-shopper 0.0.26 → 0.0.28

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.
Files changed (64) hide show
  1. package/README.md +4 -0
  2. package/dist/client/@tanstack/react-query.gen.cjs +2790 -0
  3. package/dist/client/@tanstack/react-query.gen.cjs.map +1 -0
  4. package/dist/client/@tanstack/react-query.gen.d.cts +2877 -0
  5. package/dist/client/@tanstack/react-query.gen.d.ts +821 -794
  6. package/dist/client/@tanstack/react-query.gen.mjs +2647 -0
  7. package/dist/client/@tanstack/react-query.gen.mjs.map +1 -0
  8. package/dist/client/index.cjs +25 -0
  9. package/dist/client/index.cjs.map +1 -0
  10. package/dist/client/index.d.cts +3 -0
  11. package/dist/client/index.d.ts +3 -2
  12. package/dist/client/index.mjs +3 -0
  13. package/dist/client/index.mjs.map +1 -0
  14. package/dist/client/sdk.gen.cjs +1959 -0
  15. package/dist/client/sdk.gen.cjs.map +1 -0
  16. package/dist/client/{sdk.gen.js → sdk.gen.d.cts} +338 -1134
  17. package/dist/client/sdk.gen.d.ts +285 -273
  18. package/dist/client/sdk.gen.mjs +1812 -0
  19. package/dist/client/sdk.gen.mjs.map +1 -0
  20. package/dist/client/transformers.gen.cjs +821 -0
  21. package/dist/client/transformers.gen.cjs.map +1 -0
  22. package/dist/client/transformers.gen.d.cts +60 -0
  23. package/dist/client/transformers.gen.d.ts +60 -56
  24. package/dist/client/transformers.gen.mjs +742 -0
  25. package/dist/client/transformers.gen.mjs.map +1 -0
  26. package/dist/client/types.gen.cjs +17 -0
  27. package/dist/client/types.gen.cjs.map +1 -0
  28. package/dist/client/types.gen.d.cts +10820 -0
  29. package/dist/client/types.gen.d.ts +1399 -1127
  30. package/dist/client/types.gen.mjs +1 -0
  31. package/dist/client/types.gen.mjs.map +1 -0
  32. package/dist/index.cjs +40 -0
  33. package/dist/index.cjs.map +1 -0
  34. package/dist/index.d.cts +6 -0
  35. package/dist/index.d.ts +6 -6
  36. package/dist/index.mjs +11 -0
  37. package/dist/index.mjs.map +1 -0
  38. package/dist/utils/extract-media.cjs +54 -0
  39. package/dist/utils/extract-media.cjs.map +1 -0
  40. package/dist/utils/extract-media.d.cts +18 -0
  41. package/dist/utils/extract-media.d.ts +6 -3
  42. package/dist/utils/extract-media.mjs +30 -0
  43. package/dist/utils/extract-media.mjs.map +1 -0
  44. package/dist/utils/extract-product-image.cjs +35 -0
  45. package/dist/utils/extract-product-image.cjs.map +1 -0
  46. package/dist/utils/extract-product-image.d.cts +5 -0
  47. package/dist/utils/extract-product-image.d.ts +5 -2
  48. package/dist/utils/extract-product-image.mjs +11 -0
  49. package/dist/utils/extract-product-image.mjs.map +1 -0
  50. package/dist/utils/index.cjs +32 -0
  51. package/dist/utils/index.cjs.map +1 -0
  52. package/dist/utils/index.d.cts +3 -0
  53. package/dist/utils/index.d.ts +3 -2
  54. package/dist/utils/index.mjs +7 -0
  55. package/dist/utils/index.mjs.map +1 -0
  56. package/package.json +23 -15
  57. package/dist/client/@tanstack/react-query.gen.js +0 -2717
  58. package/dist/client/index.js +0 -3
  59. package/dist/client/transformers.gen.js +0 -789
  60. package/dist/client/types.gen.js +0 -2
  61. package/dist/index.js +0 -6
  62. package/dist/utils/extract-media.js +0 -54
  63. package/dist/utils/extract-product-image.js +0 -8
  64. package/dist/utils/index.js +0 -2
@@ -0,0 +1,1812 @@
1
+ import {
2
+ createClient,
3
+ createConfig,
4
+ urlSearchParamsBodySerializer
5
+ } from "@hey-api/client-fetch";
6
+ const client = createClient(createConfig());
7
+ const getByContextRelease = (options) => {
8
+ return (options?.client ?? client).get({
9
+ ...options,
10
+ security: [
11
+ {
12
+ scheme: "bearer",
13
+ type: "http"
14
+ }
15
+ ],
16
+ url: "/catalog"
17
+ });
18
+ };
19
+ const getByContextAllHierarchies = (options) => {
20
+ return (options?.client ?? client).get({
21
+ ...options,
22
+ security: [
23
+ {
24
+ scheme: "bearer",
25
+ type: "http"
26
+ }
27
+ ],
28
+ url: "/catalog/hierarchies"
29
+ });
30
+ };
31
+ const getByContextHierarchy = (options) => {
32
+ return (options?.client ?? client).get({
33
+ ...options,
34
+ security: [
35
+ {
36
+ scheme: "bearer",
37
+ type: "http"
38
+ }
39
+ ],
40
+ url: "/catalog/hierarchies/{hierarchy_id}"
41
+ });
42
+ };
43
+ const getByContextHierarchyNodes = (options) => {
44
+ return (options?.client ?? client).get({
45
+ ...options,
46
+ security: [
47
+ {
48
+ scheme: "bearer",
49
+ type: "http"
50
+ }
51
+ ],
52
+ url: "/catalog/hierarchies/{hierarchy_id}/nodes"
53
+ });
54
+ };
55
+ const getByContextHierarchyChildNodes = (options) => {
56
+ return (options?.client ?? client).get({
57
+ ...options,
58
+ security: [
59
+ {
60
+ scheme: "bearer",
61
+ type: "http"
62
+ }
63
+ ],
64
+ url: "/catalog/hierarchies/{hierarchy_id}/children"
65
+ });
66
+ };
67
+ const getByContextAllNodes = (options) => {
68
+ return (options?.client ?? client).get({
69
+ ...options,
70
+ security: [
71
+ {
72
+ scheme: "bearer",
73
+ type: "http"
74
+ }
75
+ ],
76
+ url: "/catalog/nodes"
77
+ });
78
+ };
79
+ const getByContextNode = (options) => {
80
+ return (options?.client ?? client).get({
81
+ ...options,
82
+ security: [
83
+ {
84
+ scheme: "bearer",
85
+ type: "http"
86
+ }
87
+ ],
88
+ url: "/catalog/nodes/{node_id}"
89
+ });
90
+ };
91
+ const getByContextChildNodes = (options) => {
92
+ return (options?.client ?? client).get({
93
+ ...options,
94
+ security: [
95
+ {
96
+ scheme: "bearer",
97
+ type: "http"
98
+ }
99
+ ],
100
+ url: "/catalog/nodes/{node_id}/relationships/children"
101
+ });
102
+ };
103
+ const getByContextAllProducts = (options) => {
104
+ return (options?.client ?? client).get({
105
+ ...options,
106
+ security: [
107
+ {
108
+ scheme: "bearer",
109
+ type: "http"
110
+ }
111
+ ],
112
+ url: "/catalog/products"
113
+ });
114
+ };
115
+ const getByContextProduct = (options) => {
116
+ return (options?.client ?? client).get({
117
+ ...options,
118
+ security: [
119
+ {
120
+ scheme: "bearer",
121
+ type: "http"
122
+ }
123
+ ],
124
+ url: "/catalog/products/{product_id}"
125
+ });
126
+ };
127
+ const getByContextComponentProductIds = (options) => {
128
+ return (options?.client ?? client).get({
129
+ ...options,
130
+ security: [
131
+ {
132
+ scheme: "bearer",
133
+ type: "http"
134
+ }
135
+ ],
136
+ url: "/catalog/products/{product_id}/relationships/component_products"
137
+ });
138
+ };
139
+ const getByContextChildProducts = (options) => {
140
+ return (options?.client ?? client).get({
141
+ ...options,
142
+ security: [
143
+ {
144
+ scheme: "bearer",
145
+ type: "http"
146
+ }
147
+ ],
148
+ url: "/catalog/products/{product_id}/relationships/children"
149
+ });
150
+ };
151
+ const getByContextProductsForHierarchy = (options) => {
152
+ return (options?.client ?? client).get({
153
+ ...options,
154
+ security: [
155
+ {
156
+ scheme: "bearer",
157
+ type: "http"
158
+ }
159
+ ],
160
+ url: "/catalog/hierarchies/{hierarchy_id}/products"
161
+ });
162
+ };
163
+ const getByContextProductsForNode = (options) => {
164
+ return (options?.client ?? client).get({
165
+ ...options,
166
+ security: [
167
+ {
168
+ scheme: "bearer",
169
+ type: "http"
170
+ }
171
+ ],
172
+ url: "/catalog/nodes/{node_id}/relationships/products"
173
+ });
174
+ };
175
+ const configureByContextProduct = (options) => {
176
+ return (options?.client ?? client).post({
177
+ ...options,
178
+ headers: {
179
+ "Content-Type": "application/json",
180
+ ...options?.headers
181
+ },
182
+ security: [
183
+ {
184
+ scheme: "bearer",
185
+ type: "http"
186
+ }
187
+ ],
188
+ url: "/catalog/products/{product_id}/configure"
189
+ });
190
+ };
191
+ const getCatalogs = (options) => {
192
+ return (options?.client ?? client).get({
193
+ ...options,
194
+ security: [
195
+ {
196
+ scheme: "bearer",
197
+ type: "http"
198
+ }
199
+ ],
200
+ url: "/catalogs"
201
+ });
202
+ };
203
+ const createCatalog = (options) => {
204
+ return (options?.client ?? client).post({
205
+ ...options,
206
+ headers: {
207
+ "Content-Type": "application/json",
208
+ ...options?.headers
209
+ },
210
+ security: [
211
+ {
212
+ scheme: "bearer",
213
+ type: "http"
214
+ }
215
+ ],
216
+ url: "/catalogs"
217
+ });
218
+ };
219
+ const deleteCatalogById = (options) => {
220
+ return (options?.client ?? client).delete({
221
+ ...options,
222
+ security: [
223
+ {
224
+ scheme: "bearer",
225
+ type: "http"
226
+ }
227
+ ],
228
+ url: "/catalogs/{catalog_id}"
229
+ });
230
+ };
231
+ const getCatalogById = (options) => {
232
+ return (options?.client ?? client).get({
233
+ ...options,
234
+ security: [
235
+ {
236
+ scheme: "bearer",
237
+ type: "http"
238
+ }
239
+ ],
240
+ url: "/catalogs/{catalog_id}"
241
+ });
242
+ };
243
+ const updateCatalog = (options) => {
244
+ return (options?.client ?? client).put({
245
+ ...options,
246
+ headers: {
247
+ "Content-Type": "application/json",
248
+ ...options?.headers
249
+ },
250
+ security: [
251
+ {
252
+ scheme: "bearer",
253
+ type: "http"
254
+ }
255
+ ],
256
+ url: "/catalogs/{catalog_id}"
257
+ });
258
+ };
259
+ const deleteReleases = (options) => {
260
+ return (options?.client ?? client).delete({
261
+ ...options,
262
+ security: [
263
+ {
264
+ scheme: "bearer",
265
+ type: "http"
266
+ }
267
+ ],
268
+ url: "/catalogs/{catalog_id}/releases"
269
+ });
270
+ };
271
+ const getReleases = (options) => {
272
+ return (options?.client ?? client).get({
273
+ ...options,
274
+ security: [
275
+ {
276
+ scheme: "bearer",
277
+ type: "http"
278
+ }
279
+ ],
280
+ url: "/catalogs/{catalog_id}/releases"
281
+ });
282
+ };
283
+ const publishRelease = (options) => {
284
+ return (options?.client ?? client).post({
285
+ ...options,
286
+ headers: {
287
+ "Content-Type": "application/json",
288
+ ...options?.headers
289
+ },
290
+ security: [
291
+ {
292
+ scheme: "bearer",
293
+ type: "http"
294
+ }
295
+ ],
296
+ url: "/catalogs/{catalog_id}/releases"
297
+ });
298
+ };
299
+ const deleteReleaseById = (options) => {
300
+ return (options?.client ?? client).delete({
301
+ ...options,
302
+ security: [
303
+ {
304
+ scheme: "bearer",
305
+ type: "http"
306
+ }
307
+ ],
308
+ url: "/catalogs/{catalog_id}/releases/{release_id}"
309
+ });
310
+ };
311
+ const getReleaseById = (options) => {
312
+ return (options?.client ?? client).get({
313
+ ...options,
314
+ security: [
315
+ {
316
+ scheme: "bearer",
317
+ type: "http"
318
+ }
319
+ ],
320
+ url: "/catalogs/{catalog_id}/releases/{release_id}"
321
+ });
322
+ };
323
+ const getRules = (options) => {
324
+ return (options?.client ?? client).get({
325
+ ...options,
326
+ security: [
327
+ {
328
+ scheme: "bearer",
329
+ type: "http"
330
+ }
331
+ ],
332
+ url: "/catalogs/rules"
333
+ });
334
+ };
335
+ const createRule = (options) => {
336
+ return (options?.client ?? client).post({
337
+ ...options,
338
+ headers: {
339
+ "Content-Type": "application/json",
340
+ ...options?.headers
341
+ },
342
+ security: [
343
+ {
344
+ scheme: "bearer",
345
+ type: "http"
346
+ }
347
+ ],
348
+ url: "/catalogs/rules"
349
+ });
350
+ };
351
+ const deleteRuleById = (options) => {
352
+ return (options?.client ?? client).delete({
353
+ ...options,
354
+ security: [
355
+ {
356
+ scheme: "bearer",
357
+ type: "http"
358
+ }
359
+ ],
360
+ url: "/catalogs/rules/{catalog_rule_id}"
361
+ });
362
+ };
363
+ const getRuleById = (options) => {
364
+ return (options?.client ?? client).get({
365
+ ...options,
366
+ security: [
367
+ {
368
+ scheme: "bearer",
369
+ type: "http"
370
+ }
371
+ ],
372
+ url: "/catalogs/rules/{catalog_rule_id}"
373
+ });
374
+ };
375
+ const updateRule = (options) => {
376
+ return (options?.client ?? client).put({
377
+ ...options,
378
+ headers: {
379
+ "Content-Type": "application/json",
380
+ ...options?.headers
381
+ },
382
+ security: [
383
+ {
384
+ scheme: "bearer",
385
+ type: "http"
386
+ }
387
+ ],
388
+ url: "/catalogs/rules/{catalog_rule_id}"
389
+ });
390
+ };
391
+ const getAllHierarchies = (options) => {
392
+ return (options?.client ?? client).get({
393
+ ...options,
394
+ security: [
395
+ {
396
+ scheme: "bearer",
397
+ type: "http"
398
+ }
399
+ ],
400
+ url: "/catalogs/{catalog_id}/releases/{release_id}/hierarchies"
401
+ });
402
+ };
403
+ const getHierarchy = (options) => {
404
+ return (options?.client ?? client).get({
405
+ ...options,
406
+ security: [
407
+ {
408
+ scheme: "bearer",
409
+ type: "http"
410
+ }
411
+ ],
412
+ url: "/catalogs/{catalog_id}/releases/{release_id}/hierarchies/{hierarchy_id}"
413
+ });
414
+ };
415
+ const getHierarchyNodes = (options) => {
416
+ return (options?.client ?? client).get({
417
+ ...options,
418
+ security: [
419
+ {
420
+ scheme: "bearer",
421
+ type: "http"
422
+ }
423
+ ],
424
+ url: "/catalogs/{catalog_id}/releases/{release_id}/hierarchies/{hierarchy_id}/nodes"
425
+ });
426
+ };
427
+ const getHierarchyChildNodes = (options) => {
428
+ return (options?.client ?? client).get({
429
+ ...options,
430
+ security: [
431
+ {
432
+ scheme: "bearer",
433
+ type: "http"
434
+ }
435
+ ],
436
+ url: "/catalogs/{catalog_id}/releases/{release_id}/hierarchies/{hierarchy_id}/children"
437
+ });
438
+ };
439
+ const getAllNodes = (options) => {
440
+ return (options?.client ?? client).get({
441
+ ...options,
442
+ security: [
443
+ {
444
+ scheme: "bearer",
445
+ type: "http"
446
+ }
447
+ ],
448
+ url: "/catalogs/{catalog_id}/releases/{release_id}/nodes"
449
+ });
450
+ };
451
+ const getNode = (options) => {
452
+ return (options?.client ?? client).get({
453
+ ...options,
454
+ security: [
455
+ {
456
+ scheme: "bearer",
457
+ type: "http"
458
+ }
459
+ ],
460
+ url: "/catalogs/{catalog_id}/releases/{release_id}/nodes/{node_id}"
461
+ });
462
+ };
463
+ const getChildNodes = (options) => {
464
+ return (options?.client ?? client).get({
465
+ ...options,
466
+ security: [
467
+ {
468
+ scheme: "bearer",
469
+ type: "http"
470
+ }
471
+ ],
472
+ url: "/catalogs/{catalog_id}/releases/{release_id}/nodes/{node_id}/relationships/children"
473
+ });
474
+ };
475
+ const getAllProducts = (options) => {
476
+ return (options?.client ?? client).get({
477
+ ...options,
478
+ security: [
479
+ {
480
+ scheme: "bearer",
481
+ type: "http"
482
+ }
483
+ ],
484
+ url: "/catalogs/{catalog_id}/releases/{release_id}/products"
485
+ });
486
+ };
487
+ const getProduct = (options) => {
488
+ return (options?.client ?? client).get({
489
+ ...options,
490
+ security: [
491
+ {
492
+ scheme: "bearer",
493
+ type: "http"
494
+ }
495
+ ],
496
+ url: "/catalogs/{catalog_id}/releases/{release_id}/products/{product_id}"
497
+ });
498
+ };
499
+ const getComponentProductIds = (options) => {
500
+ return (options?.client ?? client).get({
501
+ ...options,
502
+ security: [
503
+ {
504
+ scheme: "bearer",
505
+ type: "http"
506
+ }
507
+ ],
508
+ url: "/catalogs/{catalog_id}/releases/{release_id}/products/{product_id}/relationships/component_products"
509
+ });
510
+ };
511
+ const getChildProducts = (options) => {
512
+ return (options?.client ?? client).get({
513
+ ...options,
514
+ security: [
515
+ {
516
+ scheme: "bearer",
517
+ type: "http"
518
+ }
519
+ ],
520
+ url: "/catalogs/{catalog_id}/releases/{release_id}/products/{product_id}/relationships/children"
521
+ });
522
+ };
523
+ const getProductsForHierarchy = (options) => {
524
+ return (options?.client ?? client).get({
525
+ ...options,
526
+ security: [
527
+ {
528
+ scheme: "bearer",
529
+ type: "http"
530
+ }
531
+ ],
532
+ url: "/catalogs/{catalog_id}/releases/{release_id}/hierarchies/{hierarchy_id}/products"
533
+ });
534
+ };
535
+ const getProductsForNode = (options) => {
536
+ return (options?.client ?? client).get({
537
+ ...options,
538
+ security: [
539
+ {
540
+ scheme: "bearer",
541
+ type: "http"
542
+ }
543
+ ],
544
+ url: "/catalogs/{catalog_id}/releases/{release_id}/nodes/{node_id}/relationships/products"
545
+ });
546
+ };
547
+ const getCarts = (options) => {
548
+ return (options?.client ?? client).get({
549
+ ...options,
550
+ security: [
551
+ {
552
+ scheme: "bearer",
553
+ type: "http"
554
+ }
555
+ ],
556
+ url: "/v2/carts"
557
+ });
558
+ };
559
+ const createACart = (options) => {
560
+ return (options?.client ?? client).post({
561
+ ...options,
562
+ headers: {
563
+ "Content-Type": "application/json",
564
+ ...options?.headers
565
+ },
566
+ security: [
567
+ {
568
+ scheme: "bearer",
569
+ type: "http"
570
+ }
571
+ ],
572
+ url: "/v2/carts"
573
+ });
574
+ };
575
+ const deleteACart = (options) => {
576
+ return (options?.client ?? client).delete({
577
+ ...options,
578
+ security: [
579
+ {
580
+ scheme: "bearer",
581
+ type: "http"
582
+ }
583
+ ],
584
+ url: "/v2/carts/{cartID}"
585
+ });
586
+ };
587
+ const getCart = (options) => {
588
+ return (options?.client ?? client).get({
589
+ ...options,
590
+ security: [
591
+ {
592
+ scheme: "bearer",
593
+ type: "http"
594
+ }
595
+ ],
596
+ url: "/v2/carts/{cartID}"
597
+ });
598
+ };
599
+ const updateACart = (options) => {
600
+ return (options?.client ?? client).put({
601
+ ...options,
602
+ headers: {
603
+ "Content-Type": "application/json",
604
+ ...options?.headers
605
+ },
606
+ security: [
607
+ {
608
+ scheme: "bearer",
609
+ type: "http"
610
+ }
611
+ ],
612
+ url: "/v2/carts/{cartID}"
613
+ });
614
+ };
615
+ const deleteAllCartItems = (options) => {
616
+ return (options?.client ?? client).delete({
617
+ ...options,
618
+ security: [
619
+ {
620
+ scheme: "bearer",
621
+ type: "http"
622
+ }
623
+ ],
624
+ url: "/v2/carts/{cartID}/items"
625
+ });
626
+ };
627
+ const getCartItems = (options) => {
628
+ return (options?.client ?? client).get({
629
+ ...options,
630
+ security: [
631
+ {
632
+ scheme: "bearer",
633
+ type: "http"
634
+ }
635
+ ],
636
+ url: "/v2/carts/{cartID}/items"
637
+ });
638
+ };
639
+ const manageCarts = (options) => {
640
+ return (options?.client ?? client).post({
641
+ ...options,
642
+ headers: {
643
+ "Content-Type": "application/json",
644
+ ...options?.headers
645
+ },
646
+ security: [
647
+ {
648
+ scheme: "bearer",
649
+ type: "http"
650
+ }
651
+ ],
652
+ url: "/v2/carts/{cartID}/items"
653
+ });
654
+ };
655
+ const bulkUpdateItemsInCart = (options) => {
656
+ return (options?.client ?? client).put({
657
+ ...options,
658
+ headers: {
659
+ "Content-Type": "application/json",
660
+ ...options?.headers
661
+ },
662
+ security: [
663
+ {
664
+ scheme: "bearer",
665
+ type: "http"
666
+ }
667
+ ],
668
+ url: "/v2/carts/{cartID}/items"
669
+ });
670
+ };
671
+ const deleteACartItem = (options) => {
672
+ return (options?.client ?? client).delete({
673
+ ...options,
674
+ security: [
675
+ {
676
+ scheme: "bearer",
677
+ type: "http"
678
+ }
679
+ ],
680
+ url: "/v2/carts/{cartID}/items/{cartitemID}"
681
+ });
682
+ };
683
+ const updateACartItem = (options) => {
684
+ return (options?.client ?? client).put({
685
+ ...options,
686
+ headers: {
687
+ "Content-Type": "application/json",
688
+ ...options?.headers
689
+ },
690
+ security: [
691
+ {
692
+ scheme: "bearer",
693
+ type: "http"
694
+ }
695
+ ],
696
+ url: "/v2/carts/{cartID}/items/{cartitemID}"
697
+ });
698
+ };
699
+ const deleteAccountCartAssociation = (options) => {
700
+ return (options?.client ?? client).delete({
701
+ ...options,
702
+ headers: {
703
+ "Content-Type": "application/json",
704
+ ...options?.headers
705
+ },
706
+ security: [
707
+ {
708
+ scheme: "bearer",
709
+ type: "http"
710
+ }
711
+ ],
712
+ url: "/v2/carts/{cartID}/relationships/accounts"
713
+ });
714
+ };
715
+ const createAccountCartAssociation = (options) => {
716
+ return (options?.client ?? client).post({
717
+ ...options,
718
+ headers: {
719
+ "Content-Type": "application/json",
720
+ ...options?.headers
721
+ },
722
+ security: [
723
+ {
724
+ scheme: "bearer",
725
+ type: "http"
726
+ }
727
+ ],
728
+ url: "/v2/carts/{cartID}/relationships/accounts"
729
+ });
730
+ };
731
+ const deleteCustomerCartAssociation = (options) => {
732
+ return (options?.client ?? client).delete({
733
+ ...options,
734
+ headers: {
735
+ "Content-Type": "application/json",
736
+ ...options?.headers
737
+ },
738
+ security: [
739
+ {
740
+ scheme: "bearer",
741
+ type: "http"
742
+ }
743
+ ],
744
+ url: "/v2/carts/{cartID}/relationships/customers"
745
+ });
746
+ };
747
+ const createCustomerCartAssociation = (options) => {
748
+ return (options?.client ?? client).post({
749
+ ...options,
750
+ headers: {
751
+ "Content-Type": "application/json",
752
+ ...options?.headers
753
+ },
754
+ security: [
755
+ {
756
+ scheme: "bearer",
757
+ type: "http"
758
+ }
759
+ ],
760
+ url: "/v2/carts/{cartID}/relationships/customers"
761
+ });
762
+ };
763
+ const deleteAPromotionViaPromotionCode = (options) => {
764
+ return (options?.client ?? client).delete({
765
+ ...options,
766
+ security: [
767
+ {
768
+ scheme: "bearer",
769
+ type: "http"
770
+ }
771
+ ],
772
+ url: "/v2/carts/{cartID}/discounts/{promoCode}"
773
+ });
774
+ };
775
+ const addTaxItemToCart = (options) => {
776
+ return (options?.client ?? client).post({
777
+ ...options,
778
+ headers: {
779
+ "Content-Type": "application/json",
780
+ ...options?.headers
781
+ },
782
+ security: [
783
+ {
784
+ scheme: "bearer",
785
+ type: "http"
786
+ }
787
+ ],
788
+ url: "/v2/carts/{cartID}/items/{cartitemID}/taxes"
789
+ });
790
+ };
791
+ const bulkDeleteTaxItemsFromCart = (options) => {
792
+ return (options?.client ?? client).delete({
793
+ ...options,
794
+ security: [
795
+ {
796
+ scheme: "bearer",
797
+ type: "http"
798
+ }
799
+ ],
800
+ url: "/v2/carts/{cartID}/taxes"
801
+ });
802
+ };
803
+ const bulkAddTaxItemsToCart = (options) => {
804
+ return (options?.client ?? client).post({
805
+ ...options,
806
+ headers: {
807
+ "Content-Type": "application/json",
808
+ ...options?.headers
809
+ },
810
+ security: [
811
+ {
812
+ scheme: "bearer",
813
+ type: "http"
814
+ }
815
+ ],
816
+ url: "/v2/carts/{cartID}/taxes"
817
+ });
818
+ };
819
+ const deleteATaxItem = (options) => {
820
+ return (options?.client ?? client).delete({
821
+ ...options,
822
+ security: [
823
+ {
824
+ scheme: "bearer",
825
+ type: "http"
826
+ }
827
+ ],
828
+ url: "/v2/carts/{cartID}/items/{cartitemID}/taxes/{taxitemID}"
829
+ });
830
+ };
831
+ const updateATaxItem = (options) => {
832
+ return (options?.client ?? client).put({
833
+ ...options,
834
+ headers: {
835
+ "Content-Type": "application/json",
836
+ ...options?.headers
837
+ },
838
+ security: [
839
+ {
840
+ scheme: "bearer",
841
+ type: "http"
842
+ }
843
+ ],
844
+ url: "/v2/carts/{cartID}/items/{cartitemID}/taxes/{taxitemID}"
845
+ });
846
+ };
847
+ const bulkDeleteCustomDiscountsFromCart = (options) => {
848
+ return (options?.client ?? client).delete({
849
+ ...options,
850
+ security: [
851
+ {
852
+ scheme: "bearer",
853
+ type: "http"
854
+ }
855
+ ],
856
+ url: "/v2/carts/{cartID}/custom-discounts"
857
+ });
858
+ };
859
+ const bulkAddCustomDiscountsToCart = (options) => {
860
+ return (options?.client ?? client).post({
861
+ ...options,
862
+ headers: {
863
+ "Content-Type": "application/json",
864
+ ...options?.headers
865
+ },
866
+ security: [
867
+ {
868
+ scheme: "bearer",
869
+ type: "http"
870
+ }
871
+ ],
872
+ url: "/v2/carts/{cartID}/custom-discounts"
873
+ });
874
+ };
875
+ const deleteCustomDiscountFromCart = (options) => {
876
+ return (options?.client ?? client).delete({
877
+ ...options,
878
+ security: [
879
+ {
880
+ scheme: "bearer",
881
+ type: "http"
882
+ }
883
+ ],
884
+ url: "/v2/carts/{cartID}/custom-discounts/{customdiscountID}"
885
+ });
886
+ };
887
+ const updateCustomDiscountForCart = (options) => {
888
+ return (options?.client ?? client).put({
889
+ ...options,
890
+ headers: {
891
+ "Content-Type": "application/json",
892
+ ...options?.headers
893
+ },
894
+ security: [
895
+ {
896
+ scheme: "bearer",
897
+ type: "http"
898
+ }
899
+ ],
900
+ url: "/v2/carts/{cartID}/custom-discounts/{customdiscountID}"
901
+ });
902
+ };
903
+ const addCustomDiscountToCartItem = (options) => {
904
+ return (options?.client ?? client).post({
905
+ ...options,
906
+ headers: {
907
+ "Content-Type": "application/json",
908
+ ...options?.headers
909
+ },
910
+ security: [
911
+ {
912
+ scheme: "bearer",
913
+ type: "http"
914
+ }
915
+ ],
916
+ url: "/v2/carts/{cartID}/items/{cartitemID}/custom-discounts"
917
+ });
918
+ };
919
+ const deleteCustomDiscountFromCartItem = (options) => {
920
+ return (options?.client ?? client).delete({
921
+ ...options,
922
+ security: [
923
+ {
924
+ scheme: "bearer",
925
+ type: "http"
926
+ }
927
+ ],
928
+ url: "/v2/carts/{cartID}/items/{cartitemID}/custom-discounts/{customdiscountID}"
929
+ });
930
+ };
931
+ const updateCustomDiscountForCartItem = (options) => {
932
+ return (options?.client ?? client).put({
933
+ ...options,
934
+ headers: {
935
+ "Content-Type": "application/json",
936
+ ...options?.headers
937
+ },
938
+ security: [
939
+ {
940
+ scheme: "bearer",
941
+ type: "http"
942
+ }
943
+ ],
944
+ url: "/v2/carts/{cartID}/items/{cartitemID}/custom-discounts/{customdiscountID}"
945
+ });
946
+ };
947
+ const createCartPaymentIntent = (options) => {
948
+ return (options?.client ?? client).post({
949
+ ...options,
950
+ headers: {
951
+ "Content-Type": "application/json",
952
+ ...options?.headers
953
+ },
954
+ security: [
955
+ {
956
+ scheme: "bearer",
957
+ type: "http"
958
+ }
959
+ ],
960
+ url: "/v2/carts/{cartID}/payments"
961
+ });
962
+ };
963
+ const checkoutApi = (options) => {
964
+ return (options?.client ?? client).post({
965
+ ...options,
966
+ headers: {
967
+ "Content-Type": "application/json",
968
+ ...options?.headers
969
+ },
970
+ security: [
971
+ {
972
+ scheme: "bearer",
973
+ type: "http"
974
+ }
975
+ ],
976
+ url: "/v2/carts/{cartID}/checkout"
977
+ });
978
+ };
979
+ const getCustomerOrders = (options) => {
980
+ return (options?.client ?? client).get({
981
+ ...options,
982
+ security: [
983
+ {
984
+ scheme: "bearer",
985
+ type: "http"
986
+ }
987
+ ],
988
+ url: "/v2/orders"
989
+ });
990
+ };
991
+ const getAnOrder = (options) => {
992
+ return (options?.client ?? client).get({
993
+ ...options,
994
+ security: [
995
+ {
996
+ scheme: "bearer",
997
+ type: "http"
998
+ }
999
+ ],
1000
+ url: "/v2/orders/{orderID}"
1001
+ });
1002
+ };
1003
+ const updateAnOrder = (options) => {
1004
+ return (options?.client ?? client).put({
1005
+ ...options,
1006
+ headers: {
1007
+ "Content-Type": "application/json",
1008
+ ...options?.headers
1009
+ },
1010
+ security: [
1011
+ {
1012
+ scheme: "bearer",
1013
+ type: "http"
1014
+ }
1015
+ ],
1016
+ url: "/v2/orders/{orderID}"
1017
+ });
1018
+ };
1019
+ const getOrderItems = (options) => {
1020
+ return (options?.client ?? client).get({
1021
+ ...options,
1022
+ security: [
1023
+ {
1024
+ scheme: "bearer",
1025
+ type: "http"
1026
+ }
1027
+ ],
1028
+ url: "/v2/orders/{orderID}/items"
1029
+ });
1030
+ };
1031
+ const anonymizeOrders = (options) => {
1032
+ return (options?.client ?? client).post({
1033
+ ...options,
1034
+ headers: {
1035
+ "Content-Type": "application/json",
1036
+ ...options?.headers
1037
+ },
1038
+ security: [
1039
+ {
1040
+ scheme: "bearer",
1041
+ type: "http"
1042
+ }
1043
+ ],
1044
+ url: "/v2/orders/anonymize"
1045
+ });
1046
+ };
1047
+ const paymentSetup = (options) => {
1048
+ return (options?.client ?? client).post({
1049
+ ...options,
1050
+ headers: {
1051
+ "Content-Type": "application/json",
1052
+ ...options?.headers
1053
+ },
1054
+ security: [
1055
+ {
1056
+ scheme: "bearer",
1057
+ type: "http"
1058
+ }
1059
+ ],
1060
+ url: "/v2/orders/{orderID}/payments"
1061
+ });
1062
+ };
1063
+ const confirmPayment = (options) => {
1064
+ return (options?.client ?? client).post({
1065
+ ...options,
1066
+ headers: {
1067
+ "Content-Type": "application/json",
1068
+ ...options?.headers
1069
+ },
1070
+ security: [
1071
+ {
1072
+ scheme: "bearer",
1073
+ type: "http"
1074
+ }
1075
+ ],
1076
+ url: "/v2/orders/{orderID}/transactions/{transactionID}/confirm"
1077
+ });
1078
+ };
1079
+ const captureATransaction = (options) => {
1080
+ return (options?.client ?? client).post({
1081
+ ...options,
1082
+ headers: {
1083
+ "Content-Type": "application/json",
1084
+ ...options?.headers
1085
+ },
1086
+ security: [
1087
+ {
1088
+ scheme: "bearer",
1089
+ type: "http"
1090
+ }
1091
+ ],
1092
+ url: "/v2/orders/{orderID}/transactions/{transactionID}/capture"
1093
+ });
1094
+ };
1095
+ const refundATransaction = (options) => {
1096
+ return (options?.client ?? client).post({
1097
+ ...options,
1098
+ headers: {
1099
+ "Content-Type": "application/json",
1100
+ ...options?.headers
1101
+ },
1102
+ security: [
1103
+ {
1104
+ scheme: "bearer",
1105
+ type: "http"
1106
+ }
1107
+ ],
1108
+ url: "/v2/orders/{orderID}/transactions/{transactionID}/refund"
1109
+ });
1110
+ };
1111
+ const getOrderTransactions = (options) => {
1112
+ return (options?.client ?? client).get({
1113
+ ...options,
1114
+ security: [
1115
+ {
1116
+ scheme: "bearer",
1117
+ type: "http"
1118
+ }
1119
+ ],
1120
+ url: "/v2/orders/{orderID}/transactions"
1121
+ });
1122
+ };
1123
+ const getATransaction = (options) => {
1124
+ return (options?.client ?? client).get({
1125
+ ...options,
1126
+ security: [
1127
+ {
1128
+ scheme: "bearer",
1129
+ type: "http"
1130
+ }
1131
+ ],
1132
+ url: "/v2/orders/{orderID}/transactions/{transactionID}"
1133
+ });
1134
+ };
1135
+ const cancelATransaction = (options) => {
1136
+ return (options?.client ?? client).post({
1137
+ ...options,
1138
+ headers: {
1139
+ "Content-Type": "application/json",
1140
+ ...options?.headers
1141
+ },
1142
+ security: [
1143
+ {
1144
+ scheme: "bearer",
1145
+ type: "http"
1146
+ }
1147
+ ],
1148
+ url: "/v2/orders/{orderID}/transactions/{transactionID}/cancel"
1149
+ });
1150
+ };
1151
+ const getSubscriptionProduct = (options) => {
1152
+ return (options?.client ?? client).get({
1153
+ ...options,
1154
+ security: [
1155
+ {
1156
+ scheme: "bearer",
1157
+ type: "http"
1158
+ }
1159
+ ],
1160
+ url: "/v2/subscriptions/products/{product_uuid}"
1161
+ });
1162
+ };
1163
+ const getPlan = (options) => {
1164
+ return (options?.client ?? client).get({
1165
+ ...options,
1166
+ security: [
1167
+ {
1168
+ scheme: "bearer",
1169
+ type: "http"
1170
+ }
1171
+ ],
1172
+ url: "/v2/subscriptions/plans/{plan_uuid}"
1173
+ });
1174
+ };
1175
+ const listOfferings = (options) => {
1176
+ return (options?.client ?? client).get({
1177
+ ...options,
1178
+ security: [
1179
+ {
1180
+ scheme: "bearer",
1181
+ type: "http"
1182
+ }
1183
+ ],
1184
+ url: "/v2/subscriptions/offerings"
1185
+ });
1186
+ };
1187
+ const getOffering = (options) => {
1188
+ return (options?.client ?? client).get({
1189
+ ...options,
1190
+ security: [
1191
+ {
1192
+ scheme: "bearer",
1193
+ type: "http"
1194
+ }
1195
+ ],
1196
+ url: "/v2/subscriptions/offerings/{offering_uuid}"
1197
+ });
1198
+ };
1199
+ const listOfferingPlans = (options) => {
1200
+ return (options?.client ?? client).get({
1201
+ ...options,
1202
+ security: [
1203
+ {
1204
+ scheme: "bearer",
1205
+ type: "http"
1206
+ }
1207
+ ],
1208
+ url: "/v2/subscriptions/offerings/{offering_uuid}/plans"
1209
+ });
1210
+ };
1211
+ const listOfferingFeatures = (options) => {
1212
+ return (options?.client ?? client).get({
1213
+ ...options,
1214
+ security: [
1215
+ {
1216
+ scheme: "bearer",
1217
+ type: "http"
1218
+ }
1219
+ ],
1220
+ url: "/v2/subscriptions/offerings/{offering_uuid}/features"
1221
+ });
1222
+ };
1223
+ const listOfferingProducts = (options) => {
1224
+ return (options?.client ?? client).get({
1225
+ ...options,
1226
+ security: [
1227
+ {
1228
+ scheme: "bearer",
1229
+ type: "http"
1230
+ }
1231
+ ],
1232
+ url: "/v2/subscriptions/offerings/{offering_uuid}/products"
1233
+ });
1234
+ };
1235
+ const listSubscriptions = (options) => {
1236
+ return (options?.client ?? client).get({
1237
+ ...options,
1238
+ security: [
1239
+ {
1240
+ scheme: "bearer",
1241
+ type: "http"
1242
+ }
1243
+ ],
1244
+ url: "/v2/subscriptions/subscriptions"
1245
+ });
1246
+ };
1247
+ const getSubscription = (options) => {
1248
+ return (options?.client ?? client).get({
1249
+ ...options,
1250
+ security: [
1251
+ {
1252
+ scheme: "bearer",
1253
+ type: "http"
1254
+ }
1255
+ ],
1256
+ url: "/v2/subscriptions/subscriptions/{subscription_uuid}"
1257
+ });
1258
+ };
1259
+ const listSubscriptionProducts = (options) => {
1260
+ return (options?.client ?? client).get({
1261
+ ...options,
1262
+ security: [
1263
+ {
1264
+ scheme: "bearer",
1265
+ type: "http"
1266
+ }
1267
+ ],
1268
+ url: "/v2/subscriptions/subscriptions/{subscription_uuid}/products"
1269
+ });
1270
+ };
1271
+ const listSubscriptionPlans = (options) => {
1272
+ return (options?.client ?? client).get({
1273
+ ...options,
1274
+ security: [
1275
+ {
1276
+ scheme: "bearer",
1277
+ type: "http"
1278
+ }
1279
+ ],
1280
+ url: "/v2/subscriptions/subscriptions/{subscription_uuid}/plans"
1281
+ });
1282
+ };
1283
+ const listSubscriptionStates = (options) => {
1284
+ return (options?.client ?? client).get({
1285
+ ...options,
1286
+ security: [
1287
+ {
1288
+ scheme: "bearer",
1289
+ type: "http"
1290
+ }
1291
+ ],
1292
+ url: "/v2/subscriptions/subscriptions/{subscription_uuid}/states"
1293
+ });
1294
+ };
1295
+ const getSubscriptionState = (options) => {
1296
+ return (options?.client ?? client).get({
1297
+ ...options,
1298
+ security: [
1299
+ {
1300
+ scheme: "bearer",
1301
+ type: "http"
1302
+ }
1303
+ ],
1304
+ url: "/v2/subscriptions/subscriptions/{subscription_uuid}/states/{state_uuid}"
1305
+ });
1306
+ };
1307
+ const listSubscriptionInvoices = (options) => {
1308
+ return (options?.client ?? client).get({
1309
+ ...options,
1310
+ security: [
1311
+ {
1312
+ scheme: "bearer",
1313
+ type: "http"
1314
+ }
1315
+ ],
1316
+ url: "/v2/subscriptions/subscriptions/{subscription_uuid}/invoices"
1317
+ });
1318
+ };
1319
+ const listSubscriptionInvoicePayments = (options) => {
1320
+ return (options?.client ?? client).get({
1321
+ ...options,
1322
+ security: [
1323
+ {
1324
+ scheme: "bearer",
1325
+ type: "http"
1326
+ }
1327
+ ],
1328
+ url: "/v2/subscriptions/subscriptions/{subscription_uuid}/invoices/{invoice_uuid}/payments"
1329
+ });
1330
+ };
1331
+ const getSubscriptionInvoicePayment = (options) => {
1332
+ return (options?.client ?? client).get({
1333
+ ...options,
1334
+ security: [
1335
+ {
1336
+ scheme: "bearer",
1337
+ type: "http"
1338
+ }
1339
+ ],
1340
+ url: "/v2/subscriptions/subscriptions/{subscription_uuid}/invoices/{invoice_uuid}/payments/{payment_uuid}"
1341
+ });
1342
+ };
1343
+ const getSubscriptionInvoice = (options) => {
1344
+ return (options?.client ?? client).get({
1345
+ ...options,
1346
+ security: [
1347
+ {
1348
+ scheme: "bearer",
1349
+ type: "http"
1350
+ }
1351
+ ],
1352
+ url: "/v2/subscriptions/subscriptions/{subscription_uuid}/invoices/{invoice_uuid}"
1353
+ });
1354
+ };
1355
+ const listInvoices = (options) => {
1356
+ return (options?.client ?? client).get({
1357
+ ...options,
1358
+ security: [
1359
+ {
1360
+ scheme: "bearer",
1361
+ type: "http"
1362
+ }
1363
+ ],
1364
+ url: "/v2/subscriptions/invoices"
1365
+ });
1366
+ };
1367
+ const getInvoice = (options) => {
1368
+ return (options?.client ?? client).get({
1369
+ ...options,
1370
+ security: [
1371
+ {
1372
+ scheme: "bearer",
1373
+ type: "http"
1374
+ }
1375
+ ],
1376
+ url: "/v2/subscriptions/invoices/{invoice_uuid}"
1377
+ });
1378
+ };
1379
+ const getFeature = (options) => {
1380
+ return (options?.client ?? client).get({
1381
+ ...options,
1382
+ security: [
1383
+ {
1384
+ scheme: "bearer",
1385
+ type: "http"
1386
+ }
1387
+ ],
1388
+ url: "/v2/subscriptions/features/{feature_uuid}"
1389
+ });
1390
+ };
1391
+ const getStock = (options) => {
1392
+ return (options?.client ?? client).get({
1393
+ ...options,
1394
+ security: [
1395
+ {
1396
+ scheme: "bearer",
1397
+ type: "http"
1398
+ }
1399
+ ],
1400
+ url: "/v2/inventories/{product_uuid}"
1401
+ });
1402
+ };
1403
+ const listLocations = (options) => {
1404
+ return (options?.client ?? client).get({
1405
+ ...options,
1406
+ security: [
1407
+ {
1408
+ scheme: "bearer",
1409
+ type: "http"
1410
+ }
1411
+ ],
1412
+ url: "/v2/inventories/locations"
1413
+ });
1414
+ };
1415
+ const createAnAccessToken = (options) => {
1416
+ return (options?.client ?? client).post({
1417
+ ...options,
1418
+ ...urlSearchParamsBodySerializer,
1419
+ headers: {
1420
+ "Content-Type": "application/x-www-form-urlencoded",
1421
+ ...options?.headers
1422
+ },
1423
+ url: "/oauth/access_token"
1424
+ });
1425
+ };
1426
+ const getV2AccountAddresses = (options) => {
1427
+ return (options?.client ?? client).get({
1428
+ ...options,
1429
+ security: [
1430
+ {
1431
+ scheme: "bearer",
1432
+ type: "http"
1433
+ }
1434
+ ],
1435
+ url: "/v2/accounts/{accountID}/addresses"
1436
+ });
1437
+ };
1438
+ const postV2AccountAddress = (options) => {
1439
+ return (options?.client ?? client).post({
1440
+ ...options,
1441
+ headers: {
1442
+ "Content-Type": "application/json",
1443
+ ...options?.headers
1444
+ },
1445
+ security: [
1446
+ {
1447
+ scheme: "bearer",
1448
+ type: "http"
1449
+ }
1450
+ ],
1451
+ url: "/v2/accounts/{accountID}/addresses"
1452
+ });
1453
+ };
1454
+ const deleteV2AccountAddress = (options) => {
1455
+ return (options?.client ?? client).delete({
1456
+ ...options,
1457
+ security: [
1458
+ {
1459
+ scheme: "bearer",
1460
+ type: "http"
1461
+ }
1462
+ ],
1463
+ url: "/v2/accounts/{accountID}/addresses/{addressID}"
1464
+ });
1465
+ };
1466
+ const getV2AccountAddress = (options) => {
1467
+ return (options?.client ?? client).get({
1468
+ ...options,
1469
+ security: [
1470
+ {
1471
+ scheme: "bearer",
1472
+ type: "http"
1473
+ }
1474
+ ],
1475
+ url: "/v2/accounts/{accountID}/addresses/{addressID}"
1476
+ });
1477
+ };
1478
+ const putV2AccountAddress = (options) => {
1479
+ return (options?.client ?? client).put({
1480
+ ...options,
1481
+ headers: {
1482
+ "Content-Type": "application/json",
1483
+ ...options?.headers
1484
+ },
1485
+ security: [
1486
+ {
1487
+ scheme: "bearer",
1488
+ type: "http"
1489
+ }
1490
+ ],
1491
+ url: "/v2/accounts/{accountID}/addresses/{addressID}"
1492
+ });
1493
+ };
1494
+ const getV2Accounts = (options) => {
1495
+ return (options?.client ?? client).get({
1496
+ ...options,
1497
+ security: [
1498
+ {
1499
+ scheme: "bearer",
1500
+ type: "http"
1501
+ }
1502
+ ],
1503
+ url: "/v2/accounts"
1504
+ });
1505
+ };
1506
+ const postV2Accounts = (options) => {
1507
+ return (options?.client ?? client).post({
1508
+ ...options,
1509
+ headers: {
1510
+ "Content-Type": "application/json",
1511
+ ...options?.headers
1512
+ },
1513
+ security: [
1514
+ {
1515
+ scheme: "bearer",
1516
+ type: "http"
1517
+ }
1518
+ ],
1519
+ url: "/v2/accounts"
1520
+ });
1521
+ };
1522
+ const getV2AccountsAccountId = (options) => {
1523
+ return (options?.client ?? client).get({
1524
+ ...options,
1525
+ security: [
1526
+ {
1527
+ scheme: "bearer",
1528
+ type: "http"
1529
+ }
1530
+ ],
1531
+ url: "/v2/accounts/{accountID}"
1532
+ });
1533
+ };
1534
+ const putV2AccountsAccountId = (options) => {
1535
+ return (options?.client ?? client).put({
1536
+ ...options,
1537
+ headers: {
1538
+ "Content-Type": "application/json",
1539
+ ...options?.headers
1540
+ },
1541
+ security: [
1542
+ {
1543
+ scheme: "bearer",
1544
+ type: "http"
1545
+ }
1546
+ ],
1547
+ url: "/v2/accounts/{accountID}"
1548
+ });
1549
+ };
1550
+ const getV2AccountMembers = (options) => {
1551
+ return (options?.client ?? client).get({
1552
+ ...options,
1553
+ security: [
1554
+ {
1555
+ scheme: "bearer",
1556
+ type: "http"
1557
+ }
1558
+ ],
1559
+ url: "/v2/account-members"
1560
+ });
1561
+ };
1562
+ const getV2AccountMembersAccountMemberId = (options) => {
1563
+ return (options?.client ?? client).get({
1564
+ ...options,
1565
+ security: [
1566
+ {
1567
+ scheme: "bearer",
1568
+ type: "http"
1569
+ }
1570
+ ],
1571
+ url: "/v2/account-members/{accountMemberID}"
1572
+ });
1573
+ };
1574
+ const getV2AccountsAccountIdAccountMemberships = (options) => {
1575
+ return (options?.client ?? client).get({
1576
+ ...options,
1577
+ security: [
1578
+ {
1579
+ scheme: "bearer",
1580
+ type: "http"
1581
+ }
1582
+ ],
1583
+ url: "/v2/accounts/{accountID}/account-memberships"
1584
+ });
1585
+ };
1586
+ const postV2AccountMembersTokens = (options) => {
1587
+ return (options?.client ?? client).post({
1588
+ ...options,
1589
+ headers: {
1590
+ "Content-Type": "application/json",
1591
+ ...options?.headers
1592
+ },
1593
+ security: [
1594
+ {
1595
+ scheme: "bearer",
1596
+ type: "http"
1597
+ }
1598
+ ],
1599
+ url: "/v2/account-members/tokens"
1600
+ });
1601
+ };
1602
+ const createOneTimePasswordTokenRequest = (options) => {
1603
+ return (options?.client ?? client).post({
1604
+ ...options,
1605
+ headers: {
1606
+ "Content-Type": "application/json",
1607
+ ...options?.headers
1608
+ },
1609
+ security: [
1610
+ {
1611
+ scheme: "bearer",
1612
+ type: "http"
1613
+ }
1614
+ ],
1615
+ url: "/v2/authentication-realms/{realmId}/password-profiles/{passwordProfileId}/one-time-password-token-request"
1616
+ });
1617
+ };
1618
+ const updatePasswordProfileInfo = (options) => {
1619
+ return (options?.client ?? client).put({
1620
+ ...options,
1621
+ headers: {
1622
+ "Content-Type": "application/json",
1623
+ ...options?.headers
1624
+ },
1625
+ security: [
1626
+ {
1627
+ scheme: "bearer",
1628
+ type: "http"
1629
+ }
1630
+ ],
1631
+ url: "/v2/authentication-realms/{realmId}/user-authentication-info/{userAuthenticationInfoId}/user-authentication-password-profile-info/{userAuthenticationPasswordProfileInfoId}"
1632
+ });
1633
+ };
1634
+ const getAllCurrencies = (options) => {
1635
+ return (options?.client ?? client).get({
1636
+ ...options,
1637
+ security: [
1638
+ {
1639
+ scheme: "bearer",
1640
+ type: "http"
1641
+ }
1642
+ ],
1643
+ url: "/v2/currencies"
1644
+ });
1645
+ };
1646
+ const getACurrency = (options) => {
1647
+ return (options?.client ?? client).get({
1648
+ ...options,
1649
+ security: [
1650
+ {
1651
+ scheme: "bearer",
1652
+ type: "http"
1653
+ }
1654
+ ],
1655
+ url: "/v2/currencies/{currencyID}"
1656
+ });
1657
+ };
1658
+ const getAllFiles = (options) => {
1659
+ return (options?.client ?? client).get({
1660
+ ...options,
1661
+ security: [
1662
+ {
1663
+ scheme: "bearer",
1664
+ type: "http"
1665
+ }
1666
+ ],
1667
+ url: "/v2/files"
1668
+ });
1669
+ };
1670
+ const getAFile = (options) => {
1671
+ return (options?.client ?? client).get({
1672
+ ...options,
1673
+ security: [
1674
+ {
1675
+ scheme: "bearer",
1676
+ type: "http"
1677
+ }
1678
+ ],
1679
+ url: "/v2/files/{fileID}"
1680
+ });
1681
+ };
1682
+ export {
1683
+ addCustomDiscountToCartItem,
1684
+ addTaxItemToCart,
1685
+ anonymizeOrders,
1686
+ bulkAddCustomDiscountsToCart,
1687
+ bulkAddTaxItemsToCart,
1688
+ bulkDeleteCustomDiscountsFromCart,
1689
+ bulkDeleteTaxItemsFromCart,
1690
+ bulkUpdateItemsInCart,
1691
+ cancelATransaction,
1692
+ captureATransaction,
1693
+ checkoutApi,
1694
+ client,
1695
+ configureByContextProduct,
1696
+ confirmPayment,
1697
+ createACart,
1698
+ createAccountCartAssociation,
1699
+ createAnAccessToken,
1700
+ createCartPaymentIntent,
1701
+ createCatalog,
1702
+ createCustomerCartAssociation,
1703
+ createOneTimePasswordTokenRequest,
1704
+ createRule,
1705
+ deleteACart,
1706
+ deleteACartItem,
1707
+ deleteAPromotionViaPromotionCode,
1708
+ deleteATaxItem,
1709
+ deleteAccountCartAssociation,
1710
+ deleteAllCartItems,
1711
+ deleteCatalogById,
1712
+ deleteCustomDiscountFromCart,
1713
+ deleteCustomDiscountFromCartItem,
1714
+ deleteCustomerCartAssociation,
1715
+ deleteReleaseById,
1716
+ deleteReleases,
1717
+ deleteRuleById,
1718
+ deleteV2AccountAddress,
1719
+ getACurrency,
1720
+ getAFile,
1721
+ getATransaction,
1722
+ getAllCurrencies,
1723
+ getAllFiles,
1724
+ getAllHierarchies,
1725
+ getAllNodes,
1726
+ getAllProducts,
1727
+ getAnOrder,
1728
+ getByContextAllHierarchies,
1729
+ getByContextAllNodes,
1730
+ getByContextAllProducts,
1731
+ getByContextChildNodes,
1732
+ getByContextChildProducts,
1733
+ getByContextComponentProductIds,
1734
+ getByContextHierarchy,
1735
+ getByContextHierarchyChildNodes,
1736
+ getByContextHierarchyNodes,
1737
+ getByContextNode,
1738
+ getByContextProduct,
1739
+ getByContextProductsForHierarchy,
1740
+ getByContextProductsForNode,
1741
+ getByContextRelease,
1742
+ getCart,
1743
+ getCartItems,
1744
+ getCarts,
1745
+ getCatalogById,
1746
+ getCatalogs,
1747
+ getChildNodes,
1748
+ getChildProducts,
1749
+ getComponentProductIds,
1750
+ getCustomerOrders,
1751
+ getFeature,
1752
+ getHierarchy,
1753
+ getHierarchyChildNodes,
1754
+ getHierarchyNodes,
1755
+ getInvoice,
1756
+ getNode,
1757
+ getOffering,
1758
+ getOrderItems,
1759
+ getOrderTransactions,
1760
+ getPlan,
1761
+ getProduct,
1762
+ getProductsForHierarchy,
1763
+ getProductsForNode,
1764
+ getReleaseById,
1765
+ getReleases,
1766
+ getRuleById,
1767
+ getRules,
1768
+ getStock,
1769
+ getSubscription,
1770
+ getSubscriptionInvoice,
1771
+ getSubscriptionInvoicePayment,
1772
+ getSubscriptionProduct,
1773
+ getSubscriptionState,
1774
+ getV2AccountAddress,
1775
+ getV2AccountAddresses,
1776
+ getV2AccountMembers,
1777
+ getV2AccountMembersAccountMemberId,
1778
+ getV2Accounts,
1779
+ getV2AccountsAccountId,
1780
+ getV2AccountsAccountIdAccountMemberships,
1781
+ listInvoices,
1782
+ listLocations,
1783
+ listOfferingFeatures,
1784
+ listOfferingPlans,
1785
+ listOfferingProducts,
1786
+ listOfferings,
1787
+ listSubscriptionInvoicePayments,
1788
+ listSubscriptionInvoices,
1789
+ listSubscriptionPlans,
1790
+ listSubscriptionProducts,
1791
+ listSubscriptionStates,
1792
+ listSubscriptions,
1793
+ manageCarts,
1794
+ paymentSetup,
1795
+ postV2AccountAddress,
1796
+ postV2AccountMembersTokens,
1797
+ postV2Accounts,
1798
+ publishRelease,
1799
+ putV2AccountAddress,
1800
+ putV2AccountsAccountId,
1801
+ refundATransaction,
1802
+ updateACart,
1803
+ updateACartItem,
1804
+ updateATaxItem,
1805
+ updateAnOrder,
1806
+ updateCatalog,
1807
+ updateCustomDiscountForCart,
1808
+ updateCustomDiscountForCartItem,
1809
+ updatePasswordProfileInfo,
1810
+ updateRule
1811
+ };
1812
+ //# sourceMappingURL=sdk.gen.mjs.map