@wix/auto_sdk_ecom_cart-v-2 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/build/cjs/index.d.ts +2950 -0
  2. package/build/cjs/index.js +2183 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1 -0
  5. package/build/cjs/index.typings.js +2030 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +2396 -0
  8. package/build/cjs/meta.js +1299 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/es/index.d.mts +2950 -0
  11. package/build/es/index.mjs +2120 -0
  12. package/build/es/index.mjs.map +1 -0
  13. package/build/es/index.typings.d.mts +1 -0
  14. package/build/es/index.typings.mjs +1967 -0
  15. package/build/es/index.typings.mjs.map +1 -0
  16. package/build/es/meta.d.mts +2396 -0
  17. package/build/es/meta.mjs +1256 -0
  18. package/build/es/meta.mjs.map +1 -0
  19. package/build/es/package.json +3 -0
  20. package/build/internal/cjs/index.d.ts +227 -0
  21. package/build/internal/cjs/index.js +2183 -0
  22. package/build/internal/cjs/index.js.map +1 -0
  23. package/build/internal/cjs/index.typings.d.ts +3207 -0
  24. package/build/internal/cjs/index.typings.js +2030 -0
  25. package/build/internal/cjs/index.typings.js.map +1 -0
  26. package/build/internal/cjs/meta.d.ts +2397 -0
  27. package/build/internal/cjs/meta.js +1299 -0
  28. package/build/internal/cjs/meta.js.map +1 -0
  29. package/build/internal/es/index.d.mts +227 -0
  30. package/build/internal/es/index.mjs +2120 -0
  31. package/build/internal/es/index.mjs.map +1 -0
  32. package/build/internal/es/index.typings.d.mts +3207 -0
  33. package/build/internal/es/index.typings.mjs +1967 -0
  34. package/build/internal/es/index.typings.mjs.map +1 -0
  35. package/build/internal/es/meta.d.mts +2397 -0
  36. package/build/internal/es/meta.mjs +1256 -0
  37. package/build/internal/es/meta.mjs.map +1 -0
  38. package/meta/package.json +3 -0
  39. package/package.json +54 -0
