@wix/auto_sdk_ecom_current-cart 1.0.183 → 1.0.185

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/build/cjs/index.js.map +1 -1
  2. package/build/cjs/index.typings.d.ts +7 -2
  3. package/build/cjs/index.typings.js.map +1 -1
  4. package/build/cjs/meta.d.ts +7 -2
  5. package/build/cjs/meta.js.map +1 -1
  6. package/build/cjs/schemas.js +3869 -3703
  7. package/build/cjs/schemas.js.map +1 -1
  8. package/build/es/index.mjs.map +1 -1
  9. package/build/es/index.typings.d.mts +7 -2
  10. package/build/es/index.typings.mjs.map +1 -1
  11. package/build/es/meta.d.mts +7 -2
  12. package/build/es/meta.mjs.map +1 -1
  13. package/build/es/schemas.mjs +3869 -3703
  14. package/build/es/schemas.mjs.map +1 -1
  15. package/build/internal/cjs/index.typings.d.ts +7 -2
  16. package/build/internal/cjs/meta.d.ts +7 -2
  17. package/build/internal/es/index.typings.d.mts +7 -2
  18. package/build/internal/es/meta.d.mts +7 -2
  19. package/package.json +3 -3
  20. package/build/internal/cjs/index.js +0 -1685
  21. package/build/internal/cjs/index.js.map +0 -1
  22. package/build/internal/cjs/index.typings.js +0 -1435
  23. package/build/internal/cjs/index.typings.js.map +0 -1
  24. package/build/internal/cjs/meta.js +0 -1140
  25. package/build/internal/cjs/meta.js.map +0 -1
  26. package/build/internal/cjs/schemas.js +0 -8180
  27. package/build/internal/cjs/schemas.js.map +0 -1
  28. package/build/internal/es/index.mjs +0 -1619
  29. package/build/internal/es/index.mjs.map +0 -1
  30. package/build/internal/es/index.typings.mjs +0 -1372
  31. package/build/internal/es/index.typings.mjs.map +0 -1
  32. package/build/internal/es/meta.mjs +0 -1074
  33. package/build/internal/es/meta.mjs.map +0 -1
  34. package/build/internal/es/schemas.mjs +0 -8126
  35. package/build/internal/es/schemas.mjs.map +0 -1
