@wix/auto_sdk_ecom_cart 1.0.13 → 1.0.14

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 (134) hide show
  1. package/build/{cjs/src/ecom-v1-cart-cart.types.d.ts → ecom-v1-cart-cart.universal-BIIZxJYL.d.mts} +504 -269
  2. package/build/{internal/cjs/src/ecom-v1-cart-cart.types.d.ts → ecom-v1-cart-cart.universal-BIIZxJYL.d.ts} +504 -269
  3. package/build/index.d.mts +149 -0
  4. package/build/index.d.ts +149 -0
  5. package/build/index.js +1938 -0
  6. package/build/index.js.map +1 -0
  7. package/build/index.mjs +1875 -0
  8. package/build/index.mjs.map +1 -0
  9. package/build/internal/{es/src/ecom-v1-cart-cart.types.d.ts → ecom-v1-cart-cart.universal-CJdmyIWv.d.mts} +668 -269
  10. package/build/{es/src/ecom-v1-cart-cart.types.d.ts → internal/ecom-v1-cart-cart.universal-CJdmyIWv.d.ts} +668 -269
  11. package/build/internal/index.d.mts +160 -0
  12. package/build/internal/index.d.ts +160 -0
  13. package/build/internal/index.js +1938 -0
  14. package/build/internal/index.js.map +1 -0
  15. package/build/internal/index.mjs +1875 -0
  16. package/build/internal/index.mjs.map +1 -0
  17. package/build/internal/meta.d.mts +2050 -0
  18. package/build/internal/meta.d.ts +2050 -0
  19. package/build/internal/meta.js +1027 -0
  20. package/build/internal/meta.js.map +1 -0
  21. package/build/internal/meta.mjs +989 -0
  22. package/build/internal/meta.mjs.map +1 -0
  23. package/build/meta.d.mts +2050 -0
  24. package/build/meta.d.ts +2050 -0
  25. package/build/meta.js +1027 -0
  26. package/build/meta.js.map +1 -0
  27. package/build/meta.mjs +989 -0
  28. package/build/meta.mjs.map +1 -0
  29. package/package.json +13 -12
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/ecom-v1-cart-cart.context.d.ts +0 -29
  40. package/build/cjs/src/ecom-v1-cart-cart.context.js +0 -59
  41. package/build/cjs/src/ecom-v1-cart-cart.context.js.map +0 -1
  42. package/build/cjs/src/ecom-v1-cart-cart.http.d.ts +0 -60
  43. package/build/cjs/src/ecom-v1-cart-cart.http.js +0 -818
  44. package/build/cjs/src/ecom-v1-cart-cart.http.js.map +0 -1
  45. package/build/cjs/src/ecom-v1-cart-cart.meta.d.ts +0 -46
  46. package/build/cjs/src/ecom-v1-cart-cart.meta.js +0 -256
  47. package/build/cjs/src/ecom-v1-cart-cart.meta.js.map +0 -1
  48. package/build/cjs/src/ecom-v1-cart-cart.public.d.ts +0 -129
  49. package/build/cjs/src/ecom-v1-cart-cart.public.js +0 -227
  50. package/build/cjs/src/ecom-v1-cart-cart.public.js.map +0 -1
  51. package/build/cjs/src/ecom-v1-cart-cart.types.js +0 -255
  52. package/build/cjs/src/ecom-v1-cart-cart.types.js.map +0 -1
  53. package/build/cjs/src/ecom-v1-cart-cart.universal.d.ts +0 -3263
  54. package/build/cjs/src/ecom-v1-cart-cart.universal.js +0 -1192
  55. package/build/cjs/src/ecom-v1-cart-cart.universal.js.map +0 -1
  56. package/build/es/index.d.ts +0 -1
  57. package/build/es/index.js +0 -2
  58. package/build/es/index.js.map +0 -1
  59. package/build/es/index.typings.d.ts +0 -1
  60. package/build/es/index.typings.js +0 -2
  61. package/build/es/index.typings.js.map +0 -1
  62. package/build/es/meta.d.ts +0 -1
  63. package/build/es/meta.js +0 -2
  64. package/build/es/meta.js.map +0 -1
  65. package/build/es/package.json +0 -3
  66. package/build/es/src/ecom-v1-cart-cart.context.d.ts +0 -29
  67. package/build/es/src/ecom-v1-cart-cart.context.js +0 -31
  68. package/build/es/src/ecom-v1-cart-cart.context.js.map +0 -1
  69. package/build/es/src/ecom-v1-cart-cart.http.d.ts +0 -60
  70. package/build/es/src/ecom-v1-cart-cart.http.js +0 -803
  71. package/build/es/src/ecom-v1-cart-cart.http.js.map +0 -1
  72. package/build/es/src/ecom-v1-cart-cart.meta.d.ts +0 -46
  73. package/build/es/src/ecom-v1-cart-cart.meta.js +0 -218
  74. package/build/es/src/ecom-v1-cart-cart.meta.js.map +0 -1
  75. package/build/es/src/ecom-v1-cart-cart.public.d.ts +0 -129
  76. package/build/es/src/ecom-v1-cart-cart.public.js +0 -187
  77. package/build/es/src/ecom-v1-cart-cart.public.js.map +0 -1
  78. package/build/es/src/ecom-v1-cart-cart.types.js +0 -252
  79. package/build/es/src/ecom-v1-cart-cart.types.js.map +0 -1
  80. package/build/es/src/ecom-v1-cart-cart.universal.d.ts +0 -3263
  81. package/build/es/src/ecom-v1-cart-cart.universal.js +0 -1154
  82. package/build/es/src/ecom-v1-cart-cart.universal.js.map +0 -1
  83. package/build/internal/cjs/index.d.ts +0 -1
  84. package/build/internal/cjs/index.js +0 -18
  85. package/build/internal/cjs/index.js.map +0 -1
  86. package/build/internal/cjs/index.typings.d.ts +0 -1
  87. package/build/internal/cjs/index.typings.js +0 -18
  88. package/build/internal/cjs/index.typings.js.map +0 -1
  89. package/build/internal/cjs/meta.d.ts +0 -1
  90. package/build/internal/cjs/meta.js +0 -18
  91. package/build/internal/cjs/meta.js.map +0 -1
  92. package/build/internal/cjs/src/ecom-v1-cart-cart.context.d.ts +0 -31
  93. package/build/internal/cjs/src/ecom-v1-cart-cart.context.js +0 -59
  94. package/build/internal/cjs/src/ecom-v1-cart-cart.context.js.map +0 -1
  95. package/build/internal/cjs/src/ecom-v1-cart-cart.http.d.ts +0 -60
  96. package/build/internal/cjs/src/ecom-v1-cart-cart.http.js +0 -818
  97. package/build/internal/cjs/src/ecom-v1-cart-cart.http.js.map +0 -1
  98. package/build/internal/cjs/src/ecom-v1-cart-cart.meta.d.ts +0 -46
  99. package/build/internal/cjs/src/ecom-v1-cart-cart.meta.js +0 -256
  100. package/build/internal/cjs/src/ecom-v1-cart-cart.meta.js.map +0 -1
  101. package/build/internal/cjs/src/ecom-v1-cart-cart.public.d.ts +0 -138
  102. package/build/internal/cjs/src/ecom-v1-cart-cart.public.js +0 -227
  103. package/build/internal/cjs/src/ecom-v1-cart-cart.public.js.map +0 -1
  104. package/build/internal/cjs/src/ecom-v1-cart-cart.types.js +0 -255
  105. package/build/internal/cjs/src/ecom-v1-cart-cart.types.js.map +0 -1
  106. package/build/internal/cjs/src/ecom-v1-cart-cart.universal.d.ts +0 -3457
  107. package/build/internal/cjs/src/ecom-v1-cart-cart.universal.js +0 -1192
  108. package/build/internal/cjs/src/ecom-v1-cart-cart.universal.js.map +0 -1
  109. package/build/internal/es/index.d.ts +0 -1
  110. package/build/internal/es/index.js +0 -2
  111. package/build/internal/es/index.js.map +0 -1
  112. package/build/internal/es/index.typings.d.ts +0 -1
  113. package/build/internal/es/index.typings.js +0 -2
  114. package/build/internal/es/index.typings.js.map +0 -1
  115. package/build/internal/es/meta.d.ts +0 -1
  116. package/build/internal/es/meta.js +0 -2
  117. package/build/internal/es/meta.js.map +0 -1
  118. package/build/internal/es/src/ecom-v1-cart-cart.context.d.ts +0 -31
  119. package/build/internal/es/src/ecom-v1-cart-cart.context.js +0 -31
  120. package/build/internal/es/src/ecom-v1-cart-cart.context.js.map +0 -1
  121. package/build/internal/es/src/ecom-v1-cart-cart.http.d.ts +0 -60
  122. package/build/internal/es/src/ecom-v1-cart-cart.http.js +0 -803
  123. package/build/internal/es/src/ecom-v1-cart-cart.http.js.map +0 -1
  124. package/build/internal/es/src/ecom-v1-cart-cart.meta.d.ts +0 -46
  125. package/build/internal/es/src/ecom-v1-cart-cart.meta.js +0 -218
  126. package/build/internal/es/src/ecom-v1-cart-cart.meta.js.map +0 -1
  127. package/build/internal/es/src/ecom-v1-cart-cart.public.d.ts +0 -138
  128. package/build/internal/es/src/ecom-v1-cart-cart.public.js +0 -187
  129. package/build/internal/es/src/ecom-v1-cart-cart.public.js.map +0 -1
  130. package/build/internal/es/src/ecom-v1-cart-cart.types.js +0 -252
  131. package/build/internal/es/src/ecom-v1-cart-cart.types.js.map +0 -1
  132. package/build/internal/es/src/ecom-v1-cart-cart.universal.d.ts +0 -3457
  133. package/build/internal/es/src/ecom-v1-cart-cart.universal.js +0 -1154
  134. package/build/internal/es/src/ecom-v1-cart-cart.universal.js.map +0 -1
