@epcc-sdk/sdks-shopper 0.0.26 → 0.0.27

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