@wix/auto_sdk_ecom_draft-orders 1.0.177 → 1.0.179
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.d.ts +1 -1
- package/build/cjs/index.js +1002 -3623
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +30 -3
- package/build/cjs/index.typings.js +845 -3390
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +30 -3
- package/build/cjs/meta.js +630 -2600
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +1001 -3623
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +30 -3
- package/build/es/index.typings.mjs +844 -3390
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +30 -3
- package/build/es/meta.mjs +629 -2600
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +1 -1
- package/build/internal/cjs/index.typings.d.ts +37 -3
- package/build/internal/cjs/meta.d.ts +37 -3
- package/build/internal/es/index.d.mts +1 -1
- package/build/internal/es/index.typings.d.mts +37 -3
- package/build/internal/es/meta.d.mts +37 -3
- package/package.json +2 -2
|
@@ -14,6 +14,575 @@ import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transform
|
|
|
14
14
|
import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
|
15
15
|
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
16
16
|
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
17
|
+
var TRANSFORM_PATHS_0 = [
|
|
18
|
+
{ path: "draftOrder.catalogLineItems.subscriptionSettings.startDate" },
|
|
19
|
+
{ path: "draftOrder.customLineItems.media.urlExpirationDate" },
|
|
20
|
+
{ path: "draftOrder.customLineItems.subscriptionSettings.startDate" },
|
|
21
|
+
{ path: "draftOrder.shippingInfo.logistics.deliverByDate" },
|
|
22
|
+
{ path: "draftOrder.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
23
|
+
{ path: "draftOrder.shippingInfo.logistics.deliveryTimeSlot.to" }
|
|
24
|
+
];
|
|
25
|
+
var TRANSFORM_PATHS_1 = [
|
|
26
|
+
{ path: "draftOrder.customLineItems.media.focalPoint.x" },
|
|
27
|
+
{ path: "draftOrder.customLineItems.media.focalPoint.y" },
|
|
28
|
+
{ path: "draftOrder.customLineItems.physicalProperties.weight" },
|
|
29
|
+
{ path: "draftOrder.recipientInfo.address.geocode.latitude" },
|
|
30
|
+
{ path: "draftOrder.recipientInfo.address.geocode.longitude" },
|
|
31
|
+
{
|
|
32
|
+
path: "draftOrder.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
path: "draftOrder.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
path: "draftOrder.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
path: "draftOrder.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
42
|
+
},
|
|
43
|
+
{ path: "draftOrder.billingInfo.address.geocode.latitude" },
|
|
44
|
+
{ path: "draftOrder.billingInfo.address.geocode.longitude" }
|
|
45
|
+
];
|
|
46
|
+
var TRANSFORM_PATHS_2 = [
|
|
47
|
+
{ path: "calculatedDraftOrder.draftOrder.createdDate" },
|
|
48
|
+
{ path: "calculatedDraftOrder.draftOrder.updatedDate" },
|
|
49
|
+
{
|
|
50
|
+
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image.urlExpirationDate"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.digitalFile.expirationDate"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.endDate"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.from"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.to"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliverByDate"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.to"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
path: "calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
path: "calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
87
|
+
}
|
|
88
|
+
];
|
|
89
|
+
var TRANSFORM_PATHS_3 = [
|
|
90
|
+
{
|
|
91
|
+
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.x"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.y"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.physicalProperties.weight"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.latitude"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.longitude"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.latitude"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.longitude"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
path: "calculatedDraftOrder.draftOrder.billingInfo.address.geocode.latitude"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
path: "calculatedDraftOrder.draftOrder.billingInfo.address.geocode.longitude"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
path: "calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.latitude"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
path: "calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.longitude"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
path: "calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.latitude"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
path: "calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.longitude"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
path: "calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.latitude"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
path: "calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.longitude"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
path: "calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.latitude"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
path: "calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.longitude"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
path: "calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
path: "calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
158
|
+
}
|
|
159
|
+
];
|
|
160
|
+
var TRANSFORM_PATHS_4 = [
|
|
161
|
+
{ path: "catalogLineItems.subscriptionSettings.startDate" },
|
|
162
|
+
{ path: "customLineItems.media.urlExpirationDate" },
|
|
163
|
+
{ path: "customLineItems.subscriptionSettings.startDate" }
|
|
164
|
+
];
|
|
165
|
+
var TRANSFORM_PATHS_5 = [
|
|
166
|
+
{ path: "customLineItems.media.focalPoint.x" },
|
|
167
|
+
{ path: "customLineItems.media.focalPoint.y" },
|
|
168
|
+
{ path: "customLineItems.physicalProperties.weight" }
|
|
169
|
+
];
|
|
170
|
+
var TRANSFORM_PATHS_6 = [
|
|
171
|
+
{ path: "lineItemChanges.newSubscriptionSettings.startDate" }
|
|
172
|
+
];
|
|
173
|
+
var TRANSFORM_PATHS_7 = [
|
|
174
|
+
{ path: "shippingInfo.logistics.deliverByDate" },
|
|
175
|
+
{ path: "shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
176
|
+
{ path: "shippingInfo.logistics.deliveryTimeSlot.to" }
|
|
177
|
+
];
|
|
178
|
+
var TRANSFORM_PATHS_8 = [
|
|
179
|
+
{
|
|
180
|
+
path: "shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
path: "shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
184
|
+
},
|
|
185
|
+
{ path: "shippingInfo.logistics.pickupDetails.address.geocode.latitude" },
|
|
186
|
+
{ path: "shippingInfo.logistics.pickupDetails.address.geocode.longitude" }
|
|
187
|
+
];
|
|
188
|
+
var TRANSFORM_PATHS_9 = [
|
|
189
|
+
{ path: "recipientInfo.address.geocode.latitude" },
|
|
190
|
+
{ path: "recipientInfo.address.geocode.longitude" }
|
|
191
|
+
];
|
|
192
|
+
var TRANSFORM_PATHS_10 = [
|
|
193
|
+
{ path: "billingInfo.address.geocode.latitude" },
|
|
194
|
+
{ path: "billingInfo.address.geocode.longitude" }
|
|
195
|
+
];
|
|
196
|
+
var TRANSFORM_PATHS_11 = [
|
|
197
|
+
{ path: "committedDraftOrder.createdDate" },
|
|
198
|
+
{ path: "committedDraftOrder.updatedDate" },
|
|
199
|
+
{ path: "committedDraftOrder.lineItems.lineItem.image.urlExpirationDate" },
|
|
200
|
+
{ path: "committedDraftOrder.lineItems.lineItem.digitalFile.expirationDate" },
|
|
201
|
+
{
|
|
202
|
+
path: "committedDraftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
path: "committedDraftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
|
|
206
|
+
},
|
|
207
|
+
{ path: "committedDraftOrder.lineItems.lineItem.serviceProperties.endDate" },
|
|
208
|
+
{
|
|
209
|
+
path: "committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
path: "committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.from"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
path: "committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.to"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
path: "committedDraftOrder.shippingInfo.shippingInfo.logistics.deliverByDate"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
path: "committedDraftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
path: "committedDraftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.to"
|
|
225
|
+
},
|
|
226
|
+
{ path: "orderAfterCommit.createdDate" },
|
|
227
|
+
{ path: "orderAfterCommit.updatedDate" },
|
|
228
|
+
{ path: "orderAfterCommit.purchasedDate" },
|
|
229
|
+
{ path: "orderAfterCommit.lineItems.image.urlExpirationDate" },
|
|
230
|
+
{ path: "orderAfterCommit.lineItems.digitalFile.expirationDate" },
|
|
231
|
+
{
|
|
232
|
+
path: "orderAfterCommit.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
233
|
+
},
|
|
234
|
+
{ path: "orderAfterCommit.lineItems.serviceProperties.scheduledDate" },
|
|
235
|
+
{ path: "orderAfterCommit.lineItems.serviceProperties.endDate" },
|
|
236
|
+
{ path: "orderAfterCommit.shippingInfo.logistics.deliverByDate" },
|
|
237
|
+
{ path: "orderAfterCommit.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
238
|
+
{ path: "orderAfterCommit.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
239
|
+
{ path: "orderAfterCommit.activities.createdDate" }
|
|
240
|
+
];
|
|
241
|
+
var TRANSFORM_PATHS_12 = [
|
|
242
|
+
{ path: "committedDraftOrder.lineItems.lineItem.image.focalPoint.x" },
|
|
243
|
+
{ path: "committedDraftOrder.lineItems.lineItem.image.focalPoint.y" },
|
|
244
|
+
{ path: "orderAfterCommit.lineItems.image.focalPoint.x" },
|
|
245
|
+
{ path: "orderAfterCommit.lineItems.image.focalPoint.y" },
|
|
246
|
+
{ path: "committedDraftOrder.lineItems.lineItem.physicalProperties.weight" },
|
|
247
|
+
{
|
|
248
|
+
path: "committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.latitude"
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
path: "committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.longitude"
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
path: "committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.latitude"
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
path: "committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.longitude"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
path: "committedDraftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
path: "committedDraftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
path: "committedDraftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
path: "committedDraftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
270
|
+
},
|
|
271
|
+
{ path: "committedDraftOrder.billingInfo.address.geocode.latitude" },
|
|
272
|
+
{ path: "committedDraftOrder.billingInfo.address.geocode.longitude" },
|
|
273
|
+
{
|
|
274
|
+
path: "committedDraftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.latitude"
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
path: "committedDraftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.longitude"
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
path: "committedDraftOrder.recipientInfo.recipientInfo.address.geocode.latitude"
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
path: "committedDraftOrder.recipientInfo.recipientInfo.address.geocode.longitude"
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
path: "committedDraftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.latitude"
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
path: "committedDraftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.longitude"
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
path: "committedDraftOrder.billingDetails.billingInfo.address.geocode.latitude"
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
path: "committedDraftOrder.billingDetails.billingInfo.address.geocode.longitude"
|
|
296
|
+
},
|
|
297
|
+
{ path: "orderAfterCommit.lineItems.physicalProperties.weight" },
|
|
298
|
+
{ path: "orderAfterCommit.billingInfo.address.geocode.latitude" },
|
|
299
|
+
{ path: "orderAfterCommit.billingInfo.address.geocode.longitude" },
|
|
300
|
+
{
|
|
301
|
+
path: "orderAfterCommit.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
path: "orderAfterCommit.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
path: "orderAfterCommit.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
path: "orderAfterCommit.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
311
|
+
},
|
|
312
|
+
{ path: "orderAfterCommit.recipientInfo.address.geocode.latitude" },
|
|
313
|
+
{ path: "orderAfterCommit.recipientInfo.address.geocode.longitude" }
|
|
314
|
+
];
|
|
315
|
+
var TRANSFORM_PATHS_13 = [
|
|
316
|
+
{ path: "committedDraftOrder.createdDate" },
|
|
317
|
+
{ path: "committedDraftOrder.updatedDate" },
|
|
318
|
+
{ path: "committedDraftOrder.lineItems.lineItem.image.urlExpirationDate" },
|
|
319
|
+
{ path: "committedDraftOrder.lineItems.lineItem.digitalFile.expirationDate" },
|
|
320
|
+
{
|
|
321
|
+
path: "committedDraftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
path: "committedDraftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
|
|
325
|
+
},
|
|
326
|
+
{ path: "committedDraftOrder.lineItems.lineItem.serviceProperties.endDate" },
|
|
327
|
+
{
|
|
328
|
+
path: "committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
path: "committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.from"
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
path: "committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.to"
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
path: "committedDraftOrder.shippingInfo.shippingInfo.logistics.deliverByDate"
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
path: "committedDraftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
path: "committedDraftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.to"
|
|
344
|
+
},
|
|
345
|
+
{ path: "createdOrder.createdDate" },
|
|
346
|
+
{ path: "createdOrder.updatedDate" },
|
|
347
|
+
{ path: "createdOrder.purchasedDate" },
|
|
348
|
+
{ path: "createdOrder.lineItems.image.urlExpirationDate" },
|
|
349
|
+
{ path: "createdOrder.lineItems.digitalFile.expirationDate" },
|
|
350
|
+
{
|
|
351
|
+
path: "createdOrder.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
352
|
+
},
|
|
353
|
+
{ path: "createdOrder.lineItems.serviceProperties.scheduledDate" },
|
|
354
|
+
{ path: "createdOrder.lineItems.serviceProperties.endDate" },
|
|
355
|
+
{ path: "createdOrder.shippingInfo.logistics.deliverByDate" },
|
|
356
|
+
{ path: "createdOrder.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
357
|
+
{ path: "createdOrder.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
358
|
+
{ path: "createdOrder.activities.createdDate" }
|
|
359
|
+
];
|
|
360
|
+
var TRANSFORM_PATHS_14 = [
|
|
361
|
+
{ path: "committedDraftOrder.lineItems.lineItem.image.focalPoint.x" },
|
|
362
|
+
{ path: "committedDraftOrder.lineItems.lineItem.image.focalPoint.y" },
|
|
363
|
+
{ path: "createdOrder.lineItems.image.focalPoint.x" },
|
|
364
|
+
{ path: "createdOrder.lineItems.image.focalPoint.y" },
|
|
365
|
+
{ path: "committedDraftOrder.lineItems.lineItem.physicalProperties.weight" },
|
|
366
|
+
{
|
|
367
|
+
path: "committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.latitude"
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
path: "committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.longitude"
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
path: "committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.latitude"
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
path: "committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.longitude"
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
path: "committedDraftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
path: "committedDraftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
path: "committedDraftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
path: "committedDraftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
389
|
+
},
|
|
390
|
+
{ path: "committedDraftOrder.billingInfo.address.geocode.latitude" },
|
|
391
|
+
{ path: "committedDraftOrder.billingInfo.address.geocode.longitude" },
|
|
392
|
+
{
|
|
393
|
+
path: "committedDraftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.latitude"
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
path: "committedDraftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.longitude"
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
path: "committedDraftOrder.recipientInfo.recipientInfo.address.geocode.latitude"
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
path: "committedDraftOrder.recipientInfo.recipientInfo.address.geocode.longitude"
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
path: "committedDraftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.latitude"
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
path: "committedDraftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.longitude"
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
path: "committedDraftOrder.billingDetails.billingInfo.address.geocode.latitude"
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
path: "committedDraftOrder.billingDetails.billingInfo.address.geocode.longitude"
|
|
415
|
+
},
|
|
416
|
+
{ path: "createdOrder.lineItems.physicalProperties.weight" },
|
|
417
|
+
{ path: "createdOrder.billingInfo.address.geocode.latitude" },
|
|
418
|
+
{ path: "createdOrder.billingInfo.address.geocode.longitude" },
|
|
419
|
+
{
|
|
420
|
+
path: "createdOrder.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
path: "createdOrder.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
path: "createdOrder.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
path: "createdOrder.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
430
|
+
},
|
|
431
|
+
{ path: "createdOrder.recipientInfo.address.geocode.latitude" },
|
|
432
|
+
{ path: "createdOrder.recipientInfo.address.geocode.longitude" }
|
|
433
|
+
];
|
|
434
|
+
var TRANSFORM_PATHS_15 = [
|
|
435
|
+
{ path: "query.sort.origin.latitude" },
|
|
436
|
+
{ path: "query.sort.origin.longitude" }
|
|
437
|
+
];
|
|
438
|
+
var TRANSFORM_PATHS_16 = [
|
|
439
|
+
{ path: "draftOrders.createdDate" },
|
|
440
|
+
{ path: "draftOrders.updatedDate" },
|
|
441
|
+
{ path: "draftOrders.lineItems.lineItem.image.urlExpirationDate" },
|
|
442
|
+
{ path: "draftOrders.lineItems.lineItem.digitalFile.expirationDate" },
|
|
443
|
+
{
|
|
444
|
+
path: "draftOrders.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
|
|
445
|
+
},
|
|
446
|
+
{ path: "draftOrders.lineItems.lineItem.serviceProperties.scheduledDate" },
|
|
447
|
+
{ path: "draftOrders.lineItems.lineItem.serviceProperties.endDate" },
|
|
448
|
+
{
|
|
449
|
+
path: "draftOrders.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
path: "draftOrders.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.from"
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
path: "draftOrders.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.to"
|
|
456
|
+
},
|
|
457
|
+
{ path: "draftOrders.shippingInfo.shippingInfo.logistics.deliverByDate" },
|
|
458
|
+
{
|
|
459
|
+
path: "draftOrders.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
path: "draftOrders.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.to"
|
|
463
|
+
}
|
|
464
|
+
];
|
|
465
|
+
var TRANSFORM_PATHS_17 = [
|
|
466
|
+
{ path: "draftOrders.lineItems.lineItem.image.focalPoint.x" },
|
|
467
|
+
{ path: "draftOrders.lineItems.lineItem.image.focalPoint.y" },
|
|
468
|
+
{ path: "draftOrders.lineItems.lineItem.physicalProperties.weight" },
|
|
469
|
+
{
|
|
470
|
+
path: "draftOrders.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.latitude"
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
path: "draftOrders.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.longitude"
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
path: "draftOrders.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.latitude"
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
path: "draftOrders.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.longitude"
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
path: "draftOrders.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
483
|
+
},
|
|
484
|
+
{
|
|
485
|
+
path: "draftOrders.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
path: "draftOrders.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
489
|
+
},
|
|
490
|
+
{
|
|
491
|
+
path: "draftOrders.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
492
|
+
},
|
|
493
|
+
{ path: "draftOrders.billingInfo.address.geocode.latitude" },
|
|
494
|
+
{ path: "draftOrders.billingInfo.address.geocode.longitude" },
|
|
495
|
+
{
|
|
496
|
+
path: "draftOrders.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.latitude"
|
|
497
|
+
},
|
|
498
|
+
{
|
|
499
|
+
path: "draftOrders.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.longitude"
|
|
500
|
+
},
|
|
501
|
+
{ path: "draftOrders.recipientInfo.recipientInfo.address.geocode.latitude" },
|
|
502
|
+
{ path: "draftOrders.recipientInfo.recipientInfo.address.geocode.longitude" },
|
|
503
|
+
{
|
|
504
|
+
path: "draftOrders.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.latitude"
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
path: "draftOrders.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.longitude"
|
|
508
|
+
},
|
|
509
|
+
{ path: "draftOrders.billingDetails.billingInfo.address.geocode.latitude" },
|
|
510
|
+
{ path: "draftOrders.billingDetails.billingInfo.address.geocode.longitude" }
|
|
511
|
+
];
|
|
512
|
+
var TRANSFORM_PATHS_18 = [
|
|
513
|
+
{ path: "draftOrder.createdDate" },
|
|
514
|
+
{ path: "draftOrder.updatedDate" },
|
|
515
|
+
{ path: "draftOrder.lineItems.lineItem.image.urlExpirationDate" },
|
|
516
|
+
{ path: "draftOrder.lineItems.lineItem.digitalFile.expirationDate" },
|
|
517
|
+
{
|
|
518
|
+
path: "draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
|
|
519
|
+
},
|
|
520
|
+
{ path: "draftOrder.lineItems.lineItem.serviceProperties.scheduledDate" },
|
|
521
|
+
{ path: "draftOrder.lineItems.lineItem.serviceProperties.endDate" },
|
|
522
|
+
{
|
|
523
|
+
path: "draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
path: "draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.from"
|
|
527
|
+
},
|
|
528
|
+
{
|
|
529
|
+
path: "draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.to"
|
|
530
|
+
},
|
|
531
|
+
{ path: "draftOrder.shippingInfo.shippingInfo.logistics.deliverByDate" },
|
|
532
|
+
{
|
|
533
|
+
path: "draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
534
|
+
},
|
|
535
|
+
{
|
|
536
|
+
path: "draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.to"
|
|
537
|
+
}
|
|
538
|
+
];
|
|
539
|
+
var TRANSFORM_PATHS_19 = [
|
|
540
|
+
{ path: "draftOrder.lineItems.lineItem.image.focalPoint.x" },
|
|
541
|
+
{ path: "draftOrder.lineItems.lineItem.image.focalPoint.y" },
|
|
542
|
+
{ path: "draftOrder.lineItems.lineItem.physicalProperties.weight" },
|
|
543
|
+
{
|
|
544
|
+
path: "draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.latitude"
|
|
545
|
+
},
|
|
546
|
+
{
|
|
547
|
+
path: "draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.longitude"
|
|
548
|
+
},
|
|
549
|
+
{
|
|
550
|
+
path: "draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.latitude"
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
path: "draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.longitude"
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
path: "draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
557
|
+
},
|
|
558
|
+
{
|
|
559
|
+
path: "draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
560
|
+
},
|
|
561
|
+
{
|
|
562
|
+
path: "draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
563
|
+
},
|
|
564
|
+
{
|
|
565
|
+
path: "draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
566
|
+
},
|
|
567
|
+
{ path: "draftOrder.billingInfo.address.geocode.latitude" },
|
|
568
|
+
{ path: "draftOrder.billingInfo.address.geocode.longitude" },
|
|
569
|
+
{
|
|
570
|
+
path: "draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.latitude"
|
|
571
|
+
},
|
|
572
|
+
{
|
|
573
|
+
path: "draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.longitude"
|
|
574
|
+
},
|
|
575
|
+
{ path: "draftOrder.recipientInfo.recipientInfo.address.geocode.latitude" },
|
|
576
|
+
{ path: "draftOrder.recipientInfo.recipientInfo.address.geocode.longitude" },
|
|
577
|
+
{
|
|
578
|
+
path: "draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.latitude"
|
|
579
|
+
},
|
|
580
|
+
{
|
|
581
|
+
path: "draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.longitude"
|
|
582
|
+
},
|
|
583
|
+
{ path: "draftOrder.billingDetails.billingInfo.address.geocode.latitude" },
|
|
584
|
+
{ path: "draftOrder.billingDetails.billingInfo.address.geocode.longitude" }
|
|
585
|
+
];
|
|
17
586
|
function resolveComWixEcomOrdersDraftV1DraftOrdersUrl(opts) {
|
|
18
587
|
const domainToMappings = {
|
|
19
588
|
"manage._base_domain_": [
|
|
@@ -57,40 +626,11 @@ function createDraftOrder(payload) {
|
|
|
57
626
|
const serializedData = transformPaths(payload, [
|
|
58
627
|
{
|
|
59
628
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
60
|
-
paths:
|
|
61
|
-
{
|
|
62
|
-
path: "draftOrder.catalogLineItems.subscriptionSettings.startDate"
|
|
63
|
-
},
|
|
64
|
-
{ path: "draftOrder.customLineItems.media.urlExpirationDate" },
|
|
65
|
-
{ path: "draftOrder.customLineItems.subscriptionSettings.startDate" },
|
|
66
|
-
{ path: "draftOrder.shippingInfo.logistics.deliverByDate" },
|
|
67
|
-
{ path: "draftOrder.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
68
|
-
{ path: "draftOrder.shippingInfo.logistics.deliveryTimeSlot.to" }
|
|
69
|
-
]
|
|
629
|
+
paths: TRANSFORM_PATHS_0
|
|
70
630
|
},
|
|
71
631
|
{
|
|
72
632
|
transformFn: transformSDKFloatToRESTFloat,
|
|
73
|
-
paths:
|
|
74
|
-
{ path: "draftOrder.customLineItems.media.focalPoint.x" },
|
|
75
|
-
{ path: "draftOrder.customLineItems.media.focalPoint.y" },
|
|
76
|
-
{ path: "draftOrder.customLineItems.physicalProperties.weight" },
|
|
77
|
-
{ path: "draftOrder.recipientInfo.address.geocode.latitude" },
|
|
78
|
-
{ path: "draftOrder.recipientInfo.address.geocode.longitude" },
|
|
79
|
-
{
|
|
80
|
-
path: "draftOrder.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
path: "draftOrder.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
path: "draftOrder.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
path: "draftOrder.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
90
|
-
},
|
|
91
|
-
{ path: "draftOrder.billingInfo.address.geocode.latitude" },
|
|
92
|
-
{ path: "draftOrder.billingInfo.address.geocode.longitude" }
|
|
93
|
-
]
|
|
633
|
+
paths: TRANSFORM_PATHS_1
|
|
94
634
|
}
|
|
95
635
|
]);
|
|
96
636
|
const metadata = {
|
|
@@ -110,123 +650,11 @@ function createDraftOrder(payload) {
|
|
|
110
650
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
111
651
|
{
|
|
112
652
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
113
|
-
paths:
|
|
114
|
-
{ path: "calculatedDraftOrder.draftOrder.createdDate" },
|
|
115
|
-
{ path: "calculatedDraftOrder.draftOrder.updatedDate" },
|
|
116
|
-
{
|
|
117
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image.urlExpirationDate"
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.digitalFile.expirationDate"
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.endDate"
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.from"
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.to"
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliverByDate"
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.to"
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
154
|
-
}
|
|
155
|
-
]
|
|
653
|
+
paths: TRANSFORM_PATHS_2
|
|
156
654
|
},
|
|
157
655
|
{
|
|
158
656
|
transformFn: transformRESTFloatToSDKFloat,
|
|
159
|
-
paths:
|
|
160
|
-
{
|
|
161
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.x"
|
|
162
|
-
},
|
|
163
|
-
{
|
|
164
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.y"
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.physicalProperties.weight"
|
|
168
|
-
},
|
|
169
|
-
{
|
|
170
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.latitude"
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.longitude"
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.latitude"
|
|
177
|
-
},
|
|
178
|
-
{
|
|
179
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.longitude"
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
186
|
-
},
|
|
187
|
-
{
|
|
188
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
189
|
-
},
|
|
190
|
-
{
|
|
191
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
192
|
-
},
|
|
193
|
-
{
|
|
194
|
-
path: "calculatedDraftOrder.draftOrder.billingInfo.address.geocode.latitude"
|
|
195
|
-
},
|
|
196
|
-
{
|
|
197
|
-
path: "calculatedDraftOrder.draftOrder.billingInfo.address.geocode.longitude"
|
|
198
|
-
},
|
|
199
|
-
{
|
|
200
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.latitude"
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.longitude"
|
|
204
|
-
},
|
|
205
|
-
{
|
|
206
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.latitude"
|
|
207
|
-
},
|
|
208
|
-
{
|
|
209
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.longitude"
|
|
210
|
-
},
|
|
211
|
-
{
|
|
212
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.latitude"
|
|
213
|
-
},
|
|
214
|
-
{
|
|
215
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.longitude"
|
|
216
|
-
},
|
|
217
|
-
{
|
|
218
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.latitude"
|
|
219
|
-
},
|
|
220
|
-
{
|
|
221
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.longitude"
|
|
222
|
-
},
|
|
223
|
-
{
|
|
224
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
225
|
-
},
|
|
226
|
-
{
|
|
227
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
228
|
-
}
|
|
229
|
-
]
|
|
657
|
+
paths: TRANSFORM_PATHS_3
|
|
230
658
|
}
|
|
231
659
|
])
|
|
232
660
|
};
|
|
@@ -253,123 +681,11 @@ function createEmptyDraftOrder(payload) {
|
|
|
253
681
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
254
682
|
{
|
|
255
683
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
256
|
-
paths:
|
|
257
|
-
{ path: "calculatedDraftOrder.draftOrder.createdDate" },
|
|
258
|
-
{ path: "calculatedDraftOrder.draftOrder.updatedDate" },
|
|
259
|
-
{
|
|
260
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image.urlExpirationDate"
|
|
261
|
-
},
|
|
262
|
-
{
|
|
263
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.digitalFile.expirationDate"
|
|
264
|
-
},
|
|
265
|
-
{
|
|
266
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
|
|
267
|
-
},
|
|
268
|
-
{
|
|
269
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
|
|
270
|
-
},
|
|
271
|
-
{
|
|
272
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.endDate"
|
|
273
|
-
},
|
|
274
|
-
{
|
|
275
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
|
|
276
|
-
},
|
|
277
|
-
{
|
|
278
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.from"
|
|
279
|
-
},
|
|
280
|
-
{
|
|
281
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.to"
|
|
282
|
-
},
|
|
283
|
-
{
|
|
284
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliverByDate"
|
|
285
|
-
},
|
|
286
|
-
{
|
|
287
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
288
|
-
},
|
|
289
|
-
{
|
|
290
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.to"
|
|
291
|
-
},
|
|
292
|
-
{
|
|
293
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
294
|
-
},
|
|
295
|
-
{
|
|
296
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
297
|
-
}
|
|
298
|
-
]
|
|
684
|
+
paths: TRANSFORM_PATHS_2
|
|
299
685
|
},
|
|
300
686
|
{
|
|
301
687
|
transformFn: transformRESTFloatToSDKFloat,
|
|
302
|
-
paths:
|
|
303
|
-
{
|
|
304
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.x"
|
|
305
|
-
},
|
|
306
|
-
{
|
|
307
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.y"
|
|
308
|
-
},
|
|
309
|
-
{
|
|
310
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.physicalProperties.weight"
|
|
311
|
-
},
|
|
312
|
-
{
|
|
313
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.latitude"
|
|
314
|
-
},
|
|
315
|
-
{
|
|
316
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.longitude"
|
|
317
|
-
},
|
|
318
|
-
{
|
|
319
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.latitude"
|
|
320
|
-
},
|
|
321
|
-
{
|
|
322
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.longitude"
|
|
323
|
-
},
|
|
324
|
-
{
|
|
325
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
326
|
-
},
|
|
327
|
-
{
|
|
328
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
329
|
-
},
|
|
330
|
-
{
|
|
331
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
332
|
-
},
|
|
333
|
-
{
|
|
334
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
335
|
-
},
|
|
336
|
-
{
|
|
337
|
-
path: "calculatedDraftOrder.draftOrder.billingInfo.address.geocode.latitude"
|
|
338
|
-
},
|
|
339
|
-
{
|
|
340
|
-
path: "calculatedDraftOrder.draftOrder.billingInfo.address.geocode.longitude"
|
|
341
|
-
},
|
|
342
|
-
{
|
|
343
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.latitude"
|
|
344
|
-
},
|
|
345
|
-
{
|
|
346
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.longitude"
|
|
347
|
-
},
|
|
348
|
-
{
|
|
349
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.latitude"
|
|
350
|
-
},
|
|
351
|
-
{
|
|
352
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.longitude"
|
|
353
|
-
},
|
|
354
|
-
{
|
|
355
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.latitude"
|
|
356
|
-
},
|
|
357
|
-
{
|
|
358
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.longitude"
|
|
359
|
-
},
|
|
360
|
-
{
|
|
361
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.latitude"
|
|
362
|
-
},
|
|
363
|
-
{
|
|
364
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.longitude"
|
|
365
|
-
},
|
|
366
|
-
{
|
|
367
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
368
|
-
},
|
|
369
|
-
{
|
|
370
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
371
|
-
}
|
|
372
|
-
]
|
|
688
|
+
paths: TRANSFORM_PATHS_3
|
|
373
689
|
}
|
|
374
690
|
])
|
|
375
691
|
};
|
|
@@ -382,19 +698,11 @@ function addLineItemsToDraftOrder(payload) {
|
|
|
382
698
|
const serializedData = transformPaths(payload, [
|
|
383
699
|
{
|
|
384
700
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
385
|
-
paths:
|
|
386
|
-
{ path: "catalogLineItems.subscriptionSettings.startDate" },
|
|
387
|
-
{ path: "customLineItems.media.urlExpirationDate" },
|
|
388
|
-
{ path: "customLineItems.subscriptionSettings.startDate" }
|
|
389
|
-
]
|
|
701
|
+
paths: TRANSFORM_PATHS_4
|
|
390
702
|
},
|
|
391
703
|
{
|
|
392
704
|
transformFn: transformSDKFloatToRESTFloat,
|
|
393
|
-
paths:
|
|
394
|
-
{ path: "customLineItems.media.focalPoint.x" },
|
|
395
|
-
{ path: "customLineItems.media.focalPoint.y" },
|
|
396
|
-
{ path: "customLineItems.physicalProperties.weight" }
|
|
397
|
-
]
|
|
705
|
+
paths: TRANSFORM_PATHS_5
|
|
398
706
|
}
|
|
399
707
|
]);
|
|
400
708
|
const metadata = {
|
|
@@ -414,123 +722,11 @@ function addLineItemsToDraftOrder(payload) {
|
|
|
414
722
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
415
723
|
{
|
|
416
724
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
417
|
-
paths:
|
|
418
|
-
{ path: "calculatedDraftOrder.draftOrder.createdDate" },
|
|
419
|
-
{ path: "calculatedDraftOrder.draftOrder.updatedDate" },
|
|
420
|
-
{
|
|
421
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image.urlExpirationDate"
|
|
422
|
-
},
|
|
423
|
-
{
|
|
424
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.digitalFile.expirationDate"
|
|
425
|
-
},
|
|
426
|
-
{
|
|
427
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
|
|
428
|
-
},
|
|
429
|
-
{
|
|
430
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
|
|
431
|
-
},
|
|
432
|
-
{
|
|
433
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.endDate"
|
|
434
|
-
},
|
|
435
|
-
{
|
|
436
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
|
|
437
|
-
},
|
|
438
|
-
{
|
|
439
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.from"
|
|
440
|
-
},
|
|
441
|
-
{
|
|
442
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.to"
|
|
443
|
-
},
|
|
444
|
-
{
|
|
445
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliverByDate"
|
|
446
|
-
},
|
|
447
|
-
{
|
|
448
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
449
|
-
},
|
|
450
|
-
{
|
|
451
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.to"
|
|
452
|
-
},
|
|
453
|
-
{
|
|
454
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
455
|
-
},
|
|
456
|
-
{
|
|
457
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
458
|
-
}
|
|
459
|
-
]
|
|
725
|
+
paths: TRANSFORM_PATHS_2
|
|
460
726
|
},
|
|
461
727
|
{
|
|
462
728
|
transformFn: transformRESTFloatToSDKFloat,
|
|
463
|
-
paths:
|
|
464
|
-
{
|
|
465
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.x"
|
|
466
|
-
},
|
|
467
|
-
{
|
|
468
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.y"
|
|
469
|
-
},
|
|
470
|
-
{
|
|
471
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.physicalProperties.weight"
|
|
472
|
-
},
|
|
473
|
-
{
|
|
474
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.latitude"
|
|
475
|
-
},
|
|
476
|
-
{
|
|
477
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.longitude"
|
|
478
|
-
},
|
|
479
|
-
{
|
|
480
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.latitude"
|
|
481
|
-
},
|
|
482
|
-
{
|
|
483
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.longitude"
|
|
484
|
-
},
|
|
485
|
-
{
|
|
486
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
487
|
-
},
|
|
488
|
-
{
|
|
489
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
490
|
-
},
|
|
491
|
-
{
|
|
492
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
493
|
-
},
|
|
494
|
-
{
|
|
495
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
496
|
-
},
|
|
497
|
-
{
|
|
498
|
-
path: "calculatedDraftOrder.draftOrder.billingInfo.address.geocode.latitude"
|
|
499
|
-
},
|
|
500
|
-
{
|
|
501
|
-
path: "calculatedDraftOrder.draftOrder.billingInfo.address.geocode.longitude"
|
|
502
|
-
},
|
|
503
|
-
{
|
|
504
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.latitude"
|
|
505
|
-
},
|
|
506
|
-
{
|
|
507
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.longitude"
|
|
508
|
-
},
|
|
509
|
-
{
|
|
510
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.latitude"
|
|
511
|
-
},
|
|
512
|
-
{
|
|
513
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.longitude"
|
|
514
|
-
},
|
|
515
|
-
{
|
|
516
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.latitude"
|
|
517
|
-
},
|
|
518
|
-
{
|
|
519
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.longitude"
|
|
520
|
-
},
|
|
521
|
-
{
|
|
522
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.latitude"
|
|
523
|
-
},
|
|
524
|
-
{
|
|
525
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.longitude"
|
|
526
|
-
},
|
|
527
|
-
{
|
|
528
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
529
|
-
},
|
|
530
|
-
{
|
|
531
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
532
|
-
}
|
|
533
|
-
]
|
|
729
|
+
paths: TRANSFORM_PATHS_3
|
|
534
730
|
}
|
|
535
731
|
])
|
|
536
732
|
};
|
|
@@ -543,7 +739,7 @@ function updateLineItems(payload) {
|
|
|
543
739
|
const serializedData = transformPaths(payload, [
|
|
544
740
|
{
|
|
545
741
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
546
|
-
paths:
|
|
742
|
+
paths: TRANSFORM_PATHS_6
|
|
547
743
|
}
|
|
548
744
|
]);
|
|
549
745
|
const metadata = {
|
|
@@ -563,123 +759,11 @@ function updateLineItems(payload) {
|
|
|
563
759
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
564
760
|
{
|
|
565
761
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
566
|
-
paths:
|
|
567
|
-
{ path: "calculatedDraftOrder.draftOrder.createdDate" },
|
|
568
|
-
{ path: "calculatedDraftOrder.draftOrder.updatedDate" },
|
|
569
|
-
{
|
|
570
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image.urlExpirationDate"
|
|
571
|
-
},
|
|
572
|
-
{
|
|
573
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.digitalFile.expirationDate"
|
|
574
|
-
},
|
|
575
|
-
{
|
|
576
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
|
|
577
|
-
},
|
|
578
|
-
{
|
|
579
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
|
|
580
|
-
},
|
|
581
|
-
{
|
|
582
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.endDate"
|
|
583
|
-
},
|
|
584
|
-
{
|
|
585
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
|
|
586
|
-
},
|
|
587
|
-
{
|
|
588
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.from"
|
|
589
|
-
},
|
|
590
|
-
{
|
|
591
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.to"
|
|
592
|
-
},
|
|
593
|
-
{
|
|
594
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliverByDate"
|
|
595
|
-
},
|
|
596
|
-
{
|
|
597
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
598
|
-
},
|
|
599
|
-
{
|
|
600
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.to"
|
|
601
|
-
},
|
|
602
|
-
{
|
|
603
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
604
|
-
},
|
|
605
|
-
{
|
|
606
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
607
|
-
}
|
|
608
|
-
]
|
|
762
|
+
paths: TRANSFORM_PATHS_2
|
|
609
763
|
},
|
|
610
764
|
{
|
|
611
765
|
transformFn: transformRESTFloatToSDKFloat,
|
|
612
|
-
paths:
|
|
613
|
-
{
|
|
614
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.x"
|
|
615
|
-
},
|
|
616
|
-
{
|
|
617
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.y"
|
|
618
|
-
},
|
|
619
|
-
{
|
|
620
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.physicalProperties.weight"
|
|
621
|
-
},
|
|
622
|
-
{
|
|
623
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.latitude"
|
|
624
|
-
},
|
|
625
|
-
{
|
|
626
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.longitude"
|
|
627
|
-
},
|
|
628
|
-
{
|
|
629
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.latitude"
|
|
630
|
-
},
|
|
631
|
-
{
|
|
632
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.longitude"
|
|
633
|
-
},
|
|
634
|
-
{
|
|
635
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
636
|
-
},
|
|
637
|
-
{
|
|
638
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
639
|
-
},
|
|
640
|
-
{
|
|
641
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
642
|
-
},
|
|
643
|
-
{
|
|
644
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
645
|
-
},
|
|
646
|
-
{
|
|
647
|
-
path: "calculatedDraftOrder.draftOrder.billingInfo.address.geocode.latitude"
|
|
648
|
-
},
|
|
649
|
-
{
|
|
650
|
-
path: "calculatedDraftOrder.draftOrder.billingInfo.address.geocode.longitude"
|
|
651
|
-
},
|
|
652
|
-
{
|
|
653
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.latitude"
|
|
654
|
-
},
|
|
655
|
-
{
|
|
656
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.longitude"
|
|
657
|
-
},
|
|
658
|
-
{
|
|
659
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.latitude"
|
|
660
|
-
},
|
|
661
|
-
{
|
|
662
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.longitude"
|
|
663
|
-
},
|
|
664
|
-
{
|
|
665
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.latitude"
|
|
666
|
-
},
|
|
667
|
-
{
|
|
668
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.longitude"
|
|
669
|
-
},
|
|
670
|
-
{
|
|
671
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.latitude"
|
|
672
|
-
},
|
|
673
|
-
{
|
|
674
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.longitude"
|
|
675
|
-
},
|
|
676
|
-
{
|
|
677
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
678
|
-
},
|
|
679
|
-
{
|
|
680
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
681
|
-
}
|
|
682
|
-
]
|
|
766
|
+
paths: TRANSFORM_PATHS_3
|
|
683
767
|
}
|
|
684
768
|
])
|
|
685
769
|
};
|
|
@@ -706,123 +790,11 @@ function setDeposit(payload) {
|
|
|
706
790
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
707
791
|
{
|
|
708
792
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
709
|
-
paths:
|
|
710
|
-
{ path: "calculatedDraftOrder.draftOrder.createdDate" },
|
|
711
|
-
{ path: "calculatedDraftOrder.draftOrder.updatedDate" },
|
|
712
|
-
{
|
|
713
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image.urlExpirationDate"
|
|
714
|
-
},
|
|
715
|
-
{
|
|
716
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.digitalFile.expirationDate"
|
|
717
|
-
},
|
|
718
|
-
{
|
|
719
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
|
|
720
|
-
},
|
|
721
|
-
{
|
|
722
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
|
|
723
|
-
},
|
|
724
|
-
{
|
|
725
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.endDate"
|
|
726
|
-
},
|
|
727
|
-
{
|
|
728
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
|
|
729
|
-
},
|
|
730
|
-
{
|
|
731
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.from"
|
|
732
|
-
},
|
|
733
|
-
{
|
|
734
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.to"
|
|
735
|
-
},
|
|
736
|
-
{
|
|
737
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliverByDate"
|
|
738
|
-
},
|
|
739
|
-
{
|
|
740
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
741
|
-
},
|
|
742
|
-
{
|
|
743
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.to"
|
|
744
|
-
},
|
|
745
|
-
{
|
|
746
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
747
|
-
},
|
|
748
|
-
{
|
|
749
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
750
|
-
}
|
|
751
|
-
]
|
|
793
|
+
paths: TRANSFORM_PATHS_2
|
|
752
794
|
},
|
|
753
795
|
{
|
|
754
796
|
transformFn: transformRESTFloatToSDKFloat,
|
|
755
|
-
paths:
|
|
756
|
-
{
|
|
757
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.x"
|
|
758
|
-
},
|
|
759
|
-
{
|
|
760
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.y"
|
|
761
|
-
},
|
|
762
|
-
{
|
|
763
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.physicalProperties.weight"
|
|
764
|
-
},
|
|
765
|
-
{
|
|
766
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.latitude"
|
|
767
|
-
},
|
|
768
|
-
{
|
|
769
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.longitude"
|
|
770
|
-
},
|
|
771
|
-
{
|
|
772
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.latitude"
|
|
773
|
-
},
|
|
774
|
-
{
|
|
775
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.longitude"
|
|
776
|
-
},
|
|
777
|
-
{
|
|
778
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
779
|
-
},
|
|
780
|
-
{
|
|
781
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
782
|
-
},
|
|
783
|
-
{
|
|
784
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
785
|
-
},
|
|
786
|
-
{
|
|
787
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
788
|
-
},
|
|
789
|
-
{
|
|
790
|
-
path: "calculatedDraftOrder.draftOrder.billingInfo.address.geocode.latitude"
|
|
791
|
-
},
|
|
792
|
-
{
|
|
793
|
-
path: "calculatedDraftOrder.draftOrder.billingInfo.address.geocode.longitude"
|
|
794
|
-
},
|
|
795
|
-
{
|
|
796
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.latitude"
|
|
797
|
-
},
|
|
798
|
-
{
|
|
799
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.longitude"
|
|
800
|
-
},
|
|
801
|
-
{
|
|
802
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.latitude"
|
|
803
|
-
},
|
|
804
|
-
{
|
|
805
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.longitude"
|
|
806
|
-
},
|
|
807
|
-
{
|
|
808
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.latitude"
|
|
809
|
-
},
|
|
810
|
-
{
|
|
811
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.longitude"
|
|
812
|
-
},
|
|
813
|
-
{
|
|
814
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.latitude"
|
|
815
|
-
},
|
|
816
|
-
{
|
|
817
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.longitude"
|
|
818
|
-
},
|
|
819
|
-
{
|
|
820
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
821
|
-
},
|
|
822
|
-
{
|
|
823
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
824
|
-
}
|
|
825
|
-
]
|
|
797
|
+
paths: TRANSFORM_PATHS_3
|
|
826
798
|
}
|
|
827
799
|
])
|
|
828
800
|
};
|
|
@@ -849,123 +821,11 @@ function setDiscounts(payload) {
|
|
|
849
821
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
850
822
|
{
|
|
851
823
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
852
|
-
paths:
|
|
853
|
-
{ path: "calculatedDraftOrder.draftOrder.createdDate" },
|
|
854
|
-
{ path: "calculatedDraftOrder.draftOrder.updatedDate" },
|
|
855
|
-
{
|
|
856
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image.urlExpirationDate"
|
|
857
|
-
},
|
|
858
|
-
{
|
|
859
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.digitalFile.expirationDate"
|
|
860
|
-
},
|
|
861
|
-
{
|
|
862
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
|
|
863
|
-
},
|
|
864
|
-
{
|
|
865
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
|
|
866
|
-
},
|
|
867
|
-
{
|
|
868
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.endDate"
|
|
869
|
-
},
|
|
870
|
-
{
|
|
871
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
|
|
872
|
-
},
|
|
873
|
-
{
|
|
874
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.from"
|
|
875
|
-
},
|
|
876
|
-
{
|
|
877
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.to"
|
|
878
|
-
},
|
|
879
|
-
{
|
|
880
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliverByDate"
|
|
881
|
-
},
|
|
882
|
-
{
|
|
883
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
884
|
-
},
|
|
885
|
-
{
|
|
886
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.to"
|
|
887
|
-
},
|
|
888
|
-
{
|
|
889
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
890
|
-
},
|
|
891
|
-
{
|
|
892
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
893
|
-
}
|
|
894
|
-
]
|
|
824
|
+
paths: TRANSFORM_PATHS_2
|
|
895
825
|
},
|
|
896
826
|
{
|
|
897
827
|
transformFn: transformRESTFloatToSDKFloat,
|
|
898
|
-
paths:
|
|
899
|
-
{
|
|
900
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.x"
|
|
901
|
-
},
|
|
902
|
-
{
|
|
903
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.y"
|
|
904
|
-
},
|
|
905
|
-
{
|
|
906
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.physicalProperties.weight"
|
|
907
|
-
},
|
|
908
|
-
{
|
|
909
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.latitude"
|
|
910
|
-
},
|
|
911
|
-
{
|
|
912
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.longitude"
|
|
913
|
-
},
|
|
914
|
-
{
|
|
915
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.latitude"
|
|
916
|
-
},
|
|
917
|
-
{
|
|
918
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.longitude"
|
|
919
|
-
},
|
|
920
|
-
{
|
|
921
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
922
|
-
},
|
|
923
|
-
{
|
|
924
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
925
|
-
},
|
|
926
|
-
{
|
|
927
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
928
|
-
},
|
|
929
|
-
{
|
|
930
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
931
|
-
},
|
|
932
|
-
{
|
|
933
|
-
path: "calculatedDraftOrder.draftOrder.billingInfo.address.geocode.latitude"
|
|
934
|
-
},
|
|
935
|
-
{
|
|
936
|
-
path: "calculatedDraftOrder.draftOrder.billingInfo.address.geocode.longitude"
|
|
937
|
-
},
|
|
938
|
-
{
|
|
939
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.latitude"
|
|
940
|
-
},
|
|
941
|
-
{
|
|
942
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.longitude"
|
|
943
|
-
},
|
|
944
|
-
{
|
|
945
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.latitude"
|
|
946
|
-
},
|
|
947
|
-
{
|
|
948
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.longitude"
|
|
949
|
-
},
|
|
950
|
-
{
|
|
951
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.latitude"
|
|
952
|
-
},
|
|
953
|
-
{
|
|
954
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.longitude"
|
|
955
|
-
},
|
|
956
|
-
{
|
|
957
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.latitude"
|
|
958
|
-
},
|
|
959
|
-
{
|
|
960
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.longitude"
|
|
961
|
-
},
|
|
962
|
-
{
|
|
963
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
964
|
-
},
|
|
965
|
-
{
|
|
966
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
967
|
-
}
|
|
968
|
-
]
|
|
828
|
+
paths: TRANSFORM_PATHS_3
|
|
969
829
|
}
|
|
970
830
|
])
|
|
971
831
|
};
|
|
@@ -992,123 +852,11 @@ function createCustomDiscounts(payload) {
|
|
|
992
852
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
993
853
|
{
|
|
994
854
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
995
|
-
paths:
|
|
996
|
-
{ path: "calculatedDraftOrder.draftOrder.createdDate" },
|
|
997
|
-
{ path: "calculatedDraftOrder.draftOrder.updatedDate" },
|
|
998
|
-
{
|
|
999
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image.urlExpirationDate"
|
|
1000
|
-
},
|
|
1001
|
-
{
|
|
1002
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.digitalFile.expirationDate"
|
|
1003
|
-
},
|
|
1004
|
-
{
|
|
1005
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
|
|
1006
|
-
},
|
|
1007
|
-
{
|
|
1008
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
|
|
1009
|
-
},
|
|
1010
|
-
{
|
|
1011
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.endDate"
|
|
1012
|
-
},
|
|
1013
|
-
{
|
|
1014
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
|
|
1015
|
-
},
|
|
1016
|
-
{
|
|
1017
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.from"
|
|
1018
|
-
},
|
|
1019
|
-
{
|
|
1020
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.to"
|
|
1021
|
-
},
|
|
1022
|
-
{
|
|
1023
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliverByDate"
|
|
1024
|
-
},
|
|
1025
|
-
{
|
|
1026
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
1027
|
-
},
|
|
1028
|
-
{
|
|
1029
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.to"
|
|
1030
|
-
},
|
|
1031
|
-
{
|
|
1032
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
1033
|
-
},
|
|
1034
|
-
{
|
|
1035
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
1036
|
-
}
|
|
1037
|
-
]
|
|
855
|
+
paths: TRANSFORM_PATHS_2
|
|
1038
856
|
},
|
|
1039
857
|
{
|
|
1040
858
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1041
|
-
paths:
|
|
1042
|
-
{
|
|
1043
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.x"
|
|
1044
|
-
},
|
|
1045
|
-
{
|
|
1046
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.y"
|
|
1047
|
-
},
|
|
1048
|
-
{
|
|
1049
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.physicalProperties.weight"
|
|
1050
|
-
},
|
|
1051
|
-
{
|
|
1052
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.latitude"
|
|
1053
|
-
},
|
|
1054
|
-
{
|
|
1055
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.longitude"
|
|
1056
|
-
},
|
|
1057
|
-
{
|
|
1058
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.latitude"
|
|
1059
|
-
},
|
|
1060
|
-
{
|
|
1061
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.longitude"
|
|
1062
|
-
},
|
|
1063
|
-
{
|
|
1064
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
1065
|
-
},
|
|
1066
|
-
{
|
|
1067
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
1068
|
-
},
|
|
1069
|
-
{
|
|
1070
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
1071
|
-
},
|
|
1072
|
-
{
|
|
1073
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
1074
|
-
},
|
|
1075
|
-
{
|
|
1076
|
-
path: "calculatedDraftOrder.draftOrder.billingInfo.address.geocode.latitude"
|
|
1077
|
-
},
|
|
1078
|
-
{
|
|
1079
|
-
path: "calculatedDraftOrder.draftOrder.billingInfo.address.geocode.longitude"
|
|
1080
|
-
},
|
|
1081
|
-
{
|
|
1082
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.latitude"
|
|
1083
|
-
},
|
|
1084
|
-
{
|
|
1085
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.longitude"
|
|
1086
|
-
},
|
|
1087
|
-
{
|
|
1088
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.latitude"
|
|
1089
|
-
},
|
|
1090
|
-
{
|
|
1091
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.longitude"
|
|
1092
|
-
},
|
|
1093
|
-
{
|
|
1094
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.latitude"
|
|
1095
|
-
},
|
|
1096
|
-
{
|
|
1097
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.longitude"
|
|
1098
|
-
},
|
|
1099
|
-
{
|
|
1100
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.latitude"
|
|
1101
|
-
},
|
|
1102
|
-
{
|
|
1103
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.longitude"
|
|
1104
|
-
},
|
|
1105
|
-
{
|
|
1106
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
1107
|
-
},
|
|
1108
|
-
{
|
|
1109
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
1110
|
-
}
|
|
1111
|
-
]
|
|
859
|
+
paths: TRANSFORM_PATHS_3
|
|
1112
860
|
}
|
|
1113
861
|
])
|
|
1114
862
|
};
|
|
@@ -1135,123 +883,11 @@ function deleteCustomDiscounts(payload) {
|
|
|
1135
883
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1136
884
|
{
|
|
1137
885
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1138
|
-
paths:
|
|
1139
|
-
{ path: "calculatedDraftOrder.draftOrder.createdDate" },
|
|
1140
|
-
{ path: "calculatedDraftOrder.draftOrder.updatedDate" },
|
|
1141
|
-
{
|
|
1142
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image.urlExpirationDate"
|
|
1143
|
-
},
|
|
1144
|
-
{
|
|
1145
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.digitalFile.expirationDate"
|
|
1146
|
-
},
|
|
1147
|
-
{
|
|
1148
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
|
|
1149
|
-
},
|
|
1150
|
-
{
|
|
1151
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
|
|
1152
|
-
},
|
|
1153
|
-
{
|
|
1154
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.endDate"
|
|
1155
|
-
},
|
|
1156
|
-
{
|
|
1157
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
|
|
1158
|
-
},
|
|
1159
|
-
{
|
|
1160
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.from"
|
|
1161
|
-
},
|
|
1162
|
-
{
|
|
1163
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.to"
|
|
1164
|
-
},
|
|
1165
|
-
{
|
|
1166
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliverByDate"
|
|
1167
|
-
},
|
|
1168
|
-
{
|
|
1169
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
1170
|
-
},
|
|
1171
|
-
{
|
|
1172
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.to"
|
|
1173
|
-
},
|
|
1174
|
-
{
|
|
1175
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
1176
|
-
},
|
|
1177
|
-
{
|
|
1178
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
1179
|
-
}
|
|
1180
|
-
]
|
|
886
|
+
paths: TRANSFORM_PATHS_2
|
|
1181
887
|
},
|
|
1182
888
|
{
|
|
1183
889
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1184
|
-
paths:
|
|
1185
|
-
{
|
|
1186
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.x"
|
|
1187
|
-
},
|
|
1188
|
-
{
|
|
1189
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.y"
|
|
1190
|
-
},
|
|
1191
|
-
{
|
|
1192
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.physicalProperties.weight"
|
|
1193
|
-
},
|
|
1194
|
-
{
|
|
1195
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.latitude"
|
|
1196
|
-
},
|
|
1197
|
-
{
|
|
1198
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.longitude"
|
|
1199
|
-
},
|
|
1200
|
-
{
|
|
1201
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.latitude"
|
|
1202
|
-
},
|
|
1203
|
-
{
|
|
1204
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.longitude"
|
|
1205
|
-
},
|
|
1206
|
-
{
|
|
1207
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
1208
|
-
},
|
|
1209
|
-
{
|
|
1210
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
1211
|
-
},
|
|
1212
|
-
{
|
|
1213
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
1214
|
-
},
|
|
1215
|
-
{
|
|
1216
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
1217
|
-
},
|
|
1218
|
-
{
|
|
1219
|
-
path: "calculatedDraftOrder.draftOrder.billingInfo.address.geocode.latitude"
|
|
1220
|
-
},
|
|
1221
|
-
{
|
|
1222
|
-
path: "calculatedDraftOrder.draftOrder.billingInfo.address.geocode.longitude"
|
|
1223
|
-
},
|
|
1224
|
-
{
|
|
1225
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.latitude"
|
|
1226
|
-
},
|
|
1227
|
-
{
|
|
1228
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.longitude"
|
|
1229
|
-
},
|
|
1230
|
-
{
|
|
1231
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.latitude"
|
|
1232
|
-
},
|
|
1233
|
-
{
|
|
1234
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.longitude"
|
|
1235
|
-
},
|
|
1236
|
-
{
|
|
1237
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.latitude"
|
|
1238
|
-
},
|
|
1239
|
-
{
|
|
1240
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.longitude"
|
|
1241
|
-
},
|
|
1242
|
-
{
|
|
1243
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.latitude"
|
|
1244
|
-
},
|
|
1245
|
-
{
|
|
1246
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.longitude"
|
|
1247
|
-
},
|
|
1248
|
-
{
|
|
1249
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
1250
|
-
},
|
|
1251
|
-
{
|
|
1252
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
1253
|
-
}
|
|
1254
|
-
]
|
|
890
|
+
paths: TRANSFORM_PATHS_3
|
|
1255
891
|
}
|
|
1256
892
|
])
|
|
1257
893
|
};
|
|
@@ -1278,123 +914,11 @@ function setAdditionalFees(payload) {
|
|
|
1278
914
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1279
915
|
{
|
|
1280
916
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1281
|
-
paths:
|
|
1282
|
-
{ path: "calculatedDraftOrder.draftOrder.createdDate" },
|
|
1283
|
-
{ path: "calculatedDraftOrder.draftOrder.updatedDate" },
|
|
1284
|
-
{
|
|
1285
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image.urlExpirationDate"
|
|
1286
|
-
},
|
|
1287
|
-
{
|
|
1288
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.digitalFile.expirationDate"
|
|
1289
|
-
},
|
|
1290
|
-
{
|
|
1291
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
|
|
1292
|
-
},
|
|
1293
|
-
{
|
|
1294
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
|
|
1295
|
-
},
|
|
1296
|
-
{
|
|
1297
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.endDate"
|
|
1298
|
-
},
|
|
1299
|
-
{
|
|
1300
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
|
|
1301
|
-
},
|
|
1302
|
-
{
|
|
1303
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.from"
|
|
1304
|
-
},
|
|
1305
|
-
{
|
|
1306
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.to"
|
|
1307
|
-
},
|
|
1308
|
-
{
|
|
1309
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliverByDate"
|
|
1310
|
-
},
|
|
1311
|
-
{
|
|
1312
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
1313
|
-
},
|
|
1314
|
-
{
|
|
1315
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.to"
|
|
1316
|
-
},
|
|
1317
|
-
{
|
|
1318
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
1319
|
-
},
|
|
1320
|
-
{
|
|
1321
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
1322
|
-
}
|
|
1323
|
-
]
|
|
917
|
+
paths: TRANSFORM_PATHS_2
|
|
1324
918
|
},
|
|
1325
919
|
{
|
|
1326
920
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1327
|
-
paths:
|
|
1328
|
-
{
|
|
1329
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.x"
|
|
1330
|
-
},
|
|
1331
|
-
{
|
|
1332
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.y"
|
|
1333
|
-
},
|
|
1334
|
-
{
|
|
1335
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.physicalProperties.weight"
|
|
1336
|
-
},
|
|
1337
|
-
{
|
|
1338
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.latitude"
|
|
1339
|
-
},
|
|
1340
|
-
{
|
|
1341
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.longitude"
|
|
1342
|
-
},
|
|
1343
|
-
{
|
|
1344
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.latitude"
|
|
1345
|
-
},
|
|
1346
|
-
{
|
|
1347
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.longitude"
|
|
1348
|
-
},
|
|
1349
|
-
{
|
|
1350
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
1351
|
-
},
|
|
1352
|
-
{
|
|
1353
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
1354
|
-
},
|
|
1355
|
-
{
|
|
1356
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
1357
|
-
},
|
|
1358
|
-
{
|
|
1359
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
1360
|
-
},
|
|
1361
|
-
{
|
|
1362
|
-
path: "calculatedDraftOrder.draftOrder.billingInfo.address.geocode.latitude"
|
|
1363
|
-
},
|
|
1364
|
-
{
|
|
1365
|
-
path: "calculatedDraftOrder.draftOrder.billingInfo.address.geocode.longitude"
|
|
1366
|
-
},
|
|
1367
|
-
{
|
|
1368
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.latitude"
|
|
1369
|
-
},
|
|
1370
|
-
{
|
|
1371
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.longitude"
|
|
1372
|
-
},
|
|
1373
|
-
{
|
|
1374
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.latitude"
|
|
1375
|
-
},
|
|
1376
|
-
{
|
|
1377
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.longitude"
|
|
1378
|
-
},
|
|
1379
|
-
{
|
|
1380
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.latitude"
|
|
1381
|
-
},
|
|
1382
|
-
{
|
|
1383
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.longitude"
|
|
1384
|
-
},
|
|
1385
|
-
{
|
|
1386
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.latitude"
|
|
1387
|
-
},
|
|
1388
|
-
{
|
|
1389
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.longitude"
|
|
1390
|
-
},
|
|
1391
|
-
{
|
|
1392
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
1393
|
-
},
|
|
1394
|
-
{
|
|
1395
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
1396
|
-
}
|
|
1397
|
-
]
|
|
921
|
+
paths: TRANSFORM_PATHS_3
|
|
1398
922
|
}
|
|
1399
923
|
])
|
|
1400
924
|
};
|
|
@@ -1421,123 +945,11 @@ function createCustomAdditionalFees(payload) {
|
|
|
1421
945
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1422
946
|
{
|
|
1423
947
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1424
|
-
paths:
|
|
1425
|
-
{ path: "calculatedDraftOrder.draftOrder.createdDate" },
|
|
1426
|
-
{ path: "calculatedDraftOrder.draftOrder.updatedDate" },
|
|
1427
|
-
{
|
|
1428
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image.urlExpirationDate"
|
|
1429
|
-
},
|
|
1430
|
-
{
|
|
1431
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.digitalFile.expirationDate"
|
|
1432
|
-
},
|
|
1433
|
-
{
|
|
1434
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
|
|
1435
|
-
},
|
|
1436
|
-
{
|
|
1437
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
|
|
1438
|
-
},
|
|
1439
|
-
{
|
|
1440
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.endDate"
|
|
1441
|
-
},
|
|
1442
|
-
{
|
|
1443
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
|
|
1444
|
-
},
|
|
1445
|
-
{
|
|
1446
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.from"
|
|
1447
|
-
},
|
|
1448
|
-
{
|
|
1449
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.to"
|
|
1450
|
-
},
|
|
1451
|
-
{
|
|
1452
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliverByDate"
|
|
1453
|
-
},
|
|
1454
|
-
{
|
|
1455
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
1456
|
-
},
|
|
1457
|
-
{
|
|
1458
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.to"
|
|
1459
|
-
},
|
|
1460
|
-
{
|
|
1461
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
1462
|
-
},
|
|
1463
|
-
{
|
|
1464
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
1465
|
-
}
|
|
1466
|
-
]
|
|
948
|
+
paths: TRANSFORM_PATHS_2
|
|
1467
949
|
},
|
|
1468
950
|
{
|
|
1469
951
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1470
|
-
paths:
|
|
1471
|
-
{
|
|
1472
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.x"
|
|
1473
|
-
},
|
|
1474
|
-
{
|
|
1475
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.y"
|
|
1476
|
-
},
|
|
1477
|
-
{
|
|
1478
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.physicalProperties.weight"
|
|
1479
|
-
},
|
|
1480
|
-
{
|
|
1481
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.latitude"
|
|
1482
|
-
},
|
|
1483
|
-
{
|
|
1484
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.longitude"
|
|
1485
|
-
},
|
|
1486
|
-
{
|
|
1487
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.latitude"
|
|
1488
|
-
},
|
|
1489
|
-
{
|
|
1490
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.longitude"
|
|
1491
|
-
},
|
|
1492
|
-
{
|
|
1493
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
1494
|
-
},
|
|
1495
|
-
{
|
|
1496
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
1497
|
-
},
|
|
1498
|
-
{
|
|
1499
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
1500
|
-
},
|
|
1501
|
-
{
|
|
1502
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
1503
|
-
},
|
|
1504
|
-
{
|
|
1505
|
-
path: "calculatedDraftOrder.draftOrder.billingInfo.address.geocode.latitude"
|
|
1506
|
-
},
|
|
1507
|
-
{
|
|
1508
|
-
path: "calculatedDraftOrder.draftOrder.billingInfo.address.geocode.longitude"
|
|
1509
|
-
},
|
|
1510
|
-
{
|
|
1511
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.latitude"
|
|
1512
|
-
},
|
|
1513
|
-
{
|
|
1514
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.longitude"
|
|
1515
|
-
},
|
|
1516
|
-
{
|
|
1517
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.latitude"
|
|
1518
|
-
},
|
|
1519
|
-
{
|
|
1520
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.longitude"
|
|
1521
|
-
},
|
|
1522
|
-
{
|
|
1523
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.latitude"
|
|
1524
|
-
},
|
|
1525
|
-
{
|
|
1526
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.longitude"
|
|
1527
|
-
},
|
|
1528
|
-
{
|
|
1529
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.latitude"
|
|
1530
|
-
},
|
|
1531
|
-
{
|
|
1532
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.longitude"
|
|
1533
|
-
},
|
|
1534
|
-
{
|
|
1535
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
1536
|
-
},
|
|
1537
|
-
{
|
|
1538
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
1539
|
-
}
|
|
1540
|
-
]
|
|
952
|
+
paths: TRANSFORM_PATHS_3
|
|
1541
953
|
}
|
|
1542
954
|
])
|
|
1543
955
|
};
|
|
@@ -1564,123 +976,11 @@ function deleteCustomAdditionalFees(payload) {
|
|
|
1564
976
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1565
977
|
{
|
|
1566
978
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1567
|
-
paths:
|
|
1568
|
-
{ path: "calculatedDraftOrder.draftOrder.createdDate" },
|
|
1569
|
-
{ path: "calculatedDraftOrder.draftOrder.updatedDate" },
|
|
1570
|
-
{
|
|
1571
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image.urlExpirationDate"
|
|
1572
|
-
},
|
|
1573
|
-
{
|
|
1574
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.digitalFile.expirationDate"
|
|
1575
|
-
},
|
|
1576
|
-
{
|
|
1577
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
|
|
1578
|
-
},
|
|
1579
|
-
{
|
|
1580
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
|
|
1581
|
-
},
|
|
1582
|
-
{
|
|
1583
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.endDate"
|
|
1584
|
-
},
|
|
1585
|
-
{
|
|
1586
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
|
|
1587
|
-
},
|
|
1588
|
-
{
|
|
1589
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.from"
|
|
1590
|
-
},
|
|
1591
|
-
{
|
|
1592
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.to"
|
|
1593
|
-
},
|
|
1594
|
-
{
|
|
1595
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliverByDate"
|
|
1596
|
-
},
|
|
1597
|
-
{
|
|
1598
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
1599
|
-
},
|
|
1600
|
-
{
|
|
1601
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.to"
|
|
1602
|
-
},
|
|
1603
|
-
{
|
|
1604
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
1605
|
-
},
|
|
1606
|
-
{
|
|
1607
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
1608
|
-
}
|
|
1609
|
-
]
|
|
979
|
+
paths: TRANSFORM_PATHS_2
|
|
1610
980
|
},
|
|
1611
981
|
{
|
|
1612
982
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1613
|
-
paths:
|
|
1614
|
-
{
|
|
1615
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.x"
|
|
1616
|
-
},
|
|
1617
|
-
{
|
|
1618
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.y"
|
|
1619
|
-
},
|
|
1620
|
-
{
|
|
1621
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.physicalProperties.weight"
|
|
1622
|
-
},
|
|
1623
|
-
{
|
|
1624
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.latitude"
|
|
1625
|
-
},
|
|
1626
|
-
{
|
|
1627
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.longitude"
|
|
1628
|
-
},
|
|
1629
|
-
{
|
|
1630
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.latitude"
|
|
1631
|
-
},
|
|
1632
|
-
{
|
|
1633
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.longitude"
|
|
1634
|
-
},
|
|
1635
|
-
{
|
|
1636
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
1637
|
-
},
|
|
1638
|
-
{
|
|
1639
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
1640
|
-
},
|
|
1641
|
-
{
|
|
1642
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
1643
|
-
},
|
|
1644
|
-
{
|
|
1645
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
1646
|
-
},
|
|
1647
|
-
{
|
|
1648
|
-
path: "calculatedDraftOrder.draftOrder.billingInfo.address.geocode.latitude"
|
|
1649
|
-
},
|
|
1650
|
-
{
|
|
1651
|
-
path: "calculatedDraftOrder.draftOrder.billingInfo.address.geocode.longitude"
|
|
1652
|
-
},
|
|
1653
|
-
{
|
|
1654
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.latitude"
|
|
1655
|
-
},
|
|
1656
|
-
{
|
|
1657
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.longitude"
|
|
1658
|
-
},
|
|
1659
|
-
{
|
|
1660
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.latitude"
|
|
1661
|
-
},
|
|
1662
|
-
{
|
|
1663
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.longitude"
|
|
1664
|
-
},
|
|
1665
|
-
{
|
|
1666
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.latitude"
|
|
1667
|
-
},
|
|
1668
|
-
{
|
|
1669
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.longitude"
|
|
1670
|
-
},
|
|
1671
|
-
{
|
|
1672
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.latitude"
|
|
1673
|
-
},
|
|
1674
|
-
{
|
|
1675
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.longitude"
|
|
1676
|
-
},
|
|
1677
|
-
{
|
|
1678
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
1679
|
-
},
|
|
1680
|
-
{
|
|
1681
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
1682
|
-
}
|
|
1683
|
-
]
|
|
983
|
+
paths: TRANSFORM_PATHS_3
|
|
1684
984
|
}
|
|
1685
985
|
])
|
|
1686
986
|
};
|
|
@@ -1693,28 +993,11 @@ function setShippingInfo(payload) {
|
|
|
1693
993
|
const serializedData = transformPaths(payload, [
|
|
1694
994
|
{
|
|
1695
995
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
1696
|
-
paths:
|
|
1697
|
-
{ path: "shippingInfo.logistics.deliverByDate" },
|
|
1698
|
-
{ path: "shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
1699
|
-
{ path: "shippingInfo.logistics.deliveryTimeSlot.to" }
|
|
1700
|
-
]
|
|
996
|
+
paths: TRANSFORM_PATHS_7
|
|
1701
997
|
},
|
|
1702
998
|
{
|
|
1703
999
|
transformFn: transformSDKFloatToRESTFloat,
|
|
1704
|
-
paths:
|
|
1705
|
-
{
|
|
1706
|
-
path: "shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
1707
|
-
},
|
|
1708
|
-
{
|
|
1709
|
-
path: "shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
1710
|
-
},
|
|
1711
|
-
{
|
|
1712
|
-
path: "shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
1713
|
-
},
|
|
1714
|
-
{
|
|
1715
|
-
path: "shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
1716
|
-
}
|
|
1717
|
-
]
|
|
1000
|
+
paths: TRANSFORM_PATHS_8
|
|
1718
1001
|
}
|
|
1719
1002
|
]);
|
|
1720
1003
|
const metadata = {
|
|
@@ -1734,123 +1017,11 @@ function setShippingInfo(payload) {
|
|
|
1734
1017
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1735
1018
|
{
|
|
1736
1019
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1737
|
-
paths:
|
|
1738
|
-
{ path: "calculatedDraftOrder.draftOrder.createdDate" },
|
|
1739
|
-
{ path: "calculatedDraftOrder.draftOrder.updatedDate" },
|
|
1740
|
-
{
|
|
1741
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image.urlExpirationDate"
|
|
1742
|
-
},
|
|
1743
|
-
{
|
|
1744
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.digitalFile.expirationDate"
|
|
1745
|
-
},
|
|
1746
|
-
{
|
|
1747
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
|
|
1748
|
-
},
|
|
1749
|
-
{
|
|
1750
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
|
|
1751
|
-
},
|
|
1752
|
-
{
|
|
1753
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.endDate"
|
|
1754
|
-
},
|
|
1755
|
-
{
|
|
1756
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
|
|
1757
|
-
},
|
|
1758
|
-
{
|
|
1759
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.from"
|
|
1760
|
-
},
|
|
1761
|
-
{
|
|
1762
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.to"
|
|
1763
|
-
},
|
|
1764
|
-
{
|
|
1765
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliverByDate"
|
|
1766
|
-
},
|
|
1767
|
-
{
|
|
1768
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
1769
|
-
},
|
|
1770
|
-
{
|
|
1771
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.to"
|
|
1772
|
-
},
|
|
1773
|
-
{
|
|
1774
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
1775
|
-
},
|
|
1776
|
-
{
|
|
1777
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
1778
|
-
}
|
|
1779
|
-
]
|
|
1020
|
+
paths: TRANSFORM_PATHS_2
|
|
1780
1021
|
},
|
|
1781
1022
|
{
|
|
1782
1023
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1783
|
-
paths:
|
|
1784
|
-
{
|
|
1785
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.x"
|
|
1786
|
-
},
|
|
1787
|
-
{
|
|
1788
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.y"
|
|
1789
|
-
},
|
|
1790
|
-
{
|
|
1791
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.physicalProperties.weight"
|
|
1792
|
-
},
|
|
1793
|
-
{
|
|
1794
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.latitude"
|
|
1795
|
-
},
|
|
1796
|
-
{
|
|
1797
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.longitude"
|
|
1798
|
-
},
|
|
1799
|
-
{
|
|
1800
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.latitude"
|
|
1801
|
-
},
|
|
1802
|
-
{
|
|
1803
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.longitude"
|
|
1804
|
-
},
|
|
1805
|
-
{
|
|
1806
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
1807
|
-
},
|
|
1808
|
-
{
|
|
1809
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
1810
|
-
},
|
|
1811
|
-
{
|
|
1812
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
1813
|
-
},
|
|
1814
|
-
{
|
|
1815
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
1816
|
-
},
|
|
1817
|
-
{
|
|
1818
|
-
path: "calculatedDraftOrder.draftOrder.billingInfo.address.geocode.latitude"
|
|
1819
|
-
},
|
|
1820
|
-
{
|
|
1821
|
-
path: "calculatedDraftOrder.draftOrder.billingInfo.address.geocode.longitude"
|
|
1822
|
-
},
|
|
1823
|
-
{
|
|
1824
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.latitude"
|
|
1825
|
-
},
|
|
1826
|
-
{
|
|
1827
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.longitude"
|
|
1828
|
-
},
|
|
1829
|
-
{
|
|
1830
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.latitude"
|
|
1831
|
-
},
|
|
1832
|
-
{
|
|
1833
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.longitude"
|
|
1834
|
-
},
|
|
1835
|
-
{
|
|
1836
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.latitude"
|
|
1837
|
-
},
|
|
1838
|
-
{
|
|
1839
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.longitude"
|
|
1840
|
-
},
|
|
1841
|
-
{
|
|
1842
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.latitude"
|
|
1843
|
-
},
|
|
1844
|
-
{
|
|
1845
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.longitude"
|
|
1846
|
-
},
|
|
1847
|
-
{
|
|
1848
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
1849
|
-
},
|
|
1850
|
-
{
|
|
1851
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
1852
|
-
}
|
|
1853
|
-
]
|
|
1024
|
+
paths: TRANSFORM_PATHS_3
|
|
1854
1025
|
}
|
|
1855
1026
|
])
|
|
1856
1027
|
};
|
|
@@ -1877,123 +1048,11 @@ function setBuyerInfo(payload) {
|
|
|
1877
1048
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1878
1049
|
{
|
|
1879
1050
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1880
|
-
paths:
|
|
1881
|
-
{ path: "calculatedDraftOrder.draftOrder.createdDate" },
|
|
1882
|
-
{ path: "calculatedDraftOrder.draftOrder.updatedDate" },
|
|
1883
|
-
{
|
|
1884
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image.urlExpirationDate"
|
|
1885
|
-
},
|
|
1886
|
-
{
|
|
1887
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.digitalFile.expirationDate"
|
|
1888
|
-
},
|
|
1889
|
-
{
|
|
1890
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
|
|
1891
|
-
},
|
|
1892
|
-
{
|
|
1893
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
|
|
1894
|
-
},
|
|
1895
|
-
{
|
|
1896
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.endDate"
|
|
1897
|
-
},
|
|
1898
|
-
{
|
|
1899
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
|
|
1900
|
-
},
|
|
1901
|
-
{
|
|
1902
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.from"
|
|
1903
|
-
},
|
|
1904
|
-
{
|
|
1905
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.to"
|
|
1906
|
-
},
|
|
1907
|
-
{
|
|
1908
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliverByDate"
|
|
1909
|
-
},
|
|
1910
|
-
{
|
|
1911
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
1912
|
-
},
|
|
1913
|
-
{
|
|
1914
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.to"
|
|
1915
|
-
},
|
|
1916
|
-
{
|
|
1917
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
1918
|
-
},
|
|
1919
|
-
{
|
|
1920
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
1921
|
-
}
|
|
1922
|
-
]
|
|
1051
|
+
paths: TRANSFORM_PATHS_2
|
|
1923
1052
|
},
|
|
1924
1053
|
{
|
|
1925
1054
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1926
|
-
paths:
|
|
1927
|
-
{
|
|
1928
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.x"
|
|
1929
|
-
},
|
|
1930
|
-
{
|
|
1931
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.y"
|
|
1932
|
-
},
|
|
1933
|
-
{
|
|
1934
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.physicalProperties.weight"
|
|
1935
|
-
},
|
|
1936
|
-
{
|
|
1937
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.latitude"
|
|
1938
|
-
},
|
|
1939
|
-
{
|
|
1940
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.longitude"
|
|
1941
|
-
},
|
|
1942
|
-
{
|
|
1943
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.latitude"
|
|
1944
|
-
},
|
|
1945
|
-
{
|
|
1946
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.longitude"
|
|
1947
|
-
},
|
|
1948
|
-
{
|
|
1949
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
1950
|
-
},
|
|
1951
|
-
{
|
|
1952
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
1953
|
-
},
|
|
1954
|
-
{
|
|
1955
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
1956
|
-
},
|
|
1957
|
-
{
|
|
1958
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
1959
|
-
},
|
|
1960
|
-
{
|
|
1961
|
-
path: "calculatedDraftOrder.draftOrder.billingInfo.address.geocode.latitude"
|
|
1962
|
-
},
|
|
1963
|
-
{
|
|
1964
|
-
path: "calculatedDraftOrder.draftOrder.billingInfo.address.geocode.longitude"
|
|
1965
|
-
},
|
|
1966
|
-
{
|
|
1967
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.latitude"
|
|
1968
|
-
},
|
|
1969
|
-
{
|
|
1970
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.longitude"
|
|
1971
|
-
},
|
|
1972
|
-
{
|
|
1973
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.latitude"
|
|
1974
|
-
},
|
|
1975
|
-
{
|
|
1976
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.longitude"
|
|
1977
|
-
},
|
|
1978
|
-
{
|
|
1979
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.latitude"
|
|
1980
|
-
},
|
|
1981
|
-
{
|
|
1982
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.longitude"
|
|
1983
|
-
},
|
|
1984
|
-
{
|
|
1985
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.latitude"
|
|
1986
|
-
},
|
|
1987
|
-
{
|
|
1988
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.longitude"
|
|
1989
|
-
},
|
|
1990
|
-
{
|
|
1991
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
1992
|
-
},
|
|
1993
|
-
{
|
|
1994
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
1995
|
-
}
|
|
1996
|
-
]
|
|
1055
|
+
paths: TRANSFORM_PATHS_3
|
|
1997
1056
|
}
|
|
1998
1057
|
])
|
|
1999
1058
|
};
|
|
@@ -2006,10 +1065,7 @@ function setRecipientInfo(payload) {
|
|
|
2006
1065
|
const serializedData = transformPaths(payload, [
|
|
2007
1066
|
{
|
|
2008
1067
|
transformFn: transformSDKFloatToRESTFloat,
|
|
2009
|
-
paths:
|
|
2010
|
-
{ path: "recipientInfo.address.geocode.latitude" },
|
|
2011
|
-
{ path: "recipientInfo.address.geocode.longitude" }
|
|
2012
|
-
]
|
|
1068
|
+
paths: TRANSFORM_PATHS_9
|
|
2013
1069
|
}
|
|
2014
1070
|
]);
|
|
2015
1071
|
const metadata = {
|
|
@@ -2029,123 +1085,11 @@ function setRecipientInfo(payload) {
|
|
|
2029
1085
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
2030
1086
|
{
|
|
2031
1087
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
2032
|
-
paths:
|
|
2033
|
-
{ path: "calculatedDraftOrder.draftOrder.createdDate" },
|
|
2034
|
-
{ path: "calculatedDraftOrder.draftOrder.updatedDate" },
|
|
2035
|
-
{
|
|
2036
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image.urlExpirationDate"
|
|
2037
|
-
},
|
|
2038
|
-
{
|
|
2039
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.digitalFile.expirationDate"
|
|
2040
|
-
},
|
|
2041
|
-
{
|
|
2042
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
|
|
2043
|
-
},
|
|
2044
|
-
{
|
|
2045
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
|
|
2046
|
-
},
|
|
2047
|
-
{
|
|
2048
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.endDate"
|
|
2049
|
-
},
|
|
2050
|
-
{
|
|
2051
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
|
|
2052
|
-
},
|
|
2053
|
-
{
|
|
2054
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.from"
|
|
2055
|
-
},
|
|
2056
|
-
{
|
|
2057
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.to"
|
|
2058
|
-
},
|
|
2059
|
-
{
|
|
2060
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliverByDate"
|
|
2061
|
-
},
|
|
2062
|
-
{
|
|
2063
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
2064
|
-
},
|
|
2065
|
-
{
|
|
2066
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.to"
|
|
2067
|
-
},
|
|
2068
|
-
{
|
|
2069
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
2070
|
-
},
|
|
2071
|
-
{
|
|
2072
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
2073
|
-
}
|
|
2074
|
-
]
|
|
1088
|
+
paths: TRANSFORM_PATHS_2
|
|
2075
1089
|
},
|
|
2076
1090
|
{
|
|
2077
1091
|
transformFn: transformRESTFloatToSDKFloat,
|
|
2078
|
-
paths:
|
|
2079
|
-
{
|
|
2080
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.x"
|
|
2081
|
-
},
|
|
2082
|
-
{
|
|
2083
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.y"
|
|
2084
|
-
},
|
|
2085
|
-
{
|
|
2086
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.physicalProperties.weight"
|
|
2087
|
-
},
|
|
2088
|
-
{
|
|
2089
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.latitude"
|
|
2090
|
-
},
|
|
2091
|
-
{
|
|
2092
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.longitude"
|
|
2093
|
-
},
|
|
2094
|
-
{
|
|
2095
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.latitude"
|
|
2096
|
-
},
|
|
2097
|
-
{
|
|
2098
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.longitude"
|
|
2099
|
-
},
|
|
2100
|
-
{
|
|
2101
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
2102
|
-
},
|
|
2103
|
-
{
|
|
2104
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
2105
|
-
},
|
|
2106
|
-
{
|
|
2107
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
2108
|
-
},
|
|
2109
|
-
{
|
|
2110
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
2111
|
-
},
|
|
2112
|
-
{
|
|
2113
|
-
path: "calculatedDraftOrder.draftOrder.billingInfo.address.geocode.latitude"
|
|
2114
|
-
},
|
|
2115
|
-
{
|
|
2116
|
-
path: "calculatedDraftOrder.draftOrder.billingInfo.address.geocode.longitude"
|
|
2117
|
-
},
|
|
2118
|
-
{
|
|
2119
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.latitude"
|
|
2120
|
-
},
|
|
2121
|
-
{
|
|
2122
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.longitude"
|
|
2123
|
-
},
|
|
2124
|
-
{
|
|
2125
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.latitude"
|
|
2126
|
-
},
|
|
2127
|
-
{
|
|
2128
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.longitude"
|
|
2129
|
-
},
|
|
2130
|
-
{
|
|
2131
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.latitude"
|
|
2132
|
-
},
|
|
2133
|
-
{
|
|
2134
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.longitude"
|
|
2135
|
-
},
|
|
2136
|
-
{
|
|
2137
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.latitude"
|
|
2138
|
-
},
|
|
2139
|
-
{
|
|
2140
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.longitude"
|
|
2141
|
-
},
|
|
2142
|
-
{
|
|
2143
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
2144
|
-
},
|
|
2145
|
-
{
|
|
2146
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
2147
|
-
}
|
|
2148
|
-
]
|
|
1092
|
+
paths: TRANSFORM_PATHS_3
|
|
2149
1093
|
}
|
|
2150
1094
|
])
|
|
2151
1095
|
};
|
|
@@ -2158,10 +1102,7 @@ function setBillingInfo(payload) {
|
|
|
2158
1102
|
const serializedData = transformPaths(payload, [
|
|
2159
1103
|
{
|
|
2160
1104
|
transformFn: transformSDKFloatToRESTFloat,
|
|
2161
|
-
paths:
|
|
2162
|
-
{ path: "billingInfo.address.geocode.latitude" },
|
|
2163
|
-
{ path: "billingInfo.address.geocode.longitude" }
|
|
2164
|
-
]
|
|
1105
|
+
paths: TRANSFORM_PATHS_10
|
|
2165
1106
|
}
|
|
2166
1107
|
]);
|
|
2167
1108
|
const metadata = {
|
|
@@ -2181,123 +1122,11 @@ function setBillingInfo(payload) {
|
|
|
2181
1122
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
2182
1123
|
{
|
|
2183
1124
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
2184
|
-
paths:
|
|
2185
|
-
{ path: "calculatedDraftOrder.draftOrder.createdDate" },
|
|
2186
|
-
{ path: "calculatedDraftOrder.draftOrder.updatedDate" },
|
|
2187
|
-
{
|
|
2188
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image.urlExpirationDate"
|
|
2189
|
-
},
|
|
2190
|
-
{
|
|
2191
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.digitalFile.expirationDate"
|
|
2192
|
-
},
|
|
2193
|
-
{
|
|
2194
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
|
|
2195
|
-
},
|
|
2196
|
-
{
|
|
2197
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
|
|
2198
|
-
},
|
|
2199
|
-
{
|
|
2200
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.endDate"
|
|
2201
|
-
},
|
|
2202
|
-
{
|
|
2203
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
|
|
2204
|
-
},
|
|
2205
|
-
{
|
|
2206
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.from"
|
|
2207
|
-
},
|
|
2208
|
-
{
|
|
2209
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.to"
|
|
2210
|
-
},
|
|
2211
|
-
{
|
|
2212
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliverByDate"
|
|
2213
|
-
},
|
|
2214
|
-
{
|
|
2215
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
2216
|
-
},
|
|
2217
|
-
{
|
|
2218
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.to"
|
|
2219
|
-
},
|
|
2220
|
-
{
|
|
2221
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
2222
|
-
},
|
|
2223
|
-
{
|
|
2224
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
2225
|
-
}
|
|
2226
|
-
]
|
|
1125
|
+
paths: TRANSFORM_PATHS_2
|
|
2227
1126
|
},
|
|
2228
1127
|
{
|
|
2229
1128
|
transformFn: transformRESTFloatToSDKFloat,
|
|
2230
|
-
paths:
|
|
2231
|
-
{
|
|
2232
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.x"
|
|
2233
|
-
},
|
|
2234
|
-
{
|
|
2235
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.y"
|
|
2236
|
-
},
|
|
2237
|
-
{
|
|
2238
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.physicalProperties.weight"
|
|
2239
|
-
},
|
|
2240
|
-
{
|
|
2241
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.latitude"
|
|
2242
|
-
},
|
|
2243
|
-
{
|
|
2244
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.longitude"
|
|
2245
|
-
},
|
|
2246
|
-
{
|
|
2247
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.latitude"
|
|
2248
|
-
},
|
|
2249
|
-
{
|
|
2250
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.longitude"
|
|
2251
|
-
},
|
|
2252
|
-
{
|
|
2253
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
2254
|
-
},
|
|
2255
|
-
{
|
|
2256
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
2257
|
-
},
|
|
2258
|
-
{
|
|
2259
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
2260
|
-
},
|
|
2261
|
-
{
|
|
2262
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
2263
|
-
},
|
|
2264
|
-
{
|
|
2265
|
-
path: "calculatedDraftOrder.draftOrder.billingInfo.address.geocode.latitude"
|
|
2266
|
-
},
|
|
2267
|
-
{
|
|
2268
|
-
path: "calculatedDraftOrder.draftOrder.billingInfo.address.geocode.longitude"
|
|
2269
|
-
},
|
|
2270
|
-
{
|
|
2271
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.latitude"
|
|
2272
|
-
},
|
|
2273
|
-
{
|
|
2274
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.longitude"
|
|
2275
|
-
},
|
|
2276
|
-
{
|
|
2277
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.latitude"
|
|
2278
|
-
},
|
|
2279
|
-
{
|
|
2280
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.longitude"
|
|
2281
|
-
},
|
|
2282
|
-
{
|
|
2283
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.latitude"
|
|
2284
|
-
},
|
|
2285
|
-
{
|
|
2286
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.longitude"
|
|
2287
|
-
},
|
|
2288
|
-
{
|
|
2289
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.latitude"
|
|
2290
|
-
},
|
|
2291
|
-
{
|
|
2292
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.longitude"
|
|
2293
|
-
},
|
|
2294
|
-
{
|
|
2295
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
2296
|
-
},
|
|
2297
|
-
{
|
|
2298
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
2299
|
-
}
|
|
2300
|
-
]
|
|
1129
|
+
paths: TRANSFORM_PATHS_3
|
|
2301
1130
|
}
|
|
2302
1131
|
])
|
|
2303
1132
|
};
|
|
@@ -2324,123 +1153,11 @@ function getDraftOrder(payload) {
|
|
|
2324
1153
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
2325
1154
|
{
|
|
2326
1155
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
2327
|
-
paths:
|
|
2328
|
-
{ path: "calculatedDraftOrder.draftOrder.createdDate" },
|
|
2329
|
-
{ path: "calculatedDraftOrder.draftOrder.updatedDate" },
|
|
2330
|
-
{
|
|
2331
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image.urlExpirationDate"
|
|
2332
|
-
},
|
|
2333
|
-
{
|
|
2334
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.digitalFile.expirationDate"
|
|
2335
|
-
},
|
|
2336
|
-
{
|
|
2337
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
|
|
2338
|
-
},
|
|
2339
|
-
{
|
|
2340
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
|
|
2341
|
-
},
|
|
2342
|
-
{
|
|
2343
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.endDate"
|
|
2344
|
-
},
|
|
2345
|
-
{
|
|
2346
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
|
|
2347
|
-
},
|
|
2348
|
-
{
|
|
2349
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.from"
|
|
2350
|
-
},
|
|
2351
|
-
{
|
|
2352
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.to"
|
|
2353
|
-
},
|
|
2354
|
-
{
|
|
2355
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliverByDate"
|
|
2356
|
-
},
|
|
2357
|
-
{
|
|
2358
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
2359
|
-
},
|
|
2360
|
-
{
|
|
2361
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.to"
|
|
2362
|
-
},
|
|
2363
|
-
{
|
|
2364
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
2365
|
-
},
|
|
2366
|
-
{
|
|
2367
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
2368
|
-
}
|
|
2369
|
-
]
|
|
1156
|
+
paths: TRANSFORM_PATHS_2
|
|
2370
1157
|
},
|
|
2371
1158
|
{
|
|
2372
1159
|
transformFn: transformRESTFloatToSDKFloat,
|
|
2373
|
-
paths:
|
|
2374
|
-
{
|
|
2375
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.x"
|
|
2376
|
-
},
|
|
2377
|
-
{
|
|
2378
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.y"
|
|
2379
|
-
},
|
|
2380
|
-
{
|
|
2381
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.physicalProperties.weight"
|
|
2382
|
-
},
|
|
2383
|
-
{
|
|
2384
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.latitude"
|
|
2385
|
-
},
|
|
2386
|
-
{
|
|
2387
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.longitude"
|
|
2388
|
-
},
|
|
2389
|
-
{
|
|
2390
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.latitude"
|
|
2391
|
-
},
|
|
2392
|
-
{
|
|
2393
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.longitude"
|
|
2394
|
-
},
|
|
2395
|
-
{
|
|
2396
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
2397
|
-
},
|
|
2398
|
-
{
|
|
2399
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
2400
|
-
},
|
|
2401
|
-
{
|
|
2402
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
2403
|
-
},
|
|
2404
|
-
{
|
|
2405
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
2406
|
-
},
|
|
2407
|
-
{
|
|
2408
|
-
path: "calculatedDraftOrder.draftOrder.billingInfo.address.geocode.latitude"
|
|
2409
|
-
},
|
|
2410
|
-
{
|
|
2411
|
-
path: "calculatedDraftOrder.draftOrder.billingInfo.address.geocode.longitude"
|
|
2412
|
-
},
|
|
2413
|
-
{
|
|
2414
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.latitude"
|
|
2415
|
-
},
|
|
2416
|
-
{
|
|
2417
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.longitude"
|
|
2418
|
-
},
|
|
2419
|
-
{
|
|
2420
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.latitude"
|
|
2421
|
-
},
|
|
2422
|
-
{
|
|
2423
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.longitude"
|
|
2424
|
-
},
|
|
2425
|
-
{
|
|
2426
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.latitude"
|
|
2427
|
-
},
|
|
2428
|
-
{
|
|
2429
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.longitude"
|
|
2430
|
-
},
|
|
2431
|
-
{
|
|
2432
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.latitude"
|
|
2433
|
-
},
|
|
2434
|
-
{
|
|
2435
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.longitude"
|
|
2436
|
-
},
|
|
2437
|
-
{
|
|
2438
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
2439
|
-
},
|
|
2440
|
-
{
|
|
2441
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
2442
|
-
}
|
|
2443
|
-
]
|
|
1160
|
+
paths: TRANSFORM_PATHS_3
|
|
2444
1161
|
}
|
|
2445
1162
|
]),
|
|
2446
1163
|
fallback: [
|
|
@@ -2499,156 +1216,11 @@ function commitDraftOrder(payload) {
|
|
|
2499
1216
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
2500
1217
|
{
|
|
2501
1218
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
2502
|
-
paths:
|
|
2503
|
-
{ path: "committedDraftOrder.createdDate" },
|
|
2504
|
-
{ path: "committedDraftOrder.updatedDate" },
|
|
2505
|
-
{
|
|
2506
|
-
path: "committedDraftOrder.lineItems.lineItem.image.urlExpirationDate"
|
|
2507
|
-
},
|
|
2508
|
-
{
|
|
2509
|
-
path: "committedDraftOrder.lineItems.lineItem.digitalFile.expirationDate"
|
|
2510
|
-
},
|
|
2511
|
-
{
|
|
2512
|
-
path: "committedDraftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
|
|
2513
|
-
},
|
|
2514
|
-
{
|
|
2515
|
-
path: "committedDraftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
|
|
2516
|
-
},
|
|
2517
|
-
{
|
|
2518
|
-
path: "committedDraftOrder.lineItems.lineItem.serviceProperties.endDate"
|
|
2519
|
-
},
|
|
2520
|
-
{
|
|
2521
|
-
path: "committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
|
|
2522
|
-
},
|
|
2523
|
-
{
|
|
2524
|
-
path: "committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.from"
|
|
2525
|
-
},
|
|
2526
|
-
{
|
|
2527
|
-
path: "committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.to"
|
|
2528
|
-
},
|
|
2529
|
-
{
|
|
2530
|
-
path: "committedDraftOrder.shippingInfo.shippingInfo.logistics.deliverByDate"
|
|
2531
|
-
},
|
|
2532
|
-
{
|
|
2533
|
-
path: "committedDraftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
2534
|
-
},
|
|
2535
|
-
{
|
|
2536
|
-
path: "committedDraftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.to"
|
|
2537
|
-
},
|
|
2538
|
-
{ path: "orderAfterCommit.createdDate" },
|
|
2539
|
-
{ path: "orderAfterCommit.updatedDate" },
|
|
2540
|
-
{ path: "orderAfterCommit.purchasedDate" },
|
|
2541
|
-
{ path: "orderAfterCommit.lineItems.image.urlExpirationDate" },
|
|
2542
|
-
{ path: "orderAfterCommit.lineItems.digitalFile.expirationDate" },
|
|
2543
|
-
{
|
|
2544
|
-
path: "orderAfterCommit.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
2545
|
-
},
|
|
2546
|
-
{
|
|
2547
|
-
path: "orderAfterCommit.lineItems.serviceProperties.scheduledDate"
|
|
2548
|
-
},
|
|
2549
|
-
{ path: "orderAfterCommit.lineItems.serviceProperties.endDate" },
|
|
2550
|
-
{ path: "orderAfterCommit.shippingInfo.logistics.deliverByDate" },
|
|
2551
|
-
{
|
|
2552
|
-
path: "orderAfterCommit.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
2553
|
-
},
|
|
2554
|
-
{
|
|
2555
|
-
path: "orderAfterCommit.shippingInfo.logistics.deliveryTimeSlot.to"
|
|
2556
|
-
},
|
|
2557
|
-
{ path: "orderAfterCommit.activities.createdDate" }
|
|
2558
|
-
]
|
|
1219
|
+
paths: TRANSFORM_PATHS_11
|
|
2559
1220
|
},
|
|
2560
1221
|
{
|
|
2561
1222
|
transformFn: transformRESTFloatToSDKFloat,
|
|
2562
|
-
paths:
|
|
2563
|
-
{
|
|
2564
|
-
path: "committedDraftOrder.lineItems.lineItem.image.focalPoint.x"
|
|
2565
|
-
},
|
|
2566
|
-
{
|
|
2567
|
-
path: "committedDraftOrder.lineItems.lineItem.image.focalPoint.y"
|
|
2568
|
-
},
|
|
2569
|
-
{ path: "orderAfterCommit.lineItems.image.focalPoint.x" },
|
|
2570
|
-
{ path: "orderAfterCommit.lineItems.image.focalPoint.y" },
|
|
2571
|
-
{
|
|
2572
|
-
path: "committedDraftOrder.lineItems.lineItem.physicalProperties.weight"
|
|
2573
|
-
},
|
|
2574
|
-
{
|
|
2575
|
-
path: "committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.latitude"
|
|
2576
|
-
},
|
|
2577
|
-
{
|
|
2578
|
-
path: "committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.longitude"
|
|
2579
|
-
},
|
|
2580
|
-
{
|
|
2581
|
-
path: "committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.latitude"
|
|
2582
|
-
},
|
|
2583
|
-
{
|
|
2584
|
-
path: "committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.longitude"
|
|
2585
|
-
},
|
|
2586
|
-
{
|
|
2587
|
-
path: "committedDraftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
2588
|
-
},
|
|
2589
|
-
{
|
|
2590
|
-
path: "committedDraftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
2591
|
-
},
|
|
2592
|
-
{
|
|
2593
|
-
path: "committedDraftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
2594
|
-
},
|
|
2595
|
-
{
|
|
2596
|
-
path: "committedDraftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
2597
|
-
},
|
|
2598
|
-
{
|
|
2599
|
-
path: "committedDraftOrder.billingInfo.address.geocode.latitude"
|
|
2600
|
-
},
|
|
2601
|
-
{
|
|
2602
|
-
path: "committedDraftOrder.billingInfo.address.geocode.longitude"
|
|
2603
|
-
},
|
|
2604
|
-
{
|
|
2605
|
-
path: "committedDraftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.latitude"
|
|
2606
|
-
},
|
|
2607
|
-
{
|
|
2608
|
-
path: "committedDraftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.longitude"
|
|
2609
|
-
},
|
|
2610
|
-
{
|
|
2611
|
-
path: "committedDraftOrder.recipientInfo.recipientInfo.address.geocode.latitude"
|
|
2612
|
-
},
|
|
2613
|
-
{
|
|
2614
|
-
path: "committedDraftOrder.recipientInfo.recipientInfo.address.geocode.longitude"
|
|
2615
|
-
},
|
|
2616
|
-
{
|
|
2617
|
-
path: "committedDraftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.latitude"
|
|
2618
|
-
},
|
|
2619
|
-
{
|
|
2620
|
-
path: "committedDraftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.longitude"
|
|
2621
|
-
},
|
|
2622
|
-
{
|
|
2623
|
-
path: "committedDraftOrder.billingDetails.billingInfo.address.geocode.latitude"
|
|
2624
|
-
},
|
|
2625
|
-
{
|
|
2626
|
-
path: "committedDraftOrder.billingDetails.billingInfo.address.geocode.longitude"
|
|
2627
|
-
},
|
|
2628
|
-
{ path: "orderAfterCommit.lineItems.physicalProperties.weight" },
|
|
2629
|
-
{ path: "orderAfterCommit.billingInfo.address.geocode.latitude" },
|
|
2630
|
-
{
|
|
2631
|
-
path: "orderAfterCommit.billingInfo.address.geocode.longitude"
|
|
2632
|
-
},
|
|
2633
|
-
{
|
|
2634
|
-
path: "orderAfterCommit.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
2635
|
-
},
|
|
2636
|
-
{
|
|
2637
|
-
path: "orderAfterCommit.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
2638
|
-
},
|
|
2639
|
-
{
|
|
2640
|
-
path: "orderAfterCommit.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
2641
|
-
},
|
|
2642
|
-
{
|
|
2643
|
-
path: "orderAfterCommit.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
2644
|
-
},
|
|
2645
|
-
{
|
|
2646
|
-
path: "orderAfterCommit.recipientInfo.address.geocode.latitude"
|
|
2647
|
-
},
|
|
2648
|
-
{
|
|
2649
|
-
path: "orderAfterCommit.recipientInfo.address.geocode.longitude"
|
|
2650
|
-
}
|
|
2651
|
-
]
|
|
1223
|
+
paths: TRANSFORM_PATHS_12
|
|
2652
1224
|
}
|
|
2653
1225
|
])
|
|
2654
1226
|
};
|
|
@@ -2675,150 +1247,11 @@ function createOrderFromDraft(payload) {
|
|
|
2675
1247
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
2676
1248
|
{
|
|
2677
1249
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
2678
|
-
paths:
|
|
2679
|
-
{ path: "committedDraftOrder.createdDate" },
|
|
2680
|
-
{ path: "committedDraftOrder.updatedDate" },
|
|
2681
|
-
{
|
|
2682
|
-
path: "committedDraftOrder.lineItems.lineItem.image.urlExpirationDate"
|
|
2683
|
-
},
|
|
2684
|
-
{
|
|
2685
|
-
path: "committedDraftOrder.lineItems.lineItem.digitalFile.expirationDate"
|
|
2686
|
-
},
|
|
2687
|
-
{
|
|
2688
|
-
path: "committedDraftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
|
|
2689
|
-
},
|
|
2690
|
-
{
|
|
2691
|
-
path: "committedDraftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
|
|
2692
|
-
},
|
|
2693
|
-
{
|
|
2694
|
-
path: "committedDraftOrder.lineItems.lineItem.serviceProperties.endDate"
|
|
2695
|
-
},
|
|
2696
|
-
{
|
|
2697
|
-
path: "committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
|
|
2698
|
-
},
|
|
2699
|
-
{
|
|
2700
|
-
path: "committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.from"
|
|
2701
|
-
},
|
|
2702
|
-
{
|
|
2703
|
-
path: "committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.to"
|
|
2704
|
-
},
|
|
2705
|
-
{
|
|
2706
|
-
path: "committedDraftOrder.shippingInfo.shippingInfo.logistics.deliverByDate"
|
|
2707
|
-
},
|
|
2708
|
-
{
|
|
2709
|
-
path: "committedDraftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
2710
|
-
},
|
|
2711
|
-
{
|
|
2712
|
-
path: "committedDraftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.to"
|
|
2713
|
-
},
|
|
2714
|
-
{ path: "createdOrder.createdDate" },
|
|
2715
|
-
{ path: "createdOrder.updatedDate" },
|
|
2716
|
-
{ path: "createdOrder.purchasedDate" },
|
|
2717
|
-
{ path: "createdOrder.lineItems.image.urlExpirationDate" },
|
|
2718
|
-
{ path: "createdOrder.lineItems.digitalFile.expirationDate" },
|
|
2719
|
-
{
|
|
2720
|
-
path: "createdOrder.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
2721
|
-
},
|
|
2722
|
-
{
|
|
2723
|
-
path: "createdOrder.lineItems.serviceProperties.scheduledDate"
|
|
2724
|
-
},
|
|
2725
|
-
{ path: "createdOrder.lineItems.serviceProperties.endDate" },
|
|
2726
|
-
{ path: "createdOrder.shippingInfo.logistics.deliverByDate" },
|
|
2727
|
-
{
|
|
2728
|
-
path: "createdOrder.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
2729
|
-
},
|
|
2730
|
-
{
|
|
2731
|
-
path: "createdOrder.shippingInfo.logistics.deliveryTimeSlot.to"
|
|
2732
|
-
},
|
|
2733
|
-
{ path: "createdOrder.activities.createdDate" }
|
|
2734
|
-
]
|
|
1250
|
+
paths: TRANSFORM_PATHS_13
|
|
2735
1251
|
},
|
|
2736
1252
|
{
|
|
2737
1253
|
transformFn: transformRESTFloatToSDKFloat,
|
|
2738
|
-
paths:
|
|
2739
|
-
{
|
|
2740
|
-
path: "committedDraftOrder.lineItems.lineItem.image.focalPoint.x"
|
|
2741
|
-
},
|
|
2742
|
-
{
|
|
2743
|
-
path: "committedDraftOrder.lineItems.lineItem.image.focalPoint.y"
|
|
2744
|
-
},
|
|
2745
|
-
{ path: "createdOrder.lineItems.image.focalPoint.x" },
|
|
2746
|
-
{ path: "createdOrder.lineItems.image.focalPoint.y" },
|
|
2747
|
-
{
|
|
2748
|
-
path: "committedDraftOrder.lineItems.lineItem.physicalProperties.weight"
|
|
2749
|
-
},
|
|
2750
|
-
{
|
|
2751
|
-
path: "committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.latitude"
|
|
2752
|
-
},
|
|
2753
|
-
{
|
|
2754
|
-
path: "committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.longitude"
|
|
2755
|
-
},
|
|
2756
|
-
{
|
|
2757
|
-
path: "committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.latitude"
|
|
2758
|
-
},
|
|
2759
|
-
{
|
|
2760
|
-
path: "committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.longitude"
|
|
2761
|
-
},
|
|
2762
|
-
{
|
|
2763
|
-
path: "committedDraftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
2764
|
-
},
|
|
2765
|
-
{
|
|
2766
|
-
path: "committedDraftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
2767
|
-
},
|
|
2768
|
-
{
|
|
2769
|
-
path: "committedDraftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
2770
|
-
},
|
|
2771
|
-
{
|
|
2772
|
-
path: "committedDraftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
2773
|
-
},
|
|
2774
|
-
{
|
|
2775
|
-
path: "committedDraftOrder.billingInfo.address.geocode.latitude"
|
|
2776
|
-
},
|
|
2777
|
-
{
|
|
2778
|
-
path: "committedDraftOrder.billingInfo.address.geocode.longitude"
|
|
2779
|
-
},
|
|
2780
|
-
{
|
|
2781
|
-
path: "committedDraftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.latitude"
|
|
2782
|
-
},
|
|
2783
|
-
{
|
|
2784
|
-
path: "committedDraftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.longitude"
|
|
2785
|
-
},
|
|
2786
|
-
{
|
|
2787
|
-
path: "committedDraftOrder.recipientInfo.recipientInfo.address.geocode.latitude"
|
|
2788
|
-
},
|
|
2789
|
-
{
|
|
2790
|
-
path: "committedDraftOrder.recipientInfo.recipientInfo.address.geocode.longitude"
|
|
2791
|
-
},
|
|
2792
|
-
{
|
|
2793
|
-
path: "committedDraftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.latitude"
|
|
2794
|
-
},
|
|
2795
|
-
{
|
|
2796
|
-
path: "committedDraftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.longitude"
|
|
2797
|
-
},
|
|
2798
|
-
{
|
|
2799
|
-
path: "committedDraftOrder.billingDetails.billingInfo.address.geocode.latitude"
|
|
2800
|
-
},
|
|
2801
|
-
{
|
|
2802
|
-
path: "committedDraftOrder.billingDetails.billingInfo.address.geocode.longitude"
|
|
2803
|
-
},
|
|
2804
|
-
{ path: "createdOrder.lineItems.physicalProperties.weight" },
|
|
2805
|
-
{ path: "createdOrder.billingInfo.address.geocode.latitude" },
|
|
2806
|
-
{ path: "createdOrder.billingInfo.address.geocode.longitude" },
|
|
2807
|
-
{
|
|
2808
|
-
path: "createdOrder.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
2809
|
-
},
|
|
2810
|
-
{
|
|
2811
|
-
path: "createdOrder.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
2812
|
-
},
|
|
2813
|
-
{
|
|
2814
|
-
path: "createdOrder.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
2815
|
-
},
|
|
2816
|
-
{
|
|
2817
|
-
path: "createdOrder.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
2818
|
-
},
|
|
2819
|
-
{ path: "createdOrder.recipientInfo.address.geocode.latitude" },
|
|
2820
|
-
{ path: "createdOrder.recipientInfo.address.geocode.longitude" }
|
|
2821
|
-
]
|
|
1254
|
+
paths: TRANSFORM_PATHS_14
|
|
2822
1255
|
}
|
|
2823
1256
|
])
|
|
2824
1257
|
};
|
|
@@ -2852,10 +1285,7 @@ function queryDraftOrders(payload) {
|
|
|
2852
1285
|
const serializedData = transformPaths(payload, [
|
|
2853
1286
|
{
|
|
2854
1287
|
transformFn: transformSDKFloatToRESTFloat,
|
|
2855
|
-
paths:
|
|
2856
|
-
{ path: "query.sort.origin.latitude" },
|
|
2857
|
-
{ path: "query.sort.origin.longitude" }
|
|
2858
|
-
]
|
|
1288
|
+
paths: TRANSFORM_PATHS_15
|
|
2859
1289
|
}
|
|
2860
1290
|
]);
|
|
2861
1291
|
const metadata = {
|
|
@@ -2875,103 +1305,11 @@ function queryDraftOrders(payload) {
|
|
|
2875
1305
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
2876
1306
|
{
|
|
2877
1307
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
2878
|
-
paths:
|
|
2879
|
-
{ path: "draftOrders.createdDate" },
|
|
2880
|
-
{ path: "draftOrders.updatedDate" },
|
|
2881
|
-
{
|
|
2882
|
-
path: "draftOrders.lineItems.lineItem.image.urlExpirationDate"
|
|
2883
|
-
},
|
|
2884
|
-
{
|
|
2885
|
-
path: "draftOrders.lineItems.lineItem.digitalFile.expirationDate"
|
|
2886
|
-
},
|
|
2887
|
-
{
|
|
2888
|
-
path: "draftOrders.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
|
|
2889
|
-
},
|
|
2890
|
-
{
|
|
2891
|
-
path: "draftOrders.lineItems.lineItem.serviceProperties.scheduledDate"
|
|
2892
|
-
},
|
|
2893
|
-
{
|
|
2894
|
-
path: "draftOrders.lineItems.lineItem.serviceProperties.endDate"
|
|
2895
|
-
},
|
|
2896
|
-
{
|
|
2897
|
-
path: "draftOrders.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
|
|
2898
|
-
},
|
|
2899
|
-
{
|
|
2900
|
-
path: "draftOrders.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.from"
|
|
2901
|
-
},
|
|
2902
|
-
{
|
|
2903
|
-
path: "draftOrders.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.to"
|
|
2904
|
-
},
|
|
2905
|
-
{
|
|
2906
|
-
path: "draftOrders.shippingInfo.shippingInfo.logistics.deliverByDate"
|
|
2907
|
-
},
|
|
2908
|
-
{
|
|
2909
|
-
path: "draftOrders.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
2910
|
-
},
|
|
2911
|
-
{
|
|
2912
|
-
path: "draftOrders.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.to"
|
|
2913
|
-
}
|
|
2914
|
-
]
|
|
1308
|
+
paths: TRANSFORM_PATHS_16
|
|
2915
1309
|
},
|
|
2916
1310
|
{
|
|
2917
1311
|
transformFn: transformRESTFloatToSDKFloat,
|
|
2918
|
-
paths:
|
|
2919
|
-
{ path: "draftOrders.lineItems.lineItem.image.focalPoint.x" },
|
|
2920
|
-
{ path: "draftOrders.lineItems.lineItem.image.focalPoint.y" },
|
|
2921
|
-
{
|
|
2922
|
-
path: "draftOrders.lineItems.lineItem.physicalProperties.weight"
|
|
2923
|
-
},
|
|
2924
|
-
{
|
|
2925
|
-
path: "draftOrders.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.latitude"
|
|
2926
|
-
},
|
|
2927
|
-
{
|
|
2928
|
-
path: "draftOrders.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.longitude"
|
|
2929
|
-
},
|
|
2930
|
-
{
|
|
2931
|
-
path: "draftOrders.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.latitude"
|
|
2932
|
-
},
|
|
2933
|
-
{
|
|
2934
|
-
path: "draftOrders.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.longitude"
|
|
2935
|
-
},
|
|
2936
|
-
{
|
|
2937
|
-
path: "draftOrders.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
2938
|
-
},
|
|
2939
|
-
{
|
|
2940
|
-
path: "draftOrders.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
2941
|
-
},
|
|
2942
|
-
{
|
|
2943
|
-
path: "draftOrders.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
2944
|
-
},
|
|
2945
|
-
{
|
|
2946
|
-
path: "draftOrders.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
2947
|
-
},
|
|
2948
|
-
{ path: "draftOrders.billingInfo.address.geocode.latitude" },
|
|
2949
|
-
{ path: "draftOrders.billingInfo.address.geocode.longitude" },
|
|
2950
|
-
{
|
|
2951
|
-
path: "draftOrders.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.latitude"
|
|
2952
|
-
},
|
|
2953
|
-
{
|
|
2954
|
-
path: "draftOrders.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.longitude"
|
|
2955
|
-
},
|
|
2956
|
-
{
|
|
2957
|
-
path: "draftOrders.recipientInfo.recipientInfo.address.geocode.latitude"
|
|
2958
|
-
},
|
|
2959
|
-
{
|
|
2960
|
-
path: "draftOrders.recipientInfo.recipientInfo.address.geocode.longitude"
|
|
2961
|
-
},
|
|
2962
|
-
{
|
|
2963
|
-
path: "draftOrders.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.latitude"
|
|
2964
|
-
},
|
|
2965
|
-
{
|
|
2966
|
-
path: "draftOrders.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.longitude"
|
|
2967
|
-
},
|
|
2968
|
-
{
|
|
2969
|
-
path: "draftOrders.billingDetails.billingInfo.address.geocode.latitude"
|
|
2970
|
-
},
|
|
2971
|
-
{
|
|
2972
|
-
path: "draftOrders.billingDetails.billingInfo.address.geocode.longitude"
|
|
2973
|
-
}
|
|
2974
|
-
]
|
|
1312
|
+
paths: TRANSFORM_PATHS_17
|
|
2975
1313
|
}
|
|
2976
1314
|
])
|
|
2977
1315
|
};
|
|
@@ -2998,101 +1336,11 @@ function updateExtendedFields(payload) {
|
|
|
2998
1336
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
2999
1337
|
{
|
|
3000
1338
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
3001
|
-
paths:
|
|
3002
|
-
{ path: "draftOrder.createdDate" },
|
|
3003
|
-
{ path: "draftOrder.updatedDate" },
|
|
3004
|
-
{ path: "draftOrder.lineItems.lineItem.image.urlExpirationDate" },
|
|
3005
|
-
{
|
|
3006
|
-
path: "draftOrder.lineItems.lineItem.digitalFile.expirationDate"
|
|
3007
|
-
},
|
|
3008
|
-
{
|
|
3009
|
-
path: "draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
|
|
3010
|
-
},
|
|
3011
|
-
{
|
|
3012
|
-
path: "draftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
|
|
3013
|
-
},
|
|
3014
|
-
{
|
|
3015
|
-
path: "draftOrder.lineItems.lineItem.serviceProperties.endDate"
|
|
3016
|
-
},
|
|
3017
|
-
{
|
|
3018
|
-
path: "draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
|
|
3019
|
-
},
|
|
3020
|
-
{
|
|
3021
|
-
path: "draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.from"
|
|
3022
|
-
},
|
|
3023
|
-
{
|
|
3024
|
-
path: "draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.to"
|
|
3025
|
-
},
|
|
3026
|
-
{
|
|
3027
|
-
path: "draftOrder.shippingInfo.shippingInfo.logistics.deliverByDate"
|
|
3028
|
-
},
|
|
3029
|
-
{
|
|
3030
|
-
path: "draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
3031
|
-
},
|
|
3032
|
-
{
|
|
3033
|
-
path: "draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.to"
|
|
3034
|
-
}
|
|
3035
|
-
]
|
|
1339
|
+
paths: TRANSFORM_PATHS_18
|
|
3036
1340
|
},
|
|
3037
1341
|
{
|
|
3038
1342
|
transformFn: transformRESTFloatToSDKFloat,
|
|
3039
|
-
paths:
|
|
3040
|
-
{ path: "draftOrder.lineItems.lineItem.image.focalPoint.x" },
|
|
3041
|
-
{ path: "draftOrder.lineItems.lineItem.image.focalPoint.y" },
|
|
3042
|
-
{
|
|
3043
|
-
path: "draftOrder.lineItems.lineItem.physicalProperties.weight"
|
|
3044
|
-
},
|
|
3045
|
-
{
|
|
3046
|
-
path: "draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.latitude"
|
|
3047
|
-
},
|
|
3048
|
-
{
|
|
3049
|
-
path: "draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.longitude"
|
|
3050
|
-
},
|
|
3051
|
-
{
|
|
3052
|
-
path: "draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.latitude"
|
|
3053
|
-
},
|
|
3054
|
-
{
|
|
3055
|
-
path: "draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.longitude"
|
|
3056
|
-
},
|
|
3057
|
-
{
|
|
3058
|
-
path: "draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
3059
|
-
},
|
|
3060
|
-
{
|
|
3061
|
-
path: "draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
3062
|
-
},
|
|
3063
|
-
{
|
|
3064
|
-
path: "draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
3065
|
-
},
|
|
3066
|
-
{
|
|
3067
|
-
path: "draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
3068
|
-
},
|
|
3069
|
-
{ path: "draftOrder.billingInfo.address.geocode.latitude" },
|
|
3070
|
-
{ path: "draftOrder.billingInfo.address.geocode.longitude" },
|
|
3071
|
-
{
|
|
3072
|
-
path: "draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.latitude"
|
|
3073
|
-
},
|
|
3074
|
-
{
|
|
3075
|
-
path: "draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.longitude"
|
|
3076
|
-
},
|
|
3077
|
-
{
|
|
3078
|
-
path: "draftOrder.recipientInfo.recipientInfo.address.geocode.latitude"
|
|
3079
|
-
},
|
|
3080
|
-
{
|
|
3081
|
-
path: "draftOrder.recipientInfo.recipientInfo.address.geocode.longitude"
|
|
3082
|
-
},
|
|
3083
|
-
{
|
|
3084
|
-
path: "draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.latitude"
|
|
3085
|
-
},
|
|
3086
|
-
{
|
|
3087
|
-
path: "draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.longitude"
|
|
3088
|
-
},
|
|
3089
|
-
{
|
|
3090
|
-
path: "draftOrder.billingDetails.billingInfo.address.geocode.latitude"
|
|
3091
|
-
},
|
|
3092
|
-
{
|
|
3093
|
-
path: "draftOrder.billingDetails.billingInfo.address.geocode.longitude"
|
|
3094
|
-
}
|
|
3095
|
-
]
|
|
1343
|
+
paths: TRANSFORM_PATHS_19
|
|
3096
1344
|
}
|
|
3097
1345
|
])
|
|
3098
1346
|
};
|
|
@@ -3119,123 +1367,11 @@ function setTaxExemption(payload) {
|
|
|
3119
1367
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
3120
1368
|
{
|
|
3121
1369
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
3122
|
-
paths:
|
|
3123
|
-
{ path: "calculatedDraftOrder.draftOrder.createdDate" },
|
|
3124
|
-
{ path: "calculatedDraftOrder.draftOrder.updatedDate" },
|
|
3125
|
-
{
|
|
3126
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image.urlExpirationDate"
|
|
3127
|
-
},
|
|
3128
|
-
{
|
|
3129
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.digitalFile.expirationDate"
|
|
3130
|
-
},
|
|
3131
|
-
{
|
|
3132
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
|
|
3133
|
-
},
|
|
3134
|
-
{
|
|
3135
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
|
|
3136
|
-
},
|
|
3137
|
-
{
|
|
3138
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.endDate"
|
|
3139
|
-
},
|
|
3140
|
-
{
|
|
3141
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
|
|
3142
|
-
},
|
|
3143
|
-
{
|
|
3144
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.from"
|
|
3145
|
-
},
|
|
3146
|
-
{
|
|
3147
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.to"
|
|
3148
|
-
},
|
|
3149
|
-
{
|
|
3150
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliverByDate"
|
|
3151
|
-
},
|
|
3152
|
-
{
|
|
3153
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
3154
|
-
},
|
|
3155
|
-
{
|
|
3156
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.to"
|
|
3157
|
-
},
|
|
3158
|
-
{
|
|
3159
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
3160
|
-
},
|
|
3161
|
-
{
|
|
3162
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
3163
|
-
}
|
|
3164
|
-
]
|
|
1370
|
+
paths: TRANSFORM_PATHS_2
|
|
3165
1371
|
},
|
|
3166
1372
|
{
|
|
3167
1373
|
transformFn: transformRESTFloatToSDKFloat,
|
|
3168
|
-
paths:
|
|
3169
|
-
{
|
|
3170
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.x"
|
|
3171
|
-
},
|
|
3172
|
-
{
|
|
3173
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.y"
|
|
3174
|
-
},
|
|
3175
|
-
{
|
|
3176
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.physicalProperties.weight"
|
|
3177
|
-
},
|
|
3178
|
-
{
|
|
3179
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.latitude"
|
|
3180
|
-
},
|
|
3181
|
-
{
|
|
3182
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.longitude"
|
|
3183
|
-
},
|
|
3184
|
-
{
|
|
3185
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.latitude"
|
|
3186
|
-
},
|
|
3187
|
-
{
|
|
3188
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.longitude"
|
|
3189
|
-
},
|
|
3190
|
-
{
|
|
3191
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
3192
|
-
},
|
|
3193
|
-
{
|
|
3194
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
3195
|
-
},
|
|
3196
|
-
{
|
|
3197
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
3198
|
-
},
|
|
3199
|
-
{
|
|
3200
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
3201
|
-
},
|
|
3202
|
-
{
|
|
3203
|
-
path: "calculatedDraftOrder.draftOrder.billingInfo.address.geocode.latitude"
|
|
3204
|
-
},
|
|
3205
|
-
{
|
|
3206
|
-
path: "calculatedDraftOrder.draftOrder.billingInfo.address.geocode.longitude"
|
|
3207
|
-
},
|
|
3208
|
-
{
|
|
3209
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.latitude"
|
|
3210
|
-
},
|
|
3211
|
-
{
|
|
3212
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.longitude"
|
|
3213
|
-
},
|
|
3214
|
-
{
|
|
3215
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.latitude"
|
|
3216
|
-
},
|
|
3217
|
-
{
|
|
3218
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.longitude"
|
|
3219
|
-
},
|
|
3220
|
-
{
|
|
3221
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.latitude"
|
|
3222
|
-
},
|
|
3223
|
-
{
|
|
3224
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.longitude"
|
|
3225
|
-
},
|
|
3226
|
-
{
|
|
3227
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.latitude"
|
|
3228
|
-
},
|
|
3229
|
-
{
|
|
3230
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.longitude"
|
|
3231
|
-
},
|
|
3232
|
-
{
|
|
3233
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
3234
|
-
},
|
|
3235
|
-
{
|
|
3236
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
3237
|
-
}
|
|
3238
|
-
]
|
|
1374
|
+
paths: TRANSFORM_PATHS_3
|
|
3239
1375
|
}
|
|
3240
1376
|
])
|
|
3241
1377
|
};
|
|
@@ -3262,123 +1398,11 @@ function setBusinessLocation(payload) {
|
|
|
3262
1398
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
3263
1399
|
{
|
|
3264
1400
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
3265
|
-
paths:
|
|
3266
|
-
{ path: "calculatedDraftOrder.draftOrder.createdDate" },
|
|
3267
|
-
{ path: "calculatedDraftOrder.draftOrder.updatedDate" },
|
|
3268
|
-
{
|
|
3269
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image.urlExpirationDate"
|
|
3270
|
-
},
|
|
3271
|
-
{
|
|
3272
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.digitalFile.expirationDate"
|
|
3273
|
-
},
|
|
3274
|
-
{
|
|
3275
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
|
|
3276
|
-
},
|
|
3277
|
-
{
|
|
3278
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
|
|
3279
|
-
},
|
|
3280
|
-
{
|
|
3281
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.endDate"
|
|
3282
|
-
},
|
|
3283
|
-
{
|
|
3284
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
|
|
3285
|
-
},
|
|
3286
|
-
{
|
|
3287
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.from"
|
|
3288
|
-
},
|
|
3289
|
-
{
|
|
3290
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.to"
|
|
3291
|
-
},
|
|
3292
|
-
{
|
|
3293
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliverByDate"
|
|
3294
|
-
},
|
|
3295
|
-
{
|
|
3296
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
3297
|
-
},
|
|
3298
|
-
{
|
|
3299
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.to"
|
|
3300
|
-
},
|
|
3301
|
-
{
|
|
3302
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
3303
|
-
},
|
|
3304
|
-
{
|
|
3305
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
3306
|
-
}
|
|
3307
|
-
]
|
|
1401
|
+
paths: TRANSFORM_PATHS_2
|
|
3308
1402
|
},
|
|
3309
1403
|
{
|
|
3310
1404
|
transformFn: transformRESTFloatToSDKFloat,
|
|
3311
|
-
paths:
|
|
3312
|
-
{
|
|
3313
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.x"
|
|
3314
|
-
},
|
|
3315
|
-
{
|
|
3316
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.y"
|
|
3317
|
-
},
|
|
3318
|
-
{
|
|
3319
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.physicalProperties.weight"
|
|
3320
|
-
},
|
|
3321
|
-
{
|
|
3322
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.latitude"
|
|
3323
|
-
},
|
|
3324
|
-
{
|
|
3325
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.longitude"
|
|
3326
|
-
},
|
|
3327
|
-
{
|
|
3328
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.latitude"
|
|
3329
|
-
},
|
|
3330
|
-
{
|
|
3331
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.longitude"
|
|
3332
|
-
},
|
|
3333
|
-
{
|
|
3334
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
3335
|
-
},
|
|
3336
|
-
{
|
|
3337
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
3338
|
-
},
|
|
3339
|
-
{
|
|
3340
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
3341
|
-
},
|
|
3342
|
-
{
|
|
3343
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
3344
|
-
},
|
|
3345
|
-
{
|
|
3346
|
-
path: "calculatedDraftOrder.draftOrder.billingInfo.address.geocode.latitude"
|
|
3347
|
-
},
|
|
3348
|
-
{
|
|
3349
|
-
path: "calculatedDraftOrder.draftOrder.billingInfo.address.geocode.longitude"
|
|
3350
|
-
},
|
|
3351
|
-
{
|
|
3352
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.latitude"
|
|
3353
|
-
},
|
|
3354
|
-
{
|
|
3355
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.longitude"
|
|
3356
|
-
},
|
|
3357
|
-
{
|
|
3358
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.latitude"
|
|
3359
|
-
},
|
|
3360
|
-
{
|
|
3361
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.longitude"
|
|
3362
|
-
},
|
|
3363
|
-
{
|
|
3364
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.latitude"
|
|
3365
|
-
},
|
|
3366
|
-
{
|
|
3367
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.longitude"
|
|
3368
|
-
},
|
|
3369
|
-
{
|
|
3370
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.latitude"
|
|
3371
|
-
},
|
|
3372
|
-
{
|
|
3373
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.longitude"
|
|
3374
|
-
},
|
|
3375
|
-
{
|
|
3376
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
3377
|
-
},
|
|
3378
|
-
{
|
|
3379
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
3380
|
-
}
|
|
3381
|
-
]
|
|
1405
|
+
paths: TRANSFORM_PATHS_3
|
|
3382
1406
|
}
|
|
3383
1407
|
])
|
|
3384
1408
|
};
|
|
@@ -3395,6 +1419,167 @@ import { transformRESTImageToSDKImage } from "@wix/sdk-runtime/transformations/i
|
|
|
3395
1419
|
import { transformSDKPageURLV2ToRESTPageURLV2 } from "@wix/sdk-runtime/transformations/page-url-v2";
|
|
3396
1420
|
import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
3397
1421
|
import { createQueryUtils } from "@wix/sdk-runtime/query-builder-utils";
|
|
1422
|
+
var TRANSFORM_PATHS_02 = [{ path: "draftOrder.customLineItems.url" }];
|
|
1423
|
+
var TRANSFORM_PATHS_110 = [{ path: "draftOrder.customLineItems.media" }];
|
|
1424
|
+
var TRANSFORM_PATHS_22 = [
|
|
1425
|
+
{ path: "draftOrder.recipientInfo.address" },
|
|
1426
|
+
{ path: "draftOrder.shippingInfo.logistics.shippingDestination.address" },
|
|
1427
|
+
{ path: "draftOrder.shippingInfo.logistics.pickupDetails.address" },
|
|
1428
|
+
{ path: "draftOrder.billingInfo.address" }
|
|
1429
|
+
];
|
|
1430
|
+
var TRANSFORM_PATHS_32 = [
|
|
1431
|
+
{ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image" }
|
|
1432
|
+
];
|
|
1433
|
+
var TRANSFORM_PATHS_42 = [
|
|
1434
|
+
{
|
|
1435
|
+
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address"
|
|
1436
|
+
},
|
|
1437
|
+
{
|
|
1438
|
+
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address"
|
|
1439
|
+
},
|
|
1440
|
+
{
|
|
1441
|
+
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address"
|
|
1442
|
+
},
|
|
1443
|
+
{
|
|
1444
|
+
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address"
|
|
1445
|
+
},
|
|
1446
|
+
{ path: "calculatedDraftOrder.draftOrder.billingInfo.address" },
|
|
1447
|
+
{
|
|
1448
|
+
path: "calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address"
|
|
1449
|
+
},
|
|
1450
|
+
{
|
|
1451
|
+
path: "calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address"
|
|
1452
|
+
},
|
|
1453
|
+
{
|
|
1454
|
+
path: "calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address"
|
|
1455
|
+
},
|
|
1456
|
+
{
|
|
1457
|
+
path: "calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address"
|
|
1458
|
+
},
|
|
1459
|
+
{
|
|
1460
|
+
path: "calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address"
|
|
1461
|
+
}
|
|
1462
|
+
];
|
|
1463
|
+
var TRANSFORM_PATHS_52 = [{ path: "customLineItems.url" }];
|
|
1464
|
+
var TRANSFORM_PATHS_62 = [{ path: "customLineItems.media" }];
|
|
1465
|
+
var TRANSFORM_PATHS_72 = [
|
|
1466
|
+
{ path: "shippingInfo.logistics.shippingDestination.address" },
|
|
1467
|
+
{ path: "shippingInfo.logistics.pickupDetails.address" }
|
|
1468
|
+
];
|
|
1469
|
+
var TRANSFORM_PATHS_82 = [{ path: "recipientInfo.address" }];
|
|
1470
|
+
var TRANSFORM_PATHS_92 = [{ path: "billingInfo.address" }];
|
|
1471
|
+
var TRANSFORM_PATHS_102 = [
|
|
1472
|
+
{ path: "committedDraftOrder.lineItems.lineItem.image" },
|
|
1473
|
+
{ path: "orderAfterCommit.lineItems.image" }
|
|
1474
|
+
];
|
|
1475
|
+
var TRANSFORM_PATHS_112 = [
|
|
1476
|
+
{
|
|
1477
|
+
path: "committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address"
|
|
1478
|
+
},
|
|
1479
|
+
{
|
|
1480
|
+
path: "committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address"
|
|
1481
|
+
},
|
|
1482
|
+
{
|
|
1483
|
+
path: "committedDraftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address"
|
|
1484
|
+
},
|
|
1485
|
+
{
|
|
1486
|
+
path: "committedDraftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address"
|
|
1487
|
+
},
|
|
1488
|
+
{ path: "committedDraftOrder.billingInfo.address" },
|
|
1489
|
+
{
|
|
1490
|
+
path: "committedDraftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address"
|
|
1491
|
+
},
|
|
1492
|
+
{ path: "committedDraftOrder.recipientInfo.recipientInfo.address" },
|
|
1493
|
+
{
|
|
1494
|
+
path: "committedDraftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address"
|
|
1495
|
+
},
|
|
1496
|
+
{ path: "committedDraftOrder.billingDetails.billingInfo.address" },
|
|
1497
|
+
{ path: "orderAfterCommit.billingInfo.address" },
|
|
1498
|
+
{
|
|
1499
|
+
path: "orderAfterCommit.shippingInfo.logistics.shippingDestination.address"
|
|
1500
|
+
},
|
|
1501
|
+
{ path: "orderAfterCommit.shippingInfo.logistics.pickupDetails.address" },
|
|
1502
|
+
{ path: "orderAfterCommit.recipientInfo.address" }
|
|
1503
|
+
];
|
|
1504
|
+
var TRANSFORM_PATHS_122 = [
|
|
1505
|
+
{ path: "committedDraftOrder.lineItems.lineItem.image" },
|
|
1506
|
+
{ path: "createdOrder.lineItems.image" }
|
|
1507
|
+
];
|
|
1508
|
+
var TRANSFORM_PATHS_132 = [
|
|
1509
|
+
{
|
|
1510
|
+
path: "committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address"
|
|
1511
|
+
},
|
|
1512
|
+
{
|
|
1513
|
+
path: "committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address"
|
|
1514
|
+
},
|
|
1515
|
+
{
|
|
1516
|
+
path: "committedDraftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address"
|
|
1517
|
+
},
|
|
1518
|
+
{
|
|
1519
|
+
path: "committedDraftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address"
|
|
1520
|
+
},
|
|
1521
|
+
{ path: "committedDraftOrder.billingInfo.address" },
|
|
1522
|
+
{
|
|
1523
|
+
path: "committedDraftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address"
|
|
1524
|
+
},
|
|
1525
|
+
{ path: "committedDraftOrder.recipientInfo.recipientInfo.address" },
|
|
1526
|
+
{
|
|
1527
|
+
path: "committedDraftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address"
|
|
1528
|
+
},
|
|
1529
|
+
{ path: "committedDraftOrder.billingDetails.billingInfo.address" },
|
|
1530
|
+
{ path: "createdOrder.billingInfo.address" },
|
|
1531
|
+
{ path: "createdOrder.shippingInfo.logistics.shippingDestination.address" },
|
|
1532
|
+
{ path: "createdOrder.shippingInfo.logistics.pickupDetails.address" },
|
|
1533
|
+
{ path: "createdOrder.recipientInfo.address" }
|
|
1534
|
+
];
|
|
1535
|
+
var TRANSFORM_PATHS_142 = [{ path: "draftOrders.lineItems.lineItem.image" }];
|
|
1536
|
+
var TRANSFORM_PATHS_152 = [
|
|
1537
|
+
{
|
|
1538
|
+
path: "draftOrders.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address"
|
|
1539
|
+
},
|
|
1540
|
+
{
|
|
1541
|
+
path: "draftOrders.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address"
|
|
1542
|
+
},
|
|
1543
|
+
{
|
|
1544
|
+
path: "draftOrders.shippingInfo.shippingInfo.logistics.shippingDestination.address"
|
|
1545
|
+
},
|
|
1546
|
+
{
|
|
1547
|
+
path: "draftOrders.shippingInfo.shippingInfo.logistics.pickupDetails.address"
|
|
1548
|
+
},
|
|
1549
|
+
{ path: "draftOrders.billingInfo.address" },
|
|
1550
|
+
{
|
|
1551
|
+
path: "draftOrders.recipientInfo.changedDetails.recipientInfoBeforeChange.address"
|
|
1552
|
+
},
|
|
1553
|
+
{ path: "draftOrders.recipientInfo.recipientInfo.address" },
|
|
1554
|
+
{
|
|
1555
|
+
path: "draftOrders.billingDetails.changedDetails.billingInfoBeforeChange.address"
|
|
1556
|
+
},
|
|
1557
|
+
{ path: "draftOrders.billingDetails.billingInfo.address" }
|
|
1558
|
+
];
|
|
1559
|
+
var TRANSFORM_PATHS_162 = [{ path: "draftOrder.lineItems.lineItem.image" }];
|
|
1560
|
+
var TRANSFORM_PATHS_172 = [
|
|
1561
|
+
{
|
|
1562
|
+
path: "draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address"
|
|
1563
|
+
},
|
|
1564
|
+
{
|
|
1565
|
+
path: "draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address"
|
|
1566
|
+
},
|
|
1567
|
+
{
|
|
1568
|
+
path: "draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address"
|
|
1569
|
+
},
|
|
1570
|
+
{
|
|
1571
|
+
path: "draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address"
|
|
1572
|
+
},
|
|
1573
|
+
{ path: "draftOrder.billingInfo.address" },
|
|
1574
|
+
{
|
|
1575
|
+
path: "draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address"
|
|
1576
|
+
},
|
|
1577
|
+
{ path: "draftOrder.recipientInfo.recipientInfo.address" },
|
|
1578
|
+
{
|
|
1579
|
+
path: "draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address"
|
|
1580
|
+
},
|
|
1581
|
+
{ path: "draftOrder.billingDetails.billingInfo.address" }
|
|
1582
|
+
];
|
|
3398
1583
|
var DescriptionLineType = /* @__PURE__ */ ((DescriptionLineType2) => {
|
|
3399
1584
|
DescriptionLineType2["UNRECOGNISED"] = "UNRECOGNISED";
|
|
3400
1585
|
DescriptionLineType2["PLAIN_TEXT"] = "PLAIN_TEXT";
|
|
@@ -3773,11 +1958,15 @@ var OrderActionType = /* @__PURE__ */ ((OrderActionType2) => {
|
|
|
3773
1958
|
return OrderActionType2;
|
|
3774
1959
|
})(OrderActionType || {});
|
|
3775
1960
|
var OrderStatus = /* @__PURE__ */ ((OrderStatus2) => {
|
|
3776
|
-
OrderStatus2["UNKNOWN_ORDER_STATUS"] = "UNKNOWN_ORDER_STATUS";
|
|
3777
1961
|
OrderStatus2["INITIALIZED"] = "INITIALIZED";
|
|
3778
1962
|
OrderStatus2["APPROVED"] = "APPROVED";
|
|
3779
1963
|
return OrderStatus2;
|
|
3780
1964
|
})(OrderStatus || {});
|
|
1965
|
+
var SubscriptionActivation = /* @__PURE__ */ ((SubscriptionActivation2) => {
|
|
1966
|
+
SubscriptionActivation2["ON_PAYMENT_COLLECTED"] = "ON_PAYMENT_COLLECTED";
|
|
1967
|
+
SubscriptionActivation2["ON_ORDER_CREATED"] = "ON_ORDER_CREATED";
|
|
1968
|
+
return SubscriptionActivation2;
|
|
1969
|
+
})(SubscriptionActivation || {});
|
|
3781
1970
|
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
3782
1971
|
SortOrder2["ASC"] = "ASC";
|
|
3783
1972
|
SortOrder2["DESC"] = "DESC";
|
|
@@ -3802,22 +1991,15 @@ async function createDraftOrder2(options) {
|
|
|
3802
1991
|
[
|
|
3803
1992
|
{
|
|
3804
1993
|
transformFn: transformSDKPageURLV2ToRESTPageURLV2,
|
|
3805
|
-
paths:
|
|
1994
|
+
paths: TRANSFORM_PATHS_02
|
|
3806
1995
|
},
|
|
3807
1996
|
{
|
|
3808
1997
|
transformFn: transformSDKImageToRESTImage,
|
|
3809
|
-
paths:
|
|
1998
|
+
paths: TRANSFORM_PATHS_110
|
|
3810
1999
|
},
|
|
3811
2000
|
{
|
|
3812
2001
|
transformFn: transformSDKAddressToRESTAddress,
|
|
3813
|
-
paths:
|
|
3814
|
-
{ path: "draftOrder.recipientInfo.address" },
|
|
3815
|
-
{
|
|
3816
|
-
path: "draftOrder.shippingInfo.logistics.shippingDestination.address"
|
|
3817
|
-
},
|
|
3818
|
-
{ path: "draftOrder.shippingInfo.logistics.pickupDetails.address" },
|
|
3819
|
-
{ path: "draftOrder.billingInfo.address" }
|
|
3820
|
-
]
|
|
2002
|
+
paths: TRANSFORM_PATHS_22
|
|
3821
2003
|
}
|
|
3822
2004
|
]
|
|
3823
2005
|
);
|
|
@@ -3830,44 +2012,11 @@ async function createDraftOrder2(options) {
|
|
|
3830
2012
|
transformPaths2(result.data, [
|
|
3831
2013
|
{
|
|
3832
2014
|
transformFn: transformRESTImageToSDKImage,
|
|
3833
|
-
paths:
|
|
3834
|
-
{
|
|
3835
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image"
|
|
3836
|
-
}
|
|
3837
|
-
]
|
|
2015
|
+
paths: TRANSFORM_PATHS_32
|
|
3838
2016
|
},
|
|
3839
2017
|
{
|
|
3840
2018
|
transformFn: transformRESTAddressToSDKAddress,
|
|
3841
|
-
paths:
|
|
3842
|
-
{
|
|
3843
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address"
|
|
3844
|
-
},
|
|
3845
|
-
{
|
|
3846
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address"
|
|
3847
|
-
},
|
|
3848
|
-
{
|
|
3849
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address"
|
|
3850
|
-
},
|
|
3851
|
-
{
|
|
3852
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address"
|
|
3853
|
-
},
|
|
3854
|
-
{ path: "calculatedDraftOrder.draftOrder.billingInfo.address" },
|
|
3855
|
-
{
|
|
3856
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address"
|
|
3857
|
-
},
|
|
3858
|
-
{
|
|
3859
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address"
|
|
3860
|
-
},
|
|
3861
|
-
{
|
|
3862
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address"
|
|
3863
|
-
},
|
|
3864
|
-
{
|
|
3865
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address"
|
|
3866
|
-
},
|
|
3867
|
-
{
|
|
3868
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address"
|
|
3869
|
-
}
|
|
3870
|
-
]
|
|
2019
|
+
paths: TRANSFORM_PATHS_42
|
|
3871
2020
|
}
|
|
3872
2021
|
])
|
|
3873
2022
|
);
|
|
@@ -3901,44 +2050,11 @@ async function createEmptyDraftOrder2() {
|
|
|
3901
2050
|
transformPaths2(result.data, [
|
|
3902
2051
|
{
|
|
3903
2052
|
transformFn: transformRESTImageToSDKImage,
|
|
3904
|
-
paths:
|
|
3905
|
-
{
|
|
3906
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image"
|
|
3907
|
-
}
|
|
3908
|
-
]
|
|
2053
|
+
paths: TRANSFORM_PATHS_32
|
|
3909
2054
|
},
|
|
3910
2055
|
{
|
|
3911
2056
|
transformFn: transformRESTAddressToSDKAddress,
|
|
3912
|
-
paths:
|
|
3913
|
-
{
|
|
3914
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address"
|
|
3915
|
-
},
|
|
3916
|
-
{
|
|
3917
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address"
|
|
3918
|
-
},
|
|
3919
|
-
{
|
|
3920
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address"
|
|
3921
|
-
},
|
|
3922
|
-
{
|
|
3923
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address"
|
|
3924
|
-
},
|
|
3925
|
-
{ path: "calculatedDraftOrder.draftOrder.billingInfo.address" },
|
|
3926
|
-
{
|
|
3927
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address"
|
|
3928
|
-
},
|
|
3929
|
-
{
|
|
3930
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address"
|
|
3931
|
-
},
|
|
3932
|
-
{
|
|
3933
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address"
|
|
3934
|
-
},
|
|
3935
|
-
{
|
|
3936
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address"
|
|
3937
|
-
},
|
|
3938
|
-
{
|
|
3939
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address"
|
|
3940
|
-
}
|
|
3941
|
-
]
|
|
2057
|
+
paths: TRANSFORM_PATHS_42
|
|
3942
2058
|
}
|
|
3943
2059
|
])
|
|
3944
2060
|
);
|
|
@@ -3967,11 +2083,11 @@ async function addLineItemsToDraftOrder2(draftOrderId, options) {
|
|
|
3967
2083
|
[
|
|
3968
2084
|
{
|
|
3969
2085
|
transformFn: transformSDKPageURLV2ToRESTPageURLV2,
|
|
3970
|
-
paths:
|
|
2086
|
+
paths: TRANSFORM_PATHS_52
|
|
3971
2087
|
},
|
|
3972
2088
|
{
|
|
3973
2089
|
transformFn: transformSDKImageToRESTImage,
|
|
3974
|
-
paths:
|
|
2090
|
+
paths: TRANSFORM_PATHS_62
|
|
3975
2091
|
}
|
|
3976
2092
|
]
|
|
3977
2093
|
);
|
|
@@ -3984,44 +2100,11 @@ async function addLineItemsToDraftOrder2(draftOrderId, options) {
|
|
|
3984
2100
|
transformPaths2(result.data, [
|
|
3985
2101
|
{
|
|
3986
2102
|
transformFn: transformRESTImageToSDKImage,
|
|
3987
|
-
paths:
|
|
3988
|
-
{
|
|
3989
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image"
|
|
3990
|
-
}
|
|
3991
|
-
]
|
|
2103
|
+
paths: TRANSFORM_PATHS_32
|
|
3992
2104
|
},
|
|
3993
2105
|
{
|
|
3994
2106
|
transformFn: transformRESTAddressToSDKAddress,
|
|
3995
|
-
paths:
|
|
3996
|
-
{
|
|
3997
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address"
|
|
3998
|
-
},
|
|
3999
|
-
{
|
|
4000
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address"
|
|
4001
|
-
},
|
|
4002
|
-
{
|
|
4003
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address"
|
|
4004
|
-
},
|
|
4005
|
-
{
|
|
4006
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address"
|
|
4007
|
-
},
|
|
4008
|
-
{ path: "calculatedDraftOrder.draftOrder.billingInfo.address" },
|
|
4009
|
-
{
|
|
4010
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address"
|
|
4011
|
-
},
|
|
4012
|
-
{
|
|
4013
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address"
|
|
4014
|
-
},
|
|
4015
|
-
{
|
|
4016
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address"
|
|
4017
|
-
},
|
|
4018
|
-
{
|
|
4019
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address"
|
|
4020
|
-
},
|
|
4021
|
-
{
|
|
4022
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address"
|
|
4023
|
-
}
|
|
4024
|
-
]
|
|
2107
|
+
paths: TRANSFORM_PATHS_42
|
|
4025
2108
|
}
|
|
4026
2109
|
])
|
|
4027
2110
|
);
|
|
@@ -4058,44 +2141,11 @@ async function updateLineItems2(draftOrderId, lineItemChanges) {
|
|
|
4058
2141
|
transformPaths2(result.data, [
|
|
4059
2142
|
{
|
|
4060
2143
|
transformFn: transformRESTImageToSDKImage,
|
|
4061
|
-
paths:
|
|
4062
|
-
{
|
|
4063
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image"
|
|
4064
|
-
}
|
|
4065
|
-
]
|
|
2144
|
+
paths: TRANSFORM_PATHS_32
|
|
4066
2145
|
},
|
|
4067
2146
|
{
|
|
4068
2147
|
transformFn: transformRESTAddressToSDKAddress,
|
|
4069
|
-
paths:
|
|
4070
|
-
{
|
|
4071
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address"
|
|
4072
|
-
},
|
|
4073
|
-
{
|
|
4074
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address"
|
|
4075
|
-
},
|
|
4076
|
-
{
|
|
4077
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address"
|
|
4078
|
-
},
|
|
4079
|
-
{
|
|
4080
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address"
|
|
4081
|
-
},
|
|
4082
|
-
{ path: "calculatedDraftOrder.draftOrder.billingInfo.address" },
|
|
4083
|
-
{
|
|
4084
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address"
|
|
4085
|
-
},
|
|
4086
|
-
{
|
|
4087
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address"
|
|
4088
|
-
},
|
|
4089
|
-
{
|
|
4090
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address"
|
|
4091
|
-
},
|
|
4092
|
-
{
|
|
4093
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address"
|
|
4094
|
-
},
|
|
4095
|
-
{
|
|
4096
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address"
|
|
4097
|
-
}
|
|
4098
|
-
]
|
|
2148
|
+
paths: TRANSFORM_PATHS_42
|
|
4099
2149
|
}
|
|
4100
2150
|
])
|
|
4101
2151
|
);
|
|
@@ -4131,44 +2181,11 @@ async function setDeposit2(draftOrderId, options) {
|
|
|
4131
2181
|
transformPaths2(result.data, [
|
|
4132
2182
|
{
|
|
4133
2183
|
transformFn: transformRESTImageToSDKImage,
|
|
4134
|
-
paths:
|
|
4135
|
-
{
|
|
4136
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image"
|
|
4137
|
-
}
|
|
4138
|
-
]
|
|
2184
|
+
paths: TRANSFORM_PATHS_32
|
|
4139
2185
|
},
|
|
4140
2186
|
{
|
|
4141
2187
|
transformFn: transformRESTAddressToSDKAddress,
|
|
4142
|
-
paths:
|
|
4143
|
-
{
|
|
4144
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address"
|
|
4145
|
-
},
|
|
4146
|
-
{
|
|
4147
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address"
|
|
4148
|
-
},
|
|
4149
|
-
{
|
|
4150
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address"
|
|
4151
|
-
},
|
|
4152
|
-
{
|
|
4153
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address"
|
|
4154
|
-
},
|
|
4155
|
-
{ path: "calculatedDraftOrder.draftOrder.billingInfo.address" },
|
|
4156
|
-
{
|
|
4157
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address"
|
|
4158
|
-
},
|
|
4159
|
-
{
|
|
4160
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address"
|
|
4161
|
-
},
|
|
4162
|
-
{
|
|
4163
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address"
|
|
4164
|
-
},
|
|
4165
|
-
{
|
|
4166
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address"
|
|
4167
|
-
},
|
|
4168
|
-
{
|
|
4169
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address"
|
|
4170
|
-
}
|
|
4171
|
-
]
|
|
2188
|
+
paths: TRANSFORM_PATHS_42
|
|
4172
2189
|
}
|
|
4173
2190
|
])
|
|
4174
2191
|
);
|
|
@@ -4204,44 +2221,11 @@ async function setDiscounts2(draftOrderId, discounts) {
|
|
|
4204
2221
|
transformPaths2(result.data, [
|
|
4205
2222
|
{
|
|
4206
2223
|
transformFn: transformRESTImageToSDKImage,
|
|
4207
|
-
paths:
|
|
4208
|
-
{
|
|
4209
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image"
|
|
4210
|
-
}
|
|
4211
|
-
]
|
|
2224
|
+
paths: TRANSFORM_PATHS_32
|
|
4212
2225
|
},
|
|
4213
2226
|
{
|
|
4214
2227
|
transformFn: transformRESTAddressToSDKAddress,
|
|
4215
|
-
paths:
|
|
4216
|
-
{
|
|
4217
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address"
|
|
4218
|
-
},
|
|
4219
|
-
{
|
|
4220
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address"
|
|
4221
|
-
},
|
|
4222
|
-
{
|
|
4223
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address"
|
|
4224
|
-
},
|
|
4225
|
-
{
|
|
4226
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address"
|
|
4227
|
-
},
|
|
4228
|
-
{ path: "calculatedDraftOrder.draftOrder.billingInfo.address" },
|
|
4229
|
-
{
|
|
4230
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address"
|
|
4231
|
-
},
|
|
4232
|
-
{
|
|
4233
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address"
|
|
4234
|
-
},
|
|
4235
|
-
{
|
|
4236
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address"
|
|
4237
|
-
},
|
|
4238
|
-
{
|
|
4239
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address"
|
|
4240
|
-
},
|
|
4241
|
-
{
|
|
4242
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address"
|
|
4243
|
-
}
|
|
4244
|
-
]
|
|
2228
|
+
paths: TRANSFORM_PATHS_42
|
|
4245
2229
|
}
|
|
4246
2230
|
])
|
|
4247
2231
|
);
|
|
@@ -4274,44 +2258,11 @@ async function createCustomDiscounts2(draftOrderId, options) {
|
|
|
4274
2258
|
transformPaths2(result.data, [
|
|
4275
2259
|
{
|
|
4276
2260
|
transformFn: transformRESTImageToSDKImage,
|
|
4277
|
-
paths:
|
|
4278
|
-
{
|
|
4279
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image"
|
|
4280
|
-
}
|
|
4281
|
-
]
|
|
2261
|
+
paths: TRANSFORM_PATHS_32
|
|
4282
2262
|
},
|
|
4283
2263
|
{
|
|
4284
2264
|
transformFn: transformRESTAddressToSDKAddress,
|
|
4285
|
-
paths:
|
|
4286
|
-
{
|
|
4287
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address"
|
|
4288
|
-
},
|
|
4289
|
-
{
|
|
4290
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address"
|
|
4291
|
-
},
|
|
4292
|
-
{
|
|
4293
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address"
|
|
4294
|
-
},
|
|
4295
|
-
{
|
|
4296
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address"
|
|
4297
|
-
},
|
|
4298
|
-
{ path: "calculatedDraftOrder.draftOrder.billingInfo.address" },
|
|
4299
|
-
{
|
|
4300
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address"
|
|
4301
|
-
},
|
|
4302
|
-
{
|
|
4303
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address"
|
|
4304
|
-
},
|
|
4305
|
-
{
|
|
4306
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address"
|
|
4307
|
-
},
|
|
4308
|
-
{
|
|
4309
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address"
|
|
4310
|
-
},
|
|
4311
|
-
{
|
|
4312
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address"
|
|
4313
|
-
}
|
|
4314
|
-
]
|
|
2265
|
+
paths: TRANSFORM_PATHS_42
|
|
4315
2266
|
}
|
|
4316
2267
|
])
|
|
4317
2268
|
);
|
|
@@ -4347,44 +2298,11 @@ async function deleteCustomDiscounts2(draftOrderId, discountIds) {
|
|
|
4347
2298
|
transformPaths2(result.data, [
|
|
4348
2299
|
{
|
|
4349
2300
|
transformFn: transformRESTImageToSDKImage,
|
|
4350
|
-
paths:
|
|
4351
|
-
{
|
|
4352
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image"
|
|
4353
|
-
}
|
|
4354
|
-
]
|
|
2301
|
+
paths: TRANSFORM_PATHS_32
|
|
4355
2302
|
},
|
|
4356
2303
|
{
|
|
4357
2304
|
transformFn: transformRESTAddressToSDKAddress,
|
|
4358
|
-
paths:
|
|
4359
|
-
{
|
|
4360
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address"
|
|
4361
|
-
},
|
|
4362
|
-
{
|
|
4363
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address"
|
|
4364
|
-
},
|
|
4365
|
-
{
|
|
4366
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address"
|
|
4367
|
-
},
|
|
4368
|
-
{
|
|
4369
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address"
|
|
4370
|
-
},
|
|
4371
|
-
{ path: "calculatedDraftOrder.draftOrder.billingInfo.address" },
|
|
4372
|
-
{
|
|
4373
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address"
|
|
4374
|
-
},
|
|
4375
|
-
{
|
|
4376
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address"
|
|
4377
|
-
},
|
|
4378
|
-
{
|
|
4379
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address"
|
|
4380
|
-
},
|
|
4381
|
-
{
|
|
4382
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address"
|
|
4383
|
-
},
|
|
4384
|
-
{
|
|
4385
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address"
|
|
4386
|
-
}
|
|
4387
|
-
]
|
|
2305
|
+
paths: TRANSFORM_PATHS_42
|
|
4388
2306
|
}
|
|
4389
2307
|
])
|
|
4390
2308
|
);
|
|
@@ -4417,44 +2335,11 @@ async function setAdditionalFees2(draftOrderId, additionalFees) {
|
|
|
4417
2335
|
transformPaths2(result.data, [
|
|
4418
2336
|
{
|
|
4419
2337
|
transformFn: transformRESTImageToSDKImage,
|
|
4420
|
-
paths:
|
|
4421
|
-
{
|
|
4422
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image"
|
|
4423
|
-
}
|
|
4424
|
-
]
|
|
2338
|
+
paths: TRANSFORM_PATHS_32
|
|
4425
2339
|
},
|
|
4426
2340
|
{
|
|
4427
2341
|
transformFn: transformRESTAddressToSDKAddress,
|
|
4428
|
-
paths:
|
|
4429
|
-
{
|
|
4430
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address"
|
|
4431
|
-
},
|
|
4432
|
-
{
|
|
4433
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address"
|
|
4434
|
-
},
|
|
4435
|
-
{
|
|
4436
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address"
|
|
4437
|
-
},
|
|
4438
|
-
{
|
|
4439
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address"
|
|
4440
|
-
},
|
|
4441
|
-
{ path: "calculatedDraftOrder.draftOrder.billingInfo.address" },
|
|
4442
|
-
{
|
|
4443
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address"
|
|
4444
|
-
},
|
|
4445
|
-
{
|
|
4446
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address"
|
|
4447
|
-
},
|
|
4448
|
-
{
|
|
4449
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address"
|
|
4450
|
-
},
|
|
4451
|
-
{
|
|
4452
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address"
|
|
4453
|
-
},
|
|
4454
|
-
{
|
|
4455
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address"
|
|
4456
|
-
}
|
|
4457
|
-
]
|
|
2342
|
+
paths: TRANSFORM_PATHS_42
|
|
4458
2343
|
}
|
|
4459
2344
|
])
|
|
4460
2345
|
);
|
|
@@ -4491,44 +2376,11 @@ async function createCustomAdditionalFees2(draftOrderId, options) {
|
|
|
4491
2376
|
transformPaths2(result.data, [
|
|
4492
2377
|
{
|
|
4493
2378
|
transformFn: transformRESTImageToSDKImage,
|
|
4494
|
-
paths:
|
|
4495
|
-
{
|
|
4496
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image"
|
|
4497
|
-
}
|
|
4498
|
-
]
|
|
2379
|
+
paths: TRANSFORM_PATHS_32
|
|
4499
2380
|
},
|
|
4500
2381
|
{
|
|
4501
2382
|
transformFn: transformRESTAddressToSDKAddress,
|
|
4502
|
-
paths:
|
|
4503
|
-
{
|
|
4504
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address"
|
|
4505
|
-
},
|
|
4506
|
-
{
|
|
4507
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address"
|
|
4508
|
-
},
|
|
4509
|
-
{
|
|
4510
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address"
|
|
4511
|
-
},
|
|
4512
|
-
{
|
|
4513
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address"
|
|
4514
|
-
},
|
|
4515
|
-
{ path: "calculatedDraftOrder.draftOrder.billingInfo.address" },
|
|
4516
|
-
{
|
|
4517
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address"
|
|
4518
|
-
},
|
|
4519
|
-
{
|
|
4520
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address"
|
|
4521
|
-
},
|
|
4522
|
-
{
|
|
4523
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address"
|
|
4524
|
-
},
|
|
4525
|
-
{
|
|
4526
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address"
|
|
4527
|
-
},
|
|
4528
|
-
{
|
|
4529
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address"
|
|
4530
|
-
}
|
|
4531
|
-
]
|
|
2383
|
+
paths: TRANSFORM_PATHS_42
|
|
4532
2384
|
}
|
|
4533
2385
|
])
|
|
4534
2386
|
);
|
|
@@ -4565,44 +2417,11 @@ async function deleteCustomAdditionalFees2(draftOrderId, customAdditionalFees) {
|
|
|
4565
2417
|
transformPaths2(result.data, [
|
|
4566
2418
|
{
|
|
4567
2419
|
transformFn: transformRESTImageToSDKImage,
|
|
4568
|
-
paths:
|
|
4569
|
-
{
|
|
4570
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image"
|
|
4571
|
-
}
|
|
4572
|
-
]
|
|
2420
|
+
paths: TRANSFORM_PATHS_32
|
|
4573
2421
|
},
|
|
4574
2422
|
{
|
|
4575
2423
|
transformFn: transformRESTAddressToSDKAddress,
|
|
4576
|
-
paths:
|
|
4577
|
-
{
|
|
4578
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address"
|
|
4579
|
-
},
|
|
4580
|
-
{
|
|
4581
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address"
|
|
4582
|
-
},
|
|
4583
|
-
{
|
|
4584
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address"
|
|
4585
|
-
},
|
|
4586
|
-
{
|
|
4587
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address"
|
|
4588
|
-
},
|
|
4589
|
-
{ path: "calculatedDraftOrder.draftOrder.billingInfo.address" },
|
|
4590
|
-
{
|
|
4591
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address"
|
|
4592
|
-
},
|
|
4593
|
-
{
|
|
4594
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address"
|
|
4595
|
-
},
|
|
4596
|
-
{
|
|
4597
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address"
|
|
4598
|
-
},
|
|
4599
|
-
{
|
|
4600
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address"
|
|
4601
|
-
},
|
|
4602
|
-
{
|
|
4603
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address"
|
|
4604
|
-
}
|
|
4605
|
-
]
|
|
2424
|
+
paths: TRANSFORM_PATHS_42
|
|
4606
2425
|
}
|
|
4607
2426
|
])
|
|
4608
2427
|
);
|
|
@@ -4633,10 +2452,7 @@ async function setShippingInfo2(draftOrderId, options) {
|
|
|
4633
2452
|
[
|
|
4634
2453
|
{
|
|
4635
2454
|
transformFn: transformSDKAddressToRESTAddress,
|
|
4636
|
-
paths:
|
|
4637
|
-
{ path: "shippingInfo.logistics.shippingDestination.address" },
|
|
4638
|
-
{ path: "shippingInfo.logistics.pickupDetails.address" }
|
|
4639
|
-
]
|
|
2455
|
+
paths: TRANSFORM_PATHS_72
|
|
4640
2456
|
}
|
|
4641
2457
|
]
|
|
4642
2458
|
);
|
|
@@ -4649,44 +2465,11 @@ async function setShippingInfo2(draftOrderId, options) {
|
|
|
4649
2465
|
transformPaths2(result.data, [
|
|
4650
2466
|
{
|
|
4651
2467
|
transformFn: transformRESTImageToSDKImage,
|
|
4652
|
-
paths:
|
|
4653
|
-
{
|
|
4654
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image"
|
|
4655
|
-
}
|
|
4656
|
-
]
|
|
2468
|
+
paths: TRANSFORM_PATHS_32
|
|
4657
2469
|
},
|
|
4658
2470
|
{
|
|
4659
2471
|
transformFn: transformRESTAddressToSDKAddress,
|
|
4660
|
-
paths:
|
|
4661
|
-
{
|
|
4662
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address"
|
|
4663
|
-
},
|
|
4664
|
-
{
|
|
4665
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address"
|
|
4666
|
-
},
|
|
4667
|
-
{
|
|
4668
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address"
|
|
4669
|
-
},
|
|
4670
|
-
{
|
|
4671
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address"
|
|
4672
|
-
},
|
|
4673
|
-
{ path: "calculatedDraftOrder.draftOrder.billingInfo.address" },
|
|
4674
|
-
{
|
|
4675
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address"
|
|
4676
|
-
},
|
|
4677
|
-
{
|
|
4678
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address"
|
|
4679
|
-
},
|
|
4680
|
-
{
|
|
4681
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address"
|
|
4682
|
-
},
|
|
4683
|
-
{
|
|
4684
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address"
|
|
4685
|
-
},
|
|
4686
|
-
{
|
|
4687
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address"
|
|
4688
|
-
}
|
|
4689
|
-
]
|
|
2472
|
+
paths: TRANSFORM_PATHS_42
|
|
4690
2473
|
}
|
|
4691
2474
|
])
|
|
4692
2475
|
);
|
|
@@ -4722,44 +2505,11 @@ async function setBuyerInfo2(draftOrderId, options) {
|
|
|
4722
2505
|
transformPaths2(result.data, [
|
|
4723
2506
|
{
|
|
4724
2507
|
transformFn: transformRESTImageToSDKImage,
|
|
4725
|
-
paths:
|
|
4726
|
-
{
|
|
4727
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image"
|
|
4728
|
-
}
|
|
4729
|
-
]
|
|
2508
|
+
paths: TRANSFORM_PATHS_32
|
|
4730
2509
|
},
|
|
4731
2510
|
{
|
|
4732
2511
|
transformFn: transformRESTAddressToSDKAddress,
|
|
4733
|
-
paths:
|
|
4734
|
-
{
|
|
4735
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address"
|
|
4736
|
-
},
|
|
4737
|
-
{
|
|
4738
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address"
|
|
4739
|
-
},
|
|
4740
|
-
{
|
|
4741
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address"
|
|
4742
|
-
},
|
|
4743
|
-
{
|
|
4744
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address"
|
|
4745
|
-
},
|
|
4746
|
-
{ path: "calculatedDraftOrder.draftOrder.billingInfo.address" },
|
|
4747
|
-
{
|
|
4748
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address"
|
|
4749
|
-
},
|
|
4750
|
-
{
|
|
4751
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address"
|
|
4752
|
-
},
|
|
4753
|
-
{
|
|
4754
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address"
|
|
4755
|
-
},
|
|
4756
|
-
{
|
|
4757
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address"
|
|
4758
|
-
},
|
|
4759
|
-
{
|
|
4760
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address"
|
|
4761
|
-
}
|
|
4762
|
-
]
|
|
2512
|
+
paths: TRANSFORM_PATHS_42
|
|
4763
2513
|
}
|
|
4764
2514
|
])
|
|
4765
2515
|
);
|
|
@@ -4790,7 +2540,7 @@ async function setRecipientInfo2(draftOrderId, options) {
|
|
|
4790
2540
|
[
|
|
4791
2541
|
{
|
|
4792
2542
|
transformFn: transformSDKAddressToRESTAddress,
|
|
4793
|
-
paths:
|
|
2543
|
+
paths: TRANSFORM_PATHS_82
|
|
4794
2544
|
}
|
|
4795
2545
|
]
|
|
4796
2546
|
);
|
|
@@ -4803,44 +2553,11 @@ async function setRecipientInfo2(draftOrderId, options) {
|
|
|
4803
2553
|
transformPaths2(result.data, [
|
|
4804
2554
|
{
|
|
4805
2555
|
transformFn: transformRESTImageToSDKImage,
|
|
4806
|
-
paths:
|
|
4807
|
-
{
|
|
4808
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image"
|
|
4809
|
-
}
|
|
4810
|
-
]
|
|
2556
|
+
paths: TRANSFORM_PATHS_32
|
|
4811
2557
|
},
|
|
4812
2558
|
{
|
|
4813
2559
|
transformFn: transformRESTAddressToSDKAddress,
|
|
4814
|
-
paths:
|
|
4815
|
-
{
|
|
4816
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address"
|
|
4817
|
-
},
|
|
4818
|
-
{
|
|
4819
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address"
|
|
4820
|
-
},
|
|
4821
|
-
{
|
|
4822
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address"
|
|
4823
|
-
},
|
|
4824
|
-
{
|
|
4825
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address"
|
|
4826
|
-
},
|
|
4827
|
-
{ path: "calculatedDraftOrder.draftOrder.billingInfo.address" },
|
|
4828
|
-
{
|
|
4829
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address"
|
|
4830
|
-
},
|
|
4831
|
-
{
|
|
4832
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address"
|
|
4833
|
-
},
|
|
4834
|
-
{
|
|
4835
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address"
|
|
4836
|
-
},
|
|
4837
|
-
{
|
|
4838
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address"
|
|
4839
|
-
},
|
|
4840
|
-
{
|
|
4841
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address"
|
|
4842
|
-
}
|
|
4843
|
-
]
|
|
2560
|
+
paths: TRANSFORM_PATHS_42
|
|
4844
2561
|
}
|
|
4845
2562
|
])
|
|
4846
2563
|
);
|
|
@@ -4871,7 +2588,7 @@ async function setBillingInfo2(draftOrderId, options) {
|
|
|
4871
2588
|
[
|
|
4872
2589
|
{
|
|
4873
2590
|
transformFn: transformSDKAddressToRESTAddress,
|
|
4874
|
-
paths:
|
|
2591
|
+
paths: TRANSFORM_PATHS_92
|
|
4875
2592
|
}
|
|
4876
2593
|
]
|
|
4877
2594
|
);
|
|
@@ -4884,44 +2601,11 @@ async function setBillingInfo2(draftOrderId, options) {
|
|
|
4884
2601
|
transformPaths2(result.data, [
|
|
4885
2602
|
{
|
|
4886
2603
|
transformFn: transformRESTImageToSDKImage,
|
|
4887
|
-
paths:
|
|
4888
|
-
{
|
|
4889
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image"
|
|
4890
|
-
}
|
|
4891
|
-
]
|
|
2604
|
+
paths: TRANSFORM_PATHS_32
|
|
4892
2605
|
},
|
|
4893
2606
|
{
|
|
4894
2607
|
transformFn: transformRESTAddressToSDKAddress,
|
|
4895
|
-
paths:
|
|
4896
|
-
{
|
|
4897
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address"
|
|
4898
|
-
},
|
|
4899
|
-
{
|
|
4900
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address"
|
|
4901
|
-
},
|
|
4902
|
-
{
|
|
4903
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address"
|
|
4904
|
-
},
|
|
4905
|
-
{
|
|
4906
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address"
|
|
4907
|
-
},
|
|
4908
|
-
{ path: "calculatedDraftOrder.draftOrder.billingInfo.address" },
|
|
4909
|
-
{
|
|
4910
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address"
|
|
4911
|
-
},
|
|
4912
|
-
{
|
|
4913
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address"
|
|
4914
|
-
},
|
|
4915
|
-
{
|
|
4916
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address"
|
|
4917
|
-
},
|
|
4918
|
-
{
|
|
4919
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address"
|
|
4920
|
-
},
|
|
4921
|
-
{
|
|
4922
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address"
|
|
4923
|
-
}
|
|
4924
|
-
]
|
|
2608
|
+
paths: TRANSFORM_PATHS_42
|
|
4925
2609
|
}
|
|
4926
2610
|
])
|
|
4927
2611
|
);
|
|
@@ -4956,44 +2640,11 @@ async function getDraftOrder2(draftOrderId) {
|
|
|
4956
2640
|
transformPaths2(result.data, [
|
|
4957
2641
|
{
|
|
4958
2642
|
transformFn: transformRESTImageToSDKImage,
|
|
4959
|
-
paths:
|
|
4960
|
-
{
|
|
4961
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image"
|
|
4962
|
-
}
|
|
4963
|
-
]
|
|
2643
|
+
paths: TRANSFORM_PATHS_32
|
|
4964
2644
|
},
|
|
4965
2645
|
{
|
|
4966
2646
|
transformFn: transformRESTAddressToSDKAddress,
|
|
4967
|
-
paths:
|
|
4968
|
-
{
|
|
4969
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address"
|
|
4970
|
-
},
|
|
4971
|
-
{
|
|
4972
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address"
|
|
4973
|
-
},
|
|
4974
|
-
{
|
|
4975
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address"
|
|
4976
|
-
},
|
|
4977
|
-
{
|
|
4978
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address"
|
|
4979
|
-
},
|
|
4980
|
-
{ path: "calculatedDraftOrder.draftOrder.billingInfo.address" },
|
|
4981
|
-
{
|
|
4982
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address"
|
|
4983
|
-
},
|
|
4984
|
-
{
|
|
4985
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address"
|
|
4986
|
-
},
|
|
4987
|
-
{
|
|
4988
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address"
|
|
4989
|
-
},
|
|
4990
|
-
{
|
|
4991
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address"
|
|
4992
|
-
},
|
|
4993
|
-
{
|
|
4994
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address"
|
|
4995
|
-
}
|
|
4996
|
-
]
|
|
2647
|
+
paths: TRANSFORM_PATHS_42
|
|
4997
2648
|
}
|
|
4998
2649
|
])
|
|
4999
2650
|
);
|
|
@@ -5050,44 +2701,11 @@ async function commitDraftOrder2(draftOrderId, options) {
|
|
|
5050
2701
|
transformPaths2(result.data, [
|
|
5051
2702
|
{
|
|
5052
2703
|
transformFn: transformRESTImageToSDKImage,
|
|
5053
|
-
paths:
|
|
5054
|
-
{ path: "committedDraftOrder.lineItems.lineItem.image" },
|
|
5055
|
-
{ path: "orderAfterCommit.lineItems.image" }
|
|
5056
|
-
]
|
|
2704
|
+
paths: TRANSFORM_PATHS_102
|
|
5057
2705
|
},
|
|
5058
2706
|
{
|
|
5059
2707
|
transformFn: transformRESTAddressToSDKAddress,
|
|
5060
|
-
paths:
|
|
5061
|
-
{
|
|
5062
|
-
path: "committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address"
|
|
5063
|
-
},
|
|
5064
|
-
{
|
|
5065
|
-
path: "committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address"
|
|
5066
|
-
},
|
|
5067
|
-
{
|
|
5068
|
-
path: "committedDraftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address"
|
|
5069
|
-
},
|
|
5070
|
-
{
|
|
5071
|
-
path: "committedDraftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address"
|
|
5072
|
-
},
|
|
5073
|
-
{ path: "committedDraftOrder.billingInfo.address" },
|
|
5074
|
-
{
|
|
5075
|
-
path: "committedDraftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address"
|
|
5076
|
-
},
|
|
5077
|
-
{ path: "committedDraftOrder.recipientInfo.recipientInfo.address" },
|
|
5078
|
-
{
|
|
5079
|
-
path: "committedDraftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address"
|
|
5080
|
-
},
|
|
5081
|
-
{ path: "committedDraftOrder.billingDetails.billingInfo.address" },
|
|
5082
|
-
{ path: "orderAfterCommit.billingInfo.address" },
|
|
5083
|
-
{
|
|
5084
|
-
path: "orderAfterCommit.shippingInfo.logistics.shippingDestination.address"
|
|
5085
|
-
},
|
|
5086
|
-
{
|
|
5087
|
-
path: "orderAfterCommit.shippingInfo.logistics.pickupDetails.address"
|
|
5088
|
-
},
|
|
5089
|
-
{ path: "orderAfterCommit.recipientInfo.address" }
|
|
5090
|
-
]
|
|
2708
|
+
paths: TRANSFORM_PATHS_112
|
|
5091
2709
|
}
|
|
5092
2710
|
])
|
|
5093
2711
|
);
|
|
@@ -5126,44 +2744,11 @@ async function createOrderFromDraft2(draftOrderId, options) {
|
|
|
5126
2744
|
transformPaths2(result.data, [
|
|
5127
2745
|
{
|
|
5128
2746
|
transformFn: transformRESTImageToSDKImage,
|
|
5129
|
-
paths:
|
|
5130
|
-
{ path: "committedDraftOrder.lineItems.lineItem.image" },
|
|
5131
|
-
{ path: "createdOrder.lineItems.image" }
|
|
5132
|
-
]
|
|
2747
|
+
paths: TRANSFORM_PATHS_122
|
|
5133
2748
|
},
|
|
5134
2749
|
{
|
|
5135
2750
|
transformFn: transformRESTAddressToSDKAddress,
|
|
5136
|
-
paths:
|
|
5137
|
-
{
|
|
5138
|
-
path: "committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address"
|
|
5139
|
-
},
|
|
5140
|
-
{
|
|
5141
|
-
path: "committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address"
|
|
5142
|
-
},
|
|
5143
|
-
{
|
|
5144
|
-
path: "committedDraftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address"
|
|
5145
|
-
},
|
|
5146
|
-
{
|
|
5147
|
-
path: "committedDraftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address"
|
|
5148
|
-
},
|
|
5149
|
-
{ path: "committedDraftOrder.billingInfo.address" },
|
|
5150
|
-
{
|
|
5151
|
-
path: "committedDraftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address"
|
|
5152
|
-
},
|
|
5153
|
-
{ path: "committedDraftOrder.recipientInfo.recipientInfo.address" },
|
|
5154
|
-
{
|
|
5155
|
-
path: "committedDraftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address"
|
|
5156
|
-
},
|
|
5157
|
-
{ path: "committedDraftOrder.billingDetails.billingInfo.address" },
|
|
5158
|
-
{ path: "createdOrder.billingInfo.address" },
|
|
5159
|
-
{
|
|
5160
|
-
path: "createdOrder.shippingInfo.logistics.shippingDestination.address"
|
|
5161
|
-
},
|
|
5162
|
-
{
|
|
5163
|
-
path: "createdOrder.shippingInfo.logistics.pickupDetails.address"
|
|
5164
|
-
},
|
|
5165
|
-
{ path: "createdOrder.recipientInfo.address" }
|
|
5166
|
-
]
|
|
2751
|
+
paths: TRANSFORM_PATHS_132
|
|
5167
2752
|
}
|
|
5168
2753
|
])
|
|
5169
2754
|
);
|
|
@@ -5238,33 +2823,11 @@ function queryDraftOrders2() {
|
|
|
5238
2823
|
transformPaths2(data, [
|
|
5239
2824
|
{
|
|
5240
2825
|
transformFn: transformRESTImageToSDKImage,
|
|
5241
|
-
paths:
|
|
2826
|
+
paths: TRANSFORM_PATHS_142
|
|
5242
2827
|
},
|
|
5243
2828
|
{
|
|
5244
2829
|
transformFn: transformRESTAddressToSDKAddress,
|
|
5245
|
-
paths:
|
|
5246
|
-
{
|
|
5247
|
-
path: "draftOrders.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address"
|
|
5248
|
-
},
|
|
5249
|
-
{
|
|
5250
|
-
path: "draftOrders.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address"
|
|
5251
|
-
},
|
|
5252
|
-
{
|
|
5253
|
-
path: "draftOrders.shippingInfo.shippingInfo.logistics.shippingDestination.address"
|
|
5254
|
-
},
|
|
5255
|
-
{
|
|
5256
|
-
path: "draftOrders.shippingInfo.shippingInfo.logistics.pickupDetails.address"
|
|
5257
|
-
},
|
|
5258
|
-
{ path: "draftOrders.billingInfo.address" },
|
|
5259
|
-
{
|
|
5260
|
-
path: "draftOrders.recipientInfo.changedDetails.recipientInfoBeforeChange.address"
|
|
5261
|
-
},
|
|
5262
|
-
{ path: "draftOrders.recipientInfo.recipientInfo.address" },
|
|
5263
|
-
{
|
|
5264
|
-
path: "draftOrders.billingDetails.changedDetails.billingInfoBeforeChange.address"
|
|
5265
|
-
},
|
|
5266
|
-
{ path: "draftOrders.billingDetails.billingInfo.address" }
|
|
5267
|
-
]
|
|
2830
|
+
paths: TRANSFORM_PATHS_152
|
|
5268
2831
|
}
|
|
5269
2832
|
])
|
|
5270
2833
|
);
|
|
@@ -5297,33 +2860,11 @@ async function typedQueryDraftOrders(query) {
|
|
|
5297
2860
|
transformPaths2(result.data, [
|
|
5298
2861
|
{
|
|
5299
2862
|
transformFn: transformRESTImageToSDKImage,
|
|
5300
|
-
paths:
|
|
2863
|
+
paths: TRANSFORM_PATHS_142
|
|
5301
2864
|
},
|
|
5302
2865
|
{
|
|
5303
2866
|
transformFn: transformRESTAddressToSDKAddress,
|
|
5304
|
-
paths:
|
|
5305
|
-
{
|
|
5306
|
-
path: "draftOrders.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address"
|
|
5307
|
-
},
|
|
5308
|
-
{
|
|
5309
|
-
path: "draftOrders.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address"
|
|
5310
|
-
},
|
|
5311
|
-
{
|
|
5312
|
-
path: "draftOrders.shippingInfo.shippingInfo.logistics.shippingDestination.address"
|
|
5313
|
-
},
|
|
5314
|
-
{
|
|
5315
|
-
path: "draftOrders.shippingInfo.shippingInfo.logistics.pickupDetails.address"
|
|
5316
|
-
},
|
|
5317
|
-
{ path: "draftOrders.billingInfo.address" },
|
|
5318
|
-
{
|
|
5319
|
-
path: "draftOrders.recipientInfo.changedDetails.recipientInfoBeforeChange.address"
|
|
5320
|
-
},
|
|
5321
|
-
{ path: "draftOrders.recipientInfo.recipientInfo.address" },
|
|
5322
|
-
{
|
|
5323
|
-
path: "draftOrders.billingDetails.changedDetails.billingInfoBeforeChange.address"
|
|
5324
|
-
},
|
|
5325
|
-
{ path: "draftOrders.billingDetails.billingInfo.address" }
|
|
5326
|
-
]
|
|
2867
|
+
paths: TRANSFORM_PATHS_152
|
|
5327
2868
|
}
|
|
5328
2869
|
])
|
|
5329
2870
|
);
|
|
@@ -5360,33 +2901,11 @@ async function updateExtendedFields2(_id, namespace, options) {
|
|
|
5360
2901
|
transformPaths2(result.data, [
|
|
5361
2902
|
{
|
|
5362
2903
|
transformFn: transformRESTImageToSDKImage,
|
|
5363
|
-
paths:
|
|
2904
|
+
paths: TRANSFORM_PATHS_162
|
|
5364
2905
|
},
|
|
5365
2906
|
{
|
|
5366
2907
|
transformFn: transformRESTAddressToSDKAddress,
|
|
5367
|
-
paths:
|
|
5368
|
-
{
|
|
5369
|
-
path: "draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address"
|
|
5370
|
-
},
|
|
5371
|
-
{
|
|
5372
|
-
path: "draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address"
|
|
5373
|
-
},
|
|
5374
|
-
{
|
|
5375
|
-
path: "draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address"
|
|
5376
|
-
},
|
|
5377
|
-
{
|
|
5378
|
-
path: "draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address"
|
|
5379
|
-
},
|
|
5380
|
-
{ path: "draftOrder.billingInfo.address" },
|
|
5381
|
-
{
|
|
5382
|
-
path: "draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address"
|
|
5383
|
-
},
|
|
5384
|
-
{ path: "draftOrder.recipientInfo.recipientInfo.address" },
|
|
5385
|
-
{
|
|
5386
|
-
path: "draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address"
|
|
5387
|
-
},
|
|
5388
|
-
{ path: "draftOrder.billingDetails.billingInfo.address" }
|
|
5389
|
-
]
|
|
2908
|
+
paths: TRANSFORM_PATHS_172
|
|
5390
2909
|
}
|
|
5391
2910
|
])
|
|
5392
2911
|
);
|
|
@@ -5423,44 +2942,11 @@ async function setTaxExemption2(draftOrderId, options) {
|
|
|
5423
2942
|
transformPaths2(result.data, [
|
|
5424
2943
|
{
|
|
5425
2944
|
transformFn: transformRESTImageToSDKImage,
|
|
5426
|
-
paths:
|
|
5427
|
-
{
|
|
5428
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image"
|
|
5429
|
-
}
|
|
5430
|
-
]
|
|
2945
|
+
paths: TRANSFORM_PATHS_32
|
|
5431
2946
|
},
|
|
5432
2947
|
{
|
|
5433
2948
|
transformFn: transformRESTAddressToSDKAddress,
|
|
5434
|
-
paths:
|
|
5435
|
-
{
|
|
5436
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address"
|
|
5437
|
-
},
|
|
5438
|
-
{
|
|
5439
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address"
|
|
5440
|
-
},
|
|
5441
|
-
{
|
|
5442
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address"
|
|
5443
|
-
},
|
|
5444
|
-
{
|
|
5445
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address"
|
|
5446
|
-
},
|
|
5447
|
-
{ path: "calculatedDraftOrder.draftOrder.billingInfo.address" },
|
|
5448
|
-
{
|
|
5449
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address"
|
|
5450
|
-
},
|
|
5451
|
-
{
|
|
5452
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address"
|
|
5453
|
-
},
|
|
5454
|
-
{
|
|
5455
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address"
|
|
5456
|
-
},
|
|
5457
|
-
{
|
|
5458
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address"
|
|
5459
|
-
},
|
|
5460
|
-
{
|
|
5461
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address"
|
|
5462
|
-
}
|
|
5463
|
-
]
|
|
2949
|
+
paths: TRANSFORM_PATHS_42
|
|
5464
2950
|
}
|
|
5465
2951
|
])
|
|
5466
2952
|
);
|
|
@@ -5496,44 +2982,11 @@ async function setBusinessLocation2(draftOrderId, options) {
|
|
|
5496
2982
|
transformPaths2(result.data, [
|
|
5497
2983
|
{
|
|
5498
2984
|
transformFn: transformRESTImageToSDKImage,
|
|
5499
|
-
paths:
|
|
5500
|
-
{
|
|
5501
|
-
path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.image"
|
|
5502
|
-
}
|
|
5503
|
-
]
|
|
2985
|
+
paths: TRANSFORM_PATHS_32
|
|
5504
2986
|
},
|
|
5505
2987
|
{
|
|
5506
2988
|
transformFn: transformRESTAddressToSDKAddress,
|
|
5507
|
-
paths:
|
|
5508
|
-
{
|
|
5509
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address"
|
|
5510
|
-
},
|
|
5511
|
-
{
|
|
5512
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address"
|
|
5513
|
-
},
|
|
5514
|
-
{
|
|
5515
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address"
|
|
5516
|
-
},
|
|
5517
|
-
{
|
|
5518
|
-
path: "calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address"
|
|
5519
|
-
},
|
|
5520
|
-
{ path: "calculatedDraftOrder.draftOrder.billingInfo.address" },
|
|
5521
|
-
{
|
|
5522
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address"
|
|
5523
|
-
},
|
|
5524
|
-
{
|
|
5525
|
-
path: "calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address"
|
|
5526
|
-
},
|
|
5527
|
-
{
|
|
5528
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address"
|
|
5529
|
-
},
|
|
5530
|
-
{
|
|
5531
|
-
path: "calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address"
|
|
5532
|
-
},
|
|
5533
|
-
{
|
|
5534
|
-
path: "calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address"
|
|
5535
|
-
}
|
|
5536
|
-
]
|
|
2989
|
+
paths: TRANSFORM_PATHS_42
|
|
5537
2990
|
}
|
|
5538
2991
|
])
|
|
5539
2992
|
);
|
|
@@ -5587,6 +3040,7 @@ export {
|
|
|
5587
3040
|
SortOrder,
|
|
5588
3041
|
SourceType,
|
|
5589
3042
|
SpecificItemsCouponBehavior,
|
|
3043
|
+
SubscriptionActivation,
|
|
5590
3044
|
SubscriptionFrequency,
|
|
5591
3045
|
TaxableAddressType,
|
|
5592
3046
|
V1OrderStatus,
|