@wix/auto_sdk_ecom_orders 1.0.299 → 1.0.301

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/build/cjs/{ecom-v1-order-orders.universal-DSrH-v4t.d.ts → ecom-v1-order-orders.universal-DjY_97wS.d.ts} +3 -2
  2. package/build/cjs/index.d.ts +2 -2
  3. package/build/cjs/index.js +481 -1275
  4. package/build/cjs/index.js.map +1 -1
  5. package/build/cjs/index.typings.d.ts +2 -2
  6. package/build/cjs/index.typings.js +308 -978
  7. package/build/cjs/index.typings.js.map +1 -1
  8. package/build/cjs/meta.d.ts +4 -3
  9. package/build/cjs/meta.js +240 -808
  10. package/build/cjs/meta.js.map +1 -1
  11. package/build/es/{ecom-v1-order-orders.universal-DSrH-v4t.d.mts → ecom-v1-order-orders.universal-DjY_97wS.d.mts} +3 -2
  12. package/build/es/index.d.mts +2 -2
  13. package/build/es/index.mjs +481 -1275
  14. package/build/es/index.mjs.map +1 -1
  15. package/build/es/index.typings.d.mts +2 -2
  16. package/build/es/index.typings.mjs +308 -978
  17. package/build/es/index.typings.mjs.map +1 -1
  18. package/build/es/meta.d.mts +4 -3
  19. package/build/es/meta.mjs +240 -808
  20. package/build/es/meta.mjs.map +1 -1
  21. package/build/internal/cjs/{ecom-v1-order-orders.universal-1Pzm6CP7.d.ts → ecom-v1-order-orders.universal-23Q8NeIh.d.ts} +3 -2
  22. package/build/internal/cjs/index.d.ts +2 -2
  23. package/build/internal/cjs/index.typings.d.ts +2 -2
  24. package/build/internal/cjs/meta.d.ts +4 -3
  25. package/build/internal/es/{ecom-v1-order-orders.universal-1Pzm6CP7.d.mts → ecom-v1-order-orders.universal-23Q8NeIh.d.mts} +3 -2
  26. package/build/internal/es/index.d.mts +2 -2
  27. package/build/internal/es/index.typings.d.mts +2 -2
  28. package/build/internal/es/meta.d.mts +4 -3
  29. package/package.json +2 -2
@@ -14,6 +14,196 @@ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transform
14
14
  import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
15
15
  import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
16
16
  import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
