@wix/auto_sdk_ecom_checkout 1.0.174 → 1.0.175
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.js +598 -1208
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.js +340 -950
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.js +244 -750
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs +598 -1208
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.mjs +340 -950
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.mjs +244 -750
- package/build/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.js
CHANGED
|
@@ -95,6 +95,222 @@ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
|
95
95
|
var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
|
|
96
96
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
97
97
|
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
98
|
+
var TRANSFORM_PATHS_0 = [
|
|
99
|
+
{ path: "checkoutInfo.createdDate" },
|
|
100
|
+
{ path: "checkoutInfo.updatedDate" },
|
|
101
|
+
{ path: "checkoutInfo.lineItems.media.urlExpirationDate" },
|
|
102
|
+
{
|
|
103
|
+
path: "checkoutInfo.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
104
|
+
},
|
|
105
|
+
{ path: "checkoutInfo.lineItems.serviceProperties.scheduledDate" },
|
|
106
|
+
{ path: "checkoutInfo.lineItems.serviceProperties.endDate" },
|
|
107
|
+
{
|
|
108
|
+
path: "checkoutInfo.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
path: "checkoutInfo.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
path: "checkoutInfo.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
path: "checkoutInfo.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
118
|
+
},
|
|
119
|
+
{ path: "checkoutInfo.membershipOptions.eligibleMemberships.expirationDate" },
|
|
120
|
+
{
|
|
121
|
+
path: "checkoutInfo.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
122
|
+
},
|
|
123
|
+
{ path: "checkoutInfo.subscriptionCharges.charges.cycleBillingDate" },
|
|
124
|
+
{ path: "lineItems.media.urlExpirationDate" },
|
|
125
|
+
{ path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate" },
|
|
126
|
+
{ path: "lineItems.serviceProperties.scheduledDate" },
|
|
127
|
+
{ path: "lineItems.serviceProperties.endDate" },
|
|
128
|
+
{
|
|
129
|
+
path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
130
|
+
},
|
|
131
|
+
{ path: "customLineItems.serviceProperties.scheduledDate" },
|
|
132
|
+
{ path: "customLineItems.serviceProperties.endDate" }
|
|
133
|
+
];
|
|
134
|
+
var TRANSFORM_PATHS_1 = [
|
|
135
|
+
{ path: "checkoutInfo.lineItems.media.focalPoint.x" },
|
|
136
|
+
{ path: "checkoutInfo.lineItems.media.focalPoint.y" },
|
|
137
|
+
{ path: "lineItems.media.focalPoint.x" },
|
|
138
|
+
{ path: "lineItems.media.focalPoint.y" },
|
|
139
|
+
{ path: "checkoutInfo.lineItems.physicalProperties.weight" },
|
|
140
|
+
{
|
|
141
|
+
path: "checkoutInfo.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
142
|
+
},
|
|
143
|
+
{ path: "checkoutInfo.billingInfo.address.geocode.latitude" },
|
|
144
|
+
{ path: "checkoutInfo.billingInfo.address.geocode.longitude" },
|
|
145
|
+
{
|
|
146
|
+
path: "checkoutInfo.shippingInfo.shippingDestination.address.geocode.latitude"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
path: "checkoutInfo.shippingInfo.shippingDestination.address.geocode.longitude"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
path: "checkoutInfo.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
path: "checkoutInfo.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
path: "checkoutInfo.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
path: "checkoutInfo.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
162
|
+
},
|
|
163
|
+
{ path: "checkoutInfo.appliedDiscounts.merchantDiscount.percentage" },
|
|
164
|
+
{ path: "lineItems.physicalProperties.weight" },
|
|
165
|
+
{ path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
|
|
166
|
+
{ path: "customLineItems.physicalProperties.weight" }
|
|
167
|
+
];
|
|
168
|
+
var TRANSFORM_PATHS_2 = [
|
|
169
|
+
{ path: "checkout.createdDate" },
|
|
170
|
+
{ path: "checkout.updatedDate" },
|
|
171
|
+
{ path: "checkout.lineItems.media.urlExpirationDate" },
|
|
172
|
+
{
|
|
173
|
+
path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
174
|
+
},
|
|
175
|
+
{ path: "checkout.lineItems.serviceProperties.scheduledDate" },
|
|
176
|
+
{ path: "checkout.lineItems.serviceProperties.endDate" },
|
|
177
|
+
{
|
|
178
|
+
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
188
|
+
},
|
|
189
|
+
{ path: "checkout.membershipOptions.eligibleMemberships.expirationDate" },
|
|
190
|
+
{
|
|
191
|
+
path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
192
|
+
},
|
|
193
|
+
{ path: "checkout.subscriptionCharges.charges.cycleBillingDate" }
|
|
194
|
+
];
|
|
195
|
+
var TRANSFORM_PATHS_3 = [
|
|
196
|
+
{ path: "checkout.lineItems.media.focalPoint.x" },
|
|
197
|
+
{ path: "checkout.lineItems.media.focalPoint.y" },
|
|
198
|
+
{ path: "checkout.lineItems.physicalProperties.weight" },
|
|
199
|
+
{
|
|
200
|
+
path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
201
|
+
},
|
|
202
|
+
{ path: "checkout.billingInfo.address.geocode.latitude" },
|
|
203
|
+
{ path: "checkout.billingInfo.address.geocode.longitude" },
|
|
204
|
+
{
|
|
205
|
+
path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
221
|
+
},
|
|
222
|
+
{ path: "checkout.appliedDiscounts.merchantDiscount.percentage" }
|
|
223
|
+
];
|
|
224
|
+
var TRANSFORM_PATHS_4 = [{ path: "fieldMask" }];
|
|
225
|
+
var TRANSFORM_PATHS_5 = [
|
|
226
|
+
{ path: "checkout.createdDate" },
|
|
227
|
+
{ path: "checkout.updatedDate" },
|
|
228
|
+
{ path: "checkout.lineItems.media.urlExpirationDate" },
|
|
229
|
+
{
|
|
230
|
+
path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
231
|
+
},
|
|
232
|
+
{ path: "checkout.lineItems.serviceProperties.scheduledDate" },
|
|
233
|
+
{ path: "checkout.lineItems.serviceProperties.endDate" },
|
|
234
|
+
{
|
|
235
|
+
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
245
|
+
},
|
|
246
|
+
{ path: "checkout.membershipOptions.eligibleMemberships.expirationDate" },
|
|
247
|
+
{
|
|
248
|
+
path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
249
|
+
},
|
|
250
|
+
{ path: "checkout.subscriptionCharges.charges.cycleBillingDate" },
|
|
251
|
+
{ path: "lineItems.media.urlExpirationDate" },
|
|
252
|
+
{ path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate" },
|
|
253
|
+
{ path: "lineItems.serviceProperties.scheduledDate" },
|
|
254
|
+
{ path: "lineItems.serviceProperties.endDate" },
|
|
255
|
+
{
|
|
256
|
+
path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
257
|
+
},
|
|
258
|
+
{ path: "customLineItems.serviceProperties.scheduledDate" },
|
|
259
|
+
{ path: "customLineItems.serviceProperties.endDate" }
|
|
260
|
+
];
|
|
261
|
+
var TRANSFORM_PATHS_6 = [
|
|
262
|
+
{ path: "checkout.lineItems.media.focalPoint.x" },
|
|
263
|
+
{ path: "checkout.lineItems.media.focalPoint.y" },
|
|
264
|
+
{ path: "lineItems.media.focalPoint.x" },
|
|
265
|
+
{ path: "lineItems.media.focalPoint.y" },
|
|
266
|
+
{ path: "checkout.lineItems.physicalProperties.weight" },
|
|
267
|
+
{
|
|
268
|
+
path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
269
|
+
},
|
|
270
|
+
{ path: "checkout.billingInfo.address.geocode.latitude" },
|
|
271
|
+
{ path: "checkout.billingInfo.address.geocode.longitude" },
|
|
272
|
+
{
|
|
273
|
+
path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
289
|
+
},
|
|
290
|
+
{ path: "checkout.appliedDiscounts.merchantDiscount.percentage" },
|
|
291
|
+
{ path: "lineItems.physicalProperties.weight" },
|
|
292
|
+
{ path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
|
|
293
|
+
{ path: "customLineItems.physicalProperties.weight" }
|
|
294
|
+
];
|
|
295
|
+
var TRANSFORM_PATHS_7 = [
|
|
296
|
+
{ path: "lineItems.media.urlExpirationDate" },
|
|
297
|
+
{ path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate" },
|
|
298
|
+
{ path: "lineItems.serviceProperties.scheduledDate" },
|
|
299
|
+
{ path: "lineItems.serviceProperties.endDate" },
|
|
300
|
+
{
|
|
301
|
+
path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
302
|
+
},
|
|
303
|
+
{ path: "customLineItems.serviceProperties.scheduledDate" },
|
|
304
|
+
{ path: "customLineItems.serviceProperties.endDate" }
|
|
305
|
+
];
|
|
306
|
+
var TRANSFORM_PATHS_8 = [
|
|
307
|
+
{ path: "lineItems.media.focalPoint.x" },
|
|
308
|
+
{ path: "lineItems.media.focalPoint.y" },
|
|
309
|
+
{ path: "lineItems.physicalProperties.weight" },
|
|
310
|
+
{ path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
|
|
311
|
+
{ path: "customLineItems.physicalProperties.weight" }
|
|
312
|
+
];
|
|
313
|
+
var TRANSFORM_PATHS_9 = [{ path: "body" }];
|
|
98
314
|
function resolveComWixEcomCheckoutApiV1CheckoutServiceUrl(opts) {
|
|
99
315
|
const domainToMappings = {
|
|
100
316
|
"www.wixapis.com": [
|
|
@@ -178,83 +394,11 @@ function createCheckout(payload) {
|
|
|
178
394
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
179
395
|
{
|
|
180
396
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
181
|
-
paths:
|
|
182
|
-
{ path: "checkoutInfo.createdDate" },
|
|
183
|
-
{ path: "checkoutInfo.updatedDate" },
|
|
184
|
-
{ path: "checkoutInfo.lineItems.media.urlExpirationDate" },
|
|
185
|
-
{
|
|
186
|
-
path: "checkoutInfo.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
187
|
-
},
|
|
188
|
-
{ path: "checkoutInfo.lineItems.serviceProperties.scheduledDate" },
|
|
189
|
-
{ path: "checkoutInfo.lineItems.serviceProperties.endDate" },
|
|
190
|
-
{
|
|
191
|
-
path: "checkoutInfo.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
192
|
-
},
|
|
193
|
-
{
|
|
194
|
-
path: "checkoutInfo.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
195
|
-
},
|
|
196
|
-
{
|
|
197
|
-
path: "checkoutInfo.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
198
|
-
},
|
|
199
|
-
{
|
|
200
|
-
path: "checkoutInfo.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
path: "checkoutInfo.membershipOptions.eligibleMemberships.expirationDate"
|
|
204
|
-
},
|
|
205
|
-
{
|
|
206
|
-
path: "checkoutInfo.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
207
|
-
},
|
|
208
|
-
{ path: "checkoutInfo.subscriptionCharges.charges.cycleBillingDate" },
|
|
209
|
-
{ path: "lineItems.media.urlExpirationDate" },
|
|
210
|
-
{
|
|
211
|
-
path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
212
|
-
},
|
|
213
|
-
{ path: "lineItems.serviceProperties.scheduledDate" },
|
|
214
|
-
{ path: "lineItems.serviceProperties.endDate" },
|
|
215
|
-
{
|
|
216
|
-
path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
217
|
-
},
|
|
218
|
-
{ path: "customLineItems.serviceProperties.scheduledDate" },
|
|
219
|
-
{ path: "customLineItems.serviceProperties.endDate" }
|
|
220
|
-
]
|
|
397
|
+
paths: TRANSFORM_PATHS_0
|
|
221
398
|
},
|
|
222
399
|
{
|
|
223
400
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
224
|
-
paths:
|
|
225
|
-
{ path: "checkoutInfo.lineItems.media.focalPoint.x" },
|
|
226
|
-
{ path: "checkoutInfo.lineItems.media.focalPoint.y" },
|
|
227
|
-
{ path: "lineItems.media.focalPoint.x" },
|
|
228
|
-
{ path: "lineItems.media.focalPoint.y" },
|
|
229
|
-
{ path: "checkoutInfo.lineItems.physicalProperties.weight" },
|
|
230
|
-
{
|
|
231
|
-
path: "checkoutInfo.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
232
|
-
},
|
|
233
|
-
{ path: "checkoutInfo.billingInfo.address.geocode.latitude" },
|
|
234
|
-
{ path: "checkoutInfo.billingInfo.address.geocode.longitude" },
|
|
235
|
-
{
|
|
236
|
-
path: "checkoutInfo.shippingInfo.shippingDestination.address.geocode.latitude"
|
|
237
|
-
},
|
|
238
|
-
{
|
|
239
|
-
path: "checkoutInfo.shippingInfo.shippingDestination.address.geocode.longitude"
|
|
240
|
-
},
|
|
241
|
-
{
|
|
242
|
-
path: "checkoutInfo.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
|
|
243
|
-
},
|
|
244
|
-
{
|
|
245
|
-
path: "checkoutInfo.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
|
|
246
|
-
},
|
|
247
|
-
{
|
|
248
|
-
path: "checkoutInfo.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
249
|
-
},
|
|
250
|
-
{
|
|
251
|
-
path: "checkoutInfo.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
252
|
-
},
|
|
253
|
-
{ path: "checkoutInfo.appliedDiscounts.merchantDiscount.percentage" },
|
|
254
|
-
{ path: "lineItems.physicalProperties.weight" },
|
|
255
|
-
{ path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
|
|
256
|
-
{ path: "customLineItems.physicalProperties.weight" }
|
|
257
|
-
]
|
|
401
|
+
paths: TRANSFORM_PATHS_1
|
|
258
402
|
}
|
|
259
403
|
]);
|
|
260
404
|
const metadata = {
|
|
@@ -274,67 +418,11 @@ function createCheckout(payload) {
|
|
|
274
418
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
275
419
|
{
|
|
276
420
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
277
|
-
paths:
|
|
278
|
-
{ path: "checkout.createdDate" },
|
|
279
|
-
{ path: "checkout.updatedDate" },
|
|
280
|
-
{ path: "checkout.lineItems.media.urlExpirationDate" },
|
|
281
|
-
{
|
|
282
|
-
path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
283
|
-
},
|
|
284
|
-
{ path: "checkout.lineItems.serviceProperties.scheduledDate" },
|
|
285
|
-
{ path: "checkout.lineItems.serviceProperties.endDate" },
|
|
286
|
-
{
|
|
287
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
288
|
-
},
|
|
289
|
-
{
|
|
290
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
291
|
-
},
|
|
292
|
-
{
|
|
293
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
294
|
-
},
|
|
295
|
-
{
|
|
296
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
297
|
-
},
|
|
298
|
-
{
|
|
299
|
-
path: "checkout.membershipOptions.eligibleMemberships.expirationDate"
|
|
300
|
-
},
|
|
301
|
-
{
|
|
302
|
-
path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
303
|
-
},
|
|
304
|
-
{ path: "checkout.subscriptionCharges.charges.cycleBillingDate" }
|
|
305
|
-
]
|
|
421
|
+
paths: TRANSFORM_PATHS_2
|
|
306
422
|
},
|
|
307
423
|
{
|
|
308
424
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
309
|
-
paths:
|
|
310
|
-
{ path: "checkout.lineItems.media.focalPoint.x" },
|
|
311
|
-
{ path: "checkout.lineItems.media.focalPoint.y" },
|
|
312
|
-
{ path: "checkout.lineItems.physicalProperties.weight" },
|
|
313
|
-
{
|
|
314
|
-
path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
315
|
-
},
|
|
316
|
-
{ path: "checkout.billingInfo.address.geocode.latitude" },
|
|
317
|
-
{ path: "checkout.billingInfo.address.geocode.longitude" },
|
|
318
|
-
{
|
|
319
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
|
|
320
|
-
},
|
|
321
|
-
{
|
|
322
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
|
|
323
|
-
},
|
|
324
|
-
{
|
|
325
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
|
|
326
|
-
},
|
|
327
|
-
{
|
|
328
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
|
|
329
|
-
},
|
|
330
|
-
{
|
|
331
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
332
|
-
},
|
|
333
|
-
{
|
|
334
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
335
|
-
},
|
|
336
|
-
{ path: "checkout.appliedDiscounts.merchantDiscount.percentage" }
|
|
337
|
-
]
|
|
425
|
+
paths: TRANSFORM_PATHS_3
|
|
338
426
|
}
|
|
339
427
|
])
|
|
340
428
|
};
|
|
@@ -361,67 +449,11 @@ function getCheckout(payload) {
|
|
|
361
449
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
362
450
|
{
|
|
363
451
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
364
|
-
paths:
|
|
365
|
-
{ path: "checkout.createdDate" },
|
|
366
|
-
{ path: "checkout.updatedDate" },
|
|
367
|
-
{ path: "checkout.lineItems.media.urlExpirationDate" },
|
|
368
|
-
{
|
|
369
|
-
path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
370
|
-
},
|
|
371
|
-
{ path: "checkout.lineItems.serviceProperties.scheduledDate" },
|
|
372
|
-
{ path: "checkout.lineItems.serviceProperties.endDate" },
|
|
373
|
-
{
|
|
374
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
375
|
-
},
|
|
376
|
-
{
|
|
377
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
378
|
-
},
|
|
379
|
-
{
|
|
380
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
381
|
-
},
|
|
382
|
-
{
|
|
383
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
384
|
-
},
|
|
385
|
-
{
|
|
386
|
-
path: "checkout.membershipOptions.eligibleMemberships.expirationDate"
|
|
387
|
-
},
|
|
388
|
-
{
|
|
389
|
-
path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
390
|
-
},
|
|
391
|
-
{ path: "checkout.subscriptionCharges.charges.cycleBillingDate" }
|
|
392
|
-
]
|
|
452
|
+
paths: TRANSFORM_PATHS_2
|
|
393
453
|
},
|
|
394
454
|
{
|
|
395
455
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
396
|
-
paths:
|
|
397
|
-
{ path: "checkout.lineItems.media.focalPoint.x" },
|
|
398
|
-
{ path: "checkout.lineItems.media.focalPoint.y" },
|
|
399
|
-
{ path: "checkout.lineItems.physicalProperties.weight" },
|
|
400
|
-
{
|
|
401
|
-
path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
402
|
-
},
|
|
403
|
-
{ path: "checkout.billingInfo.address.geocode.latitude" },
|
|
404
|
-
{ path: "checkout.billingInfo.address.geocode.longitude" },
|
|
405
|
-
{
|
|
406
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
|
|
407
|
-
},
|
|
408
|
-
{
|
|
409
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
|
|
410
|
-
},
|
|
411
|
-
{
|
|
412
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
|
|
413
|
-
},
|
|
414
|
-
{
|
|
415
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
|
|
416
|
-
},
|
|
417
|
-
{
|
|
418
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
419
|
-
},
|
|
420
|
-
{
|
|
421
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
422
|
-
},
|
|
423
|
-
{ path: "checkout.appliedDiscounts.merchantDiscount.percentage" }
|
|
424
|
-
]
|
|
456
|
+
paths: TRANSFORM_PATHS_3
|
|
425
457
|
}
|
|
426
458
|
])
|
|
427
459
|
};
|
|
@@ -448,67 +480,11 @@ function getCheckoutByCartId(payload) {
|
|
|
448
480
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
449
481
|
{
|
|
450
482
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
451
|
-
paths:
|
|
452
|
-
{ path: "checkout.createdDate" },
|
|
453
|
-
{ path: "checkout.updatedDate" },
|
|
454
|
-
{ path: "checkout.lineItems.media.urlExpirationDate" },
|
|
455
|
-
{
|
|
456
|
-
path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
457
|
-
},
|
|
458
|
-
{ path: "checkout.lineItems.serviceProperties.scheduledDate" },
|
|
459
|
-
{ path: "checkout.lineItems.serviceProperties.endDate" },
|
|
460
|
-
{
|
|
461
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
462
|
-
},
|
|
463
|
-
{
|
|
464
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
465
|
-
},
|
|
466
|
-
{
|
|
467
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
468
|
-
},
|
|
469
|
-
{
|
|
470
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
471
|
-
},
|
|
472
|
-
{
|
|
473
|
-
path: "checkout.membershipOptions.eligibleMemberships.expirationDate"
|
|
474
|
-
},
|
|
475
|
-
{
|
|
476
|
-
path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
477
|
-
},
|
|
478
|
-
{ path: "checkout.subscriptionCharges.charges.cycleBillingDate" }
|
|
479
|
-
]
|
|
483
|
+
paths: TRANSFORM_PATHS_2
|
|
480
484
|
},
|
|
481
485
|
{
|
|
482
486
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
483
|
-
paths:
|
|
484
|
-
{ path: "checkout.lineItems.media.focalPoint.x" },
|
|
485
|
-
{ path: "checkout.lineItems.media.focalPoint.y" },
|
|
486
|
-
{ path: "checkout.lineItems.physicalProperties.weight" },
|
|
487
|
-
{
|
|
488
|
-
path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
489
|
-
},
|
|
490
|
-
{ path: "checkout.billingInfo.address.geocode.latitude" },
|
|
491
|
-
{ path: "checkout.billingInfo.address.geocode.longitude" },
|
|
492
|
-
{
|
|
493
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
|
|
494
|
-
},
|
|
495
|
-
{
|
|
496
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
|
|
497
|
-
},
|
|
498
|
-
{
|
|
499
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
|
|
500
|
-
},
|
|
501
|
-
{
|
|
502
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
|
|
503
|
-
},
|
|
504
|
-
{
|
|
505
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
506
|
-
},
|
|
507
|
-
{
|
|
508
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
509
|
-
},
|
|
510
|
-
{ path: "checkout.appliedDiscounts.merchantDiscount.percentage" }
|
|
511
|
-
]
|
|
487
|
+
paths: TRANSFORM_PATHS_3
|
|
512
488
|
}
|
|
513
489
|
])
|
|
514
490
|
};
|
|
@@ -563,87 +539,15 @@ function updateCheckout(payload) {
|
|
|
563
539
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
564
540
|
{
|
|
565
541
|
transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
|
|
566
|
-
paths:
|
|
542
|
+
paths: TRANSFORM_PATHS_4
|
|
567
543
|
},
|
|
568
544
|
{
|
|
569
545
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
570
|
-
paths:
|
|
571
|
-
{ path: "checkout.createdDate" },
|
|
572
|
-
{ path: "checkout.updatedDate" },
|
|
573
|
-
{ path: "checkout.lineItems.media.urlExpirationDate" },
|
|
574
|
-
{
|
|
575
|
-
path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
576
|
-
},
|
|
577
|
-
{ path: "checkout.lineItems.serviceProperties.scheduledDate" },
|
|
578
|
-
{ path: "checkout.lineItems.serviceProperties.endDate" },
|
|
579
|
-
{
|
|
580
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
581
|
-
},
|
|
582
|
-
{
|
|
583
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
584
|
-
},
|
|
585
|
-
{
|
|
586
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
587
|
-
},
|
|
588
|
-
{
|
|
589
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
590
|
-
},
|
|
591
|
-
{
|
|
592
|
-
path: "checkout.membershipOptions.eligibleMemberships.expirationDate"
|
|
593
|
-
},
|
|
594
|
-
{
|
|
595
|
-
path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
596
|
-
},
|
|
597
|
-
{ path: "checkout.subscriptionCharges.charges.cycleBillingDate" },
|
|
598
|
-
{ path: "lineItems.media.urlExpirationDate" },
|
|
599
|
-
{
|
|
600
|
-
path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
601
|
-
},
|
|
602
|
-
{ path: "lineItems.serviceProperties.scheduledDate" },
|
|
603
|
-
{ path: "lineItems.serviceProperties.endDate" },
|
|
604
|
-
{
|
|
605
|
-
path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
606
|
-
},
|
|
607
|
-
{ path: "customLineItems.serviceProperties.scheduledDate" },
|
|
608
|
-
{ path: "customLineItems.serviceProperties.endDate" }
|
|
609
|
-
]
|
|
546
|
+
paths: TRANSFORM_PATHS_5
|
|
610
547
|
},
|
|
611
548
|
{
|
|
612
549
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
613
|
-
paths:
|
|
614
|
-
{ path: "checkout.lineItems.media.focalPoint.x" },
|
|
615
|
-
{ path: "checkout.lineItems.media.focalPoint.y" },
|
|
616
|
-
{ path: "lineItems.media.focalPoint.x" },
|
|
617
|
-
{ path: "lineItems.media.focalPoint.y" },
|
|
618
|
-
{ path: "checkout.lineItems.physicalProperties.weight" },
|
|
619
|
-
{
|
|
620
|
-
path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
621
|
-
},
|
|
622
|
-
{ path: "checkout.billingInfo.address.geocode.latitude" },
|
|
623
|
-
{ path: "checkout.billingInfo.address.geocode.longitude" },
|
|
624
|
-
{
|
|
625
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
|
|
626
|
-
},
|
|
627
|
-
{
|
|
628
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
|
|
629
|
-
},
|
|
630
|
-
{
|
|
631
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
|
|
632
|
-
},
|
|
633
|
-
{
|
|
634
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
|
|
635
|
-
},
|
|
636
|
-
{
|
|
637
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
638
|
-
},
|
|
639
|
-
{
|
|
640
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
641
|
-
},
|
|
642
|
-
{ path: "checkout.appliedDiscounts.merchantDiscount.percentage" },
|
|
643
|
-
{ path: "lineItems.physicalProperties.weight" },
|
|
644
|
-
{ path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
|
|
645
|
-
{ path: "customLineItems.physicalProperties.weight" }
|
|
646
|
-
]
|
|
550
|
+
paths: TRANSFORM_PATHS_6
|
|
647
551
|
}
|
|
648
552
|
]);
|
|
649
553
|
const metadata = {
|
|
@@ -663,67 +567,11 @@ function updateCheckout(payload) {
|
|
|
663
567
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
664
568
|
{
|
|
665
569
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
666
|
-
paths:
|
|
667
|
-
{ path: "checkout.createdDate" },
|
|
668
|
-
{ path: "checkout.updatedDate" },
|
|
669
|
-
{ path: "checkout.lineItems.media.urlExpirationDate" },
|
|
670
|
-
{
|
|
671
|
-
path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
672
|
-
},
|
|
673
|
-
{ path: "checkout.lineItems.serviceProperties.scheduledDate" },
|
|
674
|
-
{ path: "checkout.lineItems.serviceProperties.endDate" },
|
|
675
|
-
{
|
|
676
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
677
|
-
},
|
|
678
|
-
{
|
|
679
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
680
|
-
},
|
|
681
|
-
{
|
|
682
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
683
|
-
},
|
|
684
|
-
{
|
|
685
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
686
|
-
},
|
|
687
|
-
{
|
|
688
|
-
path: "checkout.membershipOptions.eligibleMemberships.expirationDate"
|
|
689
|
-
},
|
|
690
|
-
{
|
|
691
|
-
path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
692
|
-
},
|
|
693
|
-
{ path: "checkout.subscriptionCharges.charges.cycleBillingDate" }
|
|
694
|
-
]
|
|
570
|
+
paths: TRANSFORM_PATHS_2
|
|
695
571
|
},
|
|
696
572
|
{
|
|
697
573
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
698
|
-
paths:
|
|
699
|
-
{ path: "checkout.lineItems.media.focalPoint.x" },
|
|
700
|
-
{ path: "checkout.lineItems.media.focalPoint.y" },
|
|
701
|
-
{ path: "checkout.lineItems.physicalProperties.weight" },
|
|
702
|
-
{
|
|
703
|
-
path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
704
|
-
},
|
|
705
|
-
{ path: "checkout.billingInfo.address.geocode.latitude" },
|
|
706
|
-
{ path: "checkout.billingInfo.address.geocode.longitude" },
|
|
707
|
-
{
|
|
708
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
|
|
709
|
-
},
|
|
710
|
-
{
|
|
711
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
|
|
712
|
-
},
|
|
713
|
-
{
|
|
714
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
|
|
715
|
-
},
|
|
716
|
-
{
|
|
717
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
|
|
718
|
-
},
|
|
719
|
-
{
|
|
720
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
721
|
-
},
|
|
722
|
-
{
|
|
723
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
724
|
-
},
|
|
725
|
-
{ path: "checkout.appliedDiscounts.merchantDiscount.percentage" }
|
|
726
|
-
]
|
|
574
|
+
paths: TRANSFORM_PATHS_3
|
|
727
575
|
}
|
|
728
576
|
])
|
|
729
577
|
};
|
|
@@ -750,67 +598,11 @@ function removeCoupon(payload) {
|
|
|
750
598
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
751
599
|
{
|
|
752
600
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
753
|
-
paths:
|
|
754
|
-
{ path: "checkout.createdDate" },
|
|
755
|
-
{ path: "checkout.updatedDate" },
|
|
756
|
-
{ path: "checkout.lineItems.media.urlExpirationDate" },
|
|
757
|
-
{
|
|
758
|
-
path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
759
|
-
},
|
|
760
|
-
{ path: "checkout.lineItems.serviceProperties.scheduledDate" },
|
|
761
|
-
{ path: "checkout.lineItems.serviceProperties.endDate" },
|
|
762
|
-
{
|
|
763
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
764
|
-
},
|
|
765
|
-
{
|
|
766
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
767
|
-
},
|
|
768
|
-
{
|
|
769
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
770
|
-
},
|
|
771
|
-
{
|
|
772
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
773
|
-
},
|
|
774
|
-
{
|
|
775
|
-
path: "checkout.membershipOptions.eligibleMemberships.expirationDate"
|
|
776
|
-
},
|
|
777
|
-
{
|
|
778
|
-
path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
779
|
-
},
|
|
780
|
-
{ path: "checkout.subscriptionCharges.charges.cycleBillingDate" }
|
|
781
|
-
]
|
|
601
|
+
paths: TRANSFORM_PATHS_2
|
|
782
602
|
},
|
|
783
603
|
{
|
|
784
604
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
785
|
-
paths:
|
|
786
|
-
{ path: "checkout.lineItems.media.focalPoint.x" },
|
|
787
|
-
{ path: "checkout.lineItems.media.focalPoint.y" },
|
|
788
|
-
{ path: "checkout.lineItems.physicalProperties.weight" },
|
|
789
|
-
{
|
|
790
|
-
path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
791
|
-
},
|
|
792
|
-
{ path: "checkout.billingInfo.address.geocode.latitude" },
|
|
793
|
-
{ path: "checkout.billingInfo.address.geocode.longitude" },
|
|
794
|
-
{
|
|
795
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
|
|
796
|
-
},
|
|
797
|
-
{
|
|
798
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
|
|
799
|
-
},
|
|
800
|
-
{
|
|
801
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
|
|
802
|
-
},
|
|
803
|
-
{
|
|
804
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
|
|
805
|
-
},
|
|
806
|
-
{
|
|
807
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
808
|
-
},
|
|
809
|
-
{
|
|
810
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
811
|
-
},
|
|
812
|
-
{ path: "checkout.appliedDiscounts.merchantDiscount.percentage" }
|
|
813
|
-
]
|
|
605
|
+
paths: TRANSFORM_PATHS_3
|
|
814
606
|
}
|
|
815
607
|
])
|
|
816
608
|
};
|
|
@@ -837,67 +629,11 @@ function removeGiftCard(payload) {
|
|
|
837
629
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
838
630
|
{
|
|
839
631
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
840
|
-
paths:
|
|
841
|
-
{ path: "checkout.createdDate" },
|
|
842
|
-
{ path: "checkout.updatedDate" },
|
|
843
|
-
{ path: "checkout.lineItems.media.urlExpirationDate" },
|
|
844
|
-
{
|
|
845
|
-
path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
846
|
-
},
|
|
847
|
-
{ path: "checkout.lineItems.serviceProperties.scheduledDate" },
|
|
848
|
-
{ path: "checkout.lineItems.serviceProperties.endDate" },
|
|
849
|
-
{
|
|
850
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
851
|
-
},
|
|
852
|
-
{
|
|
853
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
854
|
-
},
|
|
855
|
-
{
|
|
856
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
857
|
-
},
|
|
858
|
-
{
|
|
859
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
860
|
-
},
|
|
861
|
-
{
|
|
862
|
-
path: "checkout.membershipOptions.eligibleMemberships.expirationDate"
|
|
863
|
-
},
|
|
864
|
-
{
|
|
865
|
-
path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
866
|
-
},
|
|
867
|
-
{ path: "checkout.subscriptionCharges.charges.cycleBillingDate" }
|
|
868
|
-
]
|
|
632
|
+
paths: TRANSFORM_PATHS_2
|
|
869
633
|
},
|
|
870
634
|
{
|
|
871
635
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
872
|
-
paths:
|
|
873
|
-
{ path: "checkout.lineItems.media.focalPoint.x" },
|
|
874
|
-
{ path: "checkout.lineItems.media.focalPoint.y" },
|
|
875
|
-
{ path: "checkout.lineItems.physicalProperties.weight" },
|
|
876
|
-
{
|
|
877
|
-
path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
878
|
-
},
|
|
879
|
-
{ path: "checkout.billingInfo.address.geocode.latitude" },
|
|
880
|
-
{ path: "checkout.billingInfo.address.geocode.longitude" },
|
|
881
|
-
{
|
|
882
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
|
|
883
|
-
},
|
|
884
|
-
{
|
|
885
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
|
|
886
|
-
},
|
|
887
|
-
{
|
|
888
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
|
|
889
|
-
},
|
|
890
|
-
{
|
|
891
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
|
|
892
|
-
},
|
|
893
|
-
{
|
|
894
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
895
|
-
},
|
|
896
|
-
{
|
|
897
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
898
|
-
},
|
|
899
|
-
{ path: "checkout.appliedDiscounts.merchantDiscount.percentage" }
|
|
900
|
-
]
|
|
636
|
+
paths: TRANSFORM_PATHS_3
|
|
901
637
|
}
|
|
902
638
|
])
|
|
903
639
|
};
|
|
@@ -924,67 +660,11 @@ function removeOverrideCheckoutUrl(payload) {
|
|
|
924
660
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
925
661
|
{
|
|
926
662
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
927
|
-
paths:
|
|
928
|
-
{ path: "checkout.createdDate" },
|
|
929
|
-
{ path: "checkout.updatedDate" },
|
|
930
|
-
{ path: "checkout.lineItems.media.urlExpirationDate" },
|
|
931
|
-
{
|
|
932
|
-
path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
933
|
-
},
|
|
934
|
-
{ path: "checkout.lineItems.serviceProperties.scheduledDate" },
|
|
935
|
-
{ path: "checkout.lineItems.serviceProperties.endDate" },
|
|
936
|
-
{
|
|
937
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
938
|
-
},
|
|
939
|
-
{
|
|
940
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
941
|
-
},
|
|
942
|
-
{
|
|
943
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
944
|
-
},
|
|
945
|
-
{
|
|
946
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
947
|
-
},
|
|
948
|
-
{
|
|
949
|
-
path: "checkout.membershipOptions.eligibleMemberships.expirationDate"
|
|
950
|
-
},
|
|
951
|
-
{
|
|
952
|
-
path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
953
|
-
},
|
|
954
|
-
{ path: "checkout.subscriptionCharges.charges.cycleBillingDate" }
|
|
955
|
-
]
|
|
663
|
+
paths: TRANSFORM_PATHS_2
|
|
956
664
|
},
|
|
957
665
|
{
|
|
958
666
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
959
|
-
paths:
|
|
960
|
-
{ path: "checkout.lineItems.media.focalPoint.x" },
|
|
961
|
-
{ path: "checkout.lineItems.media.focalPoint.y" },
|
|
962
|
-
{ path: "checkout.lineItems.physicalProperties.weight" },
|
|
963
|
-
{
|
|
964
|
-
path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
965
|
-
},
|
|
966
|
-
{ path: "checkout.billingInfo.address.geocode.latitude" },
|
|
967
|
-
{ path: "checkout.billingInfo.address.geocode.longitude" },
|
|
968
|
-
{
|
|
969
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
|
|
970
|
-
},
|
|
971
|
-
{
|
|
972
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
|
|
973
|
-
},
|
|
974
|
-
{
|
|
975
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
|
|
976
|
-
},
|
|
977
|
-
{
|
|
978
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
|
|
979
|
-
},
|
|
980
|
-
{
|
|
981
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
982
|
-
},
|
|
983
|
-
{
|
|
984
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
985
|
-
},
|
|
986
|
-
{ path: "checkout.appliedDiscounts.merchantDiscount.percentage" }
|
|
987
|
-
]
|
|
667
|
+
paths: TRANSFORM_PATHS_3
|
|
988
668
|
}
|
|
989
669
|
])
|
|
990
670
|
};
|
|
@@ -997,29 +677,11 @@ function addToCheckout(payload) {
|
|
|
997
677
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
998
678
|
{
|
|
999
679
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
1000
|
-
paths:
|
|
1001
|
-
{ path: "lineItems.media.urlExpirationDate" },
|
|
1002
|
-
{
|
|
1003
|
-
path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
1004
|
-
},
|
|
1005
|
-
{ path: "lineItems.serviceProperties.scheduledDate" },
|
|
1006
|
-
{ path: "lineItems.serviceProperties.endDate" },
|
|
1007
|
-
{
|
|
1008
|
-
path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
1009
|
-
},
|
|
1010
|
-
{ path: "customLineItems.serviceProperties.scheduledDate" },
|
|
1011
|
-
{ path: "customLineItems.serviceProperties.endDate" }
|
|
1012
|
-
]
|
|
680
|
+
paths: TRANSFORM_PATHS_7
|
|
1013
681
|
},
|
|
1014
682
|
{
|
|
1015
683
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
1016
|
-
paths:
|
|
1017
|
-
{ path: "lineItems.media.focalPoint.x" },
|
|
1018
|
-
{ path: "lineItems.media.focalPoint.y" },
|
|
1019
|
-
{ path: "lineItems.physicalProperties.weight" },
|
|
1020
|
-
{ path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
|
|
1021
|
-
{ path: "customLineItems.physicalProperties.weight" }
|
|
1022
|
-
]
|
|
684
|
+
paths: TRANSFORM_PATHS_8
|
|
1023
685
|
}
|
|
1024
686
|
]);
|
|
1025
687
|
const metadata = {
|
|
@@ -1039,67 +701,11 @@ function addToCheckout(payload) {
|
|
|
1039
701
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1040
702
|
{
|
|
1041
703
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1042
|
-
paths:
|
|
1043
|
-
{ path: "checkout.createdDate" },
|
|
1044
|
-
{ path: "checkout.updatedDate" },
|
|
1045
|
-
{ path: "checkout.lineItems.media.urlExpirationDate" },
|
|
1046
|
-
{
|
|
1047
|
-
path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
1048
|
-
},
|
|
1049
|
-
{ path: "checkout.lineItems.serviceProperties.scheduledDate" },
|
|
1050
|
-
{ path: "checkout.lineItems.serviceProperties.endDate" },
|
|
1051
|
-
{
|
|
1052
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
1053
|
-
},
|
|
1054
|
-
{
|
|
1055
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
1056
|
-
},
|
|
1057
|
-
{
|
|
1058
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
1059
|
-
},
|
|
1060
|
-
{
|
|
1061
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
1062
|
-
},
|
|
1063
|
-
{
|
|
1064
|
-
path: "checkout.membershipOptions.eligibleMemberships.expirationDate"
|
|
1065
|
-
},
|
|
1066
|
-
{
|
|
1067
|
-
path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
1068
|
-
},
|
|
1069
|
-
{ path: "checkout.subscriptionCharges.charges.cycleBillingDate" }
|
|
1070
|
-
]
|
|
704
|
+
paths: TRANSFORM_PATHS_2
|
|
1071
705
|
},
|
|
1072
706
|
{
|
|
1073
707
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1074
|
-
paths:
|
|
1075
|
-
{ path: "checkout.lineItems.media.focalPoint.x" },
|
|
1076
|
-
{ path: "checkout.lineItems.media.focalPoint.y" },
|
|
1077
|
-
{ path: "checkout.lineItems.physicalProperties.weight" },
|
|
1078
|
-
{
|
|
1079
|
-
path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
1080
|
-
},
|
|
1081
|
-
{ path: "checkout.billingInfo.address.geocode.latitude" },
|
|
1082
|
-
{ path: "checkout.billingInfo.address.geocode.longitude" },
|
|
1083
|
-
{
|
|
1084
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
|
|
1085
|
-
},
|
|
1086
|
-
{
|
|
1087
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
|
|
1088
|
-
},
|
|
1089
|
-
{
|
|
1090
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
|
|
1091
|
-
},
|
|
1092
|
-
{
|
|
1093
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
|
|
1094
|
-
},
|
|
1095
|
-
{
|
|
1096
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
1097
|
-
},
|
|
1098
|
-
{
|
|
1099
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
1100
|
-
},
|
|
1101
|
-
{ path: "checkout.appliedDiscounts.merchantDiscount.percentage" }
|
|
1102
|
-
]
|
|
708
|
+
paths: TRANSFORM_PATHS_3
|
|
1103
709
|
}
|
|
1104
710
|
])
|
|
1105
711
|
};
|
|
@@ -1126,67 +732,11 @@ function removeLineItems(payload) {
|
|
|
1126
732
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1127
733
|
{
|
|
1128
734
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1129
|
-
paths:
|
|
1130
|
-
{ path: "checkout.createdDate" },
|
|
1131
|
-
{ path: "checkout.updatedDate" },
|
|
1132
|
-
{ path: "checkout.lineItems.media.urlExpirationDate" },
|
|
1133
|
-
{
|
|
1134
|
-
path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
1135
|
-
},
|
|
1136
|
-
{ path: "checkout.lineItems.serviceProperties.scheduledDate" },
|
|
1137
|
-
{ path: "checkout.lineItems.serviceProperties.endDate" },
|
|
1138
|
-
{
|
|
1139
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
1140
|
-
},
|
|
1141
|
-
{
|
|
1142
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
1143
|
-
},
|
|
1144
|
-
{
|
|
1145
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
1146
|
-
},
|
|
1147
|
-
{
|
|
1148
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
1149
|
-
},
|
|
1150
|
-
{
|
|
1151
|
-
path: "checkout.membershipOptions.eligibleMemberships.expirationDate"
|
|
1152
|
-
},
|
|
1153
|
-
{
|
|
1154
|
-
path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
1155
|
-
},
|
|
1156
|
-
{ path: "checkout.subscriptionCharges.charges.cycleBillingDate" }
|
|
1157
|
-
]
|
|
735
|
+
paths: TRANSFORM_PATHS_2
|
|
1158
736
|
},
|
|
1159
737
|
{
|
|
1160
738
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1161
|
-
paths:
|
|
1162
|
-
{ path: "checkout.lineItems.media.focalPoint.x" },
|
|
1163
|
-
{ path: "checkout.lineItems.media.focalPoint.y" },
|
|
1164
|
-
{ path: "checkout.lineItems.physicalProperties.weight" },
|
|
1165
|
-
{
|
|
1166
|
-
path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
1167
|
-
},
|
|
1168
|
-
{ path: "checkout.billingInfo.address.geocode.latitude" },
|
|
1169
|
-
{ path: "checkout.billingInfo.address.geocode.longitude" },
|
|
1170
|
-
{
|
|
1171
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
|
|
1172
|
-
},
|
|
1173
|
-
{
|
|
1174
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
|
|
1175
|
-
},
|
|
1176
|
-
{
|
|
1177
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
|
|
1178
|
-
},
|
|
1179
|
-
{
|
|
1180
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
|
|
1181
|
-
},
|
|
1182
|
-
{
|
|
1183
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
1184
|
-
},
|
|
1185
|
-
{
|
|
1186
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
1187
|
-
},
|
|
1188
|
-
{ path: "checkout.appliedDiscounts.merchantDiscount.percentage" }
|
|
1189
|
-
]
|
|
739
|
+
paths: TRANSFORM_PATHS_3
|
|
1190
740
|
}
|
|
1191
741
|
])
|
|
1192
742
|
};
|
|
@@ -1255,7 +805,7 @@ function markCheckoutAsCompletedAndRedirectToUrl(payload) {
|
|
|
1255
805
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1256
806
|
{
|
|
1257
807
|
transformFn: import_bytes.transformRESTBytesToSDKBytes,
|
|
1258
|
-
paths:
|
|
808
|
+
paths: TRANSFORM_PATHS_9
|
|
1259
809
|
}
|
|
1260
810
|
])
|
|
1261
811
|
};
|
|
@@ -1303,67 +853,11 @@ function updateLineItemsQuantity(payload) {
|
|
|
1303
853
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1304
854
|
{
|
|
1305
855
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1306
|
-
paths:
|
|
1307
|
-
{ path: "checkout.createdDate" },
|
|
1308
|
-
{ path: "checkout.updatedDate" },
|
|
1309
|
-
{ path: "checkout.lineItems.media.urlExpirationDate" },
|
|
1310
|
-
{
|
|
1311
|
-
path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
1312
|
-
},
|
|
1313
|
-
{ path: "checkout.lineItems.serviceProperties.scheduledDate" },
|
|
1314
|
-
{ path: "checkout.lineItems.serviceProperties.endDate" },
|
|
1315
|
-
{
|
|
1316
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
1317
|
-
},
|
|
1318
|
-
{
|
|
1319
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
1320
|
-
},
|
|
1321
|
-
{
|
|
1322
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
1323
|
-
},
|
|
1324
|
-
{
|
|
1325
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
1326
|
-
},
|
|
1327
|
-
{
|
|
1328
|
-
path: "checkout.membershipOptions.eligibleMemberships.expirationDate"
|
|
1329
|
-
},
|
|
1330
|
-
{
|
|
1331
|
-
path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
1332
|
-
},
|
|
1333
|
-
{ path: "checkout.subscriptionCharges.charges.cycleBillingDate" }
|
|
1334
|
-
]
|
|
856
|
+
paths: TRANSFORM_PATHS_2
|
|
1335
857
|
},
|
|
1336
858
|
{
|
|
1337
859
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1338
|
-
paths:
|
|
1339
|
-
{ path: "checkout.lineItems.media.focalPoint.x" },
|
|
1340
|
-
{ path: "checkout.lineItems.media.focalPoint.y" },
|
|
1341
|
-
{ path: "checkout.lineItems.physicalProperties.weight" },
|
|
1342
|
-
{
|
|
1343
|
-
path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
1344
|
-
},
|
|
1345
|
-
{ path: "checkout.billingInfo.address.geocode.latitude" },
|
|
1346
|
-
{ path: "checkout.billingInfo.address.geocode.longitude" },
|
|
1347
|
-
{
|
|
1348
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
|
|
1349
|
-
},
|
|
1350
|
-
{
|
|
1351
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
|
|
1352
|
-
},
|
|
1353
|
-
{
|
|
1354
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
|
|
1355
|
-
},
|
|
1356
|
-
{
|
|
1357
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
|
|
1358
|
-
},
|
|
1359
|
-
{
|
|
1360
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
1361
|
-
},
|
|
1362
|
-
{
|
|
1363
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
1364
|
-
},
|
|
1365
|
-
{ path: "checkout.appliedDiscounts.merchantDiscount.percentage" }
|
|
1366
|
-
]
|
|
860
|
+
paths: TRANSFORM_PATHS_3
|
|
1367
861
|
}
|
|
1368
862
|
])
|
|
1369
863
|
};
|
|
@@ -1380,6 +874,64 @@ var import_image2 = require("@wix/sdk-runtime/transformations/image");
|
|
|
1380
874
|
var import_page_url_v2 = require("@wix/sdk-runtime/transformations/page-url-v2");
|
|
1381
875
|
var import_page_url_v22 = require("@wix/sdk-runtime/transformations/page-url-v2");
|
|
1382
876
|
var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
877
|
+
var TRANSFORM_PATHS_02 = [
|
|
878
|
+
{ path: "checkoutInfo.lineItems.url" },
|
|
879
|
+
{ path: "lineItems.url" },
|
|
880
|
+
{ path: "customLineItems.url" }
|
|
881
|
+
];
|
|
882
|
+
var TRANSFORM_PATHS_12 = [
|
|
883
|
+
{ path: "checkoutInfo.lineItems.media" },
|
|
884
|
+
{ path: "checkoutInfo.lineItems.catalogOverrideFields.image" },
|
|
885
|
+
{ path: "lineItems.media" },
|
|
886
|
+
{ path: "lineItems.catalogOverrideFields.image" },
|
|
887
|
+
{ path: "customLineItems.media" }
|
|
888
|
+
];
|
|
889
|
+
var TRANSFORM_PATHS_22 = [
|
|
890
|
+
{ path: "checkoutInfo.billingInfo.address" },
|
|
891
|
+
{ path: "checkoutInfo.shippingInfo.shippingDestination.address" },
|
|
892
|
+
{
|
|
893
|
+
path: "checkoutInfo.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
894
|
+
},
|
|
895
|
+
{
|
|
896
|
+
path: "checkoutInfo.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
897
|
+
}
|
|
898
|
+
];
|
|
899
|
+
var TRANSFORM_PATHS_32 = [{ path: "checkout.lineItems.url" }];
|
|
900
|
+
var TRANSFORM_PATHS_42 = [
|
|
901
|
+
{ path: "checkout.lineItems.media" },
|
|
902
|
+
{ path: "checkout.lineItems.catalogOverrideFields.image" }
|
|
903
|
+
];
|
|
904
|
+
var TRANSFORM_PATHS_52 = [
|
|
905
|
+
{ path: "checkout.billingInfo.address" },
|
|
906
|
+
{ path: "checkout.shippingInfo.shippingDestination.address" },
|
|
907
|
+
{
|
|
908
|
+
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
909
|
+
},
|
|
910
|
+
{
|
|
911
|
+
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
912
|
+
}
|
|
913
|
+
];
|
|
914
|
+
var TRANSFORM_PATHS_62 = [
|
|
915
|
+
{ path: "checkout.lineItems.url" },
|
|
916
|
+
{ path: "lineItems.url" },
|
|
917
|
+
{ path: "customLineItems.url" }
|
|
918
|
+
];
|
|
919
|
+
var TRANSFORM_PATHS_72 = [
|
|
920
|
+
{ path: "checkout.lineItems.media" },
|
|
921
|
+
{ path: "checkout.lineItems.catalogOverrideFields.image" },
|
|
922
|
+
{ path: "lineItems.media" },
|
|
923
|
+
{ path: "lineItems.catalogOverrideFields.image" },
|
|
924
|
+
{ path: "customLineItems.media" }
|
|
925
|
+
];
|
|
926
|
+
var TRANSFORM_PATHS_82 = [
|
|
927
|
+
{ path: "lineItems.url" },
|
|
928
|
+
{ path: "customLineItems.url" }
|
|
929
|
+
];
|
|
930
|
+
var TRANSFORM_PATHS_92 = [
|
|
931
|
+
{ path: "lineItems.media" },
|
|
932
|
+
{ path: "lineItems.catalogOverrideFields.image" },
|
|
933
|
+
{ path: "customLineItems.media" }
|
|
934
|
+
];
|
|
1383
935
|
var JurisdictionType = /* @__PURE__ */ ((JurisdictionType2) => {
|
|
1384
936
|
JurisdictionType2["UNDEFINED"] = "UNDEFINED";
|
|
1385
937
|
JurisdictionType2["COUNTRY"] = "COUNTRY";
|
|
@@ -1611,34 +1163,15 @@ async function createCheckout2(options) {
|
|
|
1611
1163
|
[
|
|
1612
1164
|
{
|
|
1613
1165
|
transformFn: import_page_url_v2.transformSDKPageURLV2ToRESTPageURLV2,
|
|
1614
|
-
paths:
|
|
1615
|
-
{ path: "checkoutInfo.lineItems.url" },
|
|
1616
|
-
{ path: "lineItems.url" },
|
|
1617
|
-
{ path: "customLineItems.url" }
|
|
1618
|
-
]
|
|
1166
|
+
paths: TRANSFORM_PATHS_02
|
|
1619
1167
|
},
|
|
1620
1168
|
{
|
|
1621
1169
|
transformFn: import_image.transformSDKImageToRESTImage,
|
|
1622
|
-
paths:
|
|
1623
|
-
{ path: "checkoutInfo.lineItems.media" },
|
|
1624
|
-
{ path: "checkoutInfo.lineItems.catalogOverrideFields.image" },
|
|
1625
|
-
{ path: "lineItems.media" },
|
|
1626
|
-
{ path: "lineItems.catalogOverrideFields.image" },
|
|
1627
|
-
{ path: "customLineItems.media" }
|
|
1628
|
-
]
|
|
1170
|
+
paths: TRANSFORM_PATHS_12
|
|
1629
1171
|
},
|
|
1630
1172
|
{
|
|
1631
1173
|
transformFn: import_address.transformSDKAddressToRESTAddress,
|
|
1632
|
-
paths:
|
|
1633
|
-
{ path: "checkoutInfo.billingInfo.address" },
|
|
1634
|
-
{ path: "checkoutInfo.shippingInfo.shippingDestination.address" },
|
|
1635
|
-
{
|
|
1636
|
-
path: "checkoutInfo.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
1637
|
-
},
|
|
1638
|
-
{
|
|
1639
|
-
path: "checkoutInfo.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
1640
|
-
}
|
|
1641
|
-
]
|
|
1174
|
+
paths: TRANSFORM_PATHS_22
|
|
1642
1175
|
}
|
|
1643
1176
|
]
|
|
1644
1177
|
);
|
|
@@ -1651,27 +1184,15 @@ async function createCheckout2(options) {
|
|
|
1651
1184
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1652
1185
|
{
|
|
1653
1186
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
1654
|
-
paths:
|
|
1187
|
+
paths: TRANSFORM_PATHS_32
|
|
1655
1188
|
},
|
|
1656
1189
|
{
|
|
1657
1190
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1658
|
-
paths:
|
|
1659
|
-
{ path: "checkout.lineItems.media" },
|
|
1660
|
-
{ path: "checkout.lineItems.catalogOverrideFields.image" }
|
|
1661
|
-
]
|
|
1191
|
+
paths: TRANSFORM_PATHS_42
|
|
1662
1192
|
},
|
|
1663
1193
|
{
|
|
1664
1194
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
1665
|
-
paths:
|
|
1666
|
-
{ path: "checkout.billingInfo.address" },
|
|
1667
|
-
{ path: "checkout.shippingInfo.shippingDestination.address" },
|
|
1668
|
-
{
|
|
1669
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
1670
|
-
},
|
|
1671
|
-
{
|
|
1672
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
1673
|
-
}
|
|
1674
|
-
]
|
|
1195
|
+
paths: TRANSFORM_PATHS_52
|
|
1675
1196
|
}
|
|
1676
1197
|
])
|
|
1677
1198
|
)?.checkout;
|
|
@@ -1710,27 +1231,15 @@ async function getCheckout2(_id) {
|
|
|
1710
1231
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1711
1232
|
{
|
|
1712
1233
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
1713
|
-
paths:
|
|
1234
|
+
paths: TRANSFORM_PATHS_32
|
|
1714
1235
|
},
|
|
1715
1236
|
{
|
|
1716
1237
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1717
|
-
paths:
|
|
1718
|
-
{ path: "checkout.lineItems.media" },
|
|
1719
|
-
{ path: "checkout.lineItems.catalogOverrideFields.image" }
|
|
1720
|
-
]
|
|
1238
|
+
paths: TRANSFORM_PATHS_42
|
|
1721
1239
|
},
|
|
1722
1240
|
{
|
|
1723
1241
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
1724
|
-
paths:
|
|
1725
|
-
{ path: "checkout.billingInfo.address" },
|
|
1726
|
-
{ path: "checkout.shippingInfo.shippingDestination.address" },
|
|
1727
|
-
{
|
|
1728
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
1729
|
-
},
|
|
1730
|
-
{
|
|
1731
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
1732
|
-
}
|
|
1733
|
-
]
|
|
1242
|
+
paths: TRANSFORM_PATHS_52
|
|
1734
1243
|
}
|
|
1735
1244
|
])
|
|
1736
1245
|
)?.checkout;
|
|
@@ -1760,27 +1269,15 @@ async function getCheckoutByCartId2(_id) {
|
|
|
1760
1269
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1761
1270
|
{
|
|
1762
1271
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
1763
|
-
paths:
|
|
1272
|
+
paths: TRANSFORM_PATHS_32
|
|
1764
1273
|
},
|
|
1765
1274
|
{
|
|
1766
1275
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1767
|
-
paths:
|
|
1768
|
-
{ path: "checkout.lineItems.media" },
|
|
1769
|
-
{ path: "checkout.lineItems.catalogOverrideFields.image" }
|
|
1770
|
-
]
|
|
1276
|
+
paths: TRANSFORM_PATHS_42
|
|
1771
1277
|
},
|
|
1772
1278
|
{
|
|
1773
1279
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
1774
|
-
paths:
|
|
1775
|
-
{ path: "checkout.billingInfo.address" },
|
|
1776
|
-
{ path: "checkout.shippingInfo.shippingDestination.address" },
|
|
1777
|
-
{
|
|
1778
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
1779
|
-
},
|
|
1780
|
-
{
|
|
1781
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
1782
|
-
}
|
|
1783
|
-
]
|
|
1280
|
+
paths: TRANSFORM_PATHS_52
|
|
1784
1281
|
}
|
|
1785
1282
|
])
|
|
1786
1283
|
);
|
|
@@ -1859,34 +1356,15 @@ async function updateCheckout2(_id, checkout, options) {
|
|
|
1859
1356
|
[
|
|
1860
1357
|
{
|
|
1861
1358
|
transformFn: import_page_url_v2.transformSDKPageURLV2ToRESTPageURLV2,
|
|
1862
|
-
paths:
|
|
1863
|
-
{ path: "checkout.lineItems.url" },
|
|
1864
|
-
{ path: "lineItems.url" },
|
|
1865
|
-
{ path: "customLineItems.url" }
|
|
1866
|
-
]
|
|
1359
|
+
paths: TRANSFORM_PATHS_62
|
|
1867
1360
|
},
|
|
1868
1361
|
{
|
|
1869
1362
|
transformFn: import_image.transformSDKImageToRESTImage,
|
|
1870
|
-
paths:
|
|
1871
|
-
{ path: "checkout.lineItems.media" },
|
|
1872
|
-
{ path: "checkout.lineItems.catalogOverrideFields.image" },
|
|
1873
|
-
{ path: "lineItems.media" },
|
|
1874
|
-
{ path: "lineItems.catalogOverrideFields.image" },
|
|
1875
|
-
{ path: "customLineItems.media" }
|
|
1876
|
-
]
|
|
1363
|
+
paths: TRANSFORM_PATHS_72
|
|
1877
1364
|
},
|
|
1878
1365
|
{
|
|
1879
1366
|
transformFn: import_address.transformSDKAddressToRESTAddress,
|
|
1880
|
-
paths:
|
|
1881
|
-
{ path: "checkout.billingInfo.address" },
|
|
1882
|
-
{ path: "checkout.shippingInfo.shippingDestination.address" },
|
|
1883
|
-
{
|
|
1884
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
1885
|
-
},
|
|
1886
|
-
{
|
|
1887
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
1888
|
-
}
|
|
1889
|
-
]
|
|
1367
|
+
paths: TRANSFORM_PATHS_52
|
|
1890
1368
|
}
|
|
1891
1369
|
]
|
|
1892
1370
|
);
|
|
@@ -1899,27 +1377,15 @@ async function updateCheckout2(_id, checkout, options) {
|
|
|
1899
1377
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1900
1378
|
{
|
|
1901
1379
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
1902
|
-
paths:
|
|
1380
|
+
paths: TRANSFORM_PATHS_32
|
|
1903
1381
|
},
|
|
1904
1382
|
{
|
|
1905
1383
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1906
|
-
paths:
|
|
1907
|
-
{ path: "checkout.lineItems.media" },
|
|
1908
|
-
{ path: "checkout.lineItems.catalogOverrideFields.image" }
|
|
1909
|
-
]
|
|
1384
|
+
paths: TRANSFORM_PATHS_42
|
|
1910
1385
|
},
|
|
1911
1386
|
{
|
|
1912
1387
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
1913
|
-
paths:
|
|
1914
|
-
{ path: "checkout.billingInfo.address" },
|
|
1915
|
-
{ path: "checkout.shippingInfo.shippingDestination.address" },
|
|
1916
|
-
{
|
|
1917
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
1918
|
-
},
|
|
1919
|
-
{
|
|
1920
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
1921
|
-
}
|
|
1922
|
-
]
|
|
1388
|
+
paths: TRANSFORM_PATHS_52
|
|
1923
1389
|
}
|
|
1924
1390
|
])
|
|
1925
1391
|
)?.checkout;
|
|
@@ -1957,27 +1423,15 @@ async function removeCoupon2(_id) {
|
|
|
1957
1423
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1958
1424
|
{
|
|
1959
1425
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
1960
|
-
paths:
|
|
1426
|
+
paths: TRANSFORM_PATHS_32
|
|
1961
1427
|
},
|
|
1962
1428
|
{
|
|
1963
1429
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1964
|
-
paths:
|
|
1965
|
-
{ path: "checkout.lineItems.media" },
|
|
1966
|
-
{ path: "checkout.lineItems.catalogOverrideFields.image" }
|
|
1967
|
-
]
|
|
1430
|
+
paths: TRANSFORM_PATHS_42
|
|
1968
1431
|
},
|
|
1969
1432
|
{
|
|
1970
1433
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
1971
|
-
paths:
|
|
1972
|
-
{ path: "checkout.billingInfo.address" },
|
|
1973
|
-
{ path: "checkout.shippingInfo.shippingDestination.address" },
|
|
1974
|
-
{
|
|
1975
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
1976
|
-
},
|
|
1977
|
-
{
|
|
1978
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
1979
|
-
}
|
|
1980
|
-
]
|
|
1434
|
+
paths: TRANSFORM_PATHS_52
|
|
1981
1435
|
}
|
|
1982
1436
|
])
|
|
1983
1437
|
);
|
|
@@ -2007,27 +1461,15 @@ async function removeGiftCard2(_id) {
|
|
|
2007
1461
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
2008
1462
|
{
|
|
2009
1463
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
2010
|
-
paths:
|
|
1464
|
+
paths: TRANSFORM_PATHS_32
|
|
2011
1465
|
},
|
|
2012
1466
|
{
|
|
2013
1467
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
2014
|
-
paths:
|
|
2015
|
-
{ path: "checkout.lineItems.media" },
|
|
2016
|
-
{ path: "checkout.lineItems.catalogOverrideFields.image" }
|
|
2017
|
-
]
|
|
1468
|
+
paths: TRANSFORM_PATHS_42
|
|
2018
1469
|
},
|
|
2019
1470
|
{
|
|
2020
1471
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
2021
|
-
paths:
|
|
2022
|
-
{ path: "checkout.billingInfo.address" },
|
|
2023
|
-
{ path: "checkout.shippingInfo.shippingDestination.address" },
|
|
2024
|
-
{
|
|
2025
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
2026
|
-
},
|
|
2027
|
-
{
|
|
2028
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
2029
|
-
}
|
|
2030
|
-
]
|
|
1472
|
+
paths: TRANSFORM_PATHS_52
|
|
2031
1473
|
}
|
|
2032
1474
|
])
|
|
2033
1475
|
);
|
|
@@ -2057,27 +1499,15 @@ async function removeOverrideCheckoutUrl2(_id) {
|
|
|
2057
1499
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
2058
1500
|
{
|
|
2059
1501
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
2060
|
-
paths:
|
|
1502
|
+
paths: TRANSFORM_PATHS_32
|
|
2061
1503
|
},
|
|
2062
1504
|
{
|
|
2063
1505
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
2064
|
-
paths:
|
|
2065
|
-
{ path: "checkout.lineItems.media" },
|
|
2066
|
-
{ path: "checkout.lineItems.catalogOverrideFields.image" }
|
|
2067
|
-
]
|
|
1506
|
+
paths: TRANSFORM_PATHS_42
|
|
2068
1507
|
},
|
|
2069
1508
|
{
|
|
2070
1509
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
2071
|
-
paths:
|
|
2072
|
-
{ path: "checkout.billingInfo.address" },
|
|
2073
|
-
{ path: "checkout.shippingInfo.shippingDestination.address" },
|
|
2074
|
-
{
|
|
2075
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
2076
|
-
},
|
|
2077
|
-
{
|
|
2078
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
2079
|
-
}
|
|
2080
|
-
]
|
|
1510
|
+
paths: TRANSFORM_PATHS_52
|
|
2081
1511
|
}
|
|
2082
1512
|
])
|
|
2083
1513
|
);
|
|
@@ -2106,15 +1536,11 @@ async function addToCheckout2(_id, options) {
|
|
|
2106
1536
|
[
|
|
2107
1537
|
{
|
|
2108
1538
|
transformFn: import_page_url_v2.transformSDKPageURLV2ToRESTPageURLV2,
|
|
2109
|
-
paths:
|
|
1539
|
+
paths: TRANSFORM_PATHS_82
|
|
2110
1540
|
},
|
|
2111
1541
|
{
|
|
2112
1542
|
transformFn: import_image.transformSDKImageToRESTImage,
|
|
2113
|
-
paths:
|
|
2114
|
-
{ path: "lineItems.media" },
|
|
2115
|
-
{ path: "lineItems.catalogOverrideFields.image" },
|
|
2116
|
-
{ path: "customLineItems.media" }
|
|
2117
|
-
]
|
|
1543
|
+
paths: TRANSFORM_PATHS_92
|
|
2118
1544
|
}
|
|
2119
1545
|
]
|
|
2120
1546
|
);
|
|
@@ -2127,27 +1553,15 @@ async function addToCheckout2(_id, options) {
|
|
|
2127
1553
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
2128
1554
|
{
|
|
2129
1555
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
2130
|
-
paths:
|
|
1556
|
+
paths: TRANSFORM_PATHS_32
|
|
2131
1557
|
},
|
|
2132
1558
|
{
|
|
2133
1559
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
2134
|
-
paths:
|
|
2135
|
-
{ path: "checkout.lineItems.media" },
|
|
2136
|
-
{ path: "checkout.lineItems.catalogOverrideFields.image" }
|
|
2137
|
-
]
|
|
1560
|
+
paths: TRANSFORM_PATHS_42
|
|
2138
1561
|
},
|
|
2139
1562
|
{
|
|
2140
1563
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
2141
|
-
paths:
|
|
2142
|
-
{ path: "checkout.billingInfo.address" },
|
|
2143
|
-
{ path: "checkout.shippingInfo.shippingDestination.address" },
|
|
2144
|
-
{
|
|
2145
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
2146
|
-
},
|
|
2147
|
-
{
|
|
2148
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
2149
|
-
}
|
|
2150
|
-
]
|
|
1564
|
+
paths: TRANSFORM_PATHS_52
|
|
2151
1565
|
}
|
|
2152
1566
|
])
|
|
2153
1567
|
);
|
|
@@ -2184,27 +1598,15 @@ async function removeLineItems2(_id, lineItemIds) {
|
|
|
2184
1598
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
2185
1599
|
{
|
|
2186
1600
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
2187
|
-
paths:
|
|
1601
|
+
paths: TRANSFORM_PATHS_32
|
|
2188
1602
|
},
|
|
2189
1603
|
{
|
|
2190
1604
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
2191
|
-
paths:
|
|
2192
|
-
{ path: "checkout.lineItems.media" },
|
|
2193
|
-
{ path: "checkout.lineItems.catalogOverrideFields.image" }
|
|
2194
|
-
]
|
|
1605
|
+
paths: TRANSFORM_PATHS_42
|
|
2195
1606
|
},
|
|
2196
1607
|
{
|
|
2197
1608
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
2198
|
-
paths:
|
|
2199
|
-
{ path: "checkout.billingInfo.address" },
|
|
2200
|
-
{ path: "checkout.shippingInfo.shippingDestination.address" },
|
|
2201
|
-
{
|
|
2202
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
2203
|
-
},
|
|
2204
|
-
{
|
|
2205
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
2206
|
-
}
|
|
2207
|
-
]
|
|
1609
|
+
paths: TRANSFORM_PATHS_52
|
|
2208
1610
|
}
|
|
2209
1611
|
])
|
|
2210
1612
|
);
|
|
@@ -2355,27 +1757,15 @@ async function updateLineItemsQuantity2(_id, lineItems) {
|
|
|
2355
1757
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
2356
1758
|
{
|
|
2357
1759
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
2358
|
-
paths:
|
|
1760
|
+
paths: TRANSFORM_PATHS_32
|
|
2359
1761
|
},
|
|
2360
1762
|
{
|
|
2361
1763
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
2362
|
-
paths:
|
|
2363
|
-
{ path: "checkout.lineItems.media" },
|
|
2364
|
-
{ path: "checkout.lineItems.catalogOverrideFields.image" }
|
|
2365
|
-
]
|
|
1764
|
+
paths: TRANSFORM_PATHS_42
|
|
2366
1765
|
},
|
|
2367
1766
|
{
|
|
2368
1767
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
2369
|
-
paths:
|
|
2370
|
-
{ path: "checkout.billingInfo.address" },
|
|
2371
|
-
{ path: "checkout.shippingInfo.shippingDestination.address" },
|
|
2372
|
-
{
|
|
2373
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
2374
|
-
},
|
|
2375
|
-
{
|
|
2376
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
2377
|
-
}
|
|
2378
|
-
]
|
|
1768
|
+
paths: TRANSFORM_PATHS_52
|
|
2379
1769
|
}
|
|
2380
1770
|
])
|
|
2381
1771
|
);
|
|
@@ -2395,6 +1785,244 @@ async function updateLineItemsQuantity2(_id, lineItems) {
|
|
|
2395
1785
|
}
|
|
2396
1786
|
|
|
2397
1787
|
// src/ecom-v1-checkout-checkout.public.ts
|
|
1788
|
+
var TRANSFORM_PATHS_03 = [
|
|
1789
|
+
{ path: "data.checkout.createdDate" },
|
|
1790
|
+
{ path: "data.checkout.updatedDate" },
|
|
1791
|
+
{
|
|
1792
|
+
path: "data.checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
1793
|
+
},
|
|
1794
|
+
{ path: "data.checkout.lineItems.serviceProperties.scheduledDate" },
|
|
1795
|
+
{ path: "data.checkout.lineItems.serviceProperties.endDate" },
|
|
1796
|
+
{
|
|
1797
|
+
path: "data.checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
1798
|
+
},
|
|
1799
|
+
{
|
|
1800
|
+
path: "data.checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
1801
|
+
},
|
|
1802
|
+
{
|
|
1803
|
+
path: "data.checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
1804
|
+
},
|
|
1805
|
+
{
|
|
1806
|
+
path: "data.checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
1807
|
+
},
|
|
1808
|
+
{
|
|
1809
|
+
path: "data.checkout.membershipOptions.eligibleMemberships.expirationDate"
|
|
1810
|
+
},
|
|
1811
|
+
{
|
|
1812
|
+
path: "data.checkout.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
1813
|
+
},
|
|
1814
|
+
{ path: "data.checkout.subscriptionCharges.charges.cycleBillingDate" },
|
|
1815
|
+
{ path: "metadata.eventTime" }
|
|
1816
|
+
];
|
|
1817
|
+
var TRANSFORM_PATHS_13 = [{ path: "data.checkout.lineItems.url" }];
|
|
1818
|
+
var TRANSFORM_PATHS_23 = [
|
|
1819
|
+
{ path: "data.checkout.lineItems.media" },
|
|
1820
|
+
{ path: "data.checkout.lineItems.catalogOverrideFields.image" }
|
|
1821
|
+
];
|
|
1822
|
+
var TRANSFORM_PATHS_33 = [
|
|
1823
|
+
{ path: "data.checkout.lineItems.physicalProperties.weight" },
|
|
1824
|
+
{
|
|
1825
|
+
path: "data.checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
1826
|
+
},
|
|
1827
|
+
{ path: "data.checkout.appliedDiscounts.merchantDiscount.percentage" }
|
|
1828
|
+
];
|
|
1829
|
+
var TRANSFORM_PATHS_43 = [
|
|
1830
|
+
{ path: "data.checkout.billingInfo.address" },
|
|
1831
|
+
{ path: "data.checkout.shippingInfo.shippingDestination.address" },
|
|
1832
|
+
{
|
|
1833
|
+
path: "data.checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
1834
|
+
},
|
|
1835
|
+
{
|
|
1836
|
+
path: "data.checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
1837
|
+
}
|
|
1838
|
+
];
|
|
1839
|
+
var TRANSFORM_PATHS_53 = [
|
|
1840
|
+
{ path: "entity.createdDate" },
|
|
1841
|
+
{ path: "entity.updatedDate" },
|
|
1842
|
+
{
|
|
1843
|
+
path: "entity.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
1844
|
+
},
|
|
1845
|
+
{ path: "entity.lineItems.serviceProperties.scheduledDate" },
|
|
1846
|
+
{ path: "entity.lineItems.serviceProperties.endDate" },
|
|
1847
|
+
{
|
|
1848
|
+
path: "entity.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
1849
|
+
},
|
|
1850
|
+
{
|
|
1851
|
+
path: "entity.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
1852
|
+
},
|
|
1853
|
+
{
|
|
1854
|
+
path: "entity.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
1855
|
+
},
|
|
1856
|
+
{
|
|
1857
|
+
path: "entity.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
1858
|
+
},
|
|
1859
|
+
{ path: "entity.membershipOptions.eligibleMemberships.expirationDate" },
|
|
1860
|
+
{
|
|
1861
|
+
path: "entity.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
1862
|
+
},
|
|
1863
|
+
{ path: "entity.subscriptionCharges.charges.cycleBillingDate" },
|
|
1864
|
+
{ path: "metadata.eventTime" }
|
|
1865
|
+
];
|
|
1866
|
+
var TRANSFORM_PATHS_63 = [{ path: "entity.lineItems.url" }];
|
|
1867
|
+
var TRANSFORM_PATHS_73 = [
|
|
1868
|
+
{ path: "entity.lineItems.media" },
|
|
1869
|
+
{ path: "entity.lineItems.catalogOverrideFields.image" }
|
|
1870
|
+
];
|
|
1871
|
+
var TRANSFORM_PATHS_83 = [
|
|
1872
|
+
{ path: "entity.lineItems.physicalProperties.weight" },
|
|
1873
|
+
{ path: "entity.lineItems.catalogOverrideFields.physicalProperties.weight" },
|
|
1874
|
+
{ path: "entity.appliedDiscounts.merchantDiscount.percentage" }
|
|
1875
|
+
];
|
|
1876
|
+
var TRANSFORM_PATHS_93 = [
|
|
1877
|
+
{ path: "entity.billingInfo.address" },
|
|
1878
|
+
{ path: "entity.shippingInfo.shippingDestination.address" },
|
|
1879
|
+
{
|
|
1880
|
+
path: "entity.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
1881
|
+
},
|
|
1882
|
+
{
|
|
1883
|
+
path: "entity.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
1884
|
+
}
|
|
1885
|
+
];
|
|
1886
|
+
var TRANSFORM_PATHS_10 = [
|
|
1887
|
+
{ path: "undefined.createdDate" },
|
|
1888
|
+
{ path: "undefined.updatedDate" },
|
|
1889
|
+
{
|
|
1890
|
+
path: "undefined.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
1891
|
+
},
|
|
1892
|
+
{ path: "undefined.lineItems.serviceProperties.scheduledDate" },
|
|
1893
|
+
{ path: "undefined.lineItems.serviceProperties.endDate" },
|
|
1894
|
+
{
|
|
1895
|
+
path: "undefined.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
1896
|
+
},
|
|
1897
|
+
{
|
|
1898
|
+
path: "undefined.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
1899
|
+
},
|
|
1900
|
+
{
|
|
1901
|
+
path: "undefined.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
1902
|
+
},
|
|
1903
|
+
{
|
|
1904
|
+
path: "undefined.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
1905
|
+
},
|
|
1906
|
+
{ path: "undefined.membershipOptions.eligibleMemberships.expirationDate" },
|
|
1907
|
+
{
|
|
1908
|
+
path: "undefined.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
1909
|
+
},
|
|
1910
|
+
{ path: "undefined.subscriptionCharges.charges.cycleBillingDate" },
|
|
1911
|
+
{ path: "metadata.eventTime" }
|
|
1912
|
+
];
|
|
1913
|
+
var TRANSFORM_PATHS_11 = [{ path: "undefined.lineItems.url" }];
|
|
1914
|
+
var TRANSFORM_PATHS_122 = [
|
|
1915
|
+
{ path: "undefined.lineItems.media" },
|
|
1916
|
+
{ path: "undefined.lineItems.catalogOverrideFields.image" }
|
|
1917
|
+
];
|
|
1918
|
+
var TRANSFORM_PATHS_132 = [
|
|
1919
|
+
{ path: "undefined.lineItems.physicalProperties.weight" },
|
|
1920
|
+
{
|
|
1921
|
+
path: "undefined.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
1922
|
+
},
|
|
1923
|
+
{ path: "undefined.appliedDiscounts.merchantDiscount.percentage" }
|
|
1924
|
+
];
|
|
1925
|
+
var TRANSFORM_PATHS_14 = [
|
|
1926
|
+
{ path: "undefined.billingInfo.address" },
|
|
1927
|
+
{ path: "undefined.shippingInfo.shippingDestination.address" },
|
|
1928
|
+
{
|
|
1929
|
+
path: "undefined.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
1930
|
+
},
|
|
1931
|
+
{
|
|
1932
|
+
path: "undefined.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
1933
|
+
}
|
|
1934
|
+
];
|
|
1935
|
+
var TRANSFORM_PATHS_15 = [
|
|
1936
|
+
{ path: "entity.createdDate" },
|
|
1937
|
+
{ path: "entity.updatedDate" },
|
|
1938
|
+
{
|
|
1939
|
+
path: "entity.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
1940
|
+
},
|
|
1941
|
+
{ path: "entity.lineItems.serviceProperties.scheduledDate" },
|
|
1942
|
+
{ path: "entity.lineItems.serviceProperties.endDate" },
|
|
1943
|
+
{
|
|
1944
|
+
path: "entity.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
1945
|
+
},
|
|
1946
|
+
{
|
|
1947
|
+
path: "entity.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
1948
|
+
},
|
|
1949
|
+
{
|
|
1950
|
+
path: "entity.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
1951
|
+
},
|
|
1952
|
+
{
|
|
1953
|
+
path: "entity.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
1954
|
+
},
|
|
1955
|
+
{ path: "entity.membershipOptions.eligibleMemberships.expirationDate" },
|
|
1956
|
+
{
|
|
1957
|
+
path: "entity.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
1958
|
+
},
|
|
1959
|
+
{ path: "entity.subscriptionCharges.charges.cycleBillingDate" },
|
|
1960
|
+
{ path: "metadata.eventTime" },
|
|
1961
|
+
{ path: "modifiedFields.createdDate" },
|
|
1962
|
+
{ path: "modifiedFields.updatedDate" },
|
|
1963
|
+
{
|
|
1964
|
+
path: "modifiedFields.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
1965
|
+
},
|
|
1966
|
+
{ path: "modifiedFields.lineItems.serviceProperties.scheduledDate" },
|
|
1967
|
+
{ path: "modifiedFields.lineItems.serviceProperties.endDate" },
|
|
1968
|
+
{
|
|
1969
|
+
path: "modifiedFields.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
1970
|
+
},
|
|
1971
|
+
{
|
|
1972
|
+
path: "modifiedFields.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
1973
|
+
},
|
|
1974
|
+
{
|
|
1975
|
+
path: "modifiedFields.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
1976
|
+
},
|
|
1977
|
+
{
|
|
1978
|
+
path: "modifiedFields.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
1979
|
+
},
|
|
1980
|
+
{
|
|
1981
|
+
path: "modifiedFields.membershipOptions.eligibleMemberships.expirationDate"
|
|
1982
|
+
},
|
|
1983
|
+
{
|
|
1984
|
+
path: "modifiedFields.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
1985
|
+
},
|
|
1986
|
+
{ path: "modifiedFields.subscriptionCharges.charges.cycleBillingDate" }
|
|
1987
|
+
];
|
|
1988
|
+
var TRANSFORM_PATHS_16 = [
|
|
1989
|
+
{ path: "entity.lineItems.url" },
|
|
1990
|
+
{ path: "modifiedFields.lineItems.url" }
|
|
1991
|
+
];
|
|
1992
|
+
var TRANSFORM_PATHS_17 = [
|
|
1993
|
+
{ path: "entity.lineItems.media" },
|
|
1994
|
+
{ path: "entity.lineItems.catalogOverrideFields.image" },
|
|
1995
|
+
{ path: "modifiedFields.lineItems.media" },
|
|
1996
|
+
{ path: "modifiedFields.lineItems.catalogOverrideFields.image" }
|
|
1997
|
+
];
|
|
1998
|
+
var TRANSFORM_PATHS_18 = [
|
|
1999
|
+
{ path: "entity.lineItems.physicalProperties.weight" },
|
|
2000
|
+
{ path: "entity.lineItems.catalogOverrideFields.physicalProperties.weight" },
|
|
2001
|
+
{ path: "entity.appliedDiscounts.merchantDiscount.percentage" },
|
|
2002
|
+
{ path: "modifiedFields.lineItems.physicalProperties.weight" },
|
|
2003
|
+
{
|
|
2004
|
+
path: "modifiedFields.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
2005
|
+
},
|
|
2006
|
+
{ path: "modifiedFields.appliedDiscounts.merchantDiscount.percentage" }
|
|
2007
|
+
];
|
|
2008
|
+
var TRANSFORM_PATHS_19 = [
|
|
2009
|
+
{ path: "entity.billingInfo.address" },
|
|
2010
|
+
{ path: "entity.shippingInfo.shippingDestination.address" },
|
|
2011
|
+
{
|
|
2012
|
+
path: "entity.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
2013
|
+
},
|
|
2014
|
+
{
|
|
2015
|
+
path: "entity.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
2016
|
+
},
|
|
2017
|
+
{ path: "modifiedFields.billingInfo.address" },
|
|
2018
|
+
{ path: "modifiedFields.shippingInfo.shippingDestination.address" },
|
|
2019
|
+
{
|
|
2020
|
+
path: "modifiedFields.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
2021
|
+
},
|
|
2022
|
+
{
|
|
2023
|
+
path: "modifiedFields.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
2024
|
+
}
|
|
2025
|
+
];
|
|
2398
2026
|
function createCheckout3(httpClient) {
|
|
2399
2027
|
return (options) => createCheckout2(
|
|
2400
2028
|
options,
|
|
@@ -2522,73 +2150,23 @@ var onCheckoutCompleted = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
|
2522
2150
|
(0, import_transform_paths3.transformPaths)(event, [
|
|
2523
2151
|
{
|
|
2524
2152
|
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
2525
|
-
paths:
|
|
2526
|
-
{ path: "data.checkout.createdDate" },
|
|
2527
|
-
{ path: "data.checkout.updatedDate" },
|
|
2528
|
-
{
|
|
2529
|
-
path: "data.checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
2530
|
-
},
|
|
2531
|
-
{ path: "data.checkout.lineItems.serviceProperties.scheduledDate" },
|
|
2532
|
-
{ path: "data.checkout.lineItems.serviceProperties.endDate" },
|
|
2533
|
-
{
|
|
2534
|
-
path: "data.checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
2535
|
-
},
|
|
2536
|
-
{
|
|
2537
|
-
path: "data.checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
2538
|
-
},
|
|
2539
|
-
{
|
|
2540
|
-
path: "data.checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
2541
|
-
},
|
|
2542
|
-
{
|
|
2543
|
-
path: "data.checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
2544
|
-
},
|
|
2545
|
-
{
|
|
2546
|
-
path: "data.checkout.membershipOptions.eligibleMemberships.expirationDate"
|
|
2547
|
-
},
|
|
2548
|
-
{
|
|
2549
|
-
path: "data.checkout.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
2550
|
-
},
|
|
2551
|
-
{
|
|
2552
|
-
path: "data.checkout.subscriptionCharges.charges.cycleBillingDate"
|
|
2553
|
-
},
|
|
2554
|
-
{ path: "metadata.eventTime" }
|
|
2555
|
-
]
|
|
2153
|
+
paths: TRANSFORM_PATHS_03
|
|
2556
2154
|
},
|
|
2557
2155
|
{
|
|
2558
2156
|
transformFn: import_page_url_v23.transformRESTPageURLV2ToSDKPageURLV2,
|
|
2559
|
-
paths:
|
|
2157
|
+
paths: TRANSFORM_PATHS_13
|
|
2560
2158
|
},
|
|
2561
2159
|
{
|
|
2562
2160
|
transformFn: import_image3.transformRESTImageToSDKImage,
|
|
2563
|
-
paths:
|
|
2564
|
-
{ path: "data.checkout.lineItems.media" },
|
|
2565
|
-
{ path: "data.checkout.lineItems.catalogOverrideFields.image" }
|
|
2566
|
-
]
|
|
2161
|
+
paths: TRANSFORM_PATHS_23
|
|
2567
2162
|
},
|
|
2568
2163
|
{
|
|
2569
2164
|
transformFn: import_float3.transformRESTFloatToSDKFloat,
|
|
2570
|
-
paths:
|
|
2571
|
-
{ path: "data.checkout.lineItems.physicalProperties.weight" },
|
|
2572
|
-
{
|
|
2573
|
-
path: "data.checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
2574
|
-
},
|
|
2575
|
-
{
|
|
2576
|
-
path: "data.checkout.appliedDiscounts.merchantDiscount.percentage"
|
|
2577
|
-
}
|
|
2578
|
-
]
|
|
2165
|
+
paths: TRANSFORM_PATHS_33
|
|
2579
2166
|
},
|
|
2580
2167
|
{
|
|
2581
2168
|
transformFn: import_address3.transformRESTAddressToSDKAddress,
|
|
2582
|
-
paths:
|
|
2583
|
-
{ path: "data.checkout.billingInfo.address" },
|
|
2584
|
-
{ path: "data.checkout.shippingInfo.shippingDestination.address" },
|
|
2585
|
-
{
|
|
2586
|
-
path: "data.checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
2587
|
-
},
|
|
2588
|
-
{
|
|
2589
|
-
path: "data.checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
2590
|
-
}
|
|
2591
|
-
]
|
|
2169
|
+
paths: TRANSFORM_PATHS_43
|
|
2592
2170
|
}
|
|
2593
2171
|
])
|
|
2594
2172
|
)
|
|
@@ -2600,69 +2178,23 @@ var onCheckoutCreated = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
|
2600
2178
|
(0, import_transform_paths3.transformPaths)(event, [
|
|
2601
2179
|
{
|
|
2602
2180
|
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
2603
|
-
paths:
|
|
2604
|
-
{ path: "entity.createdDate" },
|
|
2605
|
-
{ path: "entity.updatedDate" },
|
|
2606
|
-
{
|
|
2607
|
-
path: "entity.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
2608
|
-
},
|
|
2609
|
-
{ path: "entity.lineItems.serviceProperties.scheduledDate" },
|
|
2610
|
-
{ path: "entity.lineItems.serviceProperties.endDate" },
|
|
2611
|
-
{
|
|
2612
|
-
path: "entity.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
2613
|
-
},
|
|
2614
|
-
{
|
|
2615
|
-
path: "entity.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
2616
|
-
},
|
|
2617
|
-
{
|
|
2618
|
-
path: "entity.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
2619
|
-
},
|
|
2620
|
-
{
|
|
2621
|
-
path: "entity.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
2622
|
-
},
|
|
2623
|
-
{
|
|
2624
|
-
path: "entity.membershipOptions.eligibleMemberships.expirationDate"
|
|
2625
|
-
},
|
|
2626
|
-
{
|
|
2627
|
-
path: "entity.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
2628
|
-
},
|
|
2629
|
-
{ path: "entity.subscriptionCharges.charges.cycleBillingDate" },
|
|
2630
|
-
{ path: "metadata.eventTime" }
|
|
2631
|
-
]
|
|
2181
|
+
paths: TRANSFORM_PATHS_53
|
|
2632
2182
|
},
|
|
2633
2183
|
{
|
|
2634
2184
|
transformFn: import_page_url_v23.transformRESTPageURLV2ToSDKPageURLV2,
|
|
2635
|
-
paths:
|
|
2185
|
+
paths: TRANSFORM_PATHS_63
|
|
2636
2186
|
},
|
|
2637
2187
|
{
|
|
2638
2188
|
transformFn: import_image3.transformRESTImageToSDKImage,
|
|
2639
|
-
paths:
|
|
2640
|
-
{ path: "entity.lineItems.media" },
|
|
2641
|
-
{ path: "entity.lineItems.catalogOverrideFields.image" }
|
|
2642
|
-
]
|
|
2189
|
+
paths: TRANSFORM_PATHS_73
|
|
2643
2190
|
},
|
|
2644
2191
|
{
|
|
2645
2192
|
transformFn: import_float3.transformRESTFloatToSDKFloat,
|
|
2646
|
-
paths:
|
|
2647
|
-
{ path: "entity.lineItems.physicalProperties.weight" },
|
|
2648
|
-
{
|
|
2649
|
-
path: "entity.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
2650
|
-
},
|
|
2651
|
-
{ path: "entity.appliedDiscounts.merchantDiscount.percentage" }
|
|
2652
|
-
]
|
|
2193
|
+
paths: TRANSFORM_PATHS_83
|
|
2653
2194
|
},
|
|
2654
2195
|
{
|
|
2655
2196
|
transformFn: import_address3.transformRESTAddressToSDKAddress,
|
|
2656
|
-
paths:
|
|
2657
|
-
{ path: "entity.billingInfo.address" },
|
|
2658
|
-
{ path: "entity.shippingInfo.shippingDestination.address" },
|
|
2659
|
-
{
|
|
2660
|
-
path: "entity.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
2661
|
-
},
|
|
2662
|
-
{
|
|
2663
|
-
path: "entity.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
2664
|
-
}
|
|
2665
|
-
]
|
|
2197
|
+
paths: TRANSFORM_PATHS_93
|
|
2666
2198
|
}
|
|
2667
2199
|
])
|
|
2668
2200
|
)
|
|
@@ -2674,69 +2206,23 @@ var onCheckoutDeleted = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
|
2674
2206
|
(0, import_transform_paths3.transformPaths)(event, [
|
|
2675
2207
|
{
|
|
2676
2208
|
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
2677
|
-
paths:
|
|
2678
|
-
{ path: "undefined.createdDate" },
|
|
2679
|
-
{ path: "undefined.updatedDate" },
|
|
2680
|
-
{
|
|
2681
|
-
path: "undefined.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
2682
|
-
},
|
|
2683
|
-
{ path: "undefined.lineItems.serviceProperties.scheduledDate" },
|
|
2684
|
-
{ path: "undefined.lineItems.serviceProperties.endDate" },
|
|
2685
|
-
{
|
|
2686
|
-
path: "undefined.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
2687
|
-
},
|
|
2688
|
-
{
|
|
2689
|
-
path: "undefined.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
2690
|
-
},
|
|
2691
|
-
{
|
|
2692
|
-
path: "undefined.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
2693
|
-
},
|
|
2694
|
-
{
|
|
2695
|
-
path: "undefined.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
2696
|
-
},
|
|
2697
|
-
{
|
|
2698
|
-
path: "undefined.membershipOptions.eligibleMemberships.expirationDate"
|
|
2699
|
-
},
|
|
2700
|
-
{
|
|
2701
|
-
path: "undefined.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
2702
|
-
},
|
|
2703
|
-
{ path: "undefined.subscriptionCharges.charges.cycleBillingDate" },
|
|
2704
|
-
{ path: "metadata.eventTime" }
|
|
2705
|
-
]
|
|
2209
|
+
paths: TRANSFORM_PATHS_10
|
|
2706
2210
|
},
|
|
2707
2211
|
{
|
|
2708
2212
|
transformFn: import_page_url_v23.transformRESTPageURLV2ToSDKPageURLV2,
|
|
2709
|
-
paths:
|
|
2213
|
+
paths: TRANSFORM_PATHS_11
|
|
2710
2214
|
},
|
|
2711
2215
|
{
|
|
2712
2216
|
transformFn: import_image3.transformRESTImageToSDKImage,
|
|
2713
|
-
paths:
|
|
2714
|
-
{ path: "undefined.lineItems.media" },
|
|
2715
|
-
{ path: "undefined.lineItems.catalogOverrideFields.image" }
|
|
2716
|
-
]
|
|
2217
|
+
paths: TRANSFORM_PATHS_122
|
|
2717
2218
|
},
|
|
2718
2219
|
{
|
|
2719
2220
|
transformFn: import_float3.transformRESTFloatToSDKFloat,
|
|
2720
|
-
paths:
|
|
2721
|
-
{ path: "undefined.lineItems.physicalProperties.weight" },
|
|
2722
|
-
{
|
|
2723
|
-
path: "undefined.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
2724
|
-
},
|
|
2725
|
-
{ path: "undefined.appliedDiscounts.merchantDiscount.percentage" }
|
|
2726
|
-
]
|
|
2221
|
+
paths: TRANSFORM_PATHS_132
|
|
2727
2222
|
},
|
|
2728
2223
|
{
|
|
2729
2224
|
transformFn: import_address3.transformRESTAddressToSDKAddress,
|
|
2730
|
-
paths:
|
|
2731
|
-
{ path: "undefined.billingInfo.address" },
|
|
2732
|
-
{ path: "undefined.shippingInfo.shippingDestination.address" },
|
|
2733
|
-
{
|
|
2734
|
-
path: "undefined.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
2735
|
-
},
|
|
2736
|
-
{
|
|
2737
|
-
path: "undefined.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
2738
|
-
}
|
|
2739
|
-
]
|
|
2225
|
+
paths: TRANSFORM_PATHS_14
|
|
2740
2226
|
}
|
|
2741
2227
|
])
|
|
2742
2228
|
)
|
|
@@ -2748,119 +2234,23 @@ var onCheckoutUpdated = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
|
2748
2234
|
(0, import_transform_paths3.transformPaths)(event, [
|
|
2749
2235
|
{
|
|
2750
2236
|
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
2751
|
-
paths:
|
|
2752
|
-
{ path: "entity.createdDate" },
|
|
2753
|
-
{ path: "entity.updatedDate" },
|
|
2754
|
-
{
|
|
2755
|
-
path: "entity.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
2756
|
-
},
|
|
2757
|
-
{ path: "entity.lineItems.serviceProperties.scheduledDate" },
|
|
2758
|
-
{ path: "entity.lineItems.serviceProperties.endDate" },
|
|
2759
|
-
{
|
|
2760
|
-
path: "entity.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
2761
|
-
},
|
|
2762
|
-
{
|
|
2763
|
-
path: "entity.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
2764
|
-
},
|
|
2765
|
-
{
|
|
2766
|
-
path: "entity.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
2767
|
-
},
|
|
2768
|
-
{
|
|
2769
|
-
path: "entity.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
2770
|
-
},
|
|
2771
|
-
{
|
|
2772
|
-
path: "entity.membershipOptions.eligibleMemberships.expirationDate"
|
|
2773
|
-
},
|
|
2774
|
-
{
|
|
2775
|
-
path: "entity.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
2776
|
-
},
|
|
2777
|
-
{ path: "entity.subscriptionCharges.charges.cycleBillingDate" },
|
|
2778
|
-
{ path: "metadata.eventTime" },
|
|
2779
|
-
{ path: "modifiedFields.createdDate" },
|
|
2780
|
-
{ path: "modifiedFields.updatedDate" },
|
|
2781
|
-
{
|
|
2782
|
-
path: "modifiedFields.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
2783
|
-
},
|
|
2784
|
-
{
|
|
2785
|
-
path: "modifiedFields.lineItems.serviceProperties.scheduledDate"
|
|
2786
|
-
},
|
|
2787
|
-
{ path: "modifiedFields.lineItems.serviceProperties.endDate" },
|
|
2788
|
-
{
|
|
2789
|
-
path: "modifiedFields.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
2790
|
-
},
|
|
2791
|
-
{
|
|
2792
|
-
path: "modifiedFields.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
2793
|
-
},
|
|
2794
|
-
{
|
|
2795
|
-
path: "modifiedFields.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
2796
|
-
},
|
|
2797
|
-
{
|
|
2798
|
-
path: "modifiedFields.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
2799
|
-
},
|
|
2800
|
-
{
|
|
2801
|
-
path: "modifiedFields.membershipOptions.eligibleMemberships.expirationDate"
|
|
2802
|
-
},
|
|
2803
|
-
{
|
|
2804
|
-
path: "modifiedFields.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
2805
|
-
},
|
|
2806
|
-
{
|
|
2807
|
-
path: "modifiedFields.subscriptionCharges.charges.cycleBillingDate"
|
|
2808
|
-
}
|
|
2809
|
-
]
|
|
2237
|
+
paths: TRANSFORM_PATHS_15
|
|
2810
2238
|
},
|
|
2811
2239
|
{
|
|
2812
2240
|
transformFn: import_page_url_v23.transformRESTPageURLV2ToSDKPageURLV2,
|
|
2813
|
-
paths:
|
|
2814
|
-
{ path: "entity.lineItems.url" },
|
|
2815
|
-
{ path: "modifiedFields.lineItems.url" }
|
|
2816
|
-
]
|
|
2241
|
+
paths: TRANSFORM_PATHS_16
|
|
2817
2242
|
},
|
|
2818
2243
|
{
|
|
2819
2244
|
transformFn: import_image3.transformRESTImageToSDKImage,
|
|
2820
|
-
paths:
|
|
2821
|
-
{ path: "entity.lineItems.media" },
|
|
2822
|
-
{ path: "entity.lineItems.catalogOverrideFields.image" },
|
|
2823
|
-
{ path: "modifiedFields.lineItems.media" },
|
|
2824
|
-
{ path: "modifiedFields.lineItems.catalogOverrideFields.image" }
|
|
2825
|
-
]
|
|
2245
|
+
paths: TRANSFORM_PATHS_17
|
|
2826
2246
|
},
|
|
2827
2247
|
{
|
|
2828
2248
|
transformFn: import_float3.transformRESTFloatToSDKFloat,
|
|
2829
|
-
paths:
|
|
2830
|
-
{ path: "entity.lineItems.physicalProperties.weight" },
|
|
2831
|
-
{
|
|
2832
|
-
path: "entity.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
2833
|
-
},
|
|
2834
|
-
{ path: "entity.appliedDiscounts.merchantDiscount.percentage" },
|
|
2835
|
-
{ path: "modifiedFields.lineItems.physicalProperties.weight" },
|
|
2836
|
-
{
|
|
2837
|
-
path: "modifiedFields.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
2838
|
-
},
|
|
2839
|
-
{
|
|
2840
|
-
path: "modifiedFields.appliedDiscounts.merchantDiscount.percentage"
|
|
2841
|
-
}
|
|
2842
|
-
]
|
|
2249
|
+
paths: TRANSFORM_PATHS_18
|
|
2843
2250
|
},
|
|
2844
2251
|
{
|
|
2845
2252
|
transformFn: import_address3.transformRESTAddressToSDKAddress,
|
|
2846
|
-
paths:
|
|
2847
|
-
{ path: "entity.billingInfo.address" },
|
|
2848
|
-
{ path: "entity.shippingInfo.shippingDestination.address" },
|
|
2849
|
-
{
|
|
2850
|
-
path: "entity.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
2851
|
-
},
|
|
2852
|
-
{
|
|
2853
|
-
path: "entity.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
2854
|
-
},
|
|
2855
|
-
{ path: "modifiedFields.billingInfo.address" },
|
|
2856
|
-
{ path: "modifiedFields.shippingInfo.shippingDestination.address" },
|
|
2857
|
-
{
|
|
2858
|
-
path: "modifiedFields.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
2859
|
-
},
|
|
2860
|
-
{
|
|
2861
|
-
path: "modifiedFields.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
2862
|
-
}
|
|
2863
|
-
]
|
|
2253
|
+
paths: TRANSFORM_PATHS_19
|
|
2864
2254
|
}
|
|
2865
2255
|
])
|
|
2866
2256
|
)
|