@wix/auto_sdk_ecom_checkout 1.0.174 → 1.0.176

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/meta.js CHANGED
@@ -77,6 +77,222 @@ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
77
77
  var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
78
78
  var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
79
79
  var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
80
+ var TRANSFORM_PATHS_0 = [
81
+ { path: "checkoutInfo.createdDate" },
82
+ { path: "checkoutInfo.updatedDate" },
83
+ { path: "checkoutInfo.lineItems.media.urlExpirationDate" },
84
+ {
85
+ path: "checkoutInfo.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
86
+ },
87
+ { path: "checkoutInfo.lineItems.serviceProperties.scheduledDate" },
88
+ { path: "checkoutInfo.lineItems.serviceProperties.endDate" },
89
+ {
90
+ path: "checkoutInfo.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
91
+ },
92
+ {
93
+ path: "checkoutInfo.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
94
+ },
95
+ {
96
+ path: "checkoutInfo.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
97
+ },
98
+ {
99
+ path: "checkoutInfo.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
100
+ },
101
+ { path: "checkoutInfo.membershipOptions.eligibleMemberships.expirationDate" },
102
+ {
103
+ path: "checkoutInfo.membershipOptions.invalidMemberships.membership.expirationDate"
104
+ },
105
+ { path: "checkoutInfo.subscriptionCharges.charges.cycleBillingDate" },
106
+ { path: "lineItems.media.urlExpirationDate" },
107
+ { path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate" },
108
+ { path: "lineItems.serviceProperties.scheduledDate" },
109
+ { path: "lineItems.serviceProperties.endDate" },
110
+ {
111
+ path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
112
+ },
113
+ { path: "customLineItems.serviceProperties.scheduledDate" },
114
+ { path: "customLineItems.serviceProperties.endDate" }
115
+ ];
116
+ var TRANSFORM_PATHS_1 = [
117
+ { path: "checkoutInfo.lineItems.media.focalPoint.x" },
118
+ { path: "checkoutInfo.lineItems.media.focalPoint.y" },
119
+ { path: "lineItems.media.focalPoint.x" },
120
+ { path: "lineItems.media.focalPoint.y" },
121
+ { path: "checkoutInfo.lineItems.physicalProperties.weight" },
122
+ {
123
+ path: "checkoutInfo.lineItems.catalogOverrideFields.physicalProperties.weight"
124
+ },
125
+ { path: "checkoutInfo.billingInfo.address.geocode.latitude" },
126
+ { path: "checkoutInfo.billingInfo.address.geocode.longitude" },
127
+ {
128
+ path: "checkoutInfo.shippingInfo.shippingDestination.address.geocode.latitude"
129
+ },
130
+ {
131
+ path: "checkoutInfo.shippingInfo.shippingDestination.address.geocode.longitude"
132
+ },
133
+ {
134
+ path: "checkoutInfo.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
135
+ },
136
+ {
137
+ path: "checkoutInfo.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
138
+ },
139
+ {
140
+ path: "checkoutInfo.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
141
+ },
142
+ {
143
+ path: "checkoutInfo.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
144
+ },
145
+ { path: "checkoutInfo.appliedDiscounts.merchantDiscount.percentage" },
146
+ { path: "lineItems.physicalProperties.weight" },
147
+ { path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
148
+ { path: "customLineItems.physicalProperties.weight" }
149
+ ];
150
+ var TRANSFORM_PATHS_2 = [
151
+ { path: "checkout.createdDate" },
152
+ { path: "checkout.updatedDate" },
153
+ { path: "checkout.lineItems.media.urlExpirationDate" },
154
+ {
155
+ path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
156
+ },
157
+ { path: "checkout.lineItems.serviceProperties.scheduledDate" },
158
+ { path: "checkout.lineItems.serviceProperties.endDate" },
159
+ {
160
+ path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
161
+ },
162
+ {
163
+ path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
164
+ },
165
+ {
166
+ path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
167
+ },
168
+ {
169
+ path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
170
+ },
171
+ { path: "checkout.membershipOptions.eligibleMemberships.expirationDate" },
172
+ {
173
+ path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
174
+ },
175
+ { path: "checkout.subscriptionCharges.charges.cycleBillingDate" }
176
+ ];
177
+ var TRANSFORM_PATHS_3 = [
178
+ { path: "checkout.lineItems.media.focalPoint.x" },
179
+ { path: "checkout.lineItems.media.focalPoint.y" },
180
+ { path: "checkout.lineItems.physicalProperties.weight" },
181
+ {
182
+ path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
183
+ },
184
+ { path: "checkout.billingInfo.address.geocode.latitude" },
185
+ { path: "checkout.billingInfo.address.geocode.longitude" },
186
+ {
187
+ path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
188
+ },
189
+ {
190
+ path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
191
+ },
192
+ {
193
+ path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
194
+ },
195
+ {
196
+ path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
197
+ },
198
+ {
199
+ path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
200
+ },
201
+ {
202
+ path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
203
+ },
204
+ { path: "checkout.appliedDiscounts.merchantDiscount.percentage" }
205
+ ];
206
+ var TRANSFORM_PATHS_4 = [{ path: "fieldMask" }];
207
+ var TRANSFORM_PATHS_5 = [
208
+ { path: "checkout.createdDate" },
209
+ { path: "checkout.updatedDate" },
210
+ { path: "checkout.lineItems.media.urlExpirationDate" },
211
+ {
212
+ path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
213
+ },
214
+ { path: "checkout.lineItems.serviceProperties.scheduledDate" },
215
+ { path: "checkout.lineItems.serviceProperties.endDate" },
216
+ {
217
+ path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
218
+ },
219
+ {
220
+ path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
221
+ },
222
+ {
223
+ path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
224
+ },
225
+ {
226
+ path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
227
+ },
228
+ { path: "checkout.membershipOptions.eligibleMemberships.expirationDate" },
229
+ {
230
+ path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
231
+ },
232
+ { path: "checkout.subscriptionCharges.charges.cycleBillingDate" },
233
+ { path: "lineItems.media.urlExpirationDate" },
234
+ { path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate" },
235
+ { path: "lineItems.serviceProperties.scheduledDate" },
236
+ { path: "lineItems.serviceProperties.endDate" },
237
+ {
238
+ path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
239
+ },
240
+ { path: "customLineItems.serviceProperties.scheduledDate" },
241
+ { path: "customLineItems.serviceProperties.endDate" }
242
+ ];
243
+ var TRANSFORM_PATHS_6 = [
244
+ { path: "checkout.lineItems.media.focalPoint.x" },
245
+ { path: "checkout.lineItems.media.focalPoint.y" },
246
+ { path: "lineItems.media.focalPoint.x" },
247
+ { path: "lineItems.media.focalPoint.y" },
248
+ { path: "checkout.lineItems.physicalProperties.weight" },
249
+ {
250
+ path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
251
+ },
252
+ { path: "checkout.billingInfo.address.geocode.latitude" },
253
+ { path: "checkout.billingInfo.address.geocode.longitude" },
254
+ {
255
+ path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
256
+ },
257
+ {
258
+ path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
259
+ },
260
+ {
261
+ path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
262
+ },
263
+ {
264
+ path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
265
+ },
266
+ {
267
+ path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
268
+ },
269
+ {
270
+ path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
271
+ },
272
+ { path: "checkout.appliedDiscounts.merchantDiscount.percentage" },
273
+ { path: "lineItems.physicalProperties.weight" },
274
+ { path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
275
+ { path: "customLineItems.physicalProperties.weight" }
276
+ ];
277
+ var TRANSFORM_PATHS_7 = [
278
+ { path: "lineItems.media.urlExpirationDate" },
279
+ { path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate" },
280
+ { path: "lineItems.serviceProperties.scheduledDate" },
281
+ { path: "lineItems.serviceProperties.endDate" },
282
+ {
283
+ path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
284
+ },
285
+ { path: "customLineItems.serviceProperties.scheduledDate" },
286
+ { path: "customLineItems.serviceProperties.endDate" }
287
+ ];
288
+ var TRANSFORM_PATHS_8 = [
289
+ { path: "lineItems.media.focalPoint.x" },
290
+ { path: "lineItems.media.focalPoint.y" },
291
+ { path: "lineItems.physicalProperties.weight" },
292
+ { path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
293
+ { path: "customLineItems.physicalProperties.weight" }
294
+ ];
295
+ var TRANSFORM_PATHS_9 = [{ path: "body" }];
80
296
  function resolveComWixEcomCheckoutApiV1CheckoutServiceUrl(opts) {
81
297
  const domainToMappings = {
82
298
  "www.wixapis.com": [
@@ -160,83 +376,11 @@ function createCheckout(payload) {
160
376
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
161
377
  {
162
378
  transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
163
- paths: [
164
- { path: "checkoutInfo.createdDate" },
165
- { path: "checkoutInfo.updatedDate" },
166
- { path: "checkoutInfo.lineItems.media.urlExpirationDate" },
167
- {
168
- path: "checkoutInfo.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
169
- },
170
- { path: "checkoutInfo.lineItems.serviceProperties.scheduledDate" },
171
- { path: "checkoutInfo.lineItems.serviceProperties.endDate" },
172
- {
173
- path: "checkoutInfo.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
174
- },
175
- {
176
- path: "checkoutInfo.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
177
- },
178
- {
179
- path: "checkoutInfo.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
180
- },
181
- {
182
- path: "checkoutInfo.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
183
- },
184
- {
185
- path: "checkoutInfo.membershipOptions.eligibleMemberships.expirationDate"
186
- },
187
- {
188
- path: "checkoutInfo.membershipOptions.invalidMemberships.membership.expirationDate"
189
- },
190
- { path: "checkoutInfo.subscriptionCharges.charges.cycleBillingDate" },
191
- { path: "lineItems.media.urlExpirationDate" },
192
- {
193
- path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
194
- },
195
- { path: "lineItems.serviceProperties.scheduledDate" },
196
- { path: "lineItems.serviceProperties.endDate" },
197
- {
198
- path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
199
- },
200
- { path: "customLineItems.serviceProperties.scheduledDate" },
201
- { path: "customLineItems.serviceProperties.endDate" }
202
- ]
379
+ paths: TRANSFORM_PATHS_0
203
380
  },
204
381
  {
205
382
  transformFn: import_float.transformSDKFloatToRESTFloat,
206
- paths: [
207
- { path: "checkoutInfo.lineItems.media.focalPoint.x" },
208
- { path: "checkoutInfo.lineItems.media.focalPoint.y" },
209
- { path: "lineItems.media.focalPoint.x" },
210
- { path: "lineItems.media.focalPoint.y" },
211
- { path: "checkoutInfo.lineItems.physicalProperties.weight" },
212
- {
213
- path: "checkoutInfo.lineItems.catalogOverrideFields.physicalProperties.weight"
214
- },
215
- { path: "checkoutInfo.billingInfo.address.geocode.latitude" },
216
- { path: "checkoutInfo.billingInfo.address.geocode.longitude" },
217
- {
218
- path: "checkoutInfo.shippingInfo.shippingDestination.address.geocode.latitude"
219
- },
220
- {
221
- path: "checkoutInfo.shippingInfo.shippingDestination.address.geocode.longitude"
222
- },
223
- {
224
- path: "checkoutInfo.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
225
- },
226
- {
227
- path: "checkoutInfo.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
228
- },
229
- {
230
- path: "checkoutInfo.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
231
- },
232
- {
233
- path: "checkoutInfo.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
234
- },
235
- { path: "checkoutInfo.appliedDiscounts.merchantDiscount.percentage" },
236
- { path: "lineItems.physicalProperties.weight" },
237
- { path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
238
- { path: "customLineItems.physicalProperties.weight" }
239
- ]
383
+ paths: TRANSFORM_PATHS_1
240
384
  }
241
385
  ]);
242
386
  const metadata = {
@@ -256,67 +400,11 @@ function createCheckout(payload) {
256
400
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
257
401
  {
258
402
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
259
- paths: [
260
- { path: "checkout.createdDate" },
261
- { path: "checkout.updatedDate" },
262
- { path: "checkout.lineItems.media.urlExpirationDate" },
263
- {
264
- path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
265
- },
266
- { path: "checkout.lineItems.serviceProperties.scheduledDate" },
267
- { path: "checkout.lineItems.serviceProperties.endDate" },
268
- {
269
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
270
- },
271
- {
272
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
273
- },
274
- {
275
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
276
- },
277
- {
278
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
279
- },
280
- {
281
- path: "checkout.membershipOptions.eligibleMemberships.expirationDate"
282
- },
283
- {
284
- path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
285
- },
286
- { path: "checkout.subscriptionCharges.charges.cycleBillingDate" }
287
- ]
403
+ paths: TRANSFORM_PATHS_2
288
404
  },
289
405
  {
290
406
  transformFn: import_float2.transformRESTFloatToSDKFloat,
291
- paths: [
292
- { path: "checkout.lineItems.media.focalPoint.x" },
293
- { path: "checkout.lineItems.media.focalPoint.y" },
294
- { path: "checkout.lineItems.physicalProperties.weight" },
295
- {
296
- path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
297
- },
298
- { path: "checkout.billingInfo.address.geocode.latitude" },
299
- { path: "checkout.billingInfo.address.geocode.longitude" },
300
- {
301
- path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
302
- },
303
- {
304
- path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
305
- },
306
- {
307
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
308
- },
309
- {
310
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
311
- },
312
- {
313
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
314
- },
315
- {
316
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
317
- },
318
- { path: "checkout.appliedDiscounts.merchantDiscount.percentage" }
319
- ]
407
+ paths: TRANSFORM_PATHS_3
320
408
  }
321
409
  ])
322
410
  };
@@ -343,67 +431,11 @@ function getCheckout(payload) {
343
431
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
344
432
  {
345
433
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
346
- paths: [
347
- { path: "checkout.createdDate" },
348
- { path: "checkout.updatedDate" },
349
- { path: "checkout.lineItems.media.urlExpirationDate" },
350
- {
351
- path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
352
- },
353
- { path: "checkout.lineItems.serviceProperties.scheduledDate" },
354
- { path: "checkout.lineItems.serviceProperties.endDate" },
355
- {
356
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
357
- },
358
- {
359
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
360
- },
361
- {
362
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
363
- },
364
- {
365
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
366
- },
367
- {
368
- path: "checkout.membershipOptions.eligibleMemberships.expirationDate"
369
- },
370
- {
371
- path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
372
- },
373
- { path: "checkout.subscriptionCharges.charges.cycleBillingDate" }
374
- ]
434
+ paths: TRANSFORM_PATHS_2
375
435
  },
376
436
  {
377
437
  transformFn: import_float2.transformRESTFloatToSDKFloat,
378
- paths: [
379
- { path: "checkout.lineItems.media.focalPoint.x" },
380
- { path: "checkout.lineItems.media.focalPoint.y" },
381
- { path: "checkout.lineItems.physicalProperties.weight" },
382
- {
383
- path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
384
- },
385
- { path: "checkout.billingInfo.address.geocode.latitude" },
386
- { path: "checkout.billingInfo.address.geocode.longitude" },
387
- {
388
- path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
389
- },
390
- {
391
- path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
392
- },
393
- {
394
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
395
- },
396
- {
397
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
398
- },
399
- {
400
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
401
- },
402
- {
403
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
404
- },
405
- { path: "checkout.appliedDiscounts.merchantDiscount.percentage" }
406
- ]
438
+ paths: TRANSFORM_PATHS_3
407
439
  }
408
440
  ])
409
441
  };
@@ -430,67 +462,11 @@ function getCheckoutByCartId(payload) {
430
462
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
431
463
  {
432
464
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
433
- paths: [
434
- { path: "checkout.createdDate" },
435
- { path: "checkout.updatedDate" },
436
- { path: "checkout.lineItems.media.urlExpirationDate" },
437
- {
438
- path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
439
- },
440
- { path: "checkout.lineItems.serviceProperties.scheduledDate" },
441
- { path: "checkout.lineItems.serviceProperties.endDate" },
442
- {
443
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
444
- },
445
- {
446
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
447
- },
448
- {
449
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
450
- },
451
- {
452
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
453
- },
454
- {
455
- path: "checkout.membershipOptions.eligibleMemberships.expirationDate"
456
- },
457
- {
458
- path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
459
- },
460
- { path: "checkout.subscriptionCharges.charges.cycleBillingDate" }
461
- ]
465
+ paths: TRANSFORM_PATHS_2
462
466
  },
463
467
  {
464
468
  transformFn: import_float2.transformRESTFloatToSDKFloat,
465
- paths: [
466
- { path: "checkout.lineItems.media.focalPoint.x" },
467
- { path: "checkout.lineItems.media.focalPoint.y" },
468
- { path: "checkout.lineItems.physicalProperties.weight" },
469
- {
470
- path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
471
- },
472
- { path: "checkout.billingInfo.address.geocode.latitude" },
473
- { path: "checkout.billingInfo.address.geocode.longitude" },
474
- {
475
- path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
476
- },
477
- {
478
- path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
479
- },
480
- {
481
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
482
- },
483
- {
484
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
485
- },
486
- {
487
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
488
- },
489
- {
490
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
491
- },
492
- { path: "checkout.appliedDiscounts.merchantDiscount.percentage" }
493
- ]
469
+ paths: TRANSFORM_PATHS_3
494
470
  }
495
471
  ])
496
472
  };
@@ -545,87 +521,15 @@ function updateCheckout(payload) {
545
521
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
546
522
  {
547
523
  transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
548
- paths: [{ path: "fieldMask" }]
524
+ paths: TRANSFORM_PATHS_4
549
525
  },
550
526
  {
551
527
  transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
552
- paths: [
553
- { path: "checkout.createdDate" },
554
- { path: "checkout.updatedDate" },
555
- { path: "checkout.lineItems.media.urlExpirationDate" },
556
- {
557
- path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
558
- },
559
- { path: "checkout.lineItems.serviceProperties.scheduledDate" },
560
- { path: "checkout.lineItems.serviceProperties.endDate" },
561
- {
562
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
563
- },
564
- {
565
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
566
- },
567
- {
568
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
569
- },
570
- {
571
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
572
- },
573
- {
574
- path: "checkout.membershipOptions.eligibleMemberships.expirationDate"
575
- },
576
- {
577
- path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
578
- },
579
- { path: "checkout.subscriptionCharges.charges.cycleBillingDate" },
580
- { path: "lineItems.media.urlExpirationDate" },
581
- {
582
- path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
583
- },
584
- { path: "lineItems.serviceProperties.scheduledDate" },
585
- { path: "lineItems.serviceProperties.endDate" },
586
- {
587
- path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
588
- },
589
- { path: "customLineItems.serviceProperties.scheduledDate" },
590
- { path: "customLineItems.serviceProperties.endDate" }
591
- ]
528
+ paths: TRANSFORM_PATHS_5
592
529
  },
593
530
  {
594
531
  transformFn: import_float.transformSDKFloatToRESTFloat,
595
- paths: [
596
- { path: "checkout.lineItems.media.focalPoint.x" },
597
- { path: "checkout.lineItems.media.focalPoint.y" },
598
- { path: "lineItems.media.focalPoint.x" },
599
- { path: "lineItems.media.focalPoint.y" },
600
- { path: "checkout.lineItems.physicalProperties.weight" },
601
- {
602
- path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
603
- },
604
- { path: "checkout.billingInfo.address.geocode.latitude" },
605
- { path: "checkout.billingInfo.address.geocode.longitude" },
606
- {
607
- path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
608
- },
609
- {
610
- path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
611
- },
612
- {
613
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
614
- },
615
- {
616
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
617
- },
618
- {
619
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
620
- },
621
- {
622
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
623
- },
624
- { path: "checkout.appliedDiscounts.merchantDiscount.percentage" },
625
- { path: "lineItems.physicalProperties.weight" },
626
- { path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
627
- { path: "customLineItems.physicalProperties.weight" }
628
- ]
532
+ paths: TRANSFORM_PATHS_6
629
533
  }
630
534
  ]);
631
535
  const metadata = {
@@ -645,67 +549,11 @@ function updateCheckout(payload) {
645
549
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
646
550
  {
647
551
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
648
- paths: [
649
- { path: "checkout.createdDate" },
650
- { path: "checkout.updatedDate" },
651
- { path: "checkout.lineItems.media.urlExpirationDate" },
652
- {
653
- path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
654
- },
655
- { path: "checkout.lineItems.serviceProperties.scheduledDate" },
656
- { path: "checkout.lineItems.serviceProperties.endDate" },
657
- {
658
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
659
- },
660
- {
661
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
662
- },
663
- {
664
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
665
- },
666
- {
667
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
668
- },
669
- {
670
- path: "checkout.membershipOptions.eligibleMemberships.expirationDate"
671
- },
672
- {
673
- path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
674
- },
675
- { path: "checkout.subscriptionCharges.charges.cycleBillingDate" }
676
- ]
552
+ paths: TRANSFORM_PATHS_2
677
553
  },
678
554
  {
679
555
  transformFn: import_float2.transformRESTFloatToSDKFloat,
680
- paths: [
681
- { path: "checkout.lineItems.media.focalPoint.x" },
682
- { path: "checkout.lineItems.media.focalPoint.y" },
683
- { path: "checkout.lineItems.physicalProperties.weight" },
684
- {
685
- path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
686
- },
687
- { path: "checkout.billingInfo.address.geocode.latitude" },
688
- { path: "checkout.billingInfo.address.geocode.longitude" },
689
- {
690
- path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
691
- },
692
- {
693
- path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
694
- },
695
- {
696
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
697
- },
698
- {
699
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
700
- },
701
- {
702
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
703
- },
704
- {
705
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
706
- },
707
- { path: "checkout.appliedDiscounts.merchantDiscount.percentage" }
708
- ]
556
+ paths: TRANSFORM_PATHS_3
709
557
  }
710
558
  ])
711
559
  };
@@ -732,67 +580,11 @@ function removeCoupon(payload) {
732
580
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
733
581
  {
734
582
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
735
- paths: [
736
- { path: "checkout.createdDate" },
737
- { path: "checkout.updatedDate" },
738
- { path: "checkout.lineItems.media.urlExpirationDate" },
739
- {
740
- path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
741
- },
742
- { path: "checkout.lineItems.serviceProperties.scheduledDate" },
743
- { path: "checkout.lineItems.serviceProperties.endDate" },
744
- {
745
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
746
- },
747
- {
748
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
749
- },
750
- {
751
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
752
- },
753
- {
754
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
755
- },
756
- {
757
- path: "checkout.membershipOptions.eligibleMemberships.expirationDate"
758
- },
759
- {
760
- path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
761
- },
762
- { path: "checkout.subscriptionCharges.charges.cycleBillingDate" }
763
- ]
583
+ paths: TRANSFORM_PATHS_2
764
584
  },
765
585
  {
766
586
  transformFn: import_float2.transformRESTFloatToSDKFloat,
767
- paths: [
768
- { path: "checkout.lineItems.media.focalPoint.x" },
769
- { path: "checkout.lineItems.media.focalPoint.y" },
770
- { path: "checkout.lineItems.physicalProperties.weight" },
771
- {
772
- path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
773
- },
774
- { path: "checkout.billingInfo.address.geocode.latitude" },
775
- { path: "checkout.billingInfo.address.geocode.longitude" },
776
- {
777
- path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
778
- },
779
- {
780
- path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
781
- },
782
- {
783
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
784
- },
785
- {
786
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
787
- },
788
- {
789
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
790
- },
791
- {
792
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
793
- },
794
- { path: "checkout.appliedDiscounts.merchantDiscount.percentage" }
795
- ]
587
+ paths: TRANSFORM_PATHS_3
796
588
  }
797
589
  ])
798
590
  };
@@ -819,67 +611,11 @@ function removeGiftCard(payload) {
819
611
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
820
612
  {
821
613
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
822
- paths: [
823
- { path: "checkout.createdDate" },
824
- { path: "checkout.updatedDate" },
825
- { path: "checkout.lineItems.media.urlExpirationDate" },
826
- {
827
- path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
828
- },
829
- { path: "checkout.lineItems.serviceProperties.scheduledDate" },
830
- { path: "checkout.lineItems.serviceProperties.endDate" },
831
- {
832
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
833
- },
834
- {
835
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
836
- },
837
- {
838
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
839
- },
840
- {
841
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
842
- },
843
- {
844
- path: "checkout.membershipOptions.eligibleMemberships.expirationDate"
845
- },
846
- {
847
- path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
848
- },
849
- { path: "checkout.subscriptionCharges.charges.cycleBillingDate" }
850
- ]
614
+ paths: TRANSFORM_PATHS_2
851
615
  },
852
616
  {
853
617
  transformFn: import_float2.transformRESTFloatToSDKFloat,
854
- paths: [
855
- { path: "checkout.lineItems.media.focalPoint.x" },
856
- { path: "checkout.lineItems.media.focalPoint.y" },
857
- { path: "checkout.lineItems.physicalProperties.weight" },
858
- {
859
- path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
860
- },
861
- { path: "checkout.billingInfo.address.geocode.latitude" },
862
- { path: "checkout.billingInfo.address.geocode.longitude" },
863
- {
864
- path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
865
- },
866
- {
867
- path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
868
- },
869
- {
870
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
871
- },
872
- {
873
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
874
- },
875
- {
876
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
877
- },
878
- {
879
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
880
- },
881
- { path: "checkout.appliedDiscounts.merchantDiscount.percentage" }
882
- ]
618
+ paths: TRANSFORM_PATHS_3
883
619
  }
884
620
  ])
