@epcc-sdk/sdks-cart-checkout-order 0.0.8 → 0.2.0

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 (127) hide show
  1. package/README.md +37 -6
  2. package/dist/client/client/client.gen.cjs +229 -0
  3. package/dist/client/client/client.gen.cjs.map +1 -0
  4. package/dist/client/client/client.gen.d.cts +10 -0
  5. package/dist/client/client/client.gen.d.ts +10 -0
  6. package/dist/client/client/client.gen.mjs +213 -0
  7. package/dist/client/client/client.gen.mjs.map +1 -0
  8. package/dist/client/client/index.cjs +47 -0
  9. package/dist/client/client/index.cjs.map +1 -0
  10. package/dist/client/client/index.d.cts +9 -0
  11. package/dist/client/client/index.d.ts +9 -0
  12. package/dist/client/client/index.mjs +20 -0
  13. package/dist/client/client/index.mjs.map +1 -0
  14. package/dist/client/client/types.gen.cjs +17 -0
  15. package/dist/client/client/types.gen.cjs.map +1 -0
  16. package/dist/client/client/types.gen.d.cts +6 -0
  17. package/dist/client/client/types.gen.d.ts +6 -0
  18. package/dist/client/client/types.gen.mjs +1 -0
  19. package/dist/client/client/types.gen.mjs.map +1 -0
  20. package/dist/client/client/utils.gen.cjs +263 -0
  21. package/dist/client/client/utils.gen.cjs.map +1 -0
  22. package/dist/client/client/utils.gen.d.cts +6 -0
  23. package/dist/client/client/utils.gen.d.ts +6 -0
  24. package/dist/client/client/utils.gen.mjs +237 -0
  25. package/dist/client/client/utils.gen.mjs.map +1 -0
  26. package/dist/client/client.gen.cjs +34 -0
  27. package/dist/client/client.gen.cjs.map +1 -0
  28. package/dist/client/client.gen.d.cts +20 -0
  29. package/dist/client/client.gen.d.ts +20 -0
  30. package/dist/client/client.gen.mjs +13 -0
  31. package/dist/client/client.gen.mjs.map +1 -0
  32. package/dist/client/core/auth.gen.cjs +41 -0
  33. package/dist/client/core/auth.gen.cjs.map +1 -0
  34. package/dist/client/core/auth.gen.d.cts +27 -0
  35. package/dist/client/core/auth.gen.d.ts +27 -0
  36. package/dist/client/core/auth.gen.mjs +17 -0
  37. package/dist/client/core/auth.gen.mjs.map +1 -0
  38. package/dist/client/core/bodySerializer.gen.cjs +86 -0
  39. package/dist/client/core/bodySerializer.gen.cjs.map +1 -0
  40. package/dist/client/core/bodySerializer.gen.d.cts +27 -0
  41. package/dist/client/core/bodySerializer.gen.d.ts +27 -0
  42. package/dist/client/core/bodySerializer.gen.mjs +60 -0
  43. package/dist/client/core/bodySerializer.gen.mjs.map +1 -0
  44. package/dist/client/core/params.gen.cjs +128 -0
  45. package/dist/client/core/params.gen.cjs.map +1 -0
  46. package/dist/client/core/params.gen.d.cts +44 -0
  47. package/dist/client/core/params.gen.d.ts +44 -0
  48. package/dist/client/core/params.gen.mjs +104 -0
  49. package/dist/client/core/params.gen.mjs.map +1 -0
  50. package/dist/client/core/pathSerializer.gen.cjs +164 -0
  51. package/dist/client/core/pathSerializer.gen.cjs.map +1 -0
  52. package/dist/client/core/pathSerializer.gen.d.cts +34 -0
  53. package/dist/client/core/pathSerializer.gen.d.ts +34 -0
  54. package/dist/client/core/pathSerializer.gen.mjs +135 -0
  55. package/dist/client/core/pathSerializer.gen.mjs.map +1 -0
  56. package/dist/client/core/queryKeySerializer.gen.cjs +109 -0
  57. package/dist/client/core/queryKeySerializer.gen.cjs.map +1 -0
  58. package/dist/client/core/queryKeySerializer.gen.d.cts +20 -0
  59. package/dist/client/core/queryKeySerializer.gen.d.ts +20 -0
  60. package/dist/client/core/queryKeySerializer.gen.mjs +83 -0
  61. package/dist/client/core/queryKeySerializer.gen.mjs.map +1 -0
  62. package/dist/client/core/serverSentEvents.gen.cjs +162 -0
  63. package/dist/client/core/serverSentEvents.gen.cjs.map +1 -0
  64. package/dist/client/core/serverSentEvents.gen.d.cts +77 -0
  65. package/dist/client/core/serverSentEvents.gen.d.ts +77 -0
  66. package/dist/client/core/serverSentEvents.gen.mjs +138 -0
  67. package/dist/client/core/serverSentEvents.gen.mjs.map +1 -0
  68. package/dist/client/core/types.gen.cjs +17 -0
  69. package/dist/client/core/types.gen.cjs.map +1 -0
  70. package/dist/client/core/types.gen.d.cts +86 -0
  71. package/dist/client/core/types.gen.d.ts +86 -0
  72. package/dist/client/core/types.gen.mjs +1 -0
  73. package/dist/client/core/types.gen.mjs.map +1 -0
  74. package/dist/client/core/utils.gen.cjs +136 -0
  75. package/dist/client/core/utils.gen.cjs.map +1 -0
  76. package/dist/client/core/utils.gen.d.cts +23 -0
  77. package/dist/client/core/utils.gen.d.ts +23 -0
  78. package/dist/client/core/utils.gen.mjs +113 -0
  79. package/dist/client/core/utils.gen.mjs.map +1 -0
  80. package/dist/client/index.cjs +127 -5
  81. package/dist/client/index.cjs.map +1 -1
  82. package/dist/client/index.d.cts +8 -3
  83. package/dist/client/index.d.ts +8 -3
  84. package/dist/client/index.mjs +124 -2
  85. package/dist/client/index.mjs.map +1 -1
  86. package/dist/client/sdk.gen.cjs +458 -762
  87. package/dist/client/sdk.gen.cjs.map +1 -1
  88. package/dist/client/sdk.gen.d.cts +331 -94
  89. package/dist/client/sdk.gen.d.ts +331 -94
  90. package/dist/client/sdk.gen.mjs +450 -760
  91. package/dist/client/sdk.gen.mjs.map +1 -1
  92. package/dist/client/types.gen.cjs.map +1 -1
  93. package/dist/client/types.gen.d.cts +2366 -686
  94. package/dist/client/types.gen.d.ts +2366 -686
  95. package/dist/client/zod.gen.cjs +2443 -0
  96. package/dist/client/zod.gen.cjs.map +1 -0
  97. package/dist/client/zod.gen.d.cts +130743 -0
  98. package/dist/client/zod.gen.d.ts +130743 -0
  99. package/dist/client/zod.gen.mjs +2115 -0
  100. package/dist/client/zod.gen.mjs.map +1 -0
  101. package/dist/index.cjs +32 -4
  102. package/dist/index.cjs.map +1 -1
  103. package/dist/index.d.cts +12 -3
  104. package/dist/index.d.ts +12 -3
  105. package/dist/index.mjs +30 -3
  106. package/dist/index.mjs.map +1 -1
  107. package/dist/runtime.cjs +33 -0
  108. package/dist/runtime.cjs.map +1 -0
  109. package/dist/runtime.d.cts +12 -0
  110. package/dist/runtime.d.ts +12 -0
  111. package/dist/runtime.mjs +9 -0
  112. package/dist/runtime.mjs.map +1 -0
  113. package/dist/types.gen-DXwTHYA3.d.ts +157 -0
  114. package/dist/types.gen-mB6gWg8u.d.cts +157 -0
  115. package/dist/zod.cjs +23 -0
  116. package/dist/zod.cjs.map +1 -0
  117. package/dist/zod.d.cts +2 -0
  118. package/dist/zod.d.ts +2 -0
  119. package/dist/zod.mjs +2 -0
  120. package/dist/zod.mjs.map +1 -0
  121. package/package.json +40 -8
  122. package/dist/client/transformers.gen.cjs +0 -111
  123. package/dist/client/transformers.gen.cjs.map +0 -1
  124. package/dist/client/transformers.gen.d.cts +0 -12
  125. package/dist/client/transformers.gen.d.ts +0 -12
  126. package/dist/client/transformers.gen.mjs +0 -80
  127. package/dist/client/transformers.gen.mjs.map +0 -1
