@epcc-sdk/sdks-cart-checkout-order 0.0.5 → 0.0.7

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.
@@ -0,0 +1,892 @@
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
+ confirmOrder: () => confirmOrder,
34
+ confirmPayment: () => confirmPayment,
35
+ createACart: () => createACart,
36
+ createAccountCartAssociation: () => createAccountCartAssociation,
37
+ createCartPaymentIntent: () => createCartPaymentIntent,
38
+ createCustomerCartAssociation: () => createCustomerCartAssociation,
39
+ createOrderShippingGroup: () => createOrderShippingGroup,
40
+ createShippingGroup: () => createShippingGroup,
41
+ deleteACart: () => deleteACart,
42
+ deleteACartItem: () => deleteACartItem,
43
+ deleteAPromotionViaPromotionCode: () => deleteAPromotionViaPromotionCode,
44
+ deleteATaxItem: () => deleteATaxItem,
45
+ deleteAccountCartAssociation: () => deleteAccountCartAssociation,
46
+ deleteAllCartItems: () => deleteAllCartItems,
47
+ deleteCartShippingGroup: () => deleteCartShippingGroup,
48
+ deleteCustomDiscountFromCart: () => deleteCustomDiscountFromCart,
49
+ deleteCustomDiscountFromCartItem: () => deleteCustomDiscountFromCartItem,
50
+ deleteCustomerCartAssociation: () => deleteCustomerCartAssociation,
51
+ getACart: () => getACart,
52
+ getATransaction: () => getATransaction,
53
+ getAnOrder: () => getAnOrder,
54
+ getCartItems: () => getCartItems,
55
+ getCarts: () => getCarts,
56
+ getCustomerOrders: () => getCustomerOrders,
57
+ getOrderItems: () => getOrderItems,
58
+ getOrderShippingGroups: () => getOrderShippingGroups,
59
+ getOrderTransactions: () => getOrderTransactions,
60
+ getShippingGroupById: () => getShippingGroupById,
61
+ getShippingGroups: () => getShippingGroups,
62
+ getShippingGroupsById: () => getShippingGroupsById,
63
+ manageCarts: () => manageCarts,
64
+ paymentSetup: () => paymentSetup,
65
+ putShippingGroupById: () => putShippingGroupById,
66
+ refundATransaction: () => refundATransaction,
67
+ updateACart: () => updateACart,
68
+ updateACartItem: () => updateACartItem,
69
+ updateATaxItem: () => updateATaxItem,
70
+ updateAnOrder: () => updateAnOrder,
71
+ updateCartPaymentIntent: () => updateCartPaymentIntent,
72
+ updateCustomDiscountForCart: () => updateCustomDiscountForCart,
73
+ updateCustomDiscountForCartItem: () => updateCustomDiscountForCartItem,
74
+ updateShippingGroup: () => updateShippingGroup
75
+ });
76
+ 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
+ };
835
+ // Annotate the CommonJS export names for ESM import in node:
836
+ 0 && (module.exports = {
837
+ addCustomDiscountToCartItem,
838
+ addTaxItemToCart,
839
+ anonymizeOrders,
840
+ bulkAddCustomDiscountsToCart,
841
+ bulkAddTaxItemsToCart,
842
+ bulkDeleteCustomDiscountsFromCart,
843
+ bulkDeleteTaxItemsFromCart,
844
+ bulkUpdateItemsInCart,
845
+ cancelATransaction,
846
+ captureATransaction,
847
+ checkoutApi,
848
+ client,
849
+ confirmOrder,
850
+ confirmPayment,
851
+ createACart,
852
+ createAccountCartAssociation,
853
+ createCartPaymentIntent,
854
+ createCustomerCartAssociation,
855
+ createOrderShippingGroup,
856
+ createShippingGroup,
857
+ deleteACart,
858
+ deleteACartItem,
859
+ deleteAPromotionViaPromotionCode,
860
+ deleteATaxItem,
861
+ deleteAccountCartAssociation,
862
+ deleteAllCartItems,
863
+ deleteCartShippingGroup,
864
+ deleteCustomDiscountFromCart,
865
+ deleteCustomDiscountFromCartItem,
866
+ deleteCustomerCartAssociation,
867
+ getACart,
868
+ getATransaction,
869
+ getAnOrder,
870
+ getCartItems,
871
+ getCarts,
872
+ getCustomerOrders,
873
+ getOrderItems,
874
+ getOrderShippingGroups,
875
+ getOrderTransactions,
876
+ getShippingGroupById,
877
+ getShippingGroups,
878
+ getShippingGroupsById,
879
+ manageCarts,
880
+ paymentSetup,
881
+ putShippingGroupById,
882
+ refundATransaction,
883
+ updateACart,
884
+ updateACartItem,
885
+ updateATaxItem,
886
+ updateAnOrder,
887
+ updateCartPaymentIntent,
888
+ updateCustomDiscountForCart,
889
+ updateCustomDiscountForCartItem,
890
+ updateShippingGroup
891
+ });
892
+ //# sourceMappingURL=sdk.gen.cjs.map