@wix/auto_sdk_ecom_current-cart 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 (111) hide show
  1. package/build/cjs/index.d.ts +1 -0
  2. package/build/cjs/index.js +18 -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 +18 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1 -0
  8. package/build/cjs/meta.js +18 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/src/ecom-v1-cart-current-cart.context.d.ts +27 -0
  11. package/build/cjs/src/ecom-v1-cart-current-cart.context.js +55 -0
  12. package/build/cjs/src/ecom-v1-cart-current-cart.context.js.map +1 -0
  13. package/build/cjs/src/ecom-v1-cart-current-cart.http.d.ts +77 -0
  14. package/build/cjs/src/ecom-v1-cart-current-cart.http.js +653 -0
  15. package/build/cjs/src/ecom-v1-cart-current-cart.http.js.map +1 -0
  16. package/build/cjs/src/ecom-v1-cart-current-cart.meta.d.ts +21 -0
  17. package/build/cjs/src/ecom-v1-cart-current-cart.meta.js +199 -0
  18. package/build/cjs/src/ecom-v1-cart-current-cart.meta.js.map +1 -0
  19. package/build/cjs/src/ecom-v1-cart-current-cart.public.d.ts +123 -0
  20. package/build/cjs/src/ecom-v1-cart-current-cart.public.js +208 -0
  21. package/build/cjs/src/ecom-v1-cart-current-cart.public.js.map +1 -0
  22. package/build/cjs/src/ecom-v1-cart-current-cart.types.d.ts +2497 -0
  23. package/build/cjs/src/ecom-v1-cart-current-cart.types.js +255 -0
  24. package/build/cjs/src/ecom-v1-cart-current-cart.types.js.map +1 -0
  25. package/build/cjs/src/ecom-v1-cart-current-cart.universal.d.ts +2813 -0
  26. package/build/cjs/src/ecom-v1-cart-current-cart.universal.js +895 -0
  27. package/build/cjs/src/ecom-v1-cart-current-cart.universal.js.map +1 -0
  28. package/build/es/index.d.ts +1 -0
  29. package/build/es/index.js +2 -0
  30. package/build/es/index.js.map +1 -0
  31. package/build/es/index.typings.d.ts +1 -0
  32. package/build/es/index.typings.js +2 -0
  33. package/build/es/index.typings.js.map +1 -0
  34. package/build/es/meta.d.ts +1 -0
  35. package/build/es/meta.js +2 -0
  36. package/build/es/meta.js.map +1 -0
  37. package/build/es/package.json +3 -0
  38. package/build/es/src/ecom-v1-cart-current-cart.context.d.ts +27 -0
  39. package/build/es/src/ecom-v1-cart-current-cart.context.js +27 -0
  40. package/build/es/src/ecom-v1-cart-current-cart.context.js.map +1 -0
  41. package/build/es/src/ecom-v1-cart-current-cart.http.d.ts +77 -0
  42. package/build/es/src/ecom-v1-cart-current-cart.http.js +641 -0
  43. package/build/es/src/ecom-v1-cart-current-cart.http.js.map +1 -0
  44. package/build/es/src/ecom-v1-cart-current-cart.meta.d.ts +21 -0
  45. package/build/es/src/ecom-v1-cart-current-cart.meta.js +164 -0
  46. package/build/es/src/ecom-v1-cart-current-cart.meta.js.map +1 -0
  47. package/build/es/src/ecom-v1-cart-current-cart.public.d.ts +123 -0
  48. package/build/es/src/ecom-v1-cart-current-cart.public.js +171 -0
  49. package/build/es/src/ecom-v1-cart-current-cart.public.js.map +1 -0
  50. package/build/es/src/ecom-v1-cart-current-cart.types.d.ts +2497 -0
  51. package/build/es/src/ecom-v1-cart-current-cart.types.js +252 -0
  52. package/build/es/src/ecom-v1-cart-current-cart.types.js.map +1 -0
  53. package/build/es/src/ecom-v1-cart-current-cart.universal.d.ts +2813 -0
  54. package/build/es/src/ecom-v1-cart-current-cart.universal.js +860 -0
  55. package/build/es/src/ecom-v1-cart-current-cart.universal.js.map +1 -0
  56. package/build/internal/cjs/index.d.ts +1 -0
  57. package/build/internal/cjs/index.js +18 -0
  58. package/build/internal/cjs/index.js.map +1 -0
  59. package/build/internal/cjs/index.typings.d.ts +1 -0
  60. package/build/internal/cjs/index.typings.js +18 -0
  61. package/build/internal/cjs/index.typings.js.map +1 -0
  62. package/build/internal/cjs/meta.d.ts +1 -0
  63. package/build/internal/cjs/meta.js +18 -0
  64. package/build/internal/cjs/meta.js.map +1 -0
  65. package/build/internal/cjs/src/ecom-v1-cart-current-cart.context.d.ts +27 -0
  66. package/build/internal/cjs/src/ecom-v1-cart-current-cart.context.js +55 -0
  67. package/build/internal/cjs/src/ecom-v1-cart-current-cart.context.js.map +1 -0
  68. package/build/internal/cjs/src/ecom-v1-cart-current-cart.http.d.ts +77 -0
  69. package/build/internal/cjs/src/ecom-v1-cart-current-cart.http.js +653 -0
  70. package/build/internal/cjs/src/ecom-v1-cart-current-cart.http.js.map +1 -0
  71. package/build/internal/cjs/src/ecom-v1-cart-current-cart.meta.d.ts +21 -0
  72. package/build/internal/cjs/src/ecom-v1-cart-current-cart.meta.js +199 -0
  73. package/build/internal/cjs/src/ecom-v1-cart-current-cart.meta.js.map +1 -0
  74. package/build/internal/cjs/src/ecom-v1-cart-current-cart.public.d.ts +123 -0
  75. package/build/internal/cjs/src/ecom-v1-cart-current-cart.public.js +208 -0
  76. package/build/internal/cjs/src/ecom-v1-cart-current-cart.public.js.map +1 -0
  77. package/build/internal/cjs/src/ecom-v1-cart-current-cart.types.d.ts +2556 -0
  78. package/build/internal/cjs/src/ecom-v1-cart-current-cart.types.js +255 -0
  79. package/build/internal/cjs/src/ecom-v1-cart-current-cart.types.js.map +1 -0
  80. package/build/internal/cjs/src/ecom-v1-cart-current-cart.universal.d.ts +3030 -0
  81. package/build/internal/cjs/src/ecom-v1-cart-current-cart.universal.js +895 -0
  82. package/build/internal/cjs/src/ecom-v1-cart-current-cart.universal.js.map +1 -0
  83. package/build/internal/es/index.d.ts +1 -0
  84. package/build/internal/es/index.js +2 -0
  85. package/build/internal/es/index.js.map +1 -0
  86. package/build/internal/es/index.typings.d.ts +1 -0
  87. package/build/internal/es/index.typings.js +2 -0
  88. package/build/internal/es/index.typings.js.map +1 -0
  89. package/build/internal/es/meta.d.ts +1 -0
  90. package/build/internal/es/meta.js +2 -0
  91. package/build/internal/es/meta.js.map +1 -0
  92. package/build/internal/es/src/ecom-v1-cart-current-cart.context.d.ts +27 -0
  93. package/build/internal/es/src/ecom-v1-cart-current-cart.context.js +27 -0
  94. package/build/internal/es/src/ecom-v1-cart-current-cart.context.js.map +1 -0
  95. package/build/internal/es/src/ecom-v1-cart-current-cart.http.d.ts +77 -0
  96. package/build/internal/es/src/ecom-v1-cart-current-cart.http.js +641 -0
  97. package/build/internal/es/src/ecom-v1-cart-current-cart.http.js.map +1 -0
  98. package/build/internal/es/src/ecom-v1-cart-current-cart.meta.d.ts +21 -0
  99. package/build/internal/es/src/ecom-v1-cart-current-cart.meta.js +164 -0
  100. package/build/internal/es/src/ecom-v1-cart-current-cart.meta.js.map +1 -0
  101. package/build/internal/es/src/ecom-v1-cart-current-cart.public.d.ts +123 -0
  102. package/build/internal/es/src/ecom-v1-cart-current-cart.public.js +171 -0
  103. package/build/internal/es/src/ecom-v1-cart-current-cart.public.js.map +1 -0
  104. package/build/internal/es/src/ecom-v1-cart-current-cart.types.d.ts +2556 -0
  105. package/build/internal/es/src/ecom-v1-cart-current-cart.types.js +252 -0
  106. package/build/internal/es/src/ecom-v1-cart-current-cart.types.js.map +1 -0
  107. package/build/internal/es/src/ecom-v1-cart-current-cart.universal.d.ts +3030 -0
  108. package/build/internal/es/src/ecom-v1-cart-current-cart.universal.js +860 -0
  109. package/build/internal/es/src/ecom-v1-cart-current-cart.universal.js.map +1 -0
  110. package/meta/package.json +3 -0
  111. package/package.json +52 -0
