@wix/auto_sdk_ecom_orders 1.0.300 → 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.
- package/build/cjs/index.js +480 -1275
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.js +307 -978
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.js +239 -808
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs +480 -1275
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.mjs +307 -978
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.mjs +239 -808
- package/build/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/es/index.mjs
CHANGED
|
@@ -23,6 +23,196 @@ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transform
|
|
|
23
23
|
import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
|
|
24
24
|
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
25
25
|
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
26
|
+
var TRANSFORM_PATHS_0 = [
|
|
27
|
+
{ path: "order.createdDate" },
|
|
28
|
+
{ path: "order.updatedDate" },
|
|
29
|
+
{ path: "order.purchasedDate" },
|
|
30
|
+
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
31
|
+
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
32
|
+
{ path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate" },
|
|
33
|
+
{ path: "order.lineItems.serviceProperties.scheduledDate" },
|
|
34
|
+
{ path: "order.lineItems.serviceProperties.endDate" },
|
|
35
|
+
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
36
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
37
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
38
|
+
{ path: "order.activities.createdDate" }
|
|
39
|
+
];
|
|
40
|
+
var TRANSFORM_PATHS_1 = [
|
|
41
|
+
{ path: "order.lineItems.image.focalPoint.x" },
|
|
42
|
+
{ path: "order.lineItems.image.focalPoint.y" },
|
|
43
|
+
{ path: "order.lineItems.physicalProperties.weight" },
|
|
44
|
+
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
45
|
+
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
46
|
+
{
|
|
47
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
57
|
+
},
|
|
58
|
+
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
59
|
+
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
60
|
+
];
|
|
61
|
+
var TRANSFORM_PATHS_2 = [
|
|
62
|
+
{ path: "results.item.createdDate" },
|
|
63
|
+
{ path: "results.item.updatedDate" },
|
|
64
|
+
{ path: "results.item.purchasedDate" },
|
|
65
|
+
{ path: "results.item.lineItems.image.urlExpirationDate" },
|
|
66
|
+
{ path: "results.item.lineItems.digitalFile.expirationDate" },
|
|
67
|
+
{
|
|
68
|
+
path: "results.item.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
69
|
+
},
|
|
70
|
+
{ path: "results.item.lineItems.serviceProperties.scheduledDate" },
|
|
71
|
+
{ path: "results.item.lineItems.serviceProperties.endDate" },
|
|
72
|
+
{ path: "results.item.shippingInfo.logistics.deliverByDate" },
|
|
73
|
+
{ path: "results.item.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
74
|
+
{ path: "results.item.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
75
|
+
{ path: "results.item.activities.createdDate" }
|
|
76
|
+
];
|
|
77
|
+
var TRANSFORM_PATHS_3 = [
|
|
78
|
+
{ path: "results.item.lineItems.image.focalPoint.x" },
|
|
79
|
+
{ path: "results.item.lineItems.image.focalPoint.y" },
|
|
80
|
+
{ path: "results.item.lineItems.physicalProperties.weight" },
|
|
81
|
+
{ path: "results.item.billingInfo.address.geocode.latitude" },
|
|
82
|
+
{ path: "results.item.billingInfo.address.geocode.longitude" },
|
|
83
|
+
{
|
|
84
|
+
path: "results.item.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
path: "results.item.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
path: "results.item.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
path: "results.item.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
94
|
+
},
|
|
95
|
+
{ path: "results.item.recipientInfo.address.geocode.latitude" },
|
|
96
|
+
{ path: "results.item.recipientInfo.address.geocode.longitude" }
|
|
97
|
+
];
|
|
98
|
+
var TRANSFORM_PATHS_4 = [
|
|
99
|
+
{ path: "membershipCharges.serviceProperties.scheduledDate" },
|
|
100
|
+
{ path: "membershipCharges.serviceProperties.endDate" }
|
|
101
|
+
];
|
|
102
|
+
var TRANSFORM_PATHS_5 = [
|
|
103
|
+
{ path: "orderTransactions.payments.createdDate" },
|
|
104
|
+
{ path: "orderTransactions.payments.updatedDate" },
|
|
105
|
+
{
|
|
106
|
+
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.updatedDate"
|
|
122
|
+
},
|
|
123
|
+
{ path: "orderTransactions.refunds.createdDate" }
|
|
124
|
+
];
|
|
125
|
+
var TRANSFORM_PATHS_6 = [
|
|
126
|
+
{ path: "search.sort.origin.latitude" },
|
|
127
|
+
{ path: "search.sort.origin.longitude" }
|
|
128
|
+
];
|
|
129
|
+
var TRANSFORM_PATHS_7 = [
|
|
130
|
+
{ path: "orders.createdDate" },
|
|
131
|
+
{ path: "orders.updatedDate" },
|
|
132
|
+
{ path: "orders.purchasedDate" },
|
|
133
|
+
{ path: "orders.lineItems.image.urlExpirationDate" },
|
|
134
|
+
{ path: "orders.lineItems.digitalFile.expirationDate" },
|
|
135
|
+
{ path: "orders.lineItems.subscriptionInfo.subscriptionSettings.startDate" },
|
|
136
|
+
{ path: "orders.lineItems.serviceProperties.scheduledDate" },
|
|
137
|
+
{ path: "orders.lineItems.serviceProperties.endDate" },
|
|
138
|
+
{ path: "orders.shippingInfo.logistics.deliverByDate" },
|
|
139
|
+
{ path: "orders.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
140
|
+
{ path: "orders.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
141
|
+
{ path: "orders.activities.createdDate" }
|
|
142
|
+
];
|
|
143
|
+
var TRANSFORM_PATHS_8 = [
|
|
144
|
+
{ path: "orders.lineItems.image.focalPoint.x" },
|
|
145
|
+
{ path: "orders.lineItems.image.focalPoint.y" },
|
|
146
|
+
{ path: "orders.lineItems.physicalProperties.weight" },
|
|
147
|
+
{ path: "orders.billingInfo.address.geocode.latitude" },
|
|
148
|
+
{ path: "orders.billingInfo.address.geocode.longitude" },
|
|
149
|
+
{
|
|
150
|
+
path: "orders.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
path: "orders.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
path: "orders.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
path: "orders.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
160
|
+
},
|
|
161
|
+
{ path: "orders.recipientInfo.address.geocode.latitude" },
|
|
162
|
+
{ path: "orders.recipientInfo.address.geocode.longitude" }
|
|
163
|
+
];
|
|
164
|
+
var TRANSFORM_PATHS_9 = [{ path: "fieldMask" }];
|
|
165
|
+
var TRANSFORM_PATHS_10 = [{ path: "orders.fieldMask" }];
|
|
166
|
+
var TRANSFORM_PATHS_11 = [
|
|
167
|
+
{ path: "orders.order.createdDate" },
|
|
168
|
+
{ path: "orders.order.updatedDate" },
|
|
169
|
+
{ path: "orders.order.purchasedDate" },
|
|
170
|
+
{ path: "orders.order.lineItems.image.urlExpirationDate" },
|
|
171
|
+
{ path: "orders.order.lineItems.digitalFile.expirationDate" },
|
|
172
|
+
{
|
|
173
|
+
path: "orders.order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
174
|
+
},
|
|
175
|
+
{ path: "orders.order.lineItems.serviceProperties.scheduledDate" },
|
|
176
|
+
{ path: "orders.order.lineItems.serviceProperties.endDate" },
|
|
177
|
+
{ path: "orders.order.shippingInfo.logistics.deliverByDate" },
|
|
178
|
+
{ path: "orders.order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
179
|
+
{ path: "orders.order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
180
|
+
{ path: "orders.order.activities.createdDate" }
|
|
181
|
+
];
|
|
182
|
+
var TRANSFORM_PATHS_12 = [
|
|
183
|
+
{ path: "orders.order.lineItems.image.focalPoint.x" },
|
|
184
|
+
{ path: "orders.order.lineItems.image.focalPoint.y" },
|
|
185
|
+
{ path: "orders.order.lineItems.physicalProperties.weight" },
|
|
186
|
+
{ path: "orders.order.billingInfo.address.geocode.latitude" },
|
|
187
|
+
{ path: "orders.order.billingInfo.address.geocode.longitude" },
|
|
188
|
+
{
|
|
189
|
+
path: "orders.order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
path: "orders.order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
path: "orders.order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
path: "orders.order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
199
|
+
},
|
|
200
|
+
{ path: "orders.order.recipientInfo.address.geocode.latitude" },
|
|
201
|
+
{ path: "orders.order.recipientInfo.address.geocode.longitude" }
|
|
202
|
+
];
|
|
203
|
+
var TRANSFORM_PATHS_13 = [
|
|
204
|
+
{ path: "lineItem.image.urlExpirationDate" },
|
|
205
|
+
{ path: "lineItem.digitalFile.expirationDate" },
|
|
206
|
+
{ path: "lineItem.subscriptionInfo.subscriptionSettings.startDate" },
|
|
207
|
+
{ path: "lineItem.serviceProperties.scheduledDate" },
|
|
208
|
+
{ path: "lineItem.serviceProperties.endDate" }
|
|
209
|
+
];
|
|
210
|
+
var TRANSFORM_PATHS_14 = [
|
|
211
|
+
{ path: "lineItem.image.focalPoint.x" },
|
|
212
|
+
{ path: "lineItem.image.focalPoint.y" },
|
|
213
|
+
{ path: "lineItem.physicalProperties.weight" }
|
|
214
|
+
];
|
|
215
|
+
var TRANSFORM_PATHS_15 = [{ path: "orderActivities.createdDate" }];
|
|
26
216
|
function resolveComWixEcomOrdersV1OrdersUrl(opts) {
|
|
27
217
|
const domainToMappings = {
|
|
28
218
|
_: [
|
|
@@ -186,46 +376,11 @@ function importOrder(payload) {
|
|
|
186
376
|
const serializedData = transformPaths(payload, [
|
|
187
377
|
{
|
|
188
378
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
189
|
-
paths:
|
|
190
|
-
{ path: "order.createdDate" },
|
|
191
|
-
{ path: "order.updatedDate" },
|
|
192
|
-
{ path: "order.purchasedDate" },
|
|
193
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
194
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
195
|
-
{
|
|
196
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
197
|
-
},
|
|
198
|
-
{ path: "order.lineItems.serviceProperties.scheduledDate" },
|
|
199
|
-
{ path: "order.lineItems.serviceProperties.endDate" },
|
|
200
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
201
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
202
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
203
|
-
{ path: "order.activities.createdDate" }
|
|
204
|
-
]
|
|
379
|
+
paths: TRANSFORM_PATHS_0
|
|
205
380
|
},
|
|
206
381
|
{
|
|
207
382
|
transformFn: transformSDKFloatToRESTFloat,
|
|
208
|
-
paths:
|
|
209
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
210
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
211
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
212
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
213
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
214
|
-
{
|
|
215
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
216
|
-
},
|
|
217
|
-
{
|
|
218
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
219
|
-
},
|
|
220
|
-
{
|
|
221
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
222
|
-
},
|
|
223
|
-
{
|
|
224
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
225
|
-
},
|
|
226
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
227
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
228
|
-
]
|
|
383
|
+
paths: TRANSFORM_PATHS_1
|
|
229
384
|
}
|
|
230
385
|
]);
|
|
231
386
|
const metadata = {
|
|
@@ -245,46 +400,11 @@ function importOrder(payload) {
|
|
|
245
400
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
246
401
|
{
|
|
247
402
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
248
|
-
paths:
|
|
249
|
-
{ path: "order.createdDate" },
|
|
250
|
-
{ path: "order.updatedDate" },
|
|
251
|
-
{ path: "order.purchasedDate" },
|
|
252
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
253
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
254
|
-
{
|
|
255
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
256
|
-
},
|
|
257
|
-
{ path: "order.lineItems.serviceProperties.scheduledDate" },
|
|
258
|
-
{ path: "order.lineItems.serviceProperties.endDate" },
|
|
259
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
260
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
261
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
262
|
-
{ path: "order.activities.createdDate" }
|
|
263
|
-
]
|
|
403
|
+
paths: TRANSFORM_PATHS_0
|
|
264
404
|
},
|
|
265
405
|
{
|
|
266
406
|
transformFn: transformRESTFloatToSDKFloat,
|
|
267
|
-
paths:
|
|
268
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
269
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
270
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
271
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
272
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
273
|
-
{
|
|
274
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
275
|
-
},
|
|
276
|
-
{
|
|
277
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
278
|
-
},
|
|
279
|
-
{
|
|
280
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
281
|
-
},
|
|
282
|
-
{
|
|
283
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
284
|
-
},
|
|
285
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
286
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
287
|
-
]
|
|
407
|
+
paths: TRANSFORM_PATHS_1
|
|
288
408
|
}
|
|
289
409
|
])
|
|
290
410
|
};
|
|
@@ -416,46 +536,11 @@ function paymentCollectionMarkOrderAsPaid(payload) {
|
|
|
416
536
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
417
537
|
{
|
|
418
538
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
419
|
-
paths:
|
|
420
|
-
{ path: "order.createdDate" },
|
|
421
|
-
{ path: "order.updatedDate" },
|
|
422
|
-
{ path: "order.purchasedDate" },
|
|
423
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
424
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
425
|
-
{
|
|
426
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
427
|
-
},
|
|
428
|
-
{ path: "order.lineItems.serviceProperties.scheduledDate" },
|
|
429
|
-
{ path: "order.lineItems.serviceProperties.endDate" },
|
|
430
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
431
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
432
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
433
|
-
{ path: "order.activities.createdDate" }
|
|
434
|
-
]
|
|
539
|
+
paths: TRANSFORM_PATHS_0
|
|
435
540
|
},
|
|
436
541
|
{
|
|
437
542
|
transformFn: transformRESTFloatToSDKFloat,
|
|
438
|
-
paths:
|
|
439
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
440
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
441
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
442
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
443
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
444
|
-
{
|
|
445
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
446
|
-
},
|
|
447
|
-
{
|
|
448
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
449
|
-
},
|
|
450
|
-
{
|
|
451
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
452
|
-
},
|
|
453
|
-
{
|
|
454
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
455
|
-
},
|
|
456
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
457
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
458
|
-
]
|
|
543
|
+
paths: TRANSFORM_PATHS_1
|
|
459
544
|
}
|
|
460
545
|
])
|
|
461
546
|
};
|
|
@@ -482,52 +567,11 @@ function paymentCollectionBulkMarkOrdersAsPaid(payload) {
|
|
|
482
567
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
483
568
|
{
|
|
484
569
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
485
|
-
paths:
|
|
486
|
-
{ path: "results.item.createdDate" },
|
|
487
|
-
{ path: "results.item.updatedDate" },
|
|
488
|
-
{ path: "results.item.purchasedDate" },
|
|
489
|
-
{ path: "results.item.lineItems.image.urlExpirationDate" },
|
|
490
|
-
{ path: "results.item.lineItems.digitalFile.expirationDate" },
|
|
491
|
-
{
|
|
492
|
-
path: "results.item.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
493
|
-
},
|
|
494
|
-
{
|
|
495
|
-
path: "results.item.lineItems.serviceProperties.scheduledDate"
|
|
496
|
-
},
|
|
497
|
-
{ path: "results.item.lineItems.serviceProperties.endDate" },
|
|
498
|
-
{ path: "results.item.shippingInfo.logistics.deliverByDate" },
|
|
499
|
-
{
|
|
500
|
-
path: "results.item.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
501
|
-
},
|
|
502
|
-
{
|
|
503
|
-
path: "results.item.shippingInfo.logistics.deliveryTimeSlot.to"
|
|
504
|
-
},
|
|
505
|
-
{ path: "results.item.activities.createdDate" }
|
|
506
|
-
]
|
|
570
|
+
paths: TRANSFORM_PATHS_2
|
|
507
571
|
},
|
|
508
572
|
{
|
|
509
573
|
transformFn: transformRESTFloatToSDKFloat,
|
|
510
|
-
paths:
|
|
511
|
-
{ path: "results.item.lineItems.image.focalPoint.x" },
|
|
512
|
-
{ path: "results.item.lineItems.image.focalPoint.y" },
|
|
513
|
-
{ path: "results.item.lineItems.physicalProperties.weight" },
|
|
514
|
-
{ path: "results.item.billingInfo.address.geocode.latitude" },
|
|
515
|
-
{ path: "results.item.billingInfo.address.geocode.longitude" },
|
|
516
|
-
{
|
|
517
|
-
path: "results.item.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
518
|
-
},
|
|
519
|
-
{
|
|
520
|
-
path: "results.item.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
521
|
-
},
|
|
522
|
-
{
|
|
523
|
-
path: "results.item.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
524
|
-
},
|
|
525
|
-
{
|
|
526
|
-
path: "results.item.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
527
|
-
},
|
|
528
|
-
{ path: "results.item.recipientInfo.address.geocode.latitude" },
|
|
529
|
-
{ path: "results.item.recipientInfo.address.geocode.longitude" }
|
|
530
|
-
]
|
|
574
|
+
paths: TRANSFORM_PATHS_3
|
|
531
575
|
}
|
|
532
576
|
])
|
|
533
577
|
};
|
|
@@ -582,10 +626,7 @@ function chargeMemberships(payload) {
|
|
|
582
626
|
const serializedData = transformPaths(payload, [
|
|
583
627
|
{
|
|
584
628
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
585
|
-
paths:
|
|
586
|
-
{ path: "membershipCharges.serviceProperties.scheduledDate" },
|
|
587
|
-
{ path: "membershipCharges.serviceProperties.endDate" }
|
|
588
|
-
]
|
|
629
|
+
paths: TRANSFORM_PATHS_4
|
|
589
630
|
}
|
|
590
631
|
]);
|
|
591
632
|
const metadata = {
|
|
@@ -626,29 +667,7 @@ function triggerRefund(payload) {
|
|
|
626
667
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
627
668
|
{
|
|
628
669
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
629
|
-
paths:
|
|
630
|
-
{ path: "orderTransactions.payments.createdDate" },
|
|
631
|
-
{ path: "orderTransactions.payments.updatedDate" },
|
|
632
|
-
{
|
|
633
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
|
|
634
|
-
},
|
|
635
|
-
{
|
|
636
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
637
|
-
},
|
|
638
|
-
{
|
|
639
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
640
|
-
},
|
|
641
|
-
{
|
|
642
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
643
|
-
},
|
|
644
|
-
{
|
|
645
|
-
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
|
|
646
|
-
},
|
|
647
|
-
{
|
|
648
|
-
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.updatedDate"
|
|
649
|
-
},
|
|
650
|
-
{ path: "orderTransactions.refunds.createdDate" }
|
|
651
|
-
]
|
|
670
|
+
paths: TRANSFORM_PATHS_5
|
|
652
671
|
}
|
|
653
672
|
])
|
|
654
673
|
};
|
|
@@ -675,29 +694,7 @@ function voidAuthorizedPayments(payload) {
|
|
|
675
694
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
676
695
|
{
|
|
677
696
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
678
|
-
paths:
|
|
679
|
-
{ path: "orderTransactions.payments.createdDate" },
|
|
680
|
-
{ path: "orderTransactions.payments.updatedDate" },
|
|
681
|
-
{
|
|
682
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
|
|
683
|
-
},
|
|
684
|
-
{
|
|
685
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
686
|
-
},
|
|
687
|
-
{
|
|
688
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
689
|
-
},
|
|
690
|
-
{
|
|
691
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
692
|
-
},
|
|
693
|
-
{
|
|
694
|
-
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
|
|
695
|
-
},
|
|
696
|
-
{
|
|
697
|
-
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.updatedDate"
|
|
698
|
-
},
|
|
699
|
-
{ path: "orderTransactions.refunds.createdDate" }
|
|
700
|
-
]
|
|
697
|
+
paths: TRANSFORM_PATHS_5
|
|
701
698
|
}
|
|
702
699
|
])
|
|
703
700
|
};
|
|
@@ -724,29 +721,7 @@ function captureAuthorizedPayments(payload) {
|
|
|
724
721
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
725
722
|
{
|
|
726
723
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
727
|
-
paths:
|
|
728
|
-
{ path: "orderTransactions.payments.createdDate" },
|
|
729
|
-
{ path: "orderTransactions.payments.updatedDate" },
|
|
730
|
-
{
|
|
731
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
|
|
732
|
-
},
|
|
733
|
-
{
|
|
734
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
735
|
-
},
|
|
736
|
-
{
|
|
737
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
738
|
-
},
|
|
739
|
-
{
|
|
740
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
741
|
-
},
|
|
742
|
-
{
|
|
743
|
-
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
|
|
744
|
-
},
|
|
745
|
-
{
|
|
746
|
-
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.updatedDate"
|
|
747
|
-
},
|
|
748
|
-
{ path: "orderTransactions.refunds.createdDate" }
|
|
749
|
-
]
|
|
724
|
+
paths: TRANSFORM_PATHS_5
|
|
750
725
|
}
|
|
751
726
|
])
|
|
752
727
|
};
|
|
@@ -773,46 +748,11 @@ function getOrder(payload) {
|
|
|
773
748
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
774
749
|
{
|
|
775
750
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
776
|
-
paths:
|
|
777
|
-
{ path: "order.createdDate" },
|
|
778
|
-
{ path: "order.updatedDate" },
|
|
779
|
-
{ path: "order.purchasedDate" },
|
|
780
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
781
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
782
|
-
{
|
|
783
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
784
|
-
},
|
|
785
|
-
{ path: "order.lineItems.serviceProperties.scheduledDate" },
|
|
786
|
-
{ path: "order.lineItems.serviceProperties.endDate" },
|
|
787
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
788
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
789
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
790
|
-
{ path: "order.activities.createdDate" }
|
|
791
|
-
]
|
|
751
|
+
paths: TRANSFORM_PATHS_0
|
|
792
752
|
},
|
|
793
753
|
{
|
|
794
754
|
transformFn: transformRESTFloatToSDKFloat,
|
|
795
|
-
paths:
|
|
796
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
797
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
798
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
799
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
800
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
801
|
-
{
|
|
802
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
803
|
-
},
|
|
804
|
-
{
|
|
805
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
806
|
-
},
|
|
807
|
-
{
|
|
808
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
809
|
-
},
|
|
810
|
-
{
|
|
811
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
812
|
-
},
|
|
813
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
814
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
815
|
-
]
|
|
755
|
+
paths: TRANSFORM_PATHS_1
|
|
816
756
|
}
|
|
817
757
|
])
|
|
818
758
|
};
|
|
@@ -825,10 +765,7 @@ function searchOrders(payload) {
|
|
|
825
765
|
const serializedData = transformPaths(payload, [
|
|
826
766
|
{
|
|
827
767
|
transformFn: transformSDKFloatToRESTFloat,
|
|
828
|
-
paths:
|
|
829
|
-
{ path: "search.sort.origin.latitude" },
|
|
830
|
-
{ path: "search.sort.origin.longitude" }
|
|
831
|
-
]
|
|
768
|
+
paths: TRANSFORM_PATHS_6
|
|
832
769
|
}
|
|
833
770
|
]);
|
|
834
771
|
const metadata = {
|
|
@@ -848,46 +785,11 @@ function searchOrders(payload) {
|
|
|
848
785
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
849
786
|
{
|
|
850
787
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
851
|
-
paths:
|
|
852
|
-
{ path: "orders.createdDate" },
|
|
853
|
-
{ path: "orders.updatedDate" },
|
|
854
|
-
{ path: "orders.purchasedDate" },
|
|
855
|
-
{ path: "orders.lineItems.image.urlExpirationDate" },
|
|
856
|
-
{ path: "orders.lineItems.digitalFile.expirationDate" },
|
|
857
|
-
{
|
|
858
|
-
path: "orders.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
859
|
-
},
|
|
860
|
-
{ path: "orders.lineItems.serviceProperties.scheduledDate" },
|
|
861
|
-
{ path: "orders.lineItems.serviceProperties.endDate" },
|
|
862
|
-
{ path: "orders.shippingInfo.logistics.deliverByDate" },
|
|
863
|
-
{ path: "orders.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
864
|
-
{ path: "orders.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
865
|
-
{ path: "orders.activities.createdDate" }
|
|
866
|
-
]
|
|
788
|
+
paths: TRANSFORM_PATHS_7
|
|
867
789
|
},
|
|
868
790
|
{
|
|
869
791
|
transformFn: transformRESTFloatToSDKFloat,
|
|
870
|
-
paths:
|
|
871
|
-
{ path: "orders.lineItems.image.focalPoint.x" },
|
|
872
|
-
{ path: "orders.lineItems.image.focalPoint.y" },
|
|
873
|
-
{ path: "orders.lineItems.physicalProperties.weight" },
|
|
874
|
-
{ path: "orders.billingInfo.address.geocode.latitude" },
|
|
875
|
-
{ path: "orders.billingInfo.address.geocode.longitude" },
|
|
876
|
-
{
|
|
877
|
-
path: "orders.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
878
|
-
},
|
|
879
|
-
{
|
|
880
|
-
path: "orders.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
881
|
-
},
|
|
882
|
-
{
|
|
883
|
-
path: "orders.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
884
|
-
},
|
|
885
|
-
{
|
|
886
|
-
path: "orders.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
887
|
-
},
|
|
888
|
-
{ path: "orders.recipientInfo.address.geocode.latitude" },
|
|
889
|
-
{ path: "orders.recipientInfo.address.geocode.longitude" }
|
|
890
|
-
]
|
|
792
|
+
paths: TRANSFORM_PATHS_8
|
|
891
793
|
}
|
|
892
794
|
])
|
|
893
795
|
};
|
|
@@ -900,46 +802,11 @@ function createOrder(payload) {
|
|
|
900
802
|
const serializedData = transformPaths(payload, [
|
|
901
803
|
{
|
|
902
804
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
903
|
-
paths:
|
|
904
|
-
{ path: "order.createdDate" },
|
|
905
|
-
{ path: "order.updatedDate" },
|
|
906
|
-
{ path: "order.purchasedDate" },
|
|
907
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
908
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
909
|
-
{
|
|
910
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
911
|
-
},
|
|
912
|
-
{ path: "order.lineItems.serviceProperties.scheduledDate" },
|
|
913
|
-
{ path: "order.lineItems.serviceProperties.endDate" },
|
|
914
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
915
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
916
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
917
|
-
{ path: "order.activities.createdDate" }
|
|
918
|
-
]
|
|
805
|
+
paths: TRANSFORM_PATHS_0
|
|
919
806
|
},
|
|
920
807
|
{
|
|
921
808
|
transformFn: transformSDKFloatToRESTFloat,
|
|
922
|
-
paths:
|
|
923
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
924
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
925
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
926
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
927
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
928
|
-
{
|
|
929
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
930
|
-
},
|
|
931
|
-
{
|
|
932
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
933
|
-
},
|
|
934
|
-
{
|
|
935
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
936
|
-
},
|
|
937
|
-
{
|
|
938
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
939
|
-
},
|
|
940
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
941
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
942
|
-
]
|
|
809
|
+
paths: TRANSFORM_PATHS_1
|
|
943
810
|
}
|
|
944
811
|
]);
|
|
945
812
|
const metadata = {
|
|
@@ -959,46 +826,11 @@ function createOrder(payload) {
|
|
|
959
826
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
960
827
|
{
|
|
961
828
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
962
|
-
paths:
|
|
963
|
-
{ path: "order.createdDate" },
|
|
964
|
-
{ path: "order.updatedDate" },
|
|
965
|
-
{ path: "order.purchasedDate" },
|
|
966
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
967
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
968
|
-
{
|
|
969
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
970
|
-
},
|
|
971
|
-
{ path: "order.lineItems.serviceProperties.scheduledDate" },
|
|
972
|
-
{ path: "order.lineItems.serviceProperties.endDate" },
|
|
973
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
974
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
975
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
976
|
-
{ path: "order.activities.createdDate" }
|
|
977
|
-
]
|
|
829
|
+
paths: TRANSFORM_PATHS_0
|
|
978
830
|
},
|
|
979
831
|
{
|
|
980
832
|
transformFn: transformRESTFloatToSDKFloat,
|
|
981
|
-
paths:
|
|
982
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
983
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
984
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
985
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
986
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
987
|
-
{
|
|
988
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
989
|
-
},
|
|
990
|
-
{
|
|
991
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
992
|
-
},
|
|
993
|
-
{
|
|
994
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
995
|
-
},
|
|
996
|
-
{
|
|
997
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
998
|
-
},
|
|
999
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
1000
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
1001
|
-
]
|
|
833
|
+
paths: TRANSFORM_PATHS_1
|
|
1002
834
|
}
|
|
1003
835
|
])
|
|
1004
836
|
};
|
|
@@ -1011,50 +843,15 @@ function updateOrder(payload) {
|
|
|
1011
843
|
const serializedData = transformPaths(payload, [
|
|
1012
844
|
{
|
|
1013
845
|
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
1014
|
-
paths:
|
|
846
|
+
paths: TRANSFORM_PATHS_9
|
|
1015
847
|
},
|
|
1016
848
|
{
|
|
1017
849
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
1018
|
-
paths:
|
|
1019
|
-
{ path: "order.createdDate" },
|
|
1020
|
-
{ path: "order.updatedDate" },
|
|
1021
|
-
{ path: "order.purchasedDate" },
|
|
1022
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
1023
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
1024
|
-
{
|
|
1025
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
1026
|
-
},
|
|
1027
|
-
{ path: "order.lineItems.serviceProperties.scheduledDate" },
|
|
1028
|
-
{ path: "order.lineItems.serviceProperties.endDate" },
|
|
1029
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
1030
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
1031
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
1032
|
-
{ path: "order.activities.createdDate" }
|
|
1033
|
-
]
|
|
850
|
+
paths: TRANSFORM_PATHS_0
|
|
1034
851
|
},
|
|
1035
852
|
{
|
|
1036
853
|
transformFn: transformSDKFloatToRESTFloat,
|
|
1037
|
-
paths:
|
|
1038
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
1039
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
1040
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
1041
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
1042
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
1043
|
-
{
|
|
1044
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
1045
|
-
},
|
|
1046
|
-
{
|
|
1047
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
1048
|
-
},
|
|
1049
|
-
{
|
|
1050
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
1051
|
-
},
|
|
1052
|
-
{
|
|
1053
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
1054
|
-
},
|
|
1055
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
1056
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
1057
|
-
]
|
|
854
|
+
paths: TRANSFORM_PATHS_1
|
|
1058
855
|
}
|
|
1059
856
|
]);
|
|
1060
857
|
const metadata = {
|
|
@@ -1074,46 +871,11 @@ function updateOrder(payload) {
|
|
|
1074
871
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1075
872
|
{
|
|
1076
873
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1077
|
-
paths:
|
|
1078
|
-
{ path: "order.createdDate" },
|
|
1079
|
-
{ path: "order.updatedDate" },
|
|
1080
|
-
{ path: "order.purchasedDate" },
|
|
1081
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
1082
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
1083
|
-
{
|
|
1084
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
1085
|
-
},
|
|
1086
|
-
{ path: "order.lineItems.serviceProperties.scheduledDate" },
|
|
1087
|
-
{ path: "order.lineItems.serviceProperties.endDate" },
|
|
1088
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
1089
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
1090
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
1091
|
-
{ path: "order.activities.createdDate" }
|
|
1092
|
-
]
|
|
874
|
+
paths: TRANSFORM_PATHS_0
|
|
1093
875
|
},
|
|
1094
876
|
{
|
|
1095
877
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1096
|
-
paths:
|
|
1097
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
1098
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
1099
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
1100
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
1101
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
1102
|
-
{
|
|
1103
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
1104
|
-
},
|
|
1105
|
-
{
|
|
1106
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
1107
|
-
},
|
|
1108
|
-
{
|
|
1109
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
1110
|
-
},
|
|
1111
|
-
{
|
|
1112
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
1113
|
-
},
|
|
1114
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
1115
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
1116
|
-
]
|
|
878
|
+
paths: TRANSFORM_PATHS_1
|
|
1117
879
|
}
|
|
1118
880
|
])
|
|
1119
881
|
};
|
|
@@ -1126,50 +888,15 @@ function bulkUpdateOrders(payload) {
|
|
|
1126
888
|
const serializedData = transformPaths(payload, [
|
|
1127
889
|
{
|
|
1128
890
|
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
1129
|
-
paths:
|
|
891
|
+
paths: TRANSFORM_PATHS_10
|
|
1130
892
|
},
|
|
1131
893
|
{
|
|
1132
894
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
1133
|
-
paths:
|
|
1134
|
-
{ path: "orders.order.createdDate" },
|
|
1135
|
-
{ path: "orders.order.updatedDate" },
|
|
1136
|
-
{ path: "orders.order.purchasedDate" },
|
|
1137
|
-
{ path: "orders.order.lineItems.image.urlExpirationDate" },
|
|
1138
|
-
{ path: "orders.order.lineItems.digitalFile.expirationDate" },
|
|
1139
|
-
{
|
|
1140
|
-
path: "orders.order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
1141
|
-
},
|
|
1142
|
-
{ path: "orders.order.lineItems.serviceProperties.scheduledDate" },
|
|
1143
|
-
{ path: "orders.order.lineItems.serviceProperties.endDate" },
|
|
1144
|
-
{ path: "orders.order.shippingInfo.logistics.deliverByDate" },
|
|
1145
|
-
{ path: "orders.order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
1146
|
-
{ path: "orders.order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
1147
|
-
{ path: "orders.order.activities.createdDate" }
|
|
1148
|
-
]
|
|
895
|
+
paths: TRANSFORM_PATHS_11
|
|
1149
896
|
},
|
|
1150
897
|
{
|
|
1151
898
|
transformFn: transformSDKFloatToRESTFloat,
|
|
1152
|
-
paths:
|
|
1153
|
-
{ path: "orders.order.lineItems.image.focalPoint.x" },
|
|
1154
|
-
{ path: "orders.order.lineItems.image.focalPoint.y" },
|
|
1155
|
-
{ path: "orders.order.lineItems.physicalProperties.weight" },
|
|
1156
|
-
{ path: "orders.order.billingInfo.address.geocode.latitude" },
|
|
1157
|
-
{ path: "orders.order.billingInfo.address.geocode.longitude" },
|
|
1158
|
-
{
|
|
1159
|
-
path: "orders.order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
1160
|
-
},
|
|
1161
|
-
{
|
|
1162
|
-
path: "orders.order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
1163
|
-
},
|
|
1164
|
-
{
|
|
1165
|
-
path: "orders.order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
1166
|
-
},
|
|
1167
|
-
{
|
|
1168
|
-
path: "orders.order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
1169
|
-
},
|
|
1170
|
-
{ path: "orders.order.recipientInfo.address.geocode.latitude" },
|
|
1171
|
-
{ path: "orders.order.recipientInfo.address.geocode.longitude" }
|
|
1172
|
-
]
|
|
899
|
+
paths: TRANSFORM_PATHS_12
|
|
1173
900
|
}
|
|
1174
901
|
]);
|
|
1175
902
|
const metadata = {
|
|
@@ -1189,52 +916,11 @@ function bulkUpdateOrders(payload) {
|
|
|
1189
916
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1190
917
|
{
|
|
1191
918
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1192
|
-
paths:
|
|
1193
|
-
{ path: "results.item.createdDate" },
|
|
1194
|
-
{ path: "results.item.updatedDate" },
|
|
1195
|
-
{ path: "results.item.purchasedDate" },
|
|
1196
|
-
{ path: "results.item.lineItems.image.urlExpirationDate" },
|
|
1197
|
-
{ path: "results.item.lineItems.digitalFile.expirationDate" },
|
|
1198
|
-
{
|
|
1199
|
-
path: "results.item.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
1200
|
-
},
|
|
1201
|
-
{
|
|
1202
|
-
path: "results.item.lineItems.serviceProperties.scheduledDate"
|
|
1203
|
-
},
|
|
1204
|
-
{ path: "results.item.lineItems.serviceProperties.endDate" },
|
|
1205
|
-
{ path: "results.item.shippingInfo.logistics.deliverByDate" },
|
|
1206
|
-
{
|
|
1207
|
-
path: "results.item.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
1208
|
-
},
|
|
1209
|
-
{
|
|
1210
|
-
path: "results.item.shippingInfo.logistics.deliveryTimeSlot.to"
|
|
1211
|
-
},
|
|
1212
|
-
{ path: "results.item.activities.createdDate" }
|
|
1213
|
-
]
|
|
919
|
+
paths: TRANSFORM_PATHS_2
|
|
1214
920
|
},
|
|
1215
921
|
{
|
|
1216
922
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1217
|
-
paths:
|
|
1218
|
-
{ path: "results.item.lineItems.image.focalPoint.x" },
|
|
1219
|
-
{ path: "results.item.lineItems.image.focalPoint.y" },
|
|
1220
|
-
{ path: "results.item.lineItems.physicalProperties.weight" },
|
|
1221
|
-
{ path: "results.item.billingInfo.address.geocode.latitude" },
|
|
1222
|
-
{ path: "results.item.billingInfo.address.geocode.longitude" },
|
|
1223
|
-
{
|
|
1224
|
-
path: "results.item.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
1225
|
-
},
|
|
1226
|
-
{
|
|
1227
|
-
path: "results.item.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
1228
|
-
},
|
|
1229
|
-
{
|
|
1230
|
-
path: "results.item.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
1231
|
-
},
|
|
1232
|
-
{
|
|
1233
|
-
path: "results.item.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
1234
|
-
},
|
|
1235
|
-
{ path: "results.item.recipientInfo.address.geocode.latitude" },
|
|
1236
|
-
{ path: "results.item.recipientInfo.address.geocode.longitude" }
|
|
1237
|
-
]
|
|
923
|
+
paths: TRANSFORM_PATHS_3
|
|
1238
924
|
}
|
|
1239
925
|
])
|
|
1240
926
|
};
|
|
@@ -1247,25 +933,15 @@ function updateOrderLineItem(payload) {
|
|
|
1247
933
|
const serializedData = transformPaths(payload, [
|
|
1248
934
|
{
|
|
1249
935
|
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
1250
|
-
paths:
|
|
936
|
+
paths: TRANSFORM_PATHS_9
|
|
1251
937
|
},
|
|
1252
938
|
{
|
|
1253
939
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
1254
|
-
paths:
|
|
1255
|
-
{ path: "lineItem.image.urlExpirationDate" },
|
|
1256
|
-
{ path: "lineItem.digitalFile.expirationDate" },
|
|
1257
|
-
{ path: "lineItem.subscriptionInfo.subscriptionSettings.startDate" },
|
|
1258
|
-
{ path: "lineItem.serviceProperties.scheduledDate" },
|
|
1259
|
-
{ path: "lineItem.serviceProperties.endDate" }
|
|
1260
|
-
]
|
|
940
|
+
paths: TRANSFORM_PATHS_13
|
|
1261
941
|
},
|
|
1262
942
|
{
|
|
1263
943
|
transformFn: transformSDKFloatToRESTFloat,
|
|
1264
|
-
paths:
|
|
1265
|
-
{ path: "lineItem.image.focalPoint.x" },
|
|
1266
|
-
{ path: "lineItem.image.focalPoint.y" },
|
|
1267
|
-
{ path: "lineItem.physicalProperties.weight" }
|
|
1268
|
-
]
|
|
944
|
+
paths: TRANSFORM_PATHS_14
|
|
1269
945
|
}
|
|
1270
946
|
]);
|
|
1271
947
|
const metadata = {
|
|
@@ -1285,46 +961,11 @@ function updateOrderLineItem(payload) {
|
|
|
1285
961
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1286
962
|
{
|
|
1287
963
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1288
|
-
paths:
|
|
1289
|
-
{ path: "order.createdDate" },
|
|
1290
|
-
{ path: "order.updatedDate" },
|
|
1291
|
-
{ path: "order.purchasedDate" },
|
|
1292
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
1293
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
1294
|
-
{
|
|
1295
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
1296
|
-
},
|
|
1297
|
-
{ path: "order.lineItems.serviceProperties.scheduledDate" },
|
|
1298
|
-
{ path: "order.lineItems.serviceProperties.endDate" },
|
|
1299
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
1300
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
1301
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
1302
|
-
{ path: "order.activities.createdDate" }
|
|
1303
|
-
]
|
|
964
|
+
paths: TRANSFORM_PATHS_0
|
|
1304
965
|
},
|
|
1305
966
|
{
|
|
1306
967
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1307
|
-
paths:
|
|
1308
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
1309
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
1310
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
1311
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
1312
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
1313
|
-
{
|
|
1314
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
1315
|
-
},
|
|
1316
|
-
{
|
|
1317
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
1318
|
-
},
|
|
1319
|
-
{
|
|
1320
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
1321
|
-
},
|
|
1322
|
-
{
|
|
1323
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
1324
|
-
},
|
|
1325
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
1326
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
1327
|
-
]
|
|
968
|
+
paths: TRANSFORM_PATHS_1
|
|
1328
969
|
}
|
|
1329
970
|
])
|
|
1330
971
|
};
|
|
@@ -1351,46 +992,11 @@ function addActivity(payload) {
|
|
|
1351
992
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1352
993
|
{
|
|
1353
994
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1354
|
-
paths:
|
|
1355
|
-
{ path: "order.createdDate" },
|
|
1356
|
-
{ path: "order.updatedDate" },
|
|
1357
|
-
{ path: "order.purchasedDate" },
|
|
1358
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
1359
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
1360
|
-
{
|
|
1361
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
1362
|
-
},
|
|
1363
|
-
{ path: "order.lineItems.serviceProperties.scheduledDate" },
|
|
1364
|
-
{ path: "order.lineItems.serviceProperties.endDate" },
|
|
1365
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
1366
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
1367
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
1368
|
-
{ path: "order.activities.createdDate" }
|
|
1369
|
-
]
|
|
995
|
+
paths: TRANSFORM_PATHS_0
|
|
1370
996
|
},
|
|
1371
997
|
{
|
|
1372
998
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1373
|
-
paths:
|
|
1374
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
1375
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
1376
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
1377
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
1378
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
1379
|
-
{
|
|
1380
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
1381
|
-
},
|
|
1382
|
-
{
|
|
1383
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
1384
|
-
},
|
|
1385
|
-
{
|
|
1386
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
1387
|
-
},
|
|
1388
|
-
{
|
|
1389
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
1390
|
-
},
|
|
1391
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
1392
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
1393
|
-
]
|
|
999
|
+
paths: TRANSFORM_PATHS_1
|
|
1394
1000
|
}
|
|
1395
1001
|
])
|
|
1396
1002
|
};
|
|
@@ -1403,7 +1009,7 @@ function addActivities(payload) {
|
|
|
1403
1009
|
const serializedData = transformPaths(payload, [
|
|
1404
1010
|
{
|
|
1405
1011
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
1406
|
-
paths:
|
|
1012
|
+
paths: TRANSFORM_PATHS_15
|
|
1407
1013
|
}
|
|
1408
1014
|
]);
|
|
1409
1015
|
const metadata = {
|
|
@@ -1423,46 +1029,11 @@ function addActivities(payload) {
|
|
|
1423
1029
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1424
1030
|
{
|
|
1425
1031
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1426
|
-
paths:
|
|
1427
|
-
{ path: "order.createdDate" },
|
|
1428
|
-
{ path: "order.updatedDate" },
|
|
1429
|
-
{ path: "order.purchasedDate" },
|
|
1430
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
1431
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
1432
|
-
{
|
|
1433
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
1434
|
-
},
|
|
1435
|
-
{ path: "order.lineItems.serviceProperties.scheduledDate" },
|
|
1436
|
-
{ path: "order.lineItems.serviceProperties.endDate" },
|
|
1437
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
1438
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
1439
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
1440
|
-
{ path: "order.activities.createdDate" }
|
|
1441
|
-
]
|
|
1032
|
+
paths: TRANSFORM_PATHS_0
|
|
1442
1033
|
},
|
|
1443
1034
|
{
|
|
1444
1035
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1445
|
-
paths:
|
|
1446
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
1447
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
1448
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
1449
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
1450
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
1451
|
-
{
|
|
1452
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
1453
|
-
},
|
|
1454
|
-
{
|
|
1455
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
1456
|
-
},
|
|
1457
|
-
{
|
|
1458
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
1459
|
-
},
|
|
1460
|
-
{
|
|
1461
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
1462
|
-
},
|
|
1463
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
1464
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
1465
|
-
]
|
|
1036
|
+
paths: TRANSFORM_PATHS_1
|
|
1466
1037
|
}
|
|
1467
1038
|
])
|
|
1468
1039
|
};
|
|
@@ -1489,46 +1060,11 @@ function updateActivity(payload) {
|
|
|
1489
1060
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1490
1061
|
{
|
|
1491
1062
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1492
|
-
paths:
|
|
1493
|
-
{ path: "order.createdDate" },
|
|
1494
|
-
{ path: "order.updatedDate" },
|
|
1495
|
-
{ path: "order.purchasedDate" },
|
|
1496
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
1497
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
1498
|
-
{
|
|
1499
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
1500
|
-
},
|
|
1501
|
-
{ path: "order.lineItems.serviceProperties.scheduledDate" },
|
|
1502
|
-
{ path: "order.lineItems.serviceProperties.endDate" },
|
|
1503
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
1504
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
1505
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
1506
|
-
{ path: "order.activities.createdDate" }
|
|
1507
|
-
]
|
|
1063
|
+
paths: TRANSFORM_PATHS_0
|
|
1508
1064
|
},
|
|
1509
1065
|
{
|
|
1510
1066
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1511
|
-
paths:
|
|
1512
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
1513
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
1514
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
1515
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
1516
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
1517
|
-
{
|
|
1518
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
1519
|
-
},
|
|
1520
|
-
{
|
|
1521
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
1522
|
-
},
|
|
1523
|
-
{
|
|
1524
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
1525
|
-
},
|
|
1526
|
-
{
|
|
1527
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
1528
|
-
},
|
|
1529
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
1530
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
1531
|
-
]
|
|
1067
|
+
paths: TRANSFORM_PATHS_1
|
|
1532
1068
|
}
|
|
1533
1069
|
])
|
|
1534
1070
|
};
|
|
@@ -1555,46 +1091,11 @@ function deleteActivity(payload) {
|
|
|
1555
1091
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1556
1092
|
{
|
|
1557
1093
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1558
|
-
paths:
|
|
1559
|
-
{ path: "order.createdDate" },
|
|
1560
|
-
{ path: "order.updatedDate" },
|
|
1561
|
-
{ path: "order.purchasedDate" },
|
|
1562
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
1563
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
1564
|
-
{
|
|
1565
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
1566
|
-
},
|
|
1567
|
-
{ path: "order.lineItems.serviceProperties.scheduledDate" },
|
|
1568
|
-
{ path: "order.lineItems.serviceProperties.endDate" },
|
|
1569
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
1570
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
1571
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
1572
|
-
{ path: "order.activities.createdDate" }
|
|
1573
|
-
]
|
|
1094
|
+
paths: TRANSFORM_PATHS_0
|
|
1574
1095
|
},
|
|
1575
1096
|
{
|
|
1576
1097
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1577
|
-
paths:
|
|
1578
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
1579
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
1580
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
1581
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
1582
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
1583
|
-
{
|
|
1584
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
1585
|
-
},
|
|
1586
|
-
{
|
|
1587
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
1588
|
-
},
|
|
1589
|
-
{
|
|
1590
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
1591
|
-
},
|
|
1592
|
-
{
|
|
1593
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
1594
|
-
},
|
|
1595
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
1596
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
1597
|
-
]
|
|
1098
|
+
paths: TRANSFORM_PATHS_1
|
|
1598
1099
|
}
|
|
1599
1100
|
])
|
|
1600
1101
|
};
|
|
@@ -1621,46 +1122,11 @@ function cancelOrder(payload) {
|
|
|
1621
1122
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1622
1123
|
{
|
|
1623
1124
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1624
|
-
paths:
|
|
1625
|
-
{ path: "order.createdDate" },
|
|
1626
|
-
{ path: "order.updatedDate" },
|
|
1627
|
-
{ path: "order.purchasedDate" },
|
|
1628
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
1629
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
1630
|
-
{
|
|
1631
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
1632
|
-
},
|
|
1633
|
-
{ path: "order.lineItems.serviceProperties.scheduledDate" },
|
|
1634
|
-
{ path: "order.lineItems.serviceProperties.endDate" },
|
|
1635
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
1636
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
1637
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
1638
|
-
{ path: "order.activities.createdDate" }
|
|
1639
|
-
]
|
|
1125
|
+
paths: TRANSFORM_PATHS_0
|
|
1640
1126
|
},
|
|
1641
1127
|
{
|
|
1642
1128
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1643
|
-
paths:
|
|
1644
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
1645
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
1646
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
1647
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
1648
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
1649
|
-
{
|
|
1650
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
1651
|
-
},
|
|
1652
|
-
{
|
|
1653
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
1654
|
-
},
|
|
1655
|
-
{
|
|
1656
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
1657
|
-
},
|
|
1658
|
-
{
|
|
1659
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
1660
|
-
},
|
|
1661
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
1662
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
1663
|
-
]
|
|
1129
|
+
paths: TRANSFORM_PATHS_1
|
|
1664
1130
|
}
|
|
1665
1131
|
])
|
|
1666
1132
|
};
|
|
@@ -1687,46 +1153,11 @@ function updateOrderStatus(payload) {
|
|
|
1687
1153
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1688
1154
|
{
|
|
1689
1155
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1690
|
-
paths:
|
|
1691
|
-
{ path: "order.createdDate" },
|
|
1692
|
-
{ path: "order.updatedDate" },
|
|
1693
|
-
{ path: "order.purchasedDate" },
|
|
1694
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
1695
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
1696
|
-
{
|
|
1697
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
1698
|
-
},
|
|
1699
|
-
{ path: "order.lineItems.serviceProperties.scheduledDate" },
|
|
1700
|
-
{ path: "order.lineItems.serviceProperties.endDate" },
|
|
1701
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
1702
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
1703
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
1704
|
-
{ path: "order.activities.createdDate" }
|
|
1705
|
-
]
|
|
1156
|
+
paths: TRANSFORM_PATHS_0
|
|
1706
1157
|
},
|
|
1707
1158
|
{
|
|
1708
1159
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1709
|
-
paths:
|
|
1710
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
1711
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
1712
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
1713
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
1714
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
1715
|
-
{
|
|
1716
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
1717
|
-
},
|
|
1718
|
-
{
|
|
1719
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
1720
|
-
},
|
|
1721
|
-
{
|
|
1722
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
1723
|
-
},
|
|
1724
|
-
{
|
|
1725
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
1726
|
-
},
|
|
1727
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
1728
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
1729
|
-
]
|
|
1160
|
+
paths: TRANSFORM_PATHS_1
|
|
1730
1161
|
}
|
|
1731
1162
|
])
|
|
1732
1163
|
};
|
|
@@ -1784,6 +1215,35 @@ import { transformSDKImageToRESTImage } from "@wix/sdk-runtime/transformations/i
|
|
|
1784
1215
|
import { transformRESTImageToSDKImage } from "@wix/sdk-runtime/transformations/image";
|
|
1785
1216
|
import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
1786
1217
|
import { createSearchUtils } from "@wix/sdk-runtime/search-builder-utils";
|
|
1218
|
+
var TRANSFORM_PATHS_02 = [{ path: "order.lineItems.image" }];
|
|
1219
|
+
var TRANSFORM_PATHS_16 = [
|
|
1220
|
+
{ path: "order.billingInfo.address" },
|
|
1221
|
+
{ path: "order.shippingInfo.logistics.shippingDestination.address" },
|
|
1222
|
+
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
1223
|
+
{ path: "order.recipientInfo.address" }
|
|
1224
|
+
];
|
|
1225
|
+
var TRANSFORM_PATHS_22 = [{ path: "results.item.lineItems.image" }];
|
|
1226
|
+
var TRANSFORM_PATHS_32 = [
|
|
1227
|
+
{ path: "results.item.billingInfo.address" },
|
|
1228
|
+
{ path: "results.item.shippingInfo.logistics.shippingDestination.address" },
|
|
1229
|
+
{ path: "results.item.shippingInfo.logistics.pickupDetails.address" },
|
|
1230
|
+
{ path: "results.item.recipientInfo.address" }
|
|
1231
|
+
];
|
|
1232
|
+
var TRANSFORM_PATHS_42 = [{ path: "orders.lineItems.image" }];
|
|
1233
|
+
var TRANSFORM_PATHS_52 = [
|
|
1234
|
+
{ path: "orders.billingInfo.address" },
|
|
1235
|
+
{ path: "orders.shippingInfo.logistics.shippingDestination.address" },
|
|
1236
|
+
{ path: "orders.shippingInfo.logistics.pickupDetails.address" },
|
|
1237
|
+
{ path: "orders.recipientInfo.address" }
|
|
1238
|
+
];
|
|
1239
|
+
var TRANSFORM_PATHS_62 = [{ path: "orders.order.lineItems.image" }];
|
|
1240
|
+
var TRANSFORM_PATHS_72 = [
|
|
1241
|
+
{ path: "orders.order.billingInfo.address" },
|
|
1242
|
+
{ path: "orders.order.shippingInfo.logistics.shippingDestination.address" },
|
|
1243
|
+
{ path: "orders.order.shippingInfo.logistics.pickupDetails.address" },
|
|
1244
|
+
{ path: "orders.order.recipientInfo.address" }
|
|
1245
|
+
];
|
|
1246
|
+
var TRANSFORM_PATHS_82 = [{ path: "lineItem.image" }];
|
|
1787
1247
|
var DescriptionLineType = /* @__PURE__ */ ((DescriptionLineType2) => {
|
|
1788
1248
|
DescriptionLineType2["UNRECOGNISED"] = "UNRECOGNISED";
|
|
1789
1249
|
DescriptionLineType2["PLAIN_TEXT"] = "PLAIN_TEXT";
|
|
@@ -2418,16 +1878,11 @@ async function importOrder2(order) {
|
|
|
2418
1878
|
[
|
|
2419
1879
|
{
|
|
2420
1880
|
transformFn: transformSDKImageToRESTImage,
|
|
2421
|
-
paths:
|
|
1881
|
+
paths: TRANSFORM_PATHS_02
|
|
2422
1882
|
},
|
|
2423
1883
|
{
|
|
2424
1884
|
transformFn: transformSDKAddressToRESTAddress,
|
|
2425
|
-
paths:
|
|
2426
|
-
{ path: "order.billingInfo.address" },
|
|
2427
|
-
{ path: "order.shippingInfo.logistics.shippingDestination.address" },
|
|
2428
|
-
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
2429
|
-
{ path: "order.recipientInfo.address" }
|
|
2430
|
-
]
|
|
1885
|
+
paths: TRANSFORM_PATHS_16
|
|
2431
1886
|
}
|
|
2432
1887
|
]
|
|
2433
1888
|
);
|
|
@@ -2440,18 +1895,11 @@ async function importOrder2(order) {
|
|
|
2440
1895
|
transformPaths2(result.data, [
|
|
2441
1896
|
{
|
|
2442
1897
|
transformFn: transformRESTImageToSDKImage,
|
|
2443
|
-
paths:
|
|
1898
|
+
paths: TRANSFORM_PATHS_02
|
|
2444
1899
|
},
|
|
2445
1900
|
{
|
|
2446
1901
|
transformFn: transformRESTAddressToSDKAddress,
|
|
2447
|
-
paths:
|
|
2448
|
-
{ path: "order.billingInfo.address" },
|
|
2449
|
-
{
|
|
2450
|
-
path: "order.shippingInfo.logistics.shippingDestination.address"
|
|
2451
|
-
},
|
|
2452
|
-
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
2453
|
-
{ path: "order.recipientInfo.address" }
|
|
2454
|
-
]
|
|
1902
|
+
paths: TRANSFORM_PATHS_16
|
|
2455
1903
|
}
|
|
2456
1904
|
])
|
|
2457
1905
|
);
|
|
@@ -2631,18 +2079,11 @@ async function paymentCollectionMarkOrderAsPaid2(ecomOrderId, options) {
|
|
|
2631
2079
|
transformPaths2(result.data, [
|
|
2632
2080
|
{
|
|
2633
2081
|
transformFn: transformRESTImageToSDKImage,
|
|
2634
|
-
paths:
|
|
2082
|
+
paths: TRANSFORM_PATHS_02
|
|
2635
2083
|
},
|
|
2636
2084
|
{
|
|
2637
2085
|
transformFn: transformRESTAddressToSDKAddress,
|
|
2638
|
-
paths:
|
|
2639
|
-
{ path: "order.billingInfo.address" },
|
|
2640
|
-
{
|
|
2641
|
-
path: "order.shippingInfo.logistics.shippingDestination.address"
|
|
2642
|
-
},
|
|
2643
|
-
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
2644
|
-
{ path: "order.recipientInfo.address" }
|
|
2645
|
-
]
|
|
2086
|
+
paths: TRANSFORM_PATHS_16
|
|
2646
2087
|
}
|
|
2647
2088
|
])
|
|
2648
2089
|
);
|
|
@@ -2677,20 +2118,11 @@ async function paymentCollectionBulkMarkOrdersAsPaid2(ecomOrderIds) {
|
|
|
2677
2118
|
transformPaths2(result.data, [
|
|
2678
2119
|
{
|
|
2679
2120
|
transformFn: transformRESTImageToSDKImage,
|
|
2680
|
-
paths:
|
|
2121
|
+
paths: TRANSFORM_PATHS_22
|
|
2681
2122
|
},
|
|
2682
2123
|
{
|
|
2683
2124
|
transformFn: transformRESTAddressToSDKAddress,
|
|
2684
|
-
paths:
|
|
2685
|
-
{ path: "results.item.billingInfo.address" },
|
|
2686
|
-
{
|
|
2687
|
-
path: "results.item.shippingInfo.logistics.shippingDestination.address"
|
|
2688
|
-
},
|
|
2689
|
-
{
|
|
2690
|
-
path: "results.item.shippingInfo.logistics.pickupDetails.address"
|
|
2691
|
-
},
|
|
2692
|
-
{ path: "results.item.recipientInfo.address" }
|
|
2693
|
-
]
|
|
2125
|
+
paths: TRANSFORM_PATHS_32
|
|
2694
2126
|
}
|
|
2695
2127
|
])
|
|
2696
2128
|
);
|
|
@@ -2891,18 +2323,11 @@ async function getOrder2(_id) {
|
|
|
2891
2323
|
transformPaths2(result.data, [
|
|
2892
2324
|
{
|
|
2893
2325
|
transformFn: transformRESTImageToSDKImage,
|
|
2894
|
-
paths:
|
|
2326
|
+
paths: TRANSFORM_PATHS_02
|
|
2895
2327
|
},
|
|
2896
2328
|
{
|
|
2897
2329
|
transformFn: transformRESTAddressToSDKAddress,
|
|
2898
|
-
paths:
|
|
2899
|
-
{ path: "order.billingInfo.address" },
|
|
2900
|
-
{
|
|
2901
|
-
path: "order.shippingInfo.logistics.shippingDestination.address"
|
|
2902
|
-
},
|
|
2903
|
-
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
2904
|
-
{ path: "order.recipientInfo.address" }
|
|
2905
|
-
]
|
|
2330
|
+
paths: TRANSFORM_PATHS_16
|
|
2906
2331
|
}
|
|
2907
2332
|
])
|
|
2908
2333
|
)?.order;
|
|
@@ -2932,18 +2357,11 @@ async function searchOrders2(search) {
|
|
|
2932
2357
|
transformPaths2(result.data, [
|
|
2933
2358
|
{
|
|
2934
2359
|
transformFn: transformRESTImageToSDKImage,
|
|
2935
|
-
paths:
|
|
2360
|
+
paths: TRANSFORM_PATHS_42
|
|
2936
2361
|
},
|
|
2937
2362
|
{
|
|
2938
2363
|
transformFn: transformRESTAddressToSDKAddress,
|
|
2939
|
-
paths:
|
|
2940
|
-
{ path: "orders.billingInfo.address" },
|
|
2941
|
-
{
|
|
2942
|
-
path: "orders.shippingInfo.logistics.shippingDestination.address"
|
|
2943
|
-
},
|
|
2944
|
-
{ path: "orders.shippingInfo.logistics.pickupDetails.address" },
|
|
2945
|
-
{ path: "orders.recipientInfo.address" }
|
|
2946
|
-
]
|
|
2364
|
+
paths: TRANSFORM_PATHS_52
|
|
2947
2365
|
}
|
|
2948
2366
|
])
|
|
2949
2367
|
);
|
|
@@ -2974,16 +2392,11 @@ async function createOrder2(order, options) {
|
|
|
2974
2392
|
[
|
|
2975
2393
|
{
|
|
2976
2394
|
transformFn: transformSDKImageToRESTImage,
|
|
2977
|
-
paths:
|
|
2395
|
+
paths: TRANSFORM_PATHS_02
|
|
2978
2396
|
},
|
|
2979
2397
|
{
|
|
2980
2398
|
transformFn: transformSDKAddressToRESTAddress,
|
|
2981
|
-
paths:
|
|
2982
|
-
{ path: "order.billingInfo.address" },
|
|
2983
|
-
{ path: "order.shippingInfo.logistics.shippingDestination.address" },
|
|
2984
|
-
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
2985
|
-
{ path: "order.recipientInfo.address" }
|
|
2986
|
-
]
|
|
2399
|
+
paths: TRANSFORM_PATHS_16
|
|
2987
2400
|
}
|
|
2988
2401
|
]
|
|
2989
2402
|
);
|
|
@@ -2996,18 +2409,11 @@ async function createOrder2(order, options) {
|
|
|
2996
2409
|
transformPaths2(result.data, [
|
|
2997
2410
|
{
|
|
2998
2411
|
transformFn: transformRESTImageToSDKImage,
|
|
2999
|
-
paths:
|
|
2412
|
+
paths: TRANSFORM_PATHS_02
|
|
3000
2413
|
},
|
|
3001
2414
|
{
|
|
3002
2415
|
transformFn: transformRESTAddressToSDKAddress,
|
|
3003
|
-
paths:
|
|
3004
|
-
{ path: "order.billingInfo.address" },
|
|
3005
|
-
{
|
|
3006
|
-
path: "order.shippingInfo.logistics.shippingDestination.address"
|
|
3007
|
-
},
|
|
3008
|
-
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
3009
|
-
{ path: "order.recipientInfo.address" }
|
|
3010
|
-
]
|
|
2416
|
+
paths: TRANSFORM_PATHS_16
|
|
3011
2417
|
}
|
|
3012
2418
|
])
|
|
3013
2419
|
)?.order;
|
|
@@ -3032,16 +2438,11 @@ async function updateOrder2(_id, order) {
|
|
|
3032
2438
|
[
|
|
3033
2439
|
{
|
|
3034
2440
|
transformFn: transformSDKImageToRESTImage,
|
|
3035
|
-
paths:
|
|
2441
|
+
paths: TRANSFORM_PATHS_02
|
|
3036
2442
|
},
|
|
3037
2443
|
{
|
|
3038
2444
|
transformFn: transformSDKAddressToRESTAddress,
|
|
3039
|
-
paths:
|
|
3040
|
-
{ path: "order.billingInfo.address" },
|
|
3041
|
-
{ path: "order.shippingInfo.logistics.shippingDestination.address" },
|
|
3042
|
-
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
3043
|
-
{ path: "order.recipientInfo.address" }
|
|
3044
|
-
]
|
|
2445
|
+
paths: TRANSFORM_PATHS_16
|
|
3045
2446
|
}
|
|
3046
2447
|
]
|
|
3047
2448
|
);
|
|
@@ -3054,18 +2455,11 @@ async function updateOrder2(_id, order) {
|
|
|
3054
2455
|
transformPaths2(result.data, [
|
|
3055
2456
|
{
|
|
3056
2457
|
transformFn: transformRESTImageToSDKImage,
|
|
3057
|
-
paths:
|
|
2458
|
+
paths: TRANSFORM_PATHS_02
|
|
3058
2459
|
},
|
|
3059
2460
|
{
|
|
3060
2461
|
transformFn: transformRESTAddressToSDKAddress,
|
|
3061
|
-
paths:
|
|
3062
|
-
{ path: "order.billingInfo.address" },
|
|
3063
|
-
{
|
|
3064
|
-
path: "order.shippingInfo.logistics.shippingDestination.address"
|
|
3065
|
-
},
|
|
3066
|
-
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
3067
|
-
{ path: "order.recipientInfo.address" }
|
|
3068
|
-
]
|
|
2462
|
+
paths: TRANSFORM_PATHS_16
|
|
3069
2463
|
}
|
|
3070
2464
|
])
|
|
3071
2465
|
)?.order;
|
|
@@ -3093,18 +2487,11 @@ async function bulkUpdateOrders2(orders, options) {
|
|
|
3093
2487
|
[
|
|
3094
2488
|
{
|
|
3095
2489
|
transformFn: transformSDKImageToRESTImage,
|
|
3096
|
-
paths:
|
|
2490
|
+
paths: TRANSFORM_PATHS_62
|
|
3097
2491
|
},
|
|
3098
2492
|
{
|
|
3099
2493
|
transformFn: transformSDKAddressToRESTAddress,
|
|
3100
|
-
paths:
|
|
3101
|
-
{ path: "orders.order.billingInfo.address" },
|
|
3102
|
-
{
|
|
3103
|
-
path: "orders.order.shippingInfo.logistics.shippingDestination.address"
|
|
3104
|
-
},
|
|
3105
|
-
{ path: "orders.order.shippingInfo.logistics.pickupDetails.address" },
|
|
3106
|
-
{ path: "orders.order.recipientInfo.address" }
|
|
3107
|
-
]
|
|
2494
|
+
paths: TRANSFORM_PATHS_72
|
|
3108
2495
|
}
|
|
3109
2496
|
]
|
|
3110
2497
|
);
|
|
@@ -3117,20 +2504,11 @@ async function bulkUpdateOrders2(orders, options) {
|
|
|
3117
2504
|
transformPaths2(result.data, [
|
|
3118
2505
|
{
|
|
3119
2506
|
transformFn: transformRESTImageToSDKImage,
|
|
3120
|
-
paths:
|
|
2507
|
+
paths: TRANSFORM_PATHS_22
|
|
3121
2508
|
},
|
|
3122
2509
|
{
|
|
3123
2510
|
transformFn: transformRESTAddressToSDKAddress,
|
|
3124
|
-
paths:
|
|
3125
|
-
{ path: "results.item.billingInfo.address" },
|
|
3126
|
-
{
|
|
3127
|
-
path: "results.item.shippingInfo.logistics.shippingDestination.address"
|
|
3128
|
-
},
|
|
3129
|
-
{
|
|
3130
|
-
path: "results.item.shippingInfo.logistics.pickupDetails.address"
|
|
3131
|
-
},
|
|
3132
|
-
{ path: "results.item.recipientInfo.address" }
|
|
3133
|
-
]
|
|
2511
|
+
paths: TRANSFORM_PATHS_32
|
|
3134
2512
|
}
|
|
3135
2513
|
])
|
|
3136
2514
|
);
|
|
@@ -3161,7 +2539,7 @@ async function updateOrderLineItem2(identifiers, lineItem) {
|
|
|
3161
2539
|
[
|
|
3162
2540
|
{
|
|
3163
2541
|
transformFn: transformSDKImageToRESTImage,
|
|
3164
|
-
paths:
|
|
2542
|
+
paths: TRANSFORM_PATHS_82
|
|
3165
2543
|
}
|
|
3166
2544
|
]
|
|
3167
2545
|
);
|
|
@@ -3174,18 +2552,11 @@ async function updateOrderLineItem2(identifiers, lineItem) {
|
|
|
3174
2552
|
transformPaths2(result.data, [
|
|
3175
2553
|
{
|
|
3176
2554
|
transformFn: transformRESTImageToSDKImage,
|
|
3177
|
-
paths:
|
|
2555
|
+
paths: TRANSFORM_PATHS_02
|
|
3178
2556
|
},
|
|
3179
2557
|
{
|
|
3180
2558
|
transformFn: transformRESTAddressToSDKAddress,
|
|
3181
|
-
paths:
|
|
3182
|
-
{ path: "order.billingInfo.address" },
|
|
3183
|
-
{
|
|
3184
|
-
path: "order.shippingInfo.logistics.shippingDestination.address"
|
|
3185
|
-
},
|
|
3186
|
-
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
3187
|
-
{ path: "order.recipientInfo.address" }
|
|
3188
|
-
]
|
|
2559
|
+
paths: TRANSFORM_PATHS_16
|
|
3189
2560
|
}
|
|
3190
2561
|
])
|
|
3191
2562
|
);
|
|
@@ -3221,18 +2592,11 @@ async function addActivity2(_id, activity) {
|
|
|
3221
2592
|
transformPaths2(result.data, [
|
|
3222
2593
|
{
|
|
3223
2594
|
transformFn: transformRESTImageToSDKImage,
|
|
3224
|
-
paths:
|
|
2595
|
+
paths: TRANSFORM_PATHS_02
|
|
3225
2596
|
},
|
|
3226
2597
|
{
|
|
3227
2598
|
transformFn: transformRESTAddressToSDKAddress,
|
|
3228
|
-
paths:
|
|
3229
|
-
{ path: "order.billingInfo.address" },
|
|
3230
|
-
{
|
|
3231
|
-
path: "order.shippingInfo.logistics.shippingDestination.address"
|
|
3232
|
-
},
|
|
3233
|
-
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
3234
|
-
{ path: "order.recipientInfo.address" }
|
|
3235
|
-
]
|
|
2599
|
+
paths: TRANSFORM_PATHS_16
|
|
3236
2600
|
}
|
|
3237
2601
|
])
|
|
3238
2602
|
);
|
|
@@ -3265,18 +2629,11 @@ async function addActivities2(orderId, options) {
|
|
|
3265
2629
|
transformPaths2(result.data, [
|
|
3266
2630
|
{
|
|
3267
2631
|
transformFn: transformRESTImageToSDKImage,
|
|
3268
|
-
paths:
|
|
2632
|
+
paths: TRANSFORM_PATHS_02
|
|
3269
2633
|
},
|
|
3270
2634
|
{
|
|
3271
2635
|
transformFn: transformRESTAddressToSDKAddress,
|
|
3272
|
-
paths:
|
|
3273
|
-
{ path: "order.billingInfo.address" },
|
|
3274
|
-
{
|
|
3275
|
-
path: "order.shippingInfo.logistics.shippingDestination.address"
|
|
3276
|
-
},
|
|
3277
|
-
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
3278
|
-
{ path: "order.recipientInfo.address" }
|
|
3279
|
-
]
|
|
2636
|
+
paths: TRANSFORM_PATHS_16
|
|
3280
2637
|
}
|
|
3281
2638
|
])
|
|
3282
2639
|
);
|
|
@@ -3313,18 +2670,11 @@ async function updateActivity2(identifiers, activity) {
|
|
|
3313
2670
|
transformPaths2(result.data, [
|
|
3314
2671
|
{
|
|
3315
2672
|
transformFn: transformRESTImageToSDKImage,
|
|
3316
|
-
paths:
|
|
2673
|
+
paths: TRANSFORM_PATHS_02
|
|
3317
2674
|
},
|
|
3318
2675
|
{
|
|
3319
2676
|
transformFn: transformRESTAddressToSDKAddress,
|
|
3320
|
-
paths:
|
|
3321
|
-
{ path: "order.billingInfo.address" },
|
|
3322
|
-
{
|
|
3323
|
-
path: "order.shippingInfo.logistics.shippingDestination.address"
|
|
3324
|
-
},
|
|
3325
|
-
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
3326
|
-
{ path: "order.recipientInfo.address" }
|
|
3327
|
-
]
|
|
2677
|
+
paths: TRANSFORM_PATHS_16
|
|
3328
2678
|
}
|
|
3329
2679
|
])
|
|
3330
2680
|
);
|
|
@@ -3361,18 +2711,11 @@ async function deleteActivity2(identifiers) {
|
|
|
3361
2711
|
transformPaths2(result.data, [
|
|
3362
2712
|
{
|
|
3363
2713
|
transformFn: transformRESTImageToSDKImage,
|
|
3364
|
-
paths:
|
|
2714
|
+
paths: TRANSFORM_PATHS_02
|
|
3365
2715
|
},
|
|
3366
2716
|
{
|
|
3367
2717
|
transformFn: transformRESTAddressToSDKAddress,
|
|
3368
|
-
paths:
|
|
3369
|
-
{ path: "order.billingInfo.address" },
|
|
3370
|
-
{
|
|
3371
|
-
path: "order.shippingInfo.logistics.shippingDestination.address"
|
|
3372
|
-
},
|
|
3373
|
-
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
3374
|
-
{ path: "order.recipientInfo.address" }
|
|
3375
|
-
]
|
|
2718
|
+
paths: TRANSFORM_PATHS_16
|
|
3376
2719
|
}
|
|
3377
2720
|
])
|
|
3378
2721
|
);
|
|
@@ -3410,18 +2753,11 @@ async function cancelOrder2(_id, options) {
|
|
|
3410
2753
|
transformPaths2(result.data, [
|
|
3411
2754
|
{
|
|
3412
2755
|
transformFn: transformRESTImageToSDKImage,
|
|
3413
|
-
paths:
|
|
2756
|
+
paths: TRANSFORM_PATHS_02
|
|
3414
2757
|
},
|
|
3415
2758
|
{
|
|
3416
2759
|
transformFn: transformRESTAddressToSDKAddress,
|
|
3417
|
-
paths:
|
|
3418
|
-
{ path: "order.billingInfo.address" },
|
|
3419
|
-
{
|
|
3420
|
-
path: "order.shippingInfo.logistics.shippingDestination.address"
|
|
3421
|
-
},
|
|
3422
|
-
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
3423
|
-
{ path: "order.recipientInfo.address" }
|
|
3424
|
-
]
|
|
2760
|
+
paths: TRANSFORM_PATHS_16
|
|
3425
2761
|
}
|
|
3426
2762
|
])
|
|
3427
2763
|
);
|
|
@@ -3459,18 +2795,11 @@ async function updateOrderStatus2(orderId, status) {
|
|
|
3459
2795
|
transformPaths2(result.data, [
|
|
3460
2796
|
{
|
|
3461
2797
|
transformFn: transformRESTImageToSDKImage,
|
|
3462
|
-
paths:
|
|
2798
|
+
paths: TRANSFORM_PATHS_02
|
|
3463
2799
|
},
|
|
3464
2800
|
{
|
|
3465
2801
|
transformFn: transformRESTAddressToSDKAddress,
|
|
3466
|
-
paths:
|
|
3467
|
-
{ path: "order.billingInfo.address" },
|
|
3468
|
-
{
|
|
3469
|
-
path: "order.shippingInfo.logistics.shippingDestination.address"
|
|
3470
|
-
},
|
|
3471
|
-
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
3472
|
-
{ path: "order.recipientInfo.address" }
|
|
3473
|
-
]
|
|
2802
|
+
paths: TRANSFORM_PATHS_16
|
|
3474
2803
|
}
|
|
3475
2804
|
])
|
|
3476
2805
|
);
|
|
@@ -3552,6 +2881,143 @@ async function bulkUpdateOrderTags2(orderIds, options) {
|
|
|
3552
2881
|
}
|
|
3553
2882
|
|
|
3554
2883
|
// src/ecom-v1-order-orders.public.ts
|
|
2884
|
+
var TRANSFORM_PATHS_03 = [
|
|
2885
|
+
{ path: "data.order.createdDate" },
|
|
2886
|
+
{ path: "data.order.updatedDate" },
|
|
2887
|
+
{ path: "data.order.purchasedDate" },
|
|
2888
|
+
{ path: "data.order.lineItems.digitalFile.expirationDate" },
|
|
2889
|
+
{
|
|
2890
|
+
path: "data.order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
2891
|
+
},
|
|
2892
|
+
{ path: "data.order.lineItems.serviceProperties.scheduledDate" },
|
|
2893
|
+
{ path: "data.order.lineItems.serviceProperties.endDate" },
|
|
2894
|
+
{ path: "data.order.shippingInfo.logistics.deliverByDate" },
|
|
2895
|
+
{ path: "data.order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
2896
|
+
{ path: "data.order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
2897
|
+
{ path: "data.order.activities.createdDate" },
|
|
2898
|
+
{ path: "metadata.eventTime" }
|
|
2899
|
+
];
|
|
2900
|
+
var TRANSFORM_PATHS_17 = [{ path: "data.order.lineItems.image" }];
|
|
2901
|
+
var TRANSFORM_PATHS_23 = [
|
|
2902
|
+
{ path: "data.order.lineItems.physicalProperties.weight" }
|
|
2903
|
+
];
|
|
2904
|
+
var TRANSFORM_PATHS_33 = [
|
|
2905
|
+
{ path: "data.order.billingInfo.address" },
|
|
2906
|
+
{ path: "data.order.shippingInfo.logistics.shippingDestination.address" },
|
|
2907
|
+
{ path: "data.order.shippingInfo.logistics.pickupDetails.address" },
|
|
2908
|
+
{ path: "data.order.recipientInfo.address" }
|
|
2909
|
+
];
|
|
2910
|
+
var TRANSFORM_PATHS_43 = [
|
|
2911
|
+
{ path: "data.commitDate" },
|
|
2912
|
+
{ path: "data.order.createdDate" },
|
|
2913
|
+
{ path: "data.order.updatedDate" },
|
|
2914
|
+
{ path: "data.order.purchasedDate" },
|
|
2915
|
+
{ path: "data.order.lineItems.digitalFile.expirationDate" },
|
|
2916
|
+
{
|
|
2917
|
+
path: "data.order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
2918
|
+
},
|
|
2919
|
+
{ path: "data.order.lineItems.serviceProperties.scheduledDate" },
|
|
2920
|
+
{ path: "data.order.lineItems.serviceProperties.endDate" },
|
|
2921
|
+
{ path: "data.order.shippingInfo.logistics.deliverByDate" },
|
|
2922
|
+
{ path: "data.order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
2923
|
+
{ path: "data.order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
2924
|
+
{ path: "data.order.activities.createdDate" },
|
|
2925
|
+
{ path: "data.changes.changedShippingInfo.logistics.deliverByDate" },
|
|
2926
|
+
{ path: "data.changes.changedShippingInfo.logistics.deliveryTimeSlot.from" },
|
|
2927
|
+
{ path: "data.changes.changedShippingInfo.logistics.deliveryTimeSlot.to" },
|
|
2928
|
+
{ path: "data.changes.lineItems.lineItemRemoved.digitalFile.expirationDate" },
|
|
2929
|
+
{
|
|
2930
|
+
path: "data.changes.lineItems.lineItemRemoved.subscriptionInfo.subscriptionSettings.startDate"
|
|
2931
|
+
},
|
|
2932
|
+
{ path: "metadata.eventTime" }
|
|
2933
|
+
];
|
|
2934
|
+
var TRANSFORM_PATHS_53 = [
|
|
2935
|
+
{ path: "data.order.lineItems.image" },
|
|
2936
|
+
{ path: "data.changes.lineItems.lineItemRemoved.image" }
|
|
2937
|
+
];
|
|
2938
|
+
var TRANSFORM_PATHS_63 = [
|
|
2939
|
+
{ path: "data.order.lineItems.physicalProperties.weight" },
|
|
2940
|
+
{ path: "data.changes.lineItems.lineItemRemoved.physicalProperties.weight" }
|
|
2941
|
+
];
|
|
2942
|
+
var TRANSFORM_PATHS_73 = [
|
|
2943
|
+
{ path: "data.order.billingInfo.address" },
|
|
2944
|
+
{ path: "data.order.shippingInfo.logistics.shippingDestination.address" },
|
|
2945
|
+
{ path: "data.order.shippingInfo.logistics.pickupDetails.address" },
|
|
2946
|
+
{ path: "data.order.recipientInfo.address" },
|
|
2947
|
+
{
|
|
2948
|
+
path: "data.changes.changedShippingInfo.logistics.shippingDestination.address"
|
|
2949
|
+
},
|
|
2950
|
+
{ path: "data.changes.changedShippingInfo.logistics.pickupDetails.address" }
|
|
2951
|
+
];
|
|
2952
|
+
var TRANSFORM_PATHS_83 = [
|
|
2953
|
+
{ path: "entity.createdDate" },
|
|
2954
|
+
{ path: "entity.updatedDate" },
|
|
2955
|
+
{ path: "entity.purchasedDate" },
|
|
2956
|
+
{ path: "entity.lineItems.digitalFile.expirationDate" },
|
|
2957
|
+
{ path: "entity.lineItems.subscriptionInfo.subscriptionSettings.startDate" },
|
|
2958
|
+
{ path: "entity.lineItems.serviceProperties.scheduledDate" },
|
|
2959
|
+
{ path: "entity.lineItems.serviceProperties.endDate" },
|
|
2960
|
+
{ path: "entity.shippingInfo.logistics.deliverByDate" },
|
|
2961
|
+
{ path: "entity.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
2962
|
+
{ path: "entity.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
2963
|
+
{ path: "entity.activities.createdDate" },
|
|
2964
|
+
{ path: "metadata.eventTime" }
|
|
2965
|
+
];
|
|
2966
|
+
var TRANSFORM_PATHS_92 = [{ path: "entity.lineItems.image" }];
|
|
2967
|
+
var TRANSFORM_PATHS_102 = [
|
|
2968
|
+
{ path: "entity.lineItems.physicalProperties.weight" }
|
|
2969
|
+
];
|
|
2970
|
+
var TRANSFORM_PATHS_112 = [
|
|
2971
|
+
{ path: "entity.billingInfo.address" },
|
|
2972
|
+
{ path: "entity.shippingInfo.logistics.shippingDestination.address" },
|
|
2973
|
+
{ path: "entity.shippingInfo.logistics.pickupDetails.address" },
|
|
2974
|
+
{ path: "entity.recipientInfo.address" }
|
|
2975
|
+
];
|
|
2976
|
+
var TRANSFORM_PATHS_122 = [
|
|
2977
|
+
{ path: "entity.createdDate" },
|
|
2978
|
+
{ path: "entity.updatedDate" },
|
|
2979
|
+
{ path: "entity.purchasedDate" },
|
|
2980
|
+
{ path: "entity.lineItems.digitalFile.expirationDate" },
|
|
2981
|
+
{ path: "entity.lineItems.subscriptionInfo.subscriptionSettings.startDate" },
|
|
2982
|
+
{ path: "entity.lineItems.serviceProperties.scheduledDate" },
|
|
2983
|
+
{ path: "entity.lineItems.serviceProperties.endDate" },
|
|
2984
|
+
{ path: "entity.shippingInfo.logistics.deliverByDate" },
|
|
2985
|
+
{ path: "entity.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
2986
|
+
{ path: "entity.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
2987
|
+
{ path: "entity.activities.createdDate" },
|
|
2988
|
+
{ path: "metadata.eventTime" },
|
|
2989
|
+
{ path: "modifiedFields.createdDate" },
|
|
2990
|
+
{ path: "modifiedFields.updatedDate" },
|
|
2991
|
+
{ path: "modifiedFields.purchasedDate" },
|
|
2992
|
+
{ path: "modifiedFields.lineItems.digitalFile.expirationDate" },
|
|
2993
|
+
{
|
|
2994
|
+
path: "modifiedFields.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
2995
|
+
},
|
|
2996
|
+
{ path: "modifiedFields.lineItems.serviceProperties.scheduledDate" },
|
|
2997
|
+
{ path: "modifiedFields.lineItems.serviceProperties.endDate" },
|
|
2998
|
+
{ path: "modifiedFields.shippingInfo.logistics.deliverByDate" },
|
|
2999
|
+
{ path: "modifiedFields.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
3000
|
+
{ path: "modifiedFields.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
3001
|
+
{ path: "modifiedFields.activities.createdDate" }
|
|
3002
|
+
];
|
|
3003
|
+
var TRANSFORM_PATHS_132 = [
|
|
3004
|
+
{ path: "entity.lineItems.image" },
|
|
3005
|
+
{ path: "modifiedFields.lineItems.image" }
|
|
3006
|
+
];
|
|
3007
|
+
var TRANSFORM_PATHS_142 = [
|
|
3008
|
+
{ path: "entity.lineItems.physicalProperties.weight" },
|
|
3009
|
+
{ path: "modifiedFields.lineItems.physicalProperties.weight" }
|
|
3010
|
+
];
|
|
3011
|
+
var TRANSFORM_PATHS_152 = [
|
|
3012
|
+
{ path: "entity.billingInfo.address" },
|
|
3013
|
+
{ path: "entity.shippingInfo.logistics.shippingDestination.address" },
|
|
3014
|
+
{ path: "entity.shippingInfo.logistics.pickupDetails.address" },
|
|
3015
|
+
{ path: "entity.recipientInfo.address" },
|
|
3016
|
+
{ path: "modifiedFields.billingInfo.address" },
|
|
3017
|
+
{ path: "modifiedFields.shippingInfo.logistics.shippingDestination.address" },
|
|
3018
|
+
{ path: "modifiedFields.shippingInfo.logistics.pickupDetails.address" },
|
|
3019
|
+
{ path: "modifiedFields.recipientInfo.address" }
|
|
3020
|
+
];
|
|
3555
3021
|
function importOrder3(httpClient) {
|
|
3556
3022
|
return (order) => importOrder2(
|
|
3557
3023
|
order,
|
|
@@ -3778,41 +3244,19 @@ var onOrderApproved = /* @__PURE__ */ EventDefinition(
|
|
|
3778
3244
|
transformPaths3(event, [
|
|
3779
3245
|
{
|
|
3780
3246
|
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
3781
|
-
paths:
|
|
3782
|
-
{ path: "data.order.createdDate" },
|
|
3783
|
-
{ path: "data.order.updatedDate" },
|
|
3784
|
-
{ path: "data.order.purchasedDate" },
|
|
3785
|
-
{ path: "data.order.lineItems.digitalFile.expirationDate" },
|
|
3786
|
-
{
|
|
3787
|
-
path: "data.order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
3788
|
-
},
|
|
3789
|
-
{ path: "data.order.lineItems.serviceProperties.scheduledDate" },
|
|
3790
|
-
{ path: "data.order.lineItems.serviceProperties.endDate" },
|
|
3791
|
-
{ path: "data.order.shippingInfo.logistics.deliverByDate" },
|
|
3792
|
-
{ path: "data.order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
3793
|
-
{ path: "data.order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
3794
|
-
{ path: "data.order.activities.createdDate" },
|
|
3795
|
-
{ path: "metadata.eventTime" }
|
|
3796
|
-
]
|
|
3247
|
+
paths: TRANSFORM_PATHS_03
|
|
3797
3248
|
},
|
|
3798
3249
|
{
|
|
3799
3250
|
transformFn: transformRESTImageToSDKImage2,
|
|
3800
|
-
paths:
|
|
3251
|
+
paths: TRANSFORM_PATHS_17
|
|
3801
3252
|
},
|
|
3802
3253
|
{
|
|
3803
3254
|
transformFn: transformRESTFloatToSDKFloat2,
|
|
3804
|
-
paths:
|
|
3255
|
+
paths: TRANSFORM_PATHS_23
|
|
3805
3256
|
},
|
|
3806
3257
|
{
|
|
3807
3258
|
transformFn: transformRESTAddressToSDKAddress2,
|
|
3808
|
-
paths:
|
|
3809
|
-
{ path: "data.order.billingInfo.address" },
|
|
3810
|
-
{
|
|
3811
|
-
path: "data.order.shippingInfo.logistics.shippingDestination.address"
|
|
3812
|
-
},
|
|
3813
|
-
{ path: "data.order.shippingInfo.logistics.pickupDetails.address" },
|
|
3814
|
-
{ path: "data.order.recipientInfo.address" }
|
|
3815
|
-
]
|
|
3259
|
+
paths: TRANSFORM_PATHS_33
|
|
3816
3260
|
}
|
|
3817
3261
|
])
|
|
3818
3262
|
)
|
|
@@ -3824,41 +3268,19 @@ var onOrderCanceled = /* @__PURE__ */ EventDefinition(
|
|
|
3824
3268
|
transformPaths3(event, [
|
|
3825
3269
|
{
|
|
3826
3270
|
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
3827
|
-
paths:
|
|
3828
|
-
{ path: "data.order.createdDate" },
|
|
3829
|
-
{ path: "data.order.updatedDate" },
|
|
3830
|
-
{ path: "data.order.purchasedDate" },
|
|
3831
|
-
{ path: "data.order.lineItems.digitalFile.expirationDate" },
|
|
3832
|
-
{
|
|
3833
|
-
path: "data.order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
3834
|
-
},
|
|
3835
|
-
{ path: "data.order.lineItems.serviceProperties.scheduledDate" },
|
|
3836
|
-
{ path: "data.order.lineItems.serviceProperties.endDate" },
|
|
3837
|
-
{ path: "data.order.shippingInfo.logistics.deliverByDate" },
|
|
3838
|
-
{ path: "data.order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
3839
|
-
{ path: "data.order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
3840
|
-
{ path: "data.order.activities.createdDate" },
|
|
3841
|
-
{ path: "metadata.eventTime" }
|
|
3842
|
-
]
|
|
3271
|
+
paths: TRANSFORM_PATHS_03
|
|
3843
3272
|
},
|
|
3844
3273
|
{
|
|
3845
3274
|
transformFn: transformRESTImageToSDKImage2,
|
|
3846
|
-
paths:
|
|
3275
|
+
paths: TRANSFORM_PATHS_17
|
|
3847
3276
|
},
|
|
3848
3277
|
{
|
|
3849
3278
|
transformFn: transformRESTFloatToSDKFloat2,
|
|
3850
|
-
paths:
|
|
3279
|
+
paths: TRANSFORM_PATHS_23
|
|
3851
3280
|
},
|
|
3852
3281
|
{
|
|
3853
3282
|
transformFn: transformRESTAddressToSDKAddress2,
|
|
3854
|
-
paths:
|
|
3855
|
-
{ path: "data.order.billingInfo.address" },
|
|
3856
|
-
{
|
|
3857
|
-
path: "data.order.shippingInfo.logistics.shippingDestination.address"
|
|
3858
|
-
},
|
|
3859
|
-
{ path: "data.order.shippingInfo.logistics.pickupDetails.address" },
|
|
3860
|
-
{ path: "data.order.recipientInfo.address" }
|
|
3861
|
-
]
|
|
3283
|
+
paths: TRANSFORM_PATHS_33
|
|
3862
3284
|
}
|
|
3863
3285
|
])
|
|
3864
3286
|
)
|
|
@@ -3870,71 +3292,19 @@ var onOrderCommitted = /* @__PURE__ */ EventDefinition(
|
|
|
3870
3292
|
transformPaths3(event, [
|
|
3871
3293
|
{
|
|
3872
3294
|
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
3873
|
-
paths:
|
|
3874
|
-
{ path: "data.commitDate" },
|
|
3875
|
-
{ path: "data.order.createdDate" },
|
|
3876
|
-
{ path: "data.order.updatedDate" },
|
|
3877
|
-
{ path: "data.order.purchasedDate" },
|
|
3878
|
-
{ path: "data.order.lineItems.digitalFile.expirationDate" },
|
|
3879
|
-
{
|
|
3880
|
-
path: "data.order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
3881
|
-
},
|
|
3882
|
-
{ path: "data.order.lineItems.serviceProperties.scheduledDate" },
|
|
3883
|
-
{ path: "data.order.lineItems.serviceProperties.endDate" },
|
|
3884
|
-
{ path: "data.order.shippingInfo.logistics.deliverByDate" },
|
|
3885
|
-
{ path: "data.order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
3886
|
-
{ path: "data.order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
3887
|
-
{ path: "data.order.activities.createdDate" },
|
|
3888
|
-
{
|
|
3889
|
-
path: "data.changes.changedShippingInfo.logistics.deliverByDate"
|
|
3890
|
-
},
|
|
3891
|
-
{
|
|
3892
|
-
path: "data.changes.changedShippingInfo.logistics.deliveryTimeSlot.from"
|
|
3893
|
-
},
|
|
3894
|
-
{
|
|
3895
|
-
path: "data.changes.changedShippingInfo.logistics.deliveryTimeSlot.to"
|
|
3896
|
-
},
|
|
3897
|
-
{
|
|
3898
|
-
path: "data.changes.lineItems.lineItemRemoved.digitalFile.expirationDate"
|
|
3899
|
-
},
|
|
3900
|
-
{
|
|
3901
|
-
path: "data.changes.lineItems.lineItemRemoved.subscriptionInfo.subscriptionSettings.startDate"
|
|
3902
|
-
},
|
|
3903
|
-
{ path: "metadata.eventTime" }
|
|
3904
|
-
]
|
|
3295
|
+
paths: TRANSFORM_PATHS_43
|
|
3905
3296
|
},
|
|
3906
3297
|
{
|
|
3907
3298
|
transformFn: transformRESTImageToSDKImage2,
|
|
3908
|
-
paths:
|
|
3909
|
-
{ path: "data.order.lineItems.image" },
|
|
3910
|
-
{ path: "data.changes.lineItems.lineItemRemoved.image" }
|
|
3911
|
-
]
|
|
3299
|
+
paths: TRANSFORM_PATHS_53
|
|
3912
3300
|
},
|
|
3913
3301
|
{
|
|
3914
3302
|
transformFn: transformRESTFloatToSDKFloat2,
|
|
3915
|
-
paths:
|
|
3916
|
-
{ path: "data.order.lineItems.physicalProperties.weight" },
|
|
3917
|
-
{
|
|
3918
|
-
path: "data.changes.lineItems.lineItemRemoved.physicalProperties.weight"
|
|
3919
|
-
}
|
|
3920
|
-
]
|
|
3303
|
+
paths: TRANSFORM_PATHS_63
|
|
3921
3304
|
},
|
|
3922
3305
|
{
|
|
3923
3306
|
transformFn: transformRESTAddressToSDKAddress2,
|
|
3924
|
-
paths:
|
|
3925
|
-
{ path: "data.order.billingInfo.address" },
|
|
3926
|
-
{
|
|
3927
|
-
path: "data.order.shippingInfo.logistics.shippingDestination.address"
|
|
3928
|
-
},
|
|
3929
|
-
{ path: "data.order.shippingInfo.logistics.pickupDetails.address" },
|
|
3930
|
-
{ path: "data.order.recipientInfo.address" },
|
|
3931
|
-
{
|
|
3932
|
-
path: "data.changes.changedShippingInfo.logistics.shippingDestination.address"
|
|
3933
|
-
},
|
|
3934
|
-
{
|
|
3935
|
-
path: "data.changes.changedShippingInfo.logistics.pickupDetails.address"
|
|
3936
|
-
}
|
|
3937
|
-
]
|
|
3307
|
+
paths: TRANSFORM_PATHS_73
|
|
3938
3308
|
}
|
|
3939
3309
|
])
|
|
3940
3310
|
)
|
|
@@ -3946,41 +3316,19 @@ var onOrderCreated = /* @__PURE__ */ EventDefinition(
|
|
|
3946
3316
|
transformPaths3(event, [
|
|
3947
3317
|
{
|
|
3948
3318
|
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
3949
|
-
paths:
|
|
3950
|
-
{ path: "entity.createdDate" },
|
|
3951
|
-
{ path: "entity.updatedDate" },
|
|
3952
|
-
{ path: "entity.purchasedDate" },
|
|
3953
|
-
{ path: "entity.lineItems.digitalFile.expirationDate" },
|
|
3954
|
-
{
|
|
3955
|
-
path: "entity.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
3956
|
-
},
|
|
3957
|
-
{ path: "entity.lineItems.serviceProperties.scheduledDate" },
|
|
3958
|
-
{ path: "entity.lineItems.serviceProperties.endDate" },
|
|
3959
|
-
{ path: "entity.shippingInfo.logistics.deliverByDate" },
|
|
3960
|
-
{ path: "entity.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
3961
|
-
{ path: "entity.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
3962
|
-
{ path: "entity.activities.createdDate" },
|
|
3963
|
-
{ path: "metadata.eventTime" }
|
|
3964
|
-
]
|
|
3319
|
+
paths: TRANSFORM_PATHS_83
|
|
3965
3320
|
},
|
|
3966
3321
|
{
|
|
3967
3322
|
transformFn: transformRESTImageToSDKImage2,
|
|
3968
|
-
paths:
|
|
3323
|
+
paths: TRANSFORM_PATHS_92
|
|
3969
3324
|
},
|
|
3970
3325
|
{
|
|
3971
3326
|
transformFn: transformRESTFloatToSDKFloat2,
|
|
3972
|
-
paths:
|
|
3327
|
+
paths: TRANSFORM_PATHS_102
|
|
3973
3328
|
},
|
|
3974
3329
|
{
|
|
3975
3330
|
transformFn: transformRESTAddressToSDKAddress2,
|
|
3976
|
-
paths:
|
|
3977
|
-
{ path: "entity.billingInfo.address" },
|
|
3978
|
-
{
|
|
3979
|
-
path: "entity.shippingInfo.logistics.shippingDestination.address"
|
|
3980
|
-
},
|
|
3981
|
-
{ path: "entity.shippingInfo.logistics.pickupDetails.address" },
|
|
3982
|
-
{ path: "entity.recipientInfo.address" }
|
|
3983
|
-
]
|
|
3331
|
+
paths: TRANSFORM_PATHS_112
|
|
3984
3332
|
}
|
|
3985
3333
|
])
|
|
3986
3334
|
)
|
|
@@ -3992,41 +3340,19 @@ var onOrderFulfilled = /* @__PURE__ */ EventDefinition(
|
|
|
3992
3340
|
transformPaths3(event, [
|
|
3993
3341
|
{
|
|
3994
3342
|
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
3995
|
-
paths:
|
|
3996
|
-
{ path: "data.order.createdDate" },
|
|
3997
|
-
{ path: "data.order.updatedDate" },
|
|
3998
|
-
{ path: "data.order.purchasedDate" },
|
|
3999
|
-
{ path: "data.order.lineItems.digitalFile.expirationDate" },
|
|
4000
|
-
{
|
|
4001
|
-
path: "data.order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
4002
|
-
},
|
|
4003
|
-
{ path: "data.order.lineItems.serviceProperties.scheduledDate" },
|
|
4004
|
-
{ path: "data.order.lineItems.serviceProperties.endDate" },
|
|
4005
|
-
{ path: "data.order.shippingInfo.logistics.deliverByDate" },
|
|
4006
|
-
{ path: "data.order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
4007
|
-
{ path: "data.order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
4008
|
-
{ path: "data.order.activities.createdDate" },
|
|
4009
|
-
{ path: "metadata.eventTime" }
|
|
4010
|
-
]
|
|
3343
|
+
paths: TRANSFORM_PATHS_03
|
|
4011
3344
|
},
|
|
4012
3345
|
{
|
|
4013
3346
|
transformFn: transformRESTImageToSDKImage2,
|
|
4014
|
-
paths:
|
|
3347
|
+
paths: TRANSFORM_PATHS_17
|
|
4015
3348
|
},
|
|
4016
3349
|
{
|
|
4017
3350
|
transformFn: transformRESTFloatToSDKFloat2,
|
|
4018
|
-
paths:
|
|
3351
|
+
paths: TRANSFORM_PATHS_23
|
|
4019
3352
|
},
|
|
4020
3353
|
{
|
|
4021
3354
|
transformFn: transformRESTAddressToSDKAddress2,
|
|
4022
|
-
paths:
|
|
4023
|
-
{ path: "data.order.billingInfo.address" },
|
|
4024
|
-
{
|
|
4025
|
-
path: "data.order.shippingInfo.logistics.shippingDestination.address"
|
|
4026
|
-
},
|
|
4027
|
-
{ path: "data.order.shippingInfo.logistics.pickupDetails.address" },
|
|
4028
|
-
{ path: "data.order.recipientInfo.address" }
|
|
4029
|
-
]
|
|
3355
|
+
paths: TRANSFORM_PATHS_33
|
|
4030
3356
|
}
|
|
4031
3357
|
])
|
|
4032
3358
|
)
|
|
@@ -4038,41 +3364,19 @@ var onOrderImported = /* @__PURE__ */ EventDefinition(
|
|
|
4038
3364
|
transformPaths3(event, [
|
|
4039
3365
|
{
|
|
4040
3366
|
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
4041
|
-
paths:
|
|
4042
|
-
{ path: "data.order.createdDate" },
|
|
4043
|
-
{ path: "data.order.updatedDate" },
|
|
4044
|
-
{ path: "data.order.purchasedDate" },
|
|
4045
|
-
{ path: "data.order.lineItems.digitalFile.expirationDate" },
|
|
4046
|
-
{
|
|
4047
|
-
path: "data.order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
4048
|
-
},
|
|
4049
|
-
{ path: "data.order.lineItems.serviceProperties.scheduledDate" },
|
|
4050
|
-
{ path: "data.order.lineItems.serviceProperties.endDate" },
|
|
4051
|
-
{ path: "data.order.shippingInfo.logistics.deliverByDate" },
|
|
4052
|
-
{ path: "data.order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
4053
|
-
{ path: "data.order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
4054
|
-
{ path: "data.order.activities.createdDate" },
|
|
4055
|
-
{ path: "metadata.eventTime" }
|
|
4056
|
-
]
|
|
3367
|
+
paths: TRANSFORM_PATHS_03
|
|
4057
3368
|
},
|
|
4058
3369
|
{
|
|
4059
3370
|
transformFn: transformRESTImageToSDKImage2,
|
|
4060
|
-
paths:
|
|
3371
|
+
paths: TRANSFORM_PATHS_17
|
|
4061
3372
|
},
|
|
4062
3373
|
{
|
|
4063
3374
|
transformFn: transformRESTFloatToSDKFloat2,
|
|
4064
|
-
paths:
|
|
3375
|
+
paths: TRANSFORM_PATHS_23
|
|
4065
3376
|
},
|
|
4066
3377
|
{
|
|
4067
3378
|
transformFn: transformRESTAddressToSDKAddress2,
|
|
4068
|
-
paths:
|
|
4069
|
-
{ path: "data.order.billingInfo.address" },
|
|
4070
|
-
{
|
|
4071
|
-
path: "data.order.shippingInfo.logistics.shippingDestination.address"
|
|
4072
|
-
},
|
|
4073
|
-
{ path: "data.order.shippingInfo.logistics.pickupDetails.address" },
|
|
4074
|
-
{ path: "data.order.recipientInfo.address" }
|
|
4075
|
-
]
|
|
3379
|
+
paths: TRANSFORM_PATHS_33
|
|
4076
3380
|
}
|
|
4077
3381
|
])
|
|
4078
3382
|
)
|
|
@@ -4084,41 +3388,19 @@ var onOrderImportedOrderDeleted = /* @__PURE__ */ EventDefinition(
|
|
|
4084
3388
|
transformPaths3(event, [
|
|
4085
3389
|
{
|
|
4086
3390
|
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
4087
|
-
paths:
|
|
4088
|
-
{ path: "data.order.createdDate" },
|
|
4089
|
-
{ path: "data.order.updatedDate" },
|
|
4090
|
-
{ path: "data.order.purchasedDate" },
|
|
4091
|
-
{ path: "data.order.lineItems.digitalFile.expirationDate" },
|
|
4092
|
-
{
|
|
4093
|
-
path: "data.order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
4094
|
-
},
|
|
4095
|
-
{ path: "data.order.lineItems.serviceProperties.scheduledDate" },
|
|
4096
|
-
{ path: "data.order.lineItems.serviceProperties.endDate" },
|
|
4097
|
-
{ path: "data.order.shippingInfo.logistics.deliverByDate" },
|
|
4098
|
-
{ path: "data.order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
4099
|
-
{ path: "data.order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
4100
|
-
{ path: "data.order.activities.createdDate" },
|
|
4101
|
-
{ path: "metadata.eventTime" }
|
|
4102
|
-
]
|
|
3391
|
+
paths: TRANSFORM_PATHS_03
|
|
4103
3392
|
},
|
|
4104
3393
|
{
|
|
4105
3394
|
transformFn: transformRESTImageToSDKImage2,
|
|
4106
|
-
paths:
|
|
3395
|
+
paths: TRANSFORM_PATHS_17
|
|
4107
3396
|
},
|
|
4108
3397
|
{
|
|
4109
3398
|
transformFn: transformRESTFloatToSDKFloat2,
|
|
4110
|
-
paths:
|
|
3399
|
+
paths: TRANSFORM_PATHS_23
|
|
4111
3400
|
},
|
|
4112
3401
|
{
|
|
4113
3402
|
transformFn: transformRESTAddressToSDKAddress2,
|
|
4114
|
-
paths:
|
|
4115
|
-
{ path: "data.order.billingInfo.address" },
|
|
4116
|
-
{
|
|
4117
|
-
path: "data.order.shippingInfo.logistics.shippingDestination.address"
|
|
4118
|
-
},
|
|
4119
|
-
{ path: "data.order.shippingInfo.logistics.pickupDetails.address" },
|
|
4120
|
-
{ path: "data.order.recipientInfo.address" }
|
|
4121
|
-
]
|
|
3403
|
+
paths: TRANSFORM_PATHS_33
|
|
4122
3404
|
}
|
|
4123
3405
|
])
|
|
4124
3406
|
)
|
|
@@ -4130,41 +3412,19 @@ var onOrderPaymentStatusUpdated = /* @__PURE__ */ EventDefinition(
|
|
|
4130
3412
|
transformPaths3(event, [
|
|
4131
3413
|
{
|
|
4132
3414
|
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
4133
|
-
paths:
|
|
4134
|
-
{ path: "data.order.createdDate" },
|
|
4135
|
-
{ path: "data.order.updatedDate" },
|
|
4136
|
-
{ path: "data.order.purchasedDate" },
|
|
4137
|
-
{ path: "data.order.lineItems.digitalFile.expirationDate" },
|
|
4138
|
-
{
|
|
4139
|
-
path: "data.order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
4140
|
-
},
|
|
4141
|
-
{ path: "data.order.lineItems.serviceProperties.scheduledDate" },
|
|
4142
|
-
{ path: "data.order.lineItems.serviceProperties.endDate" },
|
|
4143
|
-
{ path: "data.order.shippingInfo.logistics.deliverByDate" },
|
|
4144
|
-
{ path: "data.order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
4145
|
-
{ path: "data.order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
4146
|
-
{ path: "data.order.activities.createdDate" },
|
|
4147
|
-
{ path: "metadata.eventTime" }
|
|
4148
|
-
]
|
|
3415
|
+
paths: TRANSFORM_PATHS_03
|
|
4149
3416
|
},
|
|
4150
3417
|
{
|
|
4151
3418
|
transformFn: transformRESTImageToSDKImage2,
|
|
4152
|
-
paths:
|
|
3419
|
+
paths: TRANSFORM_PATHS_17
|
|
4153
3420
|
},
|
|
4154
3421
|
{
|
|
4155
3422
|
transformFn: transformRESTFloatToSDKFloat2,
|
|
4156
|
-
paths:
|
|
3423
|
+
paths: TRANSFORM_PATHS_23
|
|
4157
3424
|
},
|
|
4158
3425
|
{
|
|
4159
3426
|
transformFn: transformRESTAddressToSDKAddress2,
|
|
4160
|
-
paths:
|
|
4161
|
-
{ path: "data.order.billingInfo.address" },
|
|
4162
|
-
{
|
|
4163
|
-
path: "data.order.shippingInfo.logistics.shippingDestination.address"
|
|
4164
|
-
},
|
|
4165
|
-
{ path: "data.order.shippingInfo.logistics.pickupDetails.address" },
|
|
4166
|
-
{ path: "data.order.recipientInfo.address" }
|
|
4167
|
-
]
|
|
3427
|
+
paths: TRANSFORM_PATHS_33
|
|
4168
3428
|
}
|
|
4169
3429
|
])
|
|
4170
3430
|
)
|
|
@@ -4176,74 +3436,19 @@ var onOrderUpdated = /* @__PURE__ */ EventDefinition(
|
|
|
4176
3436
|
transformPaths3(event, [
|
|
4177
3437
|
{
|
|
4178
3438
|
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
4179
|
-
paths:
|
|
4180
|
-
{ path: "entity.createdDate" },
|
|
4181
|
-
{ path: "entity.updatedDate" },
|
|
4182
|
-
{ path: "entity.purchasedDate" },
|
|
4183
|
-
{ path: "entity.lineItems.digitalFile.expirationDate" },
|
|
4184
|
-
{
|
|
4185
|
-
path: "entity.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
4186
|
-
},
|
|
4187
|
-
{ path: "entity.lineItems.serviceProperties.scheduledDate" },
|
|
4188
|
-
{ path: "entity.lineItems.serviceProperties.endDate" },
|
|
4189
|
-
{ path: "entity.shippingInfo.logistics.deliverByDate" },
|
|
4190
|
-
{ path: "entity.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
4191
|
-
{ path: "entity.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
4192
|
-
{ path: "entity.activities.createdDate" },
|
|
4193
|
-
{ path: "metadata.eventTime" },
|
|
4194
|
-
{ path: "modifiedFields.createdDate" },
|
|
4195
|
-
{ path: "modifiedFields.updatedDate" },
|
|
4196
|
-
{ path: "modifiedFields.purchasedDate" },
|
|
4197
|
-
{ path: "modifiedFields.lineItems.digitalFile.expirationDate" },
|
|
4198
|
-
{
|
|
4199
|
-
path: "modifiedFields.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
4200
|
-
},
|
|
4201
|
-
{
|
|
4202
|
-
path: "modifiedFields.lineItems.serviceProperties.scheduledDate"
|
|
4203
|
-
},
|
|
4204
|
-
{ path: "modifiedFields.lineItems.serviceProperties.endDate" },
|
|
4205
|
-
{ path: "modifiedFields.shippingInfo.logistics.deliverByDate" },
|
|
4206
|
-
{
|
|
4207
|
-
path: "modifiedFields.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
4208
|
-
},
|
|
4209
|
-
{
|
|
4210
|
-
path: "modifiedFields.shippingInfo.logistics.deliveryTimeSlot.to"
|
|
4211
|
-
},
|
|
4212
|
-
{ path: "modifiedFields.activities.createdDate" }
|
|
4213
|
-
]
|
|
3439
|
+
paths: TRANSFORM_PATHS_122
|
|
4214
3440
|
},
|
|
4215
3441
|
{
|
|
4216
3442
|
transformFn: transformRESTImageToSDKImage2,
|
|
4217
|
-
paths:
|
|
4218
|
-
{ path: "entity.lineItems.image" },
|
|
4219
|
-
{ path: "modifiedFields.lineItems.image" }
|
|
4220
|
-
]
|
|
3443
|
+
paths: TRANSFORM_PATHS_132
|
|
4221
3444
|
},
|
|
4222
3445
|
{
|
|
4223
3446
|
transformFn: transformRESTFloatToSDKFloat2,
|
|
4224
|
-
paths:
|
|
4225
|
-
{ path: "entity.lineItems.physicalProperties.weight" },
|
|
4226
|
-
{ path: "modifiedFields.lineItems.physicalProperties.weight" }
|
|
4227
|
-
]
|
|
3447
|
+
paths: TRANSFORM_PATHS_142
|
|
4228
3448
|
},
|
|
4229
3449
|
{
|
|
4230
3450
|
transformFn: transformRESTAddressToSDKAddress2,
|
|
4231
|
-
paths:
|
|
4232
|
-
{ path: "entity.billingInfo.address" },
|
|
4233
|
-
{
|
|
4234
|
-
path: "entity.shippingInfo.logistics.shippingDestination.address"
|
|
4235
|
-
},
|
|
4236
|
-
{ path: "entity.shippingInfo.logistics.pickupDetails.address" },
|
|
4237
|
-
{ path: "entity.recipientInfo.address" },
|
|
4238
|
-
{ path: "modifiedFields.billingInfo.address" },
|
|
4239
|
-
{
|
|
4240
|
-
path: "modifiedFields.shippingInfo.logistics.shippingDestination.address"
|
|
4241
|
-
},
|
|
4242
|
-
{
|
|
4243
|
-
path: "modifiedFields.shippingInfo.logistics.pickupDetails.address"
|
|
4244
|
-
},
|
|
4245
|
-
{ path: "modifiedFields.recipientInfo.address" }
|
|
4246
|
-
]
|
|
3451
|
+
paths: TRANSFORM_PATHS_152
|
|
4247
3452
|
}
|
|
4248
3453
|
])
|
|
4249
3454
|
)
|