@@ -20,6 +20,7 @@ var sdk_gen_exports = {};
20
20
  __export(sdk_gen_exports, {
21
21
  addCustomDiscountToCartItem: () => addCustomDiscountToCartItem,
22
22
  addTaxItemToCart: () => addTaxItemToCart,
23
+ addTaxItemToCartItemComponent: () => addTaxItemToCartItemComponent,
23
24
  anonymizeOrders: () => anonymizeOrders,
24
25
  bulkAddCustomDiscountsToCart: () => bulkAddCustomDiscountsToCart,
25
26
  bulkAddTaxItemsToCart: () => bulkAddTaxItemsToCart,
@@ -29,7 +30,6 @@ __export(sdk_gen_exports, {
29
30
  cancelATransaction: () => cancelATransaction,
30
31
  captureATransaction: () => captureATransaction,
31
32
  checkoutApi: () => checkoutApi,
32
- client: () => client,
33
33
  confirmOrder: () => confirmOrder,
34
34
  confirmPayment: () => confirmPayment,
35
35
  createACart: () => createACart,
@@ -48,6 +48,7 @@ __export(sdk_gen_exports, {
48
48
  deleteCustomDiscountFromCart: () => deleteCustomDiscountFromCart,
49
49
  deleteCustomDiscountFromCartItem: () => deleteCustomDiscountFromCartItem,
50
50
  deleteCustomerCartAssociation: () => deleteCustomerCartAssociation,
51
+ deleteTaxItemFromCartItemComponent: () => deleteTaxItemFromCartItemComponent,
51
52
  getACart: () => getACart,
52
53
  getATransaction: () => getATransaction,
53
54
  getAnOrder: () => getAnOrder,
@@ -60,9 +61,13 @@ __export(sdk_gen_exports, {
60
61
  getShippingGroupById: () => getShippingGroupById,
61
62
  getShippingGroups: () => getShippingGroups,
62
63
  getShippingGroupsById: () => getShippingGroupsById,
64
+ getV2SettingsCart: () => getV2SettingsCart,
65
+ getV2SettingsCartStoreId: () => getV2SettingsCartStoreId,
63
66
  manageCarts: () => manageCarts,
64
67
  paymentSetup: () => paymentSetup,
65
68
  putShippingGroupById: () => putShippingGroupById,
69
+ putV2SettingsCart: () => putV2SettingsCart,
70
+ putV2SettingsCartStoreId: () => putV2SettingsCartStoreId,
66
71
  refundATransaction: () => refundATransaction,
67
72
  updateACart: () => updateACart,
68
73
  updateACartItem: () => updateACartItem,
@@ -71,771 +76,457 @@ __export(sdk_gen_exports, {
71
76
  updateCartPaymentIntent: () => updateCartPaymentIntent,
72
77
  updateCustomDiscountForCart: () => updateCustomDiscountForCart,
73
78
  updateCustomDiscountForCartItem: () => updateCustomDiscountForCartItem,
74
- updateShippingGroup: () => updateShippingGroup
79
+ updateShippingGroup: () => updateShippingGroup,
80
+ updateTaxItemFromCartItemComponent: () => updateTaxItemFromCartItemComponent
75
81
  });
76
82
  module.exports = __toCommonJS(sdk_gen_exports);
77
- var import_client_fetch = require("@hey-api/client-fetch");
78
- const client = (0, import_client_fetch.createClient)((0, import_client_fetch.createConfig)());
79
- const getCarts = (options) => {
80
- return (options?.client ?? client).get({
81
- ...options,
82
- security: [
83
- {
84
- scheme: "bearer",
85
- type: "http"
86
- }
87
- ],
88
- url: "/v2/carts"
89
- });
90
- };
91
- const createACart = (options) => {
92
- return (options?.client ?? client).post({
93
- ...options,
94
- headers: {
95
- "Content-Type": "application/json",
96
- ...options?.headers
97
- },
98
- security: [
99
- {
100
- scheme: "bearer",
101
- type: "http"
102
- }
103
- ],
104
- url: "/v2/carts"
105
- });
106
- };
107
- const deleteACart = (options) => {
108
- return (options?.client ?? client).delete({
109
- ...options,
110
- security: [
111
- {
112
- scheme: "bearer",
113
- type: "http"
114
- }
115
- ],
116
- url: "/v2/carts/{cartID}"
117
- });
118
- };
119
- const getACart = (options) => {
120
- return (options?.client ?? client).get({
121
- ...options,
122
- security: [
123
- {
124
- scheme: "bearer",
125
- type: "http"
126
- }
127
- ],
128
- url: "/v2/carts/{cartID}"
129
- });
130
- };
131
- const updateACart = (options) => {
132
- return (options?.client ?? client).put({
133
- ...options,
134
- headers: {
135
- "Content-Type": "application/json",
136
- ...options?.headers
137
- },
138
- security: [
139
- {
140
- scheme: "bearer",
141
- type: "http"
142
- }
143
- ],
144
- url: "/v2/carts/{cartID}"
145
- });
146
- };
147
- const deleteAllCartItems = (options) => {
148
- return (options?.client ?? client).delete({
149
- ...options,
150
- security: [
151
- {
152
- scheme: "bearer",
153
- type: "http"
154
- }
155
- ],
156
- url: "/v2/carts/{cartID}/items"
157
- });
158
- };
159
- const getCartItems = (options) => {
160
- return (options?.client ?? client).get({
161
- ...options,
162
- security: [
163
- {
164
- scheme: "bearer",
165
- type: "http"
166
- }
167
- ],
168
- url: "/v2/carts/{cartID}/items"
169
- });
170
- };
171
- const manageCarts = (options) => {
172
- return (options?.client ?? client).post({
173
- ...options,
174
- headers: {
175
- "Content-Type": "application/json",
176
- ...options?.headers
177
- },
178
- security: [
179
- {
180
- scheme: "bearer",
181
- type: "http"
182
- }
183
- ],
184
- url: "/v2/carts/{cartID}/items"
185
- });
186
- };
187
- const bulkUpdateItemsInCart = (options) => {
188
- return (options?.client ?? client).put({
189
- ...options,
190
- headers: {
191
- "Content-Type": "application/json",
192
- ...options?.headers
193
- },
194
- security: [
195
- {
196
- scheme: "bearer",
197
- type: "http"
198
- }
199
- ],
200
- url: "/v2/carts/{cartID}/items"
201
- });
202
- };
203
- const deleteACartItem = (options) => {
204
- return (options?.client ?? client).delete({
205
- ...options,
206
- security: [
207
- {
208
- scheme: "bearer",
209
- type: "http"
210
- }
211
- ],
212
- url: "/v2/carts/{cartID}/items/{cartitemID}"
213
- });
214
- };
215
- const updateACartItem = (options) => {
216
- return (options?.client ?? client).put({
217
- ...options,
218
- headers: {
219
- "Content-Type": "application/json",
220
- ...options?.headers
221
- },
222
- security: [
223
- {
224
- scheme: "bearer",
225
- type: "http"
226
- }
227
- ],
228
- url: "/v2/carts/{cartID}/items/{cartitemID}"
229
- });
230
- };
231
- const deleteAccountCartAssociation = (options) => {
232
- return (options?.client ?? client).delete({
233
- ...options,
234
- headers: {
235
- "Content-Type": "application/json",
236
- ...options?.headers
237
- },
238
- security: [
239
- {
240
- scheme: "bearer",
241
- type: "http"
242
- }
243
- ],
244
- url: "/v2/carts/{cartID}/relationships/accounts"
245
- });
246
- };
247
- const createAccountCartAssociation = (options) => {
248
- return (options?.client ?? client).post({
249
- ...options,
250
- headers: {
251
- "Content-Type": "application/json",
252
- ...options?.headers
253
- },
254
- security: [
255
- {
256
- scheme: "bearer",
257
- type: "http"
258
- }
259
- ],
260
- url: "/v2/carts/{cartID}/relationships/accounts"
261
- });
262
- };
263
- const deleteCustomerCartAssociation = (options) => {
264
- return (options?.client ?? client).delete({
265
- ...options,
266
- headers: {
267
- "Content-Type": "application/json",
268
- ...options?.headers
269
- },
270
- security: [
271
- {
272
- scheme: "bearer",
273
- type: "http"
274
- }
275
- ],
276
- url: "/v2/carts/{cartID}/relationships/customers"
277
- });
278
- };
279
- const createCustomerCartAssociation = (options) => {
280
- return (options?.client ?? client).post({
281
- ...options,
282
- headers: {
283
- "Content-Type": "application/json",
284
- ...options?.headers
285
- },
286
- security: [
287
- {
288
- scheme: "bearer",
289
- type: "http"
290
- }
291
- ],
292
- url: "/v2/carts/{cartID}/relationships/customers"
293
- });
294
- };
295
- const deleteAPromotionViaPromotionCode = (options) => {
296
- return (options?.client ?? client).delete({
297
- ...options,
298
- security: [
299
- {
300
- scheme: "bearer",
301
- type: "http"
302
- }
303
- ],
304
- url: "/v2/carts/{cartID}/discounts/{promoCode}"
305
- });
306
- };
307
- const addTaxItemToCart = (options) => {
308
- return (options?.client ?? client).post({
309
- ...options,
310
- headers: {
311
- "Content-Type": "application/json",
312
- ...options?.headers
313
- },
314
- security: [
315
- {
316
- scheme: "bearer",
317
- type: "http"
318
- }
319
- ],
320
- url: "/v2/carts/{cartID}/items/{cartitemID}/taxes"
321
- });
322
- };
323
- const bulkDeleteTaxItemsFromCart = (options) => {
324
- return (options?.client ?? client).delete({
325
- ...options,
326
- security: [
327
- {
328
- scheme: "bearer",
329
- type: "http"
330
- }
331
- ],
332
- url: "/v2/carts/{cartID}/taxes"
333
- });
334
- };
335
- const bulkAddTaxItemsToCart = (options) => {
336
- return (options?.client ?? client).post({
337
- ...options,
338
- headers: {
339
- "Content-Type": "application/json",
340
- ...options?.headers
341
- },
342
- security: [
343
- {
344
- scheme: "bearer",
345
- type: "http"
346
- }
347
- ],
348
- url: "/v2/carts/{cartID}/taxes"
349
- });
350
- };
351
- const deleteATaxItem = (options) => {
352
- return (options?.client ?? client).delete({
353
- ...options,
354
- security: [
355
- {
356
- scheme: "bearer",
357
- type: "http"
358
- }
359
- ],
360
- url: "/v2/carts/{cartID}/items/{cartitemID}/taxes/{taxitemID}"
361
- });
362
- };
363
- const updateATaxItem = (options) => {
364
- return (options?.client ?? client).put({
365
- ...options,
366
- headers: {
367
- "Content-Type": "application/json",
368
- ...options?.headers
369
- },
370
- security: [
371
- {
372
- scheme: "bearer",
373
- type: "http"
374
- }
375
- ],
376
- url: "/v2/carts/{cartID}/items/{cartitemID}/taxes/{taxitemID}"
377
- });
378
- };
379
- const bulkDeleteCustomDiscountsFromCart = (options) => {
380
- return (options?.client ?? client).delete({
381
- ...options,
382
- security: [
383
- {
384
- scheme: "bearer",
385
- type: "http"
386
- }
387
- ],
388
- url: "/v2/carts/{cartID}/custom-discounts"
389
- });
390
- };
391
- const bulkAddCustomDiscountsToCart = (options) => {
392
- return (options?.client ?? client).post({
393
- ...options,
394
- headers: {
395
- "Content-Type": "application/json",
396
- ...options?.headers
397
- },
398
- security: [
399
- {
400
- scheme: "bearer",
401
- type: "http"
402
- }
403
- ],
404
- url: "/v2/carts/{cartID}/custom-discounts"
405
- });
406
- };
407
- const deleteCustomDiscountFromCart = (options) => {
408
- return (options?.client ?? client).delete({
409
- ...options,
410
- security: [
411
- {
412
- scheme: "bearer",
413
- type: "http"
414
- }
415
- ],
416
- url: "/v2/carts/{cartID}/custom-discounts/{customdiscountID}"
417
- });
418
- };
419
- const updateCustomDiscountForCart = (options) => {
420
- return (options?.client ?? client).put({
421
- ...options,
422
- headers: {
423
- "Content-Type": "application/json",
424
- ...options?.headers
425
- },
426
- security: [
427
- {
428
- scheme: "bearer",
429
- type: "http"
430
- }
431
- ],
432
- url: "/v2/carts/{cartID}/custom-discounts/{customdiscountID}"
433
- });
434
- };
435
- const addCustomDiscountToCartItem = (options) => {
436
- return (options?.client ?? client).post({
437
- ...options,
438
- headers: {
439
- "Content-Type": "application/json",
440
- ...options?.headers
441
- },
442
- security: [
443
- {
444
- scheme: "bearer",
445
- type: "http"
446
- }
447
- ],
448
- url: "/v2/carts/{cartID}/items/{cartitemID}/custom-discounts"
449
- });
450
- };
451
- const deleteCustomDiscountFromCartItem = (options) => {
452
- return (options?.client ?? client).delete({
453
- ...options,
454
- security: [
455
- {
456
- scheme: "bearer",
457
- type: "http"
458
- }
459
- ],
460
- url: "/v2/carts/{cartID}/items/{cartitemID}/custom-discounts/{customdiscountID}"
461
- });
462
- };
463
- const updateCustomDiscountForCartItem = (options) => {
464
- return (options?.client ?? client).put({
465
- ...options,
466
- headers: {
467
- "Content-Type": "application/json",
468
- ...options?.headers
469
- },
470
- security: [
471
- {
472
- scheme: "bearer",
473
- type: "http"
474
- }
475
- ],
476
- url: "/v2/carts/{cartID}/items/{cartitemID}/custom-discounts/{customdiscountID}"
477
- });
478
- };
479
- const getShippingGroups = (options) => {
480
- return (options?.client ?? client).get({
481
- ...options,
482
- security: [
483
- {
484
- scheme: "bearer",
485
- type: "http"
486
- }
487
- ],
488
- url: "/v2/carts/{cartID}/shipping-groups"
489
- });
490
- };
491
- const createShippingGroup = (options) => {
492
- return (options?.client ?? client).post({
493
- ...options,
494
- headers: {
495
- "Content-Type": "application/json",
496
- ...options?.headers
497
- },
498
- security: [
499
- {
500
- scheme: "bearer",
501
- type: "http"
502
- }
503
- ],
504
- url: "/v2/carts/{cartID}/shipping-groups"
505
- });
506
- };
507
- const deleteCartShippingGroup = (options) => {
508
- return (options?.client ?? client).delete({
509
- ...options,
510
- security: [
511
- {
512
- scheme: "bearer",
513
- type: "http"
514
- }
515
- ],
516
- url: "/v2/carts/{cartId}/shipping-groups/{shippingGroupId}"
517
- });
518
- };
519
- const getShippingGroupById = (options) => {
520
- return (options?.client ?? client).get({
521
- ...options,
522
- security: [
523
- {
524
- scheme: "bearer",
525
- type: "http"
526
- }
527
- ],
528
- url: "/v2/carts/{cartId}/shipping-groups/{shippingGroupId}"
529
- });
530
- };
531
- const updateShippingGroup = (options) => {
532
- return (options?.client ?? client).put({
533
- ...options,
534
- headers: {
535
- "Content-Type": "application/json",
536
- ...options?.headers
537
- },
538
- security: [
539
- {
540
- scheme: "bearer",
541
- type: "http"
542
- }
543
- ],
544
- url: "/v2/carts/{cartId}/shipping-groups/{shippingGroupId}"
545
- });
546
- };
547
- const createCartPaymentIntent = (options) => {
548
- return (options?.client ?? client).post({
549
- ...options,
550
- headers: {
551
- "Content-Type": "application/json",
552
- ...options?.headers
553
- },
554
- security: [
555
- {
556
- scheme: "bearer",
557
- type: "http"
558
- }
559
- ],
560
- url: "/v2/carts/{cartID}/payments"
561
- });
562
- };
563
- const updateCartPaymentIntent = (options) => {
564
- return (options?.client ?? client).put({
565
- ...options,
566
- headers: {
567
- "Content-Type": "application/json",
568
- ...options?.headers
569
- },
570
- security: [
571
- {
572
- scheme: "bearer",
573
- type: "http"
574
- }
575
- ],
576
- url: "/v2/carts/{cartID}/payments/{paymentIntentID}"
577
- });
578
- };
579
- const checkoutApi = (options) => {
580
- return (options?.client ?? client).post({
581
- ...options,
582
- headers: {
583
- "Content-Type": "application/json",
584
- ...options?.headers
585
- },
586
- security: [
587
- {
588
- scheme: "bearer",
589
- type: "http"
590
- }
591
- ],
592
- url: "/v2/carts/{cartID}/checkout"
593
- });
594
- };
595
- const getCustomerOrders = (options) => {
596
- return (options?.client ?? client).get({
597
- ...options,
598
- security: [
599
- {
600
- scheme: "bearer",
601
- type: "http"
602
- }
603
- ],
604
- url: "/v2/orders"
605
- });
606
- };
607
- const getAnOrder = (options) => {
608
- return (options?.client ?? client).get({
609
- ...options,
610
- security: [
611
- {
612
- scheme: "bearer",
613
- type: "http"
614
- }
615
- ],
616
- url: "/v2/orders/{orderID}"
617
- });
618
- };
619
- const updateAnOrder = (options) => {
620
- return (options?.client ?? client).put({
621
- ...options,
622
- headers: {
623
- "Content-Type": "application/json",
624
- ...options?.headers
625
- },
626
- security: [
627
- {
628
- scheme: "bearer",
629
- type: "http"
630
- }
631
- ],
632
- url: "/v2/orders/{orderID}"
633
- });
634
- };
635
- const getOrderItems = (options) => {
636
- return (options?.client ?? client).get({
637
- ...options,
638
- security: [
639
- {
640
- scheme: "bearer",
641
- type: "http"
642
- }
643
- ],
644
- url: "/v2/orders/{orderID}/items"
645
- });
646
- };
647
- const anonymizeOrders = (options) => {
648
- return (options?.client ?? client).post({
649
- ...options,
650
- headers: {
651
- "Content-Type": "application/json",
652
- ...options?.headers
653
- },
654
- security: [
655
- {
656
- scheme: "bearer",
657
- type: "http"
658
- }
659
- ],
660
- url: "/v2/orders/anonymize"
661
- });
662
- };
663
- const confirmOrder = (options) => {
664
- return (options?.client ?? client).post({
665
- ...options,
666
- security: [
667
- {
668
- scheme: "bearer",
669
- type: "http"
670
- }
671
- ],
672
- url: "/v2/orders/{orderID}/confirm"
673
- });
674
- };
675
- const paymentSetup = (options) => {
676
- return (options?.client ?? client).post({
677
- ...options,
678
- headers: {
679
- "Content-Type": "application/json",
680
- ...options?.headers
681
- },
682
- security: [
683
- {
684
- scheme: "bearer",
685
- type: "http"
686
- }
687
- ],
688
- url: "/v2/orders/{orderID}/payments"
689
- });
690
- };
691
- const confirmPayment = (options) => {
692
- return (options?.client ?? client).post({
693
- ...options,
694
- headers: {
695
- "Content-Type": "application/json",
696
- ...options?.headers
697
- },
698
- security: [
699
- {
700
- scheme: "bearer",
701
- type: "http"
702
- }
703
- ],
704
- url: "/v2/orders/{orderID}/transactions/{transactionID}/confirm"
705
- });
706
- };
707
- const captureATransaction = (options) => {
708
- return (options?.client ?? client).post({
709
- ...options,
710
- headers: {
711
- "Content-Type": "application/json",
712
- ...options?.headers
713
- },
714
- security: [
715
- {
716
- scheme: "bearer",
717
- type: "http"
718
- }
719
- ],
720
- url: "/v2/orders/{orderID}/transactions/{transactionID}/capture"
721
- });
722
- };
723
- const refundATransaction = (options) => {
724
- return (options?.client ?? client).post({
725
- ...options,
726
- headers: {
727
- "Content-Type": "application/json",
728
- ...options?.headers
729
- },
730
- security: [
731
- {
732
- scheme: "bearer",
733
- type: "http"
734
- }
735
- ],
736
- url: "/v2/orders/{orderID}/transactions/{transactionID}/refund"
737
- });
738
- };
739
- const getOrderTransactions = (options) => {
740
- return (options?.client ?? client).get({
741
- ...options,
742
- security: [
743
- {
744
- scheme: "bearer",
745
- type: "http"
746
- }
747
- ],
748
- url: "/v2/orders/{orderID}/transactions"
749
- });
750
- };
751
- const getATransaction = (options) => {
752
- return (options?.client ?? client).get({
753
- ...options,
754
- security: [
755
- {
756
- scheme: "bearer",
757
- type: "http"
758
- }
759
- ],
760
- url: "/v2/orders/{orderID}/transactions/{transactionID}"
761
- });
762
- };
763
- const cancelATransaction = (options) => {
764
- return (options?.client ?? client).post({
765
- ...options,
766
- headers: {
767
- "Content-Type": "application/json",
768
- ...options?.headers
769
- },
770
- security: [
771
- {
772
- scheme: "bearer",
773
- type: "http"
774
- }
775
- ],
776
- url: "/v2/orders/{orderID}/transactions/{transactionID}/cancel"
777
- });
778
- };
779
- const getOrderShippingGroups = (options) => {
780
- return (options?.client ?? client).get({
781
- ...options,
782
- security: [
783
- {
784
- scheme: "bearer",
785
- type: "http"
786
- }
787
- ],
788
- url: "/v2/orders/{orderID}/shipping-groups"
789
- });
790
- };
791
- const createOrderShippingGroup = (options) => {
792
- return (options?.client ?? client).post({
793
- ...options,
794
- headers: {
795
- "Content-Type": "application/json",
796
- ...options?.headers
797
- },
798
- security: [
799
- {
800
- scheme: "bearer",
801
- type: "http"
802
- }
803
- ],
804
- url: "/v2/orders/{orderID}/shipping-groups"
805
- });
806
- };
807
- const getShippingGroupsById = (options) => {
808
- return (options?.client ?? client).get({
809
- ...options,
810
- security: [
811
- {
812
- scheme: "bearer",
813
- type: "http"
814
- }
815
- ],
816
- url: "/v2/orders/{orderID}/shipping-groups/{shippingGroupID}"
817
- });
818
- };
819
- const putShippingGroupById = (options) => {
820
- return (options?.client ?? client).put({
821
- ...options,
822
- headers: {
823
- "Content-Type": "application/json",
824
- ...options?.headers
825
- },
826
- security: [
827
- {
828
- scheme: "bearer",
829
- type: "http"
830
- }
831
- ],
832
- url: "/v2/orders/{orderID}/shipping-groups/{shippingGroupID}"
833
- });
834
- };
83
+ var import_client = require('./client.gen.cjs');
84
+ const getCarts = (options) => (options?.client ?? import_client.client).get({
85
+ querySerializer: { parameters: { include: { array: { explode: false } } } },
86
+ security: [{ scheme: "bearer", type: "http" }],
87
+ url: "/v2/carts",
88
+ ...options
89
+ });
90
+ const createACart = (options) => (options?.client ?? import_client.client).post({
91
+ security: [{ scheme: "bearer", type: "http" }],
92
+ url: "/v2/carts",
93
+ ...options,
94
+ headers: {
95
+ "Content-Type": "application/json",
96
+ ...options?.headers
97
+ }
98
+ });
99
+ const deleteACart = (options) => (options.client ?? import_client.client).delete({
100
+ security: [{ scheme: "bearer", type: "http" }],
101
+ url: "/v2/carts/{cartID}",
102
+ ...options
103
+ });
104
+ const getACart = (options) => (options.client ?? import_client.client).get({
105
+ querySerializer: { parameters: { include: { array: { explode: false } } } },
106
+ security: [{ scheme: "bearer", type: "http" }],
107
+ url: "/v2/carts/{cartID}",
108
+ ...options
109
+ });
110
+ const updateACart = (options) => (options.client ?? import_client.client).put({
111
+ security: [{ scheme: "bearer", type: "http" }],
112
+ url: "/v2/carts/{cartID}",
113
+ ...options,
114
+ headers: {
115
+ "Content-Type": "application/json",
116
+ ...options.headers
117
+ }
118
+ });
119
+ const deleteAllCartItems = (options) => (options.client ?? import_client.client).delete({
120
+ security: [{ scheme: "bearer", type: "http" }],
121
+ url: "/v2/carts/{cartID}/items",
122
+ ...options
123
+ });
124
+ const getCartItems = (options) => (options.client ?? import_client.client).get({
125
+ querySerializer: { parameters: { include: { array: { explode: false } } } },
126
+ security: [{ scheme: "bearer", type: "http" }],
127
+ url: "/v2/carts/{cartID}/items",
128
+ ...options
129
+ });
130
+ const manageCarts = (options) => (options.client ?? import_client.client).post({
131
+ security: [{ scheme: "bearer", type: "http" }],
132
+ url: "/v2/carts/{cartID}/items",
133
+ ...options,
134
+ headers: {
135
+ "Content-Type": "application/json",
136
+ ...options.headers
137
+ }
138
+ });
139
+ const bulkUpdateItemsInCart = (options) => (options.client ?? import_client.client).put({
140
+ security: [{ scheme: "bearer", type: "http" }],
141
+ url: "/v2/carts/{cartID}/items",
142
+ ...options,
143
+ headers: {
144
+ "Content-Type": "application/json",
145
+ ...options.headers
146
+ }
147
+ });
148
+ const deleteACartItem = (options) => (options.client ?? import_client.client).delete({
149
+ security: [{ scheme: "bearer", type: "http" }],
150
+ url: "/v2/carts/{cartID}/items/{cartitemID}",
151
+ ...options
152
+ });
153
+ const updateACartItem = (options) => (options.client ?? import_client.client).put({
154
+ security: [{ scheme: "bearer", type: "http" }],
155
+ url: "/v2/carts/{cartID}/items/{cartitemID}",
156
+ ...options,
157
+ headers: {
158
+ "Content-Type": "application/json",
159
+ ...options.headers
160
+ }
161
+ });
162
+ const deleteAccountCartAssociation = (options) => (options.client ?? import_client.client).delete({
163
+ security: [{ scheme: "bearer", type: "http" }],
164
+ url: "/v2/carts/{cartID}/relationships/accounts",
165
+ ...options,
166
+ headers: {
167
+ "Content-Type": "application/json",
168
+ ...options.headers
169
+ }
170
+ });
171
+ const createAccountCartAssociation = (options) => (options.client ?? import_client.client).post({
172
+ security: [{ scheme: "bearer", type: "http" }],
173
+ url: "/v2/carts/{cartID}/relationships/accounts",
174
+ ...options,
175
+ headers: {
176
+ "Content-Type": "application/json",
177
+ ...options.headers
178
+ }
179
+ });
180
+ const deleteCustomerCartAssociation = (options) => (options.client ?? import_client.client).delete({
181
+ security: [{ scheme: "bearer", type: "http" }],
182
+ url: "/v2/carts/{cartID}/relationships/customers",
183
+ ...options,
184
+ headers: {
185
+ "Content-Type": "application/json",
186
+ ...options.headers
187
+ }
188
+ });
189
+ const createCustomerCartAssociation = (options) => (options.client ?? import_client.client).post({
190
+ security: [{ scheme: "bearer", type: "http" }],
191
+ url: "/v2/carts/{cartID}/relationships/customers",
192
+ ...options,
193
+ headers: {
194
+ "Content-Type": "application/json",
195
+ ...options.headers
196
+ }
197
+ });
198
+ const deleteAPromotionViaPromotionCode = (options) => (options.client ?? import_client.client).delete({
199
+ security: [{ scheme: "bearer", type: "http" }],
200
+ url: "/v2/carts/{cartID}/discounts/{promoCode}",
201
+ ...options
202
+ });
203
+ const addTaxItemToCart = (options) => (options.client ?? import_client.client).post({
204
+ security: [{ scheme: "bearer", type: "http" }],
205
+ url: "/v2/carts/{cartID}/items/{cartitemID}/taxes",
206
+ ...options,
207
+ headers: {
208
+ "Content-Type": "application/json",
209
+ ...options.headers
210
+ }
211
+ });
212
+ const addTaxItemToCartItemComponent = (options) => (options.client ?? import_client.client).post({
213
+ security: [{ scheme: "bearer", type: "http" }],
214
+ url: "/v2/carts/{cartID}/items/{cartitemID}/components/{productID}/taxes",
215
+ ...options,
216
+ headers: {
217
+ "Content-Type": "application/json",
218
+ ...options.headers
219
+ }
220
+ });
221
+ const deleteTaxItemFromCartItemComponent = (options) => (options.client ?? import_client.client).delete({
222
+ security: [{ scheme: "bearer", type: "http" }],
223
+ url: "/v2/carts/{cartID}/items/{cartitemID}/components/{productID}/taxes/{taxitemID}",
224
+ ...options
225
+ });
226
+ const updateTaxItemFromCartItemComponent = (options) => (options.client ?? import_client.client).put({
227
+ security: [{ scheme: "bearer", type: "http" }],
228
+ url: "/v2/carts/{cartID}/items/{cartitemID}/components/{productID}/taxes/{taxitemID}",
229
+ ...options,
230
+ headers: {
231
+ "Content-Type": "application/json",
232
+ ...options.headers
233
+ }
234
+ });
235
+ const bulkDeleteTaxItemsFromCart = (options) => (options.client ?? import_client.client).delete({
236
+ security: [{ scheme: "bearer", type: "http" }],
237
+ url: "/v2/carts/{cartID}/taxes",
238
+ ...options
239
+ });
240
+ const bulkAddTaxItemsToCart = (options) => (options.client ?? import_client.client).post({
241
+ security: [{ scheme: "bearer", type: "http" }],
242
+ url: "/v2/carts/{cartID}/taxes",
243
+ ...options,
244
+ headers: {
245
+ "Content-Type": "application/json",
246
+ ...options.headers
247
+ }
248
+ });
249
+ const deleteATaxItem = (options) => (options.client ?? import_client.client).delete({
250
+ security: [{ scheme: "bearer", type: "http" }],
251
+ url: "/v2/carts/{cartID}/items/{cartitemID}/taxes/{taxitemID}",
252
+ ...options
253
+ });
254
+ const updateATaxItem = (options) => (options.client ?? import_client.client).put({
255
+ security: [{ scheme: "bearer", type: "http" }],
256
+ url: "/v2/carts/{cartID}/items/{cartitemID}/taxes/{taxitemID}",
257
+ ...options,
258
+ headers: {
259
+ "Content-Type": "application/json",
260
+ ...options.headers
261
+ }
262
+ });
263
+ const bulkDeleteCustomDiscountsFromCart = (options) => (options.client ?? import_client.client).delete({
264
+ security: [{ scheme: "bearer", type: "http" }],
265
+ url: "/v2/carts/{cartID}/custom-discounts",
266
+ ...options
267
+ });
268
+ const bulkAddCustomDiscountsToCart = (options) => (options.client ?? import_client.client).post({
269
+ security: [{ scheme: "bearer", type: "http" }],
270
+ url: "/v2/carts/{cartID}/custom-discounts",
271
+ ...options,
272
+ headers: {
273
+ "Content-Type": "application/json",
274
+ ...options.headers
275
+ }
276
+ });
277
+ const deleteCustomDiscountFromCart = (options) => (options.client ?? import_client.client).delete({
278
+ security: [{ scheme: "bearer", type: "http" }],
279
+ url: "/v2/carts/{cartID}/custom-discounts/{customdiscountID}",
280
+ ...options
281
+ });
282
+ const updateCustomDiscountForCart = (options) => (options.client ?? import_client.client).put({
283
+ security: [{ scheme: "bearer", type: "http" }],
284
+ url: "/v2/carts/{cartID}/custom-discounts/{customdiscountID}",
285
+ ...options,
286
+ headers: {
287
+ "Content-Type": "application/json",
288
+ ...options.headers
289
+ }
290
+ });
291
+ const addCustomDiscountToCartItem = (options) => (options.client ?? import_client.client).post({
292
+ security: [{ scheme: "bearer", type: "http" }],
293
+ url: "/v2/carts/{cartID}/items/{cartitemID}/custom-discounts",
294
+ ...options,
295
+ headers: {
296
+ "Content-Type": "application/json",
297
+ ...options.headers
298
+ }
299
+ });
300
+ const deleteCustomDiscountFromCartItem = (options) => (options.client ?? import_client.client).delete({
301
+ security: [{ scheme: "bearer", type: "http" }],
302
+ url: "/v2/carts/{cartID}/items/{cartitemID}/custom-discounts/{customdiscountID}",
303
+ ...options
304
+ });
305
+ const updateCustomDiscountForCartItem = (options) => (options.client ?? import_client.client).put({
306
+ security: [{ scheme: "bearer", type: "http" }],
307
+ url: "/v2/carts/{cartID}/items/{cartitemID}/custom-discounts/{customdiscountID}",
308
+ ...options,
309
+ headers: {
310
+ "Content-Type": "application/json",
311
+ ...options.headers
312
+ }
313
+ });
314
+ const getShippingGroups = (options) => (options.client ?? import_client.client).get({
315
+ security: [{ scheme: "bearer", type: "http" }],
316
+ url: "/v2/carts/{cartID}/shipping-groups",
317
+ ...options
318
+ });
319
+ const createShippingGroup = (options) => (options.client ?? import_client.client).post({
320
+ security: [{ scheme: "bearer", type: "http" }],
321
+ url: "/v2/carts/{cartID}/shipping-groups",
322
+ ...options,
323
+ headers: {
324
+ "Content-Type": "application/json",
325
+ ...options.headers
326
+ }
327
+ });
328
+ const deleteCartShippingGroup = (options) => (options.client ?? import_client.client).delete({
329
+ security: [{ scheme: "bearer", type: "http" }],
330
+ url: "/v2/carts/{cartId}/shipping-groups/{shippingGroupId}",
331
+ ...options
332
+ });
333
+ const getShippingGroupById = (options) => (options.client ?? import_client.client).get({
334
+ security: [{ scheme: "bearer", type: "http" }],
335
+ url: "/v2/carts/{cartId}/shipping-groups/{shippingGroupId}",
336
+ ...options
337
+ });
338
+ const updateShippingGroup = (options) => (options.client ?? import_client.client).put({
339
+ security: [{ scheme: "bearer", type: "http" }],
340
+ url: "/v2/carts/{cartId}/shipping-groups/{shippingGroupId}",
341
+ ...options,
342
+ headers: {
343
+ "Content-Type": "application/json",
344
+ ...options.headers
345
+ }
346
+ });
347
+ const createCartPaymentIntent = (options) => (options.client ?? import_client.client).post({
348
+ security: [{ scheme: "bearer", type: "http" }],
349
+ url: "/v2/carts/{cartID}/payments",
350
+ ...options,
351
+ headers: {
352
+ "Content-Type": "application/json",
353
+ ...options.headers
354
+ }
355
+ });
356
+ const updateCartPaymentIntent = (options) => (options.client ?? import_client.client).put({
357
+ security: [{ scheme: "bearer", type: "http" }],
358
+ url: "/v2/carts/{cartID}/payments/{paymentIntentID}",
359
+ ...options,
360
+ headers: {
361
+ "Content-Type": "application/json",
362
+ ...options.headers
363
+ }
364
+ });
365
+ const checkoutApi = (options) => (options.client ?? import_client.client).post({
366
+ security: [{ scheme: "bearer", type: "http" }],
367
+ url: "/v2/carts/{cartID}/checkout",
368
+ ...options,
369
+ headers: {
370
+ "Content-Type": "application/json",
371
+ ...options.headers
372
+ }
373
+ });
374
+ const getCustomerOrders = (options) => (options?.client ?? import_client.client).get({
375
+ security: [{ scheme: "bearer", type: "http" }],
376
+ url: "/v2/orders",
377
+ ...options
378
+ });
379
+ const getAnOrder = (options) => (options.client ?? import_client.client).get({
380
+ security: [{ scheme: "bearer", type: "http" }],
381
+ url: "/v2/orders/{orderID}",
382
+ ...options
383
+ });
384
+ const updateAnOrder = (options) => (options.client ?? import_client.client).put({
385
+ security: [{ scheme: "bearer", type: "http" }],
386
+ url: "/v2/orders/{orderID}",
387
+ ...options,
388
+ headers: {
389
+ "Content-Type": "application/json",
390
+ ...options.headers
391
+ }
392
+ });
393
+ const getOrderItems = (options) => (options.client ?? import_client.client).get(
394
+ {
395
+ security: [{ scheme: "bearer", type: "http" }],
396
+ url: "/v2/orders/{orderID}/items",
397
+ ...options
398
+ }
399
+ );
400
+ const anonymizeOrders = (options) => (options?.client ?? import_client.client).post({
401
+ security: [{ scheme: "bearer", type: "http" }],
402
+ url: "/v2/orders/anonymize",
403
+ ...options,
404
+ headers: {
405
+ "Content-Type": "application/json",
406
+ ...options?.headers
407
+ }
408
+ });
409
+ const confirmOrder = (options) => (options.client ?? import_client.client).post({
410
+ security: [{ scheme: "bearer", type: "http" }],
411
+ url: "/v2/orders/{orderID}/confirm",
412
+ ...options
413
+ });
414
+ const paymentSetup = (options) => (options.client ?? import_client.client).post({
415
+ security: [{ scheme: "bearer", type: "http" }],
416
+ url: "/v2/orders/{orderID}/payments",
417
+ ...options,
418
+ headers: {
419
+ "Content-Type": "application/json",
420
+ ...options.headers
421
+ }
422
+ });
423
+ const confirmPayment = (options) => (options.client ?? import_client.client).post({
424
+ security: [{ scheme: "bearer", type: "http" }],
425
+ url: "/v2/orders/{orderID}/transactions/{transactionID}/confirm",
426
+ ...options,
427
+ headers: {
428
+ "Content-Type": "application/json",
429
+ ...options.headers
430
+ }
431
+ });
432
+ const captureATransaction = (options) => (options.client ?? import_client.client).post({
433
+ security: [{ scheme: "bearer", type: "http" }],
434
+ url: "/v2/orders/{orderID}/transactions/{transactionID}/capture",
435
+ ...options,
436
+ headers: {
437
+ "Content-Type": "application/json",
438
+ ...options.headers
439
+ }
440
+ });
441
+ const refundATransaction = (options) => (options.client ?? import_client.client).post({
442
+ security: [{ scheme: "bearer", type: "http" }],
443
+ url: "/v2/orders/{orderID}/transactions/{transactionID}/refund",
444
+ ...options,
445
+ headers: {
446
+ "Content-Type": "application/json",
447
+ ...options.headers
448
+ }
449
+ });
450
+ const getOrderTransactions = (options) => (options.client ?? import_client.client).get({
451
+ security: [{ scheme: "bearer", type: "http" }],
452
+ url: "/v2/orders/{orderID}/transactions",
453
+ ...options
454
+ });
455
+ const getATransaction = (options) => (options.client ?? import_client.client).get({
456
+ security: [{ scheme: "bearer", type: "http" }],
457
+ url: "/v2/orders/{orderID}/transactions/{transactionID}",
458
+ ...options
459
+ });
460
+ const cancelATransaction = (options) => (options.client ?? import_client.client).post({
461
+ security: [{ scheme: "bearer", type: "http" }],
462
+ url: "/v2/orders/{orderID}/transactions/{transactionID}/cancel",
463
+ ...options,
464
+ headers: {
465
+ "Content-Type": "application/json",
466
+ ...options.headers
467
+ }
468
+ });
469
+ const getOrderShippingGroups = (options) => (options.client ?? import_client.client).get({
470
+ security: [{ scheme: "bearer", type: "http" }],
471
+ url: "/v2/orders/{orderID}/shipping-groups",
472
+ ...options
473
+ });
474
+ const createOrderShippingGroup = (options) => (options.client ?? import_client.client).post({
475
+ security: [{ scheme: "bearer", type: "http" }],
476
+ url: "/v2/orders/{orderID}/shipping-groups",
477
+ ...options,
478
+ headers: {
479
+ "Content-Type": "application/json",
480
+ ...options.headers
481
+ }
482
+ });
483
+ const getShippingGroupsById = (options) => (options.client ?? import_client.client).get({
484
+ security: [{ scheme: "bearer", type: "http" }],
485
+ url: "/v2/orders/{orderID}/shipping-groups/{shippingGroupID}",
486
+ ...options
487
+ });
488
+ const putShippingGroupById = (options) => (options.client ?? import_client.client).put({
489
+ security: [{ scheme: "bearer", type: "http" }],
490
+ url: "/v2/orders/{orderID}/shipping-groups/{shippingGroupID}",
491
+ ...options,
492
+ headers: {
493
+ "Content-Type": "application/json",
494
+ ...options.headers
495
+ }
496
+ });
497
+ const getV2SettingsCart = (options) => (options?.client ?? import_client.client).get({
498
+ security: [{ scheme: "bearer", type: "http" }],
499
+ url: "/v2/settings/cart",
500
+ ...options
501
+ });
502
+ const putV2SettingsCart = (options) => (options?.client ?? import_client.client).put({
503
+ security: [{ scheme: "bearer", type: "http" }],
504
+ url: "/v2/settings/cart",
505
+ ...options,
506
+ headers: {
507
+ "Content-Type": "application/json",
508
+ ...options?.headers
509
+ }
510
+ });
511
+ const getV2SettingsCartStoreId = (options) => (options.client ?? import_client.client).get({
512
+ security: [{ scheme: "bearer", type: "http" }],
513
+ url: "/v2/settings/cart/{storeID}",
514
+ ...options
515
+ });
516
+ const putV2SettingsCartStoreId = (options) => (options.client ?? import_client.client).put({
517
+ security: [{ scheme: "bearer", type: "http" }],
518
+ url: "/v2/settings/cart/{storeID}",
519
+ ...options,
520
+ headers: {
521
+ "Content-Type": "application/json",
522
+ ...options.headers
523
+ }
524
+ });
835
525
  // Annotate the CommonJS export names for ESM import in node:
836
526
  0 && (module.exports = {
837
527
  addCustomDiscountToCartItem,
838
528
  addTaxItemToCart,
529
+ addTaxItemToCartItemComponent,
839
530
  anonymizeOrders,
840
531
  bulkAddCustomDiscountsToCart,
841
532
  bulkAddTaxItemsToCart,
@@ -845,7 +536,6 @@ const putShippingGroupById = (options) => {
845
536
  cancelATransaction,
846
537
  captureATransaction,
847
538
  checkoutApi,
848
- client,
849
539
  confirmOrder,
850
540
  confirmPayment,
851
541
  createACart,
@@ -864,6 +554,7 @@ const putShippingGroupById = (options) => {
864
554
  deleteCustomDiscountFromCart,
865
555
  deleteCustomDiscountFromCartItem,
866
556
  deleteCustomerCartAssociation,
557
+ deleteTaxItemFromCartItemComponent,
867
558
  getACart,
868
559
  getATransaction,
869
560
  getAnOrder,
@@ -876,9 +567,13 @@ const putShippingGroupById = (options) => {
876
567
  getShippingGroupById,
877
568
  getShippingGroups,
878
569
  getShippingGroupsById,
570
+ getV2SettingsCart,
571
+ getV2SettingsCartStoreId,
879
572
  manageCarts,
880
573
  paymentSetup,
881
574
  putShippingGroupById,
575
+ putV2SettingsCart,
576
+ putV2SettingsCartStoreId,
882
577
  refundATransaction,
883
578
  updateACart,
884
579
  updateACartItem,
@@ -887,6 +582,7 @@ const putShippingGroupById = (options) => {
887
582
  updateCartPaymentIntent,
888
583
  updateCustomDiscountForCart,
889
584
  updateCustomDiscountForCartItem,
890
- updateShippingGroup
585
+ updateShippingGroup,
586
+ updateTaxItemFromCartItemComponent
891
587
  });
892
588
  //# sourceMappingURL=sdk.gen.cjs.map