885
621
  };
@@ -906,67 +642,11 @@ function removeOverrideCheckoutUrl(payload) {
906
642
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
907
643
  {
908
644
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
909
- paths: [
910
- { path: "checkout.createdDate" },
911
- { path: "checkout.updatedDate" },
912
- { path: "checkout.lineItems.media.urlExpirationDate" },
913
- {
914
- path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
915
- },
916
- { path: "checkout.lineItems.serviceProperties.scheduledDate" },
917
- { path: "checkout.lineItems.serviceProperties.endDate" },
918
- {
919
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
920
- },
921
- {
922
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
923
- },
924
- {
925
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
926
- },
927
- {
928
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
929
- },
930
- {
931
- path: "checkout.membershipOptions.eligibleMemberships.expirationDate"
932
- },
933
- {
934
- path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
935
- },
936
- { path: "checkout.subscriptionCharges.charges.cycleBillingDate" }
937
- ]
645
+ paths: TRANSFORM_PATHS_2
938
646
  },
939
647
  {
940
648
  transformFn: import_float2.transformRESTFloatToSDKFloat,
941
- paths: [
942
- { path: "checkout.lineItems.media.focalPoint.x" },
943
- { path: "checkout.lineItems.media.focalPoint.y" },
944
- { path: "checkout.lineItems.physicalProperties.weight" },
945
- {
946
- path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
947
- },
948
- { path: "checkout.billingInfo.address.geocode.latitude" },
949
- { path: "checkout.billingInfo.address.geocode.longitude" },
950
- {
951
- path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
952
- },
953
- {
954
- path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
955
- },
956
- {
957
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
958
- },
959
- {
960
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
961
- },
962
- {
963
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
964
- },
965
- {
966
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
967
- },
968
- { path: "checkout.appliedDiscounts.merchantDiscount.percentage" }
969
- ]
649
+ paths: TRANSFORM_PATHS_3
970
650
  }
971
651
  ])
