@wix/auto_sdk_ecom_checkout 1.0.173 → 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.d.ts +1 -1
- package/build/cjs/index.typings.js +340 -950
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +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.d.mts +1 -1
- package/build/es/index.typings.mjs +340 -950
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +1 -1
- package/build/es/meta.mjs +244 -750
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +1 -1
- package/build/internal/cjs/meta.d.ts +1 -1
- package/build/internal/es/index.typings.d.mts +1 -1
- package/build/internal/es/meta.d.mts +1 -1
- package/package.json +2 -2
package/build/es/index.mjs
CHANGED
|
@@ -25,6 +25,222 @@ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transform
|
|
|
25
25
|
import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
|
|
26
26
|
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
27
27
|
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
28
|
+
var TRANSFORM_PATHS_0 = [
|
|
29
|
+
{ path: "checkoutInfo.createdDate" },
|
|
30
|
+
{ path: "checkoutInfo.updatedDate" },
|
|
31
|
+
{ path: "checkoutInfo.lineItems.media.urlExpirationDate" },
|
|
32
|
+
{
|
|
33
|
+
path: "checkoutInfo.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
34
|
+
},
|
|
35
|
+
{ path: "checkoutInfo.lineItems.serviceProperties.scheduledDate" },
|
|
36
|
+
{ path: "checkoutInfo.lineItems.serviceProperties.endDate" },
|
|
37
|
+
{
|
|
38
|
+
path: "checkoutInfo.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
path: "checkoutInfo.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
path: "checkoutInfo.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
path: "checkoutInfo.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
48
|
+
},
|
|
49
|
+
{ path: "checkoutInfo.membershipOptions.eligibleMemberships.expirationDate" },
|
|
50
|
+
{
|
|
51
|
+
path: "checkoutInfo.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
52
|
+
},
|
|
53
|
+
{ path: "checkoutInfo.subscriptionCharges.charges.cycleBillingDate" },
|
|
54
|
+
{ path: "lineItems.media.urlExpirationDate" },
|
|
55
|
+
{ path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate" },
|
|
56
|
+
{ path: "lineItems.serviceProperties.scheduledDate" },
|
|
57
|
+
{ path: "lineItems.serviceProperties.endDate" },
|
|
58
|
+
{
|
|
59
|
+
path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
60
|
+
},
|
|
61
|
+
{ path: "customLineItems.serviceProperties.scheduledDate" },
|
|
62
|
+
{ path: "customLineItems.serviceProperties.endDate" }
|
|
63
|
+
];
|
|
64
|
+
var TRANSFORM_PATHS_1 = [
|
|
65
|
+
{ path: "checkoutInfo.lineItems.media.focalPoint.x" },
|
|
66
|
+
{ path: "checkoutInfo.lineItems.media.focalPoint.y" },
|
|
67
|
+
{ path: "lineItems.media.focalPoint.x" },
|
|
68
|
+
{ path: "lineItems.media.focalPoint.y" },
|
|
69
|
+
{ path: "checkoutInfo.lineItems.physicalProperties.weight" },
|
|
70
|
+
{
|
|
71
|
+
path: "checkoutInfo.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
72
|
+
},
|
|
73
|
+
{ path: "checkoutInfo.billingInfo.address.geocode.latitude" },
|
|
74
|
+
{ path: "checkoutInfo.billingInfo.address.geocode.longitude" },
|
|
75
|
+
{
|
|
76
|
+
path: "checkoutInfo.shippingInfo.shippingDestination.address.geocode.latitude"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
path: "checkoutInfo.shippingInfo.shippingDestination.address.geocode.longitude"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
path: "checkoutInfo.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
path: "checkoutInfo.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
path: "checkoutInfo.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
path: "checkoutInfo.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
92
|
+
},
|
|
93
|
+
{ path: "checkoutInfo.appliedDiscounts.merchantDiscount.percentage" },
|
|
94
|
+
{ path: "lineItems.physicalProperties.weight" },
|
|
95
|
+
{ path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
|
|
96
|
+
{ path: "customLineItems.physicalProperties.weight" }
|
|
97
|
+
];
|
|
98
|
+
var TRANSFORM_PATHS_2 = [
|
|
99
|
+
{ path: "checkout.createdDate" },
|
|
100
|
+
{ path: "checkout.updatedDate" },
|
|
101
|
+
{ path: "checkout.lineItems.media.urlExpirationDate" },
|
|
102
|
+
{
|
|
103
|
+
path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
104
|
+
},
|
|
105
|
+
{ path: "checkout.lineItems.serviceProperties.scheduledDate" },
|
|
106
|
+
{ path: "checkout.lineItems.serviceProperties.endDate" },
|
|
107
|
+
{
|
|
108
|
+
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
118
|
+
},
|
|
119
|
+
{ path: "checkout.membershipOptions.eligibleMemberships.expirationDate" },
|
|
120
|
+
{
|
|
121
|
+
path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
122
|
+
},
|
|
123
|
+
{ path: "checkout.subscriptionCharges.charges.cycleBillingDate" }
|
|
124
|
+
];
|
|
125
|
+
var TRANSFORM_PATHS_3 = [
|
|
126
|
+
{ path: "checkout.lineItems.media.focalPoint.x" },
|
|
127
|
+
{ path: "checkout.lineItems.media.focalPoint.y" },
|
|
128
|
+
{ path: "checkout.lineItems.physicalProperties.weight" },
|
|
129
|
+
{
|
|
130
|
+
path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
131
|
+
},
|
|
132
|
+
{ path: "checkout.billingInfo.address.geocode.latitude" },
|
|
133
|
+
{ path: "checkout.billingInfo.address.geocode.longitude" },
|
|
134
|
+
{
|
|
135
|
+
path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
151
|
+
},
|
|
152
|
+
{ path: "checkout.appliedDiscounts.merchantDiscount.percentage" }
|
|
153
|
+
];
|
|
154
|
+
var TRANSFORM_PATHS_4 = [{ path: "fieldMask" }];
|
|
155
|
+
var TRANSFORM_PATHS_5 = [
|
|
156
|
+
{ path: "checkout.createdDate" },
|
|
157
|
+
{ path: "checkout.updatedDate" },
|
|
158
|
+
{ path: "checkout.lineItems.media.urlExpirationDate" },
|
|
159
|
+
{
|
|
160
|
+
path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
161
|
+
},
|
|
162
|
+
{ path: "checkout.lineItems.serviceProperties.scheduledDate" },
|
|
163
|
+
{ path: "checkout.lineItems.serviceProperties.endDate" },
|
|
164
|
+
{
|
|
165
|
+
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
175
|
+
},
|
|
176
|
+
{ path: "checkout.membershipOptions.eligibleMemberships.expirationDate" },
|
|
177
|
+
{
|
|
178
|
+
path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
179
|
+
},
|
|
180
|
+
{ path: "checkout.subscriptionCharges.charges.cycleBillingDate" },
|
|
181
|
+
{ path: "lineItems.media.urlExpirationDate" },
|
|
182
|
+
{ path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate" },
|
|
183
|
+
{ path: "lineItems.serviceProperties.scheduledDate" },
|
|
184
|
+
{ path: "lineItems.serviceProperties.endDate" },
|
|
185
|
+
{
|
|
186
|
+
path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
187
|
+
},
|
|
188
|
+
{ path: "customLineItems.serviceProperties.scheduledDate" },
|
|
189
|
+
{ path: "customLineItems.serviceProperties.endDate" }
|
|
190
|
+
];
|
|
191
|
+
var TRANSFORM_PATHS_6 = [
|
|
192
|
+
{ path: "checkout.lineItems.media.focalPoint.x" },
|
|
193
|
+
{ path: "checkout.lineItems.media.focalPoint.y" },
|
|
194
|
+
{ path: "lineItems.media.focalPoint.x" },
|
|
195
|
+
{ path: "lineItems.media.focalPoint.y" },
|
|
196
|
+
{ path: "checkout.lineItems.physicalProperties.weight" },
|
|
197
|
+
{
|
|
198
|
+
path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
199
|
+
},
|
|
200
|
+
{ path: "checkout.billingInfo.address.geocode.latitude" },
|
|
201
|
+
{ path: "checkout.billingInfo.address.geocode.longitude" },
|
|
202
|
+
{
|
|
203
|
+
path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
219
|
+
},
|
|
220
|
+
{ path: "checkout.appliedDiscounts.merchantDiscount.percentage" },
|
|
221
|
+
{ path: "lineItems.physicalProperties.weight" },
|
|
222
|
+
{ path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
|
|
223
|
+
{ path: "customLineItems.physicalProperties.weight" }
|
|
224
|
+
];
|
|
225
|
+
var TRANSFORM_PATHS_7 = [
|
|
226
|
+
{ path: "lineItems.media.urlExpirationDate" },
|
|
227
|
+
{ path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate" },
|
|
228
|
+
{ path: "lineItems.serviceProperties.scheduledDate" },
|
|
229
|
+
{ path: "lineItems.serviceProperties.endDate" },
|
|
230
|
+
{
|
|
231
|
+
path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
232
|
+
},
|
|
233
|
+
{ path: "customLineItems.serviceProperties.scheduledDate" },
|
|
234
|
+
{ path: "customLineItems.serviceProperties.endDate" }
|
|
235
|
+
];
|
|
236
|
+
var TRANSFORM_PATHS_8 = [
|
|
237
|
+
{ path: "lineItems.media.focalPoint.x" },
|
|
238
|
+
{ path: "lineItems.media.focalPoint.y" },
|
|
239
|
+
{ path: "lineItems.physicalProperties.weight" },
|
|
240
|
+
{ path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
|
|
241
|
+
{ path: "customLineItems.physicalProperties.weight" }
|
|
242
|
+
];
|
|
243
|
+
var TRANSFORM_PATHS_9 = [{ path: "body" }];
|
|
28
244
|
function resolveComWixEcomCheckoutApiV1CheckoutServiceUrl(opts) {
|
|
29
245
|
const domainToMappings = {
|
|
30
246
|
"www.wixapis.com": [
|
|
@@ -108,83 +324,11 @@ function createCheckout(payload) {
|
|
|
108
324
|
const serializedData = transformPaths(payload, [
|
|
109
325
|
{
|
|
110
326
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
111
|
-
paths:
|
|
112
|
-
{ path: "checkoutInfo.createdDate" },
|
|
113
|
-
{ path: "checkoutInfo.updatedDate" },
|
|
114
|
-
{ path: "checkoutInfo.lineItems.media.urlExpirationDate" },
|
|
115
|
-
{
|
|
116
|
-
path: "checkoutInfo.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
117
|
-
},
|
|
118
|
-
{ path: "checkoutInfo.lineItems.serviceProperties.scheduledDate" },
|
|
119
|
-
{ path: "checkoutInfo.lineItems.serviceProperties.endDate" },
|
|
120
|
-
{
|
|
121
|
-
path: "checkoutInfo.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
path: "checkoutInfo.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
path: "checkoutInfo.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
path: "checkoutInfo.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
path: "checkoutInfo.membershipOptions.eligibleMemberships.expirationDate"
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
path: "checkoutInfo.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
137
|
-
},
|
|
138
|
-
{ path: "checkoutInfo.subscriptionCharges.charges.cycleBillingDate" },
|
|
139
|
-
{ path: "lineItems.media.urlExpirationDate" },
|
|
140
|
-
{
|
|
141
|
-
path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
142
|
-
},
|
|
143
|
-
{ path: "lineItems.serviceProperties.scheduledDate" },
|
|
144
|
-
{ path: "lineItems.serviceProperties.endDate" },
|
|
145
|
-
{
|
|
146
|
-
path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
147
|
-
},
|
|
148
|
-
{ path: "customLineItems.serviceProperties.scheduledDate" },
|
|
149
|
-
{ path: "customLineItems.serviceProperties.endDate" }
|
|
150
|
-
]
|
|
327
|
+
paths: TRANSFORM_PATHS_0
|
|
151
328
|
},
|
|
152
329
|
{
|
|
153
330
|
transformFn: transformSDKFloatToRESTFloat,
|
|
154
|
-
paths:
|
|
155
|
-
{ path: "checkoutInfo.lineItems.media.focalPoint.x" },
|
|
156
|
-
{ path: "checkoutInfo.lineItems.media.focalPoint.y" },
|
|
157
|
-
{ path: "lineItems.media.focalPoint.x" },
|
|
158
|
-
{ path: "lineItems.media.focalPoint.y" },
|
|
159
|
-
{ path: "checkoutInfo.lineItems.physicalProperties.weight" },
|
|
160
|
-
{
|
|
161
|
-
path: "checkoutInfo.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
162
|
-
},
|
|
163
|
-
{ path: "checkoutInfo.billingInfo.address.geocode.latitude" },
|
|
164
|
-
{ path: "checkoutInfo.billingInfo.address.geocode.longitude" },
|
|
165
|
-
{
|
|
166
|
-
path: "checkoutInfo.shippingInfo.shippingDestination.address.geocode.latitude"
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
path: "checkoutInfo.shippingInfo.shippingDestination.address.geocode.longitude"
|
|
170
|
-
},
|
|
171
|
-
{
|
|
172
|
-
path: "checkoutInfo.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
path: "checkoutInfo.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
|
|
176
|
-
},
|
|
177
|
-
{
|
|
178
|
-
path: "checkoutInfo.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
179
|
-
},
|
|
180
|
-
{
|
|
181
|
-
path: "checkoutInfo.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
182
|
-
},
|
|
183
|
-
{ path: "checkoutInfo.appliedDiscounts.merchantDiscount.percentage" },
|
|
184
|
-
{ path: "lineItems.physicalProperties.weight" },
|
|
185
|
-
{ path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
|
|
186
|
-
{ path: "customLineItems.physicalProperties.weight" }
|
|
187
|
-
]
|
|
331
|
+
paths: TRANSFORM_PATHS_1
|
|
188
332
|
}
|
|
189
333
|
]);
|
|
190
334
|
const metadata = {
|
|
@@ -204,67 +348,11 @@ function createCheckout(payload) {
|
|
|
204
348
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
205
349
|
{
|
|
206
350
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
207
|
-
paths:
|
|
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
|
-
{
|
|
229
|
-
path: "checkout.membershipOptions.eligibleMemberships.expirationDate"
|
|
230
|
-
},
|
|
231
|
-
{
|
|
232
|
-
path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
233
|
-
},
|
|
234
|
-
{ path: "checkout.subscriptionCharges.charges.cycleBillingDate" }
|
|
235
|
-
]
|
|
351
|
+
paths: TRANSFORM_PATHS_2
|
|
236
352
|
},
|
|
237
353
|
{
|
|
238
354
|
transformFn: transformRESTFloatToSDKFloat,
|
|
239
|
-
paths:
|
|
240
|
-
{ path: "checkout.lineItems.media.focalPoint.x" },
|
|
241
|
-
{ path: "checkout.lineItems.media.focalPoint.y" },
|
|
242
|
-
{ path: "checkout.lineItems.physicalProperties.weight" },
|
|
243
|
-
{
|
|
244
|
-
path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
245
|
-
},
|
|
246
|
-
{ path: "checkout.billingInfo.address.geocode.latitude" },
|
|
247
|
-
{ path: "checkout.billingInfo.address.geocode.longitude" },
|
|
248
|
-
{
|
|
249
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
|
|
250
|
-
},
|
|
251
|
-
{
|
|
252
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
|
|
253
|
-
},
|
|
254
|
-
{
|
|
255
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
|
|
256
|
-
},
|
|
257
|
-
{
|
|
258
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
|
|
259
|
-
},
|
|
260
|
-
{
|
|
261
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
262
|
-
},
|
|
263
|
-
{
|
|
264
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
265
|
-
},
|
|
266
|
-
{ path: "checkout.appliedDiscounts.merchantDiscount.percentage" }
|
|
267
|
-
]
|
|
355
|
+
paths: TRANSFORM_PATHS_3
|
|
268
356
|
}
|
|
269
357
|
])
|
|
270
358
|
};
|
|
@@ -291,67 +379,11 @@ function getCheckout(payload) {
|
|
|
291
379
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
292
380
|
{
|
|
293
381
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
294
|
-
paths:
|
|
295
|
-
{ path: "checkout.createdDate" },
|
|
296
|
-
{ path: "checkout.updatedDate" },
|
|
297
|
-
{ path: "checkout.lineItems.media.urlExpirationDate" },
|
|
298
|
-
{
|
|
299
|
-
path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
300
|
-
},
|
|
301
|
-
{ path: "checkout.lineItems.serviceProperties.scheduledDate" },
|
|
302
|
-
{ path: "checkout.lineItems.serviceProperties.endDate" },
|
|
303
|
-
{
|
|
304
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
305
|
-
},
|
|
306
|
-
{
|
|
307
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
308
|
-
},
|
|
309
|
-
{
|
|
310
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
311
|
-
},
|
|
312
|
-
{
|
|
313
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
314
|
-
},
|
|
315
|
-
{
|
|
316
|
-
path: "checkout.membershipOptions.eligibleMemberships.expirationDate"
|
|
317
|
-
},
|
|
318
|
-
{
|
|
319
|
-
path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
320
|
-
},
|
|
321
|
-
{ path: "checkout.subscriptionCharges.charges.cycleBillingDate" }
|
|
322
|
-
]
|
|
382
|
+
paths: TRANSFORM_PATHS_2
|
|
323
383
|
},
|
|
324
384
|
{
|
|
325
385
|
transformFn: transformRESTFloatToSDKFloat,
|
|
326
|
-
paths:
|
|
327
|
-
{ path: "checkout.lineItems.media.focalPoint.x" },
|
|
328
|
-
{ path: "checkout.lineItems.media.focalPoint.y" },
|
|
329
|
-
{ path: "checkout.lineItems.physicalProperties.weight" },
|
|
330
|
-
{
|
|
331
|
-
path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
332
|
-
},
|
|
333
|
-
{ path: "checkout.billingInfo.address.geocode.latitude" },
|
|
334
|
-
{ path: "checkout.billingInfo.address.geocode.longitude" },
|
|
335
|
-
{
|
|
336
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
|
|
337
|
-
},
|
|
338
|
-
{
|
|
339
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
|
|
340
|
-
},
|
|
341
|
-
{
|
|
342
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
|
|
343
|
-
},
|
|
344
|
-
{
|
|
345
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
|
|
346
|
-
},
|
|
347
|
-
{
|
|
348
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
349
|
-
},
|
|
350
|
-
{
|
|
351
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
352
|
-
},
|
|
353
|
-
{ path: "checkout.appliedDiscounts.merchantDiscount.percentage" }
|
|
354
|
-
]
|
|
386
|
+
paths: TRANSFORM_PATHS_3
|
|
355
387
|
}
|
|
356
388
|
])
|
|
357
389
|
};
|
|
@@ -378,67 +410,11 @@ function getCheckoutByCartId(payload) {
|
|
|
378
410
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
379
411
|
{
|
|
380
412
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
381
|
-
paths:
|
|
382
|
-
{ path: "checkout.createdDate" },
|
|
383
|
-
{ path: "checkout.updatedDate" },
|
|
384
|
-
{ path: "checkout.lineItems.media.urlExpirationDate" },
|
|
385
|
-
{
|
|
386
|
-
path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
387
|
-
},
|
|
388
|
-
{ path: "checkout.lineItems.serviceProperties.scheduledDate" },
|
|
389
|
-
{ path: "checkout.lineItems.serviceProperties.endDate" },
|
|
390
|
-
{
|
|
391
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
392
|
-
},
|
|
393
|
-
{
|
|
394
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
395
|
-
},
|
|
396
|
-
{
|
|
397
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
398
|
-
},
|
|
399
|
-
{
|
|
400
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
401
|
-
},
|
|
402
|
-
{
|
|
403
|
-
path: "checkout.membershipOptions.eligibleMemberships.expirationDate"
|
|
404
|
-
},
|
|
405
|
-
{
|
|
406
|
-
path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
407
|
-
},
|
|
408
|
-
{ path: "checkout.subscriptionCharges.charges.cycleBillingDate" }
|
|
409
|
-
]
|
|
413
|
+
paths: TRANSFORM_PATHS_2
|
|
410
414
|
},
|
|
411
415
|
{
|
|
412
416
|
transformFn: transformRESTFloatToSDKFloat,
|
|
413
|
-
paths:
|
|
414
|
-
{ path: "checkout.lineItems.media.focalPoint.x" },
|
|
415
|
-
{ path: "checkout.lineItems.media.focalPoint.y" },
|
|
416
|
-
{ path: "checkout.lineItems.physicalProperties.weight" },
|
|
417
|
-
{
|
|
418
|
-
path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
419
|
-
},
|
|
420
|
-
{ path: "checkout.billingInfo.address.geocode.latitude" },
|
|
421
|
-
{ path: "checkout.billingInfo.address.geocode.longitude" },
|
|
422
|
-
{
|
|
423
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
|
|
424
|
-
},
|
|
425
|
-
{
|
|
426
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
|
|
427
|
-
},
|
|
428
|
-
{
|
|
429
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
|
|
430
|
-
},
|
|
431
|
-
{
|
|
432
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
|
|
433
|
-
},
|
|
434
|
-
{
|
|
435
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
436
|
-
},
|
|
437
|
-
{
|
|
438
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
439
|
-
},
|
|
440
|
-
{ path: "checkout.appliedDiscounts.merchantDiscount.percentage" }
|
|
441
|
-
]
|
|
417
|
+
paths: TRANSFORM_PATHS_3
|
|
442
418
|
}
|
|
443
419
|
])
|
|
444
420
|
};
|
|
@@ -493,87 +469,15 @@ function updateCheckout(payload) {
|
|
|
493
469
|
const serializedData = transformPaths(payload, [
|
|
494
470
|
{
|
|
495
471
|
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
496
|
-
paths:
|
|
472
|
+
paths: TRANSFORM_PATHS_4
|
|
497
473
|
},
|
|
498
474
|
{
|
|
499
475
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
500
|
-
paths:
|
|
501
|
-
{ path: "checkout.createdDate" },
|
|
502
|
-
{ path: "checkout.updatedDate" },
|
|
503
|
-
{ path: "checkout.lineItems.media.urlExpirationDate" },
|
|
504
|
-
{
|
|
505
|
-
path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
506
|
-
},
|
|
507
|
-
{ path: "checkout.lineItems.serviceProperties.scheduledDate" },
|
|
508
|
-
{ path: "checkout.lineItems.serviceProperties.endDate" },
|
|
509
|
-
{
|
|
510
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
511
|
-
},
|
|
512
|
-
{
|
|
513
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
514
|
-
},
|
|
515
|
-
{
|
|
516
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
517
|
-
},
|
|
518
|
-
{
|
|
519
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
520
|
-
},
|
|
521
|
-
{
|
|
522
|
-
path: "checkout.membershipOptions.eligibleMemberships.expirationDate"
|
|
523
|
-
},
|
|
524
|
-
{
|
|
525
|
-
path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
526
|
-
},
|
|
527
|
-
{ path: "checkout.subscriptionCharges.charges.cycleBillingDate" },
|
|
528
|
-
{ path: "lineItems.media.urlExpirationDate" },
|
|
529
|
-
{
|
|
530
|
-
path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
531
|
-
},
|
|
532
|
-
{ path: "lineItems.serviceProperties.scheduledDate" },
|
|
533
|
-
{ path: "lineItems.serviceProperties.endDate" },
|
|
534
|
-
{
|
|
535
|
-
path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
536
|
-
},
|
|
537
|
-
{ path: "customLineItems.serviceProperties.scheduledDate" },
|
|
538
|
-
{ path: "customLineItems.serviceProperties.endDate" }
|
|
539
|
-
]
|
|
476
|
+
paths: TRANSFORM_PATHS_5
|
|
540
477
|
},
|
|
541
478
|
{
|
|
542
479
|
transformFn: transformSDKFloatToRESTFloat,
|
|
543
|
-
paths:
|
|
544
|
-
{ path: "checkout.lineItems.media.focalPoint.x" },
|
|
545
|
-
{ path: "checkout.lineItems.media.focalPoint.y" },
|
|
546
|
-
{ path: "lineItems.media.focalPoint.x" },
|
|
547
|
-
{ path: "lineItems.media.focalPoint.y" },
|
|
548
|
-
{ path: "checkout.lineItems.physicalProperties.weight" },
|
|
549
|
-
{
|
|
550
|
-
path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
551
|
-
},
|
|
552
|
-
{ path: "checkout.billingInfo.address.geocode.latitude" },
|
|
553
|
-
{ path: "checkout.billingInfo.address.geocode.longitude" },
|
|
554
|
-
{
|
|
555
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
|
|
556
|
-
},
|
|
557
|
-
{
|
|
558
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
|
|
559
|
-
},
|
|
560
|
-
{
|
|
561
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
|
|
562
|
-
},
|
|
563
|
-
{
|
|
564
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
|
|
565
|
-
},
|
|
566
|
-
{
|
|
567
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
568
|
-
},
|
|
569
|
-
{
|
|
570
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
571
|
-
},
|
|
572
|
-
{ path: "checkout.appliedDiscounts.merchantDiscount.percentage" },
|
|
573
|
-
{ path: "lineItems.physicalProperties.weight" },
|
|
574
|
-
{ path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
|
|
575
|
-
{ path: "customLineItems.physicalProperties.weight" }
|
|
576
|
-
]
|
|
480
|
+
paths: TRANSFORM_PATHS_6
|
|
577
481
|
}
|
|
578
482
|
]);
|
|
579
483
|
const metadata = {
|
|
@@ -593,67 +497,11 @@ function updateCheckout(payload) {
|
|
|
593
497
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
594
498
|
{
|
|
595
499
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
596
|
-
paths:
|
|
597
|
-
{ path: "checkout.createdDate" },
|
|
598
|
-
{ path: "checkout.updatedDate" },
|
|
599
|
-
{ path: "checkout.lineItems.media.urlExpirationDate" },
|
|
600
|
-
{
|
|
601
|
-
path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
602
|
-
},
|
|
603
|
-
{ path: "checkout.lineItems.serviceProperties.scheduledDate" },
|
|
604
|
-
{ path: "checkout.lineItems.serviceProperties.endDate" },
|
|
605
|
-
{
|
|
606
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
607
|
-
},
|
|
608
|
-
{
|
|
609
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
610
|
-
},
|
|
611
|
-
{
|
|
612
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
613
|
-
},
|
|
614
|
-
{
|
|
615
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
616
|
-
},
|
|
617
|
-
{
|
|
618
|
-
path: "checkout.membershipOptions.eligibleMemberships.expirationDate"
|
|
619
|
-
},
|
|
620
|
-
{
|
|
621
|
-
path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
622
|
-
},
|
|
623
|
-
{ path: "checkout.subscriptionCharges.charges.cycleBillingDate" }
|
|
624
|
-
]
|
|
500
|
+
paths: TRANSFORM_PATHS_2
|
|
625
501
|
},
|
|
626
502
|
{
|
|
627
503
|
transformFn: transformRESTFloatToSDKFloat,
|
|
628
|
-
paths:
|
|
629
|
-
{ path: "checkout.lineItems.media.focalPoint.x" },
|
|
630
|
-
{ path: "checkout.lineItems.media.focalPoint.y" },
|
|
631
|
-
{ path: "checkout.lineItems.physicalProperties.weight" },
|
|
632
|
-
{
|
|
633
|
-
path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
634
|
-
},
|
|
635
|
-
{ path: "checkout.billingInfo.address.geocode.latitude" },
|
|
636
|
-
{ path: "checkout.billingInfo.address.geocode.longitude" },
|
|
637
|
-
{
|
|
638
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
|
|
639
|
-
},
|
|
640
|
-
{
|
|
641
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
|
|
642
|
-
},
|
|
643
|
-
{
|
|
644
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
|
|
645
|
-
},
|
|
646
|
-
{
|
|
647
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
|
|
648
|
-
},
|
|
649
|
-
{
|
|
650
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
651
|
-
},
|
|
652
|
-
{
|
|
653
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
654
|
-
},
|
|
655
|
-
{ path: "checkout.appliedDiscounts.merchantDiscount.percentage" }
|
|
656
|
-
]
|
|
504
|
+
paths: TRANSFORM_PATHS_3
|
|
657
505
|
}
|
|
658
506
|
])
|
|
659
507
|
};
|
|
@@ -680,67 +528,11 @@ function removeCoupon(payload) {
|
|
|
680
528
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
681
529
|
{
|
|
682
530
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
683
|
-
paths:
|
|
684
|
-
{ path: "checkout.createdDate" },
|
|
685
|
-
{ path: "checkout.updatedDate" },
|
|
686
|
-
{ path: "checkout.lineItems.media.urlExpirationDate" },
|
|
687
|
-
{
|
|
688
|
-
path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
689
|
-
},
|
|
690
|
-
{ path: "checkout.lineItems.serviceProperties.scheduledDate" },
|
|
691
|
-
{ path: "checkout.lineItems.serviceProperties.endDate" },
|
|
692
|
-
{
|
|
693
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
694
|
-
},
|
|
695
|
-
{
|
|
696
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
697
|
-
},
|
|
698
|
-
{
|
|
699
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
700
|
-
},
|
|
701
|
-
{
|
|
702
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
703
|
-
},
|
|
704
|
-
{
|
|
705
|
-
path: "checkout.membershipOptions.eligibleMemberships.expirationDate"
|
|
706
|
-
},
|
|
707
|
-
{
|
|
708
|
-
path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
709
|
-
},
|
|
710
|
-
{ path: "checkout.subscriptionCharges.charges.cycleBillingDate" }
|
|
711
|
-
]
|
|
531
|
+
paths: TRANSFORM_PATHS_2
|
|
712
532
|
},
|
|
713
533
|
{
|
|
714
534
|
transformFn: transformRESTFloatToSDKFloat,
|
|
715
|
-
paths:
|
|
716
|
-
{ path: "checkout.lineItems.media.focalPoint.x" },
|
|
717
|
-
{ path: "checkout.lineItems.media.focalPoint.y" },
|
|
718
|
-
{ path: "checkout.lineItems.physicalProperties.weight" },
|
|
719
|
-
{
|
|
720
|
-
path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
721
|
-
},
|
|
722
|
-
{ path: "checkout.billingInfo.address.geocode.latitude" },
|
|
723
|
-
{ path: "checkout.billingInfo.address.geocode.longitude" },
|
|
724
|
-
{
|
|
725
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
|
|
726
|
-
},
|
|
727
|
-
{
|
|
728
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
|
|
729
|
-
},
|
|
730
|
-
{
|
|
731
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
|
|
732
|
-
},
|
|
733
|
-
{
|
|
734
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
|
|
735
|
-
},
|
|
736
|
-
{
|
|
737
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
738
|
-
},
|
|
739
|
-
{
|
|
740
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
741
|
-
},
|
|
742
|
-
{ path: "checkout.appliedDiscounts.merchantDiscount.percentage" }
|
|
743
|
-
]
|
|
535
|
+
paths: TRANSFORM_PATHS_3
|
|
744
536
|
}
|
|
745
537
|
])
|
|
746
538
|
};
|
|
@@ -767,67 +559,11 @@ function removeGiftCard(payload) {
|
|
|
767
559
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
768
560
|
{
|
|
769
561
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
770
|
-
paths:
|
|
771
|
-
{ path: "checkout.createdDate" },
|
|
772
|
-
{ path: "checkout.updatedDate" },
|
|
773
|
-
{ path: "checkout.lineItems.media.urlExpirationDate" },
|
|
774
|
-
{
|
|
775
|
-
path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
776
|
-
},
|
|
777
|
-
{ path: "checkout.lineItems.serviceProperties.scheduledDate" },
|
|
778
|
-
{ path: "checkout.lineItems.serviceProperties.endDate" },
|
|
779
|
-
{
|
|
780
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
781
|
-
},
|
|
782
|
-
{
|
|
783
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
784
|
-
},
|
|
785
|
-
{
|
|
786
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
787
|
-
},
|
|
788
|
-
{
|
|
789
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
790
|
-
},
|
|
791
|
-
{
|
|
792
|
-
path: "checkout.membershipOptions.eligibleMemberships.expirationDate"
|
|
793
|
-
},
|
|
794
|
-
{
|
|
795
|
-
path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
796
|
-
},
|
|
797
|
-
{ path: "checkout.subscriptionCharges.charges.cycleBillingDate" }
|
|
798
|
-
]
|
|
562
|
+
paths: TRANSFORM_PATHS_2
|
|
799
563
|
},
|
|
800
564
|
{
|
|
801
565
|
transformFn: transformRESTFloatToSDKFloat,
|
|
802
|
-
paths:
|
|
803
|
-
{ path: "checkout.lineItems.media.focalPoint.x" },
|
|
804
|
-
{ path: "checkout.lineItems.media.focalPoint.y" },
|
|
805
|
-
{ path: "checkout.lineItems.physicalProperties.weight" },
|
|
806
|
-
{
|
|
807
|
-
path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
808
|
-
},
|
|
809
|
-
{ path: "checkout.billingInfo.address.geocode.latitude" },
|
|
810
|
-
{ path: "checkout.billingInfo.address.geocode.longitude" },
|
|
811
|
-
{
|
|
812
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
|
|
813
|
-
},
|
|
814
|
-
{
|
|
815
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
|
|
816
|
-
},
|
|
817
|
-
{
|
|
818
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
|
|
819
|
-
},
|
|
820
|
-
{
|
|
821
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
|
|
822
|
-
},
|
|
823
|
-
{
|
|
824
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
825
|
-
},
|
|
826
|
-
{
|
|
827
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
828
|
-
},
|
|
829
|
-
{ path: "checkout.appliedDiscounts.merchantDiscount.percentage" }
|
|
830
|
-
]
|
|
566
|
+
paths: TRANSFORM_PATHS_3
|
|
831
567
|
}
|
|
832
568
|
])
|
|
833
569
|
};
|
|
@@ -854,67 +590,11 @@ function removeOverrideCheckoutUrl(payload) {
|
|
|
854
590
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
855
591
|
{
|
|
856
592
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
857
|
-
paths:
|
|
858
|
-
{ path: "checkout.createdDate" },
|
|
859
|
-
{ path: "checkout.updatedDate" },
|
|
860
|
-
{ path: "checkout.lineItems.media.urlExpirationDate" },
|
|
861
|
-
{
|
|
862
|
-
path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
863
|
-
},
|
|
864
|
-
{ path: "checkout.lineItems.serviceProperties.scheduledDate" },
|
|
865
|
-
{ path: "checkout.lineItems.serviceProperties.endDate" },
|
|
866
|
-
{
|
|
867
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
868
|
-
},
|
|
869
|
-
{
|
|
870
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
871
|
-
},
|
|
872
|
-
{
|
|
873
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
874
|
-
},
|
|
875
|
-
{
|
|
876
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
877
|
-
},
|
|
878
|
-
{
|
|
879
|
-
path: "checkout.membershipOptions.eligibleMemberships.expirationDate"
|
|
880
|
-
},
|
|
881
|
-
{
|
|
882
|
-
path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
883
|
-
},
|
|
884
|
-
{ path: "checkout.subscriptionCharges.charges.cycleBillingDate" }
|
|
885
|
-
]
|
|
593
|
+
paths: TRANSFORM_PATHS_2
|
|
886
594
|
},
|
|
887
595
|
{
|
|
888
596
|
transformFn: transformRESTFloatToSDKFloat,
|
|
889
|
-
paths:
|
|
890
|
-
{ path: "checkout.lineItems.media.focalPoint.x" },
|
|
891
|
-
{ path: "checkout.lineItems.media.focalPoint.y" },
|
|
892
|
-
{ path: "checkout.lineItems.physicalProperties.weight" },
|
|
893
|
-
{
|
|
894
|
-
path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
895
|
-
},
|
|
896
|
-
{ path: "checkout.billingInfo.address.geocode.latitude" },
|
|
897
|
-
{ path: "checkout.billingInfo.address.geocode.longitude" },
|
|
898
|
-
{
|
|
899
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
|
|
900
|
-
},
|
|
901
|
-
{
|
|
902
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
|
|
903
|
-
},
|
|
904
|
-
{
|
|
905
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
|
|
906
|
-
},
|
|
907
|
-
{
|
|
908
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
|
|
909
|
-
},
|
|
910
|
-
{
|
|
911
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
912
|
-
},
|
|
913
|
-
{
|
|
914
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
915
|
-
},
|
|
916
|
-
{ path: "checkout.appliedDiscounts.merchantDiscount.percentage" }
|
|
917
|
-
]
|
|
597
|
+
paths: TRANSFORM_PATHS_3
|
|
918
598
|
}
|
|
919
599
|
])
|
|
920
600
|
};
|
|
@@ -927,29 +607,11 @@ function addToCheckout(payload) {
|
|
|
927
607
|
const serializedData = transformPaths(payload, [
|
|
928
608
|
{
|
|
929
609
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
930
|
-
paths:
|
|
931
|
-
{ path: "lineItems.media.urlExpirationDate" },
|
|
932
|
-
{
|
|
933
|
-
path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
934
|
-
},
|
|
935
|
-
{ path: "lineItems.serviceProperties.scheduledDate" },
|
|
936
|
-
{ path: "lineItems.serviceProperties.endDate" },
|
|
937
|
-
{
|
|
938
|
-
path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
939
|
-
},
|
|
940
|
-
{ path: "customLineItems.serviceProperties.scheduledDate" },
|
|
941
|
-
{ path: "customLineItems.serviceProperties.endDate" }
|
|
942
|
-
]
|
|
610
|
+
paths: TRANSFORM_PATHS_7
|
|
943
611
|
},
|
|
944
612
|
{
|
|
945
613
|
transformFn: transformSDKFloatToRESTFloat,
|
|
946
|
-
paths:
|
|
947
|
-
{ path: "lineItems.media.focalPoint.x" },
|
|
948
|
-
{ path: "lineItems.media.focalPoint.y" },
|
|
949
|
-
{ path: "lineItems.physicalProperties.weight" },
|
|
950
|
-
{ path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
|
|
951
|
-
{ path: "customLineItems.physicalProperties.weight" }
|
|
952
|
-
]
|
|
614
|
+
paths: TRANSFORM_PATHS_8
|
|
953
615
|
}
|
|
954
616
|
]);
|
|
955
617
|
const metadata = {
|
|
@@ -969,67 +631,11 @@ function addToCheckout(payload) {
|
|
|
969
631
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
970
632
|
{
|
|
971
633
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
972
|
-
paths:
|
|
973
|
-
{ path: "checkout.createdDate" },
|
|
974
|
-
{ path: "checkout.updatedDate" },
|
|
975
|
-
{ path: "checkout.lineItems.media.urlExpirationDate" },
|
|
976
|
-
{
|
|
977
|
-
path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
978
|
-
},
|
|
979
|
-
{ path: "checkout.lineItems.serviceProperties.scheduledDate" },
|
|
980
|
-
{ path: "checkout.lineItems.serviceProperties.endDate" },
|
|
981
|
-
{
|
|
982
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
983
|
-
},
|
|
984
|
-
{
|
|
985
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
986
|
-
},
|
|
987
|
-
{
|
|
988
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
989
|
-
},
|
|
990
|
-
{
|
|
991
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
992
|
-
},
|
|
993
|
-
{
|
|
994
|
-
path: "checkout.membershipOptions.eligibleMemberships.expirationDate"
|
|
995
|
-
},
|
|
996
|
-
{
|
|
997
|
-
path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
998
|
-
},
|
|
999
|
-
{ path: "checkout.subscriptionCharges.charges.cycleBillingDate" }
|
|
1000
|
-
]
|
|
634
|
+
paths: TRANSFORM_PATHS_2
|
|
1001
635
|
},
|
|
1002
636
|
{
|
|
1003
637
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1004
|
-
paths:
|
|
1005
|
-
{ path: "checkout.lineItems.media.focalPoint.x" },
|
|
1006
|
-
{ path: "checkout.lineItems.media.focalPoint.y" },
|
|
1007
|
-
{ path: "checkout.lineItems.physicalProperties.weight" },
|
|
1008
|
-
{
|
|
1009
|
-
path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
1010
|
-
},
|
|
1011
|
-
{ path: "checkout.billingInfo.address.geocode.latitude" },
|
|
1012
|
-
{ path: "checkout.billingInfo.address.geocode.longitude" },
|
|
1013
|
-
{
|
|
1014
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
|
|
1015
|
-
},
|
|
1016
|
-
{
|
|
1017
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
|
|
1018
|
-
},
|
|
1019
|
-
{
|
|
1020
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
|
|
1021
|
-
},
|
|
1022
|
-
{
|
|
1023
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
|
|
1024
|
-
},
|
|
1025
|
-
{
|
|
1026
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
1027
|
-
},
|
|
1028
|
-
{
|
|
1029
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
1030
|
-
},
|
|
1031
|
-
{ path: "checkout.appliedDiscounts.merchantDiscount.percentage" }
|
|
1032
|
-
]
|
|
638
|
+
paths: TRANSFORM_PATHS_3
|
|
1033
639
|
}
|
|
1034
640
|
])
|
|
1035
641
|
};
|
|
@@ -1056,67 +662,11 @@ function removeLineItems(payload) {
|
|
|
1056
662
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1057
663
|
{
|
|
1058
664
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1059
|
-
paths:
|
|
1060
|
-
{ path: "checkout.createdDate" },
|
|
1061
|
-
{ path: "checkout.updatedDate" },
|
|
1062
|
-
{ path: "checkout.lineItems.media.urlExpirationDate" },
|
|
1063
|
-
{
|
|
1064
|
-
path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
1065
|
-
},
|
|
1066
|
-
{ path: "checkout.lineItems.serviceProperties.scheduledDate" },
|
|
1067
|
-
{ path: "checkout.lineItems.serviceProperties.endDate" },
|
|
1068
|
-
{
|
|
1069
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
1070
|
-
},
|
|
1071
|
-
{
|
|
1072
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
1073
|
-
},
|
|
1074
|
-
{
|
|
1075
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
1076
|
-
},
|
|
1077
|
-
{
|
|
1078
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
1079
|
-
},
|
|
1080
|
-
{
|
|
1081
|
-
path: "checkout.membershipOptions.eligibleMemberships.expirationDate"
|
|
1082
|
-
},
|
|
1083
|
-
{
|
|
1084
|
-
path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
1085
|
-
},
|
|
1086
|
-
{ path: "checkout.subscriptionCharges.charges.cycleBillingDate" }
|
|
1087
|
-
]
|
|
665
|
+
paths: TRANSFORM_PATHS_2
|
|
1088
666
|
},
|
|
1089
667
|
{
|
|
1090
668
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1091
|
-
paths:
|
|
1092
|
-
{ path: "checkout.lineItems.media.focalPoint.x" },
|
|
1093
|
-
{ path: "checkout.lineItems.media.focalPoint.y" },
|
|
1094
|
-
{ path: "checkout.lineItems.physicalProperties.weight" },
|
|
1095
|
-
{
|
|
1096
|
-
path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
1097
|
-
},
|
|
1098
|
-
{ path: "checkout.billingInfo.address.geocode.latitude" },
|
|
1099
|
-
{ path: "checkout.billingInfo.address.geocode.longitude" },
|
|
1100
|
-
{
|
|
1101
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
|
|
1102
|
-
},
|
|
1103
|
-
{
|
|
1104
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
|
|
1105
|
-
},
|
|
1106
|
-
{
|
|
1107
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
|
|
1108
|
-
},
|
|
1109
|
-
{
|
|
1110
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
|
|
1111
|
-
},
|
|
1112
|
-
{
|
|
1113
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
1114
|
-
},
|
|
1115
|
-
{
|
|
1116
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
1117
|
-
},
|
|
1118
|
-
{ path: "checkout.appliedDiscounts.merchantDiscount.percentage" }
|
|
1119
|
-
]
|
|
669
|
+
paths: TRANSFORM_PATHS_3
|
|
1120
670
|
}
|
|
1121
671
|
])
|
|
1122
672
|
};
|
|
@@ -1185,7 +735,7 @@ function markCheckoutAsCompletedAndRedirectToUrl(payload) {
|
|
|
1185
735
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1186
736
|
{
|
|
1187
737
|
transformFn: transformRESTBytesToSDKBytes,
|
|
1188
|
-
paths:
|
|
738
|
+
paths: TRANSFORM_PATHS_9
|
|
1189
739
|
}
|
|
1190
740
|
])
|
|
1191
741
|
};
|
|
@@ -1233,67 +783,11 @@ function updateLineItemsQuantity(payload) {
|
|
|
1233
783
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1234
784
|
{
|
|
1235
785
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1236
|
-
paths:
|
|
1237
|
-
{ path: "checkout.createdDate" },
|
|
1238
|
-
{ path: "checkout.updatedDate" },
|
|
1239
|
-
{ path: "checkout.lineItems.media.urlExpirationDate" },
|
|
1240
|
-
{
|
|
1241
|
-
path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
1242
|
-
},
|
|
1243
|
-
{ path: "checkout.lineItems.serviceProperties.scheduledDate" },
|
|
1244
|
-
{ path: "checkout.lineItems.serviceProperties.endDate" },
|
|
1245
|
-
{
|
|
1246
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
1247
|
-
},
|
|
1248
|
-
{
|
|
1249
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
1250
|
-
},
|
|
1251
|
-
{
|
|
1252
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
1253
|
-
},
|
|
1254
|
-
{
|
|
1255
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
1256
|
-
},
|
|
1257
|
-
{
|
|
1258
|
-
path: "checkout.membershipOptions.eligibleMemberships.expirationDate"
|
|
1259
|
-
},
|
|
1260
|
-
{
|
|
1261
|
-
path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
1262
|
-
},
|
|
1263
|
-
{ path: "checkout.subscriptionCharges.charges.cycleBillingDate" }
|
|
1264
|
-
]
|
|
786
|
+
paths: TRANSFORM_PATHS_2
|
|
1265
787
|
},
|
|
1266
788
|
{
|
|
1267
789
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1268
|
-
paths:
|
|
1269
|
-
{ path: "checkout.lineItems.media.focalPoint.x" },
|
|
1270
|
-
{ path: "checkout.lineItems.media.focalPoint.y" },
|
|
1271
|
-
{ path: "checkout.lineItems.physicalProperties.weight" },
|
|
1272
|
-
{
|
|
1273
|
-
path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
1274
|
-
},
|
|
1275
|
-
{ path: "checkout.billingInfo.address.geocode.latitude" },
|
|
1276
|
-
{ path: "checkout.billingInfo.address.geocode.longitude" },
|
|
1277
|
-
{
|
|
1278
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
|
|
1279
|
-
},
|
|
1280
|
-
{
|
|
1281
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
|
|
1282
|
-
},
|
|
1283
|
-
{
|
|
1284
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
|
|
1285
|
-
},
|
|
1286
|
-
{
|
|
1287
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
|
|
1288
|
-
},
|
|
1289
|
-
{
|
|
1290
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
1291
|
-
},
|
|
1292
|
-
{
|
|
1293
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
1294
|
-
},
|
|
1295
|
-
{ path: "checkout.appliedDiscounts.merchantDiscount.percentage" }
|
|
1296
|
-
]
|
|
790
|
+
paths: TRANSFORM_PATHS_3
|
|
1297
791
|
}
|
|
1298
792
|
])
|
|
1299
793
|
};
|
|
@@ -1310,6 +804,64 @@ import { transformRESTImageToSDKImage } from "@wix/sdk-runtime/transformations/i
|
|
|
1310
804
|
import { transformSDKPageURLV2ToRESTPageURLV2 } from "@wix/sdk-runtime/transformations/page-url-v2";
|
|
1311
805
|
import { transformRESTPageURLV2ToSDKPageURLV2 } from "@wix/sdk-runtime/transformations/page-url-v2";
|
|
1312
806
|
import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
807
|
+
var TRANSFORM_PATHS_02 = [
|
|
808
|
+
{ path: "checkoutInfo.lineItems.url" },
|
|
809
|
+
{ path: "lineItems.url" },
|
|
810
|
+
{ path: "customLineItems.url" }
|
|
811
|
+
];
|
|
812
|
+
var TRANSFORM_PATHS_12 = [
|
|
813
|
+
{ path: "checkoutInfo.lineItems.media" },
|
|
814
|
+
{ path: "checkoutInfo.lineItems.catalogOverrideFields.image" },
|
|
815
|
+
{ path: "lineItems.media" },
|
|
816
|
+
{ path: "lineItems.catalogOverrideFields.image" },
|
|
817
|
+
{ path: "customLineItems.media" }
|
|
818
|
+
];
|
|
819
|
+
var TRANSFORM_PATHS_22 = [
|
|
820
|
+
{ path: "checkoutInfo.billingInfo.address" },
|
|
821
|
+
{ path: "checkoutInfo.shippingInfo.shippingDestination.address" },
|
|
822
|
+
{
|
|
823
|
+
path: "checkoutInfo.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
824
|
+
},
|
|
825
|
+
{
|
|
826
|
+
path: "checkoutInfo.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
827
|
+
}
|
|
828
|
+
];
|
|
829
|
+
var TRANSFORM_PATHS_32 = [{ path: "checkout.lineItems.url" }];
|
|
830
|
+
var TRANSFORM_PATHS_42 = [
|
|
831
|
+
{ path: "checkout.lineItems.media" },
|
|
832
|
+
{ path: "checkout.lineItems.catalogOverrideFields.image" }
|
|
833
|
+
];
|
|
834
|
+
var TRANSFORM_PATHS_52 = [
|
|
835
|
+
{ path: "checkout.billingInfo.address" },
|
|
836
|
+
{ path: "checkout.shippingInfo.shippingDestination.address" },
|
|
837
|
+
{
|
|
838
|
+
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
839
|
+
},
|
|
840
|
+
{
|
|
841
|
+
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
842
|
+
}
|
|
843
|
+
];
|
|
844
|
+
var TRANSFORM_PATHS_62 = [
|
|
845
|
+
{ path: "checkout.lineItems.url" },
|
|
846
|
+
{ path: "lineItems.url" },
|
|
847
|
+
{ path: "customLineItems.url" }
|
|
848
|
+
];
|
|
849
|
+
var TRANSFORM_PATHS_72 = [
|
|
850
|
+
{ path: "checkout.lineItems.media" },
|
|
851
|
+
{ path: "checkout.lineItems.catalogOverrideFields.image" },
|
|
852
|
+
{ path: "lineItems.media" },
|
|
853
|
+
{ path: "lineItems.catalogOverrideFields.image" },
|
|
854
|
+
{ path: "customLineItems.media" }
|
|
855
|
+
];
|
|
856
|
+
var TRANSFORM_PATHS_82 = [
|
|
857
|
+
{ path: "lineItems.url" },
|
|
858
|
+
{ path: "customLineItems.url" }
|
|
859
|
+
];
|
|
860
|
+
var TRANSFORM_PATHS_92 = [
|
|
861
|
+
{ path: "lineItems.media" },
|
|
862
|
+
{ path: "lineItems.catalogOverrideFields.image" },
|
|
863
|
+
{ path: "customLineItems.media" }
|
|
864
|
+
];
|
|
1313
865
|
var JurisdictionType = /* @__PURE__ */ ((JurisdictionType2) => {
|
|
1314
866
|
JurisdictionType2["UNDEFINED"] = "UNDEFINED";
|
|
1315
867
|
JurisdictionType2["COUNTRY"] = "COUNTRY";
|
|
@@ -1541,34 +1093,15 @@ async function createCheckout2(options) {
|
|
|
1541
1093
|
[
|
|
1542
1094
|
{
|
|
1543
1095
|
transformFn: transformSDKPageURLV2ToRESTPageURLV2,
|
|
1544
|
-
paths:
|
|
1545
|
-
{ path: "checkoutInfo.lineItems.url" },
|
|
1546
|
-
{ path: "lineItems.url" },
|
|
1547
|
-
{ path: "customLineItems.url" }
|
|
1548
|
-
]
|
|
1096
|
+
paths: TRANSFORM_PATHS_02
|
|
1549
1097
|
},
|
|
1550
1098
|
{
|
|
1551
1099
|
transformFn: transformSDKImageToRESTImage,
|
|
1552
|
-
paths:
|
|
1553
|
-
{ path: "checkoutInfo.lineItems.media" },
|
|
1554
|
-
{ path: "checkoutInfo.lineItems.catalogOverrideFields.image" },
|
|
1555
|
-
{ path: "lineItems.media" },
|
|
1556
|
-
{ path: "lineItems.catalogOverrideFields.image" },
|
|
1557
|
-
{ path: "customLineItems.media" }
|
|
1558
|
-
]
|
|
1100
|
+
paths: TRANSFORM_PATHS_12
|
|
1559
1101
|
},
|
|
1560
1102
|
{
|
|
1561
1103
|
transformFn: transformSDKAddressToRESTAddress,
|
|
1562
|
-
paths:
|
|
1563
|
-
{ path: "checkoutInfo.billingInfo.address" },
|
|
1564
|
-
{ path: "checkoutInfo.shippingInfo.shippingDestination.address" },
|
|
1565
|
-
{
|
|
1566
|
-
path: "checkoutInfo.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
1567
|
-
},
|
|
1568
|
-
{
|
|
1569
|
-
path: "checkoutInfo.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
1570
|
-
}
|
|
1571
|
-
]
|
|
1104
|
+
paths: TRANSFORM_PATHS_22
|
|
1572
1105
|
}
|
|
1573
1106
|
]
|
|
1574
1107
|
);
|
|
@@ -1581,27 +1114,15 @@ async function createCheckout2(options) {
|
|
|
1581
1114
|
transformPaths2(result.data, [
|
|
1582
1115
|
{
|
|
1583
1116
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
1584
|
-
paths:
|
|
1117
|
+
paths: TRANSFORM_PATHS_32
|
|
1585
1118
|
},
|
|
1586
1119
|
{
|
|
1587
1120
|
transformFn: transformRESTImageToSDKImage,
|
|
1588
|
-
paths:
|
|
1589
|
-
{ path: "checkout.lineItems.media" },
|
|
1590
|
-
{ path: "checkout.lineItems.catalogOverrideFields.image" }
|
|
1591
|
-
]
|
|
1121
|
+
paths: TRANSFORM_PATHS_42
|
|
1592
1122
|
},
|
|
1593
1123
|
{
|
|
1594
1124
|
transformFn: transformRESTAddressToSDKAddress,
|
|
1595
|
-
paths:
|
|
1596
|
-
{ path: "checkout.billingInfo.address" },
|
|
1597
|
-
{ path: "checkout.shippingInfo.shippingDestination.address" },
|
|
1598
|
-
{
|
|
1599
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
1600
|
-
},
|
|
1601
|
-
{
|
|
1602
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
1603
|
-
}
|
|
1604
|
-
]
|
|
1125
|
+
paths: TRANSFORM_PATHS_52
|
|
1605
1126
|
}
|
|
1606
1127
|
])
|
|
1607
1128
|
)?.checkout;
|
|
@@ -1640,27 +1161,15 @@ async function getCheckout2(_id) {
|
|
|
1640
1161
|
transformPaths2(result.data, [
|
|
1641
1162
|
{
|
|
1642
1163
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
1643
|
-
paths:
|
|
1164
|
+
paths: TRANSFORM_PATHS_32
|
|
1644
1165
|
},
|
|
1645
1166
|
{
|
|
1646
1167
|
transformFn: transformRESTImageToSDKImage,
|
|
1647
|
-
paths:
|
|
1648
|
-
{ path: "checkout.lineItems.media" },
|
|
1649
|
-
{ path: "checkout.lineItems.catalogOverrideFields.image" }
|
|
1650
|
-
]
|
|
1168
|
+
paths: TRANSFORM_PATHS_42
|
|
1651
1169
|
},
|
|
1652
1170
|
{
|
|
1653
1171
|
transformFn: transformRESTAddressToSDKAddress,
|
|
1654
|
-
paths:
|
|
1655
|
-
{ path: "checkout.billingInfo.address" },
|
|
1656
|
-
{ path: "checkout.shippingInfo.shippingDestination.address" },
|
|
1657
|
-
{
|
|
1658
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
1659
|
-
},
|
|
1660
|
-
{
|
|
1661
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
1662
|
-
}
|
|
1663
|
-
]
|
|
1172
|
+
paths: TRANSFORM_PATHS_52
|
|
1664
1173
|
}
|
|
1665
1174
|
])
|
|
1666
1175
|
)?.checkout;
|
|
@@ -1690,27 +1199,15 @@ async function getCheckoutByCartId2(_id) {
|
|
|
1690
1199
|
transformPaths2(result.data, [
|
|
1691
1200
|
{
|
|
1692
1201
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
1693
|
-
paths:
|
|
1202
|
+
paths: TRANSFORM_PATHS_32
|
|
1694
1203
|
},
|
|
1695
1204
|
{
|
|
1696
1205
|
transformFn: transformRESTImageToSDKImage,
|
|
1697
|
-
paths:
|
|
1698
|
-
{ path: "checkout.lineItems.media" },
|
|
1699
|
-
{ path: "checkout.lineItems.catalogOverrideFields.image" }
|
|
1700
|
-
]
|
|
1206
|
+
paths: TRANSFORM_PATHS_42
|
|
1701
1207
|
},
|
|
1702
1208
|
{
|
|
1703
1209
|
transformFn: transformRESTAddressToSDKAddress,
|
|
1704
|
-
paths:
|
|
1705
|
-
{ path: "checkout.billingInfo.address" },
|
|
1706
|
-
{ path: "checkout.shippingInfo.shippingDestination.address" },
|
|
1707
|
-
{
|
|
1708
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
1709
|
-
},
|
|
1710
|
-
{
|
|
1711
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
1712
|
-
}
|
|
1713
|
-
]
|
|
1210
|
+
paths: TRANSFORM_PATHS_52
|
|
1714
1211
|
}
|
|
1715
1212
|
])
|
|
1716
1213
|
);
|
|
@@ -1789,34 +1286,15 @@ async function updateCheckout2(_id, checkout, options) {
|
|
|
1789
1286
|
[
|
|
1790
1287
|
{
|
|
1791
1288
|
transformFn: transformSDKPageURLV2ToRESTPageURLV2,
|
|
1792
|
-
paths:
|
|
1793
|
-
{ path: "checkout.lineItems.url" },
|
|
1794
|
-
{ path: "lineItems.url" },
|
|
1795
|
-
{ path: "customLineItems.url" }
|
|
1796
|
-
]
|
|
1289
|
+
paths: TRANSFORM_PATHS_62
|
|
1797
1290
|
},
|
|
1798
1291
|
{
|
|
1799
1292
|
transformFn: transformSDKImageToRESTImage,
|
|
1800
|
-
paths:
|
|
1801
|
-
{ path: "checkout.lineItems.media" },
|
|
1802
|
-
{ path: "checkout.lineItems.catalogOverrideFields.image" },
|
|
1803
|
-
{ path: "lineItems.media" },
|
|
1804
|
-
{ path: "lineItems.catalogOverrideFields.image" },
|
|
1805
|
-
{ path: "customLineItems.media" }
|
|
1806
|
-
]
|
|
1293
|
+
paths: TRANSFORM_PATHS_72
|
|
1807
1294
|
},
|
|
1808
1295
|
{
|
|
1809
1296
|
transformFn: transformSDKAddressToRESTAddress,
|
|
1810
|
-
paths:
|
|
1811
|
-
{ path: "checkout.billingInfo.address" },
|
|
1812
|
-
{ path: "checkout.shippingInfo.shippingDestination.address" },
|
|
1813
|
-
{
|
|
1814
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
1815
|
-
},
|
|
1816
|
-
{
|
|
1817
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
1818
|
-
}
|
|
1819
|
-
]
|
|
1297
|
+
paths: TRANSFORM_PATHS_52
|
|
1820
1298
|
}
|
|
1821
1299
|
]
|
|
1822
1300
|
);
|
|
@@ -1829,27 +1307,15 @@ async function updateCheckout2(_id, checkout, options) {
|
|
|
1829
1307
|
transformPaths2(result.data, [
|
|
1830
1308
|
{
|
|
1831
1309
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
1832
|
-
paths:
|
|
1310
|
+
paths: TRANSFORM_PATHS_32
|
|
1833
1311
|
},
|
|
1834
1312
|
{
|
|
1835
1313
|
transformFn: transformRESTImageToSDKImage,
|
|
1836
|
-
paths:
|
|
1837
|
-
{ path: "checkout.lineItems.media" },
|
|
1838
|
-
{ path: "checkout.lineItems.catalogOverrideFields.image" }
|
|
1839
|
-
]
|
|
1314
|
+
paths: TRANSFORM_PATHS_42
|
|
1840
1315
|
},
|
|
1841
1316
|
{
|
|
1842
1317
|
transformFn: transformRESTAddressToSDKAddress,
|
|
1843
|
-
paths:
|
|
1844
|
-
{ path: "checkout.billingInfo.address" },
|
|
1845
|
-
{ path: "checkout.shippingInfo.shippingDestination.address" },
|
|
1846
|
-
{
|
|
1847
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
1848
|
-
},
|
|
1849
|
-
{
|
|
1850
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
1851
|
-
}
|
|
1852
|
-
]
|
|
1318
|
+
paths: TRANSFORM_PATHS_52
|
|
1853
1319
|
}
|
|
1854
1320
|
])
|
|
1855
1321
|
)?.checkout;
|
|
@@ -1887,27 +1353,15 @@ async function removeCoupon2(_id) {
|
|
|
1887
1353
|
transformPaths2(result.data, [
|
|
1888
1354
|
{
|
|
1889
1355
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
1890
|
-
paths:
|
|
1356
|
+
paths: TRANSFORM_PATHS_32
|
|
1891
1357
|
},
|
|
1892
1358
|
{
|
|
1893
1359
|
transformFn: transformRESTImageToSDKImage,
|
|
1894
|
-
paths:
|
|
1895
|
-
{ path: "checkout.lineItems.media" },
|
|
1896
|
-
{ path: "checkout.lineItems.catalogOverrideFields.image" }
|
|
1897
|
-
]
|
|
1360
|
+
paths: TRANSFORM_PATHS_42
|
|
1898
1361
|
},
|
|
1899
1362
|
{
|
|
1900
1363
|
transformFn: transformRESTAddressToSDKAddress,
|
|
1901
|
-
paths:
|
|
1902
|
-
{ path: "checkout.billingInfo.address" },
|
|
1903
|
-
{ path: "checkout.shippingInfo.shippingDestination.address" },
|
|
1904
|
-
{
|
|
1905
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
1906
|
-
},
|
|
1907
|
-
{
|
|
1908
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
1909
|
-
}
|
|
1910
|
-
]
|
|
1364
|
+
paths: TRANSFORM_PATHS_52
|
|
1911
1365
|
}
|
|
1912
1366
|
])
|
|
1913
1367
|
);
|
|
@@ -1937,27 +1391,15 @@ async function removeGiftCard2(_id) {
|
|
|
1937
1391
|
transformPaths2(result.data, [
|
|
1938
1392
|
{
|
|
1939
1393
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
1940
|
-
paths:
|
|
1394
|
+
paths: TRANSFORM_PATHS_32
|
|
1941
1395
|
},
|
|
1942
1396
|
{
|
|
1943
1397
|
transformFn: transformRESTImageToSDKImage,
|
|
1944
|
-
paths:
|
|
1945
|
-
{ path: "checkout.lineItems.media" },
|
|
1946
|
-
{ path: "checkout.lineItems.catalogOverrideFields.image" }
|
|
1947
|
-
]
|
|
1398
|
+
paths: TRANSFORM_PATHS_42
|
|
1948
1399
|
},
|
|
1949
1400
|
{
|
|
1950
1401
|
transformFn: transformRESTAddressToSDKAddress,
|
|
1951
|
-
paths:
|
|
1952
|
-
{ path: "checkout.billingInfo.address" },
|
|
1953
|
-
{ path: "checkout.shippingInfo.shippingDestination.address" },
|
|
1954
|
-
{
|
|
1955
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
1956
|
-
},
|
|
1957
|
-
{
|
|
1958
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
1959
|
-
}
|
|
1960
|
-
]
|
|
1402
|
+
paths: TRANSFORM_PATHS_52
|
|
1961
1403
|
}
|
|
1962
1404
|
])
|
|
1963
1405
|
);
|
|
@@ -1987,27 +1429,15 @@ async function removeOverrideCheckoutUrl2(_id) {
|
|
|
1987
1429
|
transformPaths2(result.data, [
|
|
1988
1430
|
{
|
|
1989
1431
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
1990
|
-
paths:
|
|
1432
|
+
paths: TRANSFORM_PATHS_32
|
|
1991
1433
|
},
|
|
1992
1434
|
{
|
|
1993
1435
|
transformFn: transformRESTImageToSDKImage,
|
|
1994
|
-
paths:
|
|
1995
|
-
{ path: "checkout.lineItems.media" },
|
|
1996
|
-
{ path: "checkout.lineItems.catalogOverrideFields.image" }
|
|
1997
|
-
]
|
|
1436
|
+
paths: TRANSFORM_PATHS_42
|
|
1998
1437
|
},
|
|
1999
1438
|
{
|
|
2000
1439
|
transformFn: transformRESTAddressToSDKAddress,
|
|
2001
|
-
paths:
|
|
2002
|
-
{ path: "checkout.billingInfo.address" },
|
|
2003
|
-
{ path: "checkout.shippingInfo.shippingDestination.address" },
|
|
2004
|
-
{
|
|
2005
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
2006
|
-
},
|
|
2007
|
-
{
|
|
2008
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
2009
|
-
}
|
|
2010
|
-
]
|
|
1440
|
+
paths: TRANSFORM_PATHS_52
|
|
2011
1441
|
}
|
|
2012
1442
|
])
|
|
2013
1443
|
);
|
|
@@ -2036,15 +1466,11 @@ async function addToCheckout2(_id, options) {
|
|
|
2036
1466
|
[
|
|
2037
1467
|
{
|
|
2038
1468
|
transformFn: transformSDKPageURLV2ToRESTPageURLV2,
|
|
2039
|
-
paths:
|
|
1469
|
+
paths: TRANSFORM_PATHS_82
|
|
2040
1470
|
},
|
|
2041
1471
|
{
|
|
2042
1472
|
transformFn: transformSDKImageToRESTImage,
|
|
2043
|
-
paths:
|
|
2044
|
-
{ path: "lineItems.media" },
|
|
2045
|
-
{ path: "lineItems.catalogOverrideFields.image" },
|
|
2046
|
-
{ path: "customLineItems.media" }
|
|
2047
|
-
]
|
|
1473
|
+
paths: TRANSFORM_PATHS_92
|
|
2048
1474
|
}
|
|
2049
1475
|
]
|
|
2050
1476
|
);
|
|
@@ -2057,27 +1483,15 @@ async function addToCheckout2(_id, options) {
|
|
|
2057
1483
|
transformPaths2(result.data, [
|
|
2058
1484
|
{
|
|
2059
1485
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
2060
|
-
paths:
|
|
1486
|
+
paths: TRANSFORM_PATHS_32
|
|
2061
1487
|
},
|
|
2062
1488
|
{
|
|
2063
1489
|
transformFn: transformRESTImageToSDKImage,
|
|
2064
|
-
paths:
|
|
2065
|
-
{ path: "checkout.lineItems.media" },
|
|
2066
|
-
{ path: "checkout.lineItems.catalogOverrideFields.image" }
|
|
2067
|
-
]
|
|
1490
|
+
paths: TRANSFORM_PATHS_42
|
|
2068
1491
|
},
|
|
2069
1492
|
{
|
|
2070
1493
|
transformFn: 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
|
-
]
|
|
1494
|
+
paths: TRANSFORM_PATHS_52
|
|
2081
1495
|
}
|
|
2082
1496
|
])
|
|
2083
1497
|
);
|
|
@@ -2114,27 +1528,15 @@ async function removeLineItems2(_id, lineItemIds) {
|
|
|
2114
1528
|
transformPaths2(result.data, [
|
|
2115
1529
|
{
|
|
2116
1530
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
2117
|
-
paths:
|
|
1531
|
+
paths: TRANSFORM_PATHS_32
|
|
2118
1532
|
},
|
|
2119
1533
|
{
|
|
2120
1534
|
transformFn: transformRESTImageToSDKImage,
|
|
2121
|
-
paths:
|
|
2122
|
-
{ path: "checkout.lineItems.media" },
|
|
2123
|
-
{ path: "checkout.lineItems.catalogOverrideFields.image" }
|
|
2124
|
-
]
|
|
1535
|
+
paths: TRANSFORM_PATHS_42
|
|
2125
1536
|
},
|
|
2126
1537
|
{
|
|
2127
1538
|
transformFn: transformRESTAddressToSDKAddress,
|
|
2128
|
-
paths:
|
|
2129
|
-
{ path: "checkout.billingInfo.address" },
|
|
2130
|
-
{ path: "checkout.shippingInfo.shippingDestination.address" },
|
|
2131
|
-
{
|
|
2132
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
2133
|
-
},
|
|
2134
|
-
{
|
|
2135
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
2136
|
-
}
|
|
2137
|
-
]
|
|
1539
|
+
paths: TRANSFORM_PATHS_52
|
|
2138
1540
|
}
|
|
2139
1541
|
])
|
|
2140
1542
|
);
|
|
@@ -2285,27 +1687,15 @@ async function updateLineItemsQuantity2(_id, lineItems) {
|
|
|
2285
1687
|
transformPaths2(result.data, [
|
|
2286
1688
|
{
|
|
2287
1689
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
2288
|
-
paths:
|
|
1690
|
+
paths: TRANSFORM_PATHS_32
|
|
2289
1691
|
},
|
|
2290
1692
|
{
|
|
2291
1693
|
transformFn: transformRESTImageToSDKImage,
|
|
2292
|
-
paths:
|
|
2293
|
-
{ path: "checkout.lineItems.media" },
|
|
2294
|
-
{ path: "checkout.lineItems.catalogOverrideFields.image" }
|
|
2295
|
-
]
|
|
1694
|
+
paths: TRANSFORM_PATHS_42
|
|
2296
1695
|
},
|
|
2297
1696
|
{
|
|
2298
1697
|
transformFn: transformRESTAddressToSDKAddress,
|
|
2299
|
-
paths:
|
|
2300
|
-
{ path: "checkout.billingInfo.address" },
|
|
2301
|
-
{ path: "checkout.shippingInfo.shippingDestination.address" },
|
|
2302
|
-
{
|
|
2303
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
2304
|
-
},
|
|
2305
|
-
{
|
|
2306
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
2307
|
-
}
|
|
2308
|
-
]
|
|
1698
|
+
paths: TRANSFORM_PATHS_52
|
|
2309
1699
|
}
|
|
2310
1700
|
])
|
|
2311
1701
|
);
|
|
@@ -2325,6 +1715,244 @@ async function updateLineItemsQuantity2(_id, lineItems) {
|
|
|
2325
1715
|
}
|
|
2326
1716
|
|
|
2327
1717
|
// src/ecom-v1-checkout-checkout.public.ts
|
|
1718
|
+
var TRANSFORM_PATHS_03 = [
|
|
1719
|
+
{ path: "data.checkout.createdDate" },
|
|
1720
|
+
{ path: "data.checkout.updatedDate" },
|
|
1721
|
+
{
|
|
1722
|
+
path: "data.checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
1723
|
+
},
|
|
1724
|
+
{ path: "data.checkout.lineItems.serviceProperties.scheduledDate" },
|
|
1725
|
+
{ path: "data.checkout.lineItems.serviceProperties.endDate" },
|
|
1726
|
+
{
|
|
1727
|
+
path: "data.checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
1728
|
+
},
|
|
1729
|
+
{
|
|
1730
|
+
path: "data.checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
1731
|
+
},
|
|
1732
|
+
{
|
|
1733
|
+
path: "data.checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
1734
|
+
},
|
|
1735
|
+
{
|
|
1736
|
+
path: "data.checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
1737
|
+
},
|
|
1738
|
+
{
|
|
1739
|
+
path: "data.checkout.membershipOptions.eligibleMemberships.expirationDate"
|
|
1740
|
+
},
|
|
1741
|
+
{
|
|
1742
|
+
path: "data.checkout.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
1743
|
+
},
|
|
1744
|
+
{ path: "data.checkout.subscriptionCharges.charges.cycleBillingDate" },
|
|
1745
|
+
{ path: "metadata.eventTime" }
|
|
1746
|
+
];
|
|
1747
|
+
var TRANSFORM_PATHS_13 = [{ path: "data.checkout.lineItems.url" }];
|
|
1748
|
+
var TRANSFORM_PATHS_23 = [
|
|
1749
|
+
{ path: "data.checkout.lineItems.media" },
|
|
1750
|
+
{ path: "data.checkout.lineItems.catalogOverrideFields.image" }
|
|
1751
|
+
];
|
|
1752
|
+
var TRANSFORM_PATHS_33 = [
|
|
1753
|
+
{ path: "data.checkout.lineItems.physicalProperties.weight" },
|
|
1754
|
+
{
|
|
1755
|
+
path: "data.checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
1756
|
+
},
|
|
1757
|
+
{ path: "data.checkout.appliedDiscounts.merchantDiscount.percentage" }
|
|
1758
|
+
];
|
|
1759
|
+
var TRANSFORM_PATHS_43 = [
|
|
1760
|
+
{ path: "data.checkout.billingInfo.address" },
|
|
1761
|
+
{ path: "data.checkout.shippingInfo.shippingDestination.address" },
|
|
1762
|
+
{
|
|
1763
|
+
path: "data.checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
1764
|
+
},
|
|
1765
|
+
{
|
|
1766
|
+
path: "data.checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
1767
|
+
}
|
|
1768
|
+
];
|
|
1769
|
+
var TRANSFORM_PATHS_53 = [
|
|
1770
|
+
{ path: "entity.createdDate" },
|
|
1771
|
+
{ path: "entity.updatedDate" },
|
|
1772
|
+
{
|
|
1773
|
+
path: "entity.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
1774
|
+
},
|
|
1775
|
+
{ path: "entity.lineItems.serviceProperties.scheduledDate" },
|
|
1776
|
+
{ path: "entity.lineItems.serviceProperties.endDate" },
|
|
1777
|
+
{
|
|
1778
|
+
path: "entity.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
1779
|
+
},
|
|
1780
|
+
{
|
|
1781
|
+
path: "entity.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
1782
|
+
},
|
|
1783
|
+
{
|
|
1784
|
+
path: "entity.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
1785
|
+
},
|
|
1786
|
+
{
|
|
1787
|
+
path: "entity.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
1788
|
+
},
|
|
1789
|
+
{ path: "entity.membershipOptions.eligibleMemberships.expirationDate" },
|
|
1790
|
+
{
|
|
1791
|
+
path: "entity.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
1792
|
+
},
|
|
1793
|
+
{ path: "entity.subscriptionCharges.charges.cycleBillingDate" },
|
|
1794
|
+
{ path: "metadata.eventTime" }
|
|
1795
|
+
];
|
|
1796
|
+
var TRANSFORM_PATHS_63 = [{ path: "entity.lineItems.url" }];
|
|
1797
|
+
var TRANSFORM_PATHS_73 = [
|
|
1798
|
+
{ path: "entity.lineItems.media" },
|
|
1799
|
+
{ path: "entity.lineItems.catalogOverrideFields.image" }
|
|
1800
|
+
];
|
|
1801
|
+
var TRANSFORM_PATHS_83 = [
|
|
1802
|
+
{ path: "entity.lineItems.physicalProperties.weight" },
|
|
1803
|
+
{ path: "entity.lineItems.catalogOverrideFields.physicalProperties.weight" },
|
|
1804
|
+
{ path: "entity.appliedDiscounts.merchantDiscount.percentage" }
|
|
1805
|
+
];
|
|
1806
|
+
var TRANSFORM_PATHS_93 = [
|
|
1807
|
+
{ path: "entity.billingInfo.address" },
|
|
1808
|
+
{ path: "entity.shippingInfo.shippingDestination.address" },
|
|
1809
|
+
{
|
|
1810
|
+
path: "entity.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
1811
|
+
},
|
|
1812
|
+
{
|
|
1813
|
+
path: "entity.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
1814
|
+
}
|
|
1815
|
+
];
|
|
1816
|
+
var TRANSFORM_PATHS_10 = [
|
|
1817
|
+
{ path: "undefined.createdDate" },
|
|
1818
|
+
{ path: "undefined.updatedDate" },
|
|
1819
|
+
{
|
|
1820
|
+
path: "undefined.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
1821
|
+
},
|
|
1822
|
+
{ path: "undefined.lineItems.serviceProperties.scheduledDate" },
|
|
1823
|
+
{ path: "undefined.lineItems.serviceProperties.endDate" },
|
|
1824
|
+
{
|
|
1825
|
+
path: "undefined.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
1826
|
+
},
|
|
1827
|
+
{
|
|
1828
|
+
path: "undefined.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
1829
|
+
},
|
|
1830
|
+
{
|
|
1831
|
+
path: "undefined.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
1832
|
+
},
|
|
1833
|
+
{
|
|
1834
|
+
path: "undefined.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
1835
|
+
},
|
|
1836
|
+
{ path: "undefined.membershipOptions.eligibleMemberships.expirationDate" },
|
|
1837
|
+
{
|
|
1838
|
+
path: "undefined.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
1839
|
+
},
|
|
1840
|
+
{ path: "undefined.subscriptionCharges.charges.cycleBillingDate" },
|
|
1841
|
+
{ path: "metadata.eventTime" }
|
|
1842
|
+
];
|
|
1843
|
+
var TRANSFORM_PATHS_11 = [{ path: "undefined.lineItems.url" }];
|
|
1844
|
+
var TRANSFORM_PATHS_122 = [
|
|
1845
|
+
{ path: "undefined.lineItems.media" },
|
|
1846
|
+
{ path: "undefined.lineItems.catalogOverrideFields.image" }
|
|
1847
|
+
];
|
|
1848
|
+
var TRANSFORM_PATHS_132 = [
|
|
1849
|
+
{ path: "undefined.lineItems.physicalProperties.weight" },
|
|
1850
|
+
{
|
|
1851
|
+
path: "undefined.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
1852
|
+
},
|
|
1853
|
+
{ path: "undefined.appliedDiscounts.merchantDiscount.percentage" }
|
|
1854
|
+
];
|
|
1855
|
+
var TRANSFORM_PATHS_14 = [
|
|
1856
|
+
{ path: "undefined.billingInfo.address" },
|
|
1857
|
+
{ path: "undefined.shippingInfo.shippingDestination.address" },
|
|
1858
|
+
{
|
|
1859
|
+
path: "undefined.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
1860
|
+
},
|
|
1861
|
+
{
|
|
1862
|
+
path: "undefined.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
1863
|
+
}
|
|
1864
|
+
];
|
|
1865
|
+
var TRANSFORM_PATHS_15 = [
|
|
1866
|
+
{ path: "entity.createdDate" },
|
|
1867
|
+
{ path: "entity.updatedDate" },
|
|
1868
|
+
{
|
|
1869
|
+
path: "entity.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
1870
|
+
},
|
|
1871
|
+
{ path: "entity.lineItems.serviceProperties.scheduledDate" },
|
|
1872
|
+
{ path: "entity.lineItems.serviceProperties.endDate" },
|
|
1873
|
+
{
|
|
1874
|
+
path: "entity.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
1875
|
+
},
|
|
1876
|
+
{
|
|
1877
|
+
path: "entity.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
1878
|
+
},
|
|
1879
|
+
{
|
|
1880
|
+
path: "entity.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
1881
|
+
},
|
|
1882
|
+
{
|
|
1883
|
+
path: "entity.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
1884
|
+
},
|
|
1885
|
+
{ path: "entity.membershipOptions.eligibleMemberships.expirationDate" },
|
|
1886
|
+
{
|
|
1887
|
+
path: "entity.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
1888
|
+
},
|
|
1889
|
+
{ path: "entity.subscriptionCharges.charges.cycleBillingDate" },
|
|
1890
|
+
{ path: "metadata.eventTime" },
|
|
1891
|
+
{ path: "modifiedFields.createdDate" },
|
|
1892
|
+
{ path: "modifiedFields.updatedDate" },
|
|
1893
|
+
{
|
|
1894
|
+
path: "modifiedFields.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
1895
|
+
},
|
|
1896
|
+
{ path: "modifiedFields.lineItems.serviceProperties.scheduledDate" },
|
|
1897
|
+
{ path: "modifiedFields.lineItems.serviceProperties.endDate" },
|
|
1898
|
+
{
|
|
1899
|
+
path: "modifiedFields.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
1900
|
+
},
|
|
1901
|
+
{
|
|
1902
|
+
path: "modifiedFields.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
1903
|
+
},
|
|
1904
|
+
{
|
|
1905
|
+
path: "modifiedFields.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
1906
|
+
},
|
|
1907
|
+
{
|
|
1908
|
+
path: "modifiedFields.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
1909
|
+
},
|
|
1910
|
+
{
|
|
1911
|
+
path: "modifiedFields.membershipOptions.eligibleMemberships.expirationDate"
|
|
1912
|
+
},
|
|
1913
|
+
{
|
|
1914
|
+
path: "modifiedFields.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
1915
|
+
},
|
|
1916
|
+
{ path: "modifiedFields.subscriptionCharges.charges.cycleBillingDate" }
|
|
1917
|
+
];
|
|
1918
|
+
var TRANSFORM_PATHS_16 = [
|
|
1919
|
+
{ path: "entity.lineItems.url" },
|
|
1920
|
+
{ path: "modifiedFields.lineItems.url" }
|
|
1921
|
+
];
|
|
1922
|
+
var TRANSFORM_PATHS_17 = [
|
|
1923
|
+
{ path: "entity.lineItems.media" },
|
|
1924
|
+
{ path: "entity.lineItems.catalogOverrideFields.image" },
|
|
1925
|
+
{ path: "modifiedFields.lineItems.media" },
|
|
1926
|
+
{ path: "modifiedFields.lineItems.catalogOverrideFields.image" }
|
|
1927
|
+
];
|
|
1928
|
+
var TRANSFORM_PATHS_18 = [
|
|
1929
|
+
{ path: "entity.lineItems.physicalProperties.weight" },
|
|
1930
|
+
{ path: "entity.lineItems.catalogOverrideFields.physicalProperties.weight" },
|
|
1931
|
+
{ path: "entity.appliedDiscounts.merchantDiscount.percentage" },
|
|
1932
|
+
{ path: "modifiedFields.lineItems.physicalProperties.weight" },
|
|
1933
|
+
{
|
|
1934
|
+
path: "modifiedFields.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
1935
|
+
},
|
|
1936
|
+
{ path: "modifiedFields.appliedDiscounts.merchantDiscount.percentage" }
|
|
1937
|
+
];
|
|
1938
|
+
var TRANSFORM_PATHS_19 = [
|
|
1939
|
+
{ path: "entity.billingInfo.address" },
|
|
1940
|
+
{ path: "entity.shippingInfo.shippingDestination.address" },
|
|
1941
|
+
{
|
|
1942
|
+
path: "entity.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
1943
|
+
},
|
|
1944
|
+
{
|
|
1945
|
+
path: "entity.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
1946
|
+
},
|
|
1947
|
+
{ path: "modifiedFields.billingInfo.address" },
|
|
1948
|
+
{ path: "modifiedFields.shippingInfo.shippingDestination.address" },
|
|
1949
|
+
{
|
|
1950
|
+
path: "modifiedFields.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
1951
|
+
},
|
|
1952
|
+
{
|
|
1953
|
+
path: "modifiedFields.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
1954
|
+
}
|
|
1955
|
+
];
|
|
2328
1956
|
function createCheckout3(httpClient) {
|
|
2329
1957
|
return (options) => createCheckout2(
|
|
2330
1958
|
options,
|
|
@@ -2452,73 +2080,23 @@ var onCheckoutCompleted = /* @__PURE__ */ EventDefinition(
|
|
|
2452
2080
|
transformPaths3(event, [
|
|
2453
2081
|
{
|
|
2454
2082
|
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
2455
|
-
paths:
|
|
2456
|
-
{ path: "data.checkout.createdDate" },
|
|
2457
|
-
{ path: "data.checkout.updatedDate" },
|
|
2458
|
-
{
|
|
2459
|
-
path: "data.checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
2460
|
-
},
|
|
2461
|
-
{ path: "data.checkout.lineItems.serviceProperties.scheduledDate" },
|
|
2462
|
-
{ path: "data.checkout.lineItems.serviceProperties.endDate" },
|
|
2463
|
-
{
|
|
2464
|
-
path: "data.checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
2465
|
-
},
|
|
2466
|
-
{
|
|
2467
|
-
path: "data.checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
2468
|
-
},
|
|
2469
|
-
{
|
|
2470
|
-
path: "data.checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
2471
|
-
},
|
|
2472
|
-
{
|
|
2473
|
-
path: "data.checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
2474
|
-
},
|
|
2475
|
-
{
|
|
2476
|
-
path: "data.checkout.membershipOptions.eligibleMemberships.expirationDate"
|
|
2477
|
-
},
|
|
2478
|
-
{
|
|
2479
|
-
path: "data.checkout.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
2480
|
-
},
|
|
2481
|
-
{
|
|
2482
|
-
path: "data.checkout.subscriptionCharges.charges.cycleBillingDate"
|
|
2483
|
-
},
|
|
2484
|
-
{ path: "metadata.eventTime" }
|
|
2485
|
-
]
|
|
2083
|
+
paths: TRANSFORM_PATHS_03
|
|
2486
2084
|
},
|
|
2487
2085
|
{
|
|
2488
2086
|
transformFn: transformRESTPageURLV2ToSDKPageURLV22,
|
|
2489
|
-
paths:
|
|
2087
|
+
paths: TRANSFORM_PATHS_13
|
|
2490
2088
|
},
|
|
2491
2089
|
{
|
|
2492
2090
|
transformFn: transformRESTImageToSDKImage2,
|
|
2493
|
-
paths:
|
|
2494
|
-
{ path: "data.checkout.lineItems.media" },
|
|
2495
|
-
{ path: "data.checkout.lineItems.catalogOverrideFields.image" }
|
|
2496
|
-
]
|
|
2091
|
+
paths: TRANSFORM_PATHS_23
|
|
2497
2092
|
},
|
|
2498
2093
|
{
|
|
2499
2094
|
transformFn: transformRESTFloatToSDKFloat2,
|
|
2500
|
-
paths:
|
|
2501
|
-
{ path: "data.checkout.lineItems.physicalProperties.weight" },
|
|
2502
|
-
{
|
|
2503
|
-
path: "data.checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
2504
|
-
},
|
|
2505
|
-
{
|
|
2506
|
-
path: "data.checkout.appliedDiscounts.merchantDiscount.percentage"
|
|
2507
|
-
}
|
|
2508
|
-
]
|
|
2095
|
+
paths: TRANSFORM_PATHS_33
|
|
2509
2096
|
},
|
|
2510
2097
|
{
|
|
2511
2098
|
transformFn: transformRESTAddressToSDKAddress2,
|
|
2512
|
-
paths:
|
|
2513
|
-
{ path: "data.checkout.billingInfo.address" },
|
|
2514
|
-
{ path: "data.checkout.shippingInfo.shippingDestination.address" },
|
|
2515
|
-
{
|
|
2516
|
-
path: "data.checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
2517
|
-
},
|
|
2518
|
-
{
|
|
2519
|
-
path: "data.checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
2520
|
-
}
|
|
2521
|
-
]
|
|
2099
|
+
paths: TRANSFORM_PATHS_43
|
|
2522
2100
|
}
|
|
2523
2101
|
])
|
|
2524
2102
|
)
|
|
@@ -2530,69 +2108,23 @@ var onCheckoutCreated = /* @__PURE__ */ EventDefinition(
|
|
|
2530
2108
|
transformPaths3(event, [
|
|
2531
2109
|
{
|
|
2532
2110
|
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
2533
|
-
paths:
|
|
2534
|
-
{ path: "entity.createdDate" },
|
|
2535
|
-
{ path: "entity.updatedDate" },
|
|
2536
|
-
{
|
|
2537
|
-
path: "entity.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
2538
|
-
},
|
|
2539
|
-
{ path: "entity.lineItems.serviceProperties.scheduledDate" },
|
|
2540
|
-
{ path: "entity.lineItems.serviceProperties.endDate" },
|
|
2541
|
-
{
|
|
2542
|
-
path: "entity.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
2543
|
-
},
|
|
2544
|
-
{
|
|
2545
|
-
path: "entity.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
2546
|
-
},
|
|
2547
|
-
{
|
|
2548
|
-
path: "entity.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
2549
|
-
},
|
|
2550
|
-
{
|
|
2551
|
-
path: "entity.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
2552
|
-
},
|
|
2553
|
-
{
|
|
2554
|
-
path: "entity.membershipOptions.eligibleMemberships.expirationDate"
|
|
2555
|
-
},
|
|
2556
|
-
{
|
|
2557
|
-
path: "entity.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
2558
|
-
},
|
|
2559
|
-
{ path: "entity.subscriptionCharges.charges.cycleBillingDate" },
|
|
2560
|
-
{ path: "metadata.eventTime" }
|
|
2561
|
-
]
|
|
2111
|
+
paths: TRANSFORM_PATHS_53
|
|
2562
2112
|
},
|
|
2563
2113
|
{
|
|
2564
2114
|
transformFn: transformRESTPageURLV2ToSDKPageURLV22,
|
|
2565
|
-
paths:
|
|
2115
|
+
paths: TRANSFORM_PATHS_63
|
|
2566
2116
|
},
|
|
2567
2117
|
{
|
|
2568
2118
|
transformFn: transformRESTImageToSDKImage2,
|
|
2569
|
-
paths:
|
|
2570
|
-
{ path: "entity.lineItems.media" },
|
|
2571
|
-
{ path: "entity.lineItems.catalogOverrideFields.image" }
|
|
2572
|
-
]
|
|
2119
|
+
paths: TRANSFORM_PATHS_73
|
|
2573
2120
|
},
|
|
2574
2121
|
{
|
|
2575
2122
|
transformFn: transformRESTFloatToSDKFloat2,
|
|
2576
|
-
paths:
|
|
2577
|
-
{ path: "entity.lineItems.physicalProperties.weight" },
|
|
2578
|
-
{
|
|
2579
|
-
path: "entity.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
2580
|
-
},
|
|
2581
|
-
{ path: "entity.appliedDiscounts.merchantDiscount.percentage" }
|
|
2582
|
-
]
|
|
2123
|
+
paths: TRANSFORM_PATHS_83
|
|
2583
2124
|
},
|
|
2584
2125
|
{
|
|
2585
2126
|
transformFn: transformRESTAddressToSDKAddress2,
|
|
2586
|
-
paths:
|
|
2587
|
-
{ path: "entity.billingInfo.address" },
|
|
2588
|
-
{ path: "entity.shippingInfo.shippingDestination.address" },
|
|
2589
|
-
{
|
|
2590
|
-
path: "entity.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
2591
|
-
},
|
|
2592
|
-
{
|
|
2593
|
-
path: "entity.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
2594
|
-
}
|
|
2595
|
-
]
|
|
2127
|
+
paths: TRANSFORM_PATHS_93
|
|
2596
2128
|
}
|
|
2597
2129
|
])
|
|
2598
2130
|
)
|
|
@@ -2604,69 +2136,23 @@ var onCheckoutDeleted = /* @__PURE__ */ EventDefinition(
|
|
|
2604
2136
|
transformPaths3(event, [
|
|
2605
2137
|
{
|
|
2606
2138
|
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
2607
|
-
paths:
|
|
2608
|
-
{ path: "undefined.createdDate" },
|
|
2609
|
-
{ path: "undefined.updatedDate" },
|
|
2610
|
-
{
|
|
2611
|
-
path: "undefined.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
2612
|
-
},
|
|
2613
|
-
{ path: "undefined.lineItems.serviceProperties.scheduledDate" },
|
|
2614
|
-
{ path: "undefined.lineItems.serviceProperties.endDate" },
|
|
2615
|
-
{
|
|
2616
|
-
path: "undefined.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
2617
|
-
},
|
|
2618
|
-
{
|
|
2619
|
-
path: "undefined.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
2620
|
-
},
|
|
2621
|
-
{
|
|
2622
|
-
path: "undefined.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
2623
|
-
},
|
|
2624
|
-
{
|
|
2625
|
-
path: "undefined.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
2626
|
-
},
|
|
2627
|
-
{
|
|
2628
|
-
path: "undefined.membershipOptions.eligibleMemberships.expirationDate"
|
|
2629
|
-
},
|
|
2630
|
-
{
|
|
2631
|
-
path: "undefined.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
2632
|
-
},
|
|
2633
|
-
{ path: "undefined.subscriptionCharges.charges.cycleBillingDate" },
|
|
2634
|
-
{ path: "metadata.eventTime" }
|
|
2635
|
-
]
|
|
2139
|
+
paths: TRANSFORM_PATHS_10
|
|
2636
2140
|
},
|
|
2637
2141
|
{
|
|
2638
2142
|
transformFn: transformRESTPageURLV2ToSDKPageURLV22,
|
|
2639
|
-
paths:
|
|
2143
|
+
paths: TRANSFORM_PATHS_11
|
|
2640
2144
|
},
|
|
2641
2145
|
{
|
|
2642
2146
|
transformFn: transformRESTImageToSDKImage2,
|
|
2643
|
-
paths:
|
|
2644
|
-
{ path: "undefined.lineItems.media" },
|
|
2645
|
-
{ path: "undefined.lineItems.catalogOverrideFields.image" }
|
|
2646
|
-
]
|
|
2147
|
+
paths: TRANSFORM_PATHS_122
|
|
2647
2148
|
},
|
|
2648
2149
|
{
|
|
2649
2150
|
transformFn: transformRESTFloatToSDKFloat2,
|
|
2650
|
-
paths:
|
|
2651
|
-
{ path: "undefined.lineItems.physicalProperties.weight" },
|
|
2652
|
-
{
|
|
2653
|
-
path: "undefined.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
2654
|
-
},
|
|
2655
|
-
{ path: "undefined.appliedDiscounts.merchantDiscount.percentage" }
|
|
2656
|
-
]
|
|
2151
|
+
paths: TRANSFORM_PATHS_132
|
|
2657
2152
|
},
|
|
2658
2153
|
{
|
|
2659
2154
|
transformFn: transformRESTAddressToSDKAddress2,
|
|
2660
|
-
paths:
|
|
2661
|
-
{ path: "undefined.billingInfo.address" },
|
|
2662
|
-
{ path: "undefined.shippingInfo.shippingDestination.address" },
|
|
2663
|
-
{
|
|
2664
|
-
path: "undefined.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
2665
|
-
},
|
|
2666
|
-
{
|
|
2667
|
-
path: "undefined.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
2668
|
-
}
|
|
2669
|
-
]
|
|
2155
|
+
paths: TRANSFORM_PATHS_14
|
|
2670
2156
|
}
|
|
2671
2157
|
])
|
|
2672
2158
|
)
|
|
@@ -2678,119 +2164,23 @@ var onCheckoutUpdated = /* @__PURE__ */ EventDefinition(
|
|
|
2678
2164
|
transformPaths3(event, [
|
|
2679
2165
|
{
|
|
2680
2166
|
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
2681
|
-
paths:
|
|
2682
|
-
{ path: "entity.createdDate" },
|
|
2683
|
-
{ path: "entity.updatedDate" },
|
|
2684
|
-
{
|
|
2685
|
-
path: "entity.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
2686
|
-
},
|
|
2687
|
-
{ path: "entity.lineItems.serviceProperties.scheduledDate" },
|
|
2688
|
-
{ path: "entity.lineItems.serviceProperties.endDate" },
|
|
2689
|
-
{
|
|
2690
|
-
path: "entity.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
2691
|
-
},
|
|
2692
|
-
{
|
|
2693
|
-
path: "entity.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
2694
|
-
},
|
|
2695
|
-
{
|
|
2696
|
-
path: "entity.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
2697
|
-
},
|
|
2698
|
-
{
|
|
2699
|
-
path: "entity.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
2700
|
-
},
|
|
2701
|
-
{
|
|
2702
|
-
path: "entity.membershipOptions.eligibleMemberships.expirationDate"
|
|
2703
|
-
},
|
|
2704
|
-
{
|
|
2705
|
-
path: "entity.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
2706
|
-
},
|
|
2707
|
-
{ path: "entity.subscriptionCharges.charges.cycleBillingDate" },
|
|
2708
|
-
{ path: "metadata.eventTime" },
|
|
2709
|
-
{ path: "modifiedFields.createdDate" },
|
|
2710
|
-
{ path: "modifiedFields.updatedDate" },
|
|
2711
|
-
{
|
|
2712
|
-
path: "modifiedFields.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
2713
|
-
},
|
|
2714
|
-
{
|
|
2715
|
-
path: "modifiedFields.lineItems.serviceProperties.scheduledDate"
|
|
2716
|
-
},
|
|
2717
|
-
{ path: "modifiedFields.lineItems.serviceProperties.endDate" },
|
|
2718
|
-
{
|
|
2719
|
-
path: "modifiedFields.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
2720
|
-
},
|
|
2721
|
-
{
|
|
2722
|
-
path: "modifiedFields.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
2723
|
-
},
|
|
2724
|
-
{
|
|
2725
|
-
path: "modifiedFields.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
2726
|
-
},
|
|
2727
|
-
{
|
|
2728
|
-
path: "modifiedFields.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
2729
|
-
},
|
|
2730
|
-
{
|
|
2731
|
-
path: "modifiedFields.membershipOptions.eligibleMemberships.expirationDate"
|
|
2732
|
-
},
|
|
2733
|
-
{
|
|
2734
|
-
path: "modifiedFields.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
2735
|
-
},
|
|
2736
|
-
{
|
|
2737
|
-
path: "modifiedFields.subscriptionCharges.charges.cycleBillingDate"
|
|
2738
|
-
}
|
|
2739
|
-
]
|
|
2167
|
+
paths: TRANSFORM_PATHS_15
|
|
2740
2168
|
},
|
|
2741
2169
|
{
|
|
2742
2170
|
transformFn: transformRESTPageURLV2ToSDKPageURLV22,
|
|
2743
|
-
paths:
|
|
2744
|
-
{ path: "entity.lineItems.url" },
|
|
2745
|
-
{ path: "modifiedFields.lineItems.url" }
|
|
2746
|
-
]
|
|
2171
|
+
paths: TRANSFORM_PATHS_16
|
|
2747
2172
|
},
|
|
2748
2173
|
{
|
|
2749
2174
|
transformFn: transformRESTImageToSDKImage2,
|
|
2750
|
-
paths:
|
|
2751
|
-
{ path: "entity.lineItems.media" },
|
|
2752
|
-
{ path: "entity.lineItems.catalogOverrideFields.image" },
|
|
2753
|
-
{ path: "modifiedFields.lineItems.media" },
|
|
2754
|
-
{ path: "modifiedFields.lineItems.catalogOverrideFields.image" }
|
|
2755
|
-
]
|
|
2175
|
+
paths: TRANSFORM_PATHS_17
|
|
2756
2176
|
},
|
|
2757
2177
|
{
|
|
2758
2178
|
transformFn: transformRESTFloatToSDKFloat2,
|
|
2759
|
-
paths:
|
|
2760
|
-
{ path: "entity.lineItems.physicalProperties.weight" },
|
|
2761
|
-
{
|
|
2762
|
-
path: "entity.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
2763
|
-
},
|
|
2764
|
-
{ path: "entity.appliedDiscounts.merchantDiscount.percentage" },
|
|
2765
|
-
{ path: "modifiedFields.lineItems.physicalProperties.weight" },
|
|
2766
|
-
{
|
|
2767
|
-
path: "modifiedFields.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
2768
|
-
},
|
|
2769
|
-
{
|
|
2770
|
-
path: "modifiedFields.appliedDiscounts.merchantDiscount.percentage"
|
|
2771
|
-
}
|
|
2772
|
-
]
|
|
2179
|
+
paths: TRANSFORM_PATHS_18
|
|
2773
2180
|
},
|
|
2774
2181
|
{
|
|
2775
2182
|
transformFn: transformRESTAddressToSDKAddress2,
|
|
2776
|
-
paths:
|
|
2777
|
-
{ path: "entity.billingInfo.address" },
|
|
2778
|
-
{ path: "entity.shippingInfo.shippingDestination.address" },
|
|
2779
|
-
{
|
|
2780
|
-
path: "entity.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
2781
|
-
},
|
|
2782
|
-
{
|
|
2783
|
-
path: "entity.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
2784
|
-
},
|
|
2785
|
-
{ path: "modifiedFields.billingInfo.address" },
|
|
2786
|
-
{ path: "modifiedFields.shippingInfo.shippingDestination.address" },
|
|
2787
|
-
{
|
|
2788
|
-
path: "modifiedFields.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
2789
|
-
},
|
|
2790
|
-
{
|
|
2791
|
-
path: "modifiedFields.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
2792
|
-
}
|
|
2793
|
-
]
|
|
2183
|
+
paths: TRANSFORM_PATHS_19
|
|
2794
2184
|
}
|
|
2795
2185
|
])
|
|
2796
2186
|
)
|