@@ -0,0 +1,1256 @@
1
+ // src/ecom-v2-cart-cart-v-2.http.ts
2
+ import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
3
+ import { transformSDKFloatToRESTFloat } from "@wix/sdk-runtime/transformations/float";
4
+ import { transformRESTFloatToSDKFloat } from "@wix/sdk-runtime/transformations/float";
5
+ import { transformRESTBytesToSDKBytes } from "@wix/sdk-runtime/transformations/bytes";
6
+ import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
7
+ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
8
+ import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
9
+ import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
10
+ import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
11
+ function resolveWixEcomCartV2CartServiceUrl(opts) {
12
+ const domainToMappings = {
13
+ "api._api_base_domain_": [
14
+ {
15
+ srcPath: "/cart-v2",
16
+ destPath: ""
17
+ }
18
+ ],
19
+ _: [
20
+ {
21
+ srcPath: "/_api/cart-v2",
22
+ destPath: ""
23
+ }
24
+ ],
25
+ "*.dev.wix-code.com": [
26
+ {
27
+ srcPath: "/_api/cart-v2",
28
+ destPath: ""
29
+ }
30
+ ],
31
+ "www._base_domain_": [
32
+ {
33
+ srcPath: "/_api/cart-v2",
34
+ destPath: ""
35
+ }
36
+ ],
37
+ "editor._base_domain_": [
38
+ {
39
+ srcPath: "/_api/cart-v2",
40
+ destPath: ""
41
+ }
42
+ ],
43
+ "blocks._base_domain_": [
44
+ {
45
+ srcPath: "/_api/cart-v2",
46
+ destPath: ""
47
+ }
48
+ ],
49
+ "create.editorx": [
50
+ {
51
+ srcPath: "/_api/cart-v2",
52
+ destPath: ""
53
+ }
54
+ ],
55
+ "apps._base_domain_": [
56
+ {
57
+ srcPath: "/_api/cart-v2",
58
+ destPath: ""
59
+ }
60
+ ],
61
+ "manage._base_domain_": [
62
+ {
63
+ srcPath: "/_api/cart-v2",
64
+ destPath: ""
65
+ }
66
+ ],
67
+ "bo._base_domain_": [
68
+ {
69
+ srcPath: "/_api/cart-v2",
70
+ destPath: ""
71
+ }
72
+ ],
73
+ "wixbo.ai": [
74
+ {
75
+ srcPath: "/_api/cart-v2",
76
+ destPath: ""
77
+ }
78
+ ],
79
+ "wix-bo.com": [
80
+ {
81
+ srcPath: "/_api/cart-v2",
82
+ destPath: ""
83
+ }
84
+ ],
85
+ "www.wixapis.com": [
86
+ {
87
+ srcPath: "/ecom/v2/carts",
88
+ destPath: "/v2/carts"
89
+ }
90
+ ],
91
+ "editor.wixapps.net": [
92
+ {
93
+ srcPath: "/_api/cart-v2",
94
+ destPath: ""
95
+ }
96
+ ]
97
+ };
98
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
99
+ }
100
+ var PACKAGE_NAME = "@wix/auto_sdk_ecom_cart-v-2";
101
+ function createCart(payload) {
102
+ function __createCart({ host }) {
103
+ const serializedData = transformPaths(payload, [
104
+ {
105
+ transformFn: transformSDKTimestampToRESTTimestamp,
106
+ paths: [
107
+ { path: "cart.createdDate" },
108
+ { path: "cart.updatedDate" },
109
+ {
110
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
111
+ },
112
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
113
+ {
114
+ path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
115
+ },
116
+ { path: "cart.lineItems.attributes.serviceProperties.scheduledDate" },
117
+ {
118
+ path: "catalogItems.catalogOverrideFields.image.urlExpirationDate"
119
+ },
120
+ { path: "customItems.attributes.image.urlExpirationDate" },
121
+ {
122
+ path: "customItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
123
+ },
124
+ { path: "customItems.attributes.serviceProperties.scheduledDate" }
125
+ ]
126
+ },
127
+ {
128
+ transformFn: transformSDKFloatToRESTFloat,
129
+ paths: [
130
+ {
131
+ path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
132
+ },
133
+ { path: "cart.lineItems.attributes.physicalProperties.weight" },
134
+ { path: "cart.deliveryInfo.address.geocode.latitude" },
135
+ { path: "cart.deliveryInfo.address.geocode.longitude" },
136
+ { path: "cart.paymentInfo.billingAddress.geocode.latitude" },
137
+ { path: "cart.paymentInfo.billingAddress.geocode.longitude" },
138
+ {
139
+ path: "catalogItems.catalogOverrideFields.physicalProperties.weight"
140
+ },
141
+ { path: "customItems.attributes.physicalProperties.weight" }
142
+ ]
143
+ }
144
+ ]);
145
+ const metadata = {
146
+ entityFqdn: "wix.ecom.v2.cart",
147
+ method: "POST",
148
+ methodFqn: "wix.ecom.cart.v2.CartService.CreateCart",
149
+ packageName: PACKAGE_NAME,
150
+ url: resolveWixEcomCartV2CartServiceUrl({
151
+ protoPath: "/v2/carts",
152
+ data: serializedData,
153
+ host
154
+ }),
155
+ data: serializedData,
156
+ transformResponse: (payload2) => transformPaths(payload2, [
157
+ {
158
+ transformFn: transformRESTTimestampToSDKTimestamp,
159
+ paths: [
160
+ { path: "cart.createdDate" },
161
+ { path: "cart.updatedDate" },
162
+ {
163
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
164
+ },
165
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
166
+ {
167
+ path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
168
+ },
169
+ {
170
+ path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
171
+ }
172
+ ]
173
+ },
174
+ {
175
+ transformFn: transformRESTFloatToSDKFloat,
176
+ paths: [
177
+ {
178
+ path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
179
+ },
180
+ { path: "cart.lineItems.attributes.physicalProperties.weight" },
181
+ { path: "cart.deliveryInfo.address.geocode.latitude" },
182
+ { path: "cart.deliveryInfo.address.geocode.longitude" },
183
+ { path: "cart.paymentInfo.billingAddress.geocode.latitude" },
184
+ { path: "cart.paymentInfo.billingAddress.geocode.longitude" }
185
+ ]
186
+ }
187
+ ])
188
+ };
189
+ return metadata;
190
+ }
191
+ return __createCart;
192
+ }
193
+ function getCart(payload) {
194
+ function __getCart({ host }) {
195
+ const metadata = {
196
+ entityFqdn: "wix.ecom.v2.cart",
197
+ method: "GET",
198
+ methodFqn: "wix.ecom.cart.v2.CartService.GetCart",
199
+ packageName: PACKAGE_NAME,
200
+ url: resolveWixEcomCartV2CartServiceUrl({
201
+ protoPath: "/v2/carts/{cartId}",
202
+ data: payload,
203
+ host
204
+ }),
205
+ params: toURLSearchParams(payload),
206
+ transformResponse: (payload2) => transformPaths(payload2, [
207
+ {
208
+ transformFn: transformRESTTimestampToSDKTimestamp,
209
+ paths: [
210
+ { path: "cart.createdDate" },
211
+ { path: "cart.updatedDate" },
212
+ {
213
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
214
+ },
215
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
216
+ {
217
+ path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
218
+ },
219
+ {
220
+ path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
221
+ }
222
+ ]
223
+ },
224
+ {
225
+ transformFn: transformRESTFloatToSDKFloat,
226
+ paths: [
227
+ {
228
+ path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
229
+ },
230
+ { path: "cart.lineItems.attributes.physicalProperties.weight" },
231
+ { path: "cart.deliveryInfo.address.geocode.latitude" },
232
+ { path: "cart.deliveryInfo.address.geocode.longitude" },
233
+ { path: "cart.paymentInfo.billingAddress.geocode.latitude" },
234
+ { path: "cart.paymentInfo.billingAddress.geocode.longitude" }
235
+ ]
236
+ }
237
+ ])
238
+ };
239
+ return metadata;
240
+ }
241
+ return __getCart;
242
+ }
243
+ function updateCart(payload) {
244
+ function __updateCart({ host }) {
245
+ const serializedData = transformPaths(payload, [
246
+ {
247
+ transformFn: transformSDKFieldMaskToRESTFieldMask,
248
+ paths: [{ path: "fieldMask" }]
249
+ },
250
+ {
251
+ transformFn: transformSDKTimestampToRESTTimestamp,
252
+ paths: [
253
+ { path: "cart.createdDate" },
254
+ { path: "cart.updatedDate" },
255
+ {
256
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
257
+ },
258
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
259
+ {
260
+ path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
261
+ },
262
+ { path: "cart.lineItems.attributes.serviceProperties.scheduledDate" }
263
+ ]
264
+ },
265
+ {
266
+ transformFn: transformSDKFloatToRESTFloat,
267
+ paths: [
268
+ {
269
+ path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
270
+ },
271
+ { path: "cart.lineItems.attributes.physicalProperties.weight" },
272
+ { path: "cart.deliveryInfo.address.geocode.latitude" },
273
+ { path: "cart.deliveryInfo.address.geocode.longitude" },
274
+ { path: "cart.paymentInfo.billingAddress.geocode.latitude" },
275
+ { path: "cart.paymentInfo.billingAddress.geocode.longitude" }
276
+ ]
277
+ }
278
+ ]);
279
+ const metadata = {
280
+ entityFqdn: "wix.ecom.v2.cart",
281
+ method: "PATCH",
282
+ methodFqn: "wix.ecom.cart.v2.CartService.UpdateCart",
283
+ packageName: PACKAGE_NAME,
284
+ url: resolveWixEcomCartV2CartServiceUrl({
285
+ protoPath: "/v2/carts/{cart.id}",
286
+ data: serializedData,
287
+ host
288
+ }),
289
+ data: serializedData,
290
+ transformResponse: (payload2) => transformPaths(payload2, [
291
+ {
292
+ transformFn: transformRESTTimestampToSDKTimestamp,
293
+ paths: [
294
+ { path: "cart.createdDate" },
295
+ { path: "cart.updatedDate" },
296
+ {
297
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
298
+ },
299
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
300
+ {
301
+ path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
302
+ },
303
+ {
304
+ path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
305
+ }
306
+ ]
307
+ },
308
+ {
309
+ transformFn: transformRESTFloatToSDKFloat,
310
+ paths: [
311
+ {
312
+ path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
313
+ },
314
+ { path: "cart.lineItems.attributes.physicalProperties.weight" },
315
+ { path: "cart.deliveryInfo.address.geocode.latitude" },
316
+ { path: "cart.deliveryInfo.address.geocode.longitude" },
317
+ { path: "cart.paymentInfo.billingAddress.geocode.latitude" },
318
+ { path: "cart.paymentInfo.billingAddress.geocode.longitude" }
319
+ ]
320
+ }
321
+ ])
322
+ };
323
+ return metadata;
324
+ }
325
+ return __updateCart;
326
+ }
327
+ function deleteCart(payload) {
328
+ function __deleteCart({ host }) {
329
+ const metadata = {
330
+ entityFqdn: "wix.ecom.v2.cart",
331
+ method: "DELETE",
332
+ methodFqn: "wix.ecom.cart.v2.CartService.DeleteCart",
333
+ packageName: PACKAGE_NAME,
334
+ url: resolveWixEcomCartV2CartServiceUrl({
335
+ protoPath: "/v2/carts/{cartId}",
336
+ data: payload,
337
+ host
338
+ }),
339
+ params: toURLSearchParams(payload)
340
+ };
341
+ return metadata;
342
+ }
343
+ return __deleteCart;
344
+ }
345
+ function refreshCart(payload) {
346
+ function __refreshCart({ host }) {
347
+ const metadata = {
348
+ entityFqdn: "wix.ecom.v2.cart",
349
+ method: "POST",
350
+ methodFqn: "wix.ecom.cart.v2.CartService.RefreshCart",
351
+ packageName: PACKAGE_NAME,
352
+ url: resolveWixEcomCartV2CartServiceUrl({
353
+ protoPath: "/v2/carts/{cartId}/refresh",
354
+ data: payload,
355
+ host
356
+ }),
357
+ data: payload,
358
+ transformResponse: (payload2) => transformPaths(payload2, [
359
+ {
360
+ transformFn: transformRESTTimestampToSDKTimestamp,
361
+ paths: [
362
+ { path: "cart.createdDate" },
363
+ { path: "cart.updatedDate" },
364
+ {
365
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
366
+ },
367
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
368
+ {
369
+ path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
370
+ },
371
+ {
372
+ path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
373
+ }
374
+ ]
375
+ },
376
+ {
377
+ transformFn: transformRESTFloatToSDKFloat,
378
+ paths: [
379
+ {
380
+ path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
381
+ },
382
+ { path: "cart.lineItems.attributes.physicalProperties.weight" },
383
+ { path: "cart.deliveryInfo.address.geocode.latitude" },
384
+ { path: "cart.deliveryInfo.address.geocode.longitude" },
385
+ { path: "cart.paymentInfo.billingAddress.geocode.latitude" },
386
+ { path: "cart.paymentInfo.billingAddress.geocode.longitude" }
387
+ ]
388
+ }
389
+ ])
390
+ };
391
+ return metadata;
392
+ }
393
+ return __refreshCart;
394
+ }
395
+ function calculateCart(payload) {
396
+ function __calculateCart({ host }) {
397
+ const metadata = {
398
+ entityFqdn: "wix.ecom.v2.cart",
399
+ method: "POST",
400
+ methodFqn: "wix.ecom.cart.v2.CartService.CalculateCart",
401
+ packageName: PACKAGE_NAME,
402
+ url: resolveWixEcomCartV2CartServiceUrl({
403
+ protoPath: "/v2/carts/{cartId}/calculate",
404
+ data: payload,
405
+ host
406
+ }),
407
+ data: payload,
408
+ transformResponse: (payload2) => transformPaths(payload2, [
409
+ {
410
+ transformFn: transformRESTTimestampToSDKTimestamp,
411
+ paths: [
412
+ { path: "cart.createdDate" },
413
+ { path: "cart.updatedDate" },
414
+ {
415
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
416
+ },
417
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
418
+ {
419
+ path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
420
+ },
421
+ {
422
+ path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
423
+ }
424
+ ]
425
+ },
426
+ {
427
+ transformFn: transformRESTFloatToSDKFloat,
428
+ paths: [
429
+ {
430
+ path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
431
+ },
432
+ { path: "cart.lineItems.attributes.physicalProperties.weight" },
433
+ { path: "cart.deliveryInfo.address.geocode.latitude" },
434
+ { path: "cart.deliveryInfo.address.geocode.longitude" },
435
+ { path: "cart.paymentInfo.billingAddress.geocode.latitude" },
436
+ { path: "cart.paymentInfo.billingAddress.geocode.longitude" }
437
+ ]
438
+ }
439
+ ])
440
+ };
441
+ return metadata;
442
+ }
443
+ return __calculateCart;
444
+ }
445
+ function getCheckoutUrl(payload) {
446
+ function __getCheckoutUrl({ host }) {
447
+ const metadata = {
448
+ entityFqdn: "wix.ecom.v2.cart",
449
+ method: "POST",
450
+ methodFqn: "wix.ecom.cart.v2.CartService.GetCheckoutURL",
451
+ packageName: PACKAGE_NAME,
452
+ url: resolveWixEcomCartV2CartServiceUrl({
453
+ protoPath: "/v2/carts/{cartId}/get-checkout-url",
454
+ data: payload,
455
+ host
456
+ }),
457
+ data: payload
458
+ };
459
+ return metadata;
460
+ }
461
+ return __getCheckoutUrl;
462
+ }
463
+ function completeCheckout(payload) {
464
+ function __completeCheckout({ host }) {
465
+ const metadata = {
466
+ entityFqdn: "wix.ecom.v2.cart",
467
+ method: "POST",
468
+ methodFqn: "wix.ecom.cart.v2.CartService.CompleteCheckout",
469
+ packageName: PACKAGE_NAME,
470
+ url: resolveWixEcomCartV2CartServiceUrl({
471
+ protoPath: "/v2/carts/{cartId}/complete-checkout",
472
+ data: payload,
473
+ host
474
+ }),
475
+ data: payload
476
+ };
477
+ return metadata;
478
+ }
479
+ return __completeCheckout;
480
+ }
481
+ function addLineItems(payload) {
482
+ function __addLineItems({ host }) {
483
+ const serializedData = transformPaths(payload, [
484
+ {
485
+ transformFn: transformSDKFloatToRESTFloat,
486
+ paths: [
487
+ {
488
+ path: "catalogItems.catalogOverrideFields.physicalProperties.weight"
489
+ },
490
+ { path: "customItems.attributes.physicalProperties.weight" }
491
+ ]
492
+ },
493
+ {
494
+ transformFn: transformSDKTimestampToRESTTimestamp,
495
+ paths: [
496
+ {
497
+ path: "catalogItems.catalogOverrideFields.image.urlExpirationDate"
498
+ },
499
+ { path: "customItems.attributes.image.urlExpirationDate" },
500
+ {
501
+ path: "customItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
502
+ },
503
+ { path: "customItems.attributes.serviceProperties.scheduledDate" }
504
+ ]
505
+ }
506
+ ]);
507
+ const metadata = {
508
+ entityFqdn: "wix.ecom.v2.cart",
509
+ method: "POST",
510
+ methodFqn: "wix.ecom.cart.v2.CartService.AddLineItems",
511
+ packageName: PACKAGE_NAME,
512
+ url: resolveWixEcomCartV2CartServiceUrl({
513
+ protoPath: "/v2/carts/{cartId}/add-line-items",
514
+ data: serializedData,
515
+ host
516
+ }),
517
+ data: serializedData,
518
+ transformResponse: (payload2) => transformPaths(payload2, [
519
+ {
520
+ transformFn: transformRESTTimestampToSDKTimestamp,
521
+ paths: [
522
+ { path: "cart.createdDate" },
523
+ { path: "cart.updatedDate" },
524
+ {
525
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
526
+ },
527
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
528
+ {
529
+ path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
530
+ },
531
+ {
532
+ path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
533
+ }
534
+ ]
535
+ },
536
+ {
537
+ transformFn: transformRESTFloatToSDKFloat,
538
+ paths: [
539
+ {
540
+ path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
541
+ },
542
+ { path: "cart.lineItems.attributes.physicalProperties.weight" },
543
+ { path: "cart.deliveryInfo.address.geocode.latitude" },
544
+ { path: "cart.deliveryInfo.address.geocode.longitude" },
545
+ { path: "cart.paymentInfo.billingAddress.geocode.latitude" },
546
+ { path: "cart.paymentInfo.billingAddress.geocode.longitude" }
547
+ ]
548
+ }
549
+ ])
550
+ };
551
+ return metadata;
552
+ }
553
+ return __addLineItems;
554
+ }
555
+ function removeLineItems(payload) {
556
+ function __removeLineItems({ host }) {
557
+ const metadata = {
558
+ entityFqdn: "wix.ecom.v2.cart",
559
+ method: "POST",
560
+ methodFqn: "wix.ecom.cart.v2.CartService.RemoveLineItems",
561
+ packageName: PACKAGE_NAME,
562
+ url: resolveWixEcomCartV2CartServiceUrl({
563
+ protoPath: "/v2/carts/{cartId}/remove-line-items",
564
+ data: payload,
565
+ host
566
+ }),
567
+ data: payload,
568
+ transformResponse: (payload2) => transformPaths(payload2, [
569
+ {
570
+ transformFn: transformRESTTimestampToSDKTimestamp,
571
+ paths: [
572
+ { path: "cart.createdDate" },
573
+ { path: "cart.updatedDate" },
574
+ {
575
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
576
+ },
577
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
578
+ {
579
+ path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
580
+ },
581
+ {
582
+ path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
583
+ }
584
+ ]
585
+ },
586
+ {
587
+ transformFn: transformRESTFloatToSDKFloat,
588
+ paths: [
589
+ {
590
+ path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
591
+ },
592
+ { path: "cart.lineItems.attributes.physicalProperties.weight" },
593
+ { path: "cart.deliveryInfo.address.geocode.latitude" },
594
+ { path: "cart.deliveryInfo.address.geocode.longitude" },
595
+ { path: "cart.paymentInfo.billingAddress.geocode.latitude" },
596
+ { path: "cart.paymentInfo.billingAddress.geocode.longitude" }
597
+ ]
598
+ }
599
+ ])
600
+ };
601
+ return metadata;
602
+ }
603
+ return __removeLineItems;
604
+ }
605
+ function addDiscount(payload) {
606
+ function __addDiscount({ host }) {
607
+ const metadata = {
608
+ entityFqdn: "wix.ecom.v2.cart",
609
+ method: "POST",
610
+ methodFqn: "wix.ecom.cart.v2.CartService.AddDiscount",
611
+ packageName: PACKAGE_NAME,
612
+ url: resolveWixEcomCartV2CartServiceUrl({
613
+ protoPath: "/v2/carts/{cartId}/add-discount",
614
+ data: payload,
615
+ host
616
+ }),
617
+ data: payload,
618
+ transformResponse: (payload2) => transformPaths(payload2, [
619
+ {
620
+ transformFn: transformRESTTimestampToSDKTimestamp,
621
+ paths: [
622
+ { path: "cart.createdDate" },
623
+ { path: "cart.updatedDate" },
624
+ {
625
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
626
+ },
627
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
628
+ {
629
+ path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
630
+ },
631
+ {
632
+ path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
633
+ }
634
+ ]
635
+ },
636
+ {
637
+ transformFn: transformRESTFloatToSDKFloat,
638
+ paths: [
639
+ {
640
+ path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
641
+ },
642
+ { path: "cart.lineItems.attributes.physicalProperties.weight" },
643
+ { path: "cart.deliveryInfo.address.geocode.latitude" },
644
+ { path: "cart.deliveryInfo.address.geocode.longitude" },
645
+ { path: "cart.paymentInfo.billingAddress.geocode.latitude" },
646
+ { path: "cart.paymentInfo.billingAddress.geocode.longitude" }
647
+ ]
648
+ }
649
+ ])
650
+ };
651
+ return metadata;
652
+ }
653
+ return __addDiscount;
654
+ }
655
+ function removeDiscount(payload) {
656
+ function __removeDiscount({ host }) {
657
+ const metadata = {
658
+ entityFqdn: "wix.ecom.v2.cart",
659
+ method: "POST",
660
+ methodFqn: "wix.ecom.cart.v2.CartService.RemoveDiscount",
661
+ packageName: PACKAGE_NAME,
662
+ url: resolveWixEcomCartV2CartServiceUrl({
663
+ protoPath: "/v2/carts/{cartId}/remove-discount",
664
+ data: payload,
665
+ host
666
+ }),
667
+ data: payload,
668
+ transformResponse: (payload2) => transformPaths(payload2, [
669
+ {
670
+ transformFn: transformRESTTimestampToSDKTimestamp,
671
+ paths: [
672
+ { path: "cart.createdDate" },
673
+ { path: "cart.updatedDate" },
674
+ {
675
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
676
+ },
677
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
678
+ {
679
+ path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
680
+ },
681
+ {
682
+ path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
683
+ }
684
+ ]
685
+ },
686
+ {
687
+ transformFn: transformRESTFloatToSDKFloat,
688
+ paths: [
689
+ {
690
+ path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
691
+ },
692
+ { path: "cart.lineItems.attributes.physicalProperties.weight" },
693
+ { path: "cart.deliveryInfo.address.geocode.latitude" },
694
+ { path: "cart.deliveryInfo.address.geocode.longitude" },
695
+ { path: "cart.paymentInfo.billingAddress.geocode.latitude" },
696
+ { path: "cart.paymentInfo.billingAddress.geocode.longitude" }
697
+ ]
698
+ }
699
+ ])
700
+ };
701
+ return metadata;
702
+ }
703
+ return __removeDiscount;
704
+ }
705
+ function addGiftCard(payload) {
706
+ function __addGiftCard({ host }) {
707
+ const metadata = {
708
+ entityFqdn: "wix.ecom.v2.cart",
709
+ method: "POST",
710
+ methodFqn: "wix.ecom.cart.v2.CartService.AddGiftCard",
711
+ packageName: PACKAGE_NAME,
712
+ url: resolveWixEcomCartV2CartServiceUrl({
713
+ protoPath: "/v2/carts/{cartId}/add-gift-card",
714
+ data: payload,
715
+ host
716
+ }),
717
+ data: payload,
718
+ transformResponse: (payload2) => transformPaths(payload2, [
719
+ {
720
+ transformFn: transformRESTTimestampToSDKTimestamp,
721
+ paths: [
722
+ { path: "cart.createdDate" },
723
+ { path: "cart.updatedDate" },
724
+ {
725
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
726
+ },
727
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
728
+ {
729
+ path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
730
+ },
731
+ {
732
+ path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
733
+ }
734
+ ]
735
+ },
736
+ {
737
+ transformFn: transformRESTFloatToSDKFloat,
738
+ paths: [
739
+ {
740
+ path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
741
+ },
742
+ { path: "cart.lineItems.attributes.physicalProperties.weight" },
743
+ { path: "cart.deliveryInfo.address.geocode.latitude" },
744
+ { path: "cart.deliveryInfo.address.geocode.longitude" },
745
+ { path: "cart.paymentInfo.billingAddress.geocode.latitude" },
746
+ { path: "cart.paymentInfo.billingAddress.geocode.longitude" }
747
+ ]
748
+ }
749
+ ])
750
+ };
751
+ return metadata;
752
+ }
753
+ return __addGiftCard;
754
+ }
755
+ function removeGiftCard(payload) {
756
+ function __removeGiftCard({ host }) {
757
+ const metadata = {
758
+ entityFqdn: "wix.ecom.v2.cart",
759
+ method: "POST",
760
+ methodFqn: "wix.ecom.cart.v2.CartService.RemoveGiftCard",
761
+ packageName: PACKAGE_NAME,
762
+ url: resolveWixEcomCartV2CartServiceUrl({
763
+ protoPath: "/v2/carts/{cartId}/remove-gift-card",
764
+ data: payload,
765
+ host
766
+ }),
767
+ data: payload,
768
+ transformResponse: (payload2) => transformPaths(payload2, [
769
+ {
770
+ transformFn: transformRESTTimestampToSDKTimestamp,
771
+ paths: [
772
+ { path: "cart.createdDate" },
773
+ { path: "cart.updatedDate" },
774
+ {
775
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
776
+ },
777
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
778
+ {
779
+ path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
780
+ },
781
+ {
782
+ path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
783
+ }
784
+ ]
785
+ },
786
+ {
787
+ transformFn: transformRESTFloatToSDKFloat,
788
+ paths: [
789
+ {
790
+ path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
791
+ },
792
+ { path: "cart.lineItems.attributes.physicalProperties.weight" },
793
+ { path: "cart.deliveryInfo.address.geocode.latitude" },
794
+ { path: "cart.deliveryInfo.address.geocode.longitude" },
795
+ { path: "cart.paymentInfo.billingAddress.geocode.latitude" },
796
+ { path: "cart.paymentInfo.billingAddress.geocode.longitude" }
797
+ ]
798
+ }
799
+ ])
800
+ };
801
+ return metadata;
802
+ }
803
+ return __removeGiftCard;
804
+ }
805
+ function updateLineItems(payload) {
806
+ function __updateLineItems({ host }) {
807
+ const metadata = {
808
+ entityFqdn: "wix.ecom.v2.cart",
809
+ method: "POST",
810
+ methodFqn: "wix.ecom.cart.v2.CartService.UpdateLineItems",
811
+ packageName: PACKAGE_NAME,
812
+ url: resolveWixEcomCartV2CartServiceUrl({
813
+ protoPath: "/v2/carts/{cartId}/update-line-items",
814
+ data: payload,
815
+ host
816
+ }),
817
+ data: payload,
818
+ transformResponse: (payload2) => transformPaths(payload2, [
819
+ {
820
+ transformFn: transformRESTTimestampToSDKTimestamp,
821
+ paths: [
822
+ { path: "cart.createdDate" },
823
+ { path: "cart.updatedDate" },
824
+ {
825
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
826
+ },
827
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
828
+ {
829
+ path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
830
+ },
831
+ {
832
+ path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
833
+ }
834
+ ]
835
+ },
836
+ {
837
+ transformFn: transformRESTFloatToSDKFloat,
838
+ paths: [
839
+ {
840
+ path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
841
+ },
842
+ { path: "cart.lineItems.attributes.physicalProperties.weight" },
843
+ { path: "cart.deliveryInfo.address.geocode.latitude" },
844
+ { path: "cart.deliveryInfo.address.geocode.longitude" },
845
+ { path: "cart.paymentInfo.billingAddress.geocode.latitude" },
846
+ { path: "cart.paymentInfo.billingAddress.geocode.longitude" }
847
+ ]
848
+ }
849
+ ])
850
+ };
851
+ return metadata;
852
+ }
853
+ return __updateLineItems;
854
+ }
855
+ function markCartAsCompleted(payload) {
856
+ function __markCartAsCompleted({ host }) {
857
+ const metadata = {
858
+ entityFqdn: "wix.ecom.v2.cart",
859
+ method: "POST",
860
+ methodFqn: "wix.ecom.cart.v2.CartService.MarkCartAsCompleted",
861
+ packageName: PACKAGE_NAME,
862
+ url: resolveWixEcomCartV2CartServiceUrl({
863
+ protoPath: "/v2/carts/{cartId}/mark-cart-as-completed",
864
+ data: payload,
865
+ host
866
+ }),
867
+ data: payload,
868
+ transformResponse: (payload2) => transformPaths(payload2, [
869
+ {
870
+ transformFn: transformRESTTimestampToSDKTimestamp,
871
+ paths: [
872
+ { path: "cart.createdDate" },
873
+ { path: "cart.updatedDate" },
874
+ {
875
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
876
+ },
877
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
878
+ {
879
+ path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
880
+ },
881
+ {
882
+ path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
883
+ }
884
+ ]
885
+ },
886
+ {
887
+ transformFn: transformRESTFloatToSDKFloat,
888
+ paths: [
889
+ {
890
+ path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
891
+ },
892
+ { path: "cart.lineItems.attributes.physicalProperties.weight" },
893
+ { path: "cart.deliveryInfo.address.geocode.latitude" },
894
+ { path: "cart.deliveryInfo.address.geocode.longitude" },
895
+ { path: "cart.paymentInfo.billingAddress.geocode.latitude" },
896
+ { path: "cart.paymentInfo.billingAddress.geocode.longitude" }
897
+ ]
898
+ }
899
+ ])
900
+ };
901
+ return metadata;
902
+ }
903
+ return __markCartAsCompleted;
904
+ }
905
+ function handleAsyncCheckoutCompletion(payload) {
906
+ function __handleAsyncCheckoutCompletion({ host }) {
907
+ const metadata = {
908
+ entityFqdn: "wix.ecom.v2.cart",
909
+ method: "POST",
910
+ methodFqn: "wix.ecom.cart.v2.CartService.HandleAsyncCheckoutCompletion",
911
+ packageName: PACKAGE_NAME,
912
+ url: resolveWixEcomCartV2CartServiceUrl({
913
+ protoPath: "/v2/carts/handle-async-checkout-completion",
914
+ data: payload,
915
+ host
916
+ }),
917
+ data: payload,
918
+ transformResponse: (payload2) => transformPaths(payload2, [
919
+ {
920
+ transformFn: transformRESTBytesToSDKBytes,
921
+ paths: [{ path: "body" }]
922
+ }
923
+ ])
924
+ };
925
+ return metadata;
926
+ }
927
+ return __handleAsyncCheckoutCompletion;
928
+ }
929
+
930
+ // src/ecom-v2-cart-cart-v-2.meta.ts
931
+ function createCart2() {
932
+ const payload = {};
933
+ const getRequestOptions = createCart(payload);
934
+ const getUrl = (context) => {
935
+ const { url } = getRequestOptions(context);
936
+ return url;
937
+ };
938
+ return {
939
+ getUrl,
940
+ httpMethod: "POST",
941
+ path: "/v2/carts",
942
+ pathParams: {},
943
+ __requestType: null,
944
+ __originalRequestType: null,
945
+ __responseType: null,
946
+ __originalResponseType: null
947
+ };
948
+ }
949
+ function getCart2() {
950
+ const payload = { cartId: ":cartId" };
951
+ const getRequestOptions = getCart(payload);
952
+ const getUrl = (context) => {
953
+ const { url } = getRequestOptions(context);
954
+ return url;
955
+ };
956
+ return {
957
+ getUrl,
958
+ httpMethod: "GET",
959
+ path: "/v2/carts/{cartId}",
960
+ pathParams: { cartId: "cartId" },
961
+ __requestType: null,
962
+ __originalRequestType: null,
963
+ __responseType: null,
964
+ __originalResponseType: null
965
+ };
966
+ }
967
+ function updateCart2() {
968
+ const payload = { cart: { id: ":cartId" } };
969
+ const getRequestOptions = updateCart(payload);
970
+ const getUrl = (context) => {
971
+ const { url } = getRequestOptions(context);
972
+ return url;
973
+ };
974
+ return {
975
+ getUrl,
976
+ httpMethod: "PATCH",
977
+ path: "/v2/carts/{cart.id}",
978
+ pathParams: { cartId: "cartId" },
979
+ __requestType: null,
980
+ __originalRequestType: null,
981
+ __responseType: null,
982
+ __originalResponseType: null
983
+ };
984
+ }
985
+ function deleteCart2() {
986
+ const payload = { cartId: ":cartId" };
987
+ const getRequestOptions = deleteCart(payload);
988
+ const getUrl = (context) => {
989
+ const { url } = getRequestOptions(context);
990
+ return url;
991
+ };
992
+ return {
993
+ getUrl,
994
+ httpMethod: "DELETE",
995
+ path: "/v2/carts/{cartId}",
996
+ pathParams: { cartId: "cartId" },
997
+ __requestType: null,
998
+ __originalRequestType: null,
999
+ __responseType: null,
1000
+ __originalResponseType: null
1001
+ };
1002
+ }
1003
+ function refreshCart2() {
1004
+ const payload = { cartId: ":cartId" };
1005
+ const getRequestOptions = refreshCart(payload);
1006
+ const getUrl = (context) => {
1007
+ const { url } = getRequestOptions(context);
1008
+ return url;
1009
+ };
1010
+ return {
1011
+ getUrl,
1012
+ httpMethod: "POST",
1013
+ path: "/v2/carts/{cartId}/refresh",
1014
+ pathParams: { cartId: "cartId" },
1015
+ __requestType: null,
1016
+ __originalRequestType: null,
1017
+ __responseType: null,
1018
+ __originalResponseType: null
1019
+ };
1020
+ }
1021
+ function calculateCart2() {
1022
+ const payload = { cartId: ":cartId" };
1023
+ const getRequestOptions = calculateCart(payload);
1024
+ const getUrl = (context) => {
1025
+ const { url } = getRequestOptions(context);
1026
+ return url;
1027
+ };
1028
+ return {
1029
+ getUrl,
1030
+ httpMethod: "POST",
1031
+ path: "/v2/carts/{cartId}/calculate",
1032
+ pathParams: { cartId: "cartId" },
1033
+ __requestType: null,
1034
+ __originalRequestType: null,
1035
+ __responseType: null,
1036
+ __originalResponseType: null
1037
+ };
1038
+ }
1039
+ function getCheckoutUrl2() {
1040
+ const payload = { cartId: ":cartId" };
1041
+ const getRequestOptions = getCheckoutUrl(payload);
1042
+ const getUrl = (context) => {
1043
+ const { url } = getRequestOptions(context);
1044
+ return url;
1045
+ };
1046
+ return {
1047
+ getUrl,
1048
+ httpMethod: "POST",
1049
+ path: "/v2/carts/{cartId}/get-checkout-url",
1050
+ pathParams: { cartId: "cartId" },
1051
+ __requestType: null,
1052
+ __originalRequestType: null,
1053
+ __responseType: null,
1054
+ __originalResponseType: null
1055
+ };
1056
+ }
1057
+ function completeCheckout2() {
1058
+ const payload = { cartId: ":cartId" };
1059
+ const getRequestOptions = completeCheckout(payload);
1060
+ const getUrl = (context) => {
1061
+ const { url } = getRequestOptions(context);
1062
+ return url;
1063
+ };
1064
+ return {
1065
+ getUrl,
1066
+ httpMethod: "POST",
1067
+ path: "/v2/carts/{cartId}/complete-checkout",
1068
+ pathParams: { cartId: "cartId" },
1069
+ __requestType: null,
1070
+ __originalRequestType: null,
1071
+ __responseType: null,
1072
+ __originalResponseType: null
1073
+ };
1074
+ }
1075
+ function addLineItems2() {
1076
+ const payload = { cartId: ":cartId" };
1077
+ const getRequestOptions = addLineItems(payload);
1078
+ const getUrl = (context) => {
1079
+ const { url } = getRequestOptions(context);
1080
+ return url;
1081
+ };
1082
+ return {
1083
+ getUrl,
1084
+ httpMethod: "POST",
1085
+ path: "/v2/carts/{cartId}/add-line-items",
1086
+ pathParams: { cartId: "cartId" },
1087
+ __requestType: null,
1088
+ __originalRequestType: null,
1089
+ __responseType: null,
1090
+ __originalResponseType: null
1091
+ };
1092
+ }
1093
+ function removeLineItems2() {
1094
+ const payload = { cartId: ":cartId" };
1095
+ const getRequestOptions = removeLineItems(payload);
1096
+ const getUrl = (context) => {
1097
+ const { url } = getRequestOptions(context);
1098
+ return url;
1099
+ };
1100
+ return {
1101
+ getUrl,
1102
+ httpMethod: "POST",
1103
+ path: "/v2/carts/{cartId}/remove-line-items",
1104
+ pathParams: { cartId: "cartId" },
1105
+ __requestType: null,
1106
+ __originalRequestType: null,
1107
+ __responseType: null,
1108
+ __originalResponseType: null
1109
+ };
1110
+ }
1111
+ function addDiscount2() {
1112
+ const payload = { cartId: ":cartId" };
1113
+ const getRequestOptions = addDiscount(payload);
1114
+ const getUrl = (context) => {
1115
+ const { url } = getRequestOptions(context);
1116
+ return url;
1117
+ };
1118
+ return {
1119
+ getUrl,
1120
+ httpMethod: "POST",
1121
+ path: "/v2/carts/{cartId}/add-discount",
1122
+ pathParams: { cartId: "cartId" },
1123
+ __requestType: null,
1124
+ __originalRequestType: null,
1125
+ __responseType: null,
1126
+ __originalResponseType: null
1127
+ };
1128
+ }
1129
+ function removeDiscount2() {
1130
+ const payload = { cartId: ":cartId" };
1131
+ const getRequestOptions = removeDiscount(payload);
1132
+ const getUrl = (context) => {
1133
+ const { url } = getRequestOptions(context);
1134
+ return url;
1135
+ };
1136
+ return {
1137
+ getUrl,
1138
+ httpMethod: "POST",
1139
+ path: "/v2/carts/{cartId}/remove-discount",
1140
+ pathParams: { cartId: "cartId" },
1141
+ __requestType: null,
1142
+ __originalRequestType: null,
1143
+ __responseType: null,
1144
+ __originalResponseType: null
1145
+ };
1146
+ }
1147
+ function addGiftCard2() {
1148
+ const payload = { cartId: ":cartId" };
1149
+ const getRequestOptions = addGiftCard(payload);
1150
+ const getUrl = (context) => {
1151
+ const { url } = getRequestOptions(context);
1152
+ return url;
1153
+ };
1154
+ return {
1155
+ getUrl,
1156
+ httpMethod: "POST",
1157
+ path: "/v2/carts/{cartId}/add-gift-card",
1158
+ pathParams: { cartId: "cartId" },
1159
+ __requestType: null,
1160
+ __originalRequestType: null,
1161
+ __responseType: null,
1162
+ __originalResponseType: null
1163
+ };
1164
+ }
1165
+ function removeGiftCard2() {
1166
+ const payload = { cartId: ":cartId" };
1167
+ const getRequestOptions = removeGiftCard(payload);
1168
+ const getUrl = (context) => {
1169
+ const { url } = getRequestOptions(context);
1170
+ return url;
1171
+ };
1172
+ return {
1173
+ getUrl,
1174
+ httpMethod: "POST",
1175
+ path: "/v2/carts/{cartId}/remove-gift-card",
1176
+ pathParams: { cartId: "cartId" },
1177
+ __requestType: null,
1178
+ __originalRequestType: null,
1179
+ __responseType: null,
1180
+ __originalResponseType: null
1181
+ };
1182
+ }
1183
+ function updateLineItems2() {
1184
+ const payload = { cartId: ":cartId" };
1185
+ const getRequestOptions = updateLineItems(payload);
1186
+ const getUrl = (context) => {
1187
+ const { url } = getRequestOptions(context);
1188
+ return url;
1189
+ };
1190
+ return {
1191
+ getUrl,
1192
+ httpMethod: "POST",
1193
+ path: "/v2/carts/{cartId}/update-line-items",
1194
+ pathParams: { cartId: "cartId" },
1195
+ __requestType: null,
1196
+ __originalRequestType: null,
1197
+ __responseType: null,
1198
+ __originalResponseType: null
1199
+ };
1200
+ }
1201
+ function markCartAsCompleted2() {
1202
+ const payload = { cartId: ":cartId" };
1203
+ const getRequestOptions = markCartAsCompleted(payload);
1204
+ const getUrl = (context) => {
1205
+ const { url } = getRequestOptions(context);
1206
+ return url;
1207
+ };
1208
+ return {
1209
+ getUrl,
1210
+ httpMethod: "POST",
1211
+ path: "/v2/carts/{cartId}/mark-cart-as-completed",
1212
+ pathParams: { cartId: "cartId" },
1213
+ __requestType: null,
1214
+ __originalRequestType: null,
1215
+ __responseType: null,
1216
+ __originalResponseType: null
1217
+ };
1218
+ }
1219
+ function handleAsyncCheckoutCompletion2() {
1220
+ const payload = {};
1221
+ const getRequestOptions = handleAsyncCheckoutCompletion(payload);
1222
+ const getUrl = (context) => {
1223
+ const { url } = getRequestOptions(context);
1224
+ return url;
1225
+ };
1226
+ return {
1227
+ getUrl,
1228
+ httpMethod: "POST",
1229
+ path: "/v2/carts/handle-async-checkout-completion",
1230
+ pathParams: {},
1231
+ __requestType: null,
1232
+ __originalRequestType: null,
1233
+ __responseType: null,
1234
+ __originalResponseType: null
1235
+ };
1236
+ }
1237
+ export {
1238
+ addDiscount2 as addDiscount,
1239
+ addGiftCard2 as addGiftCard,
1240
+ addLineItems2 as addLineItems,
1241
+ calculateCart2 as calculateCart,
1242
+ completeCheckout2 as completeCheckout,
1243
+ createCart2 as createCart,
1244
+ deleteCart2 as deleteCart,
1245
+ getCart2 as getCart,
1246
+ getCheckoutUrl2 as getCheckoutUrl,
1247
+ handleAsyncCheckoutCompletion2 as handleAsyncCheckoutCompletion,
1248
+ markCartAsCompleted2 as markCartAsCompleted,
1249
+ refreshCart2 as refreshCart,
1250
+ removeDiscount2 as removeDiscount,
1251
+ removeGiftCard2 as removeGiftCard,
1252
+ removeLineItems2 as removeLineItems,
1253
+ updateCart2 as updateCart,
1254
+ updateLineItems2 as updateLineItems
1255
+ };
1256
+ //# sourceMappingURL=meta.mjs.map