@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,1391 +0,0 @@
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
-
20
- // meta.ts
21
- var meta_exports = {};
22
- __export(meta_exports, {
23
- AdditionalFeeSourceOriginal: () => AdditionalFeeSource,
24
- AppliedDiscountDiscountTypeOriginal: () => AppliedDiscountDiscountType,
25
- BalanceTypeOriginal: () => BalanceType,
26
- ChannelTypeOriginal: () => ChannelType,
27
- ChargeTypeOriginal: () => ChargeType,
28
- DescriptionLineTypeOriginal: () => DescriptionLineType,
29
- DimensionsUnitOriginal: () => DimensionsUnit,
30
- DiscountTypeOriginal: () => DiscountType,
31
- FallbackReasonOriginal: () => FallbackReason,
32
- FileTypeOriginal: () => FileType,
33
- ItemAvailabilityStatusOriginal: () => ItemAvailabilityStatus,
34
- ItemTypePresetOriginal: () => ItemTypePreset,
35
- JurisdictionTypeOriginal: () => JurisdictionType,
36
- LimitedQuotaTypeOriginal: () => LimitedQuotaType,
37
- ManualCalculationReasonOriginal: () => ManualCalculationReason,
38
- NameInLineItemOriginal: () => NameInLineItem,
39
- NameInOtherOriginal: () => NameInOther,
40
- PaymentOptionTypeOriginal: () => PaymentOptionType,
41
- PickupMethodOriginal: () => PickupMethod,
42
- PlatformFeeChargeTypeOriginal: () => PlatformFeeChargeType,
43
- ProductPeriodAlignmentOriginal: () => ProductPeriodAlignment,
44
- QuotaTypeOriginal: () => QuotaType,
45
- RateTypeOriginal: () => RateType,
46
- RuleTypeOriginal: () => RuleType,
47
- SeverityOriginal: () => Severity,
48
- SubscriptionFrequencyOriginal: () => SubscriptionFrequency,
49
- SuggestedFixOriginal: () => SuggestedFix,
50
- TaxableAddressTypeOriginal: () => TaxableAddressType,
51
- VatTypeOriginal: () => VatType,
52
- WebhookIdentityTypeOriginal: () => WebhookIdentityType,
53
- WeightUnitOriginal: () => WeightUnit,
54
- addToCart: () => addToCart2,
55
- createCart: () => createCart2,
56
- createCheckout: () => createCheckout2,
57
- deleteCart: () => deleteCart2,
58
- estimateTotals: () => estimateTotals2,
59
- getCart: () => getCart2,
60
- getCartByCheckoutId: () => getCartByCheckoutId2,
61
- removeBusinessLocation: () => removeBusinessLocation2,
62
- removeCoupon: () => removeCoupon2,
63
- removeLineItems: () => removeLineItems2,
64
- updateCart: () => updateCart2,
65
- updateLineItemsQuantity: () => updateLineItemsQuantity2
66
- });
67
- module.exports = __toCommonJS(meta_exports);
68
-
69
- // src/ecom-v1-cart-cart.http.ts
70
- var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
71
- var import_float = require("@wix/sdk-runtime/transformations/float");
72
- var import_float2 = require("@wix/sdk-runtime/transformations/float");
73
- var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
74
- var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
75
- var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
76
- var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
77
- var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
78
- function resolveComWixEcomCartApiV1CartServiceUrl(opts) {
79
- const domainToMappings = {
80
- "www.wixapis.com": [
81
- {
82
- srcPath: "/ecom/v1/carts",
83
- destPath: "/v1/carts"
84
- }
85
- ],
86
- "www.wixgateway.com": [
87
- {
88
- srcPath: "/ecom/v1/carts",
89
- destPath: "/v1/carts"
90
- }
91
- ],
92
- _: [
93
- {
94
- srcPath: "/_api/ecom-cart",
95
- destPath: ""
96
- },
97
- {
98
- srcPath: "/_api/cart",
99
- destPath: ""
100
- },
101
- {
102
- srcPath: "/ecom/v1/carts",
103
- destPath: "/v1/carts"
104
- }
105
- ],
106
- "manage._base_domain_": [
107
- {
108
- srcPath: "/ecom/v1/carts",
109
- destPath: "/v1/carts"
110
- }
111
- ],
112
- "editor._base_domain_": [
113
- {
114
- srcPath: "/_api/ecom-cart",
115
- destPath: ""
116
- }
117
- ],
118
- "blocks._base_domain_": [
119
- {
120
- srcPath: "/_api/ecom-cart",
121
- destPath: ""
122
- }
123
- ],
124
- "create.editorx": [
125
- {
126
- srcPath: "/_api/ecom-cart",
127
- destPath: ""
128
- }
129
- ],
130
- "*.dev.wix-code.com": [
131
- {
132
- srcPath: "/_api/ecom-cart",
133
- destPath: ""
134
- }
135
- ],
136
- "www._base_domain_": [
137
- {
138
- srcPath: "/_api/ecom-cart",
139
- destPath: ""
140
- }
141
- ],
142
- "bo._base_domain_": [
143
- {
144
- srcPath: "/ecom/v1/carts",
145
- destPath: "/v1/carts"
146
- }
147
- ],
148
- "wixbo.ai": [
149
- {
150
- srcPath: "/ecom/v1/carts",
151
- destPath: "/v1/carts"
152
- }
153
- ],
154
- "wix-bo.com": [
155
- {
156
- srcPath: "/ecom/v1/carts",
157
- destPath: "/v1/carts"
158
- }
159
- ],
160
- "editor.wixapps.net": [
161
- {
162
- srcPath: "/_api/ecom-cart",
163
- destPath: ""
164
- }
165
- ],
166
- "apps._base_domain_": [
167
- {
168
- srcPath: "/ecom/v1/carts",
169
- destPath: "/v1/carts"
170
- }
171
- ],
172
- "api._api_base_domain_": [
173
- {
174
- srcPath: "/cart-v1-proxy",
175
- destPath: ""
176
- }
177
- ],
178
- "ecom.wixapps.net": [
179
- {
180
- srcPath: "/_api/ecom-cart",
181
- destPath: ""
182
- }
183
- ]
184
- };
185
- return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
186
- }
187
- var PACKAGE_NAME = "@wix/auto_sdk_ecom_cart";
188
- function createCart(payload) {
189
- function __createCart({ host }) {
190
- const serializedData = (0, import_transform_paths.transformPaths)(payload, [
191
- {
192
- transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
193
- paths: [
194
- { path: "cartInfo.createdDate" },
195
- { path: "cartInfo.updatedDate" },
196
- { path: "cartInfo.lineItems.image.urlExpirationDate" },
197
- {
198
- path: "cartInfo.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
199
- },
200
- { path: "cartInfo.lineItems.serviceProperties.scheduledDate" },
201
- { path: "cartInfo.lineItems.serviceProperties.endDate" },
202
- { path: "lineItems.image.urlExpirationDate" },
203
- {
204
- path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
205
- },
206
- { path: "lineItems.serviceProperties.scheduledDate" },
207
- { path: "lineItems.serviceProperties.endDate" },
208
- {
209
- path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
210
- },
211
- { path: "customLineItems.serviceProperties.scheduledDate" },
212
- { path: "customLineItems.serviceProperties.endDate" }
213
- ]
214
- },
215
- {
216
- transformFn: import_float.transformSDKFloatToRESTFloat,
217
- paths: [
218
- { path: "cartInfo.lineItems.image.focalPoint.x" },
219
- { path: "cartInfo.lineItems.image.focalPoint.y" },
220
- { path: "lineItems.image.focalPoint.x" },
221
- { path: "lineItems.image.focalPoint.y" },
222
- { path: "cartInfo.lineItems.physicalProperties.weight" },
223
- {
224
- path: "cartInfo.lineItems.catalogOverrideFields.physicalProperties.weight"
225
- },
226
- { path: "cartInfo.contactInfo.address.geocode.latitude" },
227
- { path: "cartInfo.contactInfo.address.geocode.longitude" },
228
- { path: "lineItems.physicalProperties.weight" },
229
- { path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
230
- { path: "customLineItems.physicalProperties.weight" }
231
- ]
232
- }
233
- ]);
234
- const metadata = {
235
- entityFqdn: "wix.ecom.v1.cart",
236
- method: "POST",
237
- methodFqn: "com.wix.ecom.cart.api.v1.CartService.CreateCart",
238
- packageName: PACKAGE_NAME,
239
- migrationOptions: {
240
- optInTransformResponse: true
241
- },
242
- url: resolveComWixEcomCartApiV1CartServiceUrl({
243
- protoPath: "/v1/carts",
244
- data: serializedData,
245
- host
246
- }),
247
- data: serializedData,
248
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
249
- {
250
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
251
- paths: [
252
- { path: "cart.createdDate" },
253
- { path: "cart.updatedDate" },
254
- { path: "cart.lineItems.image.urlExpirationDate" },
255
- {
256
- path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
257
- },
258
- { path: "cart.lineItems.serviceProperties.scheduledDate" },
259
- { path: "cart.lineItems.serviceProperties.endDate" }
260
- ]
261
- },
262
- {
263
- transformFn: import_float2.transformRESTFloatToSDKFloat,
264
- paths: [
265
- { path: "cart.lineItems.image.focalPoint.x" },
266
- { path: "cart.lineItems.image.focalPoint.y" },
267
- { path: "cart.lineItems.physicalProperties.weight" },
268
- {
269
- path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
270
- },
271
- { path: "cart.contactInfo.address.geocode.latitude" },
272
- { path: "cart.contactInfo.address.geocode.longitude" }
273
- ]
274
- }
275
- ])
276
- };
277
- return metadata;
278
- }
279
- return __createCart;
280
- }
281
- function updateCart(payload) {
282
- function __updateCart({ host }) {
283
- const serializedData = (0, import_transform_paths.transformPaths)(payload, [
284
- {
285
- transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
286
- paths: [{ path: "cartFieldmask" }]
287
- },
288
- {
289
- transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
290
- paths: [
291
- { path: "cartInfo.createdDate" },
292
- { path: "cartInfo.updatedDate" },
293
- { path: "cartInfo.lineItems.image.urlExpirationDate" },
294
- {
295
- path: "cartInfo.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
296
- },
297
- { path: "cartInfo.lineItems.serviceProperties.scheduledDate" },
298
- { path: "cartInfo.lineItems.serviceProperties.endDate" },
299
- { path: "lineItems.image.urlExpirationDate" },
300
- {
301
- path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
302
- },
303
- { path: "lineItems.serviceProperties.scheduledDate" },
304
- { path: "lineItems.serviceProperties.endDate" },
305
- {
306
- path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
307
- },
308
- { path: "customLineItems.serviceProperties.scheduledDate" },
309
- { path: "customLineItems.serviceProperties.endDate" }
310
- ]
311
- },
312
- {
313
- transformFn: import_float.transformSDKFloatToRESTFloat,
314
- paths: [
315
- { path: "cartInfo.lineItems.image.focalPoint.x" },
316
- { path: "cartInfo.lineItems.image.focalPoint.y" },
317
- { path: "lineItems.image.focalPoint.x" },
318
- { path: "lineItems.image.focalPoint.y" },
319
- { path: "cartInfo.lineItems.physicalProperties.weight" },
320
- {
321
- path: "cartInfo.lineItems.catalogOverrideFields.physicalProperties.weight"
322
- },
323
- { path: "cartInfo.contactInfo.address.geocode.latitude" },
324
- { path: "cartInfo.contactInfo.address.geocode.longitude" },
325
- { path: "lineItems.physicalProperties.weight" },
326
- { path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
327
- { path: "customLineItems.physicalProperties.weight" }
328
- ]
329
- }
330
- ]);
331
- const metadata = {
332
- entityFqdn: "wix.ecom.v1.cart",
333
- method: "PATCH",
334
- methodFqn: "com.wix.ecom.cart.api.v1.CartService.UpdateCart",
335
- packageName: PACKAGE_NAME,
336
- migrationOptions: {
337
- optInTransformResponse: true
338
- },
339
- url: resolveComWixEcomCartApiV1CartServiceUrl({
340
- protoPath: "/v1/carts/{cartInfo.id}",
341
- data: serializedData,
342
- host
343
- }),
344
- data: serializedData,
345
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
346
- {
347
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
348
- paths: [
349
- { path: "cart.createdDate" },
350
- { path: "cart.updatedDate" },
351
- { path: "cart.lineItems.image.urlExpirationDate" },
352
- {
353
- path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
354
- },
355
- { path: "cart.lineItems.serviceProperties.scheduledDate" },
356
- { path: "cart.lineItems.serviceProperties.endDate" }
357
- ]
358
- },
359
- {
360
- transformFn: import_float2.transformRESTFloatToSDKFloat,
361
- paths: [
362
- { path: "cart.lineItems.image.focalPoint.x" },
363
- { path: "cart.lineItems.image.focalPoint.y" },
364
- { path: "cart.lineItems.physicalProperties.weight" },
365
- {
366
- path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
367
- },
368
- { path: "cart.contactInfo.address.geocode.latitude" },
369
- { path: "cart.contactInfo.address.geocode.longitude" }
370
- ]
371
- }
372
- ])
373
- };
374
- return metadata;
375
- }
376
- return __updateCart;
377
- }
378
- function getCart(payload) {
379
- function __getCart({ host }) {
380
- const metadata = {
381
- entityFqdn: "wix.ecom.v1.cart",
382
- method: "GET",
383
- methodFqn: "com.wix.ecom.cart.api.v1.CartService.GetCart",
384
- packageName: PACKAGE_NAME,
385
- migrationOptions: {
386
- optInTransformResponse: true
387
- },
388
- url: resolveComWixEcomCartApiV1CartServiceUrl({
389
- protoPath: "/v1/carts/{id}",
390
- data: payload,
391
- host
392
- }),
393
- params: (0, import_rest_modules.toURLSearchParams)(payload),
394
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
395
- {
396
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
397
- paths: [
398
- { path: "cart.createdDate" },
399
- { path: "cart.updatedDate" },
400
- { path: "cart.lineItems.image.urlExpirationDate" },
401
- {
402
- path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
403
- },
404
- { path: "cart.lineItems.serviceProperties.scheduledDate" },
405
- { path: "cart.lineItems.serviceProperties.endDate" }
406
- ]
407
- },
408
- {
409
- transformFn: import_float2.transformRESTFloatToSDKFloat,
410
- paths: [
411
- { path: "cart.lineItems.image.focalPoint.x" },
412
- { path: "cart.lineItems.image.focalPoint.y" },
413
- { path: "cart.lineItems.physicalProperties.weight" },
414
- {
415
- path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
416
- },
417
- { path: "cart.contactInfo.address.geocode.latitude" },
418
- { path: "cart.contactInfo.address.geocode.longitude" }
419
- ]
420
- }
421
- ])
422
- };
423
- return metadata;
424
- }
425
- return __getCart;
426
- }
427
- function getCartByCheckoutId(payload) {
428
- function __getCartByCheckoutId({ host }) {
429
- const metadata = {
430
- entityFqdn: "wix.ecom.v1.cart",
431
- method: "GET",
432
- methodFqn: "com.wix.ecom.cart.api.v1.CartService.GetCartByCheckoutId",
433
- packageName: PACKAGE_NAME,
434
- migrationOptions: {
435
- optInTransformResponse: true
436
- },
437
- url: resolveComWixEcomCartApiV1CartServiceUrl({
438
- protoPath: "/v1/carts/by-checkout-id/{id}",
439
- data: payload,
440
- host
441
- }),
442
- params: (0, import_rest_modules.toURLSearchParams)(payload),
443
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
444
- {
445
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
446
- paths: [
447
- { path: "cart.createdDate" },
448
- { path: "cart.updatedDate" },
449
- { path: "cart.lineItems.image.urlExpirationDate" },
450
- {
451
- path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
452
- },
453
- { path: "cart.lineItems.serviceProperties.scheduledDate" },
454
- { path: "cart.lineItems.serviceProperties.endDate" }
455
- ]
456
- },
457
- {
458
- transformFn: import_float2.transformRESTFloatToSDKFloat,
459
- paths: [
460
- { path: "cart.lineItems.image.focalPoint.x" },
461
- { path: "cart.lineItems.image.focalPoint.y" },
462
- { path: "cart.lineItems.physicalProperties.weight" },
463
- {
464
- path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
465
- },
466
- { path: "cart.contactInfo.address.geocode.latitude" },
467
- { path: "cart.contactInfo.address.geocode.longitude" }
468
- ]
469
- }
470
- ])
471
- };
472
- return metadata;
473
- }
474
- return __getCartByCheckoutId;
475
- }
476
- function addToCart(payload) {
477
- function __addToCart({ host }) {
478
- const serializedData = (0, import_transform_paths.transformPaths)(payload, [
479
- {
480
- transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
481
- paths: [
482
- { path: "lineItems.image.urlExpirationDate" },
483
- {
484
- path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
485
- },
486
- { path: "lineItems.serviceProperties.scheduledDate" },
487
- { path: "lineItems.serviceProperties.endDate" },
488
- {
489
- path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
490
- },
491
- { path: "customLineItems.serviceProperties.scheduledDate" },
492
- { path: "customLineItems.serviceProperties.endDate" }
493
- ]
494
- },
495
- {
496
- transformFn: import_float.transformSDKFloatToRESTFloat,
497
- paths: [
498
- { path: "lineItems.image.focalPoint.x" },
499
- { path: "lineItems.image.focalPoint.y" },
500
- { path: "lineItems.physicalProperties.weight" },
501
- { path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
502
- { path: "customLineItems.physicalProperties.weight" }
503
- ]
504
- }
505
- ]);
506
- const metadata = {
507
- entityFqdn: "wix.ecom.v1.cart",
508
- method: "POST",
509
- methodFqn: "com.wix.ecom.cart.api.v1.CartService.AddToCart",
510
- packageName: PACKAGE_NAME,
511
- migrationOptions: {
512
- optInTransformResponse: true
513
- },
514
- url: resolveComWixEcomCartApiV1CartServiceUrl({
515
- protoPath: "/v1/carts/{id}/add-to-cart",
516
- data: serializedData,
517
- host
518
- }),
519
- data: serializedData,
520
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
521
- {
522
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
523
- paths: [
524
- { path: "cart.createdDate" },
525
- { path: "cart.updatedDate" },
526
- { path: "cart.lineItems.image.urlExpirationDate" },
527
- {
528
- path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
529
- },
530
- { path: "cart.lineItems.serviceProperties.scheduledDate" },
531
- { path: "cart.lineItems.serviceProperties.endDate" }
532
- ]
533
- },
534
- {
535
- transformFn: import_float2.transformRESTFloatToSDKFloat,
536
- paths: [
537
- { path: "cart.lineItems.image.focalPoint.x" },
538
- { path: "cart.lineItems.image.focalPoint.y" },
539
- { path: "cart.lineItems.physicalProperties.weight" },
540
- {
541
- path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
542
- },
543
- { path: "cart.contactInfo.address.geocode.latitude" },
544
- { path: "cart.contactInfo.address.geocode.longitude" }
545
- ]
546
- }
547
- ])
548
- };
549
- return metadata;
550
- }
551
- return __addToCart;
552
- }
553
- function removeLineItems(payload) {
554
- function __removeLineItems({ host }) {
555
- const metadata = {
556
- entityFqdn: "wix.ecom.v1.cart",
557
- method: "POST",
558
- methodFqn: "com.wix.ecom.cart.api.v1.CartService.RemoveLineItems",
559
- packageName: PACKAGE_NAME,
560
- migrationOptions: {
561
- optInTransformResponse: true
562
- },
563
- url: resolveComWixEcomCartApiV1CartServiceUrl({
564
- protoPath: "/v1/carts/{id}/remove-line-items",
565
- data: payload,
566
- host
567
- }),
568
- data: payload,
569
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
570
- {
571
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
572
- paths: [
573
- { path: "cart.createdDate" },
574
- { path: "cart.updatedDate" },
575
- { path: "cart.lineItems.image.urlExpirationDate" },
576
- {
577
- path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
578
- },
579
- { path: "cart.lineItems.serviceProperties.scheduledDate" },
580
- { path: "cart.lineItems.serviceProperties.endDate" }
581
- ]
582
- },
583
- {
584
- transformFn: import_float2.transformRESTFloatToSDKFloat,
585
- paths: [
586
- { path: "cart.lineItems.image.focalPoint.x" },
587
- { path: "cart.lineItems.image.focalPoint.y" },
588
- { path: "cart.lineItems.physicalProperties.weight" },
589
- {
590
- path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
591
- },
592
- { path: "cart.contactInfo.address.geocode.latitude" },
593
- { path: "cart.contactInfo.address.geocode.longitude" }
594
- ]
595
- }
596
- ])
597
- };
598
- return metadata;
599
- }
600
- return __removeLineItems;
601
- }
602
- function createCheckout(payload) {
603
- function __createCheckout({ host }) {
604
- const serializedData = (0, import_transform_paths.transformPaths)(payload, [
605
- {
606
- transformFn: import_float.transformSDKFloatToRESTFloat,
607
- paths: [
608
- { path: "shippingAddress.geocode.latitude" },
609
- { path: "shippingAddress.geocode.longitude" },
610
- { path: "billingAddress.geocode.latitude" },
611
- { path: "billingAddress.geocode.longitude" }
612
- ]
613
- }
614
- ]);
615
- const metadata = {
616
- entityFqdn: "wix.ecom.v1.cart",
617
- method: "POST",
618
- methodFqn: "com.wix.ecom.cart.api.v1.CartService.CreateCheckout",
619
- packageName: PACKAGE_NAME,
620
- migrationOptions: {
621
- optInTransformResponse: true
622
- },
623
- url: resolveComWixEcomCartApiV1CartServiceUrl({
624
- protoPath: "/v1/carts/{id}/create-checkout",
625
- data: serializedData,
626
- host
627
- }),
628
- data: serializedData
629
- };
630
- return metadata;
631
- }
632
- return __createCheckout;
633
- }
634
- function removeCoupon(payload) {
635
- function __removeCoupon({ host }) {
636
- const metadata = {
637
- entityFqdn: "wix.ecom.v1.cart",
638
- method: "POST",
639
- methodFqn: "com.wix.ecom.cart.api.v1.CartService.RemoveCoupon",
640
- packageName: PACKAGE_NAME,
641
- migrationOptions: {
642
- optInTransformResponse: true
643
- },
644
- url: resolveComWixEcomCartApiV1CartServiceUrl({
645
- protoPath: "/v1/carts/{id}/remove-coupon",
646
- data: payload,
647
- host
648
- }),
649
- data: payload,
650
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
651
- {
652
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
653
- paths: [
654
- { path: "cart.createdDate" },
655
- { path: "cart.updatedDate" },
656
- { path: "cart.lineItems.image.urlExpirationDate" },
657
- {
658
- path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
659
- },
660
- { path: "cart.lineItems.serviceProperties.scheduledDate" },
661
- { path: "cart.lineItems.serviceProperties.endDate" }
662
- ]
663
- },
664
- {
665
- transformFn: import_float2.transformRESTFloatToSDKFloat,
666
- paths: [
667
- { path: "cart.lineItems.image.focalPoint.x" },
668
- { path: "cart.lineItems.image.focalPoint.y" },
669
- { path: "cart.lineItems.physicalProperties.weight" },
670
- {
671
- path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
672
- },
673
- { path: "cart.contactInfo.address.geocode.latitude" },
674
- { path: "cart.contactInfo.address.geocode.longitude" }
675
- ]
676
- }
677
- ])
678
- };
679
- return metadata;
680
- }
681
- return __removeCoupon;
682
- }
683
- function updateLineItemsQuantity(payload) {
684
- function __updateLineItemsQuantity({ host }) {
685
- const metadata = {
686
- entityFqdn: "wix.ecom.v1.cart",
687
- method: "POST",
688
- methodFqn: "com.wix.ecom.cart.api.v1.CartService.UpdateLineItemsQuantity",
689
- packageName: PACKAGE_NAME,
690
- migrationOptions: {
691
- optInTransformResponse: true
692
- },
693
- url: resolveComWixEcomCartApiV1CartServiceUrl({
694
- protoPath: "/v1/carts/{id}/update-line-items-quantity",
695
- data: payload,
696
- host
697
- }),
698
- data: payload,
699
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
700
- {
701
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
702
- paths: [
703
- { path: "cart.createdDate" },
704
- { path: "cart.updatedDate" },
705
- { path: "cart.lineItems.image.urlExpirationDate" },
706
- {
707
- path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
708
- },
709
- { path: "cart.lineItems.serviceProperties.scheduledDate" },
710
- { path: "cart.lineItems.serviceProperties.endDate" }
711
- ]
712
- },
713
- {
714
- transformFn: import_float2.transformRESTFloatToSDKFloat,
715
- paths: [
716
- { path: "cart.lineItems.image.focalPoint.x" },
717
- { path: "cart.lineItems.image.focalPoint.y" },
718
- { path: "cart.lineItems.physicalProperties.weight" },
719
- {
720
- path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
721
- },
722
- { path: "cart.contactInfo.address.geocode.latitude" },
723
- { path: "cart.contactInfo.address.geocode.longitude" }
724
- ]
725
- }
726
- ])
727
- };
728
- return metadata;
729
- }
730
- return __updateLineItemsQuantity;
731
- }
732
- function estimateTotals(payload) {
733
- function __estimateTotals({ host }) {
734
- const serializedData = (0, import_transform_paths.transformPaths)(payload, [
735
- {
736
- transformFn: import_float.transformSDKFloatToRESTFloat,
737
- paths: [
738
- { path: "shippingAddress.geocode.latitude" },
739
- { path: "shippingAddress.geocode.longitude" },
740
- { path: "billingAddress.geocode.latitude" },
741
- { path: "billingAddress.geocode.longitude" }
742
- ]
743
- }
744
- ]);
745
- const metadata = {
746
- entityFqdn: "wix.ecom.v1.cart",
747
- method: "POST",
748
- methodFqn: "com.wix.ecom.cart.api.v1.CartService.EstimateTotals",
749
- packageName: PACKAGE_NAME,
750
- migrationOptions: {
751
- optInTransformResponse: true
752
- },
753
- url: resolveComWixEcomCartApiV1CartServiceUrl({
754
- protoPath: "/v1/carts/{id}/estimate-totals",
755
- data: serializedData,
756
- host
757
- }),
758
- data: serializedData,
759
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
760
- {
761
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
762
- paths: [
763
- { path: "cart.createdDate" },
764
- { path: "cart.updatedDate" },
765
- { path: "cart.lineItems.image.urlExpirationDate" },
766
- {
767
- path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
768
- },
769
- { path: "cart.lineItems.serviceProperties.scheduledDate" },
770
- { path: "cart.lineItems.serviceProperties.endDate" },
771
- {
772
- path: "shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
773
- },
774
- {
775
- path: "shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
776
- },
777
- {
778
- path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
779
- },
780
- {
781
- path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
782
- },
783
- { path: "membershipOptions.eligibleMemberships.expirationDate" },
784
- {
785
- path: "membershipOptions.invalidMemberships.membership.expirationDate"
786
- },
787
- {
788
- path: "membershipOptions.validatedExistingMemberships.memberships.membership.expirationDate"
789
- }
790
- ]
791
- },
792
- {
793
- transformFn: import_float2.transformRESTFloatToSDKFloat,
794
- paths: [
795
- { path: "cart.lineItems.image.focalPoint.x" },
796
- { path: "cart.lineItems.image.focalPoint.y" },
797
- { path: "cart.lineItems.physicalProperties.weight" },
798
- {
799
- path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
800
- },
801
- { path: "cart.contactInfo.address.geocode.latitude" },
802
- { path: "cart.contactInfo.address.geocode.longitude" },
803
- {
804
- path: "shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
805
- },
806
- {
807
- path: "shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
808
- },
809
- {
810
- path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
811
- },
812
- {
813
- path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
814
- },
815
- { path: "appliedDiscounts.merchantDiscount.percentage" }
816
- ]
817
- }
818
- ])
819
- };
820
- return metadata;
821
- }
822
- return __estimateTotals;
823
- }
824
- function deleteCart(payload) {
825
- function __deleteCart({ host }) {
826
- const metadata = {
827
- entityFqdn: "wix.ecom.v1.cart",
828
- method: "DELETE",
829
- methodFqn: "com.wix.ecom.cart.api.v1.CartService.DeleteCart",
830
- packageName: PACKAGE_NAME,
831
- migrationOptions: {
832
- optInTransformResponse: true
833
- },
834
- url: resolveComWixEcomCartApiV1CartServiceUrl({
835
- protoPath: "/v1/carts/{id}",
836
- data: payload,
837
- host
838
- }),
839
- params: (0, import_rest_modules.toURLSearchParams)(payload)
840
- };
841
- return metadata;
842
- }
843
- return __deleteCart;
844
- }
845
- function removeBusinessLocation(payload) {
846
- function __removeBusinessLocation({ host }) {
847
- const metadata = {
848
- entityFqdn: "wix.ecom.v1.cart",
849
- method: "POST",
850
- methodFqn: "com.wix.ecom.cart.api.v1.CartService.RemoveBusinessLocation",
851
- packageName: PACKAGE_NAME,
852
- migrationOptions: {
853
- optInTransformResponse: true
854
- },
855
- url: resolveComWixEcomCartApiV1CartServiceUrl({
856
- protoPath: "/v1/carts/{id}/remove-business-location",
857
- data: payload,
858
- host
859
- }),
860
- data: payload,
861
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
862
- {
863
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
864
- paths: [
865
- { path: "cart.createdDate" },
866
- { path: "cart.updatedDate" },
867
- { path: "cart.lineItems.image.urlExpirationDate" },
868
- {
869
- path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
870
- },
871
- { path: "cart.lineItems.serviceProperties.scheduledDate" },
872
- { path: "cart.lineItems.serviceProperties.endDate" }
873
- ]
874
- },
875
- {
876
- transformFn: import_float2.transformRESTFloatToSDKFloat,
877
- paths: [
878
- { path: "cart.lineItems.image.focalPoint.x" },
879
- { path: "cart.lineItems.image.focalPoint.y" },
880
- { path: "cart.lineItems.physicalProperties.weight" },
881
- {
882
- path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
883
- },
884
- { path: "cart.contactInfo.address.geocode.latitude" },
885
- { path: "cart.contactInfo.address.geocode.longitude" }
886
- ]
887
- }
888
- ])
889
- };
890
- return metadata;
891
- }
892
- return __removeBusinessLocation;
893
- }
894
-
895
- // src/ecom-v1-cart-cart.types.ts
896
- var DescriptionLineType = /* @__PURE__ */ ((DescriptionLineType2) => {
897
- DescriptionLineType2["UNRECOGNISED"] = "UNRECOGNISED";
898
- DescriptionLineType2["PLAIN_TEXT"] = "PLAIN_TEXT";
899
- DescriptionLineType2["COLOR"] = "COLOR";
900
- return DescriptionLineType2;
901
- })(DescriptionLineType || {});
902
- var ItemAvailabilityStatus = /* @__PURE__ */ ((ItemAvailabilityStatus2) => {
903
- ItemAvailabilityStatus2["AVAILABLE"] = "AVAILABLE";
904
- ItemAvailabilityStatus2["NOT_FOUND"] = "NOT_FOUND";
905
- ItemAvailabilityStatus2["NOT_AVAILABLE"] = "NOT_AVAILABLE";
906
- ItemAvailabilityStatus2["PARTIALLY_AVAILABLE"] = "PARTIALLY_AVAILABLE";
907
- return ItemAvailabilityStatus2;
908
- })(ItemAvailabilityStatus || {});
909
- var DimensionsUnit = /* @__PURE__ */ ((DimensionsUnit2) => {
910
- DimensionsUnit2["UNKNOWN_DIMENSIONS_UNIT"] = "UNKNOWN_DIMENSIONS_UNIT";
911
- DimensionsUnit2["MM"] = "MM";
912
- DimensionsUnit2["CM"] = "CM";
913
- DimensionsUnit2["M"] = "M";
914
- DimensionsUnit2["IN"] = "IN";
915
- DimensionsUnit2["FT"] = "FT";
916
- DimensionsUnit2["YD"] = "YD";
917
- return DimensionsUnit2;
918
- })(DimensionsUnit || {});
919
- var ItemTypePreset = /* @__PURE__ */ ((ItemTypePreset2) => {
920
- ItemTypePreset2["UNRECOGNISED"] = "UNRECOGNISED";
921
- ItemTypePreset2["PHYSICAL"] = "PHYSICAL";
922
- ItemTypePreset2["DIGITAL"] = "DIGITAL";
923
- ItemTypePreset2["GIFT_CARD"] = "GIFT_CARD";
924
- ItemTypePreset2["SERVICE"] = "SERVICE";
925
- return ItemTypePreset2;
926
- })(ItemTypePreset || {});
927
- var SubscriptionFrequency = /* @__PURE__ */ ((SubscriptionFrequency2) => {
928
- SubscriptionFrequency2["UNDEFINED"] = "UNDEFINED";
929
- SubscriptionFrequency2["DAY"] = "DAY";
930
- SubscriptionFrequency2["WEEK"] = "WEEK";
931
- SubscriptionFrequency2["MONTH"] = "MONTH";
932
- SubscriptionFrequency2["YEAR"] = "YEAR";
933
- return SubscriptionFrequency2;
934
- })(SubscriptionFrequency || {});
935
- var ProductPeriodAlignment = /* @__PURE__ */ ((ProductPeriodAlignment2) => {
936
- ProductPeriodAlignment2["ALIGNED_WITH_BILLING_PERIOD"] = "ALIGNED_WITH_BILLING_PERIOD";
937
- ProductPeriodAlignment2["NOT_ALIGNED_WITH_BILLING_PERIOD"] = "NOT_ALIGNED_WITH_BILLING_PERIOD";
938
- return ProductPeriodAlignment2;
939
- })(ProductPeriodAlignment || {});
940
- var FileType = /* @__PURE__ */ ((FileType2) => {
941
- FileType2["UNSPECIFIED"] = "UNSPECIFIED";
942
- FileType2["SECURE_PICTURE"] = "SECURE_PICTURE";
943
- FileType2["SECURE_VIDEO"] = "SECURE_VIDEO";
944
- FileType2["SECURE_DOCUMENT"] = "SECURE_DOCUMENT";
945
- FileType2["SECURE_MUSIC"] = "SECURE_MUSIC";
946
- FileType2["SECURE_ARCHIVE"] = "SECURE_ARCHIVE";
947
- FileType2["SECURE_RAW"] = "SECURE_RAW";
948
- return FileType2;
949
- })(FileType || {});
950
- var PaymentOptionType = /* @__PURE__ */ ((PaymentOptionType2) => {
951
- PaymentOptionType2["FULL_PAYMENT_ONLINE"] = "FULL_PAYMENT_ONLINE";
952
- PaymentOptionType2["FULL_PAYMENT_OFFLINE"] = "FULL_PAYMENT_OFFLINE";
953
- PaymentOptionType2["MEMBERSHIP"] = "MEMBERSHIP";
954
- PaymentOptionType2["DEPOSIT_ONLINE"] = "DEPOSIT_ONLINE";
955
- PaymentOptionType2["MEMBERSHIP_OFFLINE"] = "MEMBERSHIP_OFFLINE";
956
- PaymentOptionType2["MEMBERSHIP_ONLINE_WITH_OFFLINE_REMAINDER"] = "MEMBERSHIP_ONLINE_WITH_OFFLINE_REMAINDER";
957
- return PaymentOptionType2;
958
- })(PaymentOptionType || {});
959
- var TaxableAddressType = /* @__PURE__ */ ((TaxableAddressType2) => {
960
- TaxableAddressType2["BUSINESS"] = "BUSINESS";
961
- TaxableAddressType2["BILLING"] = "BILLING";
962
- TaxableAddressType2["SHIPPING"] = "SHIPPING";
963
- return TaxableAddressType2;
964
- })(TaxableAddressType || {});
965
- var PlatformFeeChargeType = /* @__PURE__ */ ((PlatformFeeChargeType2) => {
966
- PlatformFeeChargeType2["PASS_ON"] = "PASS_ON";
967
- PlatformFeeChargeType2["ABSORBED"] = "ABSORBED";
968
- return PlatformFeeChargeType2;
969
- })(PlatformFeeChargeType || {});
970
- var WeightUnit = /* @__PURE__ */ ((WeightUnit2) => {
971
- WeightUnit2["UNSPECIFIED_WEIGHT_UNIT"] = "UNSPECIFIED_WEIGHT_UNIT";
972
- WeightUnit2["KG"] = "KG";
973
- WeightUnit2["LB"] = "LB";
974
- return WeightUnit2;
975
- })(WeightUnit || {});
976
- var DiscountType = /* @__PURE__ */ ((DiscountType2) => {
977
- DiscountType2["GLOBAL"] = "GLOBAL";
978
- DiscountType2["SPECIFIC_ITEMS"] = "SPECIFIC_ITEMS";
979
- DiscountType2["SHIPPING"] = "SHIPPING";
980
- return DiscountType2;
981
- })(DiscountType || {});
982
- var VatType = /* @__PURE__ */ ((VatType2) => {
983
- VatType2["UNSPECIFIED"] = "UNSPECIFIED";
984
- VatType2["CPF"] = "CPF";
985
- VatType2["CNPJ"] = "CNPJ";
986
- return VatType2;
987
- })(VatType || {});
988
- var JurisdictionType = /* @__PURE__ */ ((JurisdictionType2) => {
989
- JurisdictionType2["UNDEFINED"] = "UNDEFINED";
990
- JurisdictionType2["COUNTRY"] = "COUNTRY";
991
- JurisdictionType2["STATE"] = "STATE";
992
- JurisdictionType2["COUNTY"] = "COUNTY";
993
- JurisdictionType2["CITY"] = "CITY";
994
- JurisdictionType2["SPECIAL"] = "SPECIAL";
995
- return JurisdictionType2;
996
- })(JurisdictionType || {});
997
- var RateType = /* @__PURE__ */ ((RateType2) => {
998
- RateType2["NO_TAX_COLLECTED"] = "NO_TAX_COLLECTED";
999
- RateType2["MANUAL_RATE"] = "MANUAL_RATE";
1000
- RateType2["AUTO_RATE"] = "AUTO_RATE";
1001
- RateType2["FALLBACK_RATE"] = "FALLBACK_RATE";
1002
- return RateType2;
1003
- })(RateType || {});
1004
- var ManualCalculationReason = /* @__PURE__ */ ((ManualCalculationReason2) => {
1005
- ManualCalculationReason2["GLOBAL_SETTING_TO_MANUAL"] = "GLOBAL_SETTING_TO_MANUAL";
1006
- ManualCalculationReason2["REGION_SETTING_TO_MANUAL"] = "REGION_SETTING_TO_MANUAL";
1007
- return ManualCalculationReason2;
1008
- })(ManualCalculationReason || {});
1009
- var FallbackReason = /* @__PURE__ */ ((FallbackReason2) => {
1010
- FallbackReason2["AUTO_TAX_FAILED"] = "AUTO_TAX_FAILED";
1011
- FallbackReason2["AUTO_TAX_DEACTIVATED"] = "AUTO_TAX_DEACTIVATED";
1012
- return FallbackReason2;
1013
- })(FallbackReason || {});
1014
- var PickupMethod = /* @__PURE__ */ ((PickupMethod2) => {
1015
- PickupMethod2["STORE_PICKUP"] = "STORE_PICKUP";
1016
- PickupMethod2["PICKUP_POINT"] = "PICKUP_POINT";
1017
- return PickupMethod2;
1018
- })(PickupMethod || {});
1019
- var ChargeType = /* @__PURE__ */ ((ChargeType2) => {
1020
- ChargeType2["HANDLING_FEE"] = "HANDLING_FEE";
1021
- ChargeType2["INSURANCE"] = "INSURANCE";
1022
- return ChargeType2;
1023
- })(ChargeType || {});
1024
- var AppliedDiscountDiscountType = /* @__PURE__ */ ((AppliedDiscountDiscountType2) => {
1025
- AppliedDiscountDiscountType2["GLOBAL"] = "GLOBAL";
1026
- AppliedDiscountDiscountType2["SPECIFIC_ITEMS"] = "SPECIFIC_ITEMS";
1027
- AppliedDiscountDiscountType2["SHIPPING"] = "SHIPPING";
1028
- return AppliedDiscountDiscountType2;
1029
- })(AppliedDiscountDiscountType || {});
1030
- var RuleType = /* @__PURE__ */ ((RuleType2) => {
1031
- RuleType2["VALIDATION"] = "VALIDATION";
1032
- RuleType2["OTHER"] = "OTHER";
1033
- RuleType2["MAX"] = "MAX";
1034
- RuleType2["MIN"] = "MIN";
1035
- RuleType2["MAX_LENGTH"] = "MAX_LENGTH";
1036
- RuleType2["MIN_LENGTH"] = "MIN_LENGTH";
1037
- RuleType2["MAX_SIZE"] = "MAX_SIZE";
1038
- RuleType2["MIN_SIZE"] = "MIN_SIZE";
1039
- RuleType2["FORMAT"] = "FORMAT";
1040
- RuleType2["DECIMAL_LTE"] = "DECIMAL_LTE";
1041
- RuleType2["DECIMAL_GTE"] = "DECIMAL_GTE";
1042
- RuleType2["DECIMAL_LT"] = "DECIMAL_LT";
1043
- RuleType2["DECIMAL_GT"] = "DECIMAL_GT";
1044
- RuleType2["DECIMAL_MAX_SCALE"] = "DECIMAL_MAX_SCALE";
1045
- RuleType2["INVALID_ENUM_VALUE"] = "INVALID_ENUM_VALUE";
1046
- RuleType2["REQUIRED_FIELD"] = "REQUIRED_FIELD";
1047
- RuleType2["FIELD_NOT_ALLOWED"] = "FIELD_NOT_ALLOWED";
1048
- RuleType2["ONE_OF_ALIGNMENT"] = "ONE_OF_ALIGNMENT";
1049
- RuleType2["EXACT_LENGTH"] = "EXACT_LENGTH";
1050
- RuleType2["EXACT_SIZE"] = "EXACT_SIZE";
1051
- RuleType2["REQUIRED_ONE_OF_FIELD"] = "REQUIRED_ONE_OF_FIELD";
1052
- return RuleType2;
1053
- })(RuleType || {});
1054
- var BalanceType = /* @__PURE__ */ ((BalanceType2) => {
1055
- BalanceType2["PUNCH_CARD"] = "PUNCH_CARD";
1056
- BalanceType2["CREDIT"] = "CREDIT";
1057
- return BalanceType2;
1058
- })(BalanceType || {});
1059
- var QuotaType = /* @__PURE__ */ ((QuotaType2) => {
1060
- QuotaType2["LIMITED"] = "LIMITED";
1061
- QuotaType2["UNLIMITED"] = "UNLIMITED";
1062
- return QuotaType2;
1063
- })(QuotaType || {});
1064
- var LimitedQuotaType = /* @__PURE__ */ ((LimitedQuotaType2) => {
1065
- LimitedQuotaType2["PUNCH_CARD"] = "PUNCH_CARD";
1066
- LimitedQuotaType2["CREDIT"] = "CREDIT";
1067
- return LimitedQuotaType2;
1068
- })(LimitedQuotaType || {});
1069
- var AdditionalFeeSource = /* @__PURE__ */ ((AdditionalFeeSource2) => {
1070
- AdditionalFeeSource2["UNKNOWN_ADDITIONAL_FEE_SOURCE"] = "UNKNOWN_ADDITIONAL_FEE_SOURCE";
1071
- AdditionalFeeSource2["SERVICE_PLUGIN"] = "SERVICE_PLUGIN";
1072
- AdditionalFeeSource2["ITEM"] = "ITEM";
1073
- AdditionalFeeSource2["MANUAL"] = "MANUAL";
1074
- AdditionalFeeSource2["SHIPPING"] = "SHIPPING";
1075
- AdditionalFeeSource2["PLATFORM"] = "PLATFORM";
1076
- return AdditionalFeeSource2;
1077
- })(AdditionalFeeSource || {});
1078
- var Severity = /* @__PURE__ */ ((Severity2) => {
1079
- Severity2["WARNING"] = "WARNING";
1080
- Severity2["ERROR"] = "ERROR";
1081
- return Severity2;
1082
- })(Severity || {});
1083
- var NameInOther = /* @__PURE__ */ ((NameInOther2) => {
1084
- NameInOther2["OTHER_DEFAULT"] = "OTHER_DEFAULT";
1085
- return NameInOther2;
1086
- })(NameInOther || {});
1087
- var NameInLineItem = /* @__PURE__ */ ((NameInLineItem2) => {
1088
- NameInLineItem2["LINE_ITEM_DEFAULT"] = "LINE_ITEM_DEFAULT";
1089
- return NameInLineItem2;
1090
- })(NameInLineItem || {});
1091
- var SuggestedFix = /* @__PURE__ */ ((SuggestedFix2) => {
1092
- SuggestedFix2["UNKNOWN_SUGGESTED_FIX"] = "UNKNOWN_SUGGESTED_FIX";
1093
- SuggestedFix2["REMOVE_LINE_ITEM"] = "REMOVE_LINE_ITEM";
1094
- return SuggestedFix2;
1095
- })(SuggestedFix || {});
1096
- var ChannelType = /* @__PURE__ */ ((ChannelType2) => {
1097
- ChannelType2["UNSPECIFIED"] = "UNSPECIFIED";
1098
- ChannelType2["WEB"] = "WEB";
1099
- ChannelType2["POS"] = "POS";
1100
- ChannelType2["EBAY"] = "EBAY";
1101
- ChannelType2["AMAZON"] = "AMAZON";
1102
- ChannelType2["OTHER_PLATFORM"] = "OTHER_PLATFORM";
1103
- ChannelType2["WIX_APP_STORE"] = "WIX_APP_STORE";
1104
- ChannelType2["WIX_INVOICES"] = "WIX_INVOICES";
1105
- ChannelType2["BACKOFFICE_MERCHANT"] = "BACKOFFICE_MERCHANT";
1106
- ChannelType2["WISH"] = "WISH";
1107
- ChannelType2["CLASS_PASS"] = "CLASS_PASS";
1108
- ChannelType2["GLOBAL_E"] = "GLOBAL_E";
1109
- ChannelType2["FACEBOOK"] = "FACEBOOK";
1110
- ChannelType2["ETSY"] = "ETSY";
1111
- ChannelType2["TIKTOK"] = "TIKTOK";
1112
- ChannelType2["FAIRE_COM"] = "FAIRE_COM";
1113
- ChannelType2["PAYPAL_AGENTIC_CHECKOUT"] = "PAYPAL_AGENTIC_CHECKOUT";
1114
- ChannelType2["STRIPE_AGENTIC_CHECKOUT"] = "STRIPE_AGENTIC_CHECKOUT";
1115
- ChannelType2["WIX_INVOICES_PLATFORM"] = "WIX_INVOICES_PLATFORM";
1116
- ChannelType2["UCP_AGENTIC_CHECKOUT"] = "UCP_AGENTIC_CHECKOUT";
1117
- return ChannelType2;
1118
- })(ChannelType || {});
1119
- var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
1120
- WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
1121
- WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
1122
- WebhookIdentityType2["MEMBER"] = "MEMBER";
1123
- WebhookIdentityType2["WIX_USER"] = "WIX_USER";
1124
- WebhookIdentityType2["APP"] = "APP";
1125
- return WebhookIdentityType2;
1126
- })(WebhookIdentityType || {});
1127
-
1128
- // src/ecom-v1-cart-cart.meta.ts
1129
- function createCart2() {
1130
- const payload = {};
1131
- const getRequestOptions = createCart(payload);
1132
- const getUrl = (context) => {
1133
- const { url } = getRequestOptions(context);
1134
- return url;
1135
- };
1136
- return {
1137
- getUrl,
1138
- httpMethod: "POST",
1139
- path: "/v1/carts",
1140
- pathParams: {},
1141
- __requestType: null,
1142
- __originalRequestType: null,
1143
- __responseType: null,
1144
- __originalResponseType: null
1145
- };
1146
- }
1147
- function updateCart2() {
1148
- const payload = { cartInfo: { id: ":cartInfoId" } };
1149
- const getRequestOptions = updateCart(payload);
1150
- const getUrl = (context) => {
1151
- const { url } = getRequestOptions(context);
1152
- return url;
1153
- };
1154
- return {
1155
- getUrl,
1156
- httpMethod: "PATCH",
1157
- path: "/v1/carts/{cartInfo.id}",
1158
- pathParams: { cartInfoId: "cartInfoId" },
1159
- __requestType: null,
1160
- __originalRequestType: null,
1161
- __responseType: null,
1162
- __originalResponseType: null
1163
- };
1164
- }
1165
- function getCart2() {
1166
- const payload = { id: ":id" };
1167
- const getRequestOptions = getCart(payload);
1168
- const getUrl = (context) => {
1169
- const { url } = getRequestOptions(context);
1170
- return url;
1171
- };
1172
- return {
1173
- getUrl,
1174
- httpMethod: "GET",
1175
- path: "/v1/carts/{id}",
1176
- pathParams: { id: "id" },
1177
- __requestType: null,
1178
- __originalRequestType: null,
1179
- __responseType: null,
1180
- __originalResponseType: null
1181
- };
1182
- }
1183
- function getCartByCheckoutId2() {
1184
- const payload = { id: ":id" };
1185
- const getRequestOptions = getCartByCheckoutId(payload);
1186
- const getUrl = (context) => {
1187
- const { url } = getRequestOptions(context);
1188
- return url;
1189
- };
1190
- return {
1191
- getUrl,
1192
- httpMethod: "GET",
1193
- path: "/v1/carts/by-checkout-id/{id}",
1194
- pathParams: { id: "id" },
1195
- __requestType: null,
1196
- __originalRequestType: null,
1197
- __responseType: null,
1198
- __originalResponseType: null
1199
- };
1200
- }
1201
- function addToCart2() {
1202
- const payload = { id: ":id" };
1203
- const getRequestOptions = addToCart(payload);
1204
- const getUrl = (context) => {
1205
- const { url } = getRequestOptions(context);
1206
- return url;
1207
- };
1208
- return {
1209
- getUrl,
1210
- httpMethod: "POST",
1211
- path: "/v1/carts/{id}/add-to-cart",
1212
- pathParams: { id: "id" },
1213
- __requestType: null,
1214
- __originalRequestType: null,
1215
- __responseType: null,
1216
- __originalResponseType: null
1217
- };
1218
- }
1219
- function removeLineItems2() {
1220
- const payload = { id: ":id" };
1221
- const getRequestOptions = removeLineItems(payload);
1222
- const getUrl = (context) => {
1223
- const { url } = getRequestOptions(context);
1224
- return url;
1225
- };
1226
- return {
1227
- getUrl,
1228
- httpMethod: "POST",
1229
- path: "/v1/carts/{id}/remove-line-items",
1230
- pathParams: { id: "id" },
1231
- __requestType: null,
1232
- __originalRequestType: null,
1233
- __responseType: null,
1234
- __originalResponseType: null
1235
- };
1236
- }
1237
- function createCheckout2() {
1238
- const payload = { id: ":id" };
1239
- const getRequestOptions = createCheckout(payload);
1240
- const getUrl = (context) => {
1241
- const { url } = getRequestOptions(context);
1242
- return url;
1243
- };
1244
- return {
1245
- getUrl,
1246
- httpMethod: "POST",
1247
- path: "/v1/carts/{id}/create-checkout",
1248
- pathParams: { id: "id" },
1249
- __requestType: null,
1250
- __originalRequestType: null,
1251
- __responseType: null,
1252
- __originalResponseType: null
1253
- };
1254
- }
1255
- function removeCoupon2() {
1256
- const payload = { id: ":id" };
1257
- const getRequestOptions = removeCoupon(payload);
1258
- const getUrl = (context) => {
1259
- const { url } = getRequestOptions(context);
1260
- return url;
1261
- };
1262
- return {
1263
- getUrl,
1264
- httpMethod: "POST",
1265
- path: "/v1/carts/{id}/remove-coupon",
1266
- pathParams: { id: "id" },
1267
- __requestType: null,
1268
- __originalRequestType: null,
1269
- __responseType: null,
1270
- __originalResponseType: null
1271
- };
1272
- }
1273
- function updateLineItemsQuantity2() {
1274
- const payload = { id: ":id" };
1275
- const getRequestOptions = updateLineItemsQuantity(payload);
1276
- const getUrl = (context) => {
1277
- const { url } = getRequestOptions(context);
1278
- return url;
1279
- };
1280
- return {
1281
- getUrl,
1282
- httpMethod: "POST",
1283
- path: "/v1/carts/{id}/update-line-items-quantity",
1284
- pathParams: { id: "id" },
1285
- __requestType: null,
1286
- __originalRequestType: null,
1287
- __responseType: null,
1288
- __originalResponseType: null
1289
- };
1290
- }
1291
- function estimateTotals2() {
1292
- const payload = { id: ":id" };
1293
- const getRequestOptions = estimateTotals(payload);
1294
- const getUrl = (context) => {
1295
- const { url } = getRequestOptions(context);
1296
- return url;
1297
- };
1298
- return {
1299
- getUrl,
1300
- httpMethod: "POST",
1301
- path: "/v1/carts/{id}/estimate-totals",
1302
- pathParams: { id: "id" },
1303
- __requestType: null,
1304
- __originalRequestType: null,
1305
- __responseType: null,
1306
- __originalResponseType: null
1307
- };
1308
- }
1309
- function deleteCart2() {
1310
- const payload = { id: ":id" };
1311
- const getRequestOptions = deleteCart(payload);
1312
- const getUrl = (context) => {
1313
- const { url } = getRequestOptions(context);
1314
- return url;
1315
- };
1316
- return {
1317
- getUrl,
1318
- httpMethod: "DELETE",
1319
- path: "/v1/carts/{id}",
1320
- pathParams: { id: "id" },
1321
- __requestType: null,
1322
- __originalRequestType: null,
1323
- __responseType: null,
1324
- __originalResponseType: null
1325
- };
1326
- }
1327
- function removeBusinessLocation2() {
1328
- const payload = { id: ":id" };
1329
- const getRequestOptions = removeBusinessLocation(payload);
1330
- const getUrl = (context) => {
1331
- const { url } = getRequestOptions(context);
1332
- return url;
1333
- };
1334
- return {
1335
- getUrl,
1336
- httpMethod: "POST",
1337
- path: "/v1/carts/{id}/remove-business-location",
1338
- pathParams: { id: "id" },
1339
- __requestType: null,
1340
- __originalRequestType: null,
1341
- __responseType: null,
1342
- __originalResponseType: null
1343
- };
1344
- }
1345
- // Annotate the CommonJS export names for ESM import in node:
1346
- 0 && (module.exports = {
1347
- AdditionalFeeSourceOriginal,
1348
- AppliedDiscountDiscountTypeOriginal,
1349
- BalanceTypeOriginal,
1350
- ChannelTypeOriginal,
1351
- ChargeTypeOriginal,
1352
- DescriptionLineTypeOriginal,
1353
- DimensionsUnitOriginal,
1354
- DiscountTypeOriginal,
1355
- FallbackReasonOriginal,
1356
- FileTypeOriginal,
1357
- ItemAvailabilityStatusOriginal,
1358
- ItemTypePresetOriginal,
1359
- JurisdictionTypeOriginal,
1360
- LimitedQuotaTypeOriginal,
1361
- ManualCalculationReasonOriginal,
1362
- NameInLineItemOriginal,
1363
- NameInOtherOriginal,
1364
- PaymentOptionTypeOriginal,
1365
- PickupMethodOriginal,
1366
- PlatformFeeChargeTypeOriginal,
1367
- ProductPeriodAlignmentOriginal,
1368
- QuotaTypeOriginal,
1369
- RateTypeOriginal,
1370
- RuleTypeOriginal,
1371
- SeverityOriginal,
1372
- SubscriptionFrequencyOriginal,
1373
- SuggestedFixOriginal,
1374
- TaxableAddressTypeOriginal,
1375
- VatTypeOriginal,
1376
- WebhookIdentityTypeOriginal,
1377
- WeightUnitOriginal,
1378
- addToCart,
1379
- createCart,
1380
- createCheckout,
1381
- deleteCart,
1382
- estimateTotals,
1383
- getCart,
1384
- getCartByCheckoutId,
1385
- removeBusinessLocation,
1386
- removeCoupon,
1387
- removeLineItems,
1388
- updateCart,
1389
- updateLineItemsQuantity
1390
- });
1391
- //# sourceMappingURL=meta.js.map