972
652
  };
@@ -979,29 +659,11 @@ function addToCheckout(payload) {
979
659
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
980
660
  {
981
661
  transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
982
- paths: [
983
- { path: "lineItems.media.urlExpirationDate" },
984
- {
985
- path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
986
- },
987
- { path: "lineItems.serviceProperties.scheduledDate" },
988
- { path: "lineItems.serviceProperties.endDate" },
989
- {
990
- path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
991
- },
992
- { path: "customLineItems.serviceProperties.scheduledDate" },
993
- { path: "customLineItems.serviceProperties.endDate" }
994
- ]
662
+ paths: TRANSFORM_PATHS_7
995
663
  },
996
664
  {
997
665
  transformFn: import_float.transformSDKFloatToRESTFloat,
998
- paths: [
999
- { path: "lineItems.media.focalPoint.x" },
1000
- { path: "lineItems.media.focalPoint.y" },
1001
- { path: "lineItems.physicalProperties.weight" },
1002
- { path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
1003
- { path: "customLineItems.physicalProperties.weight" }
1004
- ]
666
+ paths: TRANSFORM_PATHS_8
1005
667
  }
1006
668
  ]);
1007
669
  const metadata = {
@@ -1021,67 +683,11 @@ function addToCheckout(payload) {
1021
683
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
1022
684
  {
1023
685
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
1024
- paths: [
1025
- { path: "checkout.createdDate" },
1026
- { path: "checkout.updatedDate" },
1027
- { path: "checkout.lineItems.media.urlExpirationDate" },
1028
- {
1029
- path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
1030
- },
1031
- { path: "checkout.lineItems.serviceProperties.scheduledDate" },
1032
- { path: "checkout.lineItems.serviceProperties.endDate" },
1033
- {
1034
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
1035
- },
1036
- {
1037
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
1038
- },
1039
- {
1040
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
1041
- },
1042
- {
1043
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
1044
- },
1045
- {
1046
- path: "checkout.membershipOptions.eligibleMemberships.expirationDate"
1047
- },
1048
- {
1049
- path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
1050
- },
1051
- { path: "checkout.subscriptionCharges.charges.cycleBillingDate" }
1052
- ]
686
+ paths: TRANSFORM_PATHS_2
1053
687
  },
1054
688
  {
1055
689
  transformFn: import_float2.transformRESTFloatToSDKFloat,
1056
- paths: [
1057
- { path: "checkout.lineItems.media.focalPoint.x" },
1058
- { path: "checkout.lineItems.media.focalPoint.y" },
1059
- { path: "checkout.lineItems.physicalProperties.weight" },
1060
- {
1061
- path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
1062
- },
1063
- { path: "checkout.billingInfo.address.geocode.latitude" },
1064
- { path: "checkout.billingInfo.address.geocode.longitude" },
1065
- {
1066
- path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
1067
- },
1068
- {
1069
- path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
1070
- },
1071
- {
1072
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
1073
- },
1074
- {
1075
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
1076
- },
1077
- {
1078
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
1079
- },
1080
- {
1081
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
1082
- },
1083
- { path: "checkout.appliedDiscounts.merchantDiscount.percentage" }
1084
- ]
690
+ paths: TRANSFORM_PATHS_3
1085
691
  }
1086
692
  ])