@@ -1,1140 +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
- addToCurrentCart: () => addToCurrentCart2,
55
- createCheckoutFromCurrentCart: () => createCheckoutFromCurrentCart2,
56
- deleteCurrentCart: () => deleteCurrentCart2,
57
- estimateCurrentCartTotals: () => estimateCurrentCartTotals2,
58
- getCurrentCart: () => getCurrentCart,
59
- removeCouponFromCurrentCart: () => removeCouponFromCurrentCart2,
60
- removeLineItemsFromCurrentCart: () => removeLineItemsFromCurrentCart2,
61
- updateCurrentCart: () => updateCurrentCart2,
62
- updateCurrentCartLineItemQuantity: () => updateCurrentCartLineItemQuantity2
63
- });
64
- module.exports = __toCommonJS(meta_exports);
65
-
66
- // src/ecom-v1-cart-current-cart.http.ts
67
- var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
68
- var import_float = require("@wix/sdk-runtime/transformations/float");
69
- var import_float2 = require("@wix/sdk-runtime/transformations/float");
70
- var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
71
- var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
72
- var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
73
- var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
74
- var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
75
- function resolveComWixEcomCartApiV1CurrentCartServiceUrl(opts) {
76
- const domainToMappings = {
77
- "www.wixapis.com": [
78
- {
79
- srcPath: "/ecom/v1/carts",
80
- destPath: "/v1/carts"
81
- }
82
- ],
83
- "www.wixgateway.com": [
84
- {
85
- srcPath: "/ecom/v1/carts",
86
- destPath: "/v1/carts"
87
- }
88
- ],
89
- _: [
90
- {
91
- srcPath: "/_api/ecom-cart",
92
- destPath: ""
93
- },
94
- {
95
- srcPath: "/_api/cart",
96
- destPath: ""
97
- },
98
- {
99
- srcPath: "/ecom/v1/carts",
100
- destPath: "/v1/carts"
101
- }
102
- ],
103
- "manage._base_domain_": [
104
- {
105
- srcPath: "/ecom/v1/carts",
106
- destPath: "/v1/carts"
107
- }
108
- ],
109
- "editor._base_domain_": [
110
- {
111
- srcPath: "/_api/ecom-cart",
112
- destPath: ""
113
- }
114
- ],
115
- "blocks._base_domain_": [
116
- {
117
- srcPath: "/_api/ecom-cart",
118
- destPath: ""
119
- }
120
- ],
121
- "create.editorx": [
122
- {
123
- srcPath: "/_api/ecom-cart",
124
- destPath: ""
125
- }
126
- ],
127
- "*.dev.wix-code.com": [
128
- {
129
- srcPath: "/_api/ecom-cart",
130
- destPath: ""
131
- }
132
- ],
133
- "www._base_domain_": [
134
- {
135
- srcPath: "/_api/ecom-cart",
136
- destPath: ""
137
- }
138
- ],
139
- "bo._base_domain_": [
140
- {
141
- srcPath: "/ecom/v1/carts",
142
- destPath: "/v1/carts"
143
- }
144
- ],
145
- "wixbo.ai": [
146
- {
147
- srcPath: "/ecom/v1/carts",
148
- destPath: "/v1/carts"
149
- }
150
- ],
151
- "wix-bo.com": [
152
- {
153
- srcPath: "/ecom/v1/carts",
154
- destPath: "/v1/carts"
155
- }
156
- ],
157
- "editor.wixapps.net": [
158
- {
159
- srcPath: "/_api/ecom-cart",
160
- destPath: ""
161
- }
162
- ],
163
- "apps._base_domain_": [
164
- {
165
- srcPath: "/ecom/v1/carts",
166
- destPath: "/v1/carts"
167
- }
168
- ],
169
- "api._api_base_domain_": [
170
- {
171
- srcPath: "/cart-v1-proxy",
172
- destPath: ""
173
- }
174
- ],
175
- "ecom.wixapps.net": [
176
- {
177
- srcPath: "/_api/ecom-cart",
178
- destPath: ""
179
- }
180
- ]
181
- };
182
- return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
183
- }
184
- var PACKAGE_NAME = "@wix/auto_sdk_ecom_current-cart";
185
- function currentCartGetCurrentCart(payload) {
186
- function __currentCartGetCurrentCart({ host }) {
187
- const metadata = {
188
- entityFqdn: "wix.ecom.v1.cart",
189
- method: "GET",
190
- methodFqn: "com.wix.ecom.cart.api.v1.CurrentCartService.GetCurrentCart",
191
- packageName: PACKAGE_NAME,
192
- migrationOptions: {
193
- optInTransformResponse: true
194
- },
195
- url: resolveComWixEcomCartApiV1CurrentCartServiceUrl({
196
- protoPath: "/v1/carts/current",
197
- data: payload,
198
- host
199
- }),
200
- params: (0, import_rest_modules.toURLSearchParams)(payload),
201
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
202
- {
203
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
204
- paths: [
205
- { path: "cart.createdDate" },
206
- { path: "cart.updatedDate" },
207
- { path: "cart.lineItems.image.urlExpirationDate" },
208
- {
209
- path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
210
- },
211
- { path: "cart.lineItems.serviceProperties.scheduledDate" },
212
- { path: "cart.lineItems.serviceProperties.endDate" }
213
- ]
214
- },
215
- {
216
- transformFn: import_float2.transformRESTFloatToSDKFloat,
217
- paths: [
218
- { path: "cart.lineItems.image.focalPoint.x" },
219
- { path: "cart.lineItems.image.focalPoint.y" },
220
- { path: "cart.lineItems.physicalProperties.weight" },
221
- {
222
- path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
223
- },
224
- { path: "cart.contactInfo.address.geocode.latitude" },
225
- { path: "cart.contactInfo.address.geocode.longitude" }
226
- ]
227
- }
228
- ])
229
- };
230
- return metadata;
231
- }
232
- return __currentCartGetCurrentCart;
233
- }
234
- function updateCurrentCart(payload) {
235
- function __updateCurrentCart({ host }) {
236
- const serializedData = (0, import_transform_paths.transformPaths)(payload, [
237
- {
238
- transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
239
- paths: [{ path: "cartFieldmask" }]
240
- },
241
- {
242
- transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
243
- paths: [
244
- { path: "cartInfo.createdDate" },
245
- { path: "cartInfo.updatedDate" },
246
- { path: "cartInfo.lineItems.image.urlExpirationDate" },
247
- {
248
- path: "cartInfo.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
249
- },
250
- { path: "cartInfo.lineItems.serviceProperties.scheduledDate" },
251
- { path: "cartInfo.lineItems.serviceProperties.endDate" },
252
- { path: "lineItems.image.urlExpirationDate" },
253
- {
254
- path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
255
- },
256
- { path: "lineItems.serviceProperties.scheduledDate" },
257
- { path: "lineItems.serviceProperties.endDate" },
258
- {
259
- path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
260
- },
261
- { path: "customLineItems.serviceProperties.scheduledDate" },
262
- { path: "customLineItems.serviceProperties.endDate" }
263
- ]
264
- },
265
- {
266
- transformFn: import_float.transformSDKFloatToRESTFloat,
267
- paths: [
268
- { path: "cartInfo.lineItems.image.focalPoint.x" },
269
- { path: "cartInfo.lineItems.image.focalPoint.y" },
270
- { path: "lineItems.image.focalPoint.x" },
271
- { path: "lineItems.image.focalPoint.y" },
272
- { path: "cartInfo.lineItems.physicalProperties.weight" },
273
- {
274
- path: "cartInfo.lineItems.catalogOverrideFields.physicalProperties.weight"
275
- },
276
- { path: "cartInfo.contactInfo.address.geocode.latitude" },
277
- { path: "cartInfo.contactInfo.address.geocode.longitude" },
278
- { path: "lineItems.physicalProperties.weight" },
279
- { path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
280
- { path: "customLineItems.physicalProperties.weight" }
281
- ]
282
- }
283
- ]);
284
- const metadata = {
285
- entityFqdn: "wix.ecom.v1.cart",
286
- method: "PATCH",
287
- methodFqn: "com.wix.ecom.cart.api.v1.CurrentCartService.UpdateCurrentCart",
288
- packageName: PACKAGE_NAME,
289
- migrationOptions: {
290
- optInTransformResponse: true
291
- },
292
- url: resolveComWixEcomCartApiV1CurrentCartServiceUrl({
293
- protoPath: "/v1/carts/current",
294
- data: serializedData,
295
- host
296
- }),
297
- data: serializedData,
298
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
299
- {
300
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
301
- paths: [
302
- { path: "cart.createdDate" },
303
- { path: "cart.updatedDate" },
304
- { path: "cart.lineItems.image.urlExpirationDate" },
305
- {
306
- path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
307
- },
308
- { path: "cart.lineItems.serviceProperties.scheduledDate" },
309
- { path: "cart.lineItems.serviceProperties.endDate" }
310
- ]
311
- },
312
- {
313
- transformFn: import_float2.transformRESTFloatToSDKFloat,
314
- paths: [
315
- { path: "cart.lineItems.image.focalPoint.x" },
316
- { path: "cart.lineItems.image.focalPoint.y" },
317
- { path: "cart.lineItems.physicalProperties.weight" },
318
- {
319
- path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
320
- },
321
- { path: "cart.contactInfo.address.geocode.latitude" },
322
- { path: "cart.contactInfo.address.geocode.longitude" }
323
- ]
324
- }
325
- ])
326
- };
327
- return metadata;
328
- }
329
- return __updateCurrentCart;
330
- }
331
- function addToCurrentCart(payload) {
332
- function __addToCurrentCart({ host }) {
333
- const serializedData = (0, import_transform_paths.transformPaths)(payload, [
334
- {
335
- transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
336
- paths: [
337
- { path: "lineItems.image.urlExpirationDate" },
338
- {
339
- path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
340
- },
341
- { path: "lineItems.serviceProperties.scheduledDate" },
342
- { path: "lineItems.serviceProperties.endDate" },
343
- {
344
- path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
345
- },
346
- { path: "customLineItems.serviceProperties.scheduledDate" },
347
- { path: "customLineItems.serviceProperties.endDate" }
348
- ]
349
- },
350
- {
351
- transformFn: import_float.transformSDKFloatToRESTFloat,
352
- paths: [
353
- { path: "lineItems.image.focalPoint.x" },
354
- { path: "lineItems.image.focalPoint.y" },
355
- { path: "lineItems.physicalProperties.weight" },
356
- { path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
357
- { path: "customLineItems.physicalProperties.weight" }
358
- ]
359
- }
360
- ]);
361
- const metadata = {
362
- entityFqdn: "wix.ecom.v1.cart",
363
- method: "POST",
364
- methodFqn: "com.wix.ecom.cart.api.v1.CurrentCartService.AddToCurrentCart",
365
- packageName: PACKAGE_NAME,
366
- migrationOptions: {
367
- optInTransformResponse: true
368
- },
369
- url: resolveComWixEcomCartApiV1CurrentCartServiceUrl({
370
- protoPath: "/v1/carts/current/add-to-cart",
371
- data: serializedData,
372
- host
373
- }),
374
- data: serializedData,
375
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
376
- {
377
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
378
- paths: [
379
- { path: "cart.createdDate" },
380
- { path: "cart.updatedDate" },
381
- { path: "cart.lineItems.image.urlExpirationDate" },
382
- {
383
- path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
384
- },
385
- { path: "cart.lineItems.serviceProperties.scheduledDate" },
386
- { path: "cart.lineItems.serviceProperties.endDate" }
387
- ]
388
- },
389
- {
390
- transformFn: import_float2.transformRESTFloatToSDKFloat,
391
- paths: [
392
- { path: "cart.lineItems.image.focalPoint.x" },
393
- { path: "cart.lineItems.image.focalPoint.y" },
394
- { path: "cart.lineItems.physicalProperties.weight" },
395
- {
396
- path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
397
- },
398
- { path: "cart.contactInfo.address.geocode.latitude" },
399
- { path: "cart.contactInfo.address.geocode.longitude" }
400
- ]
401
- }
402
- ])
403
- };
404
- return metadata;
405
- }
406
- return __addToCurrentCart;
407
- }
408
- function removeLineItemsFromCurrentCart(payload) {
409
- function __removeLineItemsFromCurrentCart({ host }) {
410
- const metadata = {
411
- entityFqdn: "wix.ecom.v1.cart",
412
- method: "POST",
413
- methodFqn: "com.wix.ecom.cart.api.v1.CurrentCartService.RemoveLineItemsFromCurrentCart",
414
- packageName: PACKAGE_NAME,
415
- migrationOptions: {
416
- optInTransformResponse: true
417
- },
418
- url: resolveComWixEcomCartApiV1CurrentCartServiceUrl({
419
- protoPath: "/v1/carts/current/remove-line-items",
420
- data: payload,
421
- host
422
- }),
423
- data: payload,
424
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
425
- {
426
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
427
- paths: [
428
- { path: "cart.createdDate" },
429
- { path: "cart.updatedDate" },
430
- { path: "cart.lineItems.image.urlExpirationDate" },
431
- {
432
- path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
433
- },
434
- { path: "cart.lineItems.serviceProperties.scheduledDate" },
435
- { path: "cart.lineItems.serviceProperties.endDate" }
436
- ]
437
- },
438
- {
439
- transformFn: import_float2.transformRESTFloatToSDKFloat,
440
- paths: [
441
- { path: "cart.lineItems.image.focalPoint.x" },
442
- { path: "cart.lineItems.image.focalPoint.y" },
443
- { path: "cart.lineItems.physicalProperties.weight" },
444
- {
445
- path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
446
- },
447
- { path: "cart.contactInfo.address.geocode.latitude" },
448
- { path: "cart.contactInfo.address.geocode.longitude" }
449
- ]
450
- }
451
- ])
452
- };
453
- return metadata;
454
- }
455
- return __removeLineItemsFromCurrentCart;
456
- }
457
- function createCheckoutFromCurrentCart(payload) {
458
- function __createCheckoutFromCurrentCart({ host }) {
459
- const serializedData = (0, import_transform_paths.transformPaths)(payload, [
460
- {
461
- transformFn: import_float.transformSDKFloatToRESTFloat,
462
- paths: [
463
- { path: "shippingAddress.geocode.latitude" },
464
- { path: "shippingAddress.geocode.longitude" },
465
- { path: "billingAddress.geocode.latitude" },
466
- { path: "billingAddress.geocode.longitude" }
467
- ]
468
- }
469
- ]);
470
- const metadata = {
471
- entityFqdn: "wix.ecom.v1.cart",
472
- method: "POST",
473
- methodFqn: "com.wix.ecom.cart.api.v1.CurrentCartService.CreateCheckoutFromCurrentCart",
474
- packageName: PACKAGE_NAME,
475
- migrationOptions: {
476
- optInTransformResponse: true
477
- },
478
- url: resolveComWixEcomCartApiV1CurrentCartServiceUrl({
479
- protoPath: "/v1/carts/current/create-checkout",
480
- data: serializedData,
481
- host
482
- }),
483
- data: serializedData
484
- };
485
- return metadata;
486
- }
487
- return __createCheckoutFromCurrentCart;
488
- }
489
- function removeCouponFromCurrentCart(payload) {
490
- function __removeCouponFromCurrentCart({ host }) {
491
- const metadata = {
492
- entityFqdn: "wix.ecom.v1.cart",
493
- method: "POST",
494
- methodFqn: "com.wix.ecom.cart.api.v1.CurrentCartService.RemoveCouponFromCurrentCart",
495
- packageName: PACKAGE_NAME,
496
- migrationOptions: {
497
- optInTransformResponse: true
498
- },
499
- url: resolveComWixEcomCartApiV1CurrentCartServiceUrl({
500
- protoPath: "/v1/carts/current/remove-coupon",
501
- data: payload,
502
- host
503
- }),
504
- data: payload,
505
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
506
- {
507
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
508
- paths: [
509
- { path: "cart.createdDate" },
510
- { path: "cart.updatedDate" },
511
- { path: "cart.lineItems.image.urlExpirationDate" },
512
- {
513
- path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
514
- },
515
- { path: "cart.lineItems.serviceProperties.scheduledDate" },
516
- { path: "cart.lineItems.serviceProperties.endDate" }
517
- ]
518
- },
519
- {
520
- transformFn: import_float2.transformRESTFloatToSDKFloat,
521
- paths: [
522
- { path: "cart.lineItems.image.focalPoint.x" },
523
- { path: "cart.lineItems.image.focalPoint.y" },
524
- { path: "cart.lineItems.physicalProperties.weight" },
525
- {
526
- path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
527
- },
528
- { path: "cart.contactInfo.address.geocode.latitude" },
529
- { path: "cart.contactInfo.address.geocode.longitude" }
530
- ]
531
- }
532
- ])
533
- };
534
- return metadata;
535
- }
536
- return __removeCouponFromCurrentCart;
537
- }
538
- function updateCurrentCartLineItemQuantity(payload) {
539
- function __updateCurrentCartLineItemQuantity({ host }) {
540
- const metadata = {
541
- entityFqdn: "wix.ecom.v1.cart",
542
- method: "POST",
543
- methodFqn: "com.wix.ecom.cart.api.v1.CurrentCartService.UpdateCurrentCartLineItemQuantity",
544
- packageName: PACKAGE_NAME,
545
- migrationOptions: {
546
- optInTransformResponse: true
547
- },
548
- url: resolveComWixEcomCartApiV1CurrentCartServiceUrl({
549
- protoPath: "/v1/carts/current/update-line-items-quantity",
550
- data: payload,
551
- host
552
- }),
553
- data: payload,
554
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
555
- {
556
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
557
- paths: [
558
- { path: "cart.createdDate" },
559
- { path: "cart.updatedDate" },
560
- { path: "cart.lineItems.image.urlExpirationDate" },
561
- {
562
- path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
563
- },
564
- { path: "cart.lineItems.serviceProperties.scheduledDate" },
565
- { path: "cart.lineItems.serviceProperties.endDate" }
566
- ]
567
- },
568
- {
569
- transformFn: import_float2.transformRESTFloatToSDKFloat,
570
- paths: [
571
- { path: "cart.lineItems.image.focalPoint.x" },
572
- { path: "cart.lineItems.image.focalPoint.y" },
573
- { path: "cart.lineItems.physicalProperties.weight" },
574
- {
575
- path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
576
- },
577
- { path: "cart.contactInfo.address.geocode.latitude" },
578
- { path: "cart.contactInfo.address.geocode.longitude" }
579
- ]
580
- }
581
- ])
582
- };
583
- return metadata;
584
- }
585
- return __updateCurrentCartLineItemQuantity;
586
- }
587
- function estimateCurrentCartTotals(payload) {
588
- function __estimateCurrentCartTotals({ host }) {
589
- const serializedData = (0, import_transform_paths.transformPaths)(payload, [
590
- {
591
- transformFn: import_float.transformSDKFloatToRESTFloat,
592
- paths: [
593
- { path: "shippingAddress.geocode.latitude" },
594
- { path: "shippingAddress.geocode.longitude" },
595
- { path: "billingAddress.geocode.latitude" },
596
- { path: "billingAddress.geocode.longitude" }
597
- ]
598
- }
599
- ]);
600
- const metadata = {
601
- entityFqdn: "wix.ecom.v1.cart",
602
- method: "POST",
603
- methodFqn: "com.wix.ecom.cart.api.v1.CurrentCartService.EstimateCurrentCartTotals",
604
- packageName: PACKAGE_NAME,
605
- migrationOptions: {
606
- optInTransformResponse: true
607
- },
608
- url: resolveComWixEcomCartApiV1CurrentCartServiceUrl({
609
- protoPath: "/v1/carts/current/estimate-totals",
610
- data: serializedData,
611
- host
612
- }),
613
- data: serializedData,
614
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
615
- {
616
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
617
- paths: [
618
- { path: "cart.createdDate" },
619
- { path: "cart.updatedDate" },
620
- { path: "cart.lineItems.image.urlExpirationDate" },
621
- {
622
- path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
623
- },
624
- { path: "cart.lineItems.serviceProperties.scheduledDate" },
625
- { path: "cart.lineItems.serviceProperties.endDate" },
626
- {
627
- path: "shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
628
- },
629
- {
630
- path: "shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
631
- },
632
- {
633
- path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
634
- },
635
- {
636
- path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
637
- },
638
- { path: "membershipOptions.eligibleMemberships.expirationDate" },
639
- {
640
- path: "membershipOptions.invalidMemberships.membership.expirationDate"
641
- },
642
- {
643
- path: "membershipOptions.validatedExistingMemberships.memberships.membership.expirationDate"
644
- }
645
- ]
646
- },
647
- {
648
- transformFn: import_float2.transformRESTFloatToSDKFloat,
649
- paths: [
650
- { path: "cart.lineItems.image.focalPoint.x" },
651
- { path: "cart.lineItems.image.focalPoint.y" },
652
- { path: "cart.lineItems.physicalProperties.weight" },
653
- {
654
- path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
655
- },
656
- { path: "cart.contactInfo.address.geocode.latitude" },
657
- { path: "cart.contactInfo.address.geocode.longitude" },
658
- {
659
- path: "shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
660
- },
661
- {
662
- path: "shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
663
- },
664
- {
665
- path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
666
- },
667
- {
668
- path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
669
- },
670
- { path: "appliedDiscounts.merchantDiscount.percentage" }
671
- ]
672
- }
673
- ])
674
- };
675
- return metadata;
676
- }
677
- return __estimateCurrentCartTotals;
678
- }
679
- function deleteCurrentCart(payload) {
680
- function __deleteCurrentCart({ host }) {
681
- const metadata = {
682
- entityFqdn: "wix.ecom.v1.cart",
683
- method: "DELETE",
684
- methodFqn: "com.wix.ecom.cart.api.v1.CurrentCartService.DeleteCurrentCart",
685
- packageName: PACKAGE_NAME,
686
- migrationOptions: {
687
- optInTransformResponse: true
688
- },
689
- url: resolveComWixEcomCartApiV1CurrentCartServiceUrl({
690
- protoPath: "/v1/carts/current",
691
- data: payload,
692
- host
693
- }),
694
- params: (0, import_rest_modules.toURLSearchParams)(payload)
695
- };
696
- return metadata;
697
- }
698
- return __deleteCurrentCart;
699
- }
700
-
701
- // src/ecom-v1-cart-current-cart.types.ts
702
- var DescriptionLineType = /* @__PURE__ */ ((DescriptionLineType2) => {
703
- DescriptionLineType2["UNRECOGNISED"] = "UNRECOGNISED";
704
- DescriptionLineType2["PLAIN_TEXT"] = "PLAIN_TEXT";
705
- DescriptionLineType2["COLOR"] = "COLOR";
706
- return DescriptionLineType2;
707
- })(DescriptionLineType || {});
708
- var ItemAvailabilityStatus = /* @__PURE__ */ ((ItemAvailabilityStatus2) => {
709
- ItemAvailabilityStatus2["AVAILABLE"] = "AVAILABLE";
710
- ItemAvailabilityStatus2["NOT_FOUND"] = "NOT_FOUND";
711
- ItemAvailabilityStatus2["NOT_AVAILABLE"] = "NOT_AVAILABLE";
712
- ItemAvailabilityStatus2["PARTIALLY_AVAILABLE"] = "PARTIALLY_AVAILABLE";
713
- return ItemAvailabilityStatus2;
714
- })(ItemAvailabilityStatus || {});
715
- var DimensionsUnit = /* @__PURE__ */ ((DimensionsUnit2) => {
716
- DimensionsUnit2["UNKNOWN_DIMENSIONS_UNIT"] = "UNKNOWN_DIMENSIONS_UNIT";
717
- DimensionsUnit2["MM"] = "MM";
718
- DimensionsUnit2["CM"] = "CM";
719
- DimensionsUnit2["M"] = "M";
720
- DimensionsUnit2["IN"] = "IN";
721
- DimensionsUnit2["FT"] = "FT";
722
- DimensionsUnit2["YD"] = "YD";
723
- return DimensionsUnit2;
724
- })(DimensionsUnit || {});
725
- var ItemTypePreset = /* @__PURE__ */ ((ItemTypePreset2) => {
726
- ItemTypePreset2["UNRECOGNISED"] = "UNRECOGNISED";
727
- ItemTypePreset2["PHYSICAL"] = "PHYSICAL";
728
- ItemTypePreset2["DIGITAL"] = "DIGITAL";
729
- ItemTypePreset2["GIFT_CARD"] = "GIFT_CARD";
730
- ItemTypePreset2["SERVICE"] = "SERVICE";
731
- return ItemTypePreset2;
732
- })(ItemTypePreset || {});
733
- var SubscriptionFrequency = /* @__PURE__ */ ((SubscriptionFrequency2) => {
734
- SubscriptionFrequency2["UNDEFINED"] = "UNDEFINED";
735
- SubscriptionFrequency2["DAY"] = "DAY";
736
- SubscriptionFrequency2["WEEK"] = "WEEK";
737
- SubscriptionFrequency2["MONTH"] = "MONTH";
738
- SubscriptionFrequency2["YEAR"] = "YEAR";
739
- return SubscriptionFrequency2;
740
- })(SubscriptionFrequency || {});
741
- var ProductPeriodAlignment = /* @__PURE__ */ ((ProductPeriodAlignment2) => {
742
- ProductPeriodAlignment2["ALIGNED_WITH_BILLING_PERIOD"] = "ALIGNED_WITH_BILLING_PERIOD";
743
- ProductPeriodAlignment2["NOT_ALIGNED_WITH_BILLING_PERIOD"] = "NOT_ALIGNED_WITH_BILLING_PERIOD";
744
- return ProductPeriodAlignment2;
745
- })(ProductPeriodAlignment || {});
746
- var FileType = /* @__PURE__ */ ((FileType2) => {
747
- FileType2["UNSPECIFIED"] = "UNSPECIFIED";
748
- FileType2["SECURE_PICTURE"] = "SECURE_PICTURE";
749
- FileType2["SECURE_VIDEO"] = "SECURE_VIDEO";
750
- FileType2["SECURE_DOCUMENT"] = "SECURE_DOCUMENT";
751
- FileType2["SECURE_MUSIC"] = "SECURE_MUSIC";
752
- FileType2["SECURE_ARCHIVE"] = "SECURE_ARCHIVE";
753
- FileType2["SECURE_RAW"] = "SECURE_RAW";
754
- return FileType2;
755
- })(FileType || {});
756
- var PaymentOptionType = /* @__PURE__ */ ((PaymentOptionType2) => {
757
- PaymentOptionType2["FULL_PAYMENT_ONLINE"] = "FULL_PAYMENT_ONLINE";
758
- PaymentOptionType2["FULL_PAYMENT_OFFLINE"] = "FULL_PAYMENT_OFFLINE";
759
- PaymentOptionType2["MEMBERSHIP"] = "MEMBERSHIP";
760
- PaymentOptionType2["DEPOSIT_ONLINE"] = "DEPOSIT_ONLINE";
761
- PaymentOptionType2["MEMBERSHIP_OFFLINE"] = "MEMBERSHIP_OFFLINE";
762
- PaymentOptionType2["MEMBERSHIP_ONLINE_WITH_OFFLINE_REMAINDER"] = "MEMBERSHIP_ONLINE_WITH_OFFLINE_REMAINDER";
763
- return PaymentOptionType2;
764
- })(PaymentOptionType || {});
765
- var TaxableAddressType = /* @__PURE__ */ ((TaxableAddressType2) => {
766
- TaxableAddressType2["BUSINESS"] = "BUSINESS";
767
- TaxableAddressType2["BILLING"] = "BILLING";
768
- TaxableAddressType2["SHIPPING"] = "SHIPPING";
769
- return TaxableAddressType2;
770
- })(TaxableAddressType || {});
771
- var PlatformFeeChargeType = /* @__PURE__ */ ((PlatformFeeChargeType2) => {
772
- PlatformFeeChargeType2["PASS_ON"] = "PASS_ON";
773
- PlatformFeeChargeType2["ABSORBED"] = "ABSORBED";
774
- return PlatformFeeChargeType2;
775
- })(PlatformFeeChargeType || {});
776
- var WeightUnit = /* @__PURE__ */ ((WeightUnit2) => {
777
- WeightUnit2["UNSPECIFIED_WEIGHT_UNIT"] = "UNSPECIFIED_WEIGHT_UNIT";
778
- WeightUnit2["KG"] = "KG";
779
- WeightUnit2["LB"] = "LB";
780
- return WeightUnit2;
781
- })(WeightUnit || {});
782
- var DiscountType = /* @__PURE__ */ ((DiscountType2) => {
783
- DiscountType2["GLOBAL"] = "GLOBAL";
784
- DiscountType2["SPECIFIC_ITEMS"] = "SPECIFIC_ITEMS";
785
- DiscountType2["SHIPPING"] = "SHIPPING";
786
- return DiscountType2;
787
- })(DiscountType || {});
788
- var VatType = /* @__PURE__ */ ((VatType2) => {
789
- VatType2["UNSPECIFIED"] = "UNSPECIFIED";
790
- VatType2["CPF"] = "CPF";
791
- VatType2["CNPJ"] = "CNPJ";
792
- return VatType2;
793
- })(VatType || {});
794
- var JurisdictionType = /* @__PURE__ */ ((JurisdictionType2) => {
795
- JurisdictionType2["UNDEFINED"] = "UNDEFINED";
796
- JurisdictionType2["COUNTRY"] = "COUNTRY";
797
- JurisdictionType2["STATE"] = "STATE";
798
- JurisdictionType2["COUNTY"] = "COUNTY";
799
- JurisdictionType2["CITY"] = "CITY";
800
- JurisdictionType2["SPECIAL"] = "SPECIAL";
801
- return JurisdictionType2;
802
- })(JurisdictionType || {});
803
- var RateType = /* @__PURE__ */ ((RateType2) => {
804
- RateType2["NO_TAX_COLLECTED"] = "NO_TAX_COLLECTED";
805
- RateType2["MANUAL_RATE"] = "MANUAL_RATE";
806
- RateType2["AUTO_RATE"] = "AUTO_RATE";
807
- RateType2["FALLBACK_RATE"] = "FALLBACK_RATE";
808
- return RateType2;
809
- })(RateType || {});
810
- var ManualCalculationReason = /* @__PURE__ */ ((ManualCalculationReason2) => {
811
- ManualCalculationReason2["GLOBAL_SETTING_TO_MANUAL"] = "GLOBAL_SETTING_TO_MANUAL";
812
- ManualCalculationReason2["REGION_SETTING_TO_MANUAL"] = "REGION_SETTING_TO_MANUAL";
813
- return ManualCalculationReason2;
814
- })(ManualCalculationReason || {});
815
- var FallbackReason = /* @__PURE__ */ ((FallbackReason2) => {
816
- FallbackReason2["AUTO_TAX_FAILED"] = "AUTO_TAX_FAILED";
817
- FallbackReason2["AUTO_TAX_DEACTIVATED"] = "AUTO_TAX_DEACTIVATED";
818
- return FallbackReason2;
819
- })(FallbackReason || {});
820
- var PickupMethod = /* @__PURE__ */ ((PickupMethod2) => {
821
- PickupMethod2["STORE_PICKUP"] = "STORE_PICKUP";
822
- PickupMethod2["PICKUP_POINT"] = "PICKUP_POINT";
823
- return PickupMethod2;
824
- })(PickupMethod || {});
825
- var ChargeType = /* @__PURE__ */ ((ChargeType2) => {
826
- ChargeType2["HANDLING_FEE"] = "HANDLING_FEE";
827
- ChargeType2["INSURANCE"] = "INSURANCE";
828
- return ChargeType2;
829
- })(ChargeType || {});
830
- var AppliedDiscountDiscountType = /* @__PURE__ */ ((AppliedDiscountDiscountType2) => {
831
- AppliedDiscountDiscountType2["GLOBAL"] = "GLOBAL";
832
- AppliedDiscountDiscountType2["SPECIFIC_ITEMS"] = "SPECIFIC_ITEMS";
833
- AppliedDiscountDiscountType2["SHIPPING"] = "SHIPPING";
834
- return AppliedDiscountDiscountType2;
835
- })(AppliedDiscountDiscountType || {});
836
- var RuleType = /* @__PURE__ */ ((RuleType2) => {
837
- RuleType2["VALIDATION"] = "VALIDATION";
838
- RuleType2["OTHER"] = "OTHER";
839
- RuleType2["MAX"] = "MAX";
840
- RuleType2["MIN"] = "MIN";
841
- RuleType2["MAX_LENGTH"] = "MAX_LENGTH";
842
- RuleType2["MIN_LENGTH"] = "MIN_LENGTH";
843
- RuleType2["MAX_SIZE"] = "MAX_SIZE";
844
- RuleType2["MIN_SIZE"] = "MIN_SIZE";
845
- RuleType2["FORMAT"] = "FORMAT";
846
- RuleType2["DECIMAL_LTE"] = "DECIMAL_LTE";
847
- RuleType2["DECIMAL_GTE"] = "DECIMAL_GTE";
848
- RuleType2["DECIMAL_LT"] = "DECIMAL_LT";
849
- RuleType2["DECIMAL_GT"] = "DECIMAL_GT";
850
- RuleType2["DECIMAL_MAX_SCALE"] = "DECIMAL_MAX_SCALE";
851
- RuleType2["INVALID_ENUM_VALUE"] = "INVALID_ENUM_VALUE";
852
- RuleType2["REQUIRED_FIELD"] = "REQUIRED_FIELD";
853
- RuleType2["FIELD_NOT_ALLOWED"] = "FIELD_NOT_ALLOWED";
854
- RuleType2["ONE_OF_ALIGNMENT"] = "ONE_OF_ALIGNMENT";
855
- RuleType2["EXACT_LENGTH"] = "EXACT_LENGTH";
856
- RuleType2["EXACT_SIZE"] = "EXACT_SIZE";
857
- RuleType2["REQUIRED_ONE_OF_FIELD"] = "REQUIRED_ONE_OF_FIELD";
858
- return RuleType2;
859
- })(RuleType || {});
860
- var BalanceType = /* @__PURE__ */ ((BalanceType2) => {
861
- BalanceType2["PUNCH_CARD"] = "PUNCH_CARD";
862
- BalanceType2["CREDIT"] = "CREDIT";
863
- return BalanceType2;
864
- })(BalanceType || {});
865
- var QuotaType = /* @__PURE__ */ ((QuotaType2) => {
866
- QuotaType2["LIMITED"] = "LIMITED";
867
- QuotaType2["UNLIMITED"] = "UNLIMITED";
868
- return QuotaType2;
869
- })(QuotaType || {});
870
- var LimitedQuotaType = /* @__PURE__ */ ((LimitedQuotaType2) => {
871
- LimitedQuotaType2["PUNCH_CARD"] = "PUNCH_CARD";
872
- LimitedQuotaType2["CREDIT"] = "CREDIT";
873
- return LimitedQuotaType2;
874
- })(LimitedQuotaType || {});
875
- var AdditionalFeeSource = /* @__PURE__ */ ((AdditionalFeeSource2) => {
876
- AdditionalFeeSource2["UNKNOWN_ADDITIONAL_FEE_SOURCE"] = "UNKNOWN_ADDITIONAL_FEE_SOURCE";
877
- AdditionalFeeSource2["SERVICE_PLUGIN"] = "SERVICE_PLUGIN";
878
- AdditionalFeeSource2["ITEM"] = "ITEM";
879
- AdditionalFeeSource2["MANUAL"] = "MANUAL";
880
- AdditionalFeeSource2["SHIPPING"] = "SHIPPING";
881
- AdditionalFeeSource2["PLATFORM"] = "PLATFORM";
882
- return AdditionalFeeSource2;
883
- })(AdditionalFeeSource || {});
884
- var Severity = /* @__PURE__ */ ((Severity2) => {
885
- Severity2["WARNING"] = "WARNING";
886
- Severity2["ERROR"] = "ERROR";
887
- return Severity2;
888
- })(Severity || {});
889
- var NameInOther = /* @__PURE__ */ ((NameInOther2) => {
890
- NameInOther2["OTHER_DEFAULT"] = "OTHER_DEFAULT";
891
- return NameInOther2;
892
- })(NameInOther || {});
893
- var NameInLineItem = /* @__PURE__ */ ((NameInLineItem2) => {
894
- NameInLineItem2["LINE_ITEM_DEFAULT"] = "LINE_ITEM_DEFAULT";
895
- return NameInLineItem2;
896
- })(NameInLineItem || {});
897
- var SuggestedFix = /* @__PURE__ */ ((SuggestedFix2) => {
898
- SuggestedFix2["UNKNOWN_SUGGESTED_FIX"] = "UNKNOWN_SUGGESTED_FIX";
899
- SuggestedFix2["REMOVE_LINE_ITEM"] = "REMOVE_LINE_ITEM";
900
- return SuggestedFix2;
901
- })(SuggestedFix || {});
902
- var ChannelType = /* @__PURE__ */ ((ChannelType2) => {
903
- ChannelType2["UNSPECIFIED"] = "UNSPECIFIED";
904
- ChannelType2["WEB"] = "WEB";
905
- ChannelType2["POS"] = "POS";
906
- ChannelType2["EBAY"] = "EBAY";
907
- ChannelType2["AMAZON"] = "AMAZON";
908
- ChannelType2["OTHER_PLATFORM"] = "OTHER_PLATFORM";
909
- ChannelType2["WIX_APP_STORE"] = "WIX_APP_STORE";
910
- ChannelType2["WIX_INVOICES"] = "WIX_INVOICES";
911
- ChannelType2["BACKOFFICE_MERCHANT"] = "BACKOFFICE_MERCHANT";
912
- ChannelType2["WISH"] = "WISH";
913
- ChannelType2["CLASS_PASS"] = "CLASS_PASS";
914
- ChannelType2["GLOBAL_E"] = "GLOBAL_E";
915
- ChannelType2["FACEBOOK"] = "FACEBOOK";
916
- ChannelType2["ETSY"] = "ETSY";
917
- ChannelType2["TIKTOK"] = "TIKTOK";
918
- ChannelType2["FAIRE_COM"] = "FAIRE_COM";
919
- ChannelType2["PAYPAL_AGENTIC_CHECKOUT"] = "PAYPAL_AGENTIC_CHECKOUT";
920
- ChannelType2["STRIPE_AGENTIC_CHECKOUT"] = "STRIPE_AGENTIC_CHECKOUT";
921
- ChannelType2["WIX_INVOICES_PLATFORM"] = "WIX_INVOICES_PLATFORM";
922
- ChannelType2["UCP_AGENTIC_CHECKOUT"] = "UCP_AGENTIC_CHECKOUT";
923
- return ChannelType2;
924
- })(ChannelType || {});
925
- var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
926
- WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
927
- WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
928
- WebhookIdentityType2["MEMBER"] = "MEMBER";
929
- WebhookIdentityType2["WIX_USER"] = "WIX_USER";
930
- WebhookIdentityType2["APP"] = "APP";
931
- return WebhookIdentityType2;
932
- })(WebhookIdentityType || {});
933
-
934
- // src/ecom-v1-cart-current-cart.meta.ts
935
- function getCurrentCart() {
936
- const payload = {};
937
- const getRequestOptions = currentCartGetCurrentCart(payload);
938
- const getUrl = (context) => {
939
- const { url } = getRequestOptions(context);
940
- return url;
941
- };
942
- return {
943
- getUrl,
944
- httpMethod: "GET",
945
- path: "/v1/carts/current",
946
- pathParams: {},
947
- __requestType: null,
948
- __originalRequestType: null,
949
- __responseType: null,
950
- __originalResponseType: null
951
- };
952
- }
953
- function updateCurrentCart2() {
954
- const payload = {};
955
- const getRequestOptions = updateCurrentCart(payload);
956
- const getUrl = (context) => {
957
- const { url } = getRequestOptions(context);
958
- return url;
959
- };
960
- return {
961
- getUrl,
962
- httpMethod: "PATCH",
963
- path: "/v1/carts/current",
964
- pathParams: {},
965
- __requestType: null,
966
- __originalRequestType: null,
967
- __responseType: null,
968
- __originalResponseType: null
969
- };
970
- }
971
- function addToCurrentCart2() {
972
- const payload = {};
973
- const getRequestOptions = addToCurrentCart(payload);
974
- const getUrl = (context) => {
975
- const { url } = getRequestOptions(context);
976
- return url;
977
- };
978
- return {
979
- getUrl,
980
- httpMethod: "POST",
981
- path: "/v1/carts/current/add-to-cart",
982
- pathParams: {},
983
- __requestType: null,
984
- __originalRequestType: null,
985
- __responseType: null,
986
- __originalResponseType: null
987
- };
988
- }
989
- function removeLineItemsFromCurrentCart2() {
990
- const payload = {};
991
- const getRequestOptions = removeLineItemsFromCurrentCart(payload);
992
- const getUrl = (context) => {
993
- const { url } = getRequestOptions(context);
994
- return url;
995
- };
996
- return {
997
- getUrl,
998
- httpMethod: "POST",
999
- path: "/v1/carts/current/remove-line-items",
1000
- pathParams: {},
1001
- __requestType: null,
1002
- __originalRequestType: null,
1003
- __responseType: null,
1004
- __originalResponseType: null
1005
- };
1006
- }
1007
- function createCheckoutFromCurrentCart2() {
1008
- const payload = {};
1009
- const getRequestOptions = createCheckoutFromCurrentCart(payload);
1010
- const getUrl = (context) => {
1011
- const { url } = getRequestOptions(context);
1012
- return url;
1013
- };
1014
- return {
1015
- getUrl,
1016
- httpMethod: "POST",
1017
- path: "/v1/carts/current/create-checkout",
1018
- pathParams: {},
1019
- __requestType: null,
1020
- __originalRequestType: null,
1021
- __responseType: null,
1022
- __originalResponseType: null
1023
- };
1024
- }
1025
- function removeCouponFromCurrentCart2() {
1026
- const payload = {};
1027
- const getRequestOptions = removeCouponFromCurrentCart(payload);
1028
- const getUrl = (context) => {
1029
- const { url } = getRequestOptions(context);
1030
- return url;
1031
- };
1032
- return {
1033
- getUrl,
1034
- httpMethod: "POST",
1035
- path: "/v1/carts/current/remove-coupon",
1036
- pathParams: {},
1037
- __requestType: null,
1038
- __originalRequestType: null,
1039
- __responseType: null,
1040
- __originalResponseType: null
1041
- };
1042
- }
1043
- function updateCurrentCartLineItemQuantity2() {
1044
- const payload = {};
1045
- const getRequestOptions = updateCurrentCartLineItemQuantity(payload);
1046
- const getUrl = (context) => {
1047
- const { url } = getRequestOptions(context);
1048
- return url;
1049
- };
1050
- return {
1051
- getUrl,
1052
- httpMethod: "POST",
1053
- path: "/v1/carts/current/update-line-items-quantity",
1054
- pathParams: {},
1055
- __requestType: null,
1056
- __originalRequestType: null,
1057
- __responseType: null,
1058
- __originalResponseType: null
1059
- };
1060
- }
1061
- function estimateCurrentCartTotals2() {
1062
- const payload = {};
1063
- const getRequestOptions = estimateCurrentCartTotals(payload);
1064
- const getUrl = (context) => {
1065
- const { url } = getRequestOptions(context);
1066
- return url;
1067
- };
1068
- return {
1069
- getUrl,
1070
- httpMethod: "POST",
1071
- path: "/v1/carts/current/estimate-totals",
1072
- pathParams: {},
1073
- __requestType: null,
1074
- __originalRequestType: null,
1075
- __responseType: null,
1076
- __originalResponseType: null
1077
- };
1078
- }
1079
- function deleteCurrentCart2() {
1080
- const payload = {};
1081
- const getRequestOptions = deleteCurrentCart(payload);
1082
- const getUrl = (context) => {
1083
- const { url } = getRequestOptions(context);
1084
- return url;
1085
- };
1086
- return {
1087
- getUrl,
1088
- httpMethod: "DELETE",
1089
- path: "/v1/carts/current",
1090
- pathParams: {},
1091
- __requestType: null,
1092
- __originalRequestType: null,
1093
- __responseType: null,
1094
- __originalResponseType: null
1095
- };
1096
- }
1097
- // Annotate the CommonJS export names for ESM import in node:
1098
- 0 && (module.exports = {
1099
- AdditionalFeeSourceOriginal,
1100
- AppliedDiscountDiscountTypeOriginal,
1101
- BalanceTypeOriginal,
1102
- ChannelTypeOriginal,
1103
- ChargeTypeOriginal,
1104
- DescriptionLineTypeOriginal,
1105
- DimensionsUnitOriginal,
1106
- DiscountTypeOriginal,
1107
- FallbackReasonOriginal,
1108
- FileTypeOriginal,
1109
- ItemAvailabilityStatusOriginal,
1110
- ItemTypePresetOriginal,
1111
- JurisdictionTypeOriginal,
1112
- LimitedQuotaTypeOriginal,
1113
- ManualCalculationReasonOriginal,
1114
- NameInLineItemOriginal,
1115
- NameInOtherOriginal,
1116
- PaymentOptionTypeOriginal,
1117
- PickupMethodOriginal,
1118
- PlatformFeeChargeTypeOriginal,
1119
- ProductPeriodAlignmentOriginal,
1120
- QuotaTypeOriginal,
1121
- RateTypeOriginal,
1122
- RuleTypeOriginal,
1123
- SeverityOriginal,
1124
- SubscriptionFrequencyOriginal,
1125
- SuggestedFixOriginal,
1126
- TaxableAddressTypeOriginal,
1127
- VatTypeOriginal,
1128
- WebhookIdentityTypeOriginal,
1129
- WeightUnitOriginal,
1130
- addToCurrentCart,
1131
- createCheckoutFromCurrentCart,
1132
- deleteCurrentCart,
1133
- estimateCurrentCartTotals,
1134
- getCurrentCart,
1135
- removeCouponFromCurrentCart,
1136
- removeLineItemsFromCurrentCart,
1137
- updateCurrentCart,
1138
- updateCurrentCartLineItemQuantity
1139
- });
1140
- //# sourceMappingURL=meta.js.map