@wix/auto_sdk_ecom_cart-v-2 1.0.204 → 1.0.205
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.
- package/build/cjs/index.js +306 -828
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.js +213 -709
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.js +130 -528
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs +306 -828
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.mjs +213 -709
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.mjs +130 -528
- package/build/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.js
CHANGED
|
@@ -116,6 +116,94 @@ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
|
116
116
|
var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
|
|
117
117
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
118
118
|
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
119
|
+
var TRANSFORM_PATHS_0 = [
|
|
120
|
+
{ path: "cart.createdDate" },
|
|
121
|
+
{ path: "cart.updatedDate" },
|
|
122
|
+
{
|
|
123
|
+
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
124
|
+
},
|
|
125
|
+
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
126
|
+
{
|
|
127
|
+
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
128
|
+
},
|
|
129
|
+
{ path: "cart.lineItems.attributes.serviceProperties.scheduledDate" },
|
|
130
|
+
{ path: "cart.lineItems.attributes.serviceProperties.endDate" },
|
|
131
|
+
{ path: "catalogItems.catalogOverrideFields.image.urlExpirationDate" },
|
|
132
|
+
{ path: "customItems.attributes.image.urlExpirationDate" },
|
|
133
|
+
{ path: "customItems.attributes.serviceProperties.scheduledDate" },
|
|
134
|
+
{ path: "customItems.attributes.serviceProperties.endDate" },
|
|
135
|
+
{
|
|
136
|
+
path: "customItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
137
|
+
}
|
|
138
|
+
];
|
|
139
|
+
var TRANSFORM_PATHS_1 = [
|
|
140
|
+
{
|
|
141
|
+
path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
142
|
+
},
|
|
143
|
+
{ path: "cart.lineItems.attributes.physicalProperties.weight" },
|
|
144
|
+
{ path: "cart.deliveryInfo.address.geocode.latitude" },
|
|
145
|
+
{ path: "cart.deliveryInfo.address.geocode.longitude" },
|
|
146
|
+
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
147
|
+
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
148
|
+
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" },
|
|
149
|
+
{ path: "catalogItems.catalogOverrideFields.physicalProperties.weight" },
|
|
150
|
+
{ path: "customItems.attributes.physicalProperties.weight" }
|
|
151
|
+
];
|
|
152
|
+
var TRANSFORM_PATHS_2 = [
|
|
153
|
+
{ path: "cart.createdDate" },
|
|
154
|
+
{ path: "cart.updatedDate" },
|
|
155
|
+
{
|
|
156
|
+
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
157
|
+
},
|
|
158
|
+
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
159
|
+
{
|
|
160
|
+
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
161
|
+
},
|
|
162
|
+
{ path: "cart.lineItems.attributes.serviceProperties.scheduledDate" },
|
|
163
|
+
{ path: "cart.lineItems.attributes.serviceProperties.endDate" }
|
|
164
|
+
];
|
|
165
|
+
var TRANSFORM_PATHS_3 = [
|
|
166
|
+
{
|
|
167
|
+
path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
168
|
+
},
|
|
169
|
+
{ path: "cart.lineItems.attributes.physicalProperties.weight" },
|
|
170
|
+
{ path: "cart.deliveryInfo.address.geocode.latitude" },
|
|
171
|
+
{ path: "cart.deliveryInfo.address.geocode.longitude" },
|
|
172
|
+
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
173
|
+
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
174
|
+
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
175
|
+
];
|
|
176
|
+
var TRANSFORM_PATHS_4 = [{ path: "fieldMask" }];
|
|
177
|
+
var TRANSFORM_PATHS_5 = [
|
|
178
|
+
{ path: "cart.createdDate" },
|
|
179
|
+
{ path: "cart.updatedDate" },
|
|
180
|
+
{
|
|
181
|
+
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
182
|
+
},
|
|
183
|
+
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
184
|
+
{
|
|
185
|
+
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
186
|
+
},
|
|
187
|
+
{ path: "cart.lineItems.attributes.serviceProperties.scheduledDate" },
|
|
188
|
+
{ path: "cart.lineItems.attributes.serviceProperties.endDate" },
|
|
189
|
+
{
|
|
190
|
+
path: "summary.paymentSummary.subscriptionCharges.charges.cycleBillingDate"
|
|
191
|
+
}
|
|
192
|
+
];
|
|
193
|
+
var TRANSFORM_PATHS_6 = [
|
|
194
|
+
{ path: "catalogItems.catalogOverrideFields.physicalProperties.weight" },
|
|
195
|
+
{ path: "customItems.attributes.physicalProperties.weight" }
|
|
196
|
+
];
|
|
197
|
+
var TRANSFORM_PATHS_7 = [
|
|
198
|
+
{ path: "catalogItems.catalogOverrideFields.image.urlExpirationDate" },
|
|
199
|
+
{ path: "customItems.attributes.image.urlExpirationDate" },
|
|
200
|
+
{ path: "customItems.attributes.serviceProperties.scheduledDate" },
|
|
201
|
+
{ path: "customItems.attributes.serviceProperties.endDate" },
|
|
202
|
+
{
|
|
203
|
+
path: "customItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
204
|
+
}
|
|
205
|
+
];
|
|
206
|
+
var TRANSFORM_PATHS_8 = [{ path: "body" }];
|
|
119
207
|
function resolveWixEcomCartV2CartServiceUrl(opts) {
|
|
120
208
|
const domainToMappings = {
|
|
121
209
|
"api._api_base_domain_": [
|
|
@@ -211,46 +299,11 @@ function createCart(payload) {
|
|
|
211
299
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
212
300
|
{
|
|
213
301
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
214
|
-
paths:
|
|
215
|
-
{ path: "cart.createdDate" },
|
|
216
|
-
{ path: "cart.updatedDate" },
|
|
217
|
-
{
|
|
218
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
219
|
-
},
|
|
220
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
221
|
-
{
|
|
222
|
-
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
223
|
-
},
|
|
224
|
-
{ path: "cart.lineItems.attributes.serviceProperties.scheduledDate" },
|
|
225
|
-
{ path: "cart.lineItems.attributes.serviceProperties.endDate" },
|
|
226
|
-
{
|
|
227
|
-
path: "catalogItems.catalogOverrideFields.image.urlExpirationDate"
|
|
228
|
-
},
|
|
229
|
-
{ path: "customItems.attributes.image.urlExpirationDate" },
|
|
230
|
-
{ path: "customItems.attributes.serviceProperties.scheduledDate" },
|
|
231
|
-
{ path: "customItems.attributes.serviceProperties.endDate" },
|
|
232
|
-
{
|
|
233
|
-
path: "customItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
234
|
-
}
|
|
235
|
-
]
|
|
302
|
+
paths: TRANSFORM_PATHS_0
|
|
236
303
|
},
|
|
237
304
|
{
|
|
238
305
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
239
|
-
paths:
|
|
240
|
-
{
|
|
241
|
-
path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
242
|
-
},
|
|
243
|
-
{ path: "cart.lineItems.attributes.physicalProperties.weight" },
|
|
244
|
-
{ path: "cart.deliveryInfo.address.geocode.latitude" },
|
|
245
|
-
{ path: "cart.deliveryInfo.address.geocode.longitude" },
|
|
246
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
247
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
248
|
-
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" },
|
|
249
|
-
{
|
|
250
|
-
path: "catalogItems.catalogOverrideFields.physicalProperties.weight"
|
|
251
|
-
},
|
|
252
|
-
{ path: "customItems.attributes.physicalProperties.weight" }
|
|
253
|
-
]
|
|
306
|
+
paths: TRANSFORM_PATHS_1
|
|
254
307
|
}
|
|
255
308
|
]);
|
|
256
309
|
const metadata = {
|
|
@@ -270,35 +323,11 @@ function createCart(payload) {
|
|
|
270
323
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
271
324
|
{
|
|
272
325
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
273
|
-
paths:
|
|
274
|
-
{ path: "cart.createdDate" },
|
|
275
|
-
{ path: "cart.updatedDate" },
|
|
276
|
-
{
|
|
277
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
278
|
-
},
|
|
279
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
280
|
-
{
|
|
281
|
-
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
282
|
-
},
|
|
283
|
-
{
|
|
284
|
-
path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
|
|
285
|
-
},
|
|
286
|
-
{ path: "cart.lineItems.attributes.serviceProperties.endDate" }
|
|
287
|
-
]
|
|
326
|
+
paths: TRANSFORM_PATHS_2
|
|
288
327
|
},
|
|
289
328
|
{
|
|
290
329
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
291
|
-
paths:
|
|
292
|
-
{
|
|
293
|
-
path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
294
|
-
},
|
|
295
|
-
{ path: "cart.lineItems.attributes.physicalProperties.weight" },
|
|
296
|
-
{ path: "cart.deliveryInfo.address.geocode.latitude" },
|
|
297
|
-
{ path: "cart.deliveryInfo.address.geocode.longitude" },
|
|
298
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
299
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
300
|
-
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
301
|
-
]
|
|
330
|
+
paths: TRANSFORM_PATHS_3
|
|
302
331
|
}
|
|
303
332
|
])
|
|
304
333
|
};
|
|
@@ -325,35 +354,11 @@ function getCart(payload) {
|
|
|
325
354
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
326
355
|
{
|
|
327
356
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
328
|
-
paths:
|
|
329
|
-
{ path: "cart.createdDate" },
|
|
330
|
-
{ path: "cart.updatedDate" },
|
|
331
|
-
{
|
|
332
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
333
|
-
},
|
|
334
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
335
|
-
{
|
|
336
|
-
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
337
|
-
},
|
|
338
|
-
{
|
|
339
|
-
path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
|
|
340
|
-
},
|
|
341
|
-
{ path: "cart.lineItems.attributes.serviceProperties.endDate" }
|
|
342
|
-
]
|
|
357
|
+
paths: TRANSFORM_PATHS_2
|
|
343
358
|
},
|
|
344
359
|
{
|
|
345
360
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
346
|
-
paths:
|
|
347
|
-
{
|
|
348
|
-
path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
349
|
-
},
|
|
350
|
-
{ path: "cart.lineItems.attributes.physicalProperties.weight" },
|
|
351
|
-
{ path: "cart.deliveryInfo.address.geocode.latitude" },
|
|
352
|
-
{ path: "cart.deliveryInfo.address.geocode.longitude" },
|
|
353
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
354
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
355
|
-
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
356
|
-
]
|
|
361
|
+
paths: TRANSFORM_PATHS_3
|
|
357
362
|
}
|
|
358
363
|
])
|
|
359
364
|
};
|
|
@@ -387,37 +392,15 @@ function updateCart(payload) {
|
|
|
387
392
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
388
393
|
{
|
|
389
394
|
transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
|
|
390
|
-
paths:
|
|
395
|
+
paths: TRANSFORM_PATHS_4
|
|
391
396
|
},
|
|
392
397
|
{
|
|
393
398
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
394
|
-
paths:
|
|
395
|
-
{ path: "cart.createdDate" },
|
|
396
|
-
{ path: "cart.updatedDate" },
|
|
397
|
-
{
|
|
398
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
399
|
-
},
|
|
400
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
401
|
-
{
|
|
402
|
-
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
403
|
-
},
|
|
404
|
-
{ path: "cart.lineItems.attributes.serviceProperties.scheduledDate" },
|
|
405
|
-
{ path: "cart.lineItems.attributes.serviceProperties.endDate" }
|
|
406
|
-
]
|
|
399
|
+
paths: TRANSFORM_PATHS_2
|
|
407
400
|
},
|
|
408
401
|
{
|
|
409
402
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
410
|
-
paths:
|
|
411
|
-
{
|
|
412
|
-
path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
413
|
-
},
|
|
414
|
-
{ path: "cart.lineItems.attributes.physicalProperties.weight" },
|
|
415
|
-
{ path: "cart.deliveryInfo.address.geocode.latitude" },
|
|
416
|
-
{ path: "cart.deliveryInfo.address.geocode.longitude" },
|
|
417
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
418
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
419
|
-
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
420
|
-
]
|
|
403
|
+
paths: TRANSFORM_PATHS_3
|
|
421
404
|
}
|
|
422
405
|
]);
|
|
423
406
|
const metadata = {
|
|
@@ -437,35 +420,11 @@ function updateCart(payload) {
|
|
|
437
420
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
438
421
|
{
|
|
439
422
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
440
|
-
paths:
|
|
441
|
-
{ path: "cart.createdDate" },
|
|
442
|
-
{ path: "cart.updatedDate" },
|
|
443
|
-
{
|
|
444
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
445
|
-
},
|
|
446
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
447
|
-
{
|
|
448
|
-
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
449
|
-
},
|
|
450
|
-
{
|
|
451
|
-
path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
|
|
452
|
-
},
|
|
453
|
-
{ path: "cart.lineItems.attributes.serviceProperties.endDate" }
|
|
454
|
-
]
|
|
423
|
+
paths: TRANSFORM_PATHS_2
|
|
455
424
|
},
|
|
456
425
|
{
|
|
457
426
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
458
|
-
paths:
|
|
459
|
-
{
|
|
460
|
-
path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
461
|
-
},
|
|
462
|
-
{ path: "cart.lineItems.attributes.physicalProperties.weight" },
|
|
463
|
-
{ path: "cart.deliveryInfo.address.geocode.latitude" },
|
|
464
|
-
{ path: "cart.deliveryInfo.address.geocode.longitude" },
|
|
465
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
466
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
467
|
-
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
468
|
-
]
|
|
427
|
+
paths: TRANSFORM_PATHS_3
|
|
469
428
|
}
|
|
470
429
|
])
|
|
471
430
|
};
|
|
@@ -513,35 +472,11 @@ function refreshCart(payload) {
|
|
|
513
472
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
514
473
|
{
|
|
515
474
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
516
|
-
paths:
|
|
517
|
-
{ path: "cart.createdDate" },
|
|
518
|
-
{ path: "cart.updatedDate" },
|
|
519
|
-
{
|
|
520
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
521
|
-
},
|
|
522
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
523
|
-
{
|
|
524
|
-
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
525
|
-
},
|
|
526
|
-
{
|
|
527
|
-
path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
|
|
528
|
-
},
|
|
529
|
-
{ path: "cart.lineItems.attributes.serviceProperties.endDate" }
|
|
530
|
-
]
|
|
475
|
+
paths: TRANSFORM_PATHS_2
|
|
531
476
|
},
|
|
532
477
|
{
|
|
533
478
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
534
|
-
paths:
|
|
535
|
-
{
|
|
536
|
-
path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
537
|
-
},
|
|
538
|
-
{ path: "cart.lineItems.attributes.physicalProperties.weight" },
|
|
539
|
-
{ path: "cart.deliveryInfo.address.geocode.latitude" },
|
|
540
|
-
{ path: "cart.deliveryInfo.address.geocode.longitude" },
|
|
541
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
542
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
543
|
-
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
544
|
-
]
|
|
479
|
+
paths: TRANSFORM_PATHS_3
|
|
545
480
|
}
|
|
546
481
|
])
|
|
547
482
|
};
|
|
@@ -568,38 +503,11 @@ function estimateCart(payload) {
|
|
|
568
503
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
569
504
|
{
|
|
570
505
|
transformFn: import_timestamp2.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
|
-
{ path: "cart.lineItems.attributes.serviceProperties.endDate" },
|
|
585
|
-
{
|
|
586
|
-
path: "summary.paymentSummary.subscriptionCharges.charges.cycleBillingDate"
|
|
587
|
-
}
|
|
588
|
-
]
|
|
506
|
+
paths: TRANSFORM_PATHS_5
|
|
589
507
|
},
|
|
590
508
|
{
|
|
591
509
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
592
|
-
paths:
|
|
593
|
-
{
|
|
594
|
-
path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
595
|
-
},
|
|
596
|
-
{ path: "cart.lineItems.attributes.physicalProperties.weight" },
|
|
597
|
-
{ path: "cart.deliveryInfo.address.geocode.latitude" },
|
|
598
|
-
{ path: "cart.deliveryInfo.address.geocode.longitude" },
|
|
599
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
600
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
601
|
-
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
602
|
-
]
|
|
510
|
+
paths: TRANSFORM_PATHS_3
|
|
603
511
|
}
|
|
604
512
|
])
|
|
605
513
|
};
|
|
@@ -626,38 +534,11 @@ function calculateCart(payload) {
|
|
|
626
534
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
627
535
|
{
|
|
628
536
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
629
|
-
paths:
|
|
630
|
-
{ path: "cart.createdDate" },
|
|
631
|
-
{ path: "cart.updatedDate" },
|
|
632
|
-
{
|
|
633
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
634
|
-
},
|
|
635
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
636
|
-
{
|
|
637
|
-
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
638
|
-
},
|
|
639
|
-
{
|
|
640
|
-
path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
|
|
641
|
-
},
|
|
642
|
-
{ path: "cart.lineItems.attributes.serviceProperties.endDate" },
|
|
643
|
-
{
|
|
644
|
-
path: "summary.paymentSummary.subscriptionCharges.charges.cycleBillingDate"
|
|
645
|
-
}
|
|
646
|
-
]
|
|
537
|
+
paths: TRANSFORM_PATHS_5
|
|
647
538
|
},
|
|
648
539
|
{
|
|
649
540
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
650
|
-
paths:
|
|
651
|
-
{
|
|
652
|
-
path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
653
|
-
},
|
|
654
|
-
{ path: "cart.lineItems.attributes.physicalProperties.weight" },
|
|
655
|
-
{ path: "cart.deliveryInfo.address.geocode.latitude" },
|
|
656
|
-
{ path: "cart.deliveryInfo.address.geocode.longitude" },
|
|
657
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
658
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
659
|
-
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
660
|
-
]
|
|
541
|
+
paths: TRANSFORM_PATHS_3
|
|
661
542
|
}
|
|
662
543
|
])
|
|
663
544
|
};
|
|
@@ -712,26 +593,11 @@ function addLineItems(payload) {
|
|
|
712
593
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
713
594
|
{
|
|
714
595
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
715
|
-
paths:
|
|
716
|
-
{
|
|
717
|
-
path: "catalogItems.catalogOverrideFields.physicalProperties.weight"
|
|
718
|
-
},
|
|
719
|
-
{ path: "customItems.attributes.physicalProperties.weight" }
|
|
720
|
-
]
|
|
596
|
+
paths: TRANSFORM_PATHS_6
|
|
721
597
|
},
|
|
722
598
|
{
|
|
723
599
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
724
|
-
paths:
|
|
725
|
-
{
|
|
726
|
-
path: "catalogItems.catalogOverrideFields.image.urlExpirationDate"
|
|
727
|
-
},
|
|
728
|
-
{ path: "customItems.attributes.image.urlExpirationDate" },
|
|
729
|
-
{ path: "customItems.attributes.serviceProperties.scheduledDate" },
|
|
730
|
-
{ path: "customItems.attributes.serviceProperties.endDate" },
|
|
731
|
-
{
|
|
732
|
-
path: "customItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
733
|
-
}
|
|
734
|
-
]
|
|
600
|
+
paths: TRANSFORM_PATHS_7
|
|
735
601
|
}
|
|
736
602
|
]);
|
|
737
603
|
const metadata = {
|
|
@@ -751,35 +617,11 @@ function addLineItems(payload) {
|
|
|
751
617
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
752
618
|
{
|
|
753
619
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
754
|
-
paths:
|
|
755
|
-
{ path: "cart.createdDate" },
|
|
756
|
-
{ path: "cart.updatedDate" },
|
|
757
|
-
{
|
|
758
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
759
|
-
},
|
|
760
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
761
|
-
{
|
|
762
|
-
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
763
|
-
},
|
|
764
|
-
{
|
|
765
|
-
path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
|
|
766
|
-
},
|
|
767
|
-
{ path: "cart.lineItems.attributes.serviceProperties.endDate" }
|
|
768
|
-
]
|
|
620
|
+
paths: TRANSFORM_PATHS_2
|
|
769
621
|
},
|
|
770
622
|
{
|
|
771
623
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
772
|
-
paths:
|
|
773
|
-
{
|
|
774
|
-
path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
775
|
-
},
|
|
776
|
-
{ path: "cart.lineItems.attributes.physicalProperties.weight" },
|
|
777
|
-
{ path: "cart.deliveryInfo.address.geocode.latitude" },
|
|
778
|
-
{ path: "cart.deliveryInfo.address.geocode.longitude" },
|
|
779
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
780
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
781
|
-
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
782
|
-
]
|
|
624
|
+
paths: TRANSFORM_PATHS_3
|
|
783
625
|
}
|
|
784
626
|
])
|
|
785
627
|
};
|
|
@@ -806,35 +648,11 @@ function removeLineItems(payload) {
|
|
|
806
648
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
807
649
|
{
|
|
808
650
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
809
|
-
paths:
|
|
810
|
-
{ path: "cart.createdDate" },
|
|
811
|
-
{ path: "cart.updatedDate" },
|
|
812
|
-
{
|
|
813
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
814
|
-
},
|
|
815
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
816
|
-
{
|
|
817
|
-
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
818
|
-
},
|
|
819
|
-
{
|
|
820
|
-
path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
|
|
821
|
-
},
|
|
822
|
-
{ path: "cart.lineItems.attributes.serviceProperties.endDate" }
|
|
823
|
-
]
|
|
651
|
+
paths: TRANSFORM_PATHS_2
|
|
824
652
|
},
|
|
825
653
|
{
|
|
826
654
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
827
|
-
paths:
|
|
828
|
-
{
|
|
829
|
-
path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
830
|
-
},
|
|
831
|
-
{ path: "cart.lineItems.attributes.physicalProperties.weight" },
|
|
832
|
-
{ path: "cart.deliveryInfo.address.geocode.latitude" },
|
|
833
|
-
{ path: "cart.deliveryInfo.address.geocode.longitude" },
|
|
834
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
835
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
836
|
-
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
837
|
-
]
|
|
655
|
+
paths: TRANSFORM_PATHS_3
|
|
838
656
|
}
|
|
839
657
|
])
|
|
840
658
|
};
|
|
@@ -861,35 +679,11 @@ function updateLineItems(payload) {
|
|
|
861
679
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
862
680
|
{
|
|
863
681
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
864
|
-
paths:
|
|
865
|
-
{ path: "cart.createdDate" },
|
|
866
|
-
{ path: "cart.updatedDate" },
|
|
867
|
-
{
|
|
868
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
869
|
-
},
|
|
870
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
871
|
-
{
|
|
872
|
-
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
873
|
-
},
|
|
874
|
-
{
|
|
875
|
-
path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
|
|
876
|
-
},
|
|
877
|
-
{ path: "cart.lineItems.attributes.serviceProperties.endDate" }
|
|
878
|
-
]
|
|
682
|
+
paths: TRANSFORM_PATHS_2
|
|
879
683
|
},
|
|
880
684
|
{
|
|
881
685
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
882
|
-
paths:
|
|
883
|
-
{
|
|
884
|
-
path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
885
|
-
},
|
|
886
|
-
{ path: "cart.lineItems.attributes.physicalProperties.weight" },
|
|
887
|
-
{ path: "cart.deliveryInfo.address.geocode.latitude" },
|
|
888
|
-
{ path: "cart.deliveryInfo.address.geocode.longitude" },
|
|
889
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
890
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
891
|
-
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
892
|
-
]
|
|
686
|
+
paths: TRANSFORM_PATHS_3
|
|
893
687
|
}
|
|
894
688
|
])
|
|
895
689
|
};
|
|
@@ -916,35 +710,11 @@ function addCoupon(payload) {
|
|
|
916
710
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
917
711
|
{
|
|
918
712
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
919
|
-
paths:
|
|
920
|
-
{ path: "cart.createdDate" },
|
|
921
|
-
{ path: "cart.updatedDate" },
|
|
922
|
-
{
|
|
923
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
924
|
-
},
|
|
925
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
926
|
-
{
|
|
927
|
-
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
928
|
-
},
|
|
929
|
-
{
|
|
930
|
-
path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
|
|
931
|
-
},
|
|
932
|
-
{ path: "cart.lineItems.attributes.serviceProperties.endDate" }
|
|
933
|
-
]
|
|
713
|
+
paths: TRANSFORM_PATHS_2
|
|
934
714
|
},
|
|
935
715
|
{
|
|
936
716
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
937
|
-
paths:
|
|
938
|
-
{
|
|
939
|
-
path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
940
|
-
},
|
|
941
|
-
{ path: "cart.lineItems.attributes.physicalProperties.weight" },
|
|
942
|
-
{ path: "cart.deliveryInfo.address.geocode.latitude" },
|
|
943
|
-
{ path: "cart.deliveryInfo.address.geocode.longitude" },
|
|
944
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
945
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
946
|
-
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
947
|
-
]
|
|
717
|
+
paths: TRANSFORM_PATHS_3
|
|
948
718
|
}
|
|
949
719
|
])
|
|
950
720
|
};
|
|
@@ -971,35 +741,11 @@ function removeCoupon(payload) {
|
|
|
971
741
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
972
742
|
{
|
|
973
743
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
974
|
-
paths:
|
|
975
|
-
{ path: "cart.createdDate" },
|
|
976
|
-
{ path: "cart.updatedDate" },
|
|
977
|
-
{
|
|
978
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
979
|
-
},
|
|
980
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
981
|
-
{
|
|
982
|
-
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
983
|
-
},
|
|
984
|
-
{
|
|
985
|
-
path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
|
|
986
|
-
},
|
|
987
|
-
{ path: "cart.lineItems.attributes.serviceProperties.endDate" }
|
|
988
|
-
]
|
|
744
|
+
paths: TRANSFORM_PATHS_2
|
|
989
745
|
},
|
|
990
746
|
{
|
|
991
747
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
992
|
-
paths:
|
|
993
|
-
{
|
|
994
|
-
path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
995
|
-
},
|
|
996
|
-
{ path: "cart.lineItems.attributes.physicalProperties.weight" },
|
|
997
|
-
{ path: "cart.deliveryInfo.address.geocode.latitude" },
|
|
998
|
-
{ path: "cart.deliveryInfo.address.geocode.longitude" },
|
|
999
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
1000
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
1001
|
-
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
1002
|
-
]
|
|
748
|
+
paths: TRANSFORM_PATHS_3
|
|
1003
749
|
}
|
|
1004
750
|
])
|
|
1005
751
|
};
|
|
@@ -1026,35 +772,11 @@ function setDeliveryMethod(payload) {
|
|
|
1026
772
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1027
773
|
{
|
|
1028
774
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1029
|
-
paths:
|
|
1030
|
-
{ path: "cart.createdDate" },
|
|
1031
|
-
{ path: "cart.updatedDate" },
|
|
1032
|
-
{
|
|
1033
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
1034
|
-
},
|
|
1035
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
1036
|
-
{
|
|
1037
|
-
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
1038
|
-
},
|
|
1039
|
-
{
|
|
1040
|
-
path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
|
|
1041
|
-
},
|
|
1042
|
-
{ path: "cart.lineItems.attributes.serviceProperties.endDate" }
|
|
1043
|
-
]
|
|
775
|
+
paths: TRANSFORM_PATHS_2
|
|
1044
776
|
},
|
|
1045
777
|
{
|
|
1046
778
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1047
|
-
paths:
|
|
1048
|
-
{
|
|
1049
|
-
path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
1050
|
-
},
|
|
1051
|
-
{ path: "cart.lineItems.attributes.physicalProperties.weight" },
|
|
1052
|
-
{ path: "cart.deliveryInfo.address.geocode.latitude" },
|
|
1053
|
-
{ path: "cart.deliveryInfo.address.geocode.longitude" },
|
|
1054
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
1055
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
1056
|
-
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
1057
|
-
]
|
|
779
|
+
paths: TRANSFORM_PATHS_3
|
|
1058
780
|
}
|
|
1059
781
|
])
|
|
1060
782
|
};
|
|
@@ -1081,35 +803,11 @@ function removeDeliveryMethod(payload) {
|
|
|
1081
803
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1082
804
|
{
|
|
1083
805
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1084
|
-
paths:
|
|
1085
|
-
{ path: "cart.createdDate" },
|
|
1086
|
-
{ path: "cart.updatedDate" },
|
|
1087
|
-
{
|
|
1088
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
1089
|
-
},
|
|
1090
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
1091
|
-
{
|
|
1092
|
-
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
1093
|
-
},
|
|
1094
|
-
{
|
|
1095
|
-
path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
|
|
1096
|
-
},
|
|
1097
|
-
{ path: "cart.lineItems.attributes.serviceProperties.endDate" }
|
|
1098
|
-
]
|
|
806
|
+
paths: TRANSFORM_PATHS_2
|
|
1099
807
|
},
|
|
1100
808
|
{
|
|
1101
809
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1102
|
-
paths:
|
|
1103
|
-
{
|
|
1104
|
-
path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
1105
|
-
},
|
|
1106
|
-
{ path: "cart.lineItems.attributes.physicalProperties.weight" },
|
|
1107
|
-
{ path: "cart.deliveryInfo.address.geocode.latitude" },
|
|
1108
|
-
{ path: "cart.deliveryInfo.address.geocode.longitude" },
|
|
1109
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
1110
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
1111
|
-
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
1112
|
-
]
|
|
810
|
+
paths: TRANSFORM_PATHS_3
|
|
1113
811
|
}
|
|
1114
812
|
])
|
|
1115
813
|
};
|
|
@@ -1136,35 +834,11 @@ function addGiftCard(payload) {
|
|
|
1136
834
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1137
835
|
{
|
|
1138
836
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1139
|
-
paths:
|
|
1140
|
-
{ path: "cart.createdDate" },
|
|
1141
|
-
{ path: "cart.updatedDate" },
|
|
1142
|
-
{
|
|
1143
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
1144
|
-
},
|
|
1145
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
1146
|
-
{
|
|
1147
|
-
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
1148
|
-
},
|
|
1149
|
-
{
|
|
1150
|
-
path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
|
|
1151
|
-
},
|
|
1152
|
-
{ path: "cart.lineItems.attributes.serviceProperties.endDate" }
|
|
1153
|
-
]
|
|
837
|
+
paths: TRANSFORM_PATHS_2
|
|
1154
838
|
},
|
|
1155
839
|
{
|
|
1156
840
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1157
|
-
paths:
|
|
1158
|
-
{
|
|
1159
|
-
path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
1160
|
-
},
|
|
1161
|
-
{ path: "cart.lineItems.attributes.physicalProperties.weight" },
|
|
1162
|
-
{ path: "cart.deliveryInfo.address.geocode.latitude" },
|
|
1163
|
-
{ path: "cart.deliveryInfo.address.geocode.longitude" },
|
|
1164
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
1165
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
1166
|
-
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
1167
|
-
]
|
|
841
|
+
paths: TRANSFORM_PATHS_3
|
|
1168
842
|
}
|
|
1169
843
|
])
|
|
1170
844
|
};
|
|
@@ -1191,35 +865,11 @@ function removeGiftCard(payload) {
|
|
|
1191
865
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1192
866
|
{
|
|
1193
867
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1194
|
-
paths:
|
|
1195
|
-
{ path: "cart.createdDate" },
|
|
1196
|
-
{ path: "cart.updatedDate" },
|
|
1197
|
-
{
|
|
1198
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
1199
|
-
},
|
|
1200
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
1201
|
-
{
|
|
1202
|
-
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
1203
|
-
},
|
|
1204
|
-
{
|
|
1205
|
-
path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
|
|
1206
|
-
},
|
|
1207
|
-
{ path: "cart.lineItems.attributes.serviceProperties.endDate" }
|
|
1208
|
-
]
|
|
868
|
+
paths: TRANSFORM_PATHS_2
|
|
1209
869
|
},
|
|
1210
870
|
{
|
|
1211
871
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1212
|
-
paths:
|
|
1213
|
-
{
|
|
1214
|
-
path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
1215
|
-
},
|
|
1216
|
-
{ path: "cart.lineItems.attributes.physicalProperties.weight" },
|
|
1217
|
-
{ path: "cart.deliveryInfo.address.geocode.latitude" },
|
|
1218
|
-
{ path: "cart.deliveryInfo.address.geocode.longitude" },
|
|
1219
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
1220
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
1221
|
-
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
1222
|
-
]
|
|
872
|
+
paths: TRANSFORM_PATHS_3
|
|
1223
873
|
}
|
|
1224
874
|
])
|
|
1225
875
|
};
|
|
@@ -1246,35 +896,11 @@ function markCartAsCompleted(payload) {
|
|
|
1246
896
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1247
897
|
{
|
|
1248
898
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1249
|
-
paths:
|
|
1250
|
-
{ path: "cart.createdDate" },
|
|
1251
|
-
{ path: "cart.updatedDate" },
|
|
1252
|
-
{
|
|
1253
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
1254
|
-
},
|
|
1255
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
1256
|
-
{
|
|
1257
|
-
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
1258
|
-
},
|
|
1259
|
-
{
|
|
1260
|
-
path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
|
|
1261
|
-
},
|
|
1262
|
-
{ path: "cart.lineItems.attributes.serviceProperties.endDate" }
|
|
1263
|
-
]
|
|
899
|
+
paths: TRANSFORM_PATHS_2
|
|
1264
900
|
},
|
|
1265
901
|
{
|
|
1266
902
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1267
|
-
paths:
|
|
1268
|
-
{
|
|
1269
|
-
path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
1270
|
-
},
|
|
1271
|
-
{ path: "cart.lineItems.attributes.physicalProperties.weight" },
|
|
1272
|
-
{ path: "cart.deliveryInfo.address.geocode.latitude" },
|
|
1273
|
-
{ path: "cart.deliveryInfo.address.geocode.longitude" },
|
|
1274
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
1275
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
1276
|
-
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
1277
|
-
]
|
|
903
|
+
paths: TRANSFORM_PATHS_3
|
|
1278
904
|
}
|
|
1279
905
|
])
|
|
1280
906
|
};
|
|
@@ -1301,7 +927,7 @@ function handleAsyncCheckoutCompletion(payload) {
|
|
|
1301
927
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1302
928
|
{
|
|
1303
929
|
transformFn: import_bytes.transformRESTBytesToSDKBytes,
|
|
1304
|
-
paths:
|
|
930
|
+
paths: TRANSFORM_PATHS_8
|
|
1305
931
|
}
|
|
1306
932
|
])
|
|
1307
933
|
};
|
|
@@ -1328,35 +954,11 @@ function updateFormSubmissions(payload) {
|
|
|
1328
954
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1329
955
|
{
|
|
1330
956
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1331
|
-
paths:
|
|
1332
|
-
{ path: "cart.createdDate" },
|
|
1333
|
-
{ path: "cart.updatedDate" },
|
|
1334
|
-
{
|
|
1335
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
1336
|
-
},
|
|
1337
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
1338
|
-
{
|
|
1339
|
-
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
1340
|
-
},
|
|
1341
|
-
{
|
|
1342
|
-
path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
|
|
1343
|
-
},
|
|
1344
|
-
{ path: "cart.lineItems.attributes.serviceProperties.endDate" }
|
|
1345
|
-
]
|
|
957
|
+
paths: TRANSFORM_PATHS_2
|
|
1346
958
|
},
|
|
1347
959
|
{
|
|
1348
960
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1349
|
-
paths:
|
|
1350
|
-
{
|
|
1351
|
-
path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
1352
|
-
},
|
|
1353
|
-
{ path: "cart.lineItems.attributes.physicalProperties.weight" },
|
|
1354
|
-
{ path: "cart.deliveryInfo.address.geocode.latitude" },
|
|
1355
|
-
{ path: "cart.deliveryInfo.address.geocode.longitude" },
|
|
1356
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
1357
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
1358
|
-
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
1359
|
-
]
|
|
961
|
+
paths: TRANSFORM_PATHS_3
|
|
1360
962
|
}
|
|
1361
963
|
])
|
|
1362
964
|
};
|
|
@@ -1373,6 +975,30 @@ var import_image2 = require("@wix/sdk-runtime/transformations/image");
|
|
|
1373
975
|
var import_page_url_v2 = require("@wix/sdk-runtime/transformations/page-url-v2");
|
|
1374
976
|
var import_page_url_v22 = require("@wix/sdk-runtime/transformations/page-url-v2");
|
|
1375
977
|
var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
978
|
+
var TRANSFORM_PATHS_02 = [
|
|
979
|
+
{ path: "cart.lineItems.source.catalogOverrideFields.image" },
|
|
980
|
+
{ path: "cart.lineItems.attributes.image" },
|
|
981
|
+
{ path: "catalogItems.catalogOverrideFields.image" },
|
|
982
|
+
{ path: "customItems.attributes.image" }
|
|
983
|
+
];
|
|
984
|
+
var TRANSFORM_PATHS_12 = [
|
|
985
|
+
{ path: "cart.lineItems.attributes.url" },
|
|
986
|
+
{ path: "customItems.attributes.url" }
|
|
987
|
+
];
|
|
988
|
+
var TRANSFORM_PATHS_22 = [
|
|
989
|
+
{ path: "cart.deliveryInfo.address" },
|
|
990
|
+
{ path: "cart.paymentInfo.billingAddress" }
|
|
991
|
+
];
|
|
992
|
+
var TRANSFORM_PATHS_32 = [
|
|
993
|
+
{ path: "cart.lineItems.source.catalogOverrideFields.image" },
|
|
994
|
+
{ path: "cart.lineItems.attributes.image" }
|
|
995
|
+
];
|
|
996
|
+
var TRANSFORM_PATHS_42 = [{ path: "cart.lineItems.attributes.url" }];
|
|
997
|
+
var TRANSFORM_PATHS_52 = [
|
|
998
|
+
{ path: "catalogItems.catalogOverrideFields.image" },
|
|
999
|
+
{ path: "customItems.attributes.image" }
|
|
1000
|
+
];
|
|
1001
|
+
var TRANSFORM_PATHS_62 = [{ path: "customItems.attributes.url" }];
|
|
1376
1002
|
var DescriptionLineType = /* @__PURE__ */ ((DescriptionLineType2) => {
|
|
1377
1003
|
DescriptionLineType2["UNRECOGNISED"] = "UNRECOGNISED";
|
|
1378
1004
|
DescriptionLineType2["PLAIN_TEXT"] = "PLAIN_TEXT";
|
|
@@ -1725,26 +1351,15 @@ async function createCart2(options) {
|
|
|
1725
1351
|
[
|
|
1726
1352
|
{
|
|
1727
1353
|
transformFn: import_image.transformSDKImageToRESTImage,
|
|
1728
|
-
paths:
|
|
1729
|
-
{ path: "cart.lineItems.source.catalogOverrideFields.image" },
|
|
1730
|
-
{ path: "cart.lineItems.attributes.image" },
|
|
1731
|
-
{ path: "catalogItems.catalogOverrideFields.image" },
|
|
1732
|
-
{ path: "customItems.attributes.image" }
|
|
1733
|
-
]
|
|
1354
|
+
paths: TRANSFORM_PATHS_02
|
|
1734
1355
|
},
|
|
1735
1356
|
{
|
|
1736
1357
|
transformFn: import_page_url_v2.transformSDKPageURLV2ToRESTPageURLV2,
|
|
1737
|
-
paths:
|
|
1738
|
-
{ path: "cart.lineItems.attributes.url" },
|
|
1739
|
-
{ path: "customItems.attributes.url" }
|
|
1740
|
-
]
|
|
1358
|
+
paths: TRANSFORM_PATHS_12
|
|
1741
1359
|
},
|
|
1742
1360
|
{
|
|
1743
1361
|
transformFn: import_address.transformSDKAddressToRESTAddress,
|
|
1744
|
-
paths:
|
|
1745
|
-
{ path: "cart.deliveryInfo.address" },
|
|
1746
|
-
{ path: "cart.paymentInfo.billingAddress" }
|
|
1747
|
-
]
|
|
1362
|
+
paths: TRANSFORM_PATHS_22
|
|
1748
1363
|
}
|
|
1749
1364
|
]
|
|
1750
1365
|
);
|
|
@@ -1757,21 +1372,15 @@ async function createCart2(options) {
|
|
|
1757
1372
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1758
1373
|
{
|
|
1759
1374
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1760
|
-
paths:
|
|
1761
|
-
{ path: "cart.lineItems.source.catalogOverrideFields.image" },
|
|
1762
|
-
{ path: "cart.lineItems.attributes.image" }
|
|
1763
|
-
]
|
|
1375
|
+
paths: TRANSFORM_PATHS_32
|
|
1764
1376
|
},
|
|
1765
1377
|
{
|
|
1766
1378
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
1767
|
-
paths:
|
|
1379
|
+
paths: TRANSFORM_PATHS_42
|
|
1768
1380
|
},
|
|
1769
1381
|
{
|
|
1770
1382
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
1771
|
-
paths:
|
|
1772
|
-
{ path: "cart.deliveryInfo.address" },
|
|
1773
|
-
{ path: "cart.paymentInfo.billingAddress" }
|
|
1774
|
-
]
|
|
1383
|
+
paths: TRANSFORM_PATHS_22
|
|
1775
1384
|
}
|
|
1776
1385
|
])
|
|
1777
1386
|
)?.cart;
|
|
@@ -1808,21 +1417,15 @@ async function getCart2(cartId) {
|
|
|
1808
1417
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1809
1418
|
{
|
|
1810
1419
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1811
|
-
paths:
|
|
1812
|
-
{ path: "cart.lineItems.source.catalogOverrideFields.image" },
|
|
1813
|
-
{ path: "cart.lineItems.attributes.image" }
|
|
1814
|
-
]
|
|
1420
|
+
paths: TRANSFORM_PATHS_32
|
|
1815
1421
|
},
|
|
1816
1422
|
{
|
|
1817
1423
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
1818
|
-
paths:
|
|
1424
|
+
paths: TRANSFORM_PATHS_42
|
|
1819
1425
|
},
|
|
1820
1426
|
{
|
|
1821
1427
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
1822
|
-
paths:
|
|
1823
|
-
{ path: "cart.deliveryInfo.address" },
|
|
1824
|
-
{ path: "cart.paymentInfo.billingAddress" }
|
|
1825
|
-
]
|
|
1428
|
+
paths: TRANSFORM_PATHS_22
|
|
1826
1429
|
}
|
|
1827
1430
|
])
|
|
1828
1431
|
)?.cart;
|
|
@@ -1870,21 +1473,15 @@ async function updateCart2(_id, cart) {
|
|
|
1870
1473
|
[
|
|
1871
1474
|
{
|
|
1872
1475
|
transformFn: import_image.transformSDKImageToRESTImage,
|
|
1873
|
-
paths:
|
|
1874
|
-
{ path: "cart.lineItems.source.catalogOverrideFields.image" },
|
|
1875
|
-
{ path: "cart.lineItems.attributes.image" }
|
|
1876
|
-
]
|
|
1476
|
+
paths: TRANSFORM_PATHS_32
|
|
1877
1477
|
},
|
|
1878
1478
|
{
|
|
1879
1479
|
transformFn: import_page_url_v2.transformSDKPageURLV2ToRESTPageURLV2,
|
|
1880
|
-
paths:
|
|
1480
|
+
paths: TRANSFORM_PATHS_42
|
|
1881
1481
|
},
|
|
1882
1482
|
{
|
|
1883
1483
|
transformFn: import_address.transformSDKAddressToRESTAddress,
|
|
1884
|
-
paths:
|
|
1885
|
-
{ path: "cart.deliveryInfo.address" },
|
|
1886
|
-
{ path: "cart.paymentInfo.billingAddress" }
|
|
1887
|
-
]
|
|
1484
|
+
paths: TRANSFORM_PATHS_22
|
|
1888
1485
|
}
|
|
1889
1486
|
]
|
|
1890
1487
|
);
|
|
@@ -1897,21 +1494,15 @@ async function updateCart2(_id, cart) {
|
|
|
1897
1494
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1898
1495
|
{
|
|
1899
1496
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1900
|
-
paths:
|
|
1901
|
-
{ path: "cart.lineItems.source.catalogOverrideFields.image" },
|
|
1902
|
-
{ path: "cart.lineItems.attributes.image" }
|
|
1903
|
-
]
|
|
1497
|
+
paths: TRANSFORM_PATHS_32
|
|
1904
1498
|
},
|
|
1905
1499
|
{
|
|
1906
1500
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
1907
|
-
paths:
|
|
1501
|
+
paths: TRANSFORM_PATHS_42
|
|
1908
1502
|
},
|
|
1909
1503
|
{
|
|
1910
1504
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
1911
|
-
paths:
|
|
1912
|
-
{ path: "cart.deliveryInfo.address" },
|
|
1913
|
-
{ path: "cart.paymentInfo.billingAddress" }
|
|
1914
|
-
]
|
|
1505
|
+
paths: TRANSFORM_PATHS_22
|
|
1915
1506
|
}
|
|
1916
1507
|
])
|
|
1917
1508
|
)?.cart;
|
|
@@ -1963,21 +1554,15 @@ async function refreshCart2(cartId) {
|
|
|
1963
1554
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1964
1555
|
{
|
|
1965
1556
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1966
|
-
paths:
|
|
1967
|
-
{ path: "cart.lineItems.source.catalogOverrideFields.image" },
|
|
1968
|
-
{ path: "cart.lineItems.attributes.image" }
|
|
1969
|
-
]
|
|
1557
|
+
paths: TRANSFORM_PATHS_32
|
|
1970
1558
|
},
|
|
1971
1559
|
{
|
|
1972
1560
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
1973
|
-
paths:
|
|
1561
|
+
paths: TRANSFORM_PATHS_42
|
|
1974
1562
|
},
|
|
1975
1563
|
{
|
|
1976
1564
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
1977
|
-
paths:
|
|
1978
|
-
{ path: "cart.deliveryInfo.address" },
|
|
1979
|
-
{ path: "cart.paymentInfo.billingAddress" }
|
|
1980
|
-
]
|
|
1565
|
+
paths: TRANSFORM_PATHS_22
|
|
1981
1566
|
}
|
|
1982
1567
|
])
|
|
1983
1568
|
);
|
|
@@ -2015,21 +1600,15 @@ async function estimateCart2(cartId, options) {
|
|
|
2015
1600
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
2016
1601
|
{
|
|
2017
1602
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
2018
|
-
paths:
|
|
2019
|
-
{ path: "cart.lineItems.source.catalogOverrideFields.image" },
|
|
2020
|
-
{ path: "cart.lineItems.attributes.image" }
|
|
2021
|
-
]
|
|
1603
|
+
paths: TRANSFORM_PATHS_32
|
|
2022
1604
|
},
|
|
2023
1605
|
{
|
|
2024
1606
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
2025
|
-
paths:
|
|
1607
|
+
paths: TRANSFORM_PATHS_42
|
|
2026
1608
|
},
|
|
2027
1609
|
{
|
|
2028
1610
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
2029
|
-
paths:
|
|
2030
|
-
{ path: "cart.deliveryInfo.address" },
|
|
2031
|
-
{ path: "cart.paymentInfo.billingAddress" }
|
|
2032
|
-
]
|
|
1611
|
+
paths: TRANSFORM_PATHS_22
|
|
2033
1612
|
}
|
|
2034
1613
|
])
|
|
2035
1614
|
);
|
|
@@ -2070,21 +1649,15 @@ async function calculateCart2(cartId, options) {
|
|
|
2070
1649
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
2071
1650
|
{
|
|
2072
1651
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
2073
|
-
paths:
|
|
2074
|
-
{ path: "cart.lineItems.source.catalogOverrideFields.image" },
|
|
2075
|
-
{ path: "cart.lineItems.attributes.image" }
|
|
2076
|
-
]
|
|
1652
|
+
paths: TRANSFORM_PATHS_32
|
|
2077
1653
|
},
|
|
2078
1654
|
{
|
|
2079
1655
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
2080
|
-
paths:
|
|
1656
|
+
paths: TRANSFORM_PATHS_42
|
|
2081
1657
|
},
|
|
2082
1658
|
{
|
|
2083
1659
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
2084
|
-
paths:
|
|
2085
|
-
{ path: "cart.deliveryInfo.address" },
|
|
2086
|
-
{ path: "cart.paymentInfo.billingAddress" }
|
|
2087
|
-
]
|
|
1660
|
+
paths: TRANSFORM_PATHS_22
|
|
2088
1661
|
}
|
|
2089
1662
|
])
|
|
2090
1663
|
);
|
|
@@ -2184,14 +1757,11 @@ async function addLineItems2(cartId, options) {
|
|
|
2184
1757
|
[
|
|
2185
1758
|
{
|
|
2186
1759
|
transformFn: import_image.transformSDKImageToRESTImage,
|
|
2187
|
-
paths:
|
|
2188
|
-
{ path: "catalogItems.catalogOverrideFields.image" },
|
|
2189
|
-
{ path: "customItems.attributes.image" }
|
|
2190
|
-
]
|
|
1760
|
+
paths: TRANSFORM_PATHS_52
|
|
2191
1761
|
},
|
|
2192
1762
|
{
|
|
2193
1763
|
transformFn: import_page_url_v2.transformSDKPageURLV2ToRESTPageURLV2,
|
|
2194
|
-
paths:
|
|
1764
|
+
paths: TRANSFORM_PATHS_62
|
|
2195
1765
|
}
|
|
2196
1766
|
]
|
|
2197
1767
|
);
|
|
@@ -2204,21 +1774,15 @@ async function addLineItems2(cartId, options) {
|
|
|
2204
1774
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
2205
1775
|
{
|
|
2206
1776
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
2207
|
-
paths:
|
|
2208
|
-
{ path: "cart.lineItems.source.catalogOverrideFields.image" },
|
|
2209
|
-
{ path: "cart.lineItems.attributes.image" }
|
|
2210
|
-
]
|
|
1777
|
+
paths: TRANSFORM_PATHS_32
|
|
2211
1778
|
},
|
|
2212
1779
|
{
|
|
2213
1780
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
2214
|
-
paths:
|
|
1781
|
+
paths: TRANSFORM_PATHS_42
|
|
2215
1782
|
},
|
|
2216
1783
|
{
|
|
2217
1784
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
2218
|
-
paths:
|
|
2219
|
-
{ path: "cart.deliveryInfo.address" },
|
|
2220
|
-
{ path: "cart.paymentInfo.billingAddress" }
|
|
2221
|
-
]
|
|
1785
|
+
paths: TRANSFORM_PATHS_22
|
|
2222
1786
|
}
|
|
2223
1787
|
])
|
|
2224
1788
|
);
|
|
@@ -2255,21 +1819,15 @@ async function removeLineItems2(cartId, lineItemIds) {
|
|
|
2255
1819
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
2256
1820
|
{
|
|
2257
1821
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
2258
|
-
paths:
|
|
2259
|
-
{ path: "cart.lineItems.source.catalogOverrideFields.image" },
|
|
2260
|
-
{ path: "cart.lineItems.attributes.image" }
|
|
2261
|
-
]
|
|
1822
|
+
paths: TRANSFORM_PATHS_32
|
|
2262
1823
|
},
|
|
2263
1824
|
{
|
|
2264
1825
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
2265
|
-
paths:
|
|
1826
|
+
paths: TRANSFORM_PATHS_42
|
|
2266
1827
|
},
|
|
2267
1828
|
{
|
|
2268
1829
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
2269
|
-
paths:
|
|
2270
|
-
{ path: "cart.deliveryInfo.address" },
|
|
2271
|
-
{ path: "cart.paymentInfo.billingAddress" }
|
|
2272
|
-
]
|
|
1830
|
+
paths: TRANSFORM_PATHS_22
|
|
2273
1831
|
}
|
|
2274
1832
|
])
|
|
2275
1833
|
);
|
|
@@ -2302,21 +1860,15 @@ async function updateLineItems2(cartId, options) {
|
|
|
2302
1860
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
2303
1861
|
{
|
|
2304
1862
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
2305
|
-
paths:
|
|
2306
|
-
{ path: "cart.lineItems.source.catalogOverrideFields.image" },
|
|
2307
|
-
{ path: "cart.lineItems.attributes.image" }
|
|
2308
|
-
]
|
|
1863
|
+
paths: TRANSFORM_PATHS_32
|
|
2309
1864
|
},
|
|
2310
1865
|
{
|
|
2311
1866
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
2312
|
-
paths:
|
|
1867
|
+
paths: TRANSFORM_PATHS_42
|
|
2313
1868
|
},
|
|
2314
1869
|
{
|
|
2315
1870
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
2316
|
-
paths:
|
|
2317
|
-
{ path: "cart.deliveryInfo.address" },
|
|
2318
|
-
{ path: "cart.paymentInfo.billingAddress" }
|
|
2319
|
-
]
|
|
1871
|
+
paths: TRANSFORM_PATHS_22
|
|
2320
1872
|
}
|
|
2321
1873
|
])
|
|
2322
1874
|
);
|
|
@@ -2352,21 +1904,15 @@ async function addCoupon2(cartId, coupon) {
|
|
|
2352
1904
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
2353
1905
|
{
|
|
2354
1906
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
2355
|
-
paths:
|
|
2356
|
-
{ path: "cart.lineItems.source.catalogOverrideFields.image" },
|
|
2357
|
-
{ path: "cart.lineItems.attributes.image" }
|
|
2358
|
-
]
|
|
1907
|
+
paths: TRANSFORM_PATHS_32
|
|
2359
1908
|
},
|
|
2360
1909
|
{
|
|
2361
1910
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
2362
|
-
paths:
|
|
1911
|
+
paths: TRANSFORM_PATHS_42
|
|
2363
1912
|
},
|
|
2364
1913
|
{
|
|
2365
1914
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
2366
|
-
paths:
|
|
2367
|
-
{ path: "cart.deliveryInfo.address" },
|
|
2368
|
-
{ path: "cart.paymentInfo.billingAddress" }
|
|
2369
|
-
]
|
|
1915
|
+
paths: TRANSFORM_PATHS_22
|
|
2370
1916
|
}
|
|
2371
1917
|
])
|
|
2372
1918
|
);
|
|
@@ -2399,21 +1945,15 @@ async function removeCoupon2(cartId, couponId) {
|
|
|
2399
1945
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
2400
1946
|
{
|
|
2401
1947
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
2402
|
-
paths:
|
|
2403
|
-
{ path: "cart.lineItems.source.catalogOverrideFields.image" },
|
|
2404
|
-
{ path: "cart.lineItems.attributes.image" }
|
|
2405
|
-
]
|
|
1948
|
+
paths: TRANSFORM_PATHS_32
|
|
2406
1949
|
},
|
|
2407
1950
|
{
|
|
2408
1951
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
2409
|
-
paths:
|
|
1952
|
+
paths: TRANSFORM_PATHS_42
|
|
2410
1953
|
},
|
|
2411
1954
|
{
|
|
2412
1955
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
2413
|
-
paths:
|
|
2414
|
-
{ path: "cart.deliveryInfo.address" },
|
|
2415
|
-
{ path: "cart.paymentInfo.billingAddress" }
|
|
2416
|
-
]
|
|
1956
|
+
paths: TRANSFORM_PATHS_22
|
|
2417
1957
|
}
|
|
2418
1958
|
])
|
|
2419
1959
|
);
|
|
@@ -2446,21 +1986,15 @@ async function setDeliveryMethod2(cartId, deliveryMethod) {
|
|
|
2446
1986
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
2447
1987
|
{
|
|
2448
1988
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
2449
|
-
paths:
|
|
2450
|
-
{ path: "cart.lineItems.source.catalogOverrideFields.image" },
|
|
2451
|
-
{ path: "cart.lineItems.attributes.image" }
|
|
2452
|
-
]
|
|
1989
|
+
paths: TRANSFORM_PATHS_32
|
|
2453
1990
|
},
|
|
2454
1991
|
{
|
|
2455
1992
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
2456
|
-
paths:
|
|
1993
|
+
paths: TRANSFORM_PATHS_42
|
|
2457
1994
|
},
|
|
2458
1995
|
{
|
|
2459
1996
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
2460
|
-
paths:
|
|
2461
|
-
{ path: "cart.deliveryInfo.address" },
|
|
2462
|
-
{ path: "cart.paymentInfo.billingAddress" }
|
|
2463
|
-
]
|
|
1997
|
+
paths: TRANSFORM_PATHS_22
|
|
2464
1998
|
}
|
|
2465
1999
|
])
|
|
2466
2000
|
);
|
|
@@ -2490,21 +2024,15 @@ async function removeDeliveryMethod2(cartId) {
|
|
|
2490
2024
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
2491
2025
|
{
|
|
2492
2026
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
2493
|
-
paths:
|
|
2494
|
-
{ path: "cart.lineItems.source.catalogOverrideFields.image" },
|
|
2495
|
-
{ path: "cart.lineItems.attributes.image" }
|
|
2496
|
-
]
|
|
2027
|
+
paths: TRANSFORM_PATHS_32
|
|
2497
2028
|
},
|
|
2498
2029
|
{
|
|
2499
2030
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
2500
|
-
paths:
|
|
2031
|
+
paths: TRANSFORM_PATHS_42
|
|
2501
2032
|
},
|
|
2502
2033
|
{
|
|
2503
2034
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
2504
|
-
paths:
|
|
2505
|
-
{ path: "cart.deliveryInfo.address" },
|
|
2506
|
-
{ path: "cart.paymentInfo.billingAddress" }
|
|
2507
|
-
]
|
|
2035
|
+
paths: TRANSFORM_PATHS_22
|
|
2508
2036
|
}
|
|
2509
2037
|
])
|
|
2510
2038
|
);
|
|
@@ -2537,21 +2065,15 @@ async function addGiftCard2(cartId, giftCard) {
|
|
|
2537
2065
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
2538
2066
|
{
|
|
2539
2067
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
2540
|
-
paths:
|
|
2541
|
-
{ path: "cart.lineItems.source.catalogOverrideFields.image" },
|
|
2542
|
-
{ path: "cart.lineItems.attributes.image" }
|
|
2543
|
-
]
|
|
2068
|
+
paths: TRANSFORM_PATHS_32
|
|
2544
2069
|
},
|
|
2545
2070
|
{
|
|
2546
2071
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
2547
|
-
paths:
|
|
2072
|
+
paths: TRANSFORM_PATHS_42
|
|
2548
2073
|
},
|
|
2549
2074
|
{
|
|
2550
2075
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
2551
|
-
paths:
|
|
2552
|
-
{ path: "cart.deliveryInfo.address" },
|
|
2553
|
-
{ path: "cart.paymentInfo.billingAddress" }
|
|
2554
|
-
]
|
|
2076
|
+
paths: TRANSFORM_PATHS_22
|
|
2555
2077
|
}
|
|
2556
2078
|
])
|
|
2557
2079
|
);
|
|
@@ -2584,21 +2106,15 @@ async function removeGiftCard2(cartId, giftCardId) {
|
|
|
2584
2106
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
2585
2107
|
{
|
|
2586
2108
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
2587
|
-
paths:
|
|
2588
|
-
{ path: "cart.lineItems.source.catalogOverrideFields.image" },
|
|
2589
|
-
{ path: "cart.lineItems.attributes.image" }
|
|
2590
|
-
]
|
|
2109
|
+
paths: TRANSFORM_PATHS_32
|
|
2591
2110
|
},
|
|
2592
2111
|
{
|
|
2593
2112
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
2594
|
-
paths:
|
|
2113
|
+
paths: TRANSFORM_PATHS_42
|
|
2595
2114
|
},
|
|
2596
2115
|
{
|
|
2597
2116
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
2598
|
-
paths:
|
|
2599
|
-
{ path: "cart.deliveryInfo.address" },
|
|
2600
|
-
{ path: "cart.paymentInfo.billingAddress" }
|
|
2601
|
-
]
|
|
2117
|
+
paths: TRANSFORM_PATHS_22
|
|
2602
2118
|
}
|
|
2603
2119
|
])
|
|
2604
2120
|
);
|
|
@@ -2631,21 +2147,15 @@ async function markCartAsCompleted2(cartId, options) {
|
|
|
2631
2147
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
2632
2148
|
{
|
|
2633
2149
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
2634
|
-
paths:
|
|
2635
|
-
{ path: "cart.lineItems.source.catalogOverrideFields.image" },
|
|
2636
|
-
{ path: "cart.lineItems.attributes.image" }
|
|
2637
|
-
]
|
|
2150
|
+
paths: TRANSFORM_PATHS_32
|
|
2638
2151
|
},
|
|
2639
2152
|
{
|
|
2640
2153
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
2641
|
-
paths:
|
|
2154
|
+
paths: TRANSFORM_PATHS_42
|
|
2642
2155
|
},
|
|
2643
2156
|
{
|
|
2644
2157
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
2645
|
-
paths:
|
|
2646
|
-
{ path: "cart.deliveryInfo.address" },
|
|
2647
|
-
{ path: "cart.paymentInfo.billingAddress" }
|
|
2648
|
-
]
|
|
2158
|
+
paths: TRANSFORM_PATHS_22
|
|
2649
2159
|
}
|
|
2650
2160
|
])
|
|
2651
2161
|
);
|
|
@@ -2701,21 +2211,15 @@ async function updateFormSubmissions2(cartId, options) {
|
|
|
2701
2211
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
2702
2212
|
{
|
|
2703
2213
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
2704
|
-
paths:
|
|
2705
|
-
{ path: "cart.lineItems.source.catalogOverrideFields.image" },
|
|
2706
|
-
{ path: "cart.lineItems.attributes.image" }
|
|
2707
|
-
]
|
|
2214
|
+
paths: TRANSFORM_PATHS_32
|
|
2708
2215
|
},
|
|
2709
2216
|
{
|
|
2710
2217
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
2711
|
-
paths:
|
|
2218
|
+
paths: TRANSFORM_PATHS_42
|
|
2712
2219
|
},
|
|
2713
2220
|
{
|
|
2714
2221
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
2715
|
-
paths:
|
|
2716
|
-
{ path: "cart.deliveryInfo.address" },
|
|
2717
|
-
{ path: "cart.paymentInfo.billingAddress" }
|
|
2718
|
-
]
|
|
2222
|
+
paths: TRANSFORM_PATHS_22
|
|
2719
2223
|
}
|
|
2720
2224
|
])
|
|
2721
2225
|
);
|
|
@@ -2738,6 +2242,83 @@ async function updateFormSubmissions2(cartId, options) {
|
|
|
2738
2242
|
}
|
|
2739
2243
|
|
|
2740
2244
|
// src/ecom-v2-cart-cart-v-2.public.ts
|
|
2245
|
+
var TRANSFORM_PATHS_03 = [
|
|
2246
|
+
{ path: "data.paymentSummary.subscriptionCharges.charges.cycleBillingDate" },
|
|
2247
|
+
{ path: "metadata.eventTime" }
|
|
2248
|
+
];
|
|
2249
|
+
var TRANSFORM_PATHS_13 = [
|
|
2250
|
+
{ path: "entity.createdDate" },
|
|
2251
|
+
{ path: "entity.updatedDate" },
|
|
2252
|
+
{
|
|
2253
|
+
path: "entity.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
2254
|
+
},
|
|
2255
|
+
{ path: "entity.lineItems.attributes.serviceProperties.scheduledDate" },
|
|
2256
|
+
{ path: "entity.lineItems.attributes.serviceProperties.endDate" },
|
|
2257
|
+
{ path: "metadata.eventTime" }
|
|
2258
|
+
];
|
|
2259
|
+
var TRANSFORM_PATHS_23 = [
|
|
2260
|
+
{ path: "entity.lineItems.source.catalogOverrideFields.image" },
|
|
2261
|
+
{ path: "entity.lineItems.attributes.image" }
|
|
2262
|
+
];
|
|
2263
|
+
var TRANSFORM_PATHS_33 = [
|
|
2264
|
+
{
|
|
2265
|
+
path: "entity.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
2266
|
+
},
|
|
2267
|
+
{ path: "entity.lineItems.attributes.physicalProperties.weight" },
|
|
2268
|
+
{ path: "entity.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
2269
|
+
];
|
|
2270
|
+
var TRANSFORM_PATHS_43 = [{ path: "entity.lineItems.attributes.url" }];
|
|
2271
|
+
var TRANSFORM_PATHS_53 = [
|
|
2272
|
+
{ path: "entity.deliveryInfo.address" },
|
|
2273
|
+
{ path: "entity.paymentInfo.billingAddress" }
|
|
2274
|
+
];
|
|
2275
|
+
var TRANSFORM_PATHS_63 = [
|
|
2276
|
+
{ path: "entity.createdDate" },
|
|
2277
|
+
{ path: "entity.updatedDate" },
|
|
2278
|
+
{
|
|
2279
|
+
path: "entity.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
2280
|
+
},
|
|
2281
|
+
{ path: "entity.lineItems.attributes.serviceProperties.scheduledDate" },
|
|
2282
|
+
{ path: "entity.lineItems.attributes.serviceProperties.endDate" },
|
|
2283
|
+
{ path: "metadata.eventTime" },
|
|
2284
|
+
{ path: "modifiedFields.createdDate" },
|
|
2285
|
+
{ path: "modifiedFields.updatedDate" },
|
|
2286
|
+
{
|
|
2287
|
+
path: "modifiedFields.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
2288
|
+
},
|
|
2289
|
+
{
|
|
2290
|
+
path: "modifiedFields.lineItems.attributes.serviceProperties.scheduledDate"
|
|
2291
|
+
},
|
|
2292
|
+
{ path: "modifiedFields.lineItems.attributes.serviceProperties.endDate" }
|
|
2293
|
+
];
|
|
2294
|
+
var TRANSFORM_PATHS_72 = [
|
|
2295
|
+
{ path: "entity.lineItems.source.catalogOverrideFields.image" },
|
|
2296
|
+
{ path: "entity.lineItems.attributes.image" },
|
|
2297
|
+
{ path: "modifiedFields.lineItems.source.catalogOverrideFields.image" },
|
|
2298
|
+
{ path: "modifiedFields.lineItems.attributes.image" }
|
|
2299
|
+
];
|
|
2300
|
+
var TRANSFORM_PATHS_82 = [
|
|
2301
|
+
{
|
|
2302
|
+
path: "entity.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
2303
|
+
},
|
|
2304
|
+
{ path: "entity.lineItems.attributes.physicalProperties.weight" },
|
|
2305
|
+
{ path: "entity.tcAppliedDiscounts.merchantDiscount.percentage" },
|
|
2306
|
+
{
|
|
2307
|
+
path: "modifiedFields.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
2308
|
+
},
|
|
2309
|
+
{ path: "modifiedFields.lineItems.attributes.physicalProperties.weight" },
|
|
2310
|
+
{ path: "modifiedFields.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
2311
|
+
];
|
|
2312
|
+
var TRANSFORM_PATHS_9 = [
|
|
2313
|
+
{ path: "entity.lineItems.attributes.url" },
|
|
2314
|
+
{ path: "modifiedFields.lineItems.attributes.url" }
|
|
2315
|
+
];
|
|
2316
|
+
var TRANSFORM_PATHS_10 = [
|
|
2317
|
+
{ path: "entity.deliveryInfo.address" },
|
|
2318
|
+
{ path: "entity.paymentInfo.billingAddress" },
|
|
2319
|
+
{ path: "modifiedFields.deliveryInfo.address" },
|
|
2320
|
+
{ path: "modifiedFields.paymentInfo.billingAddress" }
|
|
2321
|
+
];
|
|
2741
2322
|
function createCart3(httpClient) {
|
|
2742
2323
|
return (options) => createCart2(
|
|
2743
2324
|
options,
|
|
@@ -2914,12 +2495,7 @@ var onCartCalculated = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
|
2914
2495
|
(0, import_transform_paths3.transformPaths)(event, [
|
|
2915
2496
|
{
|
|
2916
2497
|
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
2917
|
-
paths:
|
|
2918
|
-
{
|
|
2919
|
-
path: "data.paymentSummary.subscriptionCharges.charges.cycleBillingDate"
|
|
2920
|
-
},
|
|
2921
|
-
{ path: "metadata.eventTime" }
|
|
2922
|
-
]
|
|
2498
|
+
paths: TRANSFORM_PATHS_03
|
|
2923
2499
|
}
|
|
2924
2500
|
])
|
|
2925
2501
|
)
|
|
@@ -2931,46 +2507,23 @@ var onCartCreated = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
|
2931
2507
|
(0, import_transform_paths3.transformPaths)(event, [
|
|
2932
2508
|
{
|
|
2933
2509
|
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
2934
|
-
paths:
|
|
2935
|
-
{ path: "entity.createdDate" },
|
|
2936
|
-
{ path: "entity.updatedDate" },
|
|
2937
|
-
{
|
|
2938
|
-
path: "entity.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
2939
|
-
},
|
|
2940
|
-
{
|
|
2941
|
-
path: "entity.lineItems.attributes.serviceProperties.scheduledDate"
|
|
2942
|
-
},
|
|
2943
|
-
{ path: "entity.lineItems.attributes.serviceProperties.endDate" },
|
|
2944
|
-
{ path: "metadata.eventTime" }
|
|
2945
|
-
]
|
|
2510
|
+
paths: TRANSFORM_PATHS_13
|
|
2946
2511
|
},
|
|
2947
2512
|
{
|
|
2948
2513
|
transformFn: import_image3.transformRESTImageToSDKImage,
|
|
2949
|
-
paths:
|
|
2950
|
-
{ path: "entity.lineItems.source.catalogOverrideFields.image" },
|
|
2951
|
-
{ path: "entity.lineItems.attributes.image" }
|
|
2952
|
-
]
|
|
2514
|
+
paths: TRANSFORM_PATHS_23
|
|
2953
2515
|
},
|
|
2954
2516
|
{
|
|
2955
2517
|
transformFn: import_float3.transformRESTFloatToSDKFloat,
|
|
2956
|
-
paths:
|
|
2957
|
-
{
|
|
2958
|
-
path: "entity.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
2959
|
-
},
|
|
2960
|
-
{ path: "entity.lineItems.attributes.physicalProperties.weight" },
|
|
2961
|
-
{ path: "entity.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
2962
|
-
]
|
|
2518
|
+
paths: TRANSFORM_PATHS_33
|
|
2963
2519
|
},
|
|
2964
2520
|
{
|
|
2965
2521
|
transformFn: import_page_url_v23.transformRESTPageURLV2ToSDKPageURLV2,
|
|
2966
|
-
paths:
|
|
2522
|
+
paths: TRANSFORM_PATHS_43
|
|
2967
2523
|
},
|
|
2968
2524
|
{
|
|
2969
2525
|
transformFn: import_address3.transformRESTAddressToSDKAddress,
|
|
2970
|
-
paths:
|
|
2971
|
-
{ path: "entity.deliveryInfo.address" },
|
|
2972
|
-
{ path: "entity.paymentInfo.billingAddress" }
|
|
2973
|
-
]
|
|
2526
|
+
paths: TRANSFORM_PATHS_53
|
|
2974
2527
|
}
|
|
2975
2528
|
])
|
|
2976
2529
|
)
|
|
@@ -2982,46 +2535,23 @@ var onCartDeleted = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
|
2982
2535
|
(0, import_transform_paths3.transformPaths)(event, [
|
|
2983
2536
|
{
|
|
2984
2537
|
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
2985
|
-
paths:
|
|
2986
|
-
{ path: "entity.createdDate" },
|
|
2987
|
-
{ path: "entity.updatedDate" },
|
|
2988
|
-
{
|
|
2989
|
-
path: "entity.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
2990
|
-
},
|
|
2991
|
-
{
|
|
2992
|
-
path: "entity.lineItems.attributes.serviceProperties.scheduledDate"
|
|
2993
|
-
},
|
|
2994
|
-
{ path: "entity.lineItems.attributes.serviceProperties.endDate" },
|
|
2995
|
-
{ path: "metadata.eventTime" }
|
|
2996
|
-
]
|
|
2538
|
+
paths: TRANSFORM_PATHS_13
|
|
2997
2539
|
},
|
|
2998
2540
|
{
|
|
2999
2541
|
transformFn: import_image3.transformRESTImageToSDKImage,
|
|
3000
|
-
paths:
|
|
3001
|
-
{ path: "entity.lineItems.source.catalogOverrideFields.image" },
|
|
3002
|
-
{ path: "entity.lineItems.attributes.image" }
|
|
3003
|
-
]
|
|
2542
|
+
paths: TRANSFORM_PATHS_23
|
|
3004
2543
|
},
|
|
3005
2544
|
{
|
|
3006
2545
|
transformFn: import_float3.transformRESTFloatToSDKFloat,
|
|
3007
|
-
paths:
|
|
3008
|
-
{
|
|
3009
|
-
path: "entity.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
3010
|
-
},
|
|
3011
|
-
{ path: "entity.lineItems.attributes.physicalProperties.weight" },
|
|
3012
|
-
{ path: "entity.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
3013
|
-
]
|
|
2546
|
+
paths: TRANSFORM_PATHS_33
|
|
3014
2547
|
},
|
|
3015
2548
|
{
|
|
3016
2549
|
transformFn: import_page_url_v23.transformRESTPageURLV2ToSDKPageURLV2,
|
|
3017
|
-
paths:
|
|
2550
|
+
paths: TRANSFORM_PATHS_43
|
|
3018
2551
|
},
|
|
3019
2552
|
{
|
|
3020
2553
|
transformFn: import_address3.transformRESTAddressToSDKAddress,
|
|
3021
|
-
paths:
|
|
3022
|
-
{ path: "entity.deliveryInfo.address" },
|
|
3023
|
-
{ path: "entity.paymentInfo.billingAddress" }
|
|
3024
|
-
]
|
|
2554
|
+
paths: TRANSFORM_PATHS_53
|
|
3025
2555
|
}
|
|
3026
2556
|
])
|
|
3027
2557
|
)
|
|
@@ -3033,75 +2563,23 @@ var onCartUpdated = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
|
3033
2563
|
(0, import_transform_paths3.transformPaths)(event, [
|
|
3034
2564
|
{
|
|
3035
2565
|
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
3036
|
-
paths:
|
|
3037
|
-
{ path: "entity.createdDate" },
|
|
3038
|
-
{ path: "entity.updatedDate" },
|
|
3039
|
-
{
|
|
3040
|
-
path: "entity.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
3041
|
-
},
|
|
3042
|
-
{
|
|
3043
|
-
path: "entity.lineItems.attributes.serviceProperties.scheduledDate"
|
|
3044
|
-
},
|
|
3045
|
-
{ path: "entity.lineItems.attributes.serviceProperties.endDate" },
|
|
3046
|
-
{ path: "metadata.eventTime" },
|
|
3047
|
-
{ path: "modifiedFields.createdDate" },
|
|
3048
|
-
{ path: "modifiedFields.updatedDate" },
|
|
3049
|
-
{
|
|
3050
|
-
path: "modifiedFields.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
3051
|
-
},
|
|
3052
|
-
{
|
|
3053
|
-
path: "modifiedFields.lineItems.attributes.serviceProperties.scheduledDate"
|
|
3054
|
-
},
|
|
3055
|
-
{
|
|
3056
|
-
path: "modifiedFields.lineItems.attributes.serviceProperties.endDate"
|
|
3057
|
-
}
|
|
3058
|
-
]
|
|
2566
|
+
paths: TRANSFORM_PATHS_63
|
|
3059
2567
|
},
|
|
3060
2568
|
{
|
|
3061
2569
|
transformFn: import_image3.transformRESTImageToSDKImage,
|
|
3062
|
-
paths:
|
|
3063
|
-
{ path: "entity.lineItems.source.catalogOverrideFields.image" },
|
|
3064
|
-
{ path: "entity.lineItems.attributes.image" },
|
|
3065
|
-
{
|
|
3066
|
-
path: "modifiedFields.lineItems.source.catalogOverrideFields.image"
|
|
3067
|
-
},
|
|
3068
|
-
{ path: "modifiedFields.lineItems.attributes.image" }
|
|
3069
|
-
]
|
|
2570
|
+
paths: TRANSFORM_PATHS_72
|
|
3070
2571
|
},
|
|
3071
2572
|
{
|
|
3072
2573
|
transformFn: import_float3.transformRESTFloatToSDKFloat,
|
|
3073
|
-
paths:
|
|
3074
|
-
{
|
|
3075
|
-
path: "entity.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
3076
|
-
},
|
|
3077
|
-
{ path: "entity.lineItems.attributes.physicalProperties.weight" },
|
|
3078
|
-
{ path: "entity.tcAppliedDiscounts.merchantDiscount.percentage" },
|
|
3079
|
-
{
|
|
3080
|
-
path: "modifiedFields.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
3081
|
-
},
|
|
3082
|
-
{
|
|
3083
|
-
path: "modifiedFields.lineItems.attributes.physicalProperties.weight"
|
|
3084
|
-
},
|
|
3085
|
-
{
|
|
3086
|
-
path: "modifiedFields.tcAppliedDiscounts.merchantDiscount.percentage"
|
|
3087
|
-
}
|
|
3088
|
-
]
|
|
2574
|
+
paths: TRANSFORM_PATHS_82
|
|
3089
2575
|
},
|
|
3090
2576
|
{
|
|
3091
2577
|
transformFn: import_page_url_v23.transformRESTPageURLV2ToSDKPageURLV2,
|
|
3092
|
-
paths:
|
|
3093
|
-
{ path: "entity.lineItems.attributes.url" },
|
|
3094
|
-
{ path: "modifiedFields.lineItems.attributes.url" }
|
|
3095
|
-
]
|
|
2578
|
+
paths: TRANSFORM_PATHS_9
|
|
3096
2579
|
},
|
|
3097
2580
|
{
|
|
3098
2581
|
transformFn: import_address3.transformRESTAddressToSDKAddress,
|
|
3099
|
-
paths:
|
|
3100
|
-
{ path: "entity.deliveryInfo.address" },
|
|
3101
|
-
{ path: "entity.paymentInfo.billingAddress" },
|
|
3102
|
-
{ path: "modifiedFields.deliveryInfo.address" },
|
|
3103
|
-
{ path: "modifiedFields.paymentInfo.billingAddress" }
|
|
3104
|
-
]
|
|
2582
|
+
paths: TRANSFORM_PATHS_10
|
|
3105
2583
|
}
|
|
3106
2584
|
])
|
|
3107
2585
|
)
|