1087
693
  };
@@ -1108,67 +714,11 @@ function removeLineItems(payload) {
1108
714
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
1109
715
  {
1110
716
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
1111
- paths: [
1112
- { path: "checkout.createdDate" },
1113
- { path: "checkout.updatedDate" },
1114
- { path: "checkout.lineItems.media.urlExpirationDate" },
1115
- {
1116
- path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
1117
- },
1118
- { path: "checkout.lineItems.serviceProperties.scheduledDate" },
1119
- { path: "checkout.lineItems.serviceProperties.endDate" },
1120
- {
1121
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
1122
- },
1123
- {
1124
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
1125
- },
1126
- {
1127
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
1128
- },
1129
- {
1130
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
1131
- },
1132
- {
1133
- path: "checkout.membershipOptions.eligibleMemberships.expirationDate"
1134
- },
1135
- {
1136
- path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
1137
- },
1138
- { path: "checkout.subscriptionCharges.charges.cycleBillingDate" }
1139
- ]
717
+ paths: TRANSFORM_PATHS_2
1140
718
  },
1141
719
  {
1142
720
  transformFn: import_float2.transformRESTFloatToSDKFloat,
1143
- paths: [
1144
- { path: "checkout.lineItems.media.focalPoint.x" },
1145
- { path: "checkout.lineItems.media.focalPoint.y" },
1146
- { path: "checkout.lineItems.physicalProperties.weight" },
1147
- {
1148
- path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
1149
- },
1150
- { path: "checkout.billingInfo.address.geocode.latitude" },
1151
- { path: "checkout.billingInfo.address.geocode.longitude" },
1152
- {
1153
- path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
1154
- },
1155
- {
1156
- path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
1157
- },
1158
- {
1159
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
1160
- },
1161
- {
1162
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
1163
- },
1164
- {
1165
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
1166
- },
1167
- {
1168
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
1169
- },
1170
- { path: "checkout.appliedDiscounts.merchantDiscount.percentage" }
1171
- ]
721
+ paths: TRANSFORM_PATHS_3
1172
722
  }
1173
723
  ])