@@ -0,0 +1,641 @@
1
+ import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';
2
+ import { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';
3
+ import { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';
4
+ import { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';
5
+ import { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';
6
+ import { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';
7
+ import { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';
8
+ import { resolveUrl } from '@wix/sdk-runtime/rest-modules';
9
+ function resolveComWixEcomCartApiV1CurrentCartServiceUrl(opts) {
10
+ const domainToMappings = {
11
+ 'api._api_base_domain_': [
12
+ {
13
+ srcPath: '/cart',
14
+ destPath: '',
15
+ },
16
+ ],
17
+ 'www.wixapis.com': [
18
+ {
19
+ srcPath: '/ecom/v1/carts',
20
+ destPath: '/v1/carts',
21
+ },
22
+ ],
23
+ 'www.wixgateway.com': [
24
+ {
25
+ srcPath: '/ecom/v1/carts',
26
+ destPath: '/v1/carts',
27
+ },
28
+ ],
29
+ _: [
30
+ {
31
+ srcPath: '/_api/ecom-cart',
32
+ destPath: '',
33
+ },
34
+ {
35
+ srcPath: '/_api/cart',
36
+ destPath: '',
37
+ },
38
+ {
39
+ srcPath: '/ecom/v1/carts',
40
+ destPath: '/v1/carts',
41
+ },
42
+ ],
43
+ 'manage._base_domain_': [
44
+ {
45
+ srcPath: '/ecom/v1/carts',
46
+ destPath: '/v1/carts',
47
+ },
48
+ ],
49
+ 'editor._base_domain_': [
50
+ {
51
+ srcPath: '/_api/ecom-cart',
52
+ destPath: '',
53
+ },
54
+ ],
55
+ 'blocks._base_domain_': [
56
+ {
57
+ srcPath: '/_api/ecom-cart',
58
+ destPath: '',
59
+ },
60
+ ],
61
+ 'create.editorx': [
62
+ {
63
+ srcPath: '/_api/ecom-cart',
64
+ destPath: '',
65
+ },
66
+ ],
67
+ '*.dev.wix-code.com': [
68
+ {
69
+ srcPath: '/_api/ecom-cart',
70
+ destPath: '',
71
+ },
72
+ ],
73
+ 'www._base_domain_': [
74
+ {
75
+ srcPath: '/_api/ecom-cart',
76
+ destPath: '',
77
+ },
78
+ ],
79
+ 'bo._base_domain_': [
80
+ {
81
+ srcPath: '/ecom/v1/carts',
82
+ destPath: '/v1/carts',
83
+ },
84
+ ],
85
+ 'wixbo.ai': [
86
+ {
87
+ srcPath: '/ecom/v1/carts',
88
+ destPath: '/v1/carts',
89
+ },
90
+ ],
91
+ 'wix-bo.com': [
92
+ {
93
+ srcPath: '/ecom/v1/carts',
94
+ destPath: '/v1/carts',
95
+ },
96
+ ],
97
+ };
98
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
99
+ }
100
+ const PACKAGE_NAME = '@wix/auto_sdk_ecom_current-cart';
101
+ /**
102
+ * Retrieves the current site visitor's cart.
103
+ *
104
+ *
105
+ * The `getCurrentCart()` function returns a Promise that resolves when the current cart is retrieved.
106
+ */
107
+ export function currentCartGetCurrentCart(payload) {
108
+ function __currentCartGetCurrentCart({ host }) {
109
+ const metadata = {
110
+ entityFqdn: 'wix.ecom.v1.cart',
111
+ method: 'GET',
112
+ methodFqn: 'com.wix.ecom.cart.api.v1.CurrentCartService.GetCurrentCart',
113
+ packageName: PACKAGE_NAME,
114
+ url: resolveComWixEcomCartApiV1CurrentCartServiceUrl({
115
+ protoPath: '/v1/carts/current',
116
+ data: payload,
117
+ host,
118
+ }),
119
+ params: toURLSearchParams(payload),
120
+ transformResponse: (payload) => transformPaths(payload, [
121
+ {
122
+ transformFn: transformRESTTimestampToSDKTimestamp,
123
+ paths: [
124
+ { path: 'cart.createdDate' },
125
+ { path: 'cart.updatedDate' },
126
+ { path: 'cart.lineItems.image.urlExpirationDate' },
127
+ {
128
+ path: 'cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate',
129
+ },
130
+ { path: 'cart.lineItems.serviceProperties.scheduledDate' },
131
+ ],
132
+ },
133
+ {
134
+ transformFn: transformRESTFloatToSDKFloat,
135
+ paths: [
136
+ { path: 'cart.lineItems.image.focalPoint.x' },
137
+ { path: 'cart.lineItems.image.focalPoint.y' },
138
+ { path: 'cart.lineItems.physicalProperties.weight' },
139
+ {
140
+ path: 'cart.lineItems.catalogOverrideFields.physicalProperties.weight',
141
+ },
142
+ { path: 'cart.contactInfo.address.geocode.latitude' },
143
+ { path: 'cart.contactInfo.address.geocode.longitude' },
144
+ ],
145
+ },
146
+ ]),
147
+ };
148
+ return metadata;
149
+ }
150
+ return __currentCartGetCurrentCart;
151
+ }
152
+ /**
153
+ * Updates the current site visitor's cart.
154
+ *
155
+ *
156
+ * The `updateCurrentCart()` function returns a Promise that resolves when the current cart's properties are updated.
157
+ *
158
+ * > **Note:** When updating catalog items, `options.lineItems.catalogReference` is required.
159
+ */
160
+ export function updateCurrentCart(payload) {
161
+ function __updateCurrentCart({ host }) {
162
+ const serializedData = transformPaths(payload, [
163
+ {
164
+ transformFn: transformSDKFieldMaskToRESTFieldMask,
165
+ paths: [{ path: 'cartFieldmask' }],
166
+ },
167
+ {
168
+ transformFn: transformSDKTimestampToRESTTimestamp,
169
+ paths: [
170
+ { path: 'cartInfo.createdDate' },
171
+ { path: 'cartInfo.updatedDate' },
172
+ { path: 'cartInfo.lineItems.image.urlExpirationDate' },
173
+ {
174
+ path: 'cartInfo.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate',
175
+ },
176
+ { path: 'cartInfo.lineItems.serviceProperties.scheduledDate' },
177
+ { path: 'lineItems.image.urlExpirationDate' },
178
+ {
179
+ path: 'lineItems.subscriptionOptionInfo.subscriptionSettings.startDate',
180
+ },
181
+ { path: 'lineItems.serviceProperties.scheduledDate' },
182
+ {
183
+ path: 'customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate',
184
+ },
185
+ { path: 'customLineItems.serviceProperties.scheduledDate' },
186
+ ],
187
+ },
188
+ {
189
+ transformFn: transformSDKFloatToRESTFloat,
190
+ paths: [
191
+ { path: 'cartInfo.lineItems.image.focalPoint.x' },
192
+ { path: 'cartInfo.lineItems.image.focalPoint.y' },
193
+ { path: 'lineItems.image.focalPoint.x' },
194
+ { path: 'lineItems.image.focalPoint.y' },
195
+ { path: 'cartInfo.lineItems.physicalProperties.weight' },
196
+ {
197
+ path: 'cartInfo.lineItems.catalogOverrideFields.physicalProperties.weight',
198
+ },
199
+ { path: 'cartInfo.contactInfo.address.geocode.latitude' },
200
+ { path: 'cartInfo.contactInfo.address.geocode.longitude' },
201
+ { path: 'lineItems.physicalProperties.weight' },
202
+ { path: 'lineItems.catalogOverrideFields.physicalProperties.weight' },
203
+ { path: 'customLineItems.physicalProperties.weight' },
204
+ ],
205
+ },
206
+ ]);
207
+ const metadata = {
208
+ entityFqdn: 'wix.ecom.v1.cart',
209
+ method: 'PATCH',
210
+ methodFqn: 'com.wix.ecom.cart.api.v1.CurrentCartService.UpdateCurrentCart',
211
+ packageName: PACKAGE_NAME,
212
+ url: resolveComWixEcomCartApiV1CurrentCartServiceUrl({
213
+ protoPath: '/v1/carts/current',
214
+ data: serializedData,
215
+ host,
216
+ }),
217
+ data: serializedData,
218
+ transformResponse: (payload) => transformPaths(payload, [
219
+ {
220
+ transformFn: transformRESTTimestampToSDKTimestamp,
221
+ paths: [
222
+ { path: 'cart.createdDate' },
223
+ { path: 'cart.updatedDate' },
224
+ { path: 'cart.lineItems.image.urlExpirationDate' },
225
+ {
226
+ path: 'cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate',
227
+ },
228
+ { path: 'cart.lineItems.serviceProperties.scheduledDate' },
229
+ ],
230
+ },
231
+ {
232
+ transformFn: transformRESTFloatToSDKFloat,
233
+ paths: [
234
+ { path: 'cart.lineItems.image.focalPoint.x' },
235
+ { path: 'cart.lineItems.image.focalPoint.y' },
236
+ { path: 'cart.lineItems.physicalProperties.weight' },
237
+ {
238
+ path: 'cart.lineItems.catalogOverrideFields.physicalProperties.weight',
239
+ },
240
+ { path: 'cart.contactInfo.address.geocode.latitude' },
241
+ { path: 'cart.contactInfo.address.geocode.longitude' },
242
+ ],
243
+ },
244
+ ]),
245
+ };
246
+ return metadata;
247
+ }
248
+ return __updateCurrentCart;
249
+ }
250
+ /**
251
+ * Adds catalog line items to the current site visitor's cart.
252
+ *
253
+ *
254
+ * The `addToCurrentCart()` function returns a Promise that resolves to the updated current cart when the specified items have been added.
255
+ *
256
+ * > **Note:** When adding catalog items, `options.lineItems.catalogReference` is required.
257
+ */
258
+ export function addToCurrentCart(payload) {
259
+ function __addToCurrentCart({ host }) {
260
+ const serializedData = transformPaths(payload, [
261
+ {
262
+ transformFn: transformSDKTimestampToRESTTimestamp,
263
+ paths: [
264
+ { path: 'lineItems.image.urlExpirationDate' },
265
+ {
266
+ path: 'lineItems.subscriptionOptionInfo.subscriptionSettings.startDate',
267
+ },
268
+ { path: 'lineItems.serviceProperties.scheduledDate' },
269
+ {
270
+ path: 'customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate',
271
+ },
272
+ { path: 'customLineItems.serviceProperties.scheduledDate' },
273
+ ],
274
+ },
275
+ {
276
+ transformFn: transformSDKFloatToRESTFloat,
277
+ paths: [
278
+ { path: 'lineItems.image.focalPoint.x' },
279
+ { path: 'lineItems.image.focalPoint.y' },
280
+ { path: 'lineItems.physicalProperties.weight' },
281
+ { path: 'lineItems.catalogOverrideFields.physicalProperties.weight' },
282
+ { path: 'customLineItems.physicalProperties.weight' },
283
+ ],
284
+ },
285
+ ]);
286
+ const metadata = {
287
+ entityFqdn: 'wix.ecom.v1.cart',
288
+ method: 'POST',
289
+ methodFqn: 'com.wix.ecom.cart.api.v1.CurrentCartService.AddToCurrentCart',
290
+ packageName: PACKAGE_NAME,
291
+ url: resolveComWixEcomCartApiV1CurrentCartServiceUrl({
292
+ protoPath: '/v1/carts/current/add-to-cart',
293
+ data: serializedData,
294
+ host,
295
+ }),
296
+ data: serializedData,
297
+ transformResponse: (payload) => transformPaths(payload, [
298
+ {
299
+ transformFn: transformRESTTimestampToSDKTimestamp,
300
+ paths: [
301
+ { path: 'cart.createdDate' },
302
+ { path: 'cart.updatedDate' },
303
+ { path: 'cart.lineItems.image.urlExpirationDate' },
304
+ {
305
+ path: 'cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate',
306
+ },
307
+ { path: 'cart.lineItems.serviceProperties.scheduledDate' },
308
+ ],
309
+ },
310
+ {
311
+ transformFn: transformRESTFloatToSDKFloat,
312
+ paths: [
313
+ { path: 'cart.lineItems.image.focalPoint.x' },
314
+ { path: 'cart.lineItems.image.focalPoint.y' },
315
+ { path: 'cart.lineItems.physicalProperties.weight' },
316
+ {
317
+ path: 'cart.lineItems.catalogOverrideFields.physicalProperties.weight',
318
+ },
319
+ { path: 'cart.contactInfo.address.geocode.latitude' },
320
+ { path: 'cart.contactInfo.address.geocode.longitude' },
321
+ ],
322
+ },
323
+ ]),
324
+ };
325
+ return metadata;
326
+ }
327
+ return __addToCurrentCart;
328
+ }
329
+ /**
330
+ * Removes line items from the current site visitor's cart.
331
+ *
332
+ *
333
+ * The `removeLineItemsFromCurrentCart()` function returns a Promise that resolves to the updated current cart when the line items are removed.
334
+ */
335
+ export function removeLineItemsFromCurrentCart(payload) {
336
+ function __removeLineItemsFromCurrentCart({ host }) {
337
+ const metadata = {
338
+ entityFqdn: 'wix.ecom.v1.cart',
339
+ method: 'POST',
340
+ methodFqn: 'com.wix.ecom.cart.api.v1.CurrentCartService.RemoveLineItemsFromCurrentCart',
341
+ packageName: PACKAGE_NAME,
342
+ url: resolveComWixEcomCartApiV1CurrentCartServiceUrl({
343
+ protoPath: '/v1/carts/current/remove-line-items',
344
+ data: payload,
345
+ host,
346
+ }),
347
+ data: payload,
348
+ transformResponse: (payload) => transformPaths(payload, [
349
+ {
350
+ transformFn: transformRESTTimestampToSDKTimestamp,
351
+ paths: [
352
+ { path: 'cart.createdDate' },
353
+ { path: 'cart.updatedDate' },
354
+ { path: 'cart.lineItems.image.urlExpirationDate' },
355
+ {
356
+ path: 'cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate',
357
+ },
358
+ { path: 'cart.lineItems.serviceProperties.scheduledDate' },
359
+ ],
360
+ },
361
+ {
362
+ transformFn: transformRESTFloatToSDKFloat,
363
+ paths: [
364
+ { path: 'cart.lineItems.image.focalPoint.x' },
365
+ { path: 'cart.lineItems.image.focalPoint.y' },
366
+ { path: 'cart.lineItems.physicalProperties.weight' },
367
+ {
368
+ path: 'cart.lineItems.catalogOverrideFields.physicalProperties.weight',
369
+ },
370
+ { path: 'cart.contactInfo.address.geocode.latitude' },
371
+ { path: 'cart.contactInfo.address.geocode.longitude' },
372
+ ],
373
+ },
374
+ ]),
375
+ };
376
+ return metadata;
377
+ }
378
+ return __removeLineItemsFromCurrentCart;
379
+ }
380
+ /**
381
+ * Creates a checkout from the current site visitor’s cart.
382
+ *
383
+ *
384
+ * The `createCheckoutFromCurrentCart()` function returns a Promise that resolves to the new checkout's ID when it's created.
385
+ *
386
+ * If a checkout was already created from the current cart, that checkout will be updated with any new information from the cart.
387
+ *
388
+ * > **Note:** `options.channelType` is a required field.
389
+ */
390
+ export function createCheckoutFromCurrentCart(payload) {
391
+ function __createCheckoutFromCurrentCart({ host }) {
392
+ const serializedData = transformPaths(payload, [
393
+ {
394
+ transformFn: transformSDKFloatToRESTFloat,
395
+ paths: [
396
+ { path: 'shippingAddress.geocode.latitude' },
397
+ { path: 'shippingAddress.geocode.longitude' },
398
+ { path: 'billingAddress.geocode.latitude' },
399
+ { path: 'billingAddress.geocode.longitude' },
400
+ ],
401
+ },
402
+ ]);
403
+ const metadata = {
404
+ entityFqdn: 'wix.ecom.v1.cart',
405
+ method: 'POST',
406
+ methodFqn: 'com.wix.ecom.cart.api.v1.CurrentCartService.CreateCheckoutFromCurrentCart',
407
+ packageName: PACKAGE_NAME,
408
+ url: resolveComWixEcomCartApiV1CurrentCartServiceUrl({
409
+ protoPath: '/v1/carts/current/create-checkout',
410
+ data: serializedData,
411
+ host,
412
+ }),
413
+ data: serializedData,
414
+ };
415
+ return metadata;
416
+ }
417
+ return __createCheckoutFromCurrentCart;
418
+ }
419
+ /**
420
+ * Removes the coupon from the current site visitor's cart.
421
+ *
422
+ *
423
+ * The `removeCouponFromCurrentCart()` function returns a Promise that resolves to the updated current cart when the coupon is removed.
424
+ */
425
+ export function removeCouponFromCurrentCart(payload) {
426
+ function __removeCouponFromCurrentCart({ host }) {
427
+ const metadata = {
428
+ entityFqdn: 'wix.ecom.v1.cart',
429
+ method: 'POST',
430
+ methodFqn: 'com.wix.ecom.cart.api.v1.CurrentCartService.RemoveCouponFromCurrentCart',
431
+ packageName: PACKAGE_NAME,
432
+ url: resolveComWixEcomCartApiV1CurrentCartServiceUrl({
433
+ protoPath: '/v1/carts/current/remove-coupon',
434
+ data: payload,
435
+ host,
436
+ }),
437
+ data: payload,
438
+ transformResponse: (payload) => transformPaths(payload, [
439
+ {
440
+ transformFn: transformRESTTimestampToSDKTimestamp,
441
+ paths: [
442
+ { path: 'cart.createdDate' },
443
+ { path: 'cart.updatedDate' },
444
+ { path: 'cart.lineItems.image.urlExpirationDate' },
445
+ {
446
+ path: 'cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate',
447
+ },
448
+ { path: 'cart.lineItems.serviceProperties.scheduledDate' },
449
+ ],
450
+ },
451
+ {
452
+ transformFn: transformRESTFloatToSDKFloat,
453
+ paths: [
454
+ { path: 'cart.lineItems.image.focalPoint.x' },
455
+ { path: 'cart.lineItems.image.focalPoint.y' },
456
+ { path: 'cart.lineItems.physicalProperties.weight' },
457
+ {
458
+ path: 'cart.lineItems.catalogOverrideFields.physicalProperties.weight',
459
+ },
460
+ { path: 'cart.contactInfo.address.geocode.latitude' },
461
+ { path: 'cart.contactInfo.address.geocode.longitude' },
462
+ ],
463
+ },
464
+ ]),
465
+ };
466
+ return metadata;
467
+ }
468
+ return __removeCouponFromCurrentCart;
469
+ }
470
+ /**
471
+ * Updates the quantity of one or more line items in the current site visitor's cart.
472
+ *
473
+ *
474
+ * The `updateCurrentCartLineItemQuantity()` function returns a Promise that resolves when the quantities of the current cart's line items are updated. This endpoint is only for updating the quantity of line items. To entirely remove a line item from the current cart, use [`removeLineItemsFromCurrentCart()`](#removelineitemsfromcurrentcart).
475
+ * To add a new line item to the current cart, use [`addToCurrentCart()`](#addtocurrentcart).
476
+ *
477
+ * This endpoint checks the amount of stock remaining for this line item. If the specified `quantity` is greater than the remaining stock, then the `quantity` returned in the response is the total amount of remaining stock.
478
+ */
479
+ export function updateCurrentCartLineItemQuantity(payload) {
480
+ function __updateCurrentCartLineItemQuantity({ host }) {
481
+ const metadata = {
482
+ entityFqdn: 'wix.ecom.v1.cart',
483
+ method: 'POST',
484
+ methodFqn: 'com.wix.ecom.cart.api.v1.CurrentCartService.UpdateCurrentCartLineItemQuantity',
485
+ packageName: PACKAGE_NAME,
486
+ url: resolveComWixEcomCartApiV1CurrentCartServiceUrl({
487
+ protoPath: '/v1/carts/current/update-line-items-quantity',
488
+ data: payload,
489
+ host,
490
+ }),
491
+ data: payload,
492
+ transformResponse: (payload) => transformPaths(payload, [
493
+ {
494
+ transformFn: transformRESTTimestampToSDKTimestamp,
495
+ paths: [
496
+ { path: 'cart.createdDate' },
497
+ { path: 'cart.updatedDate' },
498
+ { path: 'cart.lineItems.image.urlExpirationDate' },
499
+ {
500
+ path: 'cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate',
501
+ },
502
+ { path: 'cart.lineItems.serviceProperties.scheduledDate' },
503
+ ],
504
+ },
505
+ {
506
+ transformFn: transformRESTFloatToSDKFloat,
507
+ paths: [
508
+ { path: 'cart.lineItems.image.focalPoint.x' },
509
+ { path: 'cart.lineItems.image.focalPoint.y' },
510
+ { path: 'cart.lineItems.physicalProperties.weight' },
511
+ {
512
+ path: 'cart.lineItems.catalogOverrideFields.physicalProperties.weight',
513
+ },
514
+ { path: 'cart.contactInfo.address.geocode.latitude' },
515
+ { path: 'cart.contactInfo.address.geocode.longitude' },
516
+ ],
517
+ },
518
+ ]),
519
+ };
520
+ return metadata;
521
+ }
522
+ return __updateCurrentCartLineItemQuantity;
523
+ }
524
+ /**
525
+ * Estimates the current cart's price totals (including tax), based on a selected carrier service, shipping address, and billing information.
526
+ *
527
+ *
528
+ * The `estimateCurrentCartTotals()` function returns a Promise that resolves when the estimated totals are generated.
529
+ *
530
+ * > **Note:** Not passing any `options` properties will only estimate the cart items price totals.
531
+ */
532
+ export function estimateCurrentCartTotals(payload) {
533
+ function __estimateCurrentCartTotals({ host }) {
534
+ const serializedData = transformPaths(payload, [
535
+ {
536
+ transformFn: transformSDKFloatToRESTFloat,
537
+ paths: [
538
+ { path: 'shippingAddress.geocode.latitude' },
539
+ { path: 'shippingAddress.geocode.longitude' },
540
+ { path: 'billingAddress.geocode.latitude' },
541
+ { path: 'billingAddress.geocode.longitude' },
542
+ ],
543
+ },
544
+ ]);
545
+ const metadata = {
546
+ entityFqdn: 'wix.ecom.v1.cart',
547
+ method: 'POST',
548
+ methodFqn: 'com.wix.ecom.cart.api.v1.CurrentCartService.EstimateCurrentCartTotals',
549
+ packageName: PACKAGE_NAME,
550
+ url: resolveComWixEcomCartApiV1CurrentCartServiceUrl({
551
+ protoPath: '/v1/carts/current/estimate-totals',
552
+ data: serializedData,
553
+ host,
554
+ }),
555
+ data: serializedData,
556
+ transformResponse: (payload) => transformPaths(payload, [
557
+ {
558
+ transformFn: transformRESTTimestampToSDKTimestamp,
559
+ paths: [
560
+ { path: 'cart.createdDate' },
561
+ { path: 'cart.updatedDate' },
562
+ { path: 'cart.lineItems.image.urlExpirationDate' },
563
+ {
564
+ path: 'cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate',
565
+ },
566
+ { path: 'cart.lineItems.serviceProperties.scheduledDate' },
567
+ {
568
+ path: 'shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from',
569
+ },
570
+ {
571
+ path: 'shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to',
572
+ },
573
+ {
574
+ path: 'shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from',
575
+ },
576
+ {
577
+ path: 'shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to',
578
+ },
579
+ { path: 'membershipOptions.eligibleMemberships.expirationDate' },
580
+ {
581
+ path: 'membershipOptions.invalidMemberships.membership.expirationDate',
582
+ },
583
+ ],
584
+ },
585
+ {
586
+ transformFn: transformRESTFloatToSDKFloat,
587
+ paths: [
588
+ { path: 'cart.lineItems.image.focalPoint.x' },
589
+ { path: 'cart.lineItems.image.focalPoint.y' },
590
+ { path: 'cart.lineItems.physicalProperties.weight' },
591
+ {
592
+ path: 'cart.lineItems.catalogOverrideFields.physicalProperties.weight',
593
+ },
594
+ { path: 'cart.contactInfo.address.geocode.latitude' },
595
+ { path: 'cart.contactInfo.address.geocode.longitude' },
596
+ {
597
+ path: 'shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude',
598
+ },
599
+ {
600
+ path: 'shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude',
601
+ },
602
+ {
603
+ path: 'shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude',
604
+ },
605
+ {
606
+ path: 'shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude',
607
+ },
608
+ { path: 'appliedDiscounts.merchantDiscount.percentage' },
609
+ ],
610
+ },
611
+ ]),
612
+ };
613
+ return metadata;
614
+ }
615
+ return __estimateCurrentCartTotals;
616
+ }
617
+ /**
618
+ * Deletes the current site visitor's cart.
619
+ *
620
+ *
621
+ * The `deleteCurrentCart()` function returns a Promise that resolves when the current cart is deleted.
622
+ */
623
+ export function deleteCurrentCart(payload) {
624
+ function __deleteCurrentCart({ host }) {
625
+ const metadata = {
626
+ entityFqdn: 'wix.ecom.v1.cart',
627
+ method: 'DELETE',
628
+ methodFqn: 'com.wix.ecom.cart.api.v1.CurrentCartService.DeleteCurrentCart',
629
+ packageName: PACKAGE_NAME,
630
+ url: resolveComWixEcomCartApiV1CurrentCartServiceUrl({
631
+ protoPath: '/v1/carts/current',
632
+ data: payload,
633
+ host,
634
+ }),
635
+ params: toURLSearchParams(payload),
636
+ };
637
+ return metadata;
638
+ }
639
+ return __deleteCurrentCart;
640
+ }
641
+ //# sourceMappingURL=ecom-v1-cart-current-cart.http.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ecom-v1-cart-current-cart.http.js","sourceRoot":"","sources":["../../../src/ecom-v1-cart-current-cart.http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EAAE,oCAAoC,EAAE,MAAM,6CAA6C,CAAC;AACnG,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAClF,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAI3D,SAAS,+CAA+C,CACtD,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,uBAAuB,EAAE;YACvB;gBACE,OAAO,EAAE,OAAO;gBAChB,QAAQ,EAAE,EAAE;aACb;SACF;QACD,iBAAiB,EAAE;YACjB;gBACE,OAAO,EAAE,gBAAgB;gBACzB,QAAQ,EAAE,WAAW;aACtB;SACF;QACD,oBAAoB,EAAE;YACpB;gBACE,OAAO,EAAE,gBAAgB;gBACzB,QAAQ,EAAE,WAAW;aACtB;SACF;QACD,CAAC,EAAE;YACD;gBACE,OAAO,EAAE,iBAAiB;gBAC1B,QAAQ,EAAE,EAAE;aACb;YACD;gBACE,OAAO,EAAE,YAAY;gBACrB,QAAQ,EAAE,EAAE;aACb;YACD;gBACE,OAAO,EAAE,gBAAgB;gBACzB,QAAQ,EAAE,WAAW;aACtB;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,gBAAgB;gBACzB,QAAQ,EAAE,WAAW;aACtB;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,iBAAiB;gBAC1B,QAAQ,EAAE,EAAE;aACb;SACF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