@wix/auto_sdk_ecom_checkout 1.0.174 → 1.0.176
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.js +598 -1208
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +8 -6
- package/build/cjs/index.typings.js +340 -950
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +8 -6
- 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 +8 -6
- package/build/es/index.typings.mjs +340 -950
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +8 -6
- package/build/es/meta.mjs +244 -750
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +15 -9
- package/build/internal/cjs/meta.d.ts +15 -9
- package/build/internal/es/index.typings.d.mts +15 -9
- package/build/internal/es/meta.d.mts +15 -9
- package/package.json +2 -2
|
@@ -15,6 +15,222 @@ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transform
|
|
|
15
15
|
import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
|
|
16
16
|
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
17
17
|
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
18
|
+
var TRANSFORM_PATHS_0 = [
|
|
19
|
+
{ path: "checkoutInfo.createdDate" },
|
|
20
|
+
{ path: "checkoutInfo.updatedDate" },
|
|
21
|
+
{ path: "checkoutInfo.lineItems.media.urlExpirationDate" },
|
|
22
|
+
{
|
|
23
|
+
path: "checkoutInfo.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
24
|
+
},
|
|
25
|
+
{ path: "checkoutInfo.lineItems.serviceProperties.scheduledDate" },
|
|
26
|
+
{ path: "checkoutInfo.lineItems.serviceProperties.endDate" },
|
|
27
|
+
{
|
|
28
|
+
path: "checkoutInfo.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
path: "checkoutInfo.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
path: "checkoutInfo.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
path: "checkoutInfo.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
38
|
+
},
|
|
39
|
+
{ path: "checkoutInfo.membershipOptions.eligibleMemberships.expirationDate" },
|
|
40
|
+
{
|
|
41
|
+
path: "checkoutInfo.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
42
|
+
},
|
|
43
|
+
{ path: "checkoutInfo.subscriptionCharges.charges.cycleBillingDate" },
|
|
44
|
+
{ path: "lineItems.media.urlExpirationDate" },
|
|
45
|
+
{ path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate" },
|
|
46
|
+
{ path: "lineItems.serviceProperties.scheduledDate" },
|
|
47
|
+
{ path: "lineItems.serviceProperties.endDate" },
|
|
48
|
+
{
|
|
49
|
+
path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
50
|
+
},
|
|
51
|
+
{ path: "customLineItems.serviceProperties.scheduledDate" },
|
|
52
|
+
{ path: "customLineItems.serviceProperties.endDate" }
|
|
53
|
+
];
|
|
54
|
+
var TRANSFORM_PATHS_1 = [
|
|
55
|
+
{ path: "checkoutInfo.lineItems.media.focalPoint.x" },
|
|
56
|
+
{ path: "checkoutInfo.lineItems.media.focalPoint.y" },
|
|
57
|
+
{ path: "lineItems.media.focalPoint.x" },
|
|
58
|
+
{ path: "lineItems.media.focalPoint.y" },
|
|
59
|
+
{ path: "checkoutInfo.lineItems.physicalProperties.weight" },
|
|
60
|
+
{
|
|
61
|
+
path: "checkoutInfo.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
62
|
+
},
|
|
63
|
+
{ path: "checkoutInfo.billingInfo.address.geocode.latitude" },
|
|
64
|
+
{ path: "checkoutInfo.billingInfo.address.geocode.longitude" },
|
|
65
|
+
{
|
|
66
|
+
path: "checkoutInfo.shippingInfo.shippingDestination.address.geocode.latitude"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
path: "checkoutInfo.shippingInfo.shippingDestination.address.geocode.longitude"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
path: "checkoutInfo.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
path: "checkoutInfo.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
path: "checkoutInfo.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
path: "checkoutInfo.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
82
|
+
},
|
|
83
|
+
{ path: "checkoutInfo.appliedDiscounts.merchantDiscount.percentage" },
|
|
84
|
+
{ path: "lineItems.physicalProperties.weight" },
|
|
85
|
+
{ path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
|
|
86
|
+
{ path: "customLineItems.physicalProperties.weight" }
|
|
87
|
+
];
|
|
88
|
+
var TRANSFORM_PATHS_2 = [
|
|
89
|
+
{ path: "checkout.createdDate" },
|
|
90
|
+
{ path: "checkout.updatedDate" },
|
|
91
|
+
{ path: "checkout.lineItems.media.urlExpirationDate" },
|
|
92
|
+
{
|
|
93
|
+
path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
94
|
+
},
|
|
95
|
+
{ path: "checkout.lineItems.serviceProperties.scheduledDate" },
|
|
96
|
+
{ path: "checkout.lineItems.serviceProperties.endDate" },
|
|
97
|
+
{
|
|
98
|
+
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
108
|
+
},
|
|
109
|
+
{ path: "checkout.membershipOptions.eligibleMemberships.expirationDate" },
|
|
110
|
+
{
|
|
111
|
+
path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
112
|
+
},
|
|
113
|
+
{ path: "checkout.subscriptionCharges.charges.cycleBillingDate" }
|
|
114
|
+
];
|
|
115
|
+
var TRANSFORM_PATHS_3 = [
|
|
116
|
+
{ path: "checkout.lineItems.media.focalPoint.x" },
|
|
117
|
+
{ path: "checkout.lineItems.media.focalPoint.y" },
|
|
118
|
+
{ path: "checkout.lineItems.physicalProperties.weight" },
|
|
119
|
+
{
|
|
120
|
+
path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
121
|
+
},
|
|
122
|
+
{ path: "checkout.billingInfo.address.geocode.latitude" },
|
|
123
|
+
{ path: "checkout.billingInfo.address.geocode.longitude" },
|
|
124
|
+
{
|
|
125
|
+
path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
141
|
+
},
|
|
142
|
+
{ path: "checkout.appliedDiscounts.merchantDiscount.percentage" }
|
|
143
|
+
];
|
|
144
|
+
var TRANSFORM_PATHS_4 = [{ path: "fieldMask" }];
|
|
145
|
+
var TRANSFORM_PATHS_5 = [
|
|
146
|
+
{ path: "checkout.createdDate" },
|
|
147
|
+
{ path: "checkout.updatedDate" },
|
|
148
|
+
{ path: "checkout.lineItems.media.urlExpirationDate" },
|
|
149
|
+
{
|
|
150
|
+
path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
151
|
+
},
|
|
152
|
+
{ path: "checkout.lineItems.serviceProperties.scheduledDate" },
|
|
153
|
+
{ path: "checkout.lineItems.serviceProperties.endDate" },
|
|
154
|
+
{
|
|
155
|
+
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
165
|
+
},
|
|
166
|
+
{ path: "checkout.membershipOptions.eligibleMemberships.expirationDate" },
|
|
167
|
+
{
|
|
168
|
+
path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
169
|
+
},
|
|
170
|
+
{ path: "checkout.subscriptionCharges.charges.cycleBillingDate" },
|
|
171
|
+
{ path: "lineItems.media.urlExpirationDate" },
|
|
172
|
+
{ path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate" },
|
|
173
|
+
{ path: "lineItems.serviceProperties.scheduledDate" },
|
|
174
|
+
{ path: "lineItems.serviceProperties.endDate" },
|
|
175
|
+
{
|
|
176
|
+
path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
177
|
+
},
|
|
178
|
+
{ path: "customLineItems.serviceProperties.scheduledDate" },
|
|
179
|
+
{ path: "customLineItems.serviceProperties.endDate" }
|
|
180
|
+
];
|
|
181
|
+
var TRANSFORM_PATHS_6 = [
|
|
182
|
+
{ path: "checkout.lineItems.media.focalPoint.x" },
|
|
183
|
+
{ path: "checkout.lineItems.media.focalPoint.y" },
|
|
184
|
+
{ path: "lineItems.media.focalPoint.x" },
|
|
185
|
+
{ path: "lineItems.media.focalPoint.y" },
|
|
186
|
+
{ path: "checkout.lineItems.physicalProperties.weight" },
|
|
187
|
+
{
|
|
188
|
+
path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
189
|
+
},
|
|
190
|
+
{ path: "checkout.billingInfo.address.geocode.latitude" },
|
|
191
|
+
{ path: "checkout.billingInfo.address.geocode.longitude" },
|
|
192
|
+
{
|
|
193
|
+
path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
209
|
+
},
|
|
210
|
+
{ path: "checkout.appliedDiscounts.merchantDiscount.percentage" },
|
|
211
|
+
{ path: "lineItems.physicalProperties.weight" },
|
|
212
|
+
{ path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
|
|
213
|
+
{ path: "customLineItems.physicalProperties.weight" }
|
|
214
|
+
];
|
|
215
|
+
var TRANSFORM_PATHS_7 = [
|
|
216
|
+
{ path: "lineItems.media.urlExpirationDate" },
|
|
217
|
+
{ path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate" },
|
|
218
|
+
{ path: "lineItems.serviceProperties.scheduledDate" },
|
|
219
|
+
{ path: "lineItems.serviceProperties.endDate" },
|
|
220
|
+
{
|
|
221
|
+
path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
222
|
+
},
|
|
223
|
+
{ path: "customLineItems.serviceProperties.scheduledDate" },
|
|
224
|
+
{ path: "customLineItems.serviceProperties.endDate" }
|
|
225
|
+
];
|
|
226
|
+
var TRANSFORM_PATHS_8 = [
|
|
227
|
+
{ path: "lineItems.media.focalPoint.x" },
|
|
228
|
+
{ path: "lineItems.media.focalPoint.y" },
|
|
229
|
+
{ path: "lineItems.physicalProperties.weight" },
|
|
230
|
+
{ path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
|
|
231
|
+
{ path: "customLineItems.physicalProperties.weight" }
|
|
232
|
+
];
|
|
233
|
+
var TRANSFORM_PATHS_9 = [{ path: "body" }];
|
|
18
234
|
function resolveComWixEcomCheckoutApiV1CheckoutServiceUrl(opts) {
|
|
19
235
|
const domainToMappings = {
|
|
20
236
|
"www.wixapis.com": [
|
|
@@ -98,83 +314,11 @@ function createCheckout(payload) {
|
|
|
98
314
|
const serializedData = transformPaths(payload, [
|
|
99
315
|
{
|
|
100
316
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
101
|
-
paths:
|
|
102
|
-
{ path: "checkoutInfo.createdDate" },
|
|
103
|
-
{ path: "checkoutInfo.updatedDate" },
|
|
104
|
-
{ path: "checkoutInfo.lineItems.media.urlExpirationDate" },
|
|
105
|
-
{
|
|
106
|
-
path: "checkoutInfo.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
107
|
-
},
|
|
108
|
-
{ path: "checkoutInfo.lineItems.serviceProperties.scheduledDate" },
|
|
109
|
-
{ path: "checkoutInfo.lineItems.serviceProperties.endDate" },
|
|
110
|
-
{
|
|
111
|
-
path: "checkoutInfo.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
path: "checkoutInfo.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
path: "checkoutInfo.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
path: "checkoutInfo.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
path: "checkoutInfo.membershipOptions.eligibleMemberships.expirationDate"
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
path: "checkoutInfo.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
127
|
-
},
|
|
128
|
-
{ path: "checkoutInfo.subscriptionCharges.charges.cycleBillingDate" },
|
|
129
|
-
{ path: "lineItems.media.urlExpirationDate" },
|
|
130
|
-
{
|
|
131
|
-
path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
132
|
-
},
|
|
133
|
-
{ path: "lineItems.serviceProperties.scheduledDate" },
|
|
134
|
-
{ path: "lineItems.serviceProperties.endDate" },
|
|
135
|
-
{
|
|
136
|
-
path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
137
|
-
},
|
|
138
|
-
{ path: "customLineItems.serviceProperties.scheduledDate" },
|
|
139
|
-
{ path: "customLineItems.serviceProperties.endDate" }
|
|
140
|
-
]
|
|
317
|
+
paths: TRANSFORM_PATHS_0
|
|
141
318
|
},
|
|
142
319
|
{
|
|
143
320
|
transformFn: transformSDKFloatToRESTFloat,
|
|
144
|
-
paths:
|
|
145
|
-
{ path: "checkoutInfo.lineItems.media.focalPoint.x" },
|
|
146
|
-
{ path: "checkoutInfo.lineItems.media.focalPoint.y" },
|
|
147
|
-
{ path: "lineItems.media.focalPoint.x" },
|
|
148
|
-
{ path: "lineItems.media.focalPoint.y" },
|
|
149
|
-
{ path: "checkoutInfo.lineItems.physicalProperties.weight" },
|
|
150
|
-
{
|
|
151
|
-
path: "checkoutInfo.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
152
|
-
},
|
|
153
|
-
{ path: "checkoutInfo.billingInfo.address.geocode.latitude" },
|
|
154
|
-
{ path: "checkoutInfo.billingInfo.address.geocode.longitude" },
|
|
155
|
-
{
|
|
156
|
-
path: "checkoutInfo.shippingInfo.shippingDestination.address.geocode.latitude"
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
path: "checkoutInfo.shippingInfo.shippingDestination.address.geocode.longitude"
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
path: "checkoutInfo.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
path: "checkoutInfo.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
|
|
166
|
-
},
|
|
167
|
-
{
|
|
168
|
-
path: "checkoutInfo.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
path: "checkoutInfo.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
172
|
-
},
|
|
173
|
-
{ path: "checkoutInfo.appliedDiscounts.merchantDiscount.percentage" },
|
|
174
|
-
{ path: "lineItems.physicalProperties.weight" },
|
|
175
|
-
{ path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
|
|
176
|
-
{ path: "customLineItems.physicalProperties.weight" }
|
|
177
|
-
]
|
|
321
|
+
paths: TRANSFORM_PATHS_1
|
|
178
322
|
}
|
|
179
323
|
]);
|
|
180
324
|
const metadata = {
|
|
@@ -194,67 +338,11 @@ function createCheckout(payload) {
|
|
|
194
338
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
195
339
|
{
|
|
196
340
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
197
|
-
paths:
|
|
198
|
-
{ path: "checkout.createdDate" },
|
|
199
|
-
{ path: "checkout.updatedDate" },
|
|
200
|
-
{ path: "checkout.lineItems.media.urlExpirationDate" },
|
|
201
|
-
{
|
|
202
|
-
path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
203
|
-
},
|
|
204
|
-
{ path: "checkout.lineItems.serviceProperties.scheduledDate" },
|
|
205
|
-
{ path: "checkout.lineItems.serviceProperties.endDate" },
|
|
206
|
-
{
|
|
207
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
208
|
-
},
|
|
209
|
-
{
|
|
210
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
211
|
-
},
|
|
212
|
-
{
|
|
213
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
214
|
-
},
|
|
215
|
-
{
|
|
216
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
217
|
-
},
|
|
218
|
-
{
|
|
219
|
-
path: "checkout.membershipOptions.eligibleMemberships.expirationDate"
|
|
220
|
-
},
|
|
221
|
-
{
|
|
222
|
-
path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
223
|
-
},
|
|
224
|
-
{ path: "checkout.subscriptionCharges.charges.cycleBillingDate" }
|
|
225
|
-
]
|
|
341
|
+
paths: TRANSFORM_PATHS_2
|
|
226
342
|
},
|
|
227
343
|
{
|
|
228
344
|
transformFn: transformRESTFloatToSDKFloat,
|
|
229
|
-
paths:
|
|
230
|
-
{ path: "checkout.lineItems.media.focalPoint.x" },
|
|
231
|
-
{ path: "checkout.lineItems.media.focalPoint.y" },
|
|
232
|
-
{ path: "checkout.lineItems.physicalProperties.weight" },
|
|
233
|
-
{
|
|
234
|
-
path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
235
|
-
},
|
|
236
|
-
{ path: "checkout.billingInfo.address.geocode.latitude" },
|
|
237
|
-
{ path: "checkout.billingInfo.address.geocode.longitude" },
|
|
238
|
-
{
|
|
239
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
|
|
240
|
-
},
|
|
241
|
-
{
|
|
242
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
|
|
243
|
-
},
|
|
244
|
-
{
|
|
245
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
|
|
246
|
-
},
|
|
247
|
-
{
|
|
248
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
|
|
249
|
-
},
|
|
250
|
-
{
|
|
251
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
252
|
-
},
|
|
253
|
-
{
|
|
254
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
255
|
-
},
|
|
256
|
-
{ path: "checkout.appliedDiscounts.merchantDiscount.percentage" }
|
|
257
|
-
]
|
|
345
|
+
paths: TRANSFORM_PATHS_3
|
|
258
346
|
}
|
|
259
347
|
])
|
|
260
348
|
};
|
|
@@ -281,67 +369,11 @@ function getCheckout(payload) {
|
|
|
281
369
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
282
370
|
{
|
|
283
371
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
284
|
-
paths:
|
|
285
|
-
{ path: "checkout.createdDate" },
|
|
286
|
-
{ path: "checkout.updatedDate" },
|
|
287
|
-
{ path: "checkout.lineItems.media.urlExpirationDate" },
|
|
288
|
-
{
|
|
289
|
-
path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
290
|
-
},
|
|
291
|
-
{ path: "checkout.lineItems.serviceProperties.scheduledDate" },
|
|
292
|
-
{ path: "checkout.lineItems.serviceProperties.endDate" },
|
|
293
|
-
{
|
|
294
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
295
|
-
},
|
|
296
|
-
{
|
|
297
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
298
|
-
},
|
|
299
|
-
{
|
|
300
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
301
|
-
},
|
|
302
|
-
{
|
|
303
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
304
|
-
},
|
|
305
|
-
{
|
|
306
|
-
path: "checkout.membershipOptions.eligibleMemberships.expirationDate"
|
|
307
|
-
},
|
|
308
|
-
{
|
|
309
|
-
path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
310
|
-
},
|
|
311
|
-
{ path: "checkout.subscriptionCharges.charges.cycleBillingDate" }
|
|
312
|
-
]
|
|
372
|
+
paths: TRANSFORM_PATHS_2
|
|
313
373
|
},
|
|
314
374
|
{
|
|
315
375
|
transformFn: transformRESTFloatToSDKFloat,
|
|
316
|
-
paths:
|
|
317
|
-
{ path: "checkout.lineItems.media.focalPoint.x" },
|
|
318
|
-
{ path: "checkout.lineItems.media.focalPoint.y" },
|
|
319
|
-
{ path: "checkout.lineItems.physicalProperties.weight" },
|
|
320
|
-
{
|
|
321
|
-
path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
322
|
-
},
|
|
323
|
-
{ path: "checkout.billingInfo.address.geocode.latitude" },
|
|
324
|
-
{ path: "checkout.billingInfo.address.geocode.longitude" },
|
|
325
|
-
{
|
|
326
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
|
|
327
|
-
},
|
|
328
|
-
{
|
|
329
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
|
|
330
|
-
},
|
|
331
|
-
{
|
|
332
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
|
|
333
|
-
},
|
|
334
|
-
{
|
|
335
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
|
|
336
|
-
},
|
|
337
|
-
{
|
|
338
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
339
|
-
},
|
|
340
|
-
{
|
|
341
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
342
|
-
},
|
|
343
|
-
{ path: "checkout.appliedDiscounts.merchantDiscount.percentage" }
|
|
344
|
-
]
|
|
376
|
+
paths: TRANSFORM_PATHS_3
|
|
345
377
|
}
|
|
346
378
|
])
|
|
347
379
|
};
|
|
@@ -368,67 +400,11 @@ function getCheckoutByCartId(payload) {
|
|
|
368
400
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
369
401
|
{
|
|
370
402
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
371
|
-
paths:
|
|
372
|
-
{ path: "checkout.createdDate" },
|
|
373
|
-
{ path: "checkout.updatedDate" },
|
|
374
|
-
{ path: "checkout.lineItems.media.urlExpirationDate" },
|
|
375
|
-
{
|
|
376
|
-
path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
377
|
-
},
|
|
378
|
-
{ path: "checkout.lineItems.serviceProperties.scheduledDate" },
|
|
379
|
-
{ path: "checkout.lineItems.serviceProperties.endDate" },
|
|
380
|
-
{
|
|
381
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
382
|
-
},
|
|
383
|
-
{
|
|
384
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
385
|
-
},
|
|
386
|
-
{
|
|
387
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
388
|
-
},
|
|
389
|
-
{
|
|
390
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
391
|
-
},
|
|
392
|
-
{
|
|
393
|
-
path: "checkout.membershipOptions.eligibleMemberships.expirationDate"
|
|
394
|
-
},
|
|
395
|
-
{
|
|
396
|
-
path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
397
|
-
},
|
|
398
|
-
{ path: "checkout.subscriptionCharges.charges.cycleBillingDate" }
|
|
399
|
-
]
|
|
403
|
+
paths: TRANSFORM_PATHS_2
|
|
400
404
|
},
|
|
401
405
|
{
|
|
402
406
|
transformFn: transformRESTFloatToSDKFloat,
|
|
403
|
-
paths:
|
|
404
|
-
{ path: "checkout.lineItems.media.focalPoint.x" },
|
|
405
|
-
{ path: "checkout.lineItems.media.focalPoint.y" },
|
|
406
|
-
{ path: "checkout.lineItems.physicalProperties.weight" },
|
|
407
|
-
{
|
|
408
|
-
path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
409
|
-
},
|
|
410
|
-
{ path: "checkout.billingInfo.address.geocode.latitude" },
|
|
411
|
-
{ path: "checkout.billingInfo.address.geocode.longitude" },
|
|
412
|
-
{
|
|
413
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
|
|
414
|
-
},
|
|
415
|
-
{
|
|
416
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
|
|
417
|
-
},
|
|
418
|
-
{
|
|
419
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
|
|
420
|
-
},
|
|
421
|
-
{
|
|
422
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
|
|
423
|
-
},
|
|
424
|
-
{
|
|
425
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
426
|
-
},
|
|
427
|
-
{
|
|
428
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
429
|
-
},
|
|
430
|
-
{ path: "checkout.appliedDiscounts.merchantDiscount.percentage" }
|
|
431
|
-
]
|
|
407
|
+
paths: TRANSFORM_PATHS_3
|
|
432
408
|
}
|
|
433
409
|
])
|
|
434
410
|
};
|
|
@@ -483,87 +459,15 @@ function updateCheckout(payload) {
|
|
|
483
459
|
const serializedData = transformPaths(payload, [
|
|
484
460
|
{
|
|
485
461
|
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
486
|
-
paths:
|
|
462
|
+
paths: TRANSFORM_PATHS_4
|
|
487
463
|
},
|
|
488
464
|
{
|
|
489
465
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
490
|
-
paths:
|
|
491
|
-
{ path: "checkout.createdDate" },
|
|
492
|
-
{ path: "checkout.updatedDate" },
|
|
493
|
-
{ path: "checkout.lineItems.media.urlExpirationDate" },
|
|
494
|
-
{
|
|
495
|
-
path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
496
|
-
},
|
|
497
|
-
{ path: "checkout.lineItems.serviceProperties.scheduledDate" },
|
|
498
|
-
{ path: "checkout.lineItems.serviceProperties.endDate" },
|
|
499
|
-
{
|
|
500
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
501
|
-
},
|
|
502
|
-
{
|
|
503
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
504
|
-
},
|
|
505
|
-
{
|
|
506
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
507
|
-
},
|
|
508
|
-
{
|
|
509
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
510
|
-
},
|
|
511
|
-
{
|
|
512
|
-
path: "checkout.membershipOptions.eligibleMemberships.expirationDate"
|
|
513
|
-
},
|
|
514
|
-
{
|
|
515
|
-
path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
516
|
-
},
|
|
517
|
-
{ path: "checkout.subscriptionCharges.charges.cycleBillingDate" },
|
|
518
|
-
{ path: "lineItems.media.urlExpirationDate" },
|
|
519
|
-
{
|
|
520
|
-
path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
521
|
-
},
|
|
522
|
-
{ path: "lineItems.serviceProperties.scheduledDate" },
|
|
523
|
-
{ path: "lineItems.serviceProperties.endDate" },
|
|
524
|
-
{
|
|
525
|
-
path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
526
|
-
},
|
|
527
|
-
{ path: "customLineItems.serviceProperties.scheduledDate" },
|
|
528
|
-
{ path: "customLineItems.serviceProperties.endDate" }
|
|
529
|
-
]
|
|
466
|
+
paths: TRANSFORM_PATHS_5
|
|
530
467
|
},
|
|
531
468
|
{
|
|
532
469
|
transformFn: transformSDKFloatToRESTFloat,
|
|
533
|
-
paths:
|
|
534
|
-
{ path: "checkout.lineItems.media.focalPoint.x" },
|
|
535
|
-
{ path: "checkout.lineItems.media.focalPoint.y" },
|
|
536
|
-
{ path: "lineItems.media.focalPoint.x" },
|
|
537
|
-
{ path: "lineItems.media.focalPoint.y" },
|
|
538
|
-
{ path: "checkout.lineItems.physicalProperties.weight" },
|
|
539
|
-
{
|
|
540
|
-
path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
541
|
-
},
|
|
542
|
-
{ path: "checkout.billingInfo.address.geocode.latitude" },
|
|
543
|
-
{ path: "checkout.billingInfo.address.geocode.longitude" },
|
|
544
|
-
{
|
|
545
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
|
|
546
|
-
},
|
|
547
|
-
{
|
|
548
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
|
|
549
|
-
},
|
|
550
|
-
{
|
|
551
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
|
|
552
|
-
},
|
|
553
|
-
{
|
|
554
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
|
|
555
|
-
},
|
|
556
|
-
{
|
|
557
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
558
|
-
},
|
|
559
|
-
{
|
|
560
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
561
|
-
},
|
|
562
|
-
{ path: "checkout.appliedDiscounts.merchantDiscount.percentage" },
|
|
563
|
-
{ path: "lineItems.physicalProperties.weight" },
|
|
564
|
-
{ path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
|
|
565
|
-
{ path: "customLineItems.physicalProperties.weight" }
|
|
566
|
-
]
|
|
470
|
+
paths: TRANSFORM_PATHS_6
|
|
567
471
|
}
|
|
568
472
|
]);
|
|
569
473
|
const metadata = {
|
|
@@ -583,67 +487,11 @@ function updateCheckout(payload) {
|
|
|
583
487
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
584
488
|
{
|
|
585
489
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
586
|
-
paths:
|
|
587
|
-
{ path: "checkout.createdDate" },
|
|
588
|
-
{ path: "checkout.updatedDate" },
|
|
589
|
-
{ path: "checkout.lineItems.media.urlExpirationDate" },
|
|
590
|
-
{
|
|
591
|
-
path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
592
|
-
},
|
|
593
|
-
{ path: "checkout.lineItems.serviceProperties.scheduledDate" },
|
|
594
|
-
{ path: "checkout.lineItems.serviceProperties.endDate" },
|
|
595
|
-
{
|
|
596
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
597
|
-
},
|
|
598
|
-
{
|
|
599
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
600
|
-
},
|
|
601
|
-
{
|
|
602
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
603
|
-
},
|
|
604
|
-
{
|
|
605
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
606
|
-
},
|
|
607
|
-
{
|
|
608
|
-
path: "checkout.membershipOptions.eligibleMemberships.expirationDate"
|
|
609
|
-
},
|
|
610
|
-
{
|
|
611
|
-
path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
612
|
-
},
|
|
613
|
-
{ path: "checkout.subscriptionCharges.charges.cycleBillingDate" }
|
|
614
|
-
]
|
|
490
|
+
paths: TRANSFORM_PATHS_2
|
|
615
491
|
},
|
|
616
492
|
{
|
|
617
493
|
transformFn: transformRESTFloatToSDKFloat,
|
|
618
|
-
paths:
|
|
619
|
-
{ path: "checkout.lineItems.media.focalPoint.x" },
|
|
620
|
-
{ path: "checkout.lineItems.media.focalPoint.y" },
|
|
621
|
-
{ path: "checkout.lineItems.physicalProperties.weight" },
|
|
622
|
-
{
|
|
623
|
-
path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
624
|
-
},
|
|
625
|
-
{ path: "checkout.billingInfo.address.geocode.latitude" },
|
|
626
|
-
{ path: "checkout.billingInfo.address.geocode.longitude" },
|
|
627
|
-
{
|
|
628
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
|
|
629
|
-
},
|
|
630
|
-
{
|
|
631
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
|
|
632
|
-
},
|
|
633
|
-
{
|
|
634
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
|
|
635
|
-
},
|
|
636
|
-
{
|
|
637
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
|
|
638
|
-
},
|
|
639
|
-
{
|
|
640
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
641
|
-
},
|
|
642
|
-
{
|
|
643
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
644
|
-
},
|
|
645
|
-
{ path: "checkout.appliedDiscounts.merchantDiscount.percentage" }
|
|
646
|
-
]
|
|
494
|
+
paths: TRANSFORM_PATHS_3
|
|
647
495
|
}
|
|
648
496
|
])
|
|
649
497
|
};
|
|
@@ -670,67 +518,11 @@ function removeCoupon(payload) {
|
|
|
670
518
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
671
519
|
{
|
|
672
520
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
673
|
-
paths:
|
|
674
|
-
{ path: "checkout.createdDate" },
|
|
675
|
-
{ path: "checkout.updatedDate" },
|
|
676
|
-
{ path: "checkout.lineItems.media.urlExpirationDate" },
|
|
677
|
-
{
|
|
678
|
-
path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
679
|
-
},
|
|
680
|
-
{ path: "checkout.lineItems.serviceProperties.scheduledDate" },
|
|
681
|
-
{ path: "checkout.lineItems.serviceProperties.endDate" },
|
|
682
|
-
{
|
|
683
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
684
|
-
},
|
|
685
|
-
{
|
|
686
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
687
|
-
},
|
|
688
|
-
{
|
|
689
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
690
|
-
},
|
|
691
|
-
{
|
|
692
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
693
|
-
},
|
|
694
|
-
{
|
|
695
|
-
path: "checkout.membershipOptions.eligibleMemberships.expirationDate"
|
|
696
|
-
},
|
|
697
|
-
{
|
|
698
|
-
path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
699
|
-
},
|
|
700
|
-
{ path: "checkout.subscriptionCharges.charges.cycleBillingDate" }
|
|
701
|
-
]
|
|
521
|
+
paths: TRANSFORM_PATHS_2
|
|
702
522
|
},
|
|
703
523
|
{
|
|
704
524
|
transformFn: transformRESTFloatToSDKFloat,
|
|
705
|
-
paths:
|
|
706
|
-
{ path: "checkout.lineItems.media.focalPoint.x" },
|
|
707
|
-
{ path: "checkout.lineItems.media.focalPoint.y" },
|
|
708
|
-
{ path: "checkout.lineItems.physicalProperties.weight" },
|
|
709
|
-
{
|
|
710
|
-
path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
711
|
-
},
|
|
712
|
-
{ path: "checkout.billingInfo.address.geocode.latitude" },
|
|
713
|
-
{ path: "checkout.billingInfo.address.geocode.longitude" },
|
|
714
|
-
{
|
|
715
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
|
|
716
|
-
},
|
|
717
|
-
{
|
|
718
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
|
|
719
|
-
},
|
|
720
|
-
{
|
|
721
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
|
|
722
|
-
},
|
|
723
|
-
{
|
|
724
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
|
|
725
|
-
},
|
|
726
|
-
{
|
|
727
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
728
|
-
},
|
|
729
|
-
{
|
|
730
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
731
|
-
},
|
|
732
|
-
{ path: "checkout.appliedDiscounts.merchantDiscount.percentage" }
|
|
733
|
-
]
|
|
525
|
+
paths: TRANSFORM_PATHS_3
|
|
734
526
|
}
|
|
735
527
|
])
|
|
736
528
|
};
|
|
@@ -757,67 +549,11 @@ function removeGiftCard(payload) {
|
|
|
757
549
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
758
550
|
{
|
|
759
551
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
760
|
-
paths:
|
|
761
|
-
{ path: "checkout.createdDate" },
|
|
762
|
-
{ path: "checkout.updatedDate" },
|
|
763
|
-
{ path: "checkout.lineItems.media.urlExpirationDate" },
|
|
764
|
-
{
|
|
765
|
-
path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
766
|
-
},
|
|
767
|
-
{ path: "checkout.lineItems.serviceProperties.scheduledDate" },
|
|
768
|
-
{ path: "checkout.lineItems.serviceProperties.endDate" },
|
|
769
|
-
{
|
|
770
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
771
|
-
},
|
|
772
|
-
{
|
|
773
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
774
|
-
},
|
|
775
|
-
{
|
|
776
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
777
|
-
},
|
|
778
|
-
{
|
|
779
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
780
|
-
},
|
|
781
|
-
{
|
|
782
|
-
path: "checkout.membershipOptions.eligibleMemberships.expirationDate"
|
|
783
|
-
},
|
|
784
|
-
{
|
|
785
|
-
path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
786
|
-
},
|
|
787
|
-
{ path: "checkout.subscriptionCharges.charges.cycleBillingDate" }
|
|
788
|
-
]
|
|
552
|
+
paths: TRANSFORM_PATHS_2
|
|
789
553
|
},
|
|
790
554
|
{
|
|
791
555
|
transformFn: transformRESTFloatToSDKFloat,
|
|
792
|
-
paths:
|
|
793
|
-
{ path: "checkout.lineItems.media.focalPoint.x" },
|
|
794
|
-
{ path: "checkout.lineItems.media.focalPoint.y" },
|
|
795
|
-
{ path: "checkout.lineItems.physicalProperties.weight" },
|
|
796
|
-
{
|
|
797
|
-
path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
798
|
-
},
|
|
799
|
-
{ path: "checkout.billingInfo.address.geocode.latitude" },
|
|
800
|
-
{ path: "checkout.billingInfo.address.geocode.longitude" },
|
|
801
|
-
{
|
|
802
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
|
|
803
|
-
},
|
|
804
|
-
{
|
|
805
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
|
|
806
|
-
},
|
|
807
|
-
{
|
|
808
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
|
|
809
|
-
},
|
|
810
|
-
{
|
|
811
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
|
|
812
|
-
},
|
|
813
|
-
{
|
|
814
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
815
|
-
},
|
|
816
|
-
{
|
|
817
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
818
|
-
},
|
|
819
|
-
{ path: "checkout.appliedDiscounts.merchantDiscount.percentage" }
|
|
820
|
-
]
|
|
556
|
+
paths: TRANSFORM_PATHS_3
|
|
821
557
|
}
|
|
822
558
|
])
|
|
823
559
|
};
|
|
@@ -844,67 +580,11 @@ function removeOverrideCheckoutUrl(payload) {
|
|
|
844
580
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
845
581
|
{
|
|
846
582
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
847
|
-
paths:
|
|
848
|
-
{ path: "checkout.createdDate" },
|
|
849
|
-
{ path: "checkout.updatedDate" },
|
|
850
|
-
{ path: "checkout.lineItems.media.urlExpirationDate" },
|
|
851
|
-
{
|
|
852
|
-
path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
853
|
-
},
|
|
854
|
-
{ path: "checkout.lineItems.serviceProperties.scheduledDate" },
|
|
855
|
-
{ path: "checkout.lineItems.serviceProperties.endDate" },
|
|
856
|
-
{
|
|
857
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
858
|
-
},
|
|
859
|
-
{
|
|
860
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
861
|
-
},
|
|
862
|
-
{
|
|
863
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
864
|
-
},
|
|
865
|
-
{
|
|
866
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
867
|
-
},
|
|
868
|
-
{
|
|
869
|
-
path: "checkout.membershipOptions.eligibleMemberships.expirationDate"
|
|
870
|
-
},
|
|
871
|
-
{
|
|
872
|
-
path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
873
|
-
},
|
|
874
|
-
{ path: "checkout.subscriptionCharges.charges.cycleBillingDate" }
|
|
875
|
-
]
|
|
583
|
+
paths: TRANSFORM_PATHS_2
|
|
876
584
|
},
|
|
877
585
|
{
|
|
878
586
|
transformFn: transformRESTFloatToSDKFloat,
|
|
879
|
-
paths:
|
|
880
|
-
{ path: "checkout.lineItems.media.focalPoint.x" },
|
|
881
|
-
{ path: "checkout.lineItems.media.focalPoint.y" },
|
|
882
|
-
{ path: "checkout.lineItems.physicalProperties.weight" },
|
|
883
|
-
{
|
|
884
|
-
path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
885
|
-
},
|
|
886
|
-
{ path: "checkout.billingInfo.address.geocode.latitude" },
|
|
887
|
-
{ path: "checkout.billingInfo.address.geocode.longitude" },
|
|
888
|
-
{
|
|
889
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
|
|
890
|
-
},
|
|
891
|
-
{
|
|
892
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
|
|
893
|
-
},
|
|
894
|
-
{
|
|
895
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
|
|
896
|
-
},
|
|
897
|
-
{
|
|
898
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
|
|
899
|
-
},
|
|
900
|
-
{
|
|
901
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
902
|
-
},
|
|
903
|
-
{
|
|
904
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
905
|
-
},
|
|
906
|
-
{ path: "checkout.appliedDiscounts.merchantDiscount.percentage" }
|
|
907
|
-
]
|
|
587
|
+
paths: TRANSFORM_PATHS_3
|
|
908
588
|
}
|
|
909
589
|
])
|
|
910
590
|
};
|
|
@@ -917,29 +597,11 @@ function addToCheckout(payload) {
|
|
|
917
597
|
const serializedData = transformPaths(payload, [
|
|
918
598
|
{
|
|
919
599
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
920
|
-
paths:
|
|
921
|
-
{ path: "lineItems.media.urlExpirationDate" },
|
|
922
|
-
{
|
|
923
|
-
path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
924
|
-
},
|
|
925
|
-
{ path: "lineItems.serviceProperties.scheduledDate" },
|
|
926
|
-
{ path: "lineItems.serviceProperties.endDate" },
|
|
927
|
-
{
|
|
928
|
-
path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
929
|
-
},
|
|
930
|
-
{ path: "customLineItems.serviceProperties.scheduledDate" },
|
|
931
|
-
{ path: "customLineItems.serviceProperties.endDate" }
|
|
932
|
-
]
|
|
600
|
+
paths: TRANSFORM_PATHS_7
|
|
933
601
|
},
|
|
934
602
|
{
|
|
935
603
|
transformFn: transformSDKFloatToRESTFloat,
|
|
936
|
-
paths:
|
|
937
|
-
{ path: "lineItems.media.focalPoint.x" },
|
|
938
|
-
{ path: "lineItems.media.focalPoint.y" },
|
|
939
|
-
{ path: "lineItems.physicalProperties.weight" },
|
|
940
|
-
{ path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
|
|
941
|
-
{ path: "customLineItems.physicalProperties.weight" }
|
|
942
|
-
]
|
|
604
|
+
paths: TRANSFORM_PATHS_8
|
|
943
605
|
}
|
|
944
606
|
]);
|
|
945
607
|
const metadata = {
|
|
@@ -959,67 +621,11 @@ function addToCheckout(payload) {
|
|
|
959
621
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
960
622
|
{
|
|
961
623
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
962
|
-
paths:
|
|
963
|
-
{ path: "checkout.createdDate" },
|
|
964
|
-
{ path: "checkout.updatedDate" },
|
|
965
|
-
{ path: "checkout.lineItems.media.urlExpirationDate" },
|
|
966
|
-
{
|
|
967
|
-
path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
968
|
-
},
|
|
969
|
-
{ path: "checkout.lineItems.serviceProperties.scheduledDate" },
|
|
970
|
-
{ path: "checkout.lineItems.serviceProperties.endDate" },
|
|
971
|
-
{
|
|
972
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
973
|
-
},
|
|
974
|
-
{
|
|
975
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
976
|
-
},
|
|
977
|
-
{
|
|
978
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
979
|
-
},
|
|
980
|
-
{
|
|
981
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
982
|
-
},
|
|
983
|
-
{
|
|
984
|
-
path: "checkout.membershipOptions.eligibleMemberships.expirationDate"
|
|
985
|
-
},
|
|
986
|
-
{
|
|
987
|
-
path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
988
|
-
},
|
|
989
|
-
{ path: "checkout.subscriptionCharges.charges.cycleBillingDate" }
|
|
990
|
-
]
|
|
624
|
+
paths: TRANSFORM_PATHS_2
|
|
991
625
|
},
|
|
992
626
|
{
|
|
993
627
|
transformFn: transformRESTFloatToSDKFloat,
|
|
994
|
-
paths:
|
|
995
|
-
{ path: "checkout.lineItems.media.focalPoint.x" },
|
|
996
|
-
{ path: "checkout.lineItems.media.focalPoint.y" },
|
|
997
|
-
{ path: "checkout.lineItems.physicalProperties.weight" },
|
|
998
|
-
{
|
|
999
|
-
path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
1000
|
-
},
|
|
1001
|
-
{ path: "checkout.billingInfo.address.geocode.latitude" },
|
|
1002
|
-
{ path: "checkout.billingInfo.address.geocode.longitude" },
|
|
1003
|
-
{
|
|
1004
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
|
|
1005
|
-
},
|
|
1006
|
-
{
|
|
1007
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
|
|
1008
|
-
},
|
|
1009
|
-
{
|
|
1010
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
|
|
1011
|
-
},
|
|
1012
|
-
{
|
|
1013
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
|
|
1014
|
-
},
|
|
1015
|
-
{
|
|
1016
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
1017
|
-
},
|
|
1018
|
-
{
|
|
1019
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
1020
|
-
},
|
|
1021
|
-
{ path: "checkout.appliedDiscounts.merchantDiscount.percentage" }
|
|
1022
|
-
]
|
|
628
|
+
paths: TRANSFORM_PATHS_3
|
|
1023
629
|
}
|
|
1024
630
|
])
|
|
1025
631
|
};
|
|
@@ -1046,67 +652,11 @@ function removeLineItems(payload) {
|
|
|
1046
652
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1047
653
|
{
|
|
1048
654
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1049
|
-
paths:
|
|
1050
|
-
{ path: "checkout.createdDate" },
|
|
1051
|
-
{ path: "checkout.updatedDate" },
|
|
1052
|
-
{ path: "checkout.lineItems.media.urlExpirationDate" },
|
|
1053
|
-
{
|
|
1054
|
-
path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
1055
|
-
},
|
|
1056
|
-
{ path: "checkout.lineItems.serviceProperties.scheduledDate" },
|
|
1057
|
-
{ path: "checkout.lineItems.serviceProperties.endDate" },
|
|
1058
|
-
{
|
|
1059
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
1060
|
-
},
|
|
1061
|
-
{
|
|
1062
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
1063
|
-
},
|
|
1064
|
-
{
|
|
1065
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
1066
|
-
},
|
|
1067
|
-
{
|
|
1068
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
1069
|
-
},
|
|
1070
|
-
{
|
|
1071
|
-
path: "checkout.membershipOptions.eligibleMemberships.expirationDate"
|
|
1072
|
-
},
|
|
1073
|
-
{
|
|
1074
|
-
path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
1075
|
-
},
|
|
1076
|
-
{ path: "checkout.subscriptionCharges.charges.cycleBillingDate" }
|
|
1077
|
-
]
|
|
655
|
+
paths: TRANSFORM_PATHS_2
|
|
1078
656
|
},
|
|
1079
657
|
{
|
|
1080
658
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1081
|
-
paths:
|
|
1082
|
-
{ path: "checkout.lineItems.media.focalPoint.x" },
|
|
1083
|
-
{ path: "checkout.lineItems.media.focalPoint.y" },
|
|
1084
|
-
{ path: "checkout.lineItems.physicalProperties.weight" },
|
|
1085
|
-
{
|
|
1086
|
-
path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
1087
|
-
},
|
|
1088
|
-
{ path: "checkout.billingInfo.address.geocode.latitude" },
|
|
1089
|
-
{ path: "checkout.billingInfo.address.geocode.longitude" },
|
|
1090
|
-
{
|
|
1091
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
|
|
1092
|
-
},
|
|
1093
|
-
{
|
|
1094
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
|
|
1095
|
-
},
|
|
1096
|
-
{
|
|
1097
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
|
|
1098
|
-
},
|
|
1099
|
-
{
|
|
1100
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
|
|
1101
|
-
},
|
|
1102
|
-
{
|
|
1103
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
1104
|
-
},
|
|
1105
|
-
{
|
|
1106
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
1107
|
-
},
|
|
1108
|
-
{ path: "checkout.appliedDiscounts.merchantDiscount.percentage" }
|
|
1109
|
-
]
|
|
659
|
+
paths: TRANSFORM_PATHS_3
|
|
1110
660
|
}
|
|
1111
661
|
])
|
|
1112
662
|
};
|
|
@@ -1175,7 +725,7 @@ function markCheckoutAsCompletedAndRedirectToUrl(payload) {
|
|
|
1175
725
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1176
726
|
{
|
|
1177
727
|
transformFn: transformRESTBytesToSDKBytes,
|
|
1178
|
-
paths:
|
|
728
|
+
paths: TRANSFORM_PATHS_9
|
|
1179
729
|
}
|
|
1180
730
|
])
|
|
1181
731
|
};
|
|
@@ -1223,67 +773,11 @@ function updateLineItemsQuantity(payload) {
|
|
|
1223
773
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1224
774
|
{
|
|
1225
775
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1226
|
-
paths:
|
|
1227
|
-
{ path: "checkout.createdDate" },
|
|
1228
|
-
{ path: "checkout.updatedDate" },
|
|
1229
|
-
{ path: "checkout.lineItems.media.urlExpirationDate" },
|
|
1230
|
-
{
|
|
1231
|
-
path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
1232
|
-
},
|
|
1233
|
-
{ path: "checkout.lineItems.serviceProperties.scheduledDate" },
|
|
1234
|
-
{ path: "checkout.lineItems.serviceProperties.endDate" },
|
|
1235
|
-
{
|
|
1236
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
1237
|
-
},
|
|
1238
|
-
{
|
|
1239
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
1240
|
-
},
|
|
1241
|
-
{
|
|
1242
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
1243
|
-
},
|
|
1244
|
-
{
|
|
1245
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
1246
|
-
},
|
|
1247
|
-
{
|
|
1248
|
-
path: "checkout.membershipOptions.eligibleMemberships.expirationDate"
|
|
1249
|
-
},
|
|
1250
|
-
{
|
|
1251
|
-
path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
|
|
1252
|
-
},
|
|
1253
|
-
{ path: "checkout.subscriptionCharges.charges.cycleBillingDate" }
|
|
1254
|
-
]
|
|
776
|
+
paths: TRANSFORM_PATHS_2
|
|
1255
777
|
},
|
|
1256
778
|
{
|
|
1257
779
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1258
|
-
paths:
|
|
1259
|
-
{ path: "checkout.lineItems.media.focalPoint.x" },
|
|
1260
|
-
{ path: "checkout.lineItems.media.focalPoint.y" },
|
|
1261
|
-
{ path: "checkout.lineItems.physicalProperties.weight" },
|
|
1262
|
-
{
|
|
1263
|
-
path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
1264
|
-
},
|
|
1265
|
-
{ path: "checkout.billingInfo.address.geocode.latitude" },
|
|
1266
|
-
{ path: "checkout.billingInfo.address.geocode.longitude" },
|
|
1267
|
-
{
|
|
1268
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
|
|
1269
|
-
},
|
|
1270
|
-
{
|
|
1271
|
-
path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
|
|
1272
|
-
},
|
|
1273
|
-
{
|
|
1274
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
|
|
1275
|
-
},
|
|
1276
|
-
{
|
|
1277
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
|
|
1278
|
-
},
|
|
1279
|
-
{
|
|
1280
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
1281
|
-
},
|
|
1282
|
-
{
|
|
1283
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
1284
|
-
},
|
|
1285
|
-
{ path: "checkout.appliedDiscounts.merchantDiscount.percentage" }
|
|
1286
|
-
]
|
|
780
|
+
paths: TRANSFORM_PATHS_3
|
|
1287
781
|
}
|
|
1288
782
|
])
|
|
1289
783
|
};
|
|
@@ -1300,6 +794,64 @@ import { transformRESTImageToSDKImage } from "@wix/sdk-runtime/transformations/i
|
|
|
1300
794
|
import { transformSDKPageURLV2ToRESTPageURLV2 } from "@wix/sdk-runtime/transformations/page-url-v2";
|
|
1301
795
|
import { transformRESTPageURLV2ToSDKPageURLV2 } from "@wix/sdk-runtime/transformations/page-url-v2";
|
|
1302
796
|
import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
797
|
+
var TRANSFORM_PATHS_02 = [
|
|
798
|
+
{ path: "checkoutInfo.lineItems.url" },
|
|
799
|
+
{ path: "lineItems.url" },
|
|
800
|
+
{ path: "customLineItems.url" }
|
|
801
|
+
];
|
|
802
|
+
var TRANSFORM_PATHS_12 = [
|
|
803
|
+
{ path: "checkoutInfo.lineItems.media" },
|
|
804
|
+
{ path: "checkoutInfo.lineItems.catalogOverrideFields.image" },
|
|
805
|
+
{ path: "lineItems.media" },
|
|
806
|
+
{ path: "lineItems.catalogOverrideFields.image" },
|
|
807
|
+
{ path: "customLineItems.media" }
|
|
808
|
+
];
|
|
809
|
+
var TRANSFORM_PATHS_22 = [
|
|
810
|
+
{ path: "checkoutInfo.billingInfo.address" },
|
|
811
|
+
{ path: "checkoutInfo.shippingInfo.shippingDestination.address" },
|
|
812
|
+
{
|
|
813
|
+
path: "checkoutInfo.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
814
|
+
},
|
|
815
|
+
{
|
|
816
|
+
path: "checkoutInfo.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
817
|
+
}
|
|
818
|
+
];
|
|
819
|
+
var TRANSFORM_PATHS_32 = [{ path: "checkout.lineItems.url" }];
|
|
820
|
+
var TRANSFORM_PATHS_42 = [
|
|
821
|
+
{ path: "checkout.lineItems.media" },
|
|
822
|
+
{ path: "checkout.lineItems.catalogOverrideFields.image" }
|
|
823
|
+
];
|
|
824
|
+
var TRANSFORM_PATHS_52 = [
|
|
825
|
+
{ path: "checkout.billingInfo.address" },
|
|
826
|
+
{ path: "checkout.shippingInfo.shippingDestination.address" },
|
|
827
|
+
{
|
|
828
|
+
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
829
|
+
},
|
|
830
|
+
{
|
|
831
|
+
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
832
|
+
}
|
|
833
|
+
];
|
|
834
|
+
var TRANSFORM_PATHS_62 = [
|
|
835
|
+
{ path: "checkout.lineItems.url" },
|
|
836
|
+
{ path: "lineItems.url" },
|
|
837
|
+
{ path: "customLineItems.url" }
|
|
838
|
+
];
|
|
839
|
+
var TRANSFORM_PATHS_72 = [
|
|
840
|
+
{ path: "checkout.lineItems.media" },
|
|
841
|
+
{ path: "checkout.lineItems.catalogOverrideFields.image" },
|
|
842
|
+
{ path: "lineItems.media" },
|
|
843
|
+
{ path: "lineItems.catalogOverrideFields.image" },
|
|
844
|
+
{ path: "customLineItems.media" }
|
|
845
|
+
];
|
|
846
|
+
var TRANSFORM_PATHS_82 = [
|
|
847
|
+
{ path: "lineItems.url" },
|
|
848
|
+
{ path: "customLineItems.url" }
|
|
849
|
+
];
|
|
850
|
+
var TRANSFORM_PATHS_92 = [
|
|
851
|
+
{ path: "lineItems.media" },
|
|
852
|
+
{ path: "lineItems.catalogOverrideFields.image" },
|
|
853
|
+
{ path: "customLineItems.media" }
|
|
854
|
+
];
|
|
1303
855
|
var JurisdictionType = /* @__PURE__ */ ((JurisdictionType2) => {
|
|
1304
856
|
JurisdictionType2["UNDEFINED"] = "UNDEFINED";
|
|
1305
857
|
JurisdictionType2["COUNTRY"] = "COUNTRY";
|
|
@@ -1531,34 +1083,15 @@ async function createCheckout2(options) {
|
|
|
1531
1083
|
[
|
|
1532
1084
|
{
|
|
1533
1085
|
transformFn: transformSDKPageURLV2ToRESTPageURLV2,
|
|
1534
|
-
paths:
|
|
1535
|
-
{ path: "checkoutInfo.lineItems.url" },
|
|
1536
|
-
{ path: "lineItems.url" },
|
|
1537
|
-
{ path: "customLineItems.url" }
|
|
1538
|
-
]
|
|
1086
|
+
paths: TRANSFORM_PATHS_02
|
|
1539
1087
|
},
|
|
1540
1088
|
{
|
|
1541
1089
|
transformFn: transformSDKImageToRESTImage,
|
|
1542
|
-
paths:
|
|
1543
|
-
{ path: "checkoutInfo.lineItems.media" },
|
|
1544
|
-
{ path: "checkoutInfo.lineItems.catalogOverrideFields.image" },
|
|
1545
|
-
{ path: "lineItems.media" },
|
|
1546
|
-
{ path: "lineItems.catalogOverrideFields.image" },
|
|
1547
|
-
{ path: "customLineItems.media" }
|
|
1548
|
-
]
|
|
1090
|
+
paths: TRANSFORM_PATHS_12
|
|
1549
1091
|
},
|
|
1550
1092
|
{
|
|
1551
1093
|
transformFn: transformSDKAddressToRESTAddress,
|
|
1552
|
-
paths:
|
|
1553
|
-
{ path: "checkoutInfo.billingInfo.address" },
|
|
1554
|
-
{ path: "checkoutInfo.shippingInfo.shippingDestination.address" },
|
|
1555
|
-
{
|
|
1556
|
-
path: "checkoutInfo.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
1557
|
-
},
|
|
1558
|
-
{
|
|
1559
|
-
path: "checkoutInfo.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
1560
|
-
}
|
|
1561
|
-
]
|
|
1094
|
+
paths: TRANSFORM_PATHS_22
|
|
1562
1095
|
}
|
|
1563
1096
|
]
|
|
1564
1097
|
);
|
|
@@ -1571,27 +1104,15 @@ async function createCheckout2(options) {
|
|
|
1571
1104
|
transformPaths2(result.data, [
|
|
1572
1105
|
{
|
|
1573
1106
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
1574
|
-
paths:
|
|
1107
|
+
paths: TRANSFORM_PATHS_32
|
|
1575
1108
|
},
|
|
1576
1109
|
{
|
|
1577
1110
|
transformFn: transformRESTImageToSDKImage,
|
|
1578
|
-
paths:
|
|
1579
|
-
{ path: "checkout.lineItems.media" },
|
|
1580
|
-
{ path: "checkout.lineItems.catalogOverrideFields.image" }
|
|
1581
|
-
]
|
|
1111
|
+
paths: TRANSFORM_PATHS_42
|
|
1582
1112
|
},
|
|
1583
1113
|
{
|
|
1584
1114
|
transformFn: transformRESTAddressToSDKAddress,
|
|
1585
|
-
paths:
|
|
1586
|
-
{ path: "checkout.billingInfo.address" },
|
|
1587
|
-
{ path: "checkout.shippingInfo.shippingDestination.address" },
|
|
1588
|
-
{
|
|
1589
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
1590
|
-
},
|
|
1591
|
-
{
|
|
1592
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
1593
|
-
}
|
|
1594
|
-
]
|
|
1115
|
+
paths: TRANSFORM_PATHS_52
|
|
1595
1116
|
}
|
|
1596
1117
|
])
|
|
1597
1118
|
)?.checkout;
|
|
@@ -1630,27 +1151,15 @@ async function getCheckout2(_id) {
|
|
|
1630
1151
|
transformPaths2(result.data, [
|
|
1631
1152
|
{
|
|
1632
1153
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
1633
|
-
paths:
|
|
1154
|
+
paths: TRANSFORM_PATHS_32
|
|
1634
1155
|
},
|
|
1635
1156
|
{
|
|
1636
1157
|
transformFn: transformRESTImageToSDKImage,
|
|
1637
|
-
paths:
|
|
1638
|
-
{ path: "checkout.lineItems.media" },
|
|
1639
|
-
{ path: "checkout.lineItems.catalogOverrideFields.image" }
|
|
1640
|
-
]
|
|
1158
|
+
paths: TRANSFORM_PATHS_42
|
|
1641
1159
|
},
|
|
1642
1160
|
{
|
|
1643
1161
|
transformFn: transformRESTAddressToSDKAddress,
|
|
1644
|
-
paths:
|
|
1645
|
-
{ path: "checkout.billingInfo.address" },
|
|
1646
|
-
{ path: "checkout.shippingInfo.shippingDestination.address" },
|
|
1647
|
-
{
|
|
1648
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
1649
|
-
},
|
|
1650
|
-
{
|
|
1651
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
1652
|
-
}
|
|
1653
|
-
]
|
|
1162
|
+
paths: TRANSFORM_PATHS_52
|
|
1654
1163
|
}
|
|
1655
1164
|
])
|
|
1656
1165
|
)?.checkout;
|
|
@@ -1680,27 +1189,15 @@ async function getCheckoutByCartId2(_id) {
|
|
|
1680
1189
|
transformPaths2(result.data, [
|
|
1681
1190
|
{
|
|
1682
1191
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
1683
|
-
paths:
|
|
1192
|
+
paths: TRANSFORM_PATHS_32
|
|
1684
1193
|
},
|
|
1685
1194
|
{
|
|
1686
1195
|
transformFn: transformRESTImageToSDKImage,
|
|
1687
|
-
paths:
|
|
1688
|
-
{ path: "checkout.lineItems.media" },
|
|
1689
|
-
{ path: "checkout.lineItems.catalogOverrideFields.image" }
|
|
1690
|
-
]
|
|
1196
|
+
paths: TRANSFORM_PATHS_42
|
|
1691
1197
|
},
|
|
1692
1198
|
{
|
|
1693
1199
|
transformFn: transformRESTAddressToSDKAddress,
|
|
1694
|
-
paths:
|
|
1695
|
-
{ path: "checkout.billingInfo.address" },
|
|
1696
|
-
{ path: "checkout.shippingInfo.shippingDestination.address" },
|
|
1697
|
-
{
|
|
1698
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
1699
|
-
},
|
|
1700
|
-
{
|
|
1701
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
1702
|
-
}
|
|
1703
|
-
]
|
|
1200
|
+
paths: TRANSFORM_PATHS_52
|
|
1704
1201
|
}
|
|
1705
1202
|
])
|
|
1706
1203
|
);
|
|
@@ -1779,34 +1276,15 @@ async function updateCheckout2(_id, checkout, options) {
|
|
|
1779
1276
|
[
|
|
1780
1277
|
{
|
|
1781
1278
|
transformFn: transformSDKPageURLV2ToRESTPageURLV2,
|
|
1782
|
-
paths:
|
|
1783
|
-
{ path: "checkout.lineItems.url" },
|
|
1784
|
-
{ path: "lineItems.url" },
|
|
1785
|
-
{ path: "customLineItems.url" }
|
|
1786
|
-
]
|
|
1279
|
+
paths: TRANSFORM_PATHS_62
|
|
1787
1280
|
},
|
|
1788
1281
|
{
|
|
1789
1282
|
transformFn: transformSDKImageToRESTImage,
|
|
1790
|
-
paths:
|
|
1791
|
-
{ path: "checkout.lineItems.media" },
|
|
1792
|
-
{ path: "checkout.lineItems.catalogOverrideFields.image" },
|
|
1793
|
-
{ path: "lineItems.media" },
|
|
1794
|
-
{ path: "lineItems.catalogOverrideFields.image" },
|
|
1795
|
-
{ path: "customLineItems.media" }
|
|
1796
|
-
]
|
|
1283
|
+
paths: TRANSFORM_PATHS_72
|
|
1797
1284
|
},
|
|
1798
1285
|
{
|
|
1799
1286
|
transformFn: transformSDKAddressToRESTAddress,
|
|
1800
|
-
paths:
|
|
1801
|
-
{ path: "checkout.billingInfo.address" },
|
|
1802
|
-
{ path: "checkout.shippingInfo.shippingDestination.address" },
|
|
1803
|
-
{
|
|
1804
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
1805
|
-
},
|
|
1806
|
-
{
|
|
1807
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
1808
|
-
}
|
|
1809
|
-
]
|
|
1287
|
+
paths: TRANSFORM_PATHS_52
|
|
1810
1288
|
}
|
|
1811
1289
|
]
|
|
1812
1290
|
);
|
|
@@ -1819,27 +1297,15 @@ async function updateCheckout2(_id, checkout, options) {
|
|
|
1819
1297
|
transformPaths2(result.data, [
|
|
1820
1298
|
{
|
|
1821
1299
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
1822
|
-
paths:
|
|
1300
|
+
paths: TRANSFORM_PATHS_32
|
|
1823
1301
|
},
|
|
1824
1302
|
{
|
|
1825
1303
|
transformFn: transformRESTImageToSDKImage,
|
|
1826
|
-
paths:
|
|
1827
|
-
{ path: "checkout.lineItems.media" },
|
|
1828
|
-
{ path: "checkout.lineItems.catalogOverrideFields.image" }
|
|
1829
|
-
]
|
|
1304
|
+
paths: TRANSFORM_PATHS_42
|
|
1830
1305
|
},
|
|
1831
1306
|
{
|
|
1832
1307
|
transformFn: transformRESTAddressToSDKAddress,
|
|
1833
|
-
paths:
|
|
1834
|
-
{ path: "checkout.billingInfo.address" },
|
|
1835
|
-
{ path: "checkout.shippingInfo.shippingDestination.address" },
|
|
1836
|
-
{
|
|
1837
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
1838
|
-
},
|
|
1839
|
-
{
|
|
1840
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
1841
|
-
}
|
|
1842
|
-
]
|
|
1308
|
+
paths: TRANSFORM_PATHS_52
|
|
1843
1309
|
}
|
|
1844
1310
|
])
|
|
1845
1311
|
)?.checkout;
|
|
@@ -1877,27 +1343,15 @@ async function removeCoupon2(_id) {
|
|
|
1877
1343
|
transformPaths2(result.data, [
|
|
1878
1344
|
{
|
|
1879
1345
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
1880
|
-
paths:
|
|
1346
|
+
paths: TRANSFORM_PATHS_32
|
|
1881
1347
|
},
|
|
1882
1348
|
{
|
|
1883
1349
|
transformFn: transformRESTImageToSDKImage,
|
|
1884
|
-
paths:
|
|
1885
|
-
{ path: "checkout.lineItems.media" },
|
|
1886
|
-
{ path: "checkout.lineItems.catalogOverrideFields.image" }
|
|
1887
|
-
]
|
|
1350
|
+
paths: TRANSFORM_PATHS_42
|
|
1888
1351
|
},
|
|
1889
1352
|
{
|
|
1890
1353
|
transformFn: transformRESTAddressToSDKAddress,
|
|
1891
|
-
paths:
|
|
1892
|
-
{ path: "checkout.billingInfo.address" },
|
|
1893
|
-
{ path: "checkout.shippingInfo.shippingDestination.address" },
|
|
1894
|
-
{
|
|
1895
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
1896
|
-
},
|
|
1897
|
-
{
|
|
1898
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
1899
|
-
}
|
|
1900
|
-
]
|
|
1354
|
+
paths: TRANSFORM_PATHS_52
|
|
1901
1355
|
}
|
|
1902
1356
|
])
|
|
1903
1357
|
);
|
|
@@ -1927,27 +1381,15 @@ async function removeGiftCard2(_id) {
|
|
|
1927
1381
|
transformPaths2(result.data, [
|
|
1928
1382
|
{
|
|
1929
1383
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
1930
|
-
paths:
|
|
1384
|
+
paths: TRANSFORM_PATHS_32
|
|
1931
1385
|
},
|
|
1932
1386
|
{
|
|
1933
1387
|
transformFn: transformRESTImageToSDKImage,
|
|
1934
|
-
paths:
|
|
1935
|
-
{ path: "checkout.lineItems.media" },
|
|
1936
|
-
{ path: "checkout.lineItems.catalogOverrideFields.image" }
|
|
1937
|
-
]
|
|
1388
|
+
paths: TRANSFORM_PATHS_42
|
|
1938
1389
|
},
|
|
1939
1390
|
{
|
|
1940
1391
|
transformFn: transformRESTAddressToSDKAddress,
|
|
1941
|
-
paths:
|
|
1942
|
-
{ path: "checkout.billingInfo.address" },
|
|
1943
|
-
{ path: "checkout.shippingInfo.shippingDestination.address" },
|
|
1944
|
-
{
|
|
1945
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
1946
|
-
},
|
|
1947
|
-
{
|
|
1948
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
1949
|
-
}
|
|
1950
|
-
]
|
|
1392
|
+
paths: TRANSFORM_PATHS_52
|
|
1951
1393
|
}
|
|
1952
1394
|
])
|
|
1953
1395
|
);
|
|
@@ -1977,27 +1419,15 @@ async function removeOverrideCheckoutUrl2(_id) {
|
|
|
1977
1419
|
transformPaths2(result.data, [
|
|
1978
1420
|
{
|
|
1979
1421
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
1980
|
-
paths:
|
|
1422
|
+
paths: TRANSFORM_PATHS_32
|
|
1981
1423
|
},
|
|
1982
1424
|
{
|
|
1983
1425
|
transformFn: transformRESTImageToSDKImage,
|
|
1984
|
-
paths:
|
|
1985
|
-
{ path: "checkout.lineItems.media" },
|
|
1986
|
-
{ path: "checkout.lineItems.catalogOverrideFields.image" }
|
|
1987
|
-
]
|
|
1426
|
+
paths: TRANSFORM_PATHS_42
|
|
1988
1427
|
},
|
|
1989
1428
|
{
|
|
1990
1429
|
transformFn: transformRESTAddressToSDKAddress,
|
|
1991
|
-
paths:
|
|
1992
|
-
{ path: "checkout.billingInfo.address" },
|
|
1993
|
-
{ path: "checkout.shippingInfo.shippingDestination.address" },
|
|
1994
|
-
{
|
|
1995
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
1996
|
-
},
|
|
1997
|
-
{
|
|
1998
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
1999
|
-
}
|
|
2000
|
-
]
|
|
1430
|
+
paths: TRANSFORM_PATHS_52
|
|
2001
1431
|
}
|
|
2002
1432
|
])
|
|
2003
1433
|
);
|
|
@@ -2026,15 +1456,11 @@ async function addToCheckout2(_id, options) {
|
|
|
2026
1456
|
[
|
|
2027
1457
|
{
|
|
2028
1458
|
transformFn: transformSDKPageURLV2ToRESTPageURLV2,
|
|
2029
|
-
paths:
|
|
1459
|
+
paths: TRANSFORM_PATHS_82
|
|
2030
1460
|
},
|
|
2031
1461
|
{
|
|
2032
1462
|
transformFn: transformSDKImageToRESTImage,
|
|
2033
|
-
paths:
|
|
2034
|
-
{ path: "lineItems.media" },
|
|
2035
|
-
{ path: "lineItems.catalogOverrideFields.image" },
|
|
2036
|
-
{ path: "customLineItems.media" }
|
|
2037
|
-
]
|
|
1463
|
+
paths: TRANSFORM_PATHS_92
|
|
2038
1464
|
}
|
|
2039
1465
|
]
|
|
2040
1466
|
);
|
|
@@ -2047,27 +1473,15 @@ async function addToCheckout2(_id, options) {
|
|
|
2047
1473
|
transformPaths2(result.data, [
|
|
2048
1474
|
{
|
|
2049
1475
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
2050
|
-
paths:
|
|
1476
|
+
paths: TRANSFORM_PATHS_32
|
|
2051
1477
|
},
|
|
2052
1478
|
{
|
|
2053
1479
|
transformFn: transformRESTImageToSDKImage,
|
|
2054
|
-
paths:
|
|
2055
|
-
{ path: "checkout.lineItems.media" },
|
|
2056
|
-
{ path: "checkout.lineItems.catalogOverrideFields.image" }
|
|
2057
|
-
]
|
|
1480
|
+
paths: TRANSFORM_PATHS_42
|
|
2058
1481
|
},
|
|
2059
1482
|
{
|
|
2060
1483
|
transformFn: transformRESTAddressToSDKAddress,
|
|
2061
|
-
paths:
|
|
2062
|
-
{ path: "checkout.billingInfo.address" },
|
|
2063
|
-
{ path: "checkout.shippingInfo.shippingDestination.address" },
|
|
2064
|
-
{
|
|
2065
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
2066
|
-
},
|
|
2067
|
-
{
|
|
2068
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
2069
|
-
}
|
|
2070
|
-
]
|
|
1484
|
+
paths: TRANSFORM_PATHS_52
|
|
2071
1485
|
}
|
|
2072
1486
|
])
|
|
2073
1487
|
);
|
|
@@ -2104,27 +1518,15 @@ async function removeLineItems2(_id, lineItemIds) {
|
|
|
2104
1518
|
transformPaths2(result.data, [
|
|
2105
1519
|
{
|
|
2106
1520
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
2107
|
-
paths:
|
|
1521
|
+
paths: TRANSFORM_PATHS_32
|
|
2108
1522
|
},
|
|
2109
1523
|
{
|
|
2110
1524
|
transformFn: transformRESTImageToSDKImage,
|
|
2111
|
-
paths:
|
|
2112
|
-
{ path: "checkout.lineItems.media" },
|
|
2113
|
-
{ path: "checkout.lineItems.catalogOverrideFields.image" }
|
|
2114
|
-
]
|
|
1525
|
+
paths: TRANSFORM_PATHS_42
|
|
2115
1526
|
},
|
|
2116
1527
|
{
|
|
2117
1528
|
transformFn: transformRESTAddressToSDKAddress,
|
|
2118
|
-
paths:
|
|
2119
|
-
{ path: "checkout.billingInfo.address" },
|
|
2120
|
-
{ path: "checkout.shippingInfo.shippingDestination.address" },
|
|
2121
|
-
{
|
|
2122
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
2123
|
-
},
|
|
2124
|
-
{
|
|
2125
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
2126
|
-
}
|
|
2127
|
-
]
|
|
1529
|
+
paths: TRANSFORM_PATHS_52
|
|
2128
1530
|
}
|
|
2129
1531
|
])
|
|
2130
1532
|
);
|
|
@@ -2275,27 +1677,15 @@ async function updateLineItemsQuantity2(_id, lineItems) {
|
|
|
2275
1677
|
transformPaths2(result.data, [
|
|
2276
1678
|
{
|
|
2277
1679
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
2278
|
-
paths:
|
|
1680
|
+
paths: TRANSFORM_PATHS_32
|
|
2279
1681
|
},
|
|
2280
1682
|
{
|
|
2281
1683
|
transformFn: transformRESTImageToSDKImage,
|
|
2282
|
-
paths:
|
|
2283
|
-
{ path: "checkout.lineItems.media" },
|
|
2284
|
-
{ path: "checkout.lineItems.catalogOverrideFields.image" }
|
|
2285
|
-
]
|
|
1684
|
+
paths: TRANSFORM_PATHS_42
|
|
2286
1685
|
},
|
|
2287
1686
|
{
|
|
2288
1687
|
transformFn: transformRESTAddressToSDKAddress,
|
|
2289
|
-
paths:
|
|
2290
|
-
{ path: "checkout.billingInfo.address" },
|
|
2291
|
-
{ path: "checkout.shippingInfo.shippingDestination.address" },
|
|
2292
|
-
{
|
|
2293
|
-
path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
2294
|
-
},
|
|
2295
|
-
{
|
|
2296
|
-
path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
2297
|
-
}
|
|
2298
|
-
]
|
|
1688
|
+
paths: TRANSFORM_PATHS_52
|
|
2299
1689
|
}
|
|
2300
1690
|
])
|
|
2301
1691
|
);
|