@wix/auto_sdk_ecom_current-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 +299 -792
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.js +206 -673
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.js +126 -501
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs +299 -792
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.mjs +206 -673
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.mjs +126 -501
- package/build/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.js
CHANGED
|
@@ -111,6 +111,93 @@ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
|
111
111
|
var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
|
|
112
112
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
113
113
|
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
114
|
+
var TRANSFORM_PATHS_0 = [
|
|
115
|
+
{ path: "cart.createdDate" },
|
|
116
|
+
{ path: "cart.updatedDate" },
|
|
117
|
+
{
|
|
118
|
+
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
119
|
+
},
|
|
120
|
+
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
121
|
+
{
|
|
122
|
+
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
123
|
+
},
|
|
124
|
+
{ path: "cart.lineItems.attributes.serviceProperties.scheduledDate" },
|
|
125
|
+
{ path: "cart.lineItems.attributes.serviceProperties.endDate" },
|
|
126
|
+
{ path: "catalogItems.catalogOverrideFields.image.urlExpirationDate" },
|
|
127
|
+
{ path: "customItems.attributes.image.urlExpirationDate" },
|
|
128
|
+
{ path: "customItems.attributes.serviceProperties.scheduledDate" },
|
|
129
|
+
{ path: "customItems.attributes.serviceProperties.endDate" },
|
|
130
|
+
{
|
|
131
|
+
path: "customItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
132
|
+
}
|
|
133
|
+
];
|
|
134
|
+
var TRANSFORM_PATHS_1 = [
|
|
135
|
+
{
|
|
136
|
+
path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
137
|
+
},
|
|
138
|
+
{ path: "cart.lineItems.attributes.physicalProperties.weight" },
|
|
139
|
+
{ path: "cart.deliveryInfo.address.geocode.latitude" },
|
|
140
|
+
{ path: "cart.deliveryInfo.address.geocode.longitude" },
|
|
141
|
+
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
142
|
+
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
143
|
+
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" },
|
|
144
|
+
{ path: "catalogItems.catalogOverrideFields.physicalProperties.weight" },
|
|
145
|
+
{ path: "customItems.attributes.physicalProperties.weight" }
|
|
146
|
+
];
|
|
147
|
+
var TRANSFORM_PATHS_2 = [
|
|
148
|
+
{ path: "cart.createdDate" },
|
|
149
|
+
{ path: "cart.updatedDate" },
|
|
150
|
+
{
|
|
151
|
+
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
152
|
+
},
|
|
153
|
+
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
154
|
+
{
|
|
155
|
+
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
156
|
+
},
|
|
157
|
+
{ path: "cart.lineItems.attributes.serviceProperties.scheduledDate" },
|
|
158
|
+
{ path: "cart.lineItems.attributes.serviceProperties.endDate" }
|
|
159
|
+
];
|
|
160
|
+
var TRANSFORM_PATHS_3 = [
|
|
161
|
+
{
|
|
162
|
+
path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
163
|
+
},
|
|
164
|
+
{ path: "cart.lineItems.attributes.physicalProperties.weight" },
|
|
165
|
+
{ path: "cart.deliveryInfo.address.geocode.latitude" },
|
|
166
|
+
{ path: "cart.deliveryInfo.address.geocode.longitude" },
|
|
167
|
+
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
168
|
+
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
169
|
+
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
170
|
+
];
|
|
171
|
+
var TRANSFORM_PATHS_4 = [{ path: "fieldMask" }];
|
|
172
|
+
var TRANSFORM_PATHS_5 = [
|
|
173
|
+
{ path: "cart.createdDate" },
|
|
174
|
+
{ path: "cart.updatedDate" },
|
|
175
|
+
{
|
|
176
|
+
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
177
|
+
},
|
|
178
|
+
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
179
|
+
{
|
|
180
|
+
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
181
|
+
},
|
|
182
|
+
{ path: "cart.lineItems.attributes.serviceProperties.scheduledDate" },
|
|
183
|
+
{ path: "cart.lineItems.attributes.serviceProperties.endDate" },
|
|
184
|
+
{
|
|
185
|
+
path: "summary.paymentSummary.subscriptionCharges.charges.cycleBillingDate"
|
|
186
|
+
}
|
|
187
|
+
];
|
|
188
|
+
var TRANSFORM_PATHS_6 = [
|
|
189
|
+
{ path: "catalogItems.catalogOverrideFields.physicalProperties.weight" },
|
|
190
|
+
{ path: "customItems.attributes.physicalProperties.weight" }
|
|
191
|
+
];
|
|
192
|
+
var TRANSFORM_PATHS_7 = [
|
|
193
|
+
{ path: "catalogItems.catalogOverrideFields.image.urlExpirationDate" },
|
|
194
|
+
{ path: "customItems.attributes.image.urlExpirationDate" },
|
|
195
|
+
{ path: "customItems.attributes.serviceProperties.scheduledDate" },
|
|
196
|
+
{ path: "customItems.attributes.serviceProperties.endDate" },
|
|
197
|
+
{
|
|
198
|
+
path: "customItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
199
|
+
}
|
|
200
|
+
];
|
|
114
201
|
function resolveWixEcomCartV2CurrentCartServiceUrl(opts) {
|
|
115
202
|
const domainToMappings = {
|
|
116
203
|
"api._api_base_domain_": [
|
|
@@ -206,46 +293,11 @@ function createCurrentCart(payload) {
|
|
|
206
293
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
207
294
|
{
|
|
208
295
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
209
|
-
paths:
|
|
210
|
-
{ path: "cart.createdDate" },
|
|
211
|
-
{ path: "cart.updatedDate" },
|
|
212
|
-
{
|
|
213
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
214
|
-
},
|
|
215
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
216
|
-
{
|
|
217
|
-
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
218
|
-
},
|
|
219
|
-
{ path: "cart.lineItems.attributes.serviceProperties.scheduledDate" },
|
|
220
|
-
{ path: "cart.lineItems.attributes.serviceProperties.endDate" },
|
|
221
|
-
{
|
|
222
|
-
path: "catalogItems.catalogOverrideFields.image.urlExpirationDate"
|
|
223
|
-
},
|
|
224
|
-
{ path: "customItems.attributes.image.urlExpirationDate" },
|
|
225
|
-
{ path: "customItems.attributes.serviceProperties.scheduledDate" },
|
|
226
|
-
{ path: "customItems.attributes.serviceProperties.endDate" },
|
|
227
|
-
{
|
|
228
|
-
path: "customItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
229
|
-
}
|
|
230
|
-
]
|
|
296
|
+
paths: TRANSFORM_PATHS_0
|
|
231
297
|
},
|
|
232
298
|
{
|
|
233
299
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
234
|
-
paths:
|
|
235
|
-
{
|
|
236
|
-
path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
237
|
-
},
|
|
238
|
-
{ path: "cart.lineItems.attributes.physicalProperties.weight" },
|
|
239
|
-
{ path: "cart.deliveryInfo.address.geocode.latitude" },
|
|
240
|
-
{ path: "cart.deliveryInfo.address.geocode.longitude" },
|
|
241
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
242
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
243
|
-
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" },
|
|
244
|
-
{
|
|
245
|
-
path: "catalogItems.catalogOverrideFields.physicalProperties.weight"
|
|
246
|
-
},
|
|
247
|
-
{ path: "customItems.attributes.physicalProperties.weight" }
|
|
248
|
-
]
|
|
300
|
+
paths: TRANSFORM_PATHS_1
|
|
249
301
|
}
|
|
250
302
|
]);
|
|
251
303
|
const metadata = {
|
|
@@ -265,35 +317,11 @@ function createCurrentCart(payload) {
|
|
|
265
317
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
266
318
|
{
|
|
267
319
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
268
|
-
paths:
|
|
269
|
-
{ path: "cart.createdDate" },
|
|
270
|
-
{ path: "cart.updatedDate" },
|
|
271
|
-
{
|
|
272
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
273
|
-
},
|
|
274
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
275
|
-
{
|
|
276
|
-
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
277
|
-
},
|
|
278
|
-
{
|
|
279
|
-
path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
|
|
280
|
-
},
|
|
281
|
-
{ path: "cart.lineItems.attributes.serviceProperties.endDate" }
|
|
282
|
-
]
|
|
320
|
+
paths: TRANSFORM_PATHS_2
|
|
283
321
|
},
|
|
284
322
|
{
|
|
285
323
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
286
|
-
paths:
|
|
287
|
-
{
|
|
288
|
-
path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
289
|
-
},
|
|
290
|
-
{ path: "cart.lineItems.attributes.physicalProperties.weight" },
|
|
291
|
-
{ path: "cart.deliveryInfo.address.geocode.latitude" },
|
|
292
|
-
{ path: "cart.deliveryInfo.address.geocode.longitude" },
|
|
293
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
294
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
295
|
-
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
296
|
-
]
|
|
324
|
+
paths: TRANSFORM_PATHS_3
|
|
297
325
|
}
|
|
298
326
|
])
|
|
299
327
|
};
|
|
@@ -320,35 +348,11 @@ function getCurrentCart(payload) {
|
|
|
320
348
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
321
349
|
{
|
|
322
350
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
323
|
-
paths:
|
|
324
|
-
{ path: "cart.createdDate" },
|
|
325
|
-
{ path: "cart.updatedDate" },
|
|
326
|
-
{
|
|
327
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
328
|
-
},
|
|
329
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
330
|
-
{
|
|
331
|
-
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
332
|
-
},
|
|
333
|
-
{
|
|
334
|
-
path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
|
|
335
|
-
},
|
|
336
|
-
{ path: "cart.lineItems.attributes.serviceProperties.endDate" }
|
|
337
|
-
]
|
|
351
|
+
paths: TRANSFORM_PATHS_2
|
|
338
352
|
},
|
|
339
353
|
{
|
|
340
354
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
341
|
-
paths:
|
|
342
|
-
{
|
|
343
|
-
path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
344
|
-
},
|
|
345
|
-
{ path: "cart.lineItems.attributes.physicalProperties.weight" },
|
|
346
|
-
{ path: "cart.deliveryInfo.address.geocode.latitude" },
|
|
347
|
-
{ path: "cart.deliveryInfo.address.geocode.longitude" },
|
|
348
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
349
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
350
|
-
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
351
|
-
]
|
|
355
|
+
paths: TRANSFORM_PATHS_3
|
|
352
356
|
}
|
|
353
357
|
])
|
|
354
358
|
};
|
|
@@ -361,37 +365,15 @@ function updateCurrentCart(payload) {
|
|
|
361
365
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
362
366
|
{
|
|
363
367
|
transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
|
|
364
|
-
paths:
|
|
368
|
+
paths: TRANSFORM_PATHS_4
|
|
365
369
|
},
|
|
366
370
|
{
|
|
367
371
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
368
|
-
paths:
|
|
369
|
-
{ path: "cart.createdDate" },
|
|
370
|
-
{ path: "cart.updatedDate" },
|
|
371
|
-
{
|
|
372
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
373
|
-
},
|
|
374
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
375
|
-
{
|
|
376
|
-
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
377
|
-
},
|
|
378
|
-
{ path: "cart.lineItems.attributes.serviceProperties.scheduledDate" },
|
|
379
|
-
{ path: "cart.lineItems.attributes.serviceProperties.endDate" }
|
|
380
|
-
]
|
|
372
|
+
paths: TRANSFORM_PATHS_2
|
|
381
373
|
},
|
|
382
374
|
{
|
|
383
375
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
384
|
-
paths:
|
|
385
|
-
{
|
|
386
|
-
path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
387
|
-
},
|
|
388
|
-
{ path: "cart.lineItems.attributes.physicalProperties.weight" },
|
|
389
|
-
{ path: "cart.deliveryInfo.address.geocode.latitude" },
|
|
390
|
-
{ path: "cart.deliveryInfo.address.geocode.longitude" },
|
|
391
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
392
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
393
|
-
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
394
|
-
]
|
|
376
|
+
paths: TRANSFORM_PATHS_3
|
|
395
377
|
}
|
|
396
378
|
]);
|
|
397
379
|
const metadata = {
|
|
@@ -411,35 +393,11 @@ function updateCurrentCart(payload) {
|
|
|
411
393
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
412
394
|
{
|
|
413
395
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
414
|
-
paths:
|
|
415
|
-
{ path: "cart.createdDate" },
|
|
416
|
-
{ path: "cart.updatedDate" },
|
|
417
|
-
{
|
|
418
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
419
|
-
},
|
|
420
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
421
|
-
{
|
|
422
|
-
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
423
|
-
},
|
|
424
|
-
{
|
|
425
|
-
path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
|
|
426
|
-
},
|
|
427
|
-
{ path: "cart.lineItems.attributes.serviceProperties.endDate" }
|
|
428
|
-
]
|
|
396
|
+
paths: TRANSFORM_PATHS_2
|
|
429
397
|
},
|
|
430
398
|
{
|
|
431
399
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
432
|
-
paths:
|
|
433
|
-
{
|
|
434
|
-
path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
435
|
-
},
|
|
436
|
-
{ path: "cart.lineItems.attributes.physicalProperties.weight" },
|
|
437
|
-
{ path: "cart.deliveryInfo.address.geocode.latitude" },
|
|
438
|
-
{ path: "cart.deliveryInfo.address.geocode.longitude" },
|
|
439
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
440
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
441
|
-
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
442
|
-
]
|
|
400
|
+
paths: TRANSFORM_PATHS_3
|
|
443
401
|
}
|
|
444
402
|
])
|
|
445
403
|
};
|
|
@@ -487,35 +445,11 @@ function refreshCurrentCart(payload) {
|
|
|
487
445
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
488
446
|
{
|
|
489
447
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
490
|
-
paths:
|
|
491
|
-
{ path: "cart.createdDate" },
|
|
492
|
-
{ path: "cart.updatedDate" },
|
|
493
|
-
{
|
|
494
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
495
|
-
},
|
|
496
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
497
|
-
{
|
|
498
|
-
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
499
|
-
},
|
|
500
|
-
{
|
|
501
|
-
path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
|
|
502
|
-
},
|
|
503
|
-
{ path: "cart.lineItems.attributes.serviceProperties.endDate" }
|
|
504
|
-
]
|
|
448
|
+
paths: TRANSFORM_PATHS_2
|
|
505
449
|
},
|
|
506
450
|
{
|
|
507
451
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
508
|
-
paths:
|
|
509
|
-
{
|
|
510
|
-
path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
511
|
-
},
|
|
512
|
-
{ path: "cart.lineItems.attributes.physicalProperties.weight" },
|
|
513
|
-
{ path: "cart.deliveryInfo.address.geocode.latitude" },
|
|
514
|
-
{ path: "cart.deliveryInfo.address.geocode.longitude" },
|
|
515
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
516
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
517
|
-
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
518
|
-
]
|
|
452
|
+
paths: TRANSFORM_PATHS_3
|
|
519
453
|
}
|
|
520
454
|
])
|
|
521
455
|
};
|
|
@@ -542,38 +476,11 @@ function calculateCurrentCart(payload) {
|
|
|
542
476
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
543
477
|
{
|
|
544
478
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
545
|
-
paths:
|
|
546
|
-
{ path: "cart.createdDate" },
|
|
547
|
-
{ path: "cart.updatedDate" },
|
|
548
|
-
{
|
|
549
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
550
|
-
},
|
|
551
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
552
|
-
{
|
|
553
|
-
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
554
|
-
},
|
|
555
|
-
{
|
|
556
|
-
path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
|
|
557
|
-
},
|
|
558
|
-
{ path: "cart.lineItems.attributes.serviceProperties.endDate" },
|
|
559
|
-
{
|
|
560
|
-
path: "summary.paymentSummary.subscriptionCharges.charges.cycleBillingDate"
|
|
561
|
-
}
|
|
562
|
-
]
|
|
479
|
+
paths: TRANSFORM_PATHS_5
|
|
563
480
|
},
|
|
564
481
|
{
|
|
565
482
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
566
|
-
paths:
|
|
567
|
-
{
|
|
568
|
-
path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
569
|
-
},
|
|
570
|
-
{ path: "cart.lineItems.attributes.physicalProperties.weight" },
|
|
571
|
-
{ path: "cart.deliveryInfo.address.geocode.latitude" },
|
|
572
|
-
{ path: "cart.deliveryInfo.address.geocode.longitude" },
|
|
573
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
574
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
575
|
-
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
576
|
-
]
|
|
483
|
+
paths: TRANSFORM_PATHS_3
|
|
577
484
|
}
|
|
578
485
|
])
|
|
579
486
|
};
|
|
@@ -600,38 +507,11 @@ function estimateCurrentCart(payload) {
|
|
|
600
507
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
601
508
|
{
|
|
602
509
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
603
|
-
paths:
|
|
604
|
-
{ path: "cart.createdDate" },
|
|
605
|
-
{ path: "cart.updatedDate" },
|
|
606
|
-
{
|
|
607
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
608
|
-
},
|
|
609
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
610
|
-
{
|
|
611
|
-
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
612
|
-
},
|
|
613
|
-
{
|
|
614
|
-
path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
|
|
615
|
-
},
|
|
616
|
-
{ path: "cart.lineItems.attributes.serviceProperties.endDate" },
|
|
617
|
-
{
|
|
618
|
-
path: "summary.paymentSummary.subscriptionCharges.charges.cycleBillingDate"
|
|
619
|
-
}
|
|
620
|
-
]
|
|
510
|
+
paths: TRANSFORM_PATHS_5
|
|
621
511
|
},
|
|
622
512
|
{
|
|
623
513
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
624
|
-
paths:
|
|
625
|
-
{
|
|
626
|
-
path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
627
|
-
},
|
|
628
|
-
{ path: "cart.lineItems.attributes.physicalProperties.weight" },
|
|
629
|
-
{ path: "cart.deliveryInfo.address.geocode.latitude" },
|
|
630
|
-
{ path: "cart.deliveryInfo.address.geocode.longitude" },
|
|
631
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
632
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
633
|
-
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
634
|
-
]
|
|
514
|
+
paths: TRANSFORM_PATHS_3
|
|
635
515
|
}
|
|
636
516
|
])
|
|
637
517
|
};
|
|
@@ -644,26 +524,11 @@ function addLineItemsToCurrentCart(payload) {
|
|
|
644
524
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
645
525
|
{
|
|
646
526
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
647
|
-
paths:
|
|
648
|
-
{
|
|
649
|
-
path: "catalogItems.catalogOverrideFields.physicalProperties.weight"
|
|
650
|
-
},
|
|
651
|
-
{ path: "customItems.attributes.physicalProperties.weight" }
|
|
652
|
-
]
|
|
527
|
+
paths: TRANSFORM_PATHS_6
|
|
653
528
|
},
|
|
654
529
|
{
|
|
655
530
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
656
|
-
paths:
|
|
657
|
-
{
|
|
658
|
-
path: "catalogItems.catalogOverrideFields.image.urlExpirationDate"
|
|
659
|
-
},
|
|
660
|
-
{ path: "customItems.attributes.image.urlExpirationDate" },
|
|
661
|
-
{ path: "customItems.attributes.serviceProperties.scheduledDate" },
|
|
662
|
-
{ path: "customItems.attributes.serviceProperties.endDate" },
|
|
663
|
-
{
|
|
664
|
-
path: "customItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
665
|
-
}
|
|
666
|
-
]
|
|
531
|
+
paths: TRANSFORM_PATHS_7
|
|
667
532
|
}
|
|
668
533
|
]);
|
|
669
534
|
const metadata = {
|
|
@@ -683,35 +548,11 @@ function addLineItemsToCurrentCart(payload) {
|
|
|
683
548
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
684
549
|
{
|
|
685
550
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
686
|
-
paths:
|
|
687
|
-
{ path: "cart.createdDate" },
|
|
688
|
-
{ path: "cart.updatedDate" },
|
|
689
|
-
{
|
|
690
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
691
|
-
},
|
|
692
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
693
|
-
{
|
|
694
|
-
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
695
|
-
},
|
|
696
|
-
{
|
|
697
|
-
path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
|
|
698
|
-
},
|
|
699
|
-
{ path: "cart.lineItems.attributes.serviceProperties.endDate" }
|
|
700
|
-
]
|
|
551
|
+
paths: TRANSFORM_PATHS_2
|
|
701
552
|
},
|
|
702
553
|
{
|
|
703
554
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
704
|
-
paths:
|
|
705
|
-
{
|
|
706
|
-
path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
707
|
-
},
|
|
708
|
-
{ path: "cart.lineItems.attributes.physicalProperties.weight" },
|
|
709
|
-
{ path: "cart.deliveryInfo.address.geocode.latitude" },
|
|
710
|
-
{ path: "cart.deliveryInfo.address.geocode.longitude" },
|
|
711
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
712
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
713
|
-
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
714
|
-
]
|
|
555
|
+
paths: TRANSFORM_PATHS_3
|
|
715
556
|
}
|
|
716
557
|
])
|
|
717
558
|
};
|
|
@@ -738,35 +579,11 @@ function removeLineItemsFromCurrentCart(payload) {
|
|
|
738
579
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
739
580
|
{
|
|
740
581
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
741
|
-
paths:
|
|
742
|
-
{ path: "cart.createdDate" },
|
|
743
|
-
{ path: "cart.updatedDate" },
|
|
744
|
-
{
|
|
745
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
746
|
-
},
|
|
747
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
748
|
-
{
|
|
749
|
-
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
750
|
-
},
|
|
751
|
-
{
|
|
752
|
-
path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
|
|
753
|
-
},
|
|
754
|
-
{ path: "cart.lineItems.attributes.serviceProperties.endDate" }
|
|
755
|
-
]
|
|
582
|
+
paths: TRANSFORM_PATHS_2
|
|
756
583
|
},
|
|
757
584
|
{
|
|
758
585
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
759
|
-
paths:
|
|
760
|
-
{
|
|
761
|
-
path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
762
|
-
},
|
|
763
|
-
{ path: "cart.lineItems.attributes.physicalProperties.weight" },
|
|
764
|
-
{ path: "cart.deliveryInfo.address.geocode.latitude" },
|
|
765
|
-
{ path: "cart.deliveryInfo.address.geocode.longitude" },
|
|
766
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
767
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
768
|
-
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
769
|
-
]
|
|
586
|
+
paths: TRANSFORM_PATHS_3
|
|
770
587
|
}
|
|
771
588
|
])
|
|
772
589
|
};
|
|
@@ -793,35 +610,11 @@ function updateLineItemsInCurrentCart(payload) {
|
|
|
793
610
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
794
611
|
{
|
|
795
612
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
796
|
-
paths:
|
|
797
|
-
{ path: "cart.createdDate" },
|
|
798
|
-
{ path: "cart.updatedDate" },
|
|
799
|
-
{
|
|
800
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
801
|
-
},
|
|
802
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
803
|
-
{
|
|
804
|
-
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
805
|
-
},
|
|
806
|
-
{
|
|
807
|
-
path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
|
|
808
|
-
},
|
|
809
|
-
{ path: "cart.lineItems.attributes.serviceProperties.endDate" }
|
|
810
|
-
]
|
|
613
|
+
paths: TRANSFORM_PATHS_2
|
|
811
614
|
},
|
|
812
615
|
{
|
|
813
616
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
814
|
-
paths:
|
|
815
|
-
{
|
|
816
|
-
path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
817
|
-
},
|
|
818
|
-
{ path: "cart.lineItems.attributes.physicalProperties.weight" },
|
|
819
|
-
{ path: "cart.deliveryInfo.address.geocode.latitude" },
|
|
820
|
-
{ path: "cart.deliveryInfo.address.geocode.longitude" },
|
|
821
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
822
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
823
|
-
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
824
|
-
]
|
|
617
|
+
paths: TRANSFORM_PATHS_3
|
|
825
618
|
}
|
|
826
619
|
])
|
|
827
620
|
};
|
|
@@ -848,35 +641,11 @@ function addCouponToCurrentCart(payload) {
|
|
|
848
641
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
849
642
|
{
|
|
850
643
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
851
|
-
paths:
|
|
852
|
-
{ path: "cart.createdDate" },
|
|
853
|
-
{ path: "cart.updatedDate" },
|
|
854
|
-
{
|
|
855
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
856
|
-
},
|
|
857
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
858
|
-
{
|
|
859
|
-
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
860
|
-
},
|
|
861
|
-
{
|
|
862
|
-
path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
|
|
863
|
-
},
|
|
864
|
-
{ path: "cart.lineItems.attributes.serviceProperties.endDate" }
|
|
865
|
-
]
|
|
644
|
+
paths: TRANSFORM_PATHS_2
|
|
866
645
|
},
|
|
867
646
|
{
|
|
868
647
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
869
|
-
paths:
|
|
870
|
-
{
|
|
871
|
-
path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
872
|
-
},
|
|
873
|
-
{ path: "cart.lineItems.attributes.physicalProperties.weight" },
|
|
874
|
-
{ path: "cart.deliveryInfo.address.geocode.latitude" },
|
|
875
|
-
{ path: "cart.deliveryInfo.address.geocode.longitude" },
|
|
876
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
877
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
878
|
-
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
879
|
-
]
|
|
648
|
+
paths: TRANSFORM_PATHS_3
|
|
880
649
|
}
|
|
881
650
|
])
|
|
882
651
|
};
|
|
@@ -903,35 +672,11 @@ function removeCouponFromCurrentCart(payload) {
|
|
|
903
672
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
904
673
|
{
|
|
905
674
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
906
|
-
paths:
|
|
907
|
-
{ path: "cart.createdDate" },
|
|
908
|
-
{ path: "cart.updatedDate" },
|
|
909
|
-
{
|
|
910
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
911
|
-
},
|
|
912
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
913
|
-
{
|
|
914
|
-
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
915
|
-
},
|
|
916
|
-
{
|
|
917
|
-
path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
|
|
918
|
-
},
|
|
919
|
-
{ path: "cart.lineItems.attributes.serviceProperties.endDate" }
|
|
920
|
-
]
|
|
675
|
+
paths: TRANSFORM_PATHS_2
|
|
921
676
|
},
|
|
922
677
|
{
|
|
923
678
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
924
|
-
paths:
|
|
925
|
-
{
|
|
926
|
-
path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
927
|
-
},
|
|
928
|
-
{ path: "cart.lineItems.attributes.physicalProperties.weight" },
|
|
929
|
-
{ path: "cart.deliveryInfo.address.geocode.latitude" },
|
|
930
|
-
{ path: "cart.deliveryInfo.address.geocode.longitude" },
|
|
931
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
932
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
933
|
-
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
934
|
-
]
|
|
679
|
+
paths: TRANSFORM_PATHS_3
|
|
935
680
|
}
|
|
936
681
|
])
|
|
937
682
|
};
|
|
@@ -958,35 +703,11 @@ function setDeliveryMethodForCurrentCart(payload) {
|
|
|
958
703
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
959
704
|
{
|
|
960
705
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
961
|
-
paths:
|
|
962
|
-
{ path: "cart.createdDate" },
|
|
963
|
-
{ path: "cart.updatedDate" },
|
|
964
|
-
{
|
|
965
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
966
|
-
},
|
|
967
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
968
|
-
{
|
|
969
|
-
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
970
|
-
},
|
|
971
|
-
{
|
|
972
|
-
path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
|
|
973
|
-
},
|
|
974
|
-
{ path: "cart.lineItems.attributes.serviceProperties.endDate" }
|
|
975
|
-
]
|
|
706
|
+
paths: TRANSFORM_PATHS_2
|
|
976
707
|
},
|
|
977
708
|
{
|
|
978
709
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
979
|
-
paths:
|
|
980
|
-
{
|
|
981
|
-
path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
982
|
-
},
|
|
983
|
-
{ path: "cart.lineItems.attributes.physicalProperties.weight" },
|
|
984
|
-
{ path: "cart.deliveryInfo.address.geocode.latitude" },
|
|
985
|
-
{ path: "cart.deliveryInfo.address.geocode.longitude" },
|
|
986
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
987
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
988
|
-
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
989
|
-
]
|
|
710
|
+
paths: TRANSFORM_PATHS_3
|
|
990
711
|
}
|
|
991
712
|
])
|
|
992
713
|
};
|
|
@@ -1013,35 +734,11 @@ function removeDeliveryMethodFromCurrentCart(payload) {
|
|
|
1013
734
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1014
735
|
{
|
|
1015
736
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1016
|
-
paths:
|
|
1017
|
-
{ path: "cart.createdDate" },
|
|
1018
|
-
{ path: "cart.updatedDate" },
|
|
1019
|
-
{
|
|
1020
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
1021
|
-
},
|
|
1022
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
1023
|
-
{
|
|
1024
|
-
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
1025
|
-
},
|
|
1026
|
-
{
|
|
1027
|
-
path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
|
|
1028
|
-
},
|
|
1029
|
-
{ path: "cart.lineItems.attributes.serviceProperties.endDate" }
|
|
1030
|
-
]
|
|
737
|
+
paths: TRANSFORM_PATHS_2
|
|
1031
738
|
},
|
|
1032
739
|
{
|
|
1033
740
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1034
|
-
paths:
|
|
1035
|
-
{
|
|
1036
|
-
path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
1037
|
-
},
|
|
1038
|
-
{ path: "cart.lineItems.attributes.physicalProperties.weight" },
|
|
1039
|
-
{ path: "cart.deliveryInfo.address.geocode.latitude" },
|
|
1040
|
-
{ path: "cart.deliveryInfo.address.geocode.longitude" },
|
|
1041
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
1042
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
1043
|
-
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
1044
|
-
]
|
|
741
|
+
paths: TRANSFORM_PATHS_3
|
|
1045
742
|
}
|
|
1046
743
|
])
|
|
1047
744
|
};
|
|
@@ -1068,35 +765,11 @@ function addGiftCardToCurrentCart(payload) {
|
|
|
1068
765
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1069
766
|
{
|
|
1070
767
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1071
|
-
paths:
|
|
1072
|
-
{ path: "cart.createdDate" },
|
|
1073
|
-
{ path: "cart.updatedDate" },
|
|
1074
|
-
{
|
|
1075
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
1076
|
-
},
|
|
1077
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
1078
|
-
{
|
|
1079
|
-
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
1080
|
-
},
|
|
1081
|
-
{
|
|
1082
|
-
path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
|
|
1083
|
-
},
|
|
1084
|
-
{ path: "cart.lineItems.attributes.serviceProperties.endDate" }
|
|
1085
|
-
]
|
|
768
|
+
paths: TRANSFORM_PATHS_2
|
|
1086
769
|
},
|
|
1087
770
|
{
|
|
1088
771
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1089
|
-
paths:
|
|
1090
|
-
{
|
|
1091
|
-
path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
1092
|
-
},
|
|
1093
|
-
{ path: "cart.lineItems.attributes.physicalProperties.weight" },
|
|
1094
|
-
{ path: "cart.deliveryInfo.address.geocode.latitude" },
|
|
1095
|
-
{ path: "cart.deliveryInfo.address.geocode.longitude" },
|
|
1096
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
1097
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
1098
|
-
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
1099
|
-
]
|
|
772
|
+
paths: TRANSFORM_PATHS_3
|
|
1100
773
|
}
|
|
1101
774
|
])
|
|
1102
775
|
};
|
|
@@ -1123,35 +796,11 @@ function removeGiftCardFromCurrentCart(payload) {
|
|
|
1123
796
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1124
797
|
{
|
|
1125
798
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1126
|
-
paths:
|
|
1127
|
-
{ path: "cart.createdDate" },
|
|
1128
|
-
{ path: "cart.updatedDate" },
|
|
1129
|
-
{
|
|
1130
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
1131
|
-
},
|
|
1132
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
1133
|
-
{
|
|
1134
|
-
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
1135
|
-
},
|
|
1136
|
-
{
|
|
1137
|
-
path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
|
|
1138
|
-
},
|
|
1139
|
-
{ path: "cart.lineItems.attributes.serviceProperties.endDate" }
|
|
1140
|
-
]
|
|
799
|
+
paths: TRANSFORM_PATHS_2
|
|
1141
800
|
},
|
|
1142
801
|
{
|
|
1143
802
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1144
|
-
paths:
|
|
1145
|
-
{
|
|
1146
|
-
path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
1147
|
-
},
|
|
1148
|
-
{ path: "cart.lineItems.attributes.physicalProperties.weight" },
|
|
1149
|
-
{ path: "cart.deliveryInfo.address.geocode.latitude" },
|
|
1150
|
-
{ path: "cart.deliveryInfo.address.geocode.longitude" },
|
|
1151
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
1152
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
1153
|
-
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
1154
|
-
]
|
|
803
|
+
paths: TRANSFORM_PATHS_3
|
|
1155
804
|
}
|
|
1156
805
|
])
|
|
1157
806
|
};
|
|
@@ -1178,35 +827,11 @@ function updateFormSubmissionsInCurrentCart(payload) {
|
|
|
1178
827
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1179
828
|
{
|
|
1180
829
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1181
|
-
paths:
|
|
1182
|
-
{ path: "cart.createdDate" },
|
|
1183
|
-
{ path: "cart.updatedDate" },
|
|
1184
|
-
{
|
|
1185
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
1186
|
-
},
|
|
1187
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
1188
|
-
{
|
|
1189
|
-
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
1190
|
-
},
|
|
1191
|
-
{
|
|
1192
|
-
path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
|
|
1193
|
-
},
|
|
1194
|
-
{ path: "cart.lineItems.attributes.serviceProperties.endDate" }
|
|
1195
|
-
]
|
|
830
|
+
paths: TRANSFORM_PATHS_2
|
|
1196
831
|
},
|
|
1197
832
|
{
|
|
1198
833
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1199
|
-
paths:
|
|
1200
|
-
{
|
|
1201
|
-
path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
1202
|
-
},
|
|
1203
|
-
{ path: "cart.lineItems.attributes.physicalProperties.weight" },
|
|
1204
|
-
{ path: "cart.deliveryInfo.address.geocode.latitude" },
|
|
1205
|
-
{ path: "cart.deliveryInfo.address.geocode.longitude" },
|
|
1206
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
1207
|
-
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
1208
|
-
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
1209
|
-
]
|
|
834
|
+
paths: TRANSFORM_PATHS_3
|
|
1210
835
|
}
|
|
1211
836
|
])
|
|
1212
837
|
};
|
|
@@ -1244,6 +869,30 @@ var import_image2 = require("@wix/sdk-runtime/transformations/image");
|
|
|
1244
869
|
var import_page_url_v2 = require("@wix/sdk-runtime/transformations/page-url-v2");
|
|
1245
870
|
var import_page_url_v22 = require("@wix/sdk-runtime/transformations/page-url-v2");
|
|
1246
871
|
var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
872
|
+
var TRANSFORM_PATHS_02 = [
|
|
873
|
+
{ path: "cart.lineItems.source.catalogOverrideFields.image" },
|
|
874
|
+
{ path: "cart.lineItems.attributes.image" },
|
|
875
|
+
{ path: "catalogItems.catalogOverrideFields.image" },
|
|
876
|
+
{ path: "customItems.attributes.image" }
|
|
877
|
+
];
|
|
878
|
+
var TRANSFORM_PATHS_12 = [
|
|
879
|
+
{ path: "cart.lineItems.attributes.url" },
|
|
880
|
+
{ path: "customItems.attributes.url" }
|
|
881
|
+
];
|
|
882
|
+
var TRANSFORM_PATHS_22 = [
|
|
883
|
+
{ path: "cart.deliveryInfo.address" },
|
|
884
|
+
{ path: "cart.paymentInfo.billingAddress" }
|
|
885
|
+
];
|
|
886
|
+
var TRANSFORM_PATHS_32 = [
|
|
887
|
+
{ path: "cart.lineItems.source.catalogOverrideFields.image" },
|
|
888
|
+
{ path: "cart.lineItems.attributes.image" }
|
|
889
|
+
];
|
|
890
|
+
var TRANSFORM_PATHS_42 = [{ path: "cart.lineItems.attributes.url" }];
|
|
891
|
+
var TRANSFORM_PATHS_52 = [
|
|
892
|
+
{ path: "catalogItems.catalogOverrideFields.image" },
|
|
893
|
+
{ path: "customItems.attributes.image" }
|
|
894
|
+
];
|
|
895
|
+
var TRANSFORM_PATHS_62 = [{ path: "customItems.attributes.url" }];
|
|
1247
896
|
var DescriptionLineType = /* @__PURE__ */ ((DescriptionLineType2) => {
|
|
1248
897
|
DescriptionLineType2["UNRECOGNISED"] = "UNRECOGNISED";
|
|
1249
898
|
DescriptionLineType2["PLAIN_TEXT"] = "PLAIN_TEXT";
|
|
@@ -1596,26 +1245,15 @@ async function createCurrentCart2(options) {
|
|
|
1596
1245
|
[
|
|
1597
1246
|
{
|
|
1598
1247
|
transformFn: import_image.transformSDKImageToRESTImage,
|
|
1599
|
-
paths:
|
|
1600
|
-
{ path: "cart.lineItems.source.catalogOverrideFields.image" },
|
|
1601
|
-
{ path: "cart.lineItems.attributes.image" },
|
|
1602
|
-
{ path: "catalogItems.catalogOverrideFields.image" },
|
|
1603
|
-
{ path: "customItems.attributes.image" }
|
|
1604
|
-
]
|
|
1248
|
+
paths: TRANSFORM_PATHS_02
|
|
1605
1249
|
},
|
|
1606
1250
|
{
|
|
1607
1251
|
transformFn: import_page_url_v2.transformSDKPageURLV2ToRESTPageURLV2,
|
|
1608
|
-
paths:
|
|
1609
|
-
{ path: "cart.lineItems.attributes.url" },
|
|
1610
|
-
{ path: "customItems.attributes.url" }
|
|
1611
|
-
]
|
|
1252
|
+
paths: TRANSFORM_PATHS_12
|
|
1612
1253
|
},
|
|
1613
1254
|
{
|
|
1614
1255
|
transformFn: import_address.transformSDKAddressToRESTAddress,
|
|
1615
|
-
paths:
|
|
1616
|
-
{ path: "cart.deliveryInfo.address" },
|
|
1617
|
-
{ path: "cart.paymentInfo.billingAddress" }
|
|
1618
|
-
]
|
|
1256
|
+
paths: TRANSFORM_PATHS_22
|
|
1619
1257
|
}
|
|
1620
1258
|
]
|
|
1621
1259
|
);
|
|
@@ -1628,21 +1266,15 @@ async function createCurrentCart2(options) {
|
|
|
1628
1266
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1629
1267
|
{
|
|
1630
1268
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1631
|
-
paths:
|
|
1632
|
-
{ path: "cart.lineItems.source.catalogOverrideFields.image" },
|
|
1633
|
-
{ path: "cart.lineItems.attributes.image" }
|
|
1634
|
-
]
|
|
1269
|
+
paths: TRANSFORM_PATHS_32
|
|
1635
1270
|
},
|
|
1636
1271
|
{
|
|
1637
1272
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
1638
|
-
paths:
|
|
1273
|
+
paths: TRANSFORM_PATHS_42
|
|
1639
1274
|
},
|
|
1640
1275
|
{
|
|
1641
1276
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
1642
|
-
paths:
|
|
1643
|
-
{ path: "cart.deliveryInfo.address" },
|
|
1644
|
-
{ path: "cart.paymentInfo.billingAddress" }
|
|
1645
|
-
]
|
|
1277
|
+
paths: TRANSFORM_PATHS_22
|
|
1646
1278
|
}
|
|
1647
1279
|
])
|
|
1648
1280
|
);
|
|
@@ -1679,21 +1311,15 @@ async function getCurrentCart2() {
|
|
|
1679
1311
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1680
1312
|
{
|
|
1681
1313
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1682
|
-
paths:
|
|
1683
|
-
{ path: "cart.lineItems.source.catalogOverrideFields.image" },
|
|
1684
|
-
{ path: "cart.lineItems.attributes.image" }
|
|
1685
|
-
]
|
|
1314
|
+
paths: TRANSFORM_PATHS_32
|
|
1686
1315
|
},
|
|
1687
1316
|
{
|
|
1688
1317
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
1689
|
-
paths:
|
|
1318
|
+
paths: TRANSFORM_PATHS_42
|
|
1690
1319
|
},
|
|
1691
1320
|
{
|
|
1692
1321
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
1693
|
-
paths:
|
|
1694
|
-
{ path: "cart.deliveryInfo.address" },
|
|
1695
|
-
{ path: "cart.paymentInfo.billingAddress" }
|
|
1696
|
-
]
|
|
1322
|
+
paths: TRANSFORM_PATHS_22
|
|
1697
1323
|
}
|
|
1698
1324
|
])
|
|
1699
1325
|
);
|
|
@@ -1718,21 +1344,15 @@ async function updateCurrentCart2(cart) {
|
|
|
1718
1344
|
[
|
|
1719
1345
|
{
|
|
1720
1346
|
transformFn: import_image.transformSDKImageToRESTImage,
|
|
1721
|
-
paths:
|
|
1722
|
-
{ path: "cart.lineItems.source.catalogOverrideFields.image" },
|
|
1723
|
-
{ path: "cart.lineItems.attributes.image" }
|
|
1724
|
-
]
|
|
1347
|
+
paths: TRANSFORM_PATHS_32
|
|
1725
1348
|
},
|
|
1726
1349
|
{
|
|
1727
1350
|
transformFn: import_page_url_v2.transformSDKPageURLV2ToRESTPageURLV2,
|
|
1728
|
-
paths:
|
|
1351
|
+
paths: TRANSFORM_PATHS_42
|
|
1729
1352
|
},
|
|
1730
1353
|
{
|
|
1731
1354
|
transformFn: import_address.transformSDKAddressToRESTAddress,
|
|
1732
|
-
paths:
|
|
1733
|
-
{ path: "cart.deliveryInfo.address" },
|
|
1734
|
-
{ path: "cart.paymentInfo.billingAddress" }
|
|
1735
|
-
]
|
|
1355
|
+
paths: TRANSFORM_PATHS_22
|
|
1736
1356
|
}
|
|
1737
1357
|
]
|
|
1738
1358
|
);
|
|
@@ -1745,21 +1365,15 @@ async function updateCurrentCart2(cart) {
|
|
|
1745
1365
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1746
1366
|
{
|
|
1747
1367
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1748
|
-
paths:
|
|
1749
|
-
{ path: "cart.lineItems.source.catalogOverrideFields.image" },
|
|
1750
|
-
{ path: "cart.lineItems.attributes.image" }
|
|
1751
|
-
]
|
|
1368
|
+
paths: TRANSFORM_PATHS_32
|
|
1752
1369
|
},
|
|
1753
1370
|
{
|
|
1754
1371
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
1755
|
-
paths:
|
|
1372
|
+
paths: TRANSFORM_PATHS_42
|
|
1756
1373
|
},
|
|
1757
1374
|
{
|
|
1758
1375
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
1759
|
-
paths:
|
|
1760
|
-
{ path: "cart.deliveryInfo.address" },
|
|
1761
|
-
{ path: "cart.paymentInfo.billingAddress" }
|
|
1762
|
-
]
|
|
1376
|
+
paths: TRANSFORM_PATHS_22
|
|
1763
1377
|
}
|
|
1764
1378
|
])
|
|
1765
1379
|
);
|
|
@@ -1811,21 +1425,15 @@ async function refreshCurrentCart2() {
|
|
|
1811
1425
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1812
1426
|
{
|
|
1813
1427
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1814
|
-
paths:
|
|
1815
|
-
{ path: "cart.lineItems.source.catalogOverrideFields.image" },
|
|
1816
|
-
{ path: "cart.lineItems.attributes.image" }
|
|
1817
|
-
]
|
|
1428
|
+
paths: TRANSFORM_PATHS_32
|
|
1818
1429
|
},
|
|
1819
1430
|
{
|
|
1820
1431
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
1821
|
-
paths:
|
|
1432
|
+
paths: TRANSFORM_PATHS_42
|
|
1822
1433
|
},
|
|
1823
1434
|
{
|
|
1824
1435
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
1825
|
-
paths:
|
|
1826
|
-
{ path: "cart.deliveryInfo.address" },
|
|
1827
|
-
{ path: "cart.paymentInfo.billingAddress" }
|
|
1828
|
-
]
|
|
1436
|
+
paths: TRANSFORM_PATHS_22
|
|
1829
1437
|
}
|
|
1830
1438
|
])
|
|
1831
1439
|
);
|
|
@@ -1857,21 +1465,15 @@ async function calculateCurrentCart2(options) {
|
|
|
1857
1465
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1858
1466
|
{
|
|
1859
1467
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1860
|
-
paths:
|
|
1861
|
-
{ path: "cart.lineItems.source.catalogOverrideFields.image" },
|
|
1862
|
-
{ path: "cart.lineItems.attributes.image" }
|
|
1863
|
-
]
|
|
1468
|
+
paths: TRANSFORM_PATHS_32
|
|
1864
1469
|
},
|
|
1865
1470
|
{
|
|
1866
1471
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
1867
|
-
paths:
|
|
1472
|
+
paths: TRANSFORM_PATHS_42
|
|
1868
1473
|
},
|
|
1869
1474
|
{
|
|
1870
1475
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
1871
|
-
paths:
|
|
1872
|
-
{ path: "cart.deliveryInfo.address" },
|
|
1873
|
-
{ path: "cart.paymentInfo.billingAddress" }
|
|
1874
|
-
]
|
|
1476
|
+
paths: TRANSFORM_PATHS_22
|
|
1875
1477
|
}
|
|
1876
1478
|
])
|
|
1877
1479
|
);
|
|
@@ -1908,21 +1510,15 @@ async function estimateCurrentCart2(options) {
|
|
|
1908
1510
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1909
1511
|
{
|
|
1910
1512
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1911
|
-
paths:
|
|
1912
|
-
{ path: "cart.lineItems.source.catalogOverrideFields.image" },
|
|
1913
|
-
{ path: "cart.lineItems.attributes.image" }
|
|
1914
|
-
]
|
|
1513
|
+
paths: TRANSFORM_PATHS_32
|
|
1915
1514
|
},
|
|
1916
1515
|
{
|
|
1917
1516
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
1918
|
-
paths:
|
|
1517
|
+
paths: TRANSFORM_PATHS_42
|
|
1919
1518
|
},
|
|
1920
1519
|
{
|
|
1921
1520
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
1922
|
-
paths:
|
|
1923
|
-
{ path: "cart.deliveryInfo.address" },
|
|
1924
|
-
{ path: "cart.paymentInfo.billingAddress" }
|
|
1925
|
-
]
|
|
1521
|
+
paths: TRANSFORM_PATHS_22
|
|
1926
1522
|
}
|
|
1927
1523
|
])
|
|
1928
1524
|
);
|
|
@@ -1957,14 +1553,11 @@ async function addLineItemsToCurrentCart2(options) {
|
|
|
1957
1553
|
[
|
|
1958
1554
|
{
|
|
1959
1555
|
transformFn: import_image.transformSDKImageToRESTImage,
|
|
1960
|
-
paths:
|
|
1961
|
-
{ path: "catalogItems.catalogOverrideFields.image" },
|
|
1962
|
-
{ path: "customItems.attributes.image" }
|
|
1963
|
-
]
|
|
1556
|
+
paths: TRANSFORM_PATHS_52
|
|
1964
1557
|
},
|
|
1965
1558
|
{
|
|
1966
1559
|
transformFn: import_page_url_v2.transformSDKPageURLV2ToRESTPageURLV2,
|
|
1967
|
-
paths:
|
|
1560
|
+
paths: TRANSFORM_PATHS_62
|
|
1968
1561
|
}
|
|
1969
1562
|
]
|
|
1970
1563
|
);
|
|
@@ -1977,21 +1570,15 @@ async function addLineItemsToCurrentCart2(options) {
|
|
|
1977
1570
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1978
1571
|
{
|
|
1979
1572
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1980
|
-
paths:
|
|
1981
|
-
{ path: "cart.lineItems.source.catalogOverrideFields.image" },
|
|
1982
|
-
{ path: "cart.lineItems.attributes.image" }
|
|
1983
|
-
]
|
|
1573
|
+
paths: TRANSFORM_PATHS_32
|
|
1984
1574
|
},
|
|
1985
1575
|
{
|
|
1986
1576
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
1987
|
-
paths:
|
|
1577
|
+
paths: TRANSFORM_PATHS_42
|
|
1988
1578
|
},
|
|
1989
1579
|
{
|
|
1990
1580
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
1991
|
-
paths:
|
|
1992
|
-
{ path: "cart.deliveryInfo.address" },
|
|
1993
|
-
{ path: "cart.paymentInfo.billingAddress" }
|
|
1994
|
-
]
|
|
1581
|
+
paths: TRANSFORM_PATHS_22
|
|
1995
1582
|
}
|
|
1996
1583
|
])
|
|
1997
1584
|
);
|
|
@@ -2026,21 +1613,15 @@ async function removeLineItemsFromCurrentCart2(lineItemIds) {
|
|
|
2026
1613
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
2027
1614
|
{
|
|
2028
1615
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
2029
|
-
paths:
|
|
2030
|
-
{ path: "cart.lineItems.source.catalogOverrideFields.image" },
|
|
2031
|
-
{ path: "cart.lineItems.attributes.image" }
|
|
2032
|
-
]
|
|
1616
|
+
paths: TRANSFORM_PATHS_32
|
|
2033
1617
|
},
|
|
2034
1618
|
{
|
|
2035
1619
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
2036
|
-
paths:
|
|
1620
|
+
paths: TRANSFORM_PATHS_42
|
|
2037
1621
|
},
|
|
2038
1622
|
{
|
|
2039
1623
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
2040
|
-
paths:
|
|
2041
|
-
{ path: "cart.deliveryInfo.address" },
|
|
2042
|
-
{ path: "cart.paymentInfo.billingAddress" }
|
|
2043
|
-
]
|
|
1624
|
+
paths: TRANSFORM_PATHS_22
|
|
2044
1625
|
}
|
|
2045
1626
|
])
|
|
2046
1627
|
);
|
|
@@ -2072,21 +1653,15 @@ async function updateLineItemsInCurrentCart2(options) {
|
|
|
2072
1653
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
2073
1654
|
{
|
|
2074
1655
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
2075
|
-
paths:
|
|
2076
|
-
{ path: "cart.lineItems.source.catalogOverrideFields.image" },
|
|
2077
|
-
{ path: "cart.lineItems.attributes.image" }
|
|
2078
|
-
]
|
|
1656
|
+
paths: TRANSFORM_PATHS_32
|
|
2079
1657
|
},
|
|
2080
1658
|
{
|
|
2081
1659
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
2082
|
-
paths:
|
|
1660
|
+
paths: TRANSFORM_PATHS_42
|
|
2083
1661
|
},
|
|
2084
1662
|
{
|
|
2085
1663
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
2086
|
-
paths:
|
|
2087
|
-
{ path: "cart.deliveryInfo.address" },
|
|
2088
|
-
{ path: "cart.paymentInfo.billingAddress" }
|
|
2089
|
-
]
|
|
1664
|
+
paths: TRANSFORM_PATHS_22
|
|
2090
1665
|
}
|
|
2091
1666
|
])
|
|
2092
1667
|
);
|
|
@@ -2116,21 +1691,15 @@ async function addCouponToCurrentCart2(coupon) {
|
|
|
2116
1691
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
2117
1692
|
{
|
|
2118
1693
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
2119
|
-
paths:
|
|
2120
|
-
{ path: "cart.lineItems.source.catalogOverrideFields.image" },
|
|
2121
|
-
{ path: "cart.lineItems.attributes.image" }
|
|
2122
|
-
]
|
|
1694
|
+
paths: TRANSFORM_PATHS_32
|
|
2123
1695
|
},
|
|
2124
1696
|
{
|
|
2125
1697
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
2126
|
-
paths:
|
|
1698
|
+
paths: TRANSFORM_PATHS_42
|
|
2127
1699
|
},
|
|
2128
1700
|
{
|
|
2129
1701
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
2130
|
-
paths:
|
|
2131
|
-
{ path: "cart.deliveryInfo.address" },
|
|
2132
|
-
{ path: "cart.paymentInfo.billingAddress" }
|
|
2133
|
-
]
|
|
1702
|
+
paths: TRANSFORM_PATHS_22
|
|
2134
1703
|
}
|
|
2135
1704
|
])
|
|
2136
1705
|
);
|
|
@@ -2160,21 +1729,15 @@ async function removeCouponFromCurrentCart2(couponId) {
|
|
|
2160
1729
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
2161
1730
|
{
|
|
2162
1731
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
2163
|
-
paths:
|
|
2164
|
-
{ path: "cart.lineItems.source.catalogOverrideFields.image" },
|
|
2165
|
-
{ path: "cart.lineItems.attributes.image" }
|
|
2166
|
-
]
|
|
1732
|
+
paths: TRANSFORM_PATHS_32
|
|
2167
1733
|
},
|
|
2168
1734
|
{
|
|
2169
1735
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
2170
|
-
paths:
|
|
1736
|
+
paths: TRANSFORM_PATHS_42
|
|
2171
1737
|
},
|
|
2172
1738
|
{
|
|
2173
1739
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
2174
|
-
paths:
|
|
2175
|
-
{ path: "cart.deliveryInfo.address" },
|
|
2176
|
-
{ path: "cart.paymentInfo.billingAddress" }
|
|
2177
|
-
]
|
|
1740
|
+
paths: TRANSFORM_PATHS_22
|
|
2178
1741
|
}
|
|
2179
1742
|
])
|
|
2180
1743
|
);
|
|
@@ -2206,21 +1769,15 @@ async function setDeliveryMethodForCurrentCart2(deliveryMethod) {
|
|
|
2206
1769
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
2207
1770
|
{
|
|
2208
1771
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
2209
|
-
paths:
|
|
2210
|
-
{ path: "cart.lineItems.source.catalogOverrideFields.image" },
|
|
2211
|
-
{ path: "cart.lineItems.attributes.image" }
|
|
2212
|
-
]
|
|
1772
|
+
paths: TRANSFORM_PATHS_32
|
|
2213
1773
|
},
|
|
2214
1774
|
{
|
|
2215
1775
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
2216
|
-
paths:
|
|
1776
|
+
paths: TRANSFORM_PATHS_42
|
|
2217
1777
|
},
|
|
2218
1778
|
{
|
|
2219
1779
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
2220
|
-
paths:
|
|
2221
|
-
{ path: "cart.deliveryInfo.address" },
|
|
2222
|
-
{ path: "cart.paymentInfo.billingAddress" }
|
|
2223
|
-
]
|
|
1780
|
+
paths: TRANSFORM_PATHS_22
|
|
2224
1781
|
}
|
|
2225
1782
|
])
|
|
2226
1783
|
);
|
|
@@ -2250,21 +1807,15 @@ async function removeDeliveryMethodFromCurrentCart2() {
|
|
|
2250
1807
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
2251
1808
|
{
|
|
2252
1809
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
2253
|
-
paths:
|
|
2254
|
-
{ path: "cart.lineItems.source.catalogOverrideFields.image" },
|
|
2255
|
-
{ path: "cart.lineItems.attributes.image" }
|
|
2256
|
-
]
|
|
1810
|
+
paths: TRANSFORM_PATHS_32
|
|
2257
1811
|
},
|
|
2258
1812
|
{
|
|
2259
1813
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
2260
|
-
paths:
|
|
1814
|
+
paths: TRANSFORM_PATHS_42
|
|
2261
1815
|
},
|
|
2262
1816
|
{
|
|
2263
1817
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
2264
|
-
paths:
|
|
2265
|
-
{ path: "cart.deliveryInfo.address" },
|
|
2266
|
-
{ path: "cart.paymentInfo.billingAddress" }
|
|
2267
|
-
]
|
|
1818
|
+
paths: TRANSFORM_PATHS_22
|
|
2268
1819
|
}
|
|
2269
1820
|
])
|
|
2270
1821
|
);
|
|
@@ -2294,21 +1845,15 @@ async function addGiftCardToCurrentCart2(giftCard) {
|
|
|
2294
1845
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
2295
1846
|
{
|
|
2296
1847
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
2297
|
-
paths:
|
|
2298
|
-
{ path: "cart.lineItems.source.catalogOverrideFields.image" },
|
|
2299
|
-
{ path: "cart.lineItems.attributes.image" }
|
|
2300
|
-
]
|
|
1848
|
+
paths: TRANSFORM_PATHS_32
|
|
2301
1849
|
},
|
|
2302
1850
|
{
|
|
2303
1851
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
2304
|
-
paths:
|
|
1852
|
+
paths: TRANSFORM_PATHS_42
|
|
2305
1853
|
},
|
|
2306
1854
|
{
|
|
2307
1855
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
2308
|
-
paths:
|
|
2309
|
-
{ path: "cart.deliveryInfo.address" },
|
|
2310
|
-
{ path: "cart.paymentInfo.billingAddress" }
|
|
2311
|
-
]
|
|
1856
|
+
paths: TRANSFORM_PATHS_22
|
|
2312
1857
|
}
|
|
2313
1858
|
])
|
|
2314
1859
|
);
|
|
@@ -2340,21 +1885,15 @@ async function removeGiftCardFromCurrentCart2(giftCardId) {
|
|
|
2340
1885
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
2341
1886
|
{
|
|
2342
1887
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
2343
|
-
paths:
|
|
2344
|
-
{ path: "cart.lineItems.source.catalogOverrideFields.image" },
|
|
2345
|
-
{ path: "cart.lineItems.attributes.image" }
|
|
2346
|
-
]
|
|
1888
|
+
paths: TRANSFORM_PATHS_32
|
|
2347
1889
|
},
|
|
2348
1890
|
{
|
|
2349
1891
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
2350
|
-
paths:
|
|
1892
|
+
paths: TRANSFORM_PATHS_42
|
|
2351
1893
|
},
|
|
2352
1894
|
{
|
|
2353
1895
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
2354
|
-
paths:
|
|
2355
|
-
{ path: "cart.deliveryInfo.address" },
|
|
2356
|
-
{ path: "cart.paymentInfo.billingAddress" }
|
|
2357
|
-
]
|
|
1896
|
+
paths: TRANSFORM_PATHS_22
|
|
2358
1897
|
}
|
|
2359
1898
|
])
|
|
2360
1899
|
);
|
|
@@ -2386,21 +1925,15 @@ async function updateFormSubmissionsInCurrentCart2(options) {
|
|
|
2386
1925
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
2387
1926
|
{
|
|
2388
1927
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
2389
|
-
paths:
|
|
2390
|
-
{ path: "cart.lineItems.source.catalogOverrideFields.image" },
|
|
2391
|
-
{ path: "cart.lineItems.attributes.image" }
|
|
2392
|
-
]
|
|
1928
|
+
paths: TRANSFORM_PATHS_32
|
|
2393
1929
|
},
|
|
2394
1930
|
{
|
|
2395
1931
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
2396
|
-
paths:
|
|
1932
|
+
paths: TRANSFORM_PATHS_42
|
|
2397
1933
|
},
|
|
2398
1934
|
{
|
|
2399
1935
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
2400
|
-
paths:
|
|
2401
|
-
{ path: "cart.deliveryInfo.address" },
|
|
2402
|
-
{ path: "cart.paymentInfo.billingAddress" }
|
|
2403
|
-
]
|
|
1936
|
+
paths: TRANSFORM_PATHS_22
|
|
2404
1937
|
}
|
|
2405
1938
|
])
|
|
2406
1939
|
);
|
|
@@ -2443,6 +1976,83 @@ async function getUpsellOptionsForCurrentCart2() {
|
|
|
2443
1976
|
}
|
|
2444
1977
|
|
|
2445
1978
|
// src/ecom-v2-cart-current-cart-v-2.public.ts
|
|
1979
|
+
var TRANSFORM_PATHS_03 = [
|
|
1980
|
+
{ path: "data.paymentSummary.subscriptionCharges.charges.cycleBillingDate" },
|
|
1981
|
+
{ path: "metadata.eventTime" }
|
|
1982
|
+
];
|
|
1983
|
+
var TRANSFORM_PATHS_13 = [
|
|
1984
|
+
{ path: "entity.createdDate" },
|
|
1985
|
+
{ path: "entity.updatedDate" },
|
|
1986
|
+
{
|
|
1987
|
+
path: "entity.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
1988
|
+
},
|
|
1989
|
+
{ path: "entity.lineItems.attributes.serviceProperties.scheduledDate" },
|
|
1990
|
+
{ path: "entity.lineItems.attributes.serviceProperties.endDate" },
|
|
1991
|
+
{ path: "metadata.eventTime" }
|
|
1992
|
+
];
|
|
1993
|
+
var TRANSFORM_PATHS_23 = [
|
|
1994
|
+
{ path: "entity.lineItems.source.catalogOverrideFields.image" },
|
|
1995
|
+
{ path: "entity.lineItems.attributes.image" }
|
|
1996
|
+
];
|
|
1997
|
+
var TRANSFORM_PATHS_33 = [
|
|
1998
|
+
{
|
|
1999
|
+
path: "entity.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
2000
|
+
},
|
|
2001
|
+
{ path: "entity.lineItems.attributes.physicalProperties.weight" },
|
|
2002
|
+
{ path: "entity.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
2003
|
+
];
|
|
2004
|
+
var TRANSFORM_PATHS_43 = [{ path: "entity.lineItems.attributes.url" }];
|
|
2005
|
+
var TRANSFORM_PATHS_53 = [
|
|
2006
|
+
{ path: "entity.deliveryInfo.address" },
|
|
2007
|
+
{ path: "entity.paymentInfo.billingAddress" }
|
|
2008
|
+
];
|
|
2009
|
+
var TRANSFORM_PATHS_63 = [
|
|
2010
|
+
{ path: "entity.createdDate" },
|
|
2011
|
+
{ path: "entity.updatedDate" },
|
|
2012
|
+
{
|
|
2013
|
+
path: "entity.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
2014
|
+
},
|
|
2015
|
+
{ path: "entity.lineItems.attributes.serviceProperties.scheduledDate" },
|
|
2016
|
+
{ path: "entity.lineItems.attributes.serviceProperties.endDate" },
|
|
2017
|
+
{ path: "metadata.eventTime" },
|
|
2018
|
+
{ path: "modifiedFields.createdDate" },
|
|
2019
|
+
{ path: "modifiedFields.updatedDate" },
|
|
2020
|
+
{
|
|
2021
|
+
path: "modifiedFields.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
2022
|
+
},
|
|
2023
|
+
{
|
|
2024
|
+
path: "modifiedFields.lineItems.attributes.serviceProperties.scheduledDate"
|
|
2025
|
+
},
|
|
2026
|
+
{ path: "modifiedFields.lineItems.attributes.serviceProperties.endDate" }
|
|
2027
|
+
];
|
|
2028
|
+
var TRANSFORM_PATHS_72 = [
|
|
2029
|
+
{ path: "entity.lineItems.source.catalogOverrideFields.image" },
|
|
2030
|
+
{ path: "entity.lineItems.attributes.image" },
|
|
2031
|
+
{ path: "modifiedFields.lineItems.source.catalogOverrideFields.image" },
|
|
2032
|
+
{ path: "modifiedFields.lineItems.attributes.image" }
|
|
2033
|
+
];
|
|
2034
|
+
var TRANSFORM_PATHS_8 = [
|
|
2035
|
+
{
|
|
2036
|
+
path: "entity.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
2037
|
+
},
|
|
2038
|
+
{ path: "entity.lineItems.attributes.physicalProperties.weight" },
|
|
2039
|
+
{ path: "entity.tcAppliedDiscounts.merchantDiscount.percentage" },
|
|
2040
|
+
{
|
|
2041
|
+
path: "modifiedFields.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
2042
|
+
},
|
|
2043
|
+
{ path: "modifiedFields.lineItems.attributes.physicalProperties.weight" },
|
|
2044
|
+
{ path: "modifiedFields.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
2045
|
+
];
|
|
2046
|
+
var TRANSFORM_PATHS_9 = [
|
|
2047
|
+
{ path: "entity.lineItems.attributes.url" },
|
|
2048
|
+
{ path: "modifiedFields.lineItems.attributes.url" }
|
|
2049
|
+
];
|
|
2050
|
+
var TRANSFORM_PATHS_10 = [
|
|
2051
|
+
{ path: "entity.deliveryInfo.address" },
|
|
2052
|
+
{ path: "entity.paymentInfo.billingAddress" },
|
|
2053
|
+
{ path: "modifiedFields.deliveryInfo.address" },
|
|
2054
|
+
{ path: "modifiedFields.paymentInfo.billingAddress" }
|
|
2055
|
+
];
|
|
2446
2056
|
function createCurrentCart3(httpClient) {
|
|
2447
2057
|
return (options) => createCurrentCart2(
|
|
2448
2058
|
options,
|
|
@@ -2571,12 +2181,7 @@ var onCartCalculated = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
|
2571
2181
|
(0, import_transform_paths3.transformPaths)(event, [
|
|
2572
2182
|
{
|
|
2573
2183
|
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
2574
|
-
paths:
|
|
2575
|
-
{
|
|
2576
|
-
path: "data.paymentSummary.subscriptionCharges.charges.cycleBillingDate"
|
|
2577
|
-
},
|
|
2578
|
-
{ path: "metadata.eventTime" }
|
|
2579
|
-
]
|
|
2184
|
+
paths: TRANSFORM_PATHS_03
|
|
2580
2185
|
}
|
|
2581
2186
|
])
|
|
2582
2187
|
)
|
|
@@ -2588,46 +2193,23 @@ var onCartCreated = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
|
2588
2193
|
(0, import_transform_paths3.transformPaths)(event, [
|
|
2589
2194
|
{
|
|
2590
2195
|
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
2591
|
-
paths:
|
|
2592
|
-
{ path: "entity.createdDate" },
|
|
2593
|
-
{ path: "entity.updatedDate" },
|
|
2594
|
-
{
|
|
2595
|
-
path: "entity.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
2596
|
-
},
|
|
2597
|
-
{
|
|
2598
|
-
path: "entity.lineItems.attributes.serviceProperties.scheduledDate"
|
|
2599
|
-
},
|
|
2600
|
-
{ path: "entity.lineItems.attributes.serviceProperties.endDate" },
|
|
2601
|
-
{ path: "metadata.eventTime" }
|
|
2602
|
-
]
|
|
2196
|
+
paths: TRANSFORM_PATHS_13
|
|
2603
2197
|
},
|
|
2604
2198
|
{
|
|
2605
2199
|
transformFn: import_image3.transformRESTImageToSDKImage,
|
|
2606
|
-
paths:
|
|
2607
|
-
{ path: "entity.lineItems.source.catalogOverrideFields.image" },
|
|
2608
|
-
{ path: "entity.lineItems.attributes.image" }
|
|
2609
|
-
]
|
|
2200
|
+
paths: TRANSFORM_PATHS_23
|
|
2610
2201
|
},
|
|
2611
2202
|
{
|
|
2612
2203
|
transformFn: import_float3.transformRESTFloatToSDKFloat,
|
|
2613
|
-
paths:
|
|
2614
|
-
{
|
|
2615
|
-
path: "entity.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
2616
|
-
},
|
|
2617
|
-
{ path: "entity.lineItems.attributes.physicalProperties.weight" },
|
|
2618
|
-
{ path: "entity.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
2619
|
-
]
|
|
2204
|
+
paths: TRANSFORM_PATHS_33
|
|
2620
2205
|
},
|
|
2621
2206
|
{
|
|
2622
2207
|
transformFn: import_page_url_v23.transformRESTPageURLV2ToSDKPageURLV2,
|
|
2623
|
-
paths:
|
|
2208
|
+
paths: TRANSFORM_PATHS_43
|
|
2624
2209
|
},
|
|
2625
2210
|
{
|
|
2626
2211
|
transformFn: import_address3.transformRESTAddressToSDKAddress,
|
|
2627
|
-
paths:
|
|
2628
|
-
{ path: "entity.deliveryInfo.address" },
|
|
2629
|
-
{ path: "entity.paymentInfo.billingAddress" }
|
|
2630
|
-
]
|
|
2212
|
+
paths: TRANSFORM_PATHS_53
|
|
2631
2213
|
}
|
|
2632
2214
|
])
|
|
2633
2215
|
)
|
|
@@ -2639,46 +2221,23 @@ var onCartDeleted = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
|
2639
2221
|
(0, import_transform_paths3.transformPaths)(event, [
|
|
2640
2222
|
{
|
|
2641
2223
|
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
2642
|
-
paths:
|
|
2643
|
-
{ path: "entity.createdDate" },
|
|
2644
|
-
{ path: "entity.updatedDate" },
|
|
2645
|
-
{
|
|
2646
|
-
path: "entity.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
2647
|
-
},
|
|
2648
|
-
{
|
|
2649
|
-
path: "entity.lineItems.attributes.serviceProperties.scheduledDate"
|
|
2650
|
-
},
|
|
2651
|
-
{ path: "entity.lineItems.attributes.serviceProperties.endDate" },
|
|
2652
|
-
{ path: "metadata.eventTime" }
|
|
2653
|
-
]
|
|
2224
|
+
paths: TRANSFORM_PATHS_13
|
|
2654
2225
|
},
|
|
2655
2226
|
{
|
|
2656
2227
|
transformFn: import_image3.transformRESTImageToSDKImage,
|
|
2657
|
-
paths:
|
|
2658
|
-
{ path: "entity.lineItems.source.catalogOverrideFields.image" },
|
|
2659
|
-
{ path: "entity.lineItems.attributes.image" }
|
|
2660
|
-
]
|
|
2228
|
+
paths: TRANSFORM_PATHS_23
|
|
2661
2229
|
},
|
|
2662
2230
|
{
|
|
2663
2231
|
transformFn: import_float3.transformRESTFloatToSDKFloat,
|
|
2664
|
-
paths:
|
|
2665
|
-
{
|
|
2666
|
-
path: "entity.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
2667
|
-
},
|
|
2668
|
-
{ path: "entity.lineItems.attributes.physicalProperties.weight" },
|
|
2669
|
-
{ path: "entity.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
2670
|
-
]
|
|
2232
|
+
paths: TRANSFORM_PATHS_33
|
|
2671
2233
|
},
|
|
2672
2234
|
{
|
|
2673
2235
|
transformFn: import_page_url_v23.transformRESTPageURLV2ToSDKPageURLV2,
|
|
2674
|
-
paths:
|
|
2236
|
+
paths: TRANSFORM_PATHS_43
|
|
2675
2237
|
},
|
|
2676
2238
|
{
|
|
2677
2239
|
transformFn: import_address3.transformRESTAddressToSDKAddress,
|
|
2678
|
-
paths:
|
|
2679
|
-
{ path: "entity.deliveryInfo.address" },
|
|
2680
|
-
{ path: "entity.paymentInfo.billingAddress" }
|
|
2681
|
-
]
|
|
2240
|
+
paths: TRANSFORM_PATHS_53
|
|
2682
2241
|
}
|
|
2683
2242
|
])
|
|
2684
2243
|
)
|
|
@@ -2690,75 +2249,23 @@ var onCartUpdated = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
|
2690
2249
|
(0, import_transform_paths3.transformPaths)(event, [
|
|
2691
2250
|
{
|
|
2692
2251
|
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
2693
|
-
paths:
|
|
2694
|
-
{ path: "entity.createdDate" },
|
|
2695
|
-
{ path: "entity.updatedDate" },
|
|
2696
|
-
{
|
|
2697
|
-
path: "entity.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
2698
|
-
},
|
|
2699
|
-
{
|
|
2700
|
-
path: "entity.lineItems.attributes.serviceProperties.scheduledDate"
|
|
2701
|
-
},
|
|
2702
|
-
{ path: "entity.lineItems.attributes.serviceProperties.endDate" },
|
|
2703
|
-
{ path: "metadata.eventTime" },
|
|
2704
|
-
{ path: "modifiedFields.createdDate" },
|
|
2705
|
-
{ path: "modifiedFields.updatedDate" },
|
|
2706
|
-
{
|
|
2707
|
-
path: "modifiedFields.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
2708
|
-
},
|
|
2709
|
-
{
|
|
2710
|
-
path: "modifiedFields.lineItems.attributes.serviceProperties.scheduledDate"
|
|
2711
|
-
},
|
|
2712
|
-
{
|
|
2713
|
-
path: "modifiedFields.lineItems.attributes.serviceProperties.endDate"
|
|
2714
|
-
}
|
|
2715
|
-
]
|
|
2252
|
+
paths: TRANSFORM_PATHS_63
|
|
2716
2253
|
},
|
|
2717
2254
|
{
|
|
2718
2255
|
transformFn: import_image3.transformRESTImageToSDKImage,
|
|
2719
|
-
paths:
|
|
2720
|
-
{ path: "entity.lineItems.source.catalogOverrideFields.image" },
|
|
2721
|
-
{ path: "entity.lineItems.attributes.image" },
|
|
2722
|
-
{
|
|
2723
|
-
path: "modifiedFields.lineItems.source.catalogOverrideFields.image"
|
|
2724
|
-
},
|
|
2725
|
-
{ path: "modifiedFields.lineItems.attributes.image" }
|
|
2726
|
-
]
|
|
2256
|
+
paths: TRANSFORM_PATHS_72
|
|
2727
2257
|
},
|
|
2728
2258
|
{
|
|
2729
2259
|
transformFn: import_float3.transformRESTFloatToSDKFloat,
|
|
2730
|
-
paths:
|
|
2731
|
-
{
|
|
2732
|
-
path: "entity.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
2733
|
-
},
|
|
2734
|
-
{ path: "entity.lineItems.attributes.physicalProperties.weight" },
|
|
2735
|
-
{ path: "entity.tcAppliedDiscounts.merchantDiscount.percentage" },
|
|
2736
|
-
{
|
|
2737
|
-
path: "modifiedFields.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
2738
|
-
},
|
|
2739
|
-
{
|
|
2740
|
-
path: "modifiedFields.lineItems.attributes.physicalProperties.weight"
|
|
2741
|
-
},
|
|
2742
|
-
{
|
|
2743
|
-
path: "modifiedFields.tcAppliedDiscounts.merchantDiscount.percentage"
|
|
2744
|
-
}
|
|
2745
|
-
]
|
|
2260
|
+
paths: TRANSFORM_PATHS_8
|
|
2746
2261
|
},
|
|
2747
2262
|
{
|
|
2748
2263
|
transformFn: import_page_url_v23.transformRESTPageURLV2ToSDKPageURLV2,
|
|
2749
|
-
paths:
|
|
2750
|
-
{ path: "entity.lineItems.attributes.url" },
|
|
2751
|
-
{ path: "modifiedFields.lineItems.attributes.url" }
|
|
2752
|
-
]
|
|
2264
|
+
paths: TRANSFORM_PATHS_9
|
|
2753
2265
|
},
|
|
2754
2266
|
{
|
|
2755
2267
|
transformFn: import_address3.transformRESTAddressToSDKAddress,
|
|
2756
|
-
paths:
|
|
2757
|
-
{ path: "entity.deliveryInfo.address" },
|
|
2758
|
-
{ path: "entity.paymentInfo.billingAddress" },
|
|
2759
|
-
{ path: "modifiedFields.deliveryInfo.address" },
|
|
2760
|
-
{ path: "modifiedFields.paymentInfo.billingAddress" }
|
|
2761
|
-
]
|
|
2268
|
+
paths: TRANSFORM_PATHS_10
|
|
2762
2269
|
}
|
|
2763
2270
|
])
|
|
2764
2271
|
)
|