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