package/build/meta.js ADDED
@@ -0,0 +1,1027 @@
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
+ addToCart: () => addToCart2,
24
+ createCart: () => createCart2,
25
+ createCheckout: () => createCheckout2,
26
+ deleteCart: () => deleteCart2,
27
+ estimateTotals: () => estimateTotals2,
28
+ getCart: () => getCart2,
29
+ getCartByCheckoutId: () => getCartByCheckoutId2,
30
+ removeBusinessLocation: () => removeBusinessLocation2,
31
+ removeCoupon: () => removeCoupon2,
32
+ removeLineItems: () => removeLineItems2,
33
+ updateCart: () => updateCart2,
34
+ updateLineItemsQuantity: () => updateLineItemsQuantity2
35
+ });
36
+ module.exports = __toCommonJS(meta_exports);
37
+
38
+ // src/ecom-v1-cart-cart.http.ts
39
+ var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
40
+ var import_float = require("@wix/sdk-runtime/transformations/float");
41
+ var import_float2 = require("@wix/sdk-runtime/transformations/float");
42
+ var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
43
+ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
44
+ var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
45
+ var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
46
+ var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
47
+ function resolveComWixEcomCartApiV1CartServiceUrl(opts) {
48
+ const domainToMappings = {
49
+ "api._api_base_domain_": [
50
+ {
51
+ srcPath: "/cart",
52
+ destPath: ""
53
+ }
54
+ ],
55
+ "www.wixapis.com": [
56
+ {
57
+ srcPath: "/ecom/v1/carts",
58
+ destPath: "/v1/carts"
59
+ }
60
+ ],
61
+ "www.wixgateway.com": [
62
+ {
63
+ srcPath: "/ecom/v1/carts",
64
+ destPath: "/v1/carts"
65
+ }
66
+ ],
67
+ _: [
68
+ {
69
+ srcPath: "/_api/ecom-cart",
70
+ destPath: ""
71
+ },
72
+ {
73
+ srcPath: "/_api/cart",
74
+ destPath: ""
75
+ },
76
+ {
77
+ srcPath: "/ecom/v1/carts",
78
+ destPath: "/v1/carts"
79
+ }
80
+ ],
81
+ "manage._base_domain_": [
82
+ {
83
+ srcPath: "/ecom/v1/carts",
84
+ destPath: "/v1/carts"
85
+ }
86
+ ],
87
+ "editor._base_domain_": [
88
+ {
89
+ srcPath: "/_api/ecom-cart",
90
+ destPath: ""
91
+ }
92
+ ],
93
+ "blocks._base_domain_": [
94
+ {
95
+ srcPath: "/_api/ecom-cart",
96
+ destPath: ""
97
+ }
98
+ ],
99
+ "create.editorx": [
100
+ {
101
+ srcPath: "/_api/ecom-cart",
102
+ destPath: ""
103
+ }
104
+ ],
105
+ "*.dev.wix-code.com": [
106
+ {
107
+ srcPath: "/_api/ecom-cart",
108
+ destPath: ""
109
+ }
110
+ ],
111
+ "www._base_domain_": [
112
+ {
113
+ srcPath: "/_api/ecom-cart",
114
+ destPath: ""
115
+ }
116
+ ],
117
+ "bo._base_domain_": [
118
+ {
119
+ srcPath: "/ecom/v1/carts",
120
+ destPath: "/v1/carts"
121
+ }
122
+ ],
123
+ "wixbo.ai": [
124
+ {
125
+ srcPath: "/ecom/v1/carts",
126
+ destPath: "/v1/carts"
127
+ }
128
+ ],
129
+ "wix-bo.com": [
130
+ {
131
+ srcPath: "/ecom/v1/carts",
132
+ destPath: "/v1/carts"
133
+ }
134
+ ],
135
+ "editor.wixapps.net": [
136
+ {
137
+ srcPath: "/_api/ecom-cart",
138
+ destPath: ""
139
+ }
140
+ ]
141
+ };
142
+ return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
143
+ }
144
+ var PACKAGE_NAME = "@wix/auto_sdk_ecom_cart";
145
+ function createCart(payload) {
146
+ function __createCart({ host }) {
147
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
148
+ {
149
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
150
+ paths: [
151
+ { path: "cartInfo.createdDate" },
152
+ { path: "cartInfo.updatedDate" },
153
+ { path: "cartInfo.lineItems.image.urlExpirationDate" },
154
+ {
155
+ path: "cartInfo.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
156
+ },
157
+ { path: "cartInfo.lineItems.serviceProperties.scheduledDate" },
158
+ { path: "lineItems.image.urlExpirationDate" },
159
+ {
160
+ path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
161
+ },
162
+ { path: "lineItems.serviceProperties.scheduledDate" },
163
+ {
164
+ path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
165
+ },
166
+ { path: "customLineItems.serviceProperties.scheduledDate" }
167
+ ]
168
+ },
169
+ {
170
+ transformFn: import_float.transformSDKFloatToRESTFloat,
171
+ paths: [
172
+ { path: "cartInfo.lineItems.image.focalPoint.x" },
173
+ { path: "cartInfo.lineItems.image.focalPoint.y" },
174
+ { path: "lineItems.image.focalPoint.x" },
175
+ { path: "lineItems.image.focalPoint.y" },
176
+ { path: "cartInfo.lineItems.physicalProperties.weight" },
177
+ {
178
+ path: "cartInfo.lineItems.catalogOverrideFields.physicalProperties.weight"
179
+ },
180
+ { path: "cartInfo.contactInfo.address.geocode.latitude" },
181
+ { path: "cartInfo.contactInfo.address.geocode.longitude" },
182
+ { path: "lineItems.physicalProperties.weight" },
183
+ { path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
184
+ { path: "customLineItems.physicalProperties.weight" }
185
+ ]
186
+ }
187
+ ]);
188
+ const metadata = {
189
+ entityFqdn: "wix.ecom.v1.cart",
190
+ method: "POST",
191
+ methodFqn: "com.wix.ecom.cart.api.v1.CartService.CreateCart",
192
+ packageName: PACKAGE_NAME,
193
+ url: resolveComWixEcomCartApiV1CartServiceUrl({
194
+ protoPath: "/v1/carts",
195
+ data: serializedData,
196
+ host
197
+ }),
198
+ data: serializedData,
199
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
200
+ {
201
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
202
+ paths: [
203
+ { path: "cart.createdDate" },
204
+ { path: "cart.updatedDate" },
205
+ { path: "cart.lineItems.image.urlExpirationDate" },
206
+ {
207
+ path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
208
+ },
209
+ { path: "cart.lineItems.serviceProperties.scheduledDate" }
210
+ ]
211
+ },
212
+ {
213
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
214
+ paths: [
215
+ { path: "cart.lineItems.image.focalPoint.x" },
216
+ { path: "cart.lineItems.image.focalPoint.y" },
217
+ { path: "cart.lineItems.physicalProperties.weight" },
218
+ {
219
+ path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
220
+ },
221
+ { path: "cart.contactInfo.address.geocode.latitude" },
222
+ { path: "cart.contactInfo.address.geocode.longitude" }
223
+ ]
224
+ }
225
+ ])
226
+ };
227
+ return metadata;
228
+ }
229
+ return __createCart;
230
+ }
231
+ function updateCart(payload) {
232
+ function __updateCart({ host }) {
233
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
234
+ {
235
+ transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
236
+ paths: [{ path: "cartFieldmask" }]
237
+ },
238
+ {
239
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
240
+ paths: [
241
+ { path: "cartInfo.createdDate" },
242
+ { path: "cartInfo.updatedDate" },
243
+ { path: "cartInfo.lineItems.image.urlExpirationDate" },
244
+ {
245
+ path: "cartInfo.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
246
+ },
247
+ { path: "cartInfo.lineItems.serviceProperties.scheduledDate" },
248
+ { path: "lineItems.image.urlExpirationDate" },
249
+ {
250
+ path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
251
+ },
252
+ { path: "lineItems.serviceProperties.scheduledDate" },
253
+ {
254
+ path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
255
+ },
256
+ { path: "customLineItems.serviceProperties.scheduledDate" }
257
+ ]
258
+ },
259
+ {
260
+ transformFn: import_float.transformSDKFloatToRESTFloat,
261
+ paths: [
262
+ { path: "cartInfo.lineItems.image.focalPoint.x" },
263
+ { path: "cartInfo.lineItems.image.focalPoint.y" },
264
+ { path: "lineItems.image.focalPoint.x" },
265
+ { path: "lineItems.image.focalPoint.y" },
266
+ { path: "cartInfo.lineItems.physicalProperties.weight" },
267
+ {
268
+ path: "cartInfo.lineItems.catalogOverrideFields.physicalProperties.weight"
269
+ },
270
+ { path: "cartInfo.contactInfo.address.geocode.latitude" },
271
+ { path: "cartInfo.contactInfo.address.geocode.longitude" },
272
+ { path: "lineItems.physicalProperties.weight" },
273
+ { path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
274
+ { path: "customLineItems.physicalProperties.weight" }
275
+ ]
276
+ }
277
+ ]);
278
+ const metadata = {
279
+ entityFqdn: "wix.ecom.v1.cart",
280
+ method: "PATCH",
281
+ methodFqn: "com.wix.ecom.cart.api.v1.CartService.UpdateCart",
282
+ packageName: PACKAGE_NAME,
283
+ url: resolveComWixEcomCartApiV1CartServiceUrl({
284
+ protoPath: "/v1/carts/{cartInfo.id}",
285
+ data: serializedData,
286
+ host
287
+ }),
288
+ data: serializedData,
289
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
290
+ {
291
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
292
+ paths: [
293
+ { path: "cart.createdDate" },
294
+ { path: "cart.updatedDate" },
295
+ { path: "cart.lineItems.image.urlExpirationDate" },
296
+ {
297
+ path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
298
+ },
299
+ { path: "cart.lineItems.serviceProperties.scheduledDate" }
300
+ ]
301
+ },
302
+ {
303
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
304
+ paths: [
305
+ { path: "cart.lineItems.image.focalPoint.x" },
306
+ { path: "cart.lineItems.image.focalPoint.y" },
307
+ { path: "cart.lineItems.physicalProperties.weight" },
308
+ {
309
+ path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
310
+ },
311
+ { path: "cart.contactInfo.address.geocode.latitude" },
312
+ { path: "cart.contactInfo.address.geocode.longitude" }
313
+ ]
314
+ }
315
+ ])
316
+ };
317
+ return metadata;
318
+ }
319
+ return __updateCart;
320
+ }
321
+ function getCart(payload) {
322
+ function __getCart({ host }) {
323
+ const metadata = {
324
+ entityFqdn: "wix.ecom.v1.cart",
325
+ method: "GET",
326
+ methodFqn: "com.wix.ecom.cart.api.v1.CartService.GetCart",
327
+ packageName: PACKAGE_NAME,
328
+ url: resolveComWixEcomCartApiV1CartServiceUrl({
329
+ protoPath: "/v1/carts/{id}",
330
+ data: payload,
331
+ host
332
+ }),
333
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
334
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
335
+ {
336
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
337
+ paths: [
338
+ { path: "cart.createdDate" },
339
+ { path: "cart.updatedDate" },
340
+ { path: "cart.lineItems.image.urlExpirationDate" },
341
+ {
342
+ path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
343
+ },
344
+ { path: "cart.lineItems.serviceProperties.scheduledDate" }
345
+ ]
346
+ },
347
+ {
348
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
349
+ paths: [
350
+ { path: "cart.lineItems.image.focalPoint.x" },
351
+ { path: "cart.lineItems.image.focalPoint.y" },
352
+ { path: "cart.lineItems.physicalProperties.weight" },
353
+ {
354
+ path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
355
+ },
356
+ { path: "cart.contactInfo.address.geocode.latitude" },
357
+ { path: "cart.contactInfo.address.geocode.longitude" }
358
+ ]
359
+ }
360
+ ])
361
+ };
362
+ return metadata;
363
+ }
364
+ return __getCart;
365
+ }
366
+ function getCartByCheckoutId(payload) {
367
+ function __getCartByCheckoutId({ host }) {
368
+ const metadata = {
369
+ entityFqdn: "wix.ecom.v1.cart",
370
+ method: "GET",
371
+ methodFqn: "com.wix.ecom.cart.api.v1.CartService.GetCartByCheckoutId",
372
+ packageName: PACKAGE_NAME,
373
+ url: resolveComWixEcomCartApiV1CartServiceUrl({
374
+ protoPath: "/v1/carts/by-checkout-id/{id}",
375
+ data: payload,
376
+ host
377
+ }),
378
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
379
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
380
+ {
381
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
382
+ paths: [
383
+ { path: "cart.createdDate" },
384
+ { path: "cart.updatedDate" },
385
+ { path: "cart.lineItems.image.urlExpirationDate" },
386
+ {
387
+ path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
388
+ },
389
+ { path: "cart.lineItems.serviceProperties.scheduledDate" }
390
+ ]
391
+ },
392
+ {
393
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
394
+ paths: [
395
+ { path: "cart.lineItems.image.focalPoint.x" },
396
+ { path: "cart.lineItems.image.focalPoint.y" },
397
+ { path: "cart.lineItems.physicalProperties.weight" },
398
+ {
399
+ path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
400
+ },
401
+ { path: "cart.contactInfo.address.geocode.latitude" },
402
+ { path: "cart.contactInfo.address.geocode.longitude" }
403
+ ]
404
+ }
405
+ ])
406
+ };
407
+ return metadata;
408
+ }
409
+ return __getCartByCheckoutId;
410
+ }
411
+ function addToCart(payload) {
412
+ function __addToCart({ host }) {
413
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
414
+ {
415
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
416
+ paths: [
417
+ { path: "lineItems.image.urlExpirationDate" },
418
+ {
419
+ path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
420
+ },
421
+ { path: "lineItems.serviceProperties.scheduledDate" },
422
+ {
423
+ path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
424
+ },
425
+ { path: "customLineItems.serviceProperties.scheduledDate" }
426
+ ]
427
+ },
428
+ {
429
+ transformFn: import_float.transformSDKFloatToRESTFloat,
430
+ paths: [
431
+ { path: "lineItems.image.focalPoint.x" },
432
+ { path: "lineItems.image.focalPoint.y" },
433
+ { path: "lineItems.physicalProperties.weight" },
434
+ { path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
435
+ { path: "customLineItems.physicalProperties.weight" }
436
+ ]
437
+ }
438
+ ]);
439
+ const metadata = {
440
+ entityFqdn: "wix.ecom.v1.cart",
441
+ method: "POST",
442
+ methodFqn: "com.wix.ecom.cart.api.v1.CartService.AddToCart",
443
+ packageName: PACKAGE_NAME,
444
+ url: resolveComWixEcomCartApiV1CartServiceUrl({
445
+ protoPath: "/v1/carts/{id}/add-to-cart",
446
+ data: serializedData,
447
+ host
448
+ }),
449
+ data: serializedData,
450
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
451
+ {
452
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
453
+ paths: [
454
+ { path: "cart.createdDate" },
455
+ { path: "cart.updatedDate" },
456
+ { path: "cart.lineItems.image.urlExpirationDate" },
457
+ {
458
+ path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
459
+ },
460
+ { path: "cart.lineItems.serviceProperties.scheduledDate" }
461
+ ]
462
+ },
463
+ {
464
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
465
+ paths: [
466
+ { path: "cart.lineItems.image.focalPoint.x" },
467
+ { path: "cart.lineItems.image.focalPoint.y" },
468
+ { path: "cart.lineItems.physicalProperties.weight" },
469
+ {
470
+ path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
471
+ },
472
+ { path: "cart.contactInfo.address.geocode.latitude" },
473
+ { path: "cart.contactInfo.address.geocode.longitude" }
474
+ ]
475
+ }
476
+ ])
477
+ };
478
+ return metadata;
479
+ }
480
+ return __addToCart;
481
+ }
482
+ function removeLineItems(payload) {
483
+ function __removeLineItems({ host }) {
484
+ const metadata = {
485
+ entityFqdn: "wix.ecom.v1.cart",
486
+ method: "POST",
487
+ methodFqn: "com.wix.ecom.cart.api.v1.CartService.RemoveLineItems",
488
+ packageName: PACKAGE_NAME,
489
+ url: resolveComWixEcomCartApiV1CartServiceUrl({
490
+ protoPath: "/v1/carts/{id}/remove-line-items",
491
+ data: payload,
492
+ host
493
+ }),
494
+ data: payload,
495
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
496
+ {
497
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
498
+ paths: [
499
+ { path: "cart.createdDate" },
500
+ { path: "cart.updatedDate" },
501
+ { path: "cart.lineItems.image.urlExpirationDate" },
502
+ {
503
+ path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
504
+ },
505
+ { path: "cart.lineItems.serviceProperties.scheduledDate" }
506
+ ]
507
+ },
508
+ {
509
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
510
+ paths: [
511
+ { path: "cart.lineItems.image.focalPoint.x" },
512
+ { path: "cart.lineItems.image.focalPoint.y" },
513
+ { path: "cart.lineItems.physicalProperties.weight" },
514
+ {
515
+ path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
516
+ },
517
+ { path: "cart.contactInfo.address.geocode.latitude" },
518
+ { path: "cart.contactInfo.address.geocode.longitude" }
519
+ ]
520
+ }
521
+ ])
522
+ };
523
+ return metadata;
524
+ }
525
+ return __removeLineItems;
526
+ }
527
+ function createCheckout(payload) {
528
+ function __createCheckout({ host }) {
529
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
530
+ {
531
+ transformFn: import_float.transformSDKFloatToRESTFloat,
532
+ paths: [
533
+ { path: "shippingAddress.geocode.latitude" },
534
+ { path: "shippingAddress.geocode.longitude" },
535
+ { path: "billingAddress.geocode.latitude" },
536
+ { path: "billingAddress.geocode.longitude" }
537
+ ]
538
+ }
539
+ ]);
540
+ const metadata = {
541
+ entityFqdn: "wix.ecom.v1.cart",
542
+ method: "POST",
543
+ methodFqn: "com.wix.ecom.cart.api.v1.CartService.CreateCheckout",
544
+ packageName: PACKAGE_NAME,
545
+ url: resolveComWixEcomCartApiV1CartServiceUrl({
546
+ protoPath: "/v1/carts/{id}/create-checkout",
547
+ data: serializedData,
548
+ host
549
+ }),
550
+ data: serializedData
551
+ };
552
+ return metadata;
553
+ }
554
+ return __createCheckout;
555
+ }
556
+ function removeCoupon(payload) {
557
+ function __removeCoupon({ host }) {
558
+ const metadata = {
559
+ entityFqdn: "wix.ecom.v1.cart",
560
+ method: "POST",
561
+ methodFqn: "com.wix.ecom.cart.api.v1.CartService.RemoveCoupon",
562
+ packageName: PACKAGE_NAME,
563
+ url: resolveComWixEcomCartApiV1CartServiceUrl({
564
+ protoPath: "/v1/carts/{id}/remove-coupon",
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
+ ]
581
+ },
582
+ {
583
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
584
+ paths: [
585
+ { path: "cart.lineItems.image.focalPoint.x" },
586
+ { path: "cart.lineItems.image.focalPoint.y" },
587
+ { path: "cart.lineItems.physicalProperties.weight" },
588
+ {
589
+ path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
590
+ },
591
+ { path: "cart.contactInfo.address.geocode.latitude" },
592
+ { path: "cart.contactInfo.address.geocode.longitude" }
593
+ ]
594
+ }
595
+ ])
596
+ };
597
+ return metadata;
598
+ }
599
+ return __removeCoupon;
600
+ }
601
+ function updateLineItemsQuantity(payload) {
602
+ function __updateLineItemsQuantity({ host }) {
603
+ const metadata = {
604
+ entityFqdn: "wix.ecom.v1.cart",
605
+ method: "POST",
606
+ methodFqn: "com.wix.ecom.cart.api.v1.CartService.UpdateLineItemsQuantity",
607
+ packageName: PACKAGE_NAME,
608
+ url: resolveComWixEcomCartApiV1CartServiceUrl({
609
+ protoPath: "/v1/carts/{id}/update-line-items-quantity",
610
+ data: payload,
611
+ host
612
+ }),
613
+ data: payload,
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
+ ]
626
+ },
627
+ {
628
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
629
+ paths: [
630
+ { path: "cart.lineItems.image.focalPoint.x" },
631
+ { path: "cart.lineItems.image.focalPoint.y" },
632
+ { path: "cart.lineItems.physicalProperties.weight" },
633
+ {
634
+ path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
635
+ },
636
+ { path: "cart.contactInfo.address.geocode.latitude" },
637
+ { path: "cart.contactInfo.address.geocode.longitude" }
638
+ ]
639
+ }
640
+ ])
641
+ };
642
+ return metadata;
643
+ }
644
+ return __updateLineItemsQuantity;
645
+ }
646
+ function estimateTotals(payload) {
647
+ function __estimateTotals({ host }) {
648
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
649
+ {
650
+ transformFn: import_float.transformSDKFloatToRESTFloat,
651
+ paths: [
652
+ { path: "shippingAddress.geocode.latitude" },
653
+ { path: "shippingAddress.geocode.longitude" },
654
+ { path: "billingAddress.geocode.latitude" },
655
+ { path: "billingAddress.geocode.longitude" }
656
+ ]
657
+ }
658
+ ]);
659
+ const metadata = {
660
+ entityFqdn: "wix.ecom.v1.cart",
661
+ method: "POST",
662
+ methodFqn: "com.wix.ecom.cart.api.v1.CartService.EstimateTotals",
663
+ packageName: PACKAGE_NAME,
664
+ url: resolveComWixEcomCartApiV1CartServiceUrl({
665
+ protoPath: "/v1/carts/{id}/estimate-totals",
666
+ data: serializedData,
667
+ host
668
+ }),
669
+ data: serializedData,
670
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
671
+ {
672
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
673
+ paths: [
674
+ { path: "cart.createdDate" },
675
+ { path: "cart.updatedDate" },
676
+ { path: "cart.lineItems.image.urlExpirationDate" },
677
+ {
678
+ path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
679
+ },
680
+ { path: "cart.lineItems.serviceProperties.scheduledDate" },
681
+ {
682
+ path: "shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
683
+ },
684
+ {
685
+ path: "shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
686
+ },
687
+ {
688
+ path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
689
+ },
690
+ {
691
+ path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
692
+ },
693
+ { path: "membershipOptions.eligibleMemberships.expirationDate" },
694
+ {
695
+ path: "membershipOptions.invalidMemberships.membership.expirationDate"
696
+ }
697
+ ]
698
+ },
699
+ {
700
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
701
+ paths: [
702
+ { path: "cart.lineItems.image.focalPoint.x" },
703
+ { path: "cart.lineItems.image.focalPoint.y" },
704
+ { path: "cart.lineItems.physicalProperties.weight" },
705
+ {
706
+ path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
707
+ },
708
+ { path: "cart.contactInfo.address.geocode.latitude" },
709
+ { path: "cart.contactInfo.address.geocode.longitude" },
710
+ {
711
+ path: "shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
712
+ },
713
+ {
714
+ path: "shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
715
+ },
716
+ {
717
+ path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
718
+ },
719
+ {
720
+ path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
721
+ },
722
+ { path: "appliedDiscounts.merchantDiscount.percentage" }
723
+ ]
724
+ }
725
+ ])
726
+ };
727
+ return metadata;
728
+ }
729
+ return __estimateTotals;
730
+ }
731
+ function deleteCart(payload) {
732
+ function __deleteCart({ host }) {
733
+ const metadata = {
734
+ entityFqdn: "wix.ecom.v1.cart",
735
+ method: "DELETE",
736
+ methodFqn: "com.wix.ecom.cart.api.v1.CartService.DeleteCart",
737
+ packageName: PACKAGE_NAME,
738
+ url: resolveComWixEcomCartApiV1CartServiceUrl({
739
+ protoPath: "/v1/carts/{id}",
740
+ data: payload,
741
+ host
742
+ }),
743
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
744
+ };
745
+ return metadata;
746
+ }
747
+ return __deleteCart;
748
+ }
749
+ function removeBusinessLocation(payload) {
750
+ function __removeBusinessLocation({ host }) {
751
+ const metadata = {
752
+ entityFqdn: "wix.ecom.v1.cart",
753
+ method: "POST",
754
+ methodFqn: "com.wix.ecom.cart.api.v1.CartService.RemoveBusinessLocation",
755
+ packageName: PACKAGE_NAME,
756
+ url: resolveComWixEcomCartApiV1CartServiceUrl({
757
+ protoPath: "/v1/carts/{id}/remove-business-location",
758
+ data: payload,
759
+ host
760
+ }),
761
+ data: payload,
762
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
763
+ {
764
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
765
+ paths: [
766
+ { path: "cart.createdDate" },
767
+ { path: "cart.updatedDate" },
768
+ { path: "cart.lineItems.image.urlExpirationDate" },
769
+ {
770
+ path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
771
+ },
772
+ { path: "cart.lineItems.serviceProperties.scheduledDate" }
773
+ ]
774
+ },
775
+ {
776
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
777
+ paths: [
778
+ { path: "cart.lineItems.image.focalPoint.x" },
779
+ { path: "cart.lineItems.image.focalPoint.y" },
780
+ { path: "cart.lineItems.physicalProperties.weight" },
781
+ {
782
+ path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
783
+ },
784
+ { path: "cart.contactInfo.address.geocode.latitude" },
785
+ { path: "cart.contactInfo.address.geocode.longitude" }
786
+ ]
787
+ }
788
+ ])
789
+ };
790
+ return metadata;
791
+ }
792
+ return __removeBusinessLocation;
793
+ }
794
+
795
+ // src/ecom-v1-cart-cart.meta.ts
796
+ function createCart2() {
797
+ const payload = {};
798
+ const getRequestOptions = createCart(payload);
799
+ const getUrl = (context) => {
800
+ const { url } = getRequestOptions(context);
801
+ return url;
802
+ };
803
+ return {
804
+ getUrl,
805
+ httpMethod: "POST",
806
+ path: "/v1/carts",
807
+ pathParams: {},
808
+ __requestType: null,
809
+ __originalRequestType: null,
810
+ __responseType: null,
811
+ __originalResponseType: null
812
+ };
813
+ }
814
+ function updateCart2() {
815
+ const payload = { cartInfo: { id: ":cartInfoId" } };
816
+ const getRequestOptions = updateCart(payload);
817
+ const getUrl = (context) => {
818
+ const { url } = getRequestOptions(context);
819
+ return url;
820
+ };
821
+ return {
822
+ getUrl,
823
+ httpMethod: "PATCH",
824
+ path: "/v1/carts/{cartInfo.id}",
825
+ pathParams: { cartInfoId: "cartInfoId" },
826
+ __requestType: null,
827
+ __originalRequestType: null,
828
+ __responseType: null,
829
+ __originalResponseType: null
830
+ };
831
+ }
832
+ function getCart2() {
833
+ const payload = { id: ":id" };
834
+ const getRequestOptions = getCart(payload);
835
+ const getUrl = (context) => {
836
+ const { url } = getRequestOptions(context);
837
+ return url;
838
+ };
839
+ return {
840
+ getUrl,
841
+ httpMethod: "GET",
842
+ path: "/v1/carts/{id}",
843
+ pathParams: { id: "id" },
844
+ __requestType: null,
845
+ __originalRequestType: null,
846
+ __responseType: null,
847
+ __originalResponseType: null
848
+ };
849
+ }
850
+ function getCartByCheckoutId2() {
851
+ const payload = { id: ":id" };
852
+ const getRequestOptions = getCartByCheckoutId(payload);
853
+ const getUrl = (context) => {
854
+ const { url } = getRequestOptions(context);
855
+ return url;
856
+ };
857
+ return {
858
+ getUrl,
859
+ httpMethod: "GET",
860
+ path: "/v1/carts/by-checkout-id/{id}",
861
+ pathParams: { id: "id" },
862
+ __requestType: null,
863
+ __originalRequestType: null,
864
+ __responseType: null,
865
+ __originalResponseType: null
866
+ };
867
+ }
868
+ function addToCart2() {
869
+ const payload = { id: ":id" };
870
+ const getRequestOptions = addToCart(payload);
871
+ const getUrl = (context) => {
872
+ const { url } = getRequestOptions(context);
873
+ return url;
874
+ };
875
+ return {
876
+ getUrl,
877
+ httpMethod: "POST",
878
+ path: "/v1/carts/{id}/add-to-cart",
879
+ pathParams: { id: "id" },
880
+ __requestType: null,
881
+ __originalRequestType: null,
882
+ __responseType: null,
883
+ __originalResponseType: null
884
+ };
885
+ }
886
+ function removeLineItems2() {
887
+ const payload = { id: ":id" };
888
+ const getRequestOptions = removeLineItems(payload);
889
+ const getUrl = (context) => {
890
+ const { url } = getRequestOptions(context);
891
+ return url;
892
+ };
893
+ return {
894
+ getUrl,
895
+ httpMethod: "POST",
896
+ path: "/v1/carts/{id}/remove-line-items",
897
+ pathParams: { id: "id" },
898
+ __requestType: null,
899
+ __originalRequestType: null,
900
+ __responseType: null,
901
+ __originalResponseType: null
902
+ };
903
+ }
904
+ function createCheckout2() {
905
+ const payload = { id: ":id" };
906
+ const getRequestOptions = createCheckout(payload);
907
+ const getUrl = (context) => {
908
+ const { url } = getRequestOptions(context);
909
+ return url;
910
+ };
911
+ return {
912
+ getUrl,
913
+ httpMethod: "POST",
914
+ path: "/v1/carts/{id}/create-checkout",
915
+ pathParams: { id: "id" },
916
+ __requestType: null,
917
+ __originalRequestType: null,
918
+ __responseType: null,
919
+ __originalResponseType: null
920
+ };
921
+ }
922
+ function removeCoupon2() {
923
+ const payload = { id: ":id" };
924
+ const getRequestOptions = removeCoupon(payload);
925
+ const getUrl = (context) => {
926
+ const { url } = getRequestOptions(context);
927
+ return url;
928
+ };
929
+ return {
930
+ getUrl,
931
+ httpMethod: "POST",
932
+ path: "/v1/carts/{id}/remove-coupon",
933
+ pathParams: { id: "id" },
934
+ __requestType: null,
935
+ __originalRequestType: null,
936
+ __responseType: null,
937
+ __originalResponseType: null
938
+ };
939
+ }
940
+ function updateLineItemsQuantity2() {
941
+ const payload = { id: ":id" };
942
+ const getRequestOptions = updateLineItemsQuantity(payload);
943
+ const getUrl = (context) => {
944
+ const { url } = getRequestOptions(context);
945
+ return url;
946
+ };
947
+ return {
948
+ getUrl,
949
+ httpMethod: "POST",
950
+ path: "/v1/carts/{id}/update-line-items-quantity",
951
+ pathParams: { id: "id" },
952
+ __requestType: null,
953
+ __originalRequestType: null,
954
+ __responseType: null,
955
+ __originalResponseType: null
956
+ };
957
+ }
958
+ function estimateTotals2() {
959
+ const payload = { id: ":id" };
960
+ const getRequestOptions = estimateTotals(payload);
961
+ const getUrl = (context) => {
962
+ const { url } = getRequestOptions(context);
963
+ return url;
964
+ };
965
+ return {
966
+ getUrl,
967
+ httpMethod: "POST",
968
+ path: "/v1/carts/{id}/estimate-totals",
969
+ pathParams: { id: "id" },
970
+ __requestType: null,
971
+ __originalRequestType: null,
972
+ __responseType: null,
973
+ __originalResponseType: null
974
+ };
975
+ }
976
+ function deleteCart2() {
977
+ const payload = { id: ":id" };
978
+ const getRequestOptions = deleteCart(payload);
979
+ const getUrl = (context) => {
980
+ const { url } = getRequestOptions(context);
981
+ return url;
982
+ };
983
+ return {
984
+ getUrl,
985
+ httpMethod: "DELETE",
986
+ path: "/v1/carts/{id}",
987
+ pathParams: { id: "id" },
988
+ __requestType: null,
989
+ __originalRequestType: null,
990
+ __responseType: null,
991
+ __originalResponseType: null
992
+ };
993
+ }
994
+ function removeBusinessLocation2() {
995
+ const payload = { id: ":id" };
996
+ const getRequestOptions = removeBusinessLocation(payload);
997
+ const getUrl = (context) => {
998
+ const { url } = getRequestOptions(context);
999
+ return url;
1000
+ };
1001
+ return {
1002
+ getUrl,
1003
+ httpMethod: "POST",
1004
+ path: "/v1/carts/{id}/remove-business-location",
1005
+ pathParams: { id: "id" },
1006
+ __requestType: null,
1007
+ __originalRequestType: null,
1008
+ __responseType: null,
1009
+ __originalResponseType: null
1010
+ };
1011
+ }
1012
+ // Annotate the CommonJS export names for ESM import in node:
1013
+ 0 && (module.exports = {
1014
+ addToCart,
1015
+ createCart,
1016
+ createCheckout,
1017
+ deleteCart,
1018
+ estimateTotals,
1019
+ getCart,
1020
+ getCartByCheckoutId,
1021
+ removeBusinessLocation,
1022
+ removeCoupon,
1023
+ removeLineItems,
1024
+ updateCart,
1025
+ updateLineItemsQuantity
1026
+ });
1027
+ //# sourceMappingURL=meta.js.map