1174
724
  };
@@ -1237,7 +787,7 @@ function markCheckoutAsCompletedAndRedirectToUrl(payload) {
1237
787
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
1238
788
  {
1239
789
  transformFn: import_bytes.transformRESTBytesToSDKBytes,
1240
- paths: [{ path: "body" }]
790
+ paths: TRANSFORM_PATHS_9
1241
791
  }
1242
792
  ])
1243
793
  };
@@ -1285,67 +835,11 @@ function updateLineItemsQuantity(payload) {
1285
835
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
1286
836
  {
1287
837
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
1288
- paths: [
1289
- { path: "checkout.createdDate" },
1290
- { path: "checkout.updatedDate" },
1291
- { path: "checkout.lineItems.media.urlExpirationDate" },
1292
- {
1293
- path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
1294
- },
1295
- { path: "checkout.lineItems.serviceProperties.scheduledDate" },
1296
- { path: "checkout.lineItems.serviceProperties.endDate" },
1297
- {
1298
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
1299
- },
1300
- {
1301
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
1302
- },
1303
- {
1304
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
1305
- },
1306
- {
1307
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
1308
- },
1309
- {
1310
- path: "checkout.membershipOptions.eligibleMemberships.expirationDate"
1311
- },
1312
- {
1313
- path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
1314
- },
1315
- { path: "checkout.subscriptionCharges.charges.cycleBillingDate" }
1316
- ]
838
+ paths: TRANSFORM_PATHS_2
1317
839
  },
1318
840
  {
1319
841
  transformFn: import_float2.transformRESTFloatToSDKFloat,
1320
- paths: [
1321
- { path: "checkout.lineItems.media.focalPoint.x" },
1322
- { path: "checkout.lineItems.media.focalPoint.y" },
1323
- { path: "checkout.lineItems.physicalProperties.weight" },
1324
- {
1325
- path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
1326
- },
1327
- { path: "checkout.billingInfo.address.geocode.latitude" },
1328
- { path: "checkout.billingInfo.address.geocode.longitude" },
1329
- {
1330
- path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
1331
- },
1332
- {
1333
- path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
1334
- },
1335
- {
1336
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
1337
- },
1338
- {
1339
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
1340
- },
1341
- {
1342
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
1343
- },
1344
- {
1345
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
1346
- },
1347
- { path: "checkout.appliedDiscounts.merchantDiscount.percentage" }
1348
- ]
842
+ paths: TRANSFORM_PATHS_3
1349
843
  }
1350
844
  ])
1351
845
  };