17
+ var TRANSFORM_PATHS_0 = [
18
+ { path: "order.createdDate" },
19
+ { path: "order.updatedDate" },
20
+ { path: "order.purchasedDate" },
21
+ { path: "order.lineItems.image.urlExpirationDate" },
22
+ { path: "order.lineItems.digitalFile.expirationDate" },
23
+ { path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate" },
24
+ { path: "order.lineItems.serviceProperties.scheduledDate" },
25
+ { path: "order.lineItems.serviceProperties.endDate" },
26
+ { path: "order.shippingInfo.logistics.deliverByDate" },
27
+ { path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
28
+ { path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
29
+ { path: "order.activities.createdDate" }
30
+ ];
31
+ var TRANSFORM_PATHS_1 = [
32
+ { path: "order.lineItems.image.focalPoint.x" },
33
+ { path: "order.lineItems.image.focalPoint.y" },
34
+ { path: "order.lineItems.physicalProperties.weight" },
35
+ { path: "order.billingInfo.address.geocode.latitude" },
36
+ { path: "order.billingInfo.address.geocode.longitude" },
37
+ {
38
+ path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
39
+ },
40
+ {
41
+ path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
42
+ },
43
+ {
44
+ path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
45
+ },
46
+ {
47
+ path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
48
+ },
49
+ { path: "order.recipientInfo.address.geocode.latitude" },
50
+ { path: "order.recipientInfo.address.geocode.longitude" }
51
+ ];
52
+ var TRANSFORM_PATHS_2 = [
53
+ { path: "results.item.createdDate" },
54
+ { path: "results.item.updatedDate" },
55
+ { path: "results.item.purchasedDate" },
56
+ { path: "results.item.lineItems.image.urlExpirationDate" },
57
+ { path: "results.item.lineItems.digitalFile.expirationDate" },
58
+ {
59
+ path: "results.item.lineItems.subscriptionInfo.subscriptionSettings.startDate"
60
+ },
61
+ { path: "results.item.lineItems.serviceProperties.scheduledDate" },
62
+ { path: "results.item.lineItems.serviceProperties.endDate" },
63
+ { path: "results.item.shippingInfo.logistics.deliverByDate" },
64
+ { path: "results.item.shippingInfo.logistics.deliveryTimeSlot.from" },
65
+ { path: "results.item.shippingInfo.logistics.deliveryTimeSlot.to" },
66
+ { path: "results.item.activities.createdDate" }
67
+ ];
68
+ var TRANSFORM_PATHS_3 = [
69
+ { path: "results.item.lineItems.image.focalPoint.x" },
70
+ { path: "results.item.lineItems.image.focalPoint.y" },
71
+ { path: "results.item.lineItems.physicalProperties.weight" },
72
+ { path: "results.item.billingInfo.address.geocode.latitude" },
73
+ { path: "results.item.billingInfo.address.geocode.longitude" },
74
+ {
75
+ path: "results.item.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
76
+ },
77
+ {
78
+ path: "results.item.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
79
+ },
80
+ {
81
+ path: "results.item.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
82
+ },
83
+ {
84
+ path: "results.item.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
85
+ },
86
+ { path: "results.item.recipientInfo.address.geocode.latitude" },
87
+ { path: "results.item.recipientInfo.address.geocode.longitude" }
88
+ ];
89
+ var TRANSFORM_PATHS_4 = [
90
+ { path: "membershipCharges.serviceProperties.scheduledDate" },
91
+ { path: "membershipCharges.serviceProperties.endDate" }
92
+ ];
93
+ var TRANSFORM_PATHS_5 = [
94
+ { path: "orderTransactions.payments.createdDate" },
95
+ { path: "orderTransactions.payments.updatedDate" },
96
+ {
97
+ path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
98
+ },
99
+ {
100
+ path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
101
+ },
102
+ {
103
+ path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
104
+ },
105
+ {
106
+ path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
107
+ },
108
+ {
109
+ path: "orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
110
+ },
111
+ {
112
+ path: "orderTransactions.payments.regularPaymentDetails.chargebacks.updatedDate"
113
+ },
114
+ { path: "orderTransactions.refunds.createdDate" }
115
+ ];
116
+ var TRANSFORM_PATHS_6 = [
117
+ { path: "search.sort.origin.latitude" },
118
+ { path: "search.sort.origin.longitude" }
119
+ ];
120
+ var TRANSFORM_PATHS_7 = [
121
+ { path: "orders.createdDate" },
122
+ { path: "orders.updatedDate" },
123
+ { path: "orders.purchasedDate" },
124
+ { path: "orders.lineItems.image.urlExpirationDate" },
125
+ { path: "orders.lineItems.digitalFile.expirationDate" },
126
+ { path: "orders.lineItems.subscriptionInfo.subscriptionSettings.startDate" },
127
+ { path: "orders.lineItems.serviceProperties.scheduledDate" },
128
+ { path: "orders.lineItems.serviceProperties.endDate" },
129
+ { path: "orders.shippingInfo.logistics.deliverByDate" },
130
+ { path: "orders.shippingInfo.logistics.deliveryTimeSlot.from" },
131
+ { path: "orders.shippingInfo.logistics.deliveryTimeSlot.to" },
132
+ { path: "orders.activities.createdDate" }
133
+ ];
134
+ var TRANSFORM_PATHS_8 = [
135
+ { path: "orders.lineItems.image.focalPoint.x" },
136
+ { path: "orders.lineItems.image.focalPoint.y" },
137
+ { path: "orders.lineItems.physicalProperties.weight" },
138
+ { path: "orders.billingInfo.address.geocode.latitude" },
139
+ { path: "orders.billingInfo.address.geocode.longitude" },
140
+ {
141
+ path: "orders.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
142
+ },
143
+ {
144
+ path: "orders.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
145
+ },
146
+ {
147
+ path: "orders.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
148
+ },
149
+ {
150
+ path: "orders.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
151
+ },
152
+ { path: "orders.recipientInfo.address.geocode.latitude" },
153
+ { path: "orders.recipientInfo.address.geocode.longitude" }
154
+ ];
155
+ var TRANSFORM_PATHS_9 = [{ path: "fieldMask" }];
156
+ var TRANSFORM_PATHS_10 = [{ path: "orders.fieldMask" }];
157
+ var TRANSFORM_PATHS_11 = [
158
+ { path: "orders.order.createdDate" },
159
+ { path: "orders.order.updatedDate" },
160
+ { path: "orders.order.purchasedDate" },
161
+ { path: "orders.order.lineItems.image.urlExpirationDate" },
162
+ { path: "orders.order.lineItems.digitalFile.expirationDate" },
163
+ {
164
+ path: "orders.order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
165
+ },
166
+ { path: "orders.order.lineItems.serviceProperties.scheduledDate" },
167
+ { path: "orders.order.lineItems.serviceProperties.endDate" },
168
+ { path: "orders.order.shippingInfo.logistics.deliverByDate" },
169
+ { path: "orders.order.shippingInfo.logistics.deliveryTimeSlot.from" },
170
+ { path: "orders.order.shippingInfo.logistics.deliveryTimeSlot.to" },
171
+ { path: "orders.order.activities.createdDate" }
172
+ ];
173
+ var TRANSFORM_PATHS_12 = [
174
+ { path: "orders.order.lineItems.image.focalPoint.x" },
175
+ { path: "orders.order.lineItems.image.focalPoint.y" },
176
+ { path: "orders.order.lineItems.physicalProperties.weight" },
177
+ { path: "orders.order.billingInfo.address.geocode.latitude" },
178
+ { path: "orders.order.billingInfo.address.geocode.longitude" },
179
+ {
180
+ path: "orders.order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
181
+ },
182
+ {
183
+ path: "orders.order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
184
+ },
185
+ {
186
+ path: "orders.order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
187
+ },
188
+ {
189
+ path: "orders.order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
190
+ },
191
+ { path: "orders.order.recipientInfo.address.geocode.latitude" },
192
+ { path: "orders.order.recipientInfo.address.geocode.longitude" }
193
+ ];
194
+ var TRANSFORM_PATHS_13 = [
195
+ { path: "lineItem.image.urlExpirationDate" },
196
+ { path: "lineItem.digitalFile.expirationDate" },
197
+ { path: "lineItem.subscriptionInfo.subscriptionSettings.startDate" },
198
+ { path: "lineItem.serviceProperties.scheduledDate" },
199
+ { path: "lineItem.serviceProperties.endDate" }
200
+ ];
201
+ var TRANSFORM_PATHS_14 = [
202
+ { path: "lineItem.image.focalPoint.x" },
203
+ { path: "lineItem.image.focalPoint.y" },
204
+ { path: "lineItem.physicalProperties.weight" }
205
+ ];
206
+ var TRANSFORM_PATHS_15 = [{ path: "orderActivities.createdDate" }];
17
207
  function resolveComWixEcomOrdersV1OrdersUrl(opts) {
18
208
  const domainToMappings = {
19
209
  _: [
@@ -177,46 +367,11 @@ function importOrder(payload) {
177
367
  const serializedData = transformPaths(payload, [
178
368
  {
179
369
  transformFn: transformSDKTimestampToRESTTimestamp,
180
- paths: [
181
- { path: "order.createdDate" },
182
- { path: "order.updatedDate" },
183
- { path: "order.purchasedDate" },
184
- { path: "order.lineItems.image.urlExpirationDate" },
185
- { path: "order.lineItems.digitalFile.expirationDate" },
186
- {
187
- path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
188
- },
189
- { path: "order.lineItems.serviceProperties.scheduledDate" },
190
- { path: "order.lineItems.serviceProperties.endDate" },
191
- { path: "order.shippingInfo.logistics.deliverByDate" },
192
- { path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
193
- { path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
194
- { path: "order.activities.createdDate" }
195
- ]
370
+ paths: TRANSFORM_PATHS_0
196
371
  },
197
372
  {
198
373
  transformFn: transformSDKFloatToRESTFloat,
199
- paths: [
200
- { path: "order.lineItems.image.focalPoint.x" },
201
- { path: "order.lineItems.image.focalPoint.y" },
202
- { path: "order.lineItems.physicalProperties.weight" },
203
- { path: "order.billingInfo.address.geocode.latitude" },
204
- { path: "order.billingInfo.address.geocode.longitude" },
205
- {
206
- path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
207
- },
208
- {
209
- path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
210
- },
211
- {
212
- path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
213
- },
214
- {
215
- path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
216
- },
217
- { path: "order.recipientInfo.address.geocode.latitude" },
218
- { path: "order.recipientInfo.address.geocode.longitude" }
219
- ]
374
+ paths: TRANSFORM_PATHS_1
220
375
  }
221
376
  ]);
222
377
  const metadata = {
@@ -236,46 +391,11 @@ function importOrder(payload) {
236
391
  transformResponse: (payload2) => transformPaths(payload2, [
237
392
  {
238
393
  transformFn: transformRESTTimestampToSDKTimestamp,
239
- paths: [
240
- { path: "order.createdDate" },
241
- { path: "order.updatedDate" },
242
- { path: "order.purchasedDate" },
243
- { path: "order.lineItems.image.urlExpirationDate" },
244
- { path: "order.lineItems.digitalFile.expirationDate" },
245
- {
246
- path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
247
- },
248
- { path: "order.lineItems.serviceProperties.scheduledDate" },
249
- { path: "order.lineItems.serviceProperties.endDate" },
250
- { path: "order.shippingInfo.logistics.deliverByDate" },
251
- { path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
252
- { path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
253
- { path: "order.activities.createdDate" }
254
- ]
394
+ paths: TRANSFORM_PATHS_0
255
395
  },
256
396
  {
257
397
  transformFn: transformRESTFloatToSDKFloat,
258
- paths: [
259
- { path: "order.lineItems.image.focalPoint.x" },
260
- { path: "order.lineItems.image.focalPoint.y" },
261
- { path: "order.lineItems.physicalProperties.weight" },
262
- { path: "order.billingInfo.address.geocode.latitude" },
263
- { path: "order.billingInfo.address.geocode.longitude" },
264
- {
265
- path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
266
- },
267
- {
268
- path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
269
- },
270
- {
271
- path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
272
- },
273
- {
274
- path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
275
- },
276
- { path: "order.recipientInfo.address.geocode.latitude" },
277
- { path: "order.recipientInfo.address.geocode.longitude" }
278
- ]
398
+ paths: TRANSFORM_PATHS_1
279
399
  }
280
400
  ])
281
401
  };
@@ -407,46 +527,11 @@ function paymentCollectionMarkOrderAsPaid(payload) {
407
527
  transformResponse: (payload2) => transformPaths(payload2, [
408
528
  {
409
529
  transformFn: transformRESTTimestampToSDKTimestamp,
410
- paths: [
411
- { path: "order.createdDate" },
412
- { path: "order.updatedDate" },
413
- { path: "order.purchasedDate" },
414
- { path: "order.lineItems.image.urlExpirationDate" },
415
- { path: "order.lineItems.digitalFile.expirationDate" },
416
- {
417
- path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
418
- },
419
- { path: "order.lineItems.serviceProperties.scheduledDate" },
420
- { path: "order.lineItems.serviceProperties.endDate" },
421
- { path: "order.shippingInfo.logistics.deliverByDate" },
422
- { path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
423
- { path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
424
- { path: "order.activities.createdDate" }
425
- ]
530
+ paths: TRANSFORM_PATHS_0
426
531
  },
427
532
  {
428
533
  transformFn: transformRESTFloatToSDKFloat,
429
- paths: [
430
- { path: "order.lineItems.image.focalPoint.x" },
431
- { path: "order.lineItems.image.focalPoint.y" },
432
- { path: "order.lineItems.physicalProperties.weight" },
433
- { path: "order.billingInfo.address.geocode.latitude" },
434
- { path: "order.billingInfo.address.geocode.longitude" },
435
- {
436
- path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
437
- },
438
- {
439
- path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
440
- },
441
- {
442
- path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
443
- },
444
- {
445
- path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
446
- },
447
- { path: "order.recipientInfo.address.geocode.latitude" },
448
- { path: "order.recipientInfo.address.geocode.longitude" }
449
- ]
534
+ paths: TRANSFORM_PATHS_1
450
535
  }
451
536
  ])
452
537
  };
@@ -473,52 +558,11 @@ function paymentCollectionBulkMarkOrdersAsPaid(payload) {
473
558
  transformResponse: (payload2) => transformPaths(payload2, [
474
559
  {
475
560
  transformFn: transformRESTTimestampToSDKTimestamp,
476
- paths: [
477
- { path: "results.item.createdDate" },
478
- { path: "results.item.updatedDate" },
479
- { path: "results.item.purchasedDate" },
480
- { path: "results.item.lineItems.image.urlExpirationDate" },
481
- { path: "results.item.lineItems.digitalFile.expirationDate" },
482
- {
483
- path: "results.item.lineItems.subscriptionInfo.subscriptionSettings.startDate"
484
- },
485
- {
486
- path: "results.item.lineItems.serviceProperties.scheduledDate"
487
- },
488
- { path: "results.item.lineItems.serviceProperties.endDate" },
489
- { path: "results.item.shippingInfo.logistics.deliverByDate" },
490
- {
491
- path: "results.item.shippingInfo.logistics.deliveryTimeSlot.from"
492
- },
493
- {
494
- path: "results.item.shippingInfo.logistics.deliveryTimeSlot.to"
495
- },
496
- { path: "results.item.activities.createdDate" }
497
- ]
561
+ paths: TRANSFORM_PATHS_2
498
562
  },
499
563
  {
500
564
  transformFn: transformRESTFloatToSDKFloat,
501
- paths: [
502
- { path: "results.item.lineItems.image.focalPoint.x" },
503
- { path: "results.item.lineItems.image.focalPoint.y" },
504
- { path: "results.item.lineItems.physicalProperties.weight" },
505
- { path: "results.item.billingInfo.address.geocode.latitude" },
506
- { path: "results.item.billingInfo.address.geocode.longitude" },
507
- {
508
- path: "results.item.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
509
- },
510
- {
511
- path: "results.item.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
512
- },
513
- {
514
- path: "results.item.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
515
- },
516
- {
517
- path: "results.item.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
518
- },
519
- { path: "results.item.recipientInfo.address.geocode.latitude" },
520
- { path: "results.item.recipientInfo.address.geocode.longitude" }
521
- ]
565
+ paths: TRANSFORM_PATHS_3
522
566
  }
523
567
  ])
524
568
  };
@@ -573,10 +617,7 @@ function chargeMemberships(payload) {
573
617
  const serializedData = transformPaths(payload, [
574
618
  {
575
619
  transformFn: transformSDKTimestampToRESTTimestamp,
576
- paths: [
577
- { path: "membershipCharges.serviceProperties.scheduledDate" },
578
- { path: "membershipCharges.serviceProperties.endDate" }
579
- ]
620
+ paths: TRANSFORM_PATHS_4
580
621
  }
581
622
  ]);
582
623
  const metadata = {
@@ -617,29 +658,7 @@ function triggerRefund(payload) {
617
658
  transformResponse: (payload2) => transformPaths(payload2, [
618
659
  {
619
660
  transformFn: transformRESTTimestampToSDKTimestamp,
620
- paths: [
621
- { path: "orderTransactions.payments.createdDate" },
622
- { path: "orderTransactions.payments.updatedDate" },
623
- {
624
- path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
625
- },
626
- {
627
- path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
628
- },
629
- {
630
- path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
631
- },
632
- {
633
- path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
634
- },
635
- {
636
- path: "orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
637
- },
638
- {
639
- path: "orderTransactions.payments.regularPaymentDetails.chargebacks.updatedDate"
640
- },
641
- { path: "orderTransactions.refunds.createdDate" }
642
- ]
661
+ paths: TRANSFORM_PATHS_5
643
662
  }
644
663
  ])
645
664
  };
@@ -666,29 +685,7 @@ function voidAuthorizedPayments(payload) {
666
685
  transformResponse: (payload2) => transformPaths(payload2, [
667
686
  {
668
687
  transformFn: transformRESTTimestampToSDKTimestamp,
669
- paths: [
670
- { path: "orderTransactions.payments.createdDate" },
671
- { path: "orderTransactions.payments.updatedDate" },
672
- {
673
- path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
674
- },
675
- {
676
- path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
677
- },
678
- {
679
- path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
680
- },
681
- {
682
- path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
683
- },
684
- {
685
- path: "orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
686
- },
687
- {
688
- path: "orderTransactions.payments.regularPaymentDetails.chargebacks.updatedDate"
689
- },
690
- { path: "orderTransactions.refunds.createdDate" }
691
- ]
688
+ paths: TRANSFORM_PATHS_5
692
689
  }
693
690
  ])
694
691
  };
@@ -715,29 +712,7 @@ function captureAuthorizedPayments(payload) {
715
712
  transformResponse: (payload2) => transformPaths(payload2, [
716
713
  {
717
714
  transformFn: transformRESTTimestampToSDKTimestamp,
718
- paths: [
719
- { path: "orderTransactions.payments.createdDate" },
720
- { path: "orderTransactions.payments.updatedDate" },
721
- {
722
- path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
723
- },
724
- {
725
- path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
726
- },
727
- {
728
- path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
729
- },
730
- {
731
- path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
732
- },
733
- {
734
- path: "orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
735
- },
736
- {
737
- path: "orderTransactions.payments.regularPaymentDetails.chargebacks.updatedDate"
738
- },
739
- { path: "orderTransactions.refunds.createdDate" }
740
- ]
715
+ paths: TRANSFORM_PATHS_5
741
716
  }
742
717
  ])
743
718
  };
@@ -764,46 +739,11 @@ function getOrder(payload) {
764
739
  transformResponse: (payload2) => transformPaths(payload2, [
765
740
  {
766
741
  transformFn: transformRESTTimestampToSDKTimestamp,
767
- paths: [
768
- { path: "order.createdDate" },
769
- { path: "order.updatedDate" },
770
- { path: "order.purchasedDate" },
771
- { path: "order.lineItems.image.urlExpirationDate" },
772
- { path: "order.lineItems.digitalFile.expirationDate" },
773
- {
774
- path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
775
- },
776
- { path: "order.lineItems.serviceProperties.scheduledDate" },
777
- { path: "order.lineItems.serviceProperties.endDate" },
778
- { path: "order.shippingInfo.logistics.deliverByDate" },
779
- { path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
780
- { path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
781
- { path: "order.activities.createdDate" }
782
- ]
742
+ paths: TRANSFORM_PATHS_0
783
743
  },
784
744
  {
785
745
  transformFn: transformRESTFloatToSDKFloat,
786
- paths: [
787
- { path: "order.lineItems.image.focalPoint.x" },
788
- { path: "order.lineItems.image.focalPoint.y" },
789
- { path: "order.lineItems.physicalProperties.weight" },
790
- { path: "order.billingInfo.address.geocode.latitude" },
791
- { path: "order.billingInfo.address.geocode.longitude" },
792
- {
793
- path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
794
- },
795
- {
796
- path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
797
- },
798
- {
799
- path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
800
- },
801
- {
802
- path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
803
- },
804
- { path: "order.recipientInfo.address.geocode.latitude" },
805
- { path: "order.recipientInfo.address.geocode.longitude" }
806
- ]
746
+ paths: TRANSFORM_PATHS_1
807
747
  }
808
748
  ])
809
749
  };
@@ -816,10 +756,7 @@ function searchOrders(payload) {
816
756
  const serializedData = transformPaths(payload, [
817
757
  {
818
758
  transformFn: transformSDKFloatToRESTFloat,
819
- paths: [
820
- { path: "search.sort.origin.latitude" },
821
- { path: "search.sort.origin.longitude" }
822
- ]
759
+ paths: TRANSFORM_PATHS_6
823
760
  }
824
761
  ]);
825
762
  const metadata = {
@@ -839,46 +776,11 @@ function searchOrders(payload) {
839
776
  transformResponse: (payload2) => transformPaths(payload2, [
840
777
  {
841
778
  transformFn: transformRESTTimestampToSDKTimestamp,
842
- paths: [
843
- { path: "orders.createdDate" },
844
- { path: "orders.updatedDate" },
845
- { path: "orders.purchasedDate" },
846
- { path: "orders.lineItems.image.urlExpirationDate" },
847
- { path: "orders.lineItems.digitalFile.expirationDate" },
848
- {
849
- path: "orders.lineItems.subscriptionInfo.subscriptionSettings.startDate"
850
- },
851
- { path: "orders.lineItems.serviceProperties.scheduledDate" },
852
- { path: "orders.lineItems.serviceProperties.endDate" },
853
- { path: "orders.shippingInfo.logistics.deliverByDate" },
854
- { path: "orders.shippingInfo.logistics.deliveryTimeSlot.from" },
855
- { path: "orders.shippingInfo.logistics.deliveryTimeSlot.to" },
856
- { path: "orders.activities.createdDate" }
857
- ]
779
+ paths: TRANSFORM_PATHS_7
858
780
  },
859
781
  {
860
782
  transformFn: transformRESTFloatToSDKFloat,
861
- paths: [
862
- { path: "orders.lineItems.image.focalPoint.x" },
863
- { path: "orders.lineItems.image.focalPoint.y" },
864
- { path: "orders.lineItems.physicalProperties.weight" },
865
- { path: "orders.billingInfo.address.geocode.latitude" },
866
- { path: "orders.billingInfo.address.geocode.longitude" },
867
- {
868
- path: "orders.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
869
- },
870
- {
871
- path: "orders.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
872
- },
873
- {
874
- path: "orders.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
875
- },
876
- {
877
- path: "orders.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
878
- },
879
- { path: "orders.recipientInfo.address.geocode.latitude" },
880
- { path: "orders.recipientInfo.address.geocode.longitude" }
881
- ]
783
+ paths: TRANSFORM_PATHS_8
882
784
  }
883
785
  ])
884
786
  };
@@ -891,46 +793,11 @@ function createOrder(payload) {
891
793
  const serializedData = transformPaths(payload, [
892
794
  {
893
795
  transformFn: transformSDKTimestampToRESTTimestamp,
894
- paths: [
895
- { path: "order.createdDate" },
896
- { path: "order.updatedDate" },
897
- { path: "order.purchasedDate" },
898
- { path: "order.lineItems.image.urlExpirationDate" },
899
- { path: "order.lineItems.digitalFile.expirationDate" },
900
- {
901
- path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
902
- },
903
- { path: "order.lineItems.serviceProperties.scheduledDate" },
904
- { path: "order.lineItems.serviceProperties.endDate" },
905
- { path: "order.shippingInfo.logistics.deliverByDate" },
906
- { path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
907
- { path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
908
- { path: "order.activities.createdDate" }
909
- ]
796
+ paths: TRANSFORM_PATHS_0
910
797
  },
911
798
  {
912
799
  transformFn: transformSDKFloatToRESTFloat,
913
- paths: [
914
- { path: "order.lineItems.image.focalPoint.x" },
915
- { path: "order.lineItems.image.focalPoint.y" },
916
- { path: "order.lineItems.physicalProperties.weight" },
917
- { path: "order.billingInfo.address.geocode.latitude" },
918
- { path: "order.billingInfo.address.geocode.longitude" },
919
- {
920
- path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
921
- },
922
- {
923
- path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
924
- },
925
- {
926
- path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
927
- },
928
- {
929
- path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
930
- },
931
- { path: "order.recipientInfo.address.geocode.latitude" },
932
- { path: "order.recipientInfo.address.geocode.longitude" }
933
- ]
800
+ paths: TRANSFORM_PATHS_1
934
801
  }
935
802
  ]);
936
803
  const metadata = {
@@ -950,46 +817,11 @@ function createOrder(payload) {
950
817
  transformResponse: (payload2) => transformPaths(payload2, [
951
818
  {
952
819
  transformFn: transformRESTTimestampToSDKTimestamp,
953
- paths: [
954
- { path: "order.createdDate" },
955
- { path: "order.updatedDate" },
956
- { path: "order.purchasedDate" },
957
- { path: "order.lineItems.image.urlExpirationDate" },
958
- { path: "order.lineItems.digitalFile.expirationDate" },
959
- {
960
- path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
961
- },
962
- { path: "order.lineItems.serviceProperties.scheduledDate" },
963
- { path: "order.lineItems.serviceProperties.endDate" },
964
- { path: "order.shippingInfo.logistics.deliverByDate" },
965
- { path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
966
- { path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
967
- { path: "order.activities.createdDate" }
968
- ]
820
+ paths: TRANSFORM_PATHS_0
969
821
  },
970
822
  {
971
823
  transformFn: transformRESTFloatToSDKFloat,
972
- paths: [
973
- { path: "order.lineItems.image.focalPoint.x" },
974
- { path: "order.lineItems.image.focalPoint.y" },
975
- { path: "order.lineItems.physicalProperties.weight" },
976
- { path: "order.billingInfo.address.geocode.latitude" },
977
- { path: "order.billingInfo.address.geocode.longitude" },
978
- {
979
- path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
980
- },
981
- {
982
- path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
983
- },
984
- {
985
- path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
986
- },
987
- {
988
- path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
989
- },
990
- { path: "order.recipientInfo.address.geocode.latitude" },
991
- { path: "order.recipientInfo.address.geocode.longitude" }
992
- ]
824
+ paths: TRANSFORM_PATHS_1
993
825
  }
994
826
  ])
995
827
  };
@@ -1002,50 +834,15 @@ function updateOrder(payload) {
1002
834
  const serializedData = transformPaths(payload, [
1003
835
  {
1004
836
  transformFn: transformSDKFieldMaskToRESTFieldMask,
1005
- paths: [{ path: "fieldMask" }]
837
+ paths: TRANSFORM_PATHS_9
1006
838
  },
1007
839
  {
1008
840
  transformFn: transformSDKTimestampToRESTTimestamp,
1009
- paths: [
1010
- { path: "order.createdDate" },
1011
- { path: "order.updatedDate" },
1012
- { path: "order.purchasedDate" },
1013
- { path: "order.lineItems.image.urlExpirationDate" },
1014
- { path: "order.lineItems.digitalFile.expirationDate" },
1015
- {
1016
- path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
1017
- },
1018
- { path: "order.lineItems.serviceProperties.scheduledDate" },
1019
- { path: "order.lineItems.serviceProperties.endDate" },
1020
- { path: "order.shippingInfo.logistics.deliverByDate" },
1021
- { path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
1022
- { path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
1023
- { path: "order.activities.createdDate" }
1024
- ]
841
+ paths: TRANSFORM_PATHS_0
1025
842
  },
1026
843
  {
1027
844
  transformFn: transformSDKFloatToRESTFloat,
1028
- paths: [
1029
- { path: "order.lineItems.image.focalPoint.x" },
1030
- { path: "order.lineItems.image.focalPoint.y" },
1031
- { path: "order.lineItems.physicalProperties.weight" },
1032
- { path: "order.billingInfo.address.geocode.latitude" },
1033
- { path: "order.billingInfo.address.geocode.longitude" },
1034
- {
1035
- path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
1036
- },
1037
- {
1038
- path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
1039
- },
1040
- {
1041
- path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
1042
- },
1043
- {
1044
- path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
1045
- },
1046
- { path: "order.recipientInfo.address.geocode.latitude" },
1047
- { path: "order.recipientInfo.address.geocode.longitude" }
1048
- ]
845
+ paths: TRANSFORM_PATHS_1
1049
846
  }
1050
847
  ]);
1051
848
  const metadata = {
@@ -1065,46 +862,11 @@ function updateOrder(payload) {
1065
862
  transformResponse: (payload2) => transformPaths(payload2, [
1066
863
  {
1067
864
  transformFn: transformRESTTimestampToSDKTimestamp,
1068
- paths: [
1069
- { path: "order.createdDate" },
1070
- { path: "order.updatedDate" },
1071
- { path: "order.purchasedDate" },
1072
- { path: "order.lineItems.image.urlExpirationDate" },
1073
- { path: "order.lineItems.digitalFile.expirationDate" },
1074
- {
1075
- path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
1076
- },
1077
- { path: "order.lineItems.serviceProperties.scheduledDate" },
1078
- { path: "order.lineItems.serviceProperties.endDate" },
1079
- { path: "order.shippingInfo.logistics.deliverByDate" },
1080
- { path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
1081
- { path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
1082
- { path: "order.activities.createdDate" }
1083
- ]
865
+ paths: TRANSFORM_PATHS_0
1084
866
  },
1085
867
  {
1086
868
  transformFn: transformRESTFloatToSDKFloat,
1087
- paths: [
1088
- { path: "order.lineItems.image.focalPoint.x" },
1089
- { path: "order.lineItems.image.focalPoint.y" },
1090
- { path: "order.lineItems.physicalProperties.weight" },
1091
- { path: "order.billingInfo.address.geocode.latitude" },
1092
- { path: "order.billingInfo.address.geocode.longitude" },
1093
- {
1094
- path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
1095
- },
1096
- {
1097
- path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
1098
- },
1099
- {
1100
- path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
1101
- },
1102
- {
1103
- path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
1104
- },
1105
- { path: "order.recipientInfo.address.geocode.latitude" },
1106
- { path: "order.recipientInfo.address.geocode.longitude" }
1107
- ]
869
+ paths: TRANSFORM_PATHS_1
1108
870
  }
1109
871
  ])
1110
872
  };
@@ -1117,50 +879,15 @@ function bulkUpdateOrders(payload) {
1117
879
  const serializedData = transformPaths(payload, [
1118
880
  {
1119
881
  transformFn: transformSDKFieldMaskToRESTFieldMask,
1120
- paths: [{ path: "orders.fieldMask" }]
882
+ paths: TRANSFORM_PATHS_10
1121
883
  },
1122
884
  {
1123
885
  transformFn: transformSDKTimestampToRESTTimestamp,
1124
- paths: [
1125
- { path: "orders.order.createdDate" },
1126
- { path: "orders.order.updatedDate" },
1127
- { path: "orders.order.purchasedDate" },
1128
- { path: "orders.order.lineItems.image.urlExpirationDate" },
1129
- { path: "orders.order.lineItems.digitalFile.expirationDate" },
1130
- {
1131
- path: "orders.order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
1132
- },
1133
- { path: "orders.order.lineItems.serviceProperties.scheduledDate" },
1134
- { path: "orders.order.lineItems.serviceProperties.endDate" },
1135
- { path: "orders.order.shippingInfo.logistics.deliverByDate" },
1136
- { path: "orders.order.shippingInfo.logistics.deliveryTimeSlot.from" },
1137
- { path: "orders.order.shippingInfo.logistics.deliveryTimeSlot.to" },
1138
- { path: "orders.order.activities.createdDate" }
1139
- ]
886
+ paths: TRANSFORM_PATHS_11
1140
887
  },
1141
888
  {
1142
889
  transformFn: transformSDKFloatToRESTFloat,
1143
- paths: [
1144
- { path: "orders.order.lineItems.image.focalPoint.x" },
1145
- { path: "orders.order.lineItems.image.focalPoint.y" },
1146
- { path: "orders.order.lineItems.physicalProperties.weight" },
1147
- { path: "orders.order.billingInfo.address.geocode.latitude" },
1148
- { path: "orders.order.billingInfo.address.geocode.longitude" },
1149
- {
1150
- path: "orders.order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
1151
- },
1152
- {
1153
- path: "orders.order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
1154
- },
1155
- {
1156
- path: "orders.order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
1157
- },
1158
- {
1159
- path: "orders.order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
1160
- },
1161
- { path: "orders.order.recipientInfo.address.geocode.latitude" },
1162
- { path: "orders.order.recipientInfo.address.geocode.longitude" }
1163
- ]
890
+ paths: TRANSFORM_PATHS_12
1164
891
  }
1165
892
  ]);
1166
893
  const metadata = {
@@ -1180,52 +907,11 @@ function bulkUpdateOrders(payload) {
1180
907
  transformResponse: (payload2) => transformPaths(payload2, [
1181
908
  {
1182
909
  transformFn: transformRESTTimestampToSDKTimestamp,
1183
- paths: [
1184
- { path: "results.item.createdDate" },
1185
- { path: "results.item.updatedDate" },
1186
- { path: "results.item.purchasedDate" },
1187
- { path: "results.item.lineItems.image.urlExpirationDate" },
1188
- { path: "results.item.lineItems.digitalFile.expirationDate" },
1189
- {
1190
- path: "results.item.lineItems.subscriptionInfo.subscriptionSettings.startDate"
1191
- },
1192
- {
1193
- path: "results.item.lineItems.serviceProperties.scheduledDate"
1194
- },
1195
- { path: "results.item.lineItems.serviceProperties.endDate" },
1196
- { path: "results.item.shippingInfo.logistics.deliverByDate" },
1197
- {
1198
- path: "results.item.shippingInfo.logistics.deliveryTimeSlot.from"
1199
- },
1200
- {
1201
- path: "results.item.shippingInfo.logistics.deliveryTimeSlot.to"
1202
- },
1203
- { path: "results.item.activities.createdDate" }
1204
- ]
910
+ paths: TRANSFORM_PATHS_2
1205
911
  },
1206
912
  {
1207
913
  transformFn: transformRESTFloatToSDKFloat,
1208
- paths: [
1209
- { path: "results.item.lineItems.image.focalPoint.x" },
1210
- { path: "results.item.lineItems.image.focalPoint.y" },
1211
- { path: "results.item.lineItems.physicalProperties.weight" },
1212
- { path: "results.item.billingInfo.address.geocode.latitude" },
1213
- { path: "results.item.billingInfo.address.geocode.longitude" },
1214
- {
1215
- path: "results.item.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
1216
- },
1217
- {
1218
- path: "results.item.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
1219
- },
1220
- {
1221
- path: "results.item.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
1222
- },
1223
- {
1224
- path: "results.item.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
1225
- },
1226
- { path: "results.item.recipientInfo.address.geocode.latitude" },
1227
- { path: "results.item.recipientInfo.address.geocode.longitude" }
1228
- ]
914
+ paths: TRANSFORM_PATHS_3
1229
915
  }
1230
916
  ])
1231
917
  };
@@ -1238,25 +924,15 @@ function updateOrderLineItem(payload) {
1238
924
  const serializedData = transformPaths(payload, [
1239
925
  {
1240
926
  transformFn: transformSDKFieldMaskToRESTFieldMask,
1241
- paths: [{ path: "fieldMask" }]
927
+ paths: TRANSFORM_PATHS_9
1242
928
  },
1243
929
  {
1244
930
  transformFn: transformSDKTimestampToRESTTimestamp,
1245
- paths: [
1246
- { path: "lineItem.image.urlExpirationDate" },
1247
- { path: "lineItem.digitalFile.expirationDate" },
1248
- { path: "lineItem.subscriptionInfo.subscriptionSettings.startDate" },
1249
- { path: "lineItem.serviceProperties.scheduledDate" },
1250
- { path: "lineItem.serviceProperties.endDate" }
1251
- ]
931
+ paths: TRANSFORM_PATHS_13
1252
932
  },
1253
933
  {
1254
934
  transformFn: transformSDKFloatToRESTFloat,
1255
- paths: [
1256
- { path: "lineItem.image.focalPoint.x" },
1257
- { path: "lineItem.image.focalPoint.y" },
1258
- { path: "lineItem.physicalProperties.weight" }
1259
- ]
935
+ paths: TRANSFORM_PATHS_14
1260
936
  }
1261
937
  ]);
1262
938
  const metadata = {
@@ -1276,46 +952,11 @@ function updateOrderLineItem(payload) {
1276
952
  transformResponse: (payload2) => transformPaths(payload2, [
1277
953
  {
1278
954
  transformFn: transformRESTTimestampToSDKTimestamp,
1279
- paths: [
1280
- { path: "order.createdDate" },
1281
- { path: "order.updatedDate" },
1282
- { path: "order.purchasedDate" },
1283
- { path: "order.lineItems.image.urlExpirationDate" },
1284
- { path: "order.lineItems.digitalFile.expirationDate" },
1285
- {
1286
- path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
1287
- },
1288
- { path: "order.lineItems.serviceProperties.scheduledDate" },
1289
- { path: "order.lineItems.serviceProperties.endDate" },
1290
- { path: "order.shippingInfo.logistics.deliverByDate" },
1291
- { path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
1292
- { path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
1293
- { path: "order.activities.createdDate" }
1294
- ]
955
+ paths: TRANSFORM_PATHS_0
1295
956
  },
1296
957
  {
1297
958
  transformFn: transformRESTFloatToSDKFloat,
1298
- paths: [
1299
- { path: "order.lineItems.image.focalPoint.x" },
1300
- { path: "order.lineItems.image.focalPoint.y" },
1301
- { path: "order.lineItems.physicalProperties.weight" },
1302
- { path: "order.billingInfo.address.geocode.latitude" },
1303
- { path: "order.billingInfo.address.geocode.longitude" },
1304
- {
1305
- path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
1306
- },
1307
- {
1308
- path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
1309
- },
1310
- {
1311
- path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
1312
- },
1313
- {
1314
- path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
1315
- },
1316
- { path: "order.recipientInfo.address.geocode.latitude" },
1317
- { path: "order.recipientInfo.address.geocode.longitude" }
1318
- ]
959
+ paths: TRANSFORM_PATHS_1
1319
960
  }
1320
961
  ])
1321
962
  };
@@ -1342,46 +983,11 @@ function addActivity(payload) {
1342
983
  transformResponse: (payload2) => transformPaths(payload2, [
1343
984
  {
1344
985
  transformFn: transformRESTTimestampToSDKTimestamp,
1345
- paths: [
1346
- { path: "order.createdDate" },
1347
- { path: "order.updatedDate" },
1348
- { path: "order.purchasedDate" },
1349
- { path: "order.lineItems.image.urlExpirationDate" },
1350
- { path: "order.lineItems.digitalFile.expirationDate" },
1351
- {
1352
- path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
1353
- },
1354
- { path: "order.lineItems.serviceProperties.scheduledDate" },
1355
- { path: "order.lineItems.serviceProperties.endDate" },
1356
- { path: "order.shippingInfo.logistics.deliverByDate" },
1357
- { path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
1358
- { path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
1359
- { path: "order.activities.createdDate" }
1360
- ]
986
+ paths: TRANSFORM_PATHS_0
1361
987
  },
1362
988
  {
1363
989
  transformFn: transformRESTFloatToSDKFloat,
1364
- paths: [
1365
- { path: "order.lineItems.image.focalPoint.x" },
1366
- { path: "order.lineItems.image.focalPoint.y" },
1367
- { path: "order.lineItems.physicalProperties.weight" },
1368
- { path: "order.billingInfo.address.geocode.latitude" },
1369
- { path: "order.billingInfo.address.geocode.longitude" },
1370
- {
1371
- path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
1372
- },
1373
- {
1374
- path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
1375
- },
1376
- {
1377
- path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
1378
- },
1379
- {
1380
- path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
1381
- },
1382
- { path: "order.recipientInfo.address.geocode.latitude" },
1383
- { path: "order.recipientInfo.address.geocode.longitude" }
1384
- ]
990
+ paths: TRANSFORM_PATHS_1
1385
991
  }
1386
992
  ])
1387
993
  };
@@ -1394,7 +1000,7 @@ function addActivities(payload) {
1394
1000
  const serializedData = transformPaths(payload, [
1395
1001
  {
1396
1002
  transformFn: transformSDKTimestampToRESTTimestamp,
1397
- paths: [{ path: "orderActivities.createdDate" }]
1003
+ paths: TRANSFORM_PATHS_15
1398
1004
  }
1399
1005
  ]);
1400
1006
  const metadata = {
@@ -1414,46 +1020,11 @@ function addActivities(payload) {
1414
1020
  transformResponse: (payload2) => transformPaths(payload2, [
1415
1021
  {
1416
1022
  transformFn: transformRESTTimestampToSDKTimestamp,
1417
- paths: [
1418
- { path: "order.createdDate" },
1419
- { path: "order.updatedDate" },
1420
- { path: "order.purchasedDate" },
1421
- { path: "order.lineItems.image.urlExpirationDate" },
1422
- { path: "order.lineItems.digitalFile.expirationDate" },
1423
- {
1424
- path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
1425
- },
1426
- { path: "order.lineItems.serviceProperties.scheduledDate" },
1427
- { path: "order.lineItems.serviceProperties.endDate" },
1428
- { path: "order.shippingInfo.logistics.deliverByDate" },
1429
- { path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
1430
- { path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
1431
- { path: "order.activities.createdDate" }
1432
- ]
1023
+ paths: TRANSFORM_PATHS_0
1433
1024
  },
1434
1025
  {
1435
1026
  transformFn: transformRESTFloatToSDKFloat,
1436
- paths: [
1437
- { path: "order.lineItems.image.focalPoint.x" },
1438
- { path: "order.lineItems.image.focalPoint.y" },
1439
- { path: "order.lineItems.physicalProperties.weight" },
1440
- { path: "order.billingInfo.address.geocode.latitude" },
1441
- { path: "order.billingInfo.address.geocode.longitude" },
1442
- {
1443
- path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
1444
- },
1445
- {
1446
- path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
1447
- },
1448
- {
1449
- path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
1450
- },
1451
- {
1452
- path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
1453
- },
1454
- { path: "order.recipientInfo.address.geocode.latitude" },
1455
- { path: "order.recipientInfo.address.geocode.longitude" }
1456
- ]
1027
+ paths: TRANSFORM_PATHS_1
1457
1028
  }
1458
1029
  ])
1459
1030
  };
@@ -1480,46 +1051,11 @@ function updateActivity(payload) {
1480
1051
  transformResponse: (payload2) => transformPaths(payload2, [
1481
1052
  {
1482
1053
  transformFn: transformRESTTimestampToSDKTimestamp,
1483
- paths: [
1484
- { path: "order.createdDate" },
1485
- { path: "order.updatedDate" },
1486
- { path: "order.purchasedDate" },
1487
- { path: "order.lineItems.image.urlExpirationDate" },
1488
- { path: "order.lineItems.digitalFile.expirationDate" },
1489
- {
1490
- path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
1491
- },
1492
- { path: "order.lineItems.serviceProperties.scheduledDate" },
1493
- { path: "order.lineItems.serviceProperties.endDate" },
1494
- { path: "order.shippingInfo.logistics.deliverByDate" },
1495
- { path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
1496
- { path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
1497
- { path: "order.activities.createdDate" }
1498
- ]
1054
+ paths: TRANSFORM_PATHS_0
1499
1055
  },
1500
1056
  {
1501
1057
  transformFn: transformRESTFloatToSDKFloat,
1502
- paths: [
1503
- { path: "order.lineItems.image.focalPoint.x" },
1504
- { path: "order.lineItems.image.focalPoint.y" },
1505
- { path: "order.lineItems.physicalProperties.weight" },
1506
- { path: "order.billingInfo.address.geocode.latitude" },
1507
- { path: "order.billingInfo.address.geocode.longitude" },
1508
- {
1509
- path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
1510
- },
1511
- {
1512
- path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
1513
- },
1514
- {
1515
- path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
1516
- },
1517
- {
1518
- path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
1519
- },
1520
- { path: "order.recipientInfo.address.geocode.latitude" },
1521
- { path: "order.recipientInfo.address.geocode.longitude" }
1522
- ]
1058
+ paths: TRANSFORM_PATHS_1
1523
1059
  }
1524
1060
  ])
1525
1061
  };
@@ -1546,46 +1082,11 @@ function deleteActivity(payload) {
1546
1082
  transformResponse: (payload2) => transformPaths(payload2, [
1547
1083
  {
1548
1084
  transformFn: transformRESTTimestampToSDKTimestamp,
1549
- paths: [
1550
- { path: "order.createdDate" },
1551
- { path: "order.updatedDate" },
1552
- { path: "order.purchasedDate" },
1553
- { path: "order.lineItems.image.urlExpirationDate" },
1554
- { path: "order.lineItems.digitalFile.expirationDate" },
1555
- {
1556
- path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
1557
- },
1558
- { path: "order.lineItems.serviceProperties.scheduledDate" },
1559
- { path: "order.lineItems.serviceProperties.endDate" },
1560
- { path: "order.shippingInfo.logistics.deliverByDate" },
1561
- { path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
1562
- { path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
1563
- { path: "order.activities.createdDate" }
1564
- ]
1085
+ paths: TRANSFORM_PATHS_0
1565
1086
  },
1566
1087
  {
1567
1088
  transformFn: transformRESTFloatToSDKFloat,
1568
- paths: [
1569
- { path: "order.lineItems.image.focalPoint.x" },
1570
- { path: "order.lineItems.image.focalPoint.y" },
1571
- { path: "order.lineItems.physicalProperties.weight" },
1572
- { path: "order.billingInfo.address.geocode.latitude" },
1573
- { path: "order.billingInfo.address.geocode.longitude" },
1574
- {
1575
- path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
1576
- },
1577
- {
1578
- path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
1579
- },
1580
- {
1581
- path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
1582
- },
1583
- {
1584
- path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
1585
- },
1586
- { path: "order.recipientInfo.address.geocode.latitude" },
1587
- { path: "order.recipientInfo.address.geocode.longitude" }
1588
- ]
1089
+ paths: TRANSFORM_PATHS_1
1589
1090
  }
1590
1091
  ])
1591
1092
  };
@@ -1612,46 +1113,11 @@ function cancelOrder(payload) {
1612
1113
  transformResponse: (payload2) => transformPaths(payload2, [
1613
1114
  {
1614
1115
  transformFn: transformRESTTimestampToSDKTimestamp,
1615
- paths: [
1616
- { path: "order.createdDate" },
1617
- { path: "order.updatedDate" },
1618
- { path: "order.purchasedDate" },
1619
- { path: "order.lineItems.image.urlExpirationDate" },
1620
- { path: "order.lineItems.digitalFile.expirationDate" },
1621
- {
1622
- path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
1623
- },
1624
- { path: "order.lineItems.serviceProperties.scheduledDate" },
1625
- { path: "order.lineItems.serviceProperties.endDate" },
1626
- { path: "order.shippingInfo.logistics.deliverByDate" },
1627
- { path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
1628
- { path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
1629
- { path: "order.activities.createdDate" }
1630
- ]
1116
+ paths: TRANSFORM_PATHS_0
1631
1117
  },
1632
1118
  {
1633
1119
  transformFn: transformRESTFloatToSDKFloat,
1634
- paths: [
1635
- { path: "order.lineItems.image.focalPoint.x" },
1636
- { path: "order.lineItems.image.focalPoint.y" },
1637
- { path: "order.lineItems.physicalProperties.weight" },
1638
- { path: "order.billingInfo.address.geocode.latitude" },
1639
- { path: "order.billingInfo.address.geocode.longitude" },
1640
- {
1641
- path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
1642
- },
1643
- {
1644
- path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
1645
- },
1646
- {
1647
- path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
1648
- },
1649
- {
1650
- path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
1651
- },
1652
- { path: "order.recipientInfo.address.geocode.latitude" },
1653
- { path: "order.recipientInfo.address.geocode.longitude" }
1654
- ]
1120
+ paths: TRANSFORM_PATHS_1
1655
1121
  }
1656
1122
  ])
1657
1123
  };
@@ -1678,46 +1144,11 @@ function updateOrderStatus(payload) {
1678
1144
  transformResponse: (payload2) => transformPaths(payload2, [
1679
1145
  {
1680
1146
  transformFn: transformRESTTimestampToSDKTimestamp,
1681
- paths: [
1682
- { path: "order.createdDate" },
1683
- { path: "order.updatedDate" },
1684
- { path: "order.purchasedDate" },
1685
- { path: "order.lineItems.image.urlExpirationDate" },
1686
- { path: "order.lineItems.digitalFile.expirationDate" },
1687
- {
1688
- path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
1689
- },
1690
- { path: "order.lineItems.serviceProperties.scheduledDate" },
1691
- { path: "order.lineItems.serviceProperties.endDate" },
1692
- { path: "order.shippingInfo.logistics.deliverByDate" },
1693
- { path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
1694
- { path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
1695
- { path: "order.activities.createdDate" }
1696
- ]
1147
+ paths: TRANSFORM_PATHS_0
1697
1148
  },
1698
1149
  {
1699
1150
  transformFn: transformRESTFloatToSDKFloat,
1700
- paths: [
1701
- { path: "order.lineItems.image.focalPoint.x" },
1702
- { path: "order.lineItems.image.focalPoint.y" },
1703
- { path: "order.lineItems.physicalProperties.weight" },
1704
- { path: "order.billingInfo.address.geocode.latitude" },
1705
- { path: "order.billingInfo.address.geocode.longitude" },
1706
- {
1707
- path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
1708
- },
1709
- {
1710
- path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
1711
- },
1712
- {
1713
- path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
1714
- },
1715
- {
1716
- path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
1717
- },
1718
- { path: "order.recipientInfo.address.geocode.latitude" },
1719
- { path: "order.recipientInfo.address.geocode.longitude" }
1720
- ]
1151
+ paths: TRANSFORM_PATHS_1
1721
1152
  }
1722
1153
  ])
1723
1154
  };
@@ -1775,6 +1206,35 @@ import { transformSDKImageToRESTImage } from "@wix/sdk-runtime/transformations/i
1775
1206
  import { transformRESTImageToSDKImage } from "@wix/sdk-runtime/transformations/image";
1776
1207
  import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
1777
1208
  import { createSearchUtils } from "@wix/sdk-runtime/search-builder-utils";
1209
+ var TRANSFORM_PATHS_02 = [{ path: "order.lineItems.image" }];
1210
+ var TRANSFORM_PATHS_16 = [
1211
+ { path: "order.billingInfo.address" },
1212
+ { path: "order.shippingInfo.logistics.shippingDestination.address" },
1213
+ { path: "order.shippingInfo.logistics.pickupDetails.address" },
1214
+ { path: "order.recipientInfo.address" }
1215
+ ];
1216
+ var TRANSFORM_PATHS_22 = [{ path: "results.item.lineItems.image" }];
1217
+ var TRANSFORM_PATHS_32 = [
1218
+ { path: "results.item.billingInfo.address" },
1219
+ { path: "results.item.shippingInfo.logistics.shippingDestination.address" },
1220
+ { path: "results.item.shippingInfo.logistics.pickupDetails.address" },
1221
+ { path: "results.item.recipientInfo.address" }
1222
+ ];
1223
+ var TRANSFORM_PATHS_42 = [{ path: "orders.lineItems.image" }];
1224
+ var TRANSFORM_PATHS_52 = [
1225
+ { path: "orders.billingInfo.address" },
1226
+ { path: "orders.shippingInfo.logistics.shippingDestination.address" },
1227
+ { path: "orders.shippingInfo.logistics.pickupDetails.address" },
1228
+ { path: "orders.recipientInfo.address" }
1229
+ ];
1230
+ var TRANSFORM_PATHS_62 = [{ path: "orders.order.lineItems.image" }];
1231
+ var TRANSFORM_PATHS_72 = [
1232
+ { path: "orders.order.billingInfo.address" },
1233
+ { path: "orders.order.shippingInfo.logistics.shippingDestination.address" },
1234
+ { path: "orders.order.shippingInfo.logistics.pickupDetails.address" },
1235
+ { path: "orders.order.recipientInfo.address" }
1236
+ ];
1237
+ var TRANSFORM_PATHS_82 = [{ path: "lineItem.image" }];
1778
1238
  var DescriptionLineType = /* @__PURE__ */ ((DescriptionLineType2) => {
1779
1239
  DescriptionLineType2["UNRECOGNISED"] = "UNRECOGNISED";
1780
1240
  DescriptionLineType2["PLAIN_TEXT"] = "PLAIN_TEXT";
@@ -2123,6 +1583,7 @@ var PaymentCollectabilityStatus = /* @__PURE__ */ ((PaymentCollectabilityStatus2
2123
1583
  PaymentCollectabilityStatus2["NONCOLLECTABLE_SUBSCRIPTION_CYCLE_ALREADY_PASSED"] = "NONCOLLECTABLE_SUBSCRIPTION_CYCLE_ALREADY_PASSED";
2124
1584
  PaymentCollectabilityStatus2["NONCOLLECTABLE_ORDER_HAS_UNSUPPORTED_SUBSCRIPTION"] = "NONCOLLECTABLE_ORDER_HAS_UNSUPPORTED_SUBSCRIPTION";
2125
1585
  PaymentCollectabilityStatus2["NONCOLLECTABLE_CUSTOM_AMOUNT_NOT_SUPPORTED"] = "NONCOLLECTABLE_CUSTOM_AMOUNT_NOT_SUPPORTED";
1586
+ PaymentCollectabilityStatus2["NONCOLLECTABLE_SUBSCRIPTION_START_DATE_IN_PAST"] = "NONCOLLECTABLE_SUBSCRIPTION_START_DATE_IN_PAST";
2126
1587
  return PaymentCollectabilityStatus2;
2127
1588
  })(PaymentCollectabilityStatus || {});
2128
1589
  var PredefinedPaymentMethod = /* @__PURE__ */ ((PredefinedPaymentMethod2) => {
@@ -2408,16 +1869,11 @@ async function importOrder2(order) {
2408
1869
  [
2409
1870
  {
2410
1871
  transformFn: transformSDKImageToRESTImage,
2411
- paths: [{ path: "order.lineItems.image" }]
1872
+ paths: TRANSFORM_PATHS_02
2412
1873
  },
2413
1874
  {
2414
1875
  transformFn: transformSDKAddressToRESTAddress,
2415
- paths: [
2416
- { path: "order.billingInfo.address" },
2417
- { path: "order.shippingInfo.logistics.shippingDestination.address" },
2418
- { path: "order.shippingInfo.logistics.pickupDetails.address" },
2419
- { path: "order.recipientInfo.address" }
2420
- ]
1876
+ paths: TRANSFORM_PATHS_16
2421
1877
  }
2422
1878
  ]
2423
1879
  );
@@ -2430,18 +1886,11 @@ async function importOrder2(order) {
2430
1886
  transformPaths2(result.data, [
2431
1887
  {
2432
1888
  transformFn: transformRESTImageToSDKImage,
2433
- paths: [{ path: "order.lineItems.image" }]
1889
+ paths: TRANSFORM_PATHS_02
2434
1890
  },
2435
1891
  {
2436
1892
  transformFn: transformRESTAddressToSDKAddress,
2437
- paths: [
2438
- { path: "order.billingInfo.address" },
2439
- {
2440
- path: "order.shippingInfo.logistics.shippingDestination.address"
2441
- },
2442
- { path: "order.shippingInfo.logistics.pickupDetails.address" },
2443
- { path: "order.recipientInfo.address" }
2444
- ]
1893
+ paths: TRANSFORM_PATHS_16
2445
1894
  }
2446
1895
  ])
2447
1896
  );
@@ -2621,18 +2070,11 @@ async function paymentCollectionMarkOrderAsPaid2(ecomOrderId, options) {
2621
2070
  transformPaths2(result.data, [
2622
2071
  {
2623
2072
  transformFn: transformRESTImageToSDKImage,
2624
- paths: [{ path: "order.lineItems.image" }]
2073
+ paths: TRANSFORM_PATHS_02
2625
2074
  },
2626
2075
  {
2627
2076
  transformFn: transformRESTAddressToSDKAddress,
2628
- paths: [
2629
- { path: "order.billingInfo.address" },
2630
- {
2631
- path: "order.shippingInfo.logistics.shippingDestination.address"
2632
- },
2633
- { path: "order.shippingInfo.logistics.pickupDetails.address" },
2634
- { path: "order.recipientInfo.address" }
2635
- ]
2077
+ paths: TRANSFORM_PATHS_16
2636
2078
  }
2637
2079
  ])
2638
2080
  );
@@ -2667,20 +2109,11 @@ async function paymentCollectionBulkMarkOrdersAsPaid2(ecomOrderIds) {
2667
2109
  transformPaths2(result.data, [
2668
2110
  {
2669
2111
  transformFn: transformRESTImageToSDKImage,
2670
- paths: [{ path: "results.item.lineItems.image" }]
2112
+ paths: TRANSFORM_PATHS_22
2671
2113
  },
2672
2114
  {
2673
2115
  transformFn: transformRESTAddressToSDKAddress,
2674
- paths: [
2675
- { path: "results.item.billingInfo.address" },
2676
- {
2677
- path: "results.item.shippingInfo.logistics.shippingDestination.address"
2678
- },
2679
- {
2680
- path: "results.item.shippingInfo.logistics.pickupDetails.address"
2681
- },
2682
- { path: "results.item.recipientInfo.address" }
2683
- ]
2116
+ paths: TRANSFORM_PATHS_32
2684
2117
  }
2685
2118
  ])
2686
2119
  );
@@ -2881,18 +2314,11 @@ async function getOrder2(_id) {
2881
2314
  transformPaths2(result.data, [
2882
2315
  {
2883
2316
  transformFn: transformRESTImageToSDKImage,
2884
- paths: [{ path: "order.lineItems.image" }]
2317
+ paths: TRANSFORM_PATHS_02
2885
2318
  },
2886
2319
  {
2887
2320
  transformFn: transformRESTAddressToSDKAddress,
2888
- paths: [
2889
- { path: "order.billingInfo.address" },
2890
- {
2891
- path: "order.shippingInfo.logistics.shippingDestination.address"
2892
- },
2893
- { path: "order.shippingInfo.logistics.pickupDetails.address" },
2894
- { path: "order.recipientInfo.address" }
2895
- ]
2321
+ paths: TRANSFORM_PATHS_16
2896
2322
  }
2897
2323
  ])
2898
2324
  )?.order;
@@ -2922,18 +2348,11 @@ async function searchOrders2(search) {
2922
2348
  transformPaths2(result.data, [
2923
2349
  {
2924
2350
  transformFn: transformRESTImageToSDKImage,
2925
- paths: [{ path: "orders.lineItems.image" }]
2351
+ paths: TRANSFORM_PATHS_42
2926
2352
  },
2927
2353
  {
2928
2354
  transformFn: transformRESTAddressToSDKAddress,
2929
- paths: [
2930
- { path: "orders.billingInfo.address" },
2931
- {
2932
- path: "orders.shippingInfo.logistics.shippingDestination.address"
2933
- },
2934
- { path: "orders.shippingInfo.logistics.pickupDetails.address" },
2935
- { path: "orders.recipientInfo.address" }
2936
- ]
2355
+ paths: TRANSFORM_PATHS_52
2937
2356
  }
2938
2357
  ])
2939
2358
  );
@@ -2964,16 +2383,11 @@ async function createOrder2(order, options) {
2964
2383
  [
2965
2384
  {
2966
2385
  transformFn: transformSDKImageToRESTImage,
2967
- paths: [{ path: "order.lineItems.image" }]
2386
+ paths: TRANSFORM_PATHS_02
2968
2387
  },
2969
2388
  {
2970
2389
  transformFn: transformSDKAddressToRESTAddress,
2971
- paths: [
2972
- { path: "order.billingInfo.address" },
2973
- { path: "order.shippingInfo.logistics.shippingDestination.address" },
2974
- { path: "order.shippingInfo.logistics.pickupDetails.address" },
2975
- { path: "order.recipientInfo.address" }
2976
- ]
2390
+ paths: TRANSFORM_PATHS_16
2977
2391
  }
2978
2392
  ]
2979
2393
  );
@@ -2986,18 +2400,11 @@ async function createOrder2(order, options) {
2986
2400
  transformPaths2(result.data, [
2987
2401
  {
2988
2402
  transformFn: transformRESTImageToSDKImage,
2989
- paths: [{ path: "order.lineItems.image" }]
2403
+ paths: TRANSFORM_PATHS_02
2990
2404
  },
2991
2405
  {
2992
2406
  transformFn: transformRESTAddressToSDKAddress,
2993
- paths: [
2994
- { path: "order.billingInfo.address" },
2995
- {
2996
- path: "order.shippingInfo.logistics.shippingDestination.address"
2997
- },
2998
- { path: "order.shippingInfo.logistics.pickupDetails.address" },
2999
- { path: "order.recipientInfo.address" }
3000
- ]
2407
+ paths: TRANSFORM_PATHS_16
3001
2408
  }
3002
2409
  ])
3003
2410
  )?.order;
@@ -3022,16 +2429,11 @@ async function updateOrder2(_id, order) {
3022
2429
  [
3023
2430
  {
3024
2431
  transformFn: transformSDKImageToRESTImage,
3025
- paths: [{ path: "order.lineItems.image" }]
2432
+ paths: TRANSFORM_PATHS_02
3026
2433
  },
3027
2434
  {
3028
2435
  transformFn: transformSDKAddressToRESTAddress,
3029
- paths: [
3030
- { path: "order.billingInfo.address" },
3031
- { path: "order.shippingInfo.logistics.shippingDestination.address" },
3032
- { path: "order.shippingInfo.logistics.pickupDetails.address" },
3033
- { path: "order.recipientInfo.address" }
3034
- ]
2436
+ paths: TRANSFORM_PATHS_16
3035
2437
  }
3036
2438
  ]
3037
2439
  );
@@ -3044,18 +2446,11 @@ async function updateOrder2(_id, order) {
3044
2446
  transformPaths2(result.data, [
3045
2447
  {
3046
2448
  transformFn: transformRESTImageToSDKImage,
3047
- paths: [{ path: "order.lineItems.image" }]
2449
+ paths: TRANSFORM_PATHS_02
3048
2450
  },
3049
2451
  {
3050
2452
  transformFn: transformRESTAddressToSDKAddress,
3051
- paths: [
3052
- { path: "order.billingInfo.address" },
3053
- {
3054
- path: "order.shippingInfo.logistics.shippingDestination.address"
3055
- },
3056
- { path: "order.shippingInfo.logistics.pickupDetails.address" },
3057
- { path: "order.recipientInfo.address" }
3058
- ]
2453
+ paths: TRANSFORM_PATHS_16
3059
2454
  }
3060
2455
  ])
3061
2456
  )?.order;
@@ -3083,18 +2478,11 @@ async function bulkUpdateOrders2(orders, options) {
3083
2478
  [
3084
2479
  {
3085
2480
  transformFn: transformSDKImageToRESTImage,
3086
- paths: [{ path: "orders.order.lineItems.image" }]
2481
+ paths: TRANSFORM_PATHS_62
3087
2482
  },
3088
2483
  {
3089
2484
  transformFn: transformSDKAddressToRESTAddress,
3090
- paths: [
3091
- { path: "orders.order.billingInfo.address" },
3092
- {
3093
- path: "orders.order.shippingInfo.logistics.shippingDestination.address"
3094
- },
3095
- { path: "orders.order.shippingInfo.logistics.pickupDetails.address" },
3096
- { path: "orders.order.recipientInfo.address" }
3097
- ]
2485
+ paths: TRANSFORM_PATHS_72
3098
2486
  }
3099
2487
  ]
3100
2488
  );
@@ -3107,20 +2495,11 @@ async function bulkUpdateOrders2(orders, options) {
3107
2495
  transformPaths2(result.data, [
3108
2496
  {
3109
2497
  transformFn: transformRESTImageToSDKImage,
3110
- paths: [{ path: "results.item.lineItems.image" }]
2498
+ paths: TRANSFORM_PATHS_22
3111
2499
  },
3112
2500
  {
3113
2501
  transformFn: transformRESTAddressToSDKAddress,
3114
- paths: [
3115
- { path: "results.item.billingInfo.address" },
3116
- {
3117
- path: "results.item.shippingInfo.logistics.shippingDestination.address"
3118
- },
3119
- {
3120
- path: "results.item.shippingInfo.logistics.pickupDetails.address"
3121
- },
3122
- { path: "results.item.recipientInfo.address" }
3123
- ]
2502
+ paths: TRANSFORM_PATHS_32
3124
2503
  }
3125
2504
  ])
3126
2505
  );
@@ -3151,7 +2530,7 @@ async function updateOrderLineItem2(identifiers, lineItem) {
3151
2530
  [
3152
2531
  {
3153
2532
  transformFn: transformSDKImageToRESTImage,
3154
- paths: [{ path: "lineItem.image" }]
2533
+ paths: TRANSFORM_PATHS_82
3155
2534
  }
3156
2535
  ]
3157
2536
  );
@@ -3164,18 +2543,11 @@ async function updateOrderLineItem2(identifiers, lineItem) {
3164
2543
  transformPaths2(result.data, [
3165
2544
  {
3166
2545
  transformFn: transformRESTImageToSDKImage,
3167
- paths: [{ path: "order.lineItems.image" }]
2546
+ paths: TRANSFORM_PATHS_02
3168
2547
  },
3169
2548
  {
3170
2549
  transformFn: transformRESTAddressToSDKAddress,
3171
- paths: [
3172
- { path: "order.billingInfo.address" },
3173
- {
3174
- path: "order.shippingInfo.logistics.shippingDestination.address"
3175
- },
3176
- { path: "order.shippingInfo.logistics.pickupDetails.address" },
3177
- { path: "order.recipientInfo.address" }
3178
- ]
2550
+ paths: TRANSFORM_PATHS_16
3179
2551
  }
3180
2552
  ])
3181
2553
  );
@@ -3211,18 +2583,11 @@ async function addActivity2(_id, activity) {
3211
2583
  transformPaths2(result.data, [
3212
2584
  {
3213
2585
  transformFn: transformRESTImageToSDKImage,
3214
- paths: [{ path: "order.lineItems.image" }]
2586
+ paths: TRANSFORM_PATHS_02
3215
2587
  },
3216
2588
  {
3217
2589
  transformFn: transformRESTAddressToSDKAddress,
3218
- paths: [
3219
- { path: "order.billingInfo.address" },
3220
- {
3221
- path: "order.shippingInfo.logistics.shippingDestination.address"
3222
- },
3223
- { path: "order.shippingInfo.logistics.pickupDetails.address" },
3224
- { path: "order.recipientInfo.address" }
3225
- ]
2590
+ paths: TRANSFORM_PATHS_16
3226
2591
  }
3227
2592
  ])
3228
2593
  );
@@ -3255,18 +2620,11 @@ async function addActivities2(orderId, options) {
3255
2620
  transformPaths2(result.data, [
3256
2621
  {
3257
2622
  transformFn: transformRESTImageToSDKImage,
3258
- paths: [{ path: "order.lineItems.image" }]
2623
+ paths: TRANSFORM_PATHS_02
3259
2624
  },
3260
2625
  {
3261
2626
  transformFn: transformRESTAddressToSDKAddress,
3262
- paths: [
3263
- { path: "order.billingInfo.address" },
3264
- {
3265
- path: "order.shippingInfo.logistics.shippingDestination.address"
3266
- },
3267
- { path: "order.shippingInfo.logistics.pickupDetails.address" },
3268
- { path: "order.recipientInfo.address" }
3269
- ]
2627
+ paths: TRANSFORM_PATHS_16
3270
2628
  }
3271
2629
  ])
3272
2630
  );
@@ -3303,18 +2661,11 @@ async function updateActivity2(identifiers, activity) {
3303
2661
  transformPaths2(result.data, [
3304
2662
  {
3305
2663
  transformFn: transformRESTImageToSDKImage,
3306
- paths: [{ path: "order.lineItems.image" }]
2664
+ paths: TRANSFORM_PATHS_02
3307
2665
  },
3308
2666
  {
3309
2667
  transformFn: transformRESTAddressToSDKAddress,
3310
- paths: [
3311
- { path: "order.billingInfo.address" },
3312
- {
3313
- path: "order.shippingInfo.logistics.shippingDestination.address"
3314
- },
3315
- { path: "order.shippingInfo.logistics.pickupDetails.address" },
3316
- { path: "order.recipientInfo.address" }
3317
- ]
2668
+ paths: TRANSFORM_PATHS_16
3318
2669
  }
3319
2670
  ])
3320
2671
  );
@@ -3351,18 +2702,11 @@ async function deleteActivity2(identifiers) {
3351
2702
  transformPaths2(result.data, [
3352
2703
  {
3353
2704
  transformFn: transformRESTImageToSDKImage,
3354
- paths: [{ path: "order.lineItems.image" }]
2705
+ paths: TRANSFORM_PATHS_02
3355
2706
  },
3356
2707
  {
3357
2708
  transformFn: transformRESTAddressToSDKAddress,
3358
- paths: [
3359
- { path: "order.billingInfo.address" },
3360
- {
3361
- path: "order.shippingInfo.logistics.shippingDestination.address"
3362
- },
3363
- { path: "order.shippingInfo.logistics.pickupDetails.address" },
3364
- { path: "order.recipientInfo.address" }
3365
- ]
2709
+ paths: TRANSFORM_PATHS_16
3366
2710
  }
3367
2711
  ])
3368
2712
  );
@@ -3400,18 +2744,11 @@ async function cancelOrder2(_id, options) {
3400
2744
  transformPaths2(result.data, [
3401
2745
  {
3402
2746
  transformFn: transformRESTImageToSDKImage,
3403
- paths: [{ path: "order.lineItems.image" }]
2747
+ paths: TRANSFORM_PATHS_02
3404
2748
  },
3405
2749
  {
3406
2750
  transformFn: transformRESTAddressToSDKAddress,
3407
- paths: [
3408
- { path: "order.billingInfo.address" },
3409
- {
3410
- path: "order.shippingInfo.logistics.shippingDestination.address"
3411
- },
3412
- { path: "order.shippingInfo.logistics.pickupDetails.address" },
3413
- { path: "order.recipientInfo.address" }
3414
- ]
2751
+ paths: TRANSFORM_PATHS_16
3415
2752
  }
3416
2753
  ])
3417
2754
  );
@@ -3449,18 +2786,11 @@ async function updateOrderStatus2(orderId, status) {
3449
2786
  transformPaths2(result.data, [
3450
2787
  {
3451
2788
  transformFn: transformRESTImageToSDKImage,
3452
- paths: [{ path: "order.lineItems.image" }]
2789
+ paths: TRANSFORM_PATHS_02
3453
2790
  },
3454
2791
  {
3455
2792
  transformFn: transformRESTAddressToSDKAddress,
3456
- paths: [
3457
- { path: "order.billingInfo.address" },
3458
- {
3459
- path: "order.shippingInfo.logistics.shippingDestination.address"
3460
- },
3461
- { path: "order.shippingInfo.logistics.pickupDetails.address" },
3462
- { path: "order.recipientInfo.address" }
3463
- ]
2793
+ paths: TRANSFORM_PATHS_16
3464
2794
  }
3465
2795
  ])
3466
2796
  );