@wix/auto_sdk_ecom_cart 1.0.174 → 1.0.176

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.
@@ -1,1733 +0,0 @@
1
- // src/ecom-v1-cart-cart.universal.ts
2
- import { transformError as sdkTransformError } from "@wix/sdk-runtime/transform-error";
3
- import {
4
- renameKeysFromSDKRequestToRESTRequest,
5
- renameKeysFromRESTResponseToSDKResponse
6
- } from "@wix/sdk-runtime/rename-all-nested-keys";
7
-
8
- // src/ecom-v1-cart-cart.http.ts
9
- import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
10
- import { transformSDKFloatToRESTFloat } from "@wix/sdk-runtime/transformations/float";
11
- import { transformRESTFloatToSDKFloat } from "@wix/sdk-runtime/transformations/float";
12
- import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
13
- import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
14
- import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
15
- import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
16
- import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
17
- function resolveComWixEcomCartApiV1CartServiceUrl(opts) {
18
- const domainToMappings = {
19
- "www.wixapis.com": [
20
- {
21
- srcPath: "/ecom/v1/carts",
22
- destPath: "/v1/carts"
23
- }
24
- ],
25
- "www.wixgateway.com": [
26
- {
27
- srcPath: "/ecom/v1/carts",
28
- destPath: "/v1/carts"
29
- }
30
- ],
31
- _: [
32
- {
33
- srcPath: "/_api/ecom-cart",
34
- destPath: ""
35
- },
36
- {
37
- srcPath: "/_api/cart",
38
- destPath: ""
39
- },
40
- {
41
- srcPath: "/ecom/v1/carts",
42
- destPath: "/v1/carts"
43
- }
44
- ],
45
- "manage._base_domain_": [
46
- {
47
- srcPath: "/ecom/v1/carts",
48
- destPath: "/v1/carts"
49
- }
50
- ],
51
- "editor._base_domain_": [
52
- {
53
- srcPath: "/_api/ecom-cart",
54
- destPath: ""
55
- }
56
- ],
57
- "blocks._base_domain_": [
58
- {
59
- srcPath: "/_api/ecom-cart",
60
- destPath: ""
61
- }
62
- ],
63
- "create.editorx": [
64
- {
65
- srcPath: "/_api/ecom-cart",
66
- destPath: ""
67
- }
68
- ],
69
- "*.dev.wix-code.com": [
70
- {
71
- srcPath: "/_api/ecom-cart",
72
- destPath: ""
73
- }
74
- ],
75
- "www._base_domain_": [
76
- {
77
- srcPath: "/_api/ecom-cart",
78
- destPath: ""
79
- }
80
- ],
81
- "bo._base_domain_": [
82
- {
83
- srcPath: "/ecom/v1/carts",
84
- destPath: "/v1/carts"
85
- }
86
- ],
87
- "wixbo.ai": [
88
- {
89
- srcPath: "/ecom/v1/carts",
90
- destPath: "/v1/carts"
91
- }
92
- ],
93
- "wix-bo.com": [
94
- {
95
- srcPath: "/ecom/v1/carts",
96
- destPath: "/v1/carts"
97
- }
98
- ],
99
- "editor.wixapps.net": [
100
- {
101
- srcPath: "/_api/ecom-cart",
102
- destPath: ""
103
- }
104
- ],
105
- "apps._base_domain_": [
106
- {
107
- srcPath: "/ecom/v1/carts",
108
- destPath: "/v1/carts"
109
- }
110
- ],
111
- "api._api_base_domain_": [
112
- {
113
- srcPath: "/cart-v1-proxy",
114
- destPath: ""
115
- }
116
- ],
117
- "ecom.wixapps.net": [
118
- {
119
- srcPath: "/_api/ecom-cart",
120
- destPath: ""
121
- }
122
- ]
123
- };
124
- return resolveUrl(Object.assign(opts, { domainToMappings }));
125
- }
126
- var PACKAGE_NAME = "@wix/auto_sdk_ecom_cart";
127
- function createCart(payload) {
128
- function __createCart({ host }) {
129
- const serializedData = transformPaths(payload, [
130
- {
131
- transformFn: transformSDKTimestampToRESTTimestamp,
132
- paths: [
133
- { path: "cartInfo.createdDate" },
134
- { path: "cartInfo.updatedDate" },
135
- { path: "cartInfo.lineItems.image.urlExpirationDate" },
136
- {
137
- path: "cartInfo.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
138
- },
139
- { path: "cartInfo.lineItems.serviceProperties.scheduledDate" },
140
- { path: "cartInfo.lineItems.serviceProperties.endDate" },
141
- { path: "lineItems.image.urlExpirationDate" },
142
- {
143
- path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
144
- },
145
- { path: "lineItems.serviceProperties.scheduledDate" },
146
- { path: "lineItems.serviceProperties.endDate" },
147
- {
148
- path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
149
- },
150
- { path: "customLineItems.serviceProperties.scheduledDate" },
151
- { path: "customLineItems.serviceProperties.endDate" }
152
- ]
153
- },
154
- {
155
- transformFn: transformSDKFloatToRESTFloat,
156
- paths: [
157
- { path: "cartInfo.lineItems.image.focalPoint.x" },
158
- { path: "cartInfo.lineItems.image.focalPoint.y" },
159
- { path: "lineItems.image.focalPoint.x" },
160
- { path: "lineItems.image.focalPoint.y" },
161
- { path: "cartInfo.lineItems.physicalProperties.weight" },
162
- {
163
- path: "cartInfo.lineItems.catalogOverrideFields.physicalProperties.weight"
164
- },
165
- { path: "cartInfo.contactInfo.address.geocode.latitude" },
166
- { path: "cartInfo.contactInfo.address.geocode.longitude" },
167
- { path: "lineItems.physicalProperties.weight" },
168
- { path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
169
- { path: "customLineItems.physicalProperties.weight" }
170
- ]
171
- }
172
- ]);
173
- const metadata = {
174
- entityFqdn: "wix.ecom.v1.cart",
175
- method: "POST",
176
- methodFqn: "com.wix.ecom.cart.api.v1.CartService.CreateCart",
177
- packageName: PACKAGE_NAME,
178
- migrationOptions: {
179
- optInTransformResponse: true
180
- },
181
- url: resolveComWixEcomCartApiV1CartServiceUrl({
182
- protoPath: "/v1/carts",
183
- data: serializedData,
184
- host
185
- }),
186
- data: serializedData,
187
- transformResponse: (payload2) => transformPaths(payload2, [
188
- {
189
- transformFn: transformRESTTimestampToSDKTimestamp,
190
- paths: [
191
- { path: "cart.createdDate" },
192
- { path: "cart.updatedDate" },
193
- { path: "cart.lineItems.image.urlExpirationDate" },
194
- {
195
- path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
196
- },
197
- { path: "cart.lineItems.serviceProperties.scheduledDate" },
198
- { path: "cart.lineItems.serviceProperties.endDate" }
199
- ]
200
- },
201
- {
202
- transformFn: transformRESTFloatToSDKFloat,
203
- paths: [
204
- { path: "cart.lineItems.image.focalPoint.x" },
205
- { path: "cart.lineItems.image.focalPoint.y" },
206
- { path: "cart.lineItems.physicalProperties.weight" },
207
- {
208
- path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
209
- },
210
- { path: "cart.contactInfo.address.geocode.latitude" },
211
- { path: "cart.contactInfo.address.geocode.longitude" }
212
- ]
213
- }
214
- ])
215
- };
216
- return metadata;
217
- }
218
- return __createCart;
219
- }
220
- function updateCart(payload) {
221
- function __updateCart({ host }) {
222
- const serializedData = transformPaths(payload, [
223
- {
224
- transformFn: transformSDKFieldMaskToRESTFieldMask,
225
- paths: [{ path: "cartFieldmask" }]
226
- },
227
- {
228
- transformFn: transformSDKTimestampToRESTTimestamp,
229
- paths: [
230
- { path: "cartInfo.createdDate" },
231
- { path: "cartInfo.updatedDate" },
232
- { path: "cartInfo.lineItems.image.urlExpirationDate" },
233
- {
234
- path: "cartInfo.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
235
- },
236
- { path: "cartInfo.lineItems.serviceProperties.scheduledDate" },
237
- { path: "cartInfo.lineItems.serviceProperties.endDate" },
238
- { path: "lineItems.image.urlExpirationDate" },
239
- {
240
- path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
241
- },
242
- { path: "lineItems.serviceProperties.scheduledDate" },
243
- { path: "lineItems.serviceProperties.endDate" },
244
- {
245
- path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
246
- },
247
- { path: "customLineItems.serviceProperties.scheduledDate" },
248
- { path: "customLineItems.serviceProperties.endDate" }
249
- ]
250
- },
251
- {
252
- transformFn: transformSDKFloatToRESTFloat,
253
- paths: [
254
- { path: "cartInfo.lineItems.image.focalPoint.x" },
255
- { path: "cartInfo.lineItems.image.focalPoint.y" },
256
- { path: "lineItems.image.focalPoint.x" },
257
- { path: "lineItems.image.focalPoint.y" },
258
- { path: "cartInfo.lineItems.physicalProperties.weight" },
259
- {
260
- path: "cartInfo.lineItems.catalogOverrideFields.physicalProperties.weight"
261
- },
262
- { path: "cartInfo.contactInfo.address.geocode.latitude" },
263
- { path: "cartInfo.contactInfo.address.geocode.longitude" },
264
- { path: "lineItems.physicalProperties.weight" },
265
- { path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
266
- { path: "customLineItems.physicalProperties.weight" }
267
- ]
268
- }
269
- ]);
270
- const metadata = {
271
- entityFqdn: "wix.ecom.v1.cart",
272
- method: "PATCH",
273
- methodFqn: "com.wix.ecom.cart.api.v1.CartService.UpdateCart",
274
- packageName: PACKAGE_NAME,
275
- migrationOptions: {
276
- optInTransformResponse: true
277
- },
278
- url: resolveComWixEcomCartApiV1CartServiceUrl({
279
- protoPath: "/v1/carts/{cartInfo.id}",
280
- data: serializedData,
281
- host
282
- }),
283
- data: serializedData,
284
- transformResponse: (payload2) => transformPaths(payload2, [
285
- {
286
- transformFn: transformRESTTimestampToSDKTimestamp,
287
- paths: [
288
- { path: "cart.createdDate" },
289
- { path: "cart.updatedDate" },
290
- { path: "cart.lineItems.image.urlExpirationDate" },
291
- {
292
- path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
293
- },
294
- { path: "cart.lineItems.serviceProperties.scheduledDate" },
295
- { path: "cart.lineItems.serviceProperties.endDate" }
296
- ]
297
- },
298
- {
299
- transformFn: transformRESTFloatToSDKFloat,
300
- paths: [
301
- { path: "cart.lineItems.image.focalPoint.x" },
302
- { path: "cart.lineItems.image.focalPoint.y" },
303
- { path: "cart.lineItems.physicalProperties.weight" },
304
- {
305
- path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
306
- },
307
- { path: "cart.contactInfo.address.geocode.latitude" },
308
- { path: "cart.contactInfo.address.geocode.longitude" }
309
- ]
310
- }
311
- ])
312
- };
313
- return metadata;
314
- }
315
- return __updateCart;
316
- }
317
- function getCart(payload) {
318
- function __getCart({ host }) {
319
- const metadata = {
320
- entityFqdn: "wix.ecom.v1.cart",
321
- method: "GET",
322
- methodFqn: "com.wix.ecom.cart.api.v1.CartService.GetCart",
323
- packageName: PACKAGE_NAME,
324
- migrationOptions: {
325
- optInTransformResponse: true
326
- },
327
- url: resolveComWixEcomCartApiV1CartServiceUrl({
328
- protoPath: "/v1/carts/{id}",
329
- data: payload,
330
- host
331
- }),
332
- params: toURLSearchParams(payload),
333
- transformResponse: (payload2) => transformPaths(payload2, [
334
- {
335
- transformFn: transformRESTTimestampToSDKTimestamp,
336
- paths: [
337
- { path: "cart.createdDate" },
338
- { path: "cart.updatedDate" },
339
- { path: "cart.lineItems.image.urlExpirationDate" },
340
- {
341
- path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
342
- },
343
- { path: "cart.lineItems.serviceProperties.scheduledDate" },
344
- { path: "cart.lineItems.serviceProperties.endDate" }
345
- ]
346
- },
347
- {
348
- transformFn: transformRESTFloatToSDKFloat,
349
- paths: [
350
- { path: "cart.lineItems.image.focalPoint.x" },
351
- { path: "cart.lineItems.image.focalPoint.y" },
352
- { path: "cart.lineItems.physicalProperties.weight" },
353
- {
354
- path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
355
- },
356
- { path: "cart.contactInfo.address.geocode.latitude" },
357
- { path: "cart.contactInfo.address.geocode.longitude" }
358
- ]
359
- }
360
- ])
361
- };
362
- return metadata;
363
- }
364
- return __getCart;
365
- }
366
- function getCartByCheckoutId(payload) {
367
- function __getCartByCheckoutId({ host }) {
368
- const metadata = {
369
- entityFqdn: "wix.ecom.v1.cart",
370
- method: "GET",
371
- methodFqn: "com.wix.ecom.cart.api.v1.CartService.GetCartByCheckoutId",
372
- packageName: PACKAGE_NAME,
373
- migrationOptions: {
374
- optInTransformResponse: true
375
- },
376
- url: resolveComWixEcomCartApiV1CartServiceUrl({
377
- protoPath: "/v1/carts/by-checkout-id/{id}",
378
- data: payload,
379
- host
380
- }),
381
- params: toURLSearchParams(payload),
382
- transformResponse: (payload2) => transformPaths(payload2, [
383
- {
384
- transformFn: transformRESTTimestampToSDKTimestamp,
385
- paths: [
386
- { path: "cart.createdDate" },
387
- { path: "cart.updatedDate" },
388
- { path: "cart.lineItems.image.urlExpirationDate" },
389
- {
390
- path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
391
- },
392
- { path: "cart.lineItems.serviceProperties.scheduledDate" },
393
- { path: "cart.lineItems.serviceProperties.endDate" }
394
- ]
395
- },
396
- {
397
- transformFn: transformRESTFloatToSDKFloat,
398
- paths: [
399
- { path: "cart.lineItems.image.focalPoint.x" },
400
- { path: "cart.lineItems.image.focalPoint.y" },
401
- { path: "cart.lineItems.physicalProperties.weight" },
402
- {
403
- path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
404
- },
405
- { path: "cart.contactInfo.address.geocode.latitude" },
406
- { path: "cart.contactInfo.address.geocode.longitude" }
407
- ]
408
- }
409
- ])
410
- };
411
- return metadata;
412
- }
413
- return __getCartByCheckoutId;
414
- }
415
- function addToCart(payload) {
416
- function __addToCart({ host }) {
417
- const serializedData = transformPaths(payload, [
418
- {
419
- transformFn: transformSDKTimestampToRESTTimestamp,
420
- paths: [
421
- { path: "lineItems.image.urlExpirationDate" },
422
- {
423
- path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
424
- },
425
- { path: "lineItems.serviceProperties.scheduledDate" },
426
- { path: "lineItems.serviceProperties.endDate" },
427
- {
428
- path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
429
- },
430
- { path: "customLineItems.serviceProperties.scheduledDate" },
431
- { path: "customLineItems.serviceProperties.endDate" }
432
- ]
433
- },
434
- {
435
- transformFn: transformSDKFloatToRESTFloat,
436
- paths: [
437
- { path: "lineItems.image.focalPoint.x" },
438
- { path: "lineItems.image.focalPoint.y" },
439
- { path: "lineItems.physicalProperties.weight" },
440
- { path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
441
- { path: "customLineItems.physicalProperties.weight" }
442
- ]
443
- }
444
- ]);
445
- const metadata = {
446
- entityFqdn: "wix.ecom.v1.cart",
447
- method: "POST",
448
- methodFqn: "com.wix.ecom.cart.api.v1.CartService.AddToCart",
449
- packageName: PACKAGE_NAME,
450
- migrationOptions: {
451
- optInTransformResponse: true
452
- },
453
- url: resolveComWixEcomCartApiV1CartServiceUrl({
454
- protoPath: "/v1/carts/{id}/add-to-cart",
455
- data: serializedData,
456
- host
457
- }),
458
- data: serializedData,
459
- transformResponse: (payload2) => transformPaths(payload2, [
460
- {
461
- transformFn: transformRESTTimestampToSDKTimestamp,
462
- paths: [
463
- { path: "cart.createdDate" },
464
- { path: "cart.updatedDate" },
465
- { path: "cart.lineItems.image.urlExpirationDate" },
466
- {
467
- path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
468
- },
469
- { path: "cart.lineItems.serviceProperties.scheduledDate" },
470
- { path: "cart.lineItems.serviceProperties.endDate" }
471
- ]
472
- },
473
- {
474
- transformFn: transformRESTFloatToSDKFloat,
475
- paths: [
476
- { path: "cart.lineItems.image.focalPoint.x" },
477
- { path: "cart.lineItems.image.focalPoint.y" },
478
- { path: "cart.lineItems.physicalProperties.weight" },
479
- {
480
- path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
481
- },
482
- { path: "cart.contactInfo.address.geocode.latitude" },
483
- { path: "cart.contactInfo.address.geocode.longitude" }
484
- ]
485
- }
486
- ])
487
- };
488
- return metadata;
489
- }
490
- return __addToCart;
491
- }
492
- function removeLineItems(payload) {
493
- function __removeLineItems({ host }) {
494
- const metadata = {
495
- entityFqdn: "wix.ecom.v1.cart",
496
- method: "POST",
497
- methodFqn: "com.wix.ecom.cart.api.v1.CartService.RemoveLineItems",
498
- packageName: PACKAGE_NAME,
499
- migrationOptions: {
500
- optInTransformResponse: true
501
- },
502
- url: resolveComWixEcomCartApiV1CartServiceUrl({
503
- protoPath: "/v1/carts/{id}/remove-line-items",
504
- data: payload,
505
- host
506
- }),
507
- data: payload,
508
- transformResponse: (payload2) => transformPaths(payload2, [
509
- {
510
- transformFn: transformRESTTimestampToSDKTimestamp,
511
- paths: [
512
- { path: "cart.createdDate" },
513
- { path: "cart.updatedDate" },
514
- { path: "cart.lineItems.image.urlExpirationDate" },
515
- {
516
- path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
517
- },
518
- { path: "cart.lineItems.serviceProperties.scheduledDate" },
519
- { path: "cart.lineItems.serviceProperties.endDate" }
520
- ]
521
- },
522
- {
523
- transformFn: transformRESTFloatToSDKFloat,
524
- paths: [
525
- { path: "cart.lineItems.image.focalPoint.x" },
526
- { path: "cart.lineItems.image.focalPoint.y" },
527
- { path: "cart.lineItems.physicalProperties.weight" },
528
- {
529
- path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
530
- },
531
- { path: "cart.contactInfo.address.geocode.latitude" },
532
- { path: "cart.contactInfo.address.geocode.longitude" }
533
- ]
534
- }
535
- ])
536
- };
537
- return metadata;
538
- }
539
- return __removeLineItems;
540
- }
541
- function createCheckout(payload) {
542
- function __createCheckout({ host }) {
543
- const serializedData = transformPaths(payload, [
544
- {
545
- transformFn: transformSDKFloatToRESTFloat,
546
- paths: [
547
- { path: "shippingAddress.geocode.latitude" },
548
- { path: "shippingAddress.geocode.longitude" },
549
- { path: "billingAddress.geocode.latitude" },
550
- { path: "billingAddress.geocode.longitude" }
551
- ]
552
- }
553
- ]);
554
- const metadata = {
555
- entityFqdn: "wix.ecom.v1.cart",
556
- method: "POST",
557
- methodFqn: "com.wix.ecom.cart.api.v1.CartService.CreateCheckout",
558
- packageName: PACKAGE_NAME,
559
- migrationOptions: {
560
- optInTransformResponse: true
561
- },
562
- url: resolveComWixEcomCartApiV1CartServiceUrl({
563
- protoPath: "/v1/carts/{id}/create-checkout",
564
- data: serializedData,
565
- host
566
- }),
567
- data: serializedData
568
- };
569
- return metadata;
570
- }
571
- return __createCheckout;
572
- }
573
- function removeCoupon(payload) {
574
- function __removeCoupon({ host }) {
575
- const metadata = {
576
- entityFqdn: "wix.ecom.v1.cart",
577
- method: "POST",
578
- methodFqn: "com.wix.ecom.cart.api.v1.CartService.RemoveCoupon",
579
- packageName: PACKAGE_NAME,
580
- migrationOptions: {
581
- optInTransformResponse: true
582
- },
583
- url: resolveComWixEcomCartApiV1CartServiceUrl({
584
- protoPath: "/v1/carts/{id}/remove-coupon",
585
- data: payload,
586
- host
587
- }),
588
- data: payload,
589
- transformResponse: (payload2) => transformPaths(payload2, [
590
- {
591
- transformFn: transformRESTTimestampToSDKTimestamp,
592
- paths: [
593
- { path: "cart.createdDate" },
594
- { path: "cart.updatedDate" },
595
- { path: "cart.lineItems.image.urlExpirationDate" },
596
- {
597
- path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
598
- },
599
- { path: "cart.lineItems.serviceProperties.scheduledDate" },
600
- { path: "cart.lineItems.serviceProperties.endDate" }
601
- ]
602
- },
603
- {
604
- transformFn: transformRESTFloatToSDKFloat,
605
- paths: [
606
- { path: "cart.lineItems.image.focalPoint.x" },
607
- { path: "cart.lineItems.image.focalPoint.y" },
608
- { path: "cart.lineItems.physicalProperties.weight" },
609
- {
610
- path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
611
- },
612
- { path: "cart.contactInfo.address.geocode.latitude" },
613
- { path: "cart.contactInfo.address.geocode.longitude" }
614
- ]
615
- }
616
- ])
617
- };
618
- return metadata;
619
- }
620
- return __removeCoupon;
621
- }
622
- function updateLineItemsQuantity(payload) {
623
- function __updateLineItemsQuantity({ host }) {
624
- const metadata = {
625
- entityFqdn: "wix.ecom.v1.cart",
626
- method: "POST",
627
- methodFqn: "com.wix.ecom.cart.api.v1.CartService.UpdateLineItemsQuantity",
628
- packageName: PACKAGE_NAME,
629
- migrationOptions: {
630
- optInTransformResponse: true
631
- },
632
- url: resolveComWixEcomCartApiV1CartServiceUrl({
633
- protoPath: "/v1/carts/{id}/update-line-items-quantity",
634
- data: payload,
635
- host
636
- }),
637
- data: payload,
638
- transformResponse: (payload2) => transformPaths(payload2, [
639
- {
640
- transformFn: transformRESTTimestampToSDKTimestamp,
641
- paths: [
642
- { path: "cart.createdDate" },
643
- { path: "cart.updatedDate" },
644
- { path: "cart.lineItems.image.urlExpirationDate" },
645
- {
646
- path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
647
- },
648
- { path: "cart.lineItems.serviceProperties.scheduledDate" },
649
- { path: "cart.lineItems.serviceProperties.endDate" }
650
- ]
651
- },
652
- {
653
- transformFn: transformRESTFloatToSDKFloat,
654
- paths: [
655
- { path: "cart.lineItems.image.focalPoint.x" },
656
- { path: "cart.lineItems.image.focalPoint.y" },
657
- { path: "cart.lineItems.physicalProperties.weight" },
658
- {
659
- path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
660
- },
661
- { path: "cart.contactInfo.address.geocode.latitude" },
662
- { path: "cart.contactInfo.address.geocode.longitude" }
663
- ]
664
- }
665
- ])
666
- };
667
- return metadata;
668
- }
669
- return __updateLineItemsQuantity;
670
- }
671
- function estimateTotals(payload) {
672
- function __estimateTotals({ host }) {
673
- const serializedData = transformPaths(payload, [
674
- {
675
- transformFn: transformSDKFloatToRESTFloat,
676
- paths: [
677
- { path: "shippingAddress.geocode.latitude" },
678
- { path: "shippingAddress.geocode.longitude" },
679
- { path: "billingAddress.geocode.latitude" },
680
- { path: "billingAddress.geocode.longitude" }
681
- ]
682
- }
683
- ]);
684
- const metadata = {
685
- entityFqdn: "wix.ecom.v1.cart",
686
- method: "POST",
687
- methodFqn: "com.wix.ecom.cart.api.v1.CartService.EstimateTotals",
688
- packageName: PACKAGE_NAME,
689
- migrationOptions: {
690
- optInTransformResponse: true
691
- },
692
- url: resolveComWixEcomCartApiV1CartServiceUrl({
693
- protoPath: "/v1/carts/{id}/estimate-totals",
694
- data: serializedData,
695
- host
696
- }),
697
- data: serializedData,
698
- transformResponse: (payload2) => transformPaths(payload2, [
699
- {
700
- transformFn: transformRESTTimestampToSDKTimestamp,
701
- paths: [
702
- { path: "cart.createdDate" },
703
- { path: "cart.updatedDate" },
704
- { path: "cart.lineItems.image.urlExpirationDate" },
705
- {
706
- path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
707
- },
708
- { path: "cart.lineItems.serviceProperties.scheduledDate" },
709
- { path: "cart.lineItems.serviceProperties.endDate" },
710
- {
711
- path: "shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
712
- },
713
- {
714
- path: "shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
715
- },
716
- {
717
- path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
718
- },
719
- {
720
- path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
721
- },
722
- { path: "membershipOptions.eligibleMemberships.expirationDate" },
723
- {
724
- path: "membershipOptions.invalidMemberships.membership.expirationDate"
725
- },
726
- {
727
- path: "membershipOptions.validatedExistingMemberships.memberships.membership.expirationDate"
728
- }
729
- ]
730
- },
731
- {
732
- transformFn: transformRESTFloatToSDKFloat,
733
- paths: [
734
- { path: "cart.lineItems.image.focalPoint.x" },
735
- { path: "cart.lineItems.image.focalPoint.y" },
736
- { path: "cart.lineItems.physicalProperties.weight" },
737
- {
738
- path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
739
- },
740
- { path: "cart.contactInfo.address.geocode.latitude" },
741
- { path: "cart.contactInfo.address.geocode.longitude" },
742
- {
743
- path: "shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
744
- },
745
- {
746
- path: "shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
747
- },
748
- {
749
- path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
750
- },
751
- {
752
- path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
753
- },
754
- { path: "appliedDiscounts.merchantDiscount.percentage" }
755
- ]
756
- }
757
- ])
758
- };
759
- return metadata;
760
- }
761
- return __estimateTotals;
762
- }
763
- function deleteCart(payload) {
764
- function __deleteCart({ host }) {
765
- const metadata = {
766
- entityFqdn: "wix.ecom.v1.cart",
767
- method: "DELETE",
768
- methodFqn: "com.wix.ecom.cart.api.v1.CartService.DeleteCart",
769
- packageName: PACKAGE_NAME,
770
- migrationOptions: {
771
- optInTransformResponse: true
772
- },
773
- url: resolveComWixEcomCartApiV1CartServiceUrl({
774
- protoPath: "/v1/carts/{id}",
775
- data: payload,
776
- host
777
- }),
778
- params: toURLSearchParams(payload)
779
- };
780
- return metadata;
781
- }
782
- return __deleteCart;
783
- }
784
- function removeBusinessLocation(payload) {
785
- function __removeBusinessLocation({ host }) {
786
- const metadata = {
787
- entityFqdn: "wix.ecom.v1.cart",
788
- method: "POST",
789
- methodFqn: "com.wix.ecom.cart.api.v1.CartService.RemoveBusinessLocation",
790
- packageName: PACKAGE_NAME,
791
- migrationOptions: {
792
- optInTransformResponse: true
793
- },
794
- url: resolveComWixEcomCartApiV1CartServiceUrl({
795
- protoPath: "/v1/carts/{id}/remove-business-location",
796
- data: payload,
797
- host
798
- }),
799
- data: payload,
800
- transformResponse: (payload2) => transformPaths(payload2, [
801
- {
802
- transformFn: transformRESTTimestampToSDKTimestamp,
803
- paths: [
804
- { path: "cart.createdDate" },
805
- { path: "cart.updatedDate" },
806
- { path: "cart.lineItems.image.urlExpirationDate" },
807
- {
808
- path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
809
- },
810
- { path: "cart.lineItems.serviceProperties.scheduledDate" },
811
- { path: "cart.lineItems.serviceProperties.endDate" }
812
- ]
813
- },
814
- {
815
- transformFn: transformRESTFloatToSDKFloat,
816
- paths: [
817
- { path: "cart.lineItems.image.focalPoint.x" },
818
- { path: "cart.lineItems.image.focalPoint.y" },
819
- { path: "cart.lineItems.physicalProperties.weight" },
820
- {
821
- path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
822
- },
823
- { path: "cart.contactInfo.address.geocode.latitude" },
824
- { path: "cart.contactInfo.address.geocode.longitude" }
825
- ]
826
- }
827
- ])
828
- };
829
- return metadata;
830
- }
831
- return __removeBusinessLocation;
832
- }
833
-
834
- // src/ecom-v1-cart-cart.universal.ts
835
- import { transformSDKAddressToRESTAddress } from "@wix/sdk-runtime/transformations/address";
836
- import { transformRESTAddressToSDKAddress } from "@wix/sdk-runtime/transformations/address";
837
- import { transformSDKImageToRESTImage } from "@wix/sdk-runtime/transformations/image";
838
- import { transformRESTImageToSDKImage } from "@wix/sdk-runtime/transformations/image";
839
- import { transformSDKPageURLV2ToRESTPageURLV2 } from "@wix/sdk-runtime/transformations/page-url-v2";
840
- import { transformRESTPageURLV2ToSDKPageURLV2 } from "@wix/sdk-runtime/transformations/page-url-v2";
841
- import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
842
- var DescriptionLineType = /* @__PURE__ */ ((DescriptionLineType2) => {
843
- DescriptionLineType2["UNRECOGNISED"] = "UNRECOGNISED";
844
- DescriptionLineType2["PLAIN_TEXT"] = "PLAIN_TEXT";
845
- DescriptionLineType2["COLOR"] = "COLOR";
846
- return DescriptionLineType2;
847
- })(DescriptionLineType || {});
848
- var ItemAvailabilityStatus = /* @__PURE__ */ ((ItemAvailabilityStatus2) => {
849
- ItemAvailabilityStatus2["AVAILABLE"] = "AVAILABLE";
850
- ItemAvailabilityStatus2["NOT_FOUND"] = "NOT_FOUND";
851
- ItemAvailabilityStatus2["NOT_AVAILABLE"] = "NOT_AVAILABLE";
852
- ItemAvailabilityStatus2["PARTIALLY_AVAILABLE"] = "PARTIALLY_AVAILABLE";
853
- return ItemAvailabilityStatus2;
854
- })(ItemAvailabilityStatus || {});
855
- var DimensionsUnit = /* @__PURE__ */ ((DimensionsUnit2) => {
856
- DimensionsUnit2["UNKNOWN_DIMENSIONS_UNIT"] = "UNKNOWN_DIMENSIONS_UNIT";
857
- DimensionsUnit2["MM"] = "MM";
858
- DimensionsUnit2["CM"] = "CM";
859
- DimensionsUnit2["M"] = "M";
860
- DimensionsUnit2["IN"] = "IN";
861
- DimensionsUnit2["FT"] = "FT";
862
- DimensionsUnit2["YD"] = "YD";
863
- return DimensionsUnit2;
864
- })(DimensionsUnit || {});
865
- var ItemTypePreset = /* @__PURE__ */ ((ItemTypePreset2) => {
866
- ItemTypePreset2["UNRECOGNISED"] = "UNRECOGNISED";
867
- ItemTypePreset2["PHYSICAL"] = "PHYSICAL";
868
- ItemTypePreset2["DIGITAL"] = "DIGITAL";
869
- ItemTypePreset2["GIFT_CARD"] = "GIFT_CARD";
870
- ItemTypePreset2["SERVICE"] = "SERVICE";
871
- return ItemTypePreset2;
872
- })(ItemTypePreset || {});
873
- var SubscriptionFrequency = /* @__PURE__ */ ((SubscriptionFrequency2) => {
874
- SubscriptionFrequency2["UNDEFINED"] = "UNDEFINED";
875
- SubscriptionFrequency2["DAY"] = "DAY";
876
- SubscriptionFrequency2["WEEK"] = "WEEK";
877
- SubscriptionFrequency2["MONTH"] = "MONTH";
878
- SubscriptionFrequency2["YEAR"] = "YEAR";
879
- return SubscriptionFrequency2;
880
- })(SubscriptionFrequency || {});
881
- var ProductPeriodAlignment = /* @__PURE__ */ ((ProductPeriodAlignment2) => {
882
- ProductPeriodAlignment2["ALIGNED_WITH_BILLING_PERIOD"] = "ALIGNED_WITH_BILLING_PERIOD";
883
- ProductPeriodAlignment2["NOT_ALIGNED_WITH_BILLING_PERIOD"] = "NOT_ALIGNED_WITH_BILLING_PERIOD";
884
- return ProductPeriodAlignment2;
885
- })(ProductPeriodAlignment || {});
886
- var FileType = /* @__PURE__ */ ((FileType2) => {
887
- FileType2["UNSPECIFIED"] = "UNSPECIFIED";
888
- FileType2["SECURE_PICTURE"] = "SECURE_PICTURE";
889
- FileType2["SECURE_VIDEO"] = "SECURE_VIDEO";
890
- FileType2["SECURE_DOCUMENT"] = "SECURE_DOCUMENT";
891
- FileType2["SECURE_MUSIC"] = "SECURE_MUSIC";
892
- FileType2["SECURE_ARCHIVE"] = "SECURE_ARCHIVE";
893
- FileType2["SECURE_RAW"] = "SECURE_RAW";
894
- return FileType2;
895
- })(FileType || {});
896
- var PaymentOptionType = /* @__PURE__ */ ((PaymentOptionType2) => {
897
- PaymentOptionType2["FULL_PAYMENT_ONLINE"] = "FULL_PAYMENT_ONLINE";
898
- PaymentOptionType2["FULL_PAYMENT_OFFLINE"] = "FULL_PAYMENT_OFFLINE";
899
- PaymentOptionType2["MEMBERSHIP"] = "MEMBERSHIP";
900
- PaymentOptionType2["DEPOSIT_ONLINE"] = "DEPOSIT_ONLINE";
901
- PaymentOptionType2["MEMBERSHIP_OFFLINE"] = "MEMBERSHIP_OFFLINE";
902
- PaymentOptionType2["MEMBERSHIP_ONLINE_WITH_OFFLINE_REMAINDER"] = "MEMBERSHIP_ONLINE_WITH_OFFLINE_REMAINDER";
903
- return PaymentOptionType2;
904
- })(PaymentOptionType || {});
905
- var TaxableAddressType = /* @__PURE__ */ ((TaxableAddressType2) => {
906
- TaxableAddressType2["BUSINESS"] = "BUSINESS";
907
- TaxableAddressType2["BILLING"] = "BILLING";
908
- TaxableAddressType2["SHIPPING"] = "SHIPPING";
909
- return TaxableAddressType2;
910
- })(TaxableAddressType || {});
911
- var PlatformFeeChargeType = /* @__PURE__ */ ((PlatformFeeChargeType2) => {
912
- PlatformFeeChargeType2["PASS_ON"] = "PASS_ON";
913
- PlatformFeeChargeType2["ABSORBED"] = "ABSORBED";
914
- return PlatformFeeChargeType2;
915
- })(PlatformFeeChargeType || {});
916
- var WeightUnit = /* @__PURE__ */ ((WeightUnit2) => {
917
- WeightUnit2["UNSPECIFIED_WEIGHT_UNIT"] = "UNSPECIFIED_WEIGHT_UNIT";
918
- WeightUnit2["KG"] = "KG";
919
- WeightUnit2["LB"] = "LB";
920
- return WeightUnit2;
921
- })(WeightUnit || {});
922
- var DiscountType = /* @__PURE__ */ ((DiscountType2) => {
923
- DiscountType2["GLOBAL"] = "GLOBAL";
924
- DiscountType2["SPECIFIC_ITEMS"] = "SPECIFIC_ITEMS";
925
- DiscountType2["SHIPPING"] = "SHIPPING";
926
- return DiscountType2;
927
- })(DiscountType || {});
928
- var VatType = /* @__PURE__ */ ((VatType2) => {
929
- VatType2["UNSPECIFIED"] = "UNSPECIFIED";
930
- VatType2["CPF"] = "CPF";
931
- VatType2["CNPJ"] = "CNPJ";
932
- return VatType2;
933
- })(VatType || {});
934
- var JurisdictionType = /* @__PURE__ */ ((JurisdictionType2) => {
935
- JurisdictionType2["UNDEFINED"] = "UNDEFINED";
936
- JurisdictionType2["COUNTRY"] = "COUNTRY";
937
- JurisdictionType2["STATE"] = "STATE";
938
- JurisdictionType2["COUNTY"] = "COUNTY";
939
- JurisdictionType2["CITY"] = "CITY";
940
- JurisdictionType2["SPECIAL"] = "SPECIAL";
941
- return JurisdictionType2;
942
- })(JurisdictionType || {});
943
- var RateType = /* @__PURE__ */ ((RateType2) => {
944
- RateType2["NO_TAX_COLLECTED"] = "NO_TAX_COLLECTED";
945
- RateType2["MANUAL_RATE"] = "MANUAL_RATE";
946
- RateType2["AUTO_RATE"] = "AUTO_RATE";
947
- RateType2["FALLBACK_RATE"] = "FALLBACK_RATE";
948
- return RateType2;
949
- })(RateType || {});
950
- var ManualCalculationReason = /* @__PURE__ */ ((ManualCalculationReason2) => {
951
- ManualCalculationReason2["GLOBAL_SETTING_TO_MANUAL"] = "GLOBAL_SETTING_TO_MANUAL";
952
- ManualCalculationReason2["REGION_SETTING_TO_MANUAL"] = "REGION_SETTING_TO_MANUAL";
953
- return ManualCalculationReason2;
954
- })(ManualCalculationReason || {});
955
- var FallbackReason = /* @__PURE__ */ ((FallbackReason2) => {
956
- FallbackReason2["AUTO_TAX_FAILED"] = "AUTO_TAX_FAILED";
957
- FallbackReason2["AUTO_TAX_DEACTIVATED"] = "AUTO_TAX_DEACTIVATED";
958
- return FallbackReason2;
959
- })(FallbackReason || {});
960
- var PickupMethod = /* @__PURE__ */ ((PickupMethod2) => {
961
- PickupMethod2["STORE_PICKUP"] = "STORE_PICKUP";
962
- PickupMethod2["PICKUP_POINT"] = "PICKUP_POINT";
963
- return PickupMethod2;
964
- })(PickupMethod || {});
965
- var ChargeType = /* @__PURE__ */ ((ChargeType2) => {
966
- ChargeType2["HANDLING_FEE"] = "HANDLING_FEE";
967
- ChargeType2["INSURANCE"] = "INSURANCE";
968
- return ChargeType2;
969
- })(ChargeType || {});
970
- var AppliedDiscountDiscountType = /* @__PURE__ */ ((AppliedDiscountDiscountType2) => {
971
- AppliedDiscountDiscountType2["GLOBAL"] = "GLOBAL";
972
- AppliedDiscountDiscountType2["SPECIFIC_ITEMS"] = "SPECIFIC_ITEMS";
973
- AppliedDiscountDiscountType2["SHIPPING"] = "SHIPPING";
974
- return AppliedDiscountDiscountType2;
975
- })(AppliedDiscountDiscountType || {});
976
- var RuleType = /* @__PURE__ */ ((RuleType2) => {
977
- RuleType2["VALIDATION"] = "VALIDATION";
978
- RuleType2["OTHER"] = "OTHER";
979
- RuleType2["MAX"] = "MAX";
980
- RuleType2["MIN"] = "MIN";
981
- RuleType2["MAX_LENGTH"] = "MAX_LENGTH";
982
- RuleType2["MIN_LENGTH"] = "MIN_LENGTH";
983
- RuleType2["MAX_SIZE"] = "MAX_SIZE";
984
- RuleType2["MIN_SIZE"] = "MIN_SIZE";
985
- RuleType2["FORMAT"] = "FORMAT";
986
- RuleType2["DECIMAL_LTE"] = "DECIMAL_LTE";
987
- RuleType2["DECIMAL_GTE"] = "DECIMAL_GTE";
988
- RuleType2["DECIMAL_LT"] = "DECIMAL_LT";
989
- RuleType2["DECIMAL_GT"] = "DECIMAL_GT";
990
- RuleType2["DECIMAL_MAX_SCALE"] = "DECIMAL_MAX_SCALE";
991
- RuleType2["INVALID_ENUM_VALUE"] = "INVALID_ENUM_VALUE";
992
- RuleType2["REQUIRED_FIELD"] = "REQUIRED_FIELD";
993
- RuleType2["FIELD_NOT_ALLOWED"] = "FIELD_NOT_ALLOWED";
994
- RuleType2["ONE_OF_ALIGNMENT"] = "ONE_OF_ALIGNMENT";
995
- RuleType2["EXACT_LENGTH"] = "EXACT_LENGTH";
996
- RuleType2["EXACT_SIZE"] = "EXACT_SIZE";
997
- RuleType2["REQUIRED_ONE_OF_FIELD"] = "REQUIRED_ONE_OF_FIELD";
998
- return RuleType2;
999
- })(RuleType || {});
1000
- var BalanceType = /* @__PURE__ */ ((BalanceType2) => {
1001
- BalanceType2["PUNCH_CARD"] = "PUNCH_CARD";
1002
- BalanceType2["CREDIT"] = "CREDIT";
1003
- return BalanceType2;
1004
- })(BalanceType || {});
1005
- var QuotaType = /* @__PURE__ */ ((QuotaType2) => {
1006
- QuotaType2["LIMITED"] = "LIMITED";
1007
- QuotaType2["UNLIMITED"] = "UNLIMITED";
1008
- return QuotaType2;
1009
- })(QuotaType || {});
1010
- var LimitedQuotaType = /* @__PURE__ */ ((LimitedQuotaType2) => {
1011
- LimitedQuotaType2["PUNCH_CARD"] = "PUNCH_CARD";
1012
- LimitedQuotaType2["CREDIT"] = "CREDIT";
1013
- return LimitedQuotaType2;
1014
- })(LimitedQuotaType || {});
1015
- var AdditionalFeeSource = /* @__PURE__ */ ((AdditionalFeeSource2) => {
1016
- AdditionalFeeSource2["UNKNOWN_ADDITIONAL_FEE_SOURCE"] = "UNKNOWN_ADDITIONAL_FEE_SOURCE";
1017
- AdditionalFeeSource2["SERVICE_PLUGIN"] = "SERVICE_PLUGIN";
1018
- AdditionalFeeSource2["ITEM"] = "ITEM";
1019
- AdditionalFeeSource2["MANUAL"] = "MANUAL";
1020
- AdditionalFeeSource2["SHIPPING"] = "SHIPPING";
1021
- AdditionalFeeSource2["PLATFORM"] = "PLATFORM";
1022
- return AdditionalFeeSource2;
1023
- })(AdditionalFeeSource || {});
1024
- var Severity = /* @__PURE__ */ ((Severity2) => {
1025
- Severity2["WARNING"] = "WARNING";
1026
- Severity2["ERROR"] = "ERROR";
1027
- return Severity2;
1028
- })(Severity || {});
1029
- var NameInOther = /* @__PURE__ */ ((NameInOther2) => {
1030
- NameInOther2["OTHER_DEFAULT"] = "OTHER_DEFAULT";
1031
- return NameInOther2;
1032
- })(NameInOther || {});
1033
- var NameInLineItem = /* @__PURE__ */ ((NameInLineItem2) => {
1034
- NameInLineItem2["LINE_ITEM_DEFAULT"] = "LINE_ITEM_DEFAULT";
1035
- return NameInLineItem2;
1036
- })(NameInLineItem || {});
1037
- var SuggestedFix = /* @__PURE__ */ ((SuggestedFix2) => {
1038
- SuggestedFix2["UNKNOWN_SUGGESTED_FIX"] = "UNKNOWN_SUGGESTED_FIX";
1039
- SuggestedFix2["REMOVE_LINE_ITEM"] = "REMOVE_LINE_ITEM";
1040
- return SuggestedFix2;
1041
- })(SuggestedFix || {});
1042
- var ChannelType = /* @__PURE__ */ ((ChannelType2) => {
1043
- ChannelType2["UNSPECIFIED"] = "UNSPECIFIED";
1044
- ChannelType2["WEB"] = "WEB";
1045
- ChannelType2["POS"] = "POS";
1046
- ChannelType2["EBAY"] = "EBAY";
1047
- ChannelType2["AMAZON"] = "AMAZON";
1048
- ChannelType2["OTHER_PLATFORM"] = "OTHER_PLATFORM";
1049
- ChannelType2["WIX_APP_STORE"] = "WIX_APP_STORE";
1050
- ChannelType2["WIX_INVOICES"] = "WIX_INVOICES";
1051
- ChannelType2["BACKOFFICE_MERCHANT"] = "BACKOFFICE_MERCHANT";
1052
- ChannelType2["WISH"] = "WISH";
1053
- ChannelType2["CLASS_PASS"] = "CLASS_PASS";
1054
- ChannelType2["GLOBAL_E"] = "GLOBAL_E";
1055
- ChannelType2["FACEBOOK"] = "FACEBOOK";
1056
- ChannelType2["ETSY"] = "ETSY";
1057
- ChannelType2["TIKTOK"] = "TIKTOK";
1058
- ChannelType2["FAIRE_COM"] = "FAIRE_COM";
1059
- ChannelType2["PAYPAL_AGENTIC_CHECKOUT"] = "PAYPAL_AGENTIC_CHECKOUT";
1060
- ChannelType2["STRIPE_AGENTIC_CHECKOUT"] = "STRIPE_AGENTIC_CHECKOUT";
1061
- ChannelType2["WIX_INVOICES_PLATFORM"] = "WIX_INVOICES_PLATFORM";
1062
- ChannelType2["UCP_AGENTIC_CHECKOUT"] = "UCP_AGENTIC_CHECKOUT";
1063
- return ChannelType2;
1064
- })(ChannelType || {});
1065
- var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
1066
- WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
1067
- WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
1068
- WebhookIdentityType2["MEMBER"] = "MEMBER";
1069
- WebhookIdentityType2["WIX_USER"] = "WIX_USER";
1070
- WebhookIdentityType2["APP"] = "APP";
1071
- return WebhookIdentityType2;
1072
- })(WebhookIdentityType || {});
1073
- async function createCart2(options) {
1074
- const { httpClient, sideEffects } = arguments[1];
1075
- const payload = transformPaths2(
1076
- renameKeysFromSDKRequestToRESTRequest({
1077
- cartInfo: options?.cartInfo,
1078
- couponCode: options?.couponCode,
1079
- lineItems: options?.lineItems,
1080
- customLineItems: options?.customLineItems
1081
- }),
1082
- [
1083
- {
1084
- transformFn: transformSDKPageURLV2ToRESTPageURLV2,
1085
- paths: [
1086
- { path: "cartInfo.lineItems.url" },
1087
- { path: "lineItems.url" },
1088
- { path: "customLineItems.url" }
1089
- ]
1090
- },
1091
- {
1092
- transformFn: transformSDKImageToRESTImage,
1093
- paths: [
1094
- { path: "cartInfo.lineItems.image" },
1095
- { path: "cartInfo.lineItems.catalogOverrideFields.image" },
1096
- { path: "lineItems.image" },
1097
- { path: "lineItems.catalogOverrideFields.image" },
1098
- { path: "customLineItems.media" }
1099
- ]
1100
- },
1101
- {
1102
- transformFn: transformSDKAddressToRESTAddress,
1103
- paths: [{ path: "cartInfo.contactInfo.address" }]
1104
- }
1105
- ]
1106
- );
1107
- const reqOpts = createCart(payload);
1108
- sideEffects?.onSiteCall?.();
1109
- try {
1110
- const result = await httpClient.request(reqOpts);
1111
- sideEffects?.onSuccess?.(result);
1112
- return renameKeysFromRESTResponseToSDKResponse(
1113
- transformPaths2(result.data, [
1114
- {
1115
- transformFn: transformRESTPageURLV2ToSDKPageURLV2,
1116
- paths: [{ path: "cart.lineItems.url" }]
1117
- },
1118
- {
1119
- transformFn: transformRESTImageToSDKImage,
1120
- paths: [
1121
- { path: "cart.lineItems.image" },
1122
- { path: "cart.lineItems.catalogOverrideFields.image" }
1123
- ]
1124
- },
1125
- {
1126
- transformFn: transformRESTAddressToSDKAddress,
1127
- paths: [{ path: "cart.contactInfo.address" }]
1128
- }
1129
- ])
1130
- )?.cart;
1131
- } catch (err) {
1132
- const transformedError = sdkTransformError(
1133
- err,
1134
- {
1135
- spreadPathsToArguments: {},
1136
- explicitPathsToArguments: {
1137
- cartInfo: "$[0].cartInfo",
1138
- couponCode: "$[0].couponCode",
1139
- lineItems: "$[0].lineItems",
1140
- customLineItems: "$[0].customLineItems"
1141
- },
1142
- singleArgumentUnchanged: false
1143
- },
1144
- ["options"]
1145
- );
1146
- sideEffects?.onError?.(err);
1147
- throw transformedError;
1148
- }
1149
- }
1150
- async function updateCart2(_id, options) {
1151
- const { httpClient, sideEffects } = arguments[2];
1152
- const payload = transformPaths2(
1153
- renameKeysFromSDKRequestToRESTRequest({
1154
- cartInfo: { ...options?.cartInfo, id: _id },
1155
- couponCode: options?.couponCode,
1156
- lineItems: options?.lineItems,
1157
- customLineItems: options?.customLineItems
1158
- }),
1159
- [
1160
- {
1161
- transformFn: transformSDKPageURLV2ToRESTPageURLV2,
1162
- paths: [
1163
- { path: "cartInfo.lineItems.url" },
1164
- { path: "lineItems.url" },
1165
- { path: "customLineItems.url" }
1166
- ]
1167
- },
1168
- {
1169
- transformFn: transformSDKImageToRESTImage,
1170
- paths: [
1171
- { path: "cartInfo.lineItems.image" },
1172
- { path: "cartInfo.lineItems.catalogOverrideFields.image" },
1173
- { path: "lineItems.image" },
1174
- { path: "lineItems.catalogOverrideFields.image" },
1175
- { path: "customLineItems.media" }
1176
- ]
1177
- },
1178
- {
1179
- transformFn: transformSDKAddressToRESTAddress,
1180
- paths: [{ path: "cartInfo.contactInfo.address" }]
1181
- }
1182
- ]
1183
- );
1184
- const reqOpts = updateCart(payload);
1185
- sideEffects?.onSiteCall?.();
1186
- try {
1187
- const result = await httpClient.request(reqOpts);
1188
- sideEffects?.onSuccess?.(result);
1189
- return renameKeysFromRESTResponseToSDKResponse(
1190
- transformPaths2(result.data, [
1191
- {
1192
- transformFn: transformRESTPageURLV2ToSDKPageURLV2,
1193
- paths: [{ path: "cart.lineItems.url" }]
1194
- },
1195
- {
1196
- transformFn: transformRESTImageToSDKImage,
1197
- paths: [
1198
- { path: "cart.lineItems.image" },
1199
- { path: "cart.lineItems.catalogOverrideFields.image" }
1200
- ]
1201
- },
1202
- {
1203
- transformFn: transformRESTAddressToSDKAddress,
1204
- paths: [{ path: "cart.contactInfo.address" }]
1205
- }
1206
- ])
1207
- )?.cart;
1208
- } catch (err) {
1209
- const transformedError = sdkTransformError(
1210
- err,
1211
- {
1212
- spreadPathsToArguments: { cartInfo: "$[1].cartInfo" },
1213
- explicitPathsToArguments: {
1214
- "cartInfo.id": "$[0]",
1215
- couponCode: "$[1].couponCode",
1216
- lineItems: "$[1].lineItems",
1217
- customLineItems: "$[1].customLineItems"
1218
- },
1219
- singleArgumentUnchanged: false
1220
- },
1221
- ["_id", "options"]
1222
- );
1223
- sideEffects?.onError?.(err);
1224
- throw transformedError;
1225
- }
1226
- }
1227
- async function getCart2(_id) {
1228
- const { httpClient, sideEffects } = arguments[1];
1229
- const payload = renameKeysFromSDKRequestToRESTRequest({ id: _id });
1230
- const reqOpts = getCart(payload);
1231
- sideEffects?.onSiteCall?.();
1232
- try {
1233
- const result = await httpClient.request(reqOpts);
1234
- sideEffects?.onSuccess?.(result);
1235
- return renameKeysFromRESTResponseToSDKResponse(
1236
- transformPaths2(result.data, [
1237
- {
1238
- transformFn: transformRESTPageURLV2ToSDKPageURLV2,
1239
- paths: [{ path: "cart.lineItems.url" }]
1240
- },
1241
- {
1242
- transformFn: transformRESTImageToSDKImage,
1243
- paths: [
1244
- { path: "cart.lineItems.image" },
1245
- { path: "cart.lineItems.catalogOverrideFields.image" }
1246
- ]
1247
- },
1248
- {
1249
- transformFn: transformRESTAddressToSDKAddress,
1250
- paths: [{ path: "cart.contactInfo.address" }]
1251
- }
1252
- ])
1253
- )?.cart;
1254
- } catch (err) {
1255
- const transformedError = sdkTransformError(
1256
- err,
1257
- {
1258
- spreadPathsToArguments: {},
1259
- explicitPathsToArguments: { id: "$[0]" },
1260
- singleArgumentUnchanged: false
1261
- },
1262
- ["_id"]
1263
- );
1264
- sideEffects?.onError?.(err);
1265
- throw transformedError;
1266
- }
1267
- }
1268
- async function getCartByCheckoutId2(_id) {
1269
- const { httpClient, sideEffects } = arguments[1];
1270
- const payload = renameKeysFromSDKRequestToRESTRequest({ id: _id });
1271
- const reqOpts = getCartByCheckoutId(payload);
1272
- sideEffects?.onSiteCall?.();
1273
- try {
1274
- const result = await httpClient.request(reqOpts);
1275
- sideEffects?.onSuccess?.(result);
1276
- return renameKeysFromRESTResponseToSDKResponse(
1277
- transformPaths2(result.data, [
1278
- {
1279
- transformFn: transformRESTPageURLV2ToSDKPageURLV2,
1280
- paths: [{ path: "cart.lineItems.url" }]
1281
- },
1282
- {
1283
- transformFn: transformRESTImageToSDKImage,
1284
- paths: [
1285
- { path: "cart.lineItems.image" },
1286
- { path: "cart.lineItems.catalogOverrideFields.image" }
1287
- ]
1288
- },
1289
- {
1290
- transformFn: transformRESTAddressToSDKAddress,
1291
- paths: [{ path: "cart.contactInfo.address" }]
1292
- }
1293
- ])
1294
- );
1295
- } catch (err) {
1296
- const transformedError = sdkTransformError(
1297
- err,
1298
- {
1299
- spreadPathsToArguments: {},
1300
- explicitPathsToArguments: { id: "$[0]" },
1301
- singleArgumentUnchanged: false
1302
- },
1303
- ["_id"]
1304
- );
1305
- sideEffects?.onError?.(err);
1306
- throw transformedError;
1307
- }
1308
- }
1309
- async function addToCart2(_id, options) {
1310
- const { httpClient, sideEffects } = arguments[2];
1311
- const payload = transformPaths2(
1312
- renameKeysFromSDKRequestToRESTRequest({
1313
- id: _id,
1314
- lineItems: options?.lineItems,
1315
- customLineItems: options?.customLineItems,
1316
- businessLocationId: options?.businessLocationId
1317
- }),
1318
- [
1319
- {
1320
- transformFn: transformSDKPageURLV2ToRESTPageURLV2,
1321
- paths: [{ path: "lineItems.url" }, { path: "customLineItems.url" }]
1322
- },
1323
- {
1324
- transformFn: transformSDKImageToRESTImage,
1325
- paths: [
1326
- { path: "lineItems.image" },
1327
- { path: "lineItems.catalogOverrideFields.image" },
1328
- { path: "customLineItems.media" }
1329
- ]
1330
- }
1331
- ]
1332
- );
1333
- const reqOpts = addToCart(payload);
1334
- sideEffects?.onSiteCall?.();
1335
- try {
1336
- const result = await httpClient.request(reqOpts);
1337
- sideEffects?.onSuccess?.(result);
1338
- return renameKeysFromRESTResponseToSDKResponse(
1339
- transformPaths2(result.data, [
1340
- {
1341
- transformFn: transformRESTPageURLV2ToSDKPageURLV2,
1342
- paths: [{ path: "cart.lineItems.url" }]
1343
- },
1344
- {
1345
- transformFn: transformRESTImageToSDKImage,
1346
- paths: [
1347
- { path: "cart.lineItems.image" },
1348
- { path: "cart.lineItems.catalogOverrideFields.image" }
1349
- ]
1350
- },
1351
- {
1352
- transformFn: transformRESTAddressToSDKAddress,
1353
- paths: [{ path: "cart.contactInfo.address" }]
1354
- }
1355
- ])
1356
- );
1357
- } catch (err) {
1358
- const transformedError = sdkTransformError(
1359
- err,
1360
- {
1361
- spreadPathsToArguments: {},
1362
- explicitPathsToArguments: {
1363
- id: "$[0]",
1364
- lineItems: "$[1].lineItems",
1365
- customLineItems: "$[1].customLineItems",
1366
- businessLocationId: "$[1].businessLocationId"
1367
- },
1368
- singleArgumentUnchanged: false
1369
- },
1370
- ["_id", "options"]
1371
- );
1372
- sideEffects?.onError?.(err);
1373
- throw transformedError;
1374
- }
1375
- }
1376
- async function removeLineItems2(_id, lineItemIds) {
1377
- const { httpClient, sideEffects } = arguments[2];
1378
- const payload = renameKeysFromSDKRequestToRESTRequest({
1379
- id: _id,
1380
- lineItemIds
1381
- });
1382
- const reqOpts = removeLineItems(payload);
1383
- sideEffects?.onSiteCall?.();
1384
- try {
1385
- const result = await httpClient.request(reqOpts);
1386
- sideEffects?.onSuccess?.(result);
1387
- return renameKeysFromRESTResponseToSDKResponse(
1388
- transformPaths2(result.data, [
1389
- {
1390
- transformFn: transformRESTPageURLV2ToSDKPageURLV2,
1391
- paths: [{ path: "cart.lineItems.url" }]
1392
- },
1393
- {
1394
- transformFn: transformRESTImageToSDKImage,
1395
- paths: [
1396
- { path: "cart.lineItems.image" },
1397
- { path: "cart.lineItems.catalogOverrideFields.image" }
1398
- ]
1399
- },
1400
- {
1401
- transformFn: transformRESTAddressToSDKAddress,
1402
- paths: [{ path: "cart.contactInfo.address" }]
1403
- }
1404
- ])
1405
- );
1406
- } catch (err) {
1407
- const transformedError = sdkTransformError(
1408
- err,
1409
- {
1410
- spreadPathsToArguments: {},
1411
- explicitPathsToArguments: { id: "$[0]", lineItemIds: "$[1]" },
1412
- singleArgumentUnchanged: false
1413
- },
1414
- ["_id", "lineItemIds"]
1415
- );
1416
- sideEffects?.onError?.(err);
1417
- throw transformedError;
1418
- }
1419
- }
1420
- async function createCheckout2(_id, options) {
1421
- const { httpClient, sideEffects } = arguments[2];
1422
- const payload = transformPaths2(
1423
- renameKeysFromSDKRequestToRESTRequest({
1424
- id: _id,
1425
- channelType: options?.channelType,
1426
- shippingAddress: options?.shippingAddress,
1427
- billingAddress: options?.billingAddress,
1428
- selectedShippingOption: options?.selectedShippingOption,
1429
- email: options?.email
1430
- }),
1431
- [
1432
- {
1433
- transformFn: transformSDKAddressToRESTAddress,
1434
- paths: [{ path: "shippingAddress" }, { path: "billingAddress" }]
1435
- }
1436
- ]
1437
- );
1438
- const reqOpts = createCheckout(payload);
1439
- sideEffects?.onSiteCall?.();
1440
- try {
1441
- const result = await httpClient.request(reqOpts);
1442
- sideEffects?.onSuccess?.(result);
1443
- return renameKeysFromRESTResponseToSDKResponse(result.data);
1444
- } catch (err) {
1445
- const transformedError = sdkTransformError(
1446
- err,
1447
- {
1448
- spreadPathsToArguments: {},
1449
- explicitPathsToArguments: {
1450
- id: "$[0]",
1451
- channelType: "$[1].channelType",
1452
- shippingAddress: "$[1].shippingAddress",
1453
- billingAddress: "$[1].billingAddress",
1454
- selectedShippingOption: "$[1].selectedShippingOption",
1455
- email: "$[1].email"
1456
- },
1457
- singleArgumentUnchanged: false
1458
- },
1459
- ["_id", "options"]
1460
- );
1461
- sideEffects?.onError?.(err);
1462
- throw transformedError;
1463
- }
1464
- }
1465
- async function removeCoupon2(_id) {
1466
- const { httpClient, sideEffects } = arguments[1];
1467
- const payload = renameKeysFromSDKRequestToRESTRequest({ id: _id });
1468
- const reqOpts = removeCoupon(payload);
1469
- sideEffects?.onSiteCall?.();
1470
- try {
1471
- const result = await httpClient.request(reqOpts);
1472
- sideEffects?.onSuccess?.(result);
1473
- return renameKeysFromRESTResponseToSDKResponse(
1474
- transformPaths2(result.data, [
1475
- {
1476
- transformFn: transformRESTPageURLV2ToSDKPageURLV2,
1477
- paths: [{ path: "cart.lineItems.url" }]
1478
- },
1479
- {
1480
- transformFn: transformRESTImageToSDKImage,
1481
- paths: [
1482
- { path: "cart.lineItems.image" },
1483
- { path: "cart.lineItems.catalogOverrideFields.image" }
1484
- ]
1485
- },
1486
- {
1487
- transformFn: transformRESTAddressToSDKAddress,
1488
- paths: [{ path: "cart.contactInfo.address" }]
1489
- }
1490
- ])
1491
- );
1492
- } catch (err) {
1493
- const transformedError = sdkTransformError(
1494
- err,
1495
- {
1496
- spreadPathsToArguments: {},
1497
- explicitPathsToArguments: { id: "$[0]" },
1498
- singleArgumentUnchanged: false
1499
- },
1500
- ["_id"]
1501
- );
1502
- sideEffects?.onError?.(err);
1503
- throw transformedError;
1504
- }
1505
- }
1506
- async function updateLineItemsQuantity2(_id, lineItems) {
1507
- const { httpClient, sideEffects } = arguments[2];
1508
- const payload = renameKeysFromSDKRequestToRESTRequest({
1509
- id: _id,
1510
- lineItems
1511
- });
1512
- const reqOpts = updateLineItemsQuantity(payload);
1513
- sideEffects?.onSiteCall?.();
1514
- try {
1515
- const result = await httpClient.request(reqOpts);
1516
- sideEffects?.onSuccess?.(result);
1517
- return renameKeysFromRESTResponseToSDKResponse(
1518
- transformPaths2(result.data, [
1519
- {
1520
- transformFn: transformRESTPageURLV2ToSDKPageURLV2,
1521
- paths: [{ path: "cart.lineItems.url" }]
1522
- },
1523
- {
1524
- transformFn: transformRESTImageToSDKImage,
1525
- paths: [
1526
- { path: "cart.lineItems.image" },
1527
- { path: "cart.lineItems.catalogOverrideFields.image" }
1528
- ]
1529
- },
1530
- {
1531
- transformFn: transformRESTAddressToSDKAddress,
1532
- paths: [{ path: "cart.contactInfo.address" }]
1533
- }
1534
- ])
1535
- );
1536
- } catch (err) {
1537
- const transformedError = sdkTransformError(
1538
- err,
1539
- {
1540
- spreadPathsToArguments: {},
1541
- explicitPathsToArguments: { id: "$[0]", lineItems: "$[1]" },
1542
- singleArgumentUnchanged: false
1543
- },
1544
- ["_id", "lineItems"]
1545
- );
1546
- sideEffects?.onError?.(err);
1547
- throw transformedError;
1548
- }
1549
- }
1550
- async function estimateTotals2(_id, options) {
1551
- const { httpClient, sideEffects } = arguments[2];
1552
- const payload = transformPaths2(
1553
- renameKeysFromSDKRequestToRESTRequest({
1554
- id: _id,
1555
- selectedShippingOption: options?.selectedShippingOption,
1556
- shippingAddress: options?.shippingAddress,
1557
- billingAddress: options?.billingAddress,
1558
- selectedMemberships: options?.selectedMemberships,
1559
- calculateTax: options?.calculateTax,
1560
- calculateShipping: options?.calculateShipping,
1561
- calculateAdditionalFees: options?.calculateAdditionalFees
1562
- }),
1563
- [
1564
- {
1565
- transformFn: transformSDKAddressToRESTAddress,
1566
- paths: [{ path: "shippingAddress" }, { path: "billingAddress" }]
1567
- }
1568
- ]
1569
- );
1570
- const reqOpts = estimateTotals(payload);
1571
- sideEffects?.onSiteCall?.();
1572
- try {
1573
- const result = await httpClient.request(reqOpts);
1574
- sideEffects?.onSuccess?.(result);
1575
- return renameKeysFromRESTResponseToSDKResponse(
1576
- transformPaths2(result.data, [
1577
- {
1578
- transformFn: transformRESTPageURLV2ToSDKPageURLV2,
1579
- paths: [{ path: "cart.lineItems.url" }]
1580
- },
1581
- {
1582
- transformFn: transformRESTImageToSDKImage,
1583
- paths: [
1584
- { path: "cart.lineItems.image" },
1585
- { path: "cart.lineItems.catalogOverrideFields.image" }
1586
- ]
1587
- },
1588
- {
1589
- transformFn: transformRESTAddressToSDKAddress,
1590
- paths: [
1591
- { path: "cart.contactInfo.address" },
1592
- {
1593
- path: "shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
1594
- },
1595
- {
1596
- path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
1597
- }
1598
- ]
1599
- }
1600
- ])
1601
- );
1602
- } catch (err) {
1603
- const transformedError = sdkTransformError(
1604
- err,
1605
- {
1606
- spreadPathsToArguments: {},
1607
- explicitPathsToArguments: {
1608
- id: "$[0]",
1609
- selectedShippingOption: "$[1].selectedShippingOption",
1610
- shippingAddress: "$[1].shippingAddress",
1611
- billingAddress: "$[1].billingAddress",
1612
- selectedMemberships: "$[1].selectedMemberships",
1613
- calculateTax: "$[1].calculateTax",
1614
- calculateShipping: "$[1].calculateShipping",
1615
- calculateAdditionalFees: "$[1].calculateAdditionalFees"
1616
- },
1617
- singleArgumentUnchanged: false
1618
- },
1619
- ["_id", "options"]
1620
- );
1621
- sideEffects?.onError?.(err);
1622
- throw transformedError;
1623
- }
1624
- }
1625
- async function deleteCart2(_id) {
1626
- const { httpClient, sideEffects } = arguments[1];
1627
- const payload = renameKeysFromSDKRequestToRESTRequest({ id: _id });
1628
- const reqOpts = deleteCart(payload);
1629
- sideEffects?.onSiteCall?.();
1630
- try {
1631
- const result = await httpClient.request(reqOpts);
1632
- sideEffects?.onSuccess?.(result);
1633
- } catch (err) {
1634
- const transformedError = sdkTransformError(
1635
- err,
1636
- {
1637
- spreadPathsToArguments: {},
1638
- explicitPathsToArguments: { id: "$[0]" },
1639
- singleArgumentUnchanged: false
1640
- },
1641
- ["_id"]
1642
- );
1643
- sideEffects?.onError?.(err);
1644
- throw transformedError;
1645
- }
1646
- }
1647
- async function removeBusinessLocation2(_id) {
1648
- const { httpClient, sideEffects } = arguments[1];
1649
- const payload = renameKeysFromSDKRequestToRESTRequest({ id: _id });
1650
- const reqOpts = removeBusinessLocation(payload);
1651
- sideEffects?.onSiteCall?.();
1652
- try {
1653
- const result = await httpClient.request(reqOpts);
1654
- sideEffects?.onSuccess?.(result);
1655
- return renameKeysFromRESTResponseToSDKResponse(
1656
- transformPaths2(result.data, [
1657
- {
1658
- transformFn: transformRESTPageURLV2ToSDKPageURLV2,
1659
- paths: [{ path: "cart.lineItems.url" }]
1660
- },
1661
- {
1662
- transformFn: transformRESTImageToSDKImage,
1663
- paths: [
1664
- { path: "cart.lineItems.image" },
1665
- { path: "cart.lineItems.catalogOverrideFields.image" }
1666
- ]
1667
- },
1668
- {
1669
- transformFn: transformRESTAddressToSDKAddress,
1670
- paths: [{ path: "cart.contactInfo.address" }]
1671
- }
1672
- ])
1673
- );
1674
- } catch (err) {
1675
- const transformedError = sdkTransformError(
1676
- err,
1677
- {
1678
- spreadPathsToArguments: {},
1679
- explicitPathsToArguments: { id: "$[0]" },
1680
- singleArgumentUnchanged: false
1681
- },
1682
- ["_id"]
1683
- );
1684
- sideEffects?.onError?.(err);
1685
- throw transformedError;
1686
- }
1687
- }
1688
- export {
1689
- AdditionalFeeSource,
1690
- AppliedDiscountDiscountType,
1691
- BalanceType,
1692
- ChannelType,
1693
- ChargeType,
1694
- DescriptionLineType,
1695
- DimensionsUnit,
1696
- DiscountType,
1697
- FallbackReason,
1698
- FileType,
1699
- ItemAvailabilityStatus,
1700
- ItemTypePreset,
1701
- JurisdictionType,
1702
- LimitedQuotaType,
1703
- ManualCalculationReason,
1704
- NameInLineItem,
1705
- NameInOther,
1706
- PaymentOptionType,
1707
- PickupMethod,
1708
- PlatformFeeChargeType,
1709
- ProductPeriodAlignment,
1710
- QuotaType,
1711
- RateType,
1712
- RuleType,
1713
- Severity,
1714
- SubscriptionFrequency,
1715
- SuggestedFix,
1716
- TaxableAddressType,
1717
- VatType,
1718
- WebhookIdentityType,
1719
- WeightUnit,
1720
- addToCart2 as addToCart,
1721
- createCart2 as createCart,
1722
- createCheckout2 as createCheckout,
1723
- deleteCart2 as deleteCart,
1724
- estimateTotals2 as estimateTotals,
1725
- getCart2 as getCart,
1726
- getCartByCheckoutId2 as getCartByCheckoutId,
1727
- removeBusinessLocation2 as removeBusinessLocation,
1728
- removeCoupon2 as removeCoupon,
1729
- removeLineItems2 as removeLineItems,
1730
- updateCart2 as updateCart,
1731
- updateLineItemsQuantity2 as updateLineItemsQuantity
1732
- };
1733
- //# sourceMappingURL=index.typings.mjs.map