@wix/auto_sdk_ecom_orders 1.0.67 → 1.0.69
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/{internal/cjs/ecom-v1-order-orders.universal-Dt_KjUcw.d.ts → cjs/ecom-v1-order-orders.universal-Br3Nippn.d.ts} +351 -3211
- package/build/cjs/index.d.ts +11 -59
- package/build/cjs/index.js +310 -1377
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +113 -1127
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +43 -953
- package/build/cjs/meta.js +3 -647
- package/build/cjs/meta.js.map +1 -1
- package/build/{internal/es/ecom-v1-order-orders.universal-Dt_KjUcw.d.mts → es/ecom-v1-order-orders.universal-Br3Nippn.d.mts} +351 -3211
- package/build/es/index.d.mts +11 -59
- package/build/es/index.mjs +308 -1344
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs +112 -1094
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +43 -953
- package/build/es/meta.mjs +2 -635
- package/build/es/meta.mjs.map +1 -1
- package/build/{cjs/ecom-v1-order-orders.universal-D9sENjnN.d.ts → internal/cjs/ecom-v1-order-orders.universal-BAE6DVkA.d.ts} +857 -2526
- package/build/internal/cjs/index.d.ts +11 -165
- package/build/internal/cjs/index.js +310 -1377
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +2 -2
- package/build/internal/cjs/index.typings.js +113 -1127
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +43 -953
- package/build/internal/cjs/meta.js +3 -647
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/{es/ecom-v1-order-orders.universal-D9sENjnN.d.mts → internal/es/ecom-v1-order-orders.universal-BAE6DVkA.d.mts} +857 -2526
- package/build/internal/es/index.d.mts +11 -165
- package/build/internal/es/index.mjs +308 -1344
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +2 -2
- package/build/internal/es/index.typings.mjs +112 -1094
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +43 -953
- package/build/internal/es/meta.mjs +2 -635
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +3 -2
package/build/es/index.mjs
CHANGED
|
@@ -24,139 +24,23 @@ import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transform
|
|
|
24
24
|
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
25
25
|
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
26
26
|
function resolveComWixEcomOrdersV1OrdersUrl(opts) {
|
|
27
|
-
const domainToMappings = {
|
|
28
|
-
_: [
|
|
29
|
-
{
|
|
30
|
-
srcPath: "/_api/ecom-orders",
|
|
31
|
-
destPath: ""
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
srcPath: "/_api/orders",
|
|
35
|
-
destPath: ""
|
|
36
|
-
}
|
|
37
|
-
],
|
|
38
|
-
"manage._base_domain_": [
|
|
39
|
-
{
|
|
40
|
-
srcPath: "/_api/ecom-orders",
|
|
41
|
-
destPath: ""
|
|
42
|
-
}
|
|
43
|
-
],
|
|
44
|
-
"www.wixapis.com": [
|
|
45
|
-
{
|
|
46
|
-
srcPath: "/ecom/v1/bulk/orders",
|
|
47
|
-
destPath: "/v1/bulk/orders"
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
srcPath: "/ecom/v1/orders",
|
|
51
|
-
destPath: "/v1/orders"
|
|
52
|
-
}
|
|
53
|
-
]
|
|
54
|
-
};
|
|
55
|
-
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
56
|
-
}
|
|
57
|
-
function resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl(opts) {
|
|
58
|
-
const domainToMappings = {
|
|
59
|
-
"api._api_base_domain_": [
|
|
60
|
-
{
|
|
61
|
-
srcPath: "/payments-collector",
|
|
62
|
-
destPath: ""
|
|
63
|
-
}
|
|
64
|
-
],
|
|
65
|
-
"www.wixapis.com": [
|
|
66
|
-
{
|
|
67
|
-
srcPath: "/ecom/v1/payments-collector",
|
|
68
|
-
destPath: "/v1/payments-collector"
|
|
69
|
-
}
|
|
70
|
-
],
|
|
71
|
-
"manage._base_domain_": [
|
|
72
|
-
{
|
|
73
|
-
srcPath: "/ecom/v1/payments-collector",
|
|
74
|
-
destPath: "/v1/payments-collector"
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
srcPath: "/_api/v1/payments-collector",
|
|
78
|
-
destPath: "/v1/payments-collector"
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
srcPath: "/v1/payments-collector",
|
|
82
|
-
destPath: "/v1/payments-collector"
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
srcPath: "/_api/payments-collector",
|
|
86
|
-
destPath: "/v1/payments-collector"
|
|
87
|
-
}
|
|
88
|
-
]
|
|
89
|
-
};
|
|
27
|
+
const domainToMappings = {};
|
|
90
28
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
91
29
|
}
|
|
92
30
|
var PACKAGE_NAME = "@wix/auto_sdk_ecom_orders";
|
|
93
|
-
function
|
|
94
|
-
function
|
|
95
|
-
const metadata = {
|
|
96
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
97
|
-
method: "POST",
|
|
98
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.PreparePaymentCollection",
|
|
99
|
-
packageName: PACKAGE_NAME,
|
|
100
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
101
|
-
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/prepare-payment-collection",
|
|
102
|
-
data: payload,
|
|
103
|
-
host
|
|
104
|
-
}),
|
|
105
|
-
data: payload
|
|
106
|
-
};
|
|
107
|
-
return metadata;
|
|
108
|
-
}
|
|
109
|
-
return __preparePaymentCollection;
|
|
110
|
-
}
|
|
111
|
-
function getPaymentCollectabilityStatus(payload) {
|
|
112
|
-
function __getPaymentCollectabilityStatus({ host }) {
|
|
31
|
+
function getOrder(payload) {
|
|
32
|
+
function __getOrder({ host }) {
|
|
113
33
|
const metadata = {
|
|
114
34
|
entityFqdn: "wix.ecom.v1.order",
|
|
115
35
|
method: "GET",
|
|
116
|
-
methodFqn: "com.wix.ecom.orders.
|
|
117
|
-
packageName: PACKAGE_NAME,
|
|
118
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
119
|
-
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/payment-collectability-status",
|
|
120
|
-
data: payload,
|
|
121
|
-
host
|
|
122
|
-
}),
|
|
123
|
-
params: toURLSearchParams(payload)
|
|
124
|
-
};
|
|
125
|
-
return metadata;
|
|
126
|
-
}
|
|
127
|
-
return __getPaymentCollectabilityStatus;
|
|
128
|
-
}
|
|
129
|
-
function recordManuallyCollectedPayment(payload) {
|
|
130
|
-
function __recordManuallyCollectedPayment({ host }) {
|
|
131
|
-
const metadata = {
|
|
132
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
133
|
-
method: "POST",
|
|
134
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.RecordManuallyCollectedPayment",
|
|
135
|
-
packageName: PACKAGE_NAME,
|
|
136
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
137
|
-
protoPath: "/v1/payments-collector/orders/{orderId}/manual-payment",
|
|
138
|
-
data: payload,
|
|
139
|
-
host
|
|
140
|
-
}),
|
|
141
|
-
data: payload
|
|
142
|
-
};
|
|
143
|
-
return metadata;
|
|
144
|
-
}
|
|
145
|
-
return __recordManuallyCollectedPayment;
|
|
146
|
-
}
|
|
147
|
-
function paymentCollectionMarkOrderAsPaid(payload) {
|
|
148
|
-
function __paymentCollectionMarkOrderAsPaid({ host }) {
|
|
149
|
-
const metadata = {
|
|
150
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
151
|
-
method: "POST",
|
|
152
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.MarkOrderAsPaid",
|
|
36
|
+
methodFqn: "com.wix.ecom.orders.v1.Orders.GetOrder",
|
|
153
37
|
packageName: PACKAGE_NAME,
|
|
154
|
-
url:
|
|
155
|
-
protoPath: "/v1/
|
|
38
|
+
url: resolveComWixEcomOrdersV1OrdersUrl({
|
|
39
|
+
protoPath: "/v1/orders/{id}",
|
|
156
40
|
data: payload,
|
|
157
41
|
host
|
|
158
42
|
}),
|
|
159
|
-
|
|
43
|
+
params: toURLSearchParams(payload),
|
|
160
44
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
161
45
|
{
|
|
162
46
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
@@ -203,17 +87,17 @@ function paymentCollectionMarkOrderAsPaid(payload) {
|
|
|
203
87
|
};
|
|
204
88
|
return metadata;
|
|
205
89
|
}
|
|
206
|
-
return
|
|
90
|
+
return __getOrder;
|
|
207
91
|
}
|
|
208
|
-
function
|
|
209
|
-
function
|
|
92
|
+
function searchOrders(payload) {
|
|
93
|
+
function __searchOrders({ host }) {
|
|
210
94
|
const metadata = {
|
|
211
95
|
entityFqdn: "wix.ecom.v1.order",
|
|
212
96
|
method: "POST",
|
|
213
|
-
methodFqn: "com.wix.ecom.orders.
|
|
97
|
+
methodFqn: "com.wix.ecom.orders.v1.Orders.SearchOrders",
|
|
214
98
|
packageName: PACKAGE_NAME,
|
|
215
|
-
url:
|
|
216
|
-
protoPath: "/v1/
|
|
99
|
+
url: resolveComWixEcomOrdersV1OrdersUrl({
|
|
100
|
+
protoPath: "/v1/orders/search",
|
|
217
101
|
data: payload,
|
|
218
102
|
host
|
|
219
103
|
}),
|
|
@@ -222,459 +106,153 @@ function paymentCollectionBulkMarkOrdersAsPaid(payload) {
|
|
|
222
106
|
{
|
|
223
107
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
224
108
|
paths: [
|
|
225
|
-
{ path: "
|
|
226
|
-
{ path: "
|
|
227
|
-
{ path: "
|
|
228
|
-
{ path: "
|
|
229
|
-
{ path: "
|
|
230
|
-
{
|
|
231
|
-
path: "results.item.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
232
|
-
},
|
|
233
|
-
{ path: "results.item.shippingInfo.logistics.deliverByDate" },
|
|
234
|
-
{
|
|
235
|
-
path: "results.item.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
236
|
-
},
|
|
109
|
+
{ path: "orders.createdDate" },
|
|
110
|
+
{ path: "orders.updatedDate" },
|
|
111
|
+
{ path: "orders.purchasedDate" },
|
|
112
|
+
{ path: "orders.lineItems.image.urlExpirationDate" },
|
|
113
|
+
{ path: "orders.lineItems.digitalFile.expirationDate" },
|
|
237
114
|
{
|
|
238
|
-
path: "
|
|
115
|
+
path: "orders.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
239
116
|
},
|
|
240
|
-
{ path: "
|
|
117
|
+
{ path: "orders.shippingInfo.logistics.deliverByDate" },
|
|
118
|
+
{ path: "orders.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
119
|
+
{ path: "orders.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
120
|
+
{ path: "orders.activities.createdDate" }
|
|
241
121
|
]
|
|
242
122
|
},
|
|
243
123
|
{
|
|
244
124
|
transformFn: transformRESTFloatToSDKFloat,
|
|
245
125
|
paths: [
|
|
246
|
-
{ path: "
|
|
247
|
-
{ path: "
|
|
248
|
-
{ path: "
|
|
249
|
-
{ path: "
|
|
250
|
-
{ path: "
|
|
126
|
+
{ path: "orders.lineItems.image.focalPoint.x" },
|
|
127
|
+
{ path: "orders.lineItems.image.focalPoint.y" },
|
|
128
|
+
{ path: "orders.lineItems.physicalProperties.weight" },
|
|
129
|
+
{ path: "orders.billingInfo.address.geocode.latitude" },
|
|
130
|
+
{ path: "orders.billingInfo.address.geocode.longitude" },
|
|
251
131
|
{
|
|
252
|
-
path: "
|
|
132
|
+
path: "orders.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
253
133
|
},
|
|
254
134
|
{
|
|
255
|
-
path: "
|
|
135
|
+
path: "orders.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
256
136
|
},
|
|
257
137
|
{
|
|
258
|
-
path: "
|
|
138
|
+
path: "orders.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
259
139
|
},
|
|
260
140
|
{
|
|
261
|
-
path: "
|
|
141
|
+
path: "orders.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
262
142
|
},
|
|
263
|
-
{ path: "
|
|
264
|
-
{ path: "
|
|
143
|
+
{ path: "orders.recipientInfo.address.geocode.latitude" },
|
|
144
|
+
{ path: "orders.recipientInfo.address.geocode.longitude" }
|
|
265
145
|
]
|
|
266
146
|
}
|
|
267
147
|
])
|
|
268
148
|
};
|
|
269
149
|
return metadata;
|
|
270
150
|
}
|
|
271
|
-
return
|
|
272
|
-
}
|
|
273
|
-
function getRefundabilityStatus(payload) {
|
|
274
|
-
function __getRefundabilityStatus({ host }) {
|
|
275
|
-
const metadata = {
|
|
276
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
277
|
-
method: "GET",
|
|
278
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.GetRefundabilityStatus",
|
|
279
|
-
packageName: PACKAGE_NAME,
|
|
280
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
281
|
-
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/refundability",
|
|
282
|
-
data: payload,
|
|
283
|
-
host
|
|
284
|
-
}),
|
|
285
|
-
params: toURLSearchParams(payload)
|
|
286
|
-
};
|
|
287
|
-
return metadata;
|
|
288
|
-
}
|
|
289
|
-
return __getRefundabilityStatus;
|
|
290
|
-
}
|
|
291
|
-
function paymentCollectionCreatePaymentGatewayOrder(payload) {
|
|
292
|
-
function __paymentCollectionCreatePaymentGatewayOrder({ host }) {
|
|
293
|
-
const metadata = {
|
|
294
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
295
|
-
method: "POST",
|
|
296
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.CreatePaymentGatewayOrder",
|
|
297
|
-
packageName: PACKAGE_NAME,
|
|
298
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
299
|
-
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/create-payment-gateway-order",
|
|
300
|
-
data: payload,
|
|
301
|
-
host
|
|
302
|
-
}),
|
|
303
|
-
data: payload
|
|
304
|
-
};
|
|
305
|
-
return metadata;
|
|
306
|
-
}
|
|
307
|
-
return __paymentCollectionCreatePaymentGatewayOrder;
|
|
151
|
+
return __searchOrders;
|
|
308
152
|
}
|
|
309
|
-
function
|
|
310
|
-
function
|
|
153
|
+
function createOrder(payload) {
|
|
154
|
+
function __createOrder({ host }) {
|
|
311
155
|
const serializedData = transformPaths(payload, [
|
|
312
156
|
{
|
|
313
157
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
314
|
-
paths: [
|
|
158
|
+
paths: [
|
|
159
|
+
{ path: "order.createdDate" },
|
|
160
|
+
{ path: "order.updatedDate" },
|
|
161
|
+
{ path: "order.purchasedDate" },
|
|
162
|
+
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
163
|
+
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
164
|
+
{
|
|
165
|
+
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
166
|
+
},
|
|
167
|
+
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
168
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
169
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
170
|
+
{ path: "order.activities.createdDate" }
|
|
171
|
+
]
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
175
|
+
paths: [
|
|
176
|
+
{ path: "order.lineItems.image.focalPoint.x" },
|
|
177
|
+
{ path: "order.lineItems.image.focalPoint.y" },
|
|
178
|
+
{ path: "order.lineItems.physicalProperties.weight" },
|
|
179
|
+
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
180
|
+
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
181
|
+
{
|
|
182
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
192
|
+
},
|
|
193
|
+
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
194
|
+
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
195
|
+
]
|
|
315
196
|
}
|
|
316
197
|
]);
|
|
317
198
|
const metadata = {
|
|
318
199
|
entityFqdn: "wix.ecom.v1.order",
|
|
319
200
|
method: "POST",
|
|
320
|
-
methodFqn: "com.wix.ecom.orders.
|
|
201
|
+
methodFqn: "com.wix.ecom.orders.v1.Orders.CreateOrder",
|
|
321
202
|
packageName: PACKAGE_NAME,
|
|
322
|
-
url:
|
|
323
|
-
protoPath: "/v1/
|
|
203
|
+
url: resolveComWixEcomOrdersV1OrdersUrl({
|
|
204
|
+
protoPath: "/v1/orders",
|
|
324
205
|
data: serializedData,
|
|
325
206
|
host
|
|
326
207
|
}),
|
|
327
|
-
data: serializedData
|
|
328
|
-
};
|
|
329
|
-
return metadata;
|
|
330
|
-
}
|
|
331
|
-
return __chargeMemberships;
|
|
332
|
-
}
|
|
333
|
-
function triggerRefund(payload) {
|
|
334
|
-
function __triggerRefund({ host }) {
|
|
335
|
-
const metadata = {
|
|
336
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
337
|
-
method: "POST",
|
|
338
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.TriggerRefund",
|
|
339
|
-
packageName: PACKAGE_NAME,
|
|
340
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
341
|
-
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/trigger-refund",
|
|
342
|
-
data: payload,
|
|
343
|
-
host
|
|
344
|
-
}),
|
|
345
|
-
data: payload,
|
|
208
|
+
data: serializedData,
|
|
346
209
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
347
210
|
{
|
|
348
211
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
349
212
|
paths: [
|
|
350
|
-
{ path: "
|
|
351
|
-
{ path: "
|
|
352
|
-
{
|
|
353
|
-
|
|
354
|
-
},
|
|
355
|
-
{
|
|
356
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
357
|
-
},
|
|
358
|
-
{
|
|
359
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
360
|
-
},
|
|
213
|
+
{ path: "order.createdDate" },
|
|
214
|
+
{ path: "order.updatedDate" },
|
|
215
|
+
{ path: "order.purchasedDate" },
|
|
216
|
+
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
217
|
+
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
361
218
|
{
|
|
362
|
-
path: "
|
|
219
|
+
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
363
220
|
},
|
|
364
|
-
{ path: "
|
|
221
|
+
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
222
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
223
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
224
|
+
{ path: "order.activities.createdDate" }
|
|
365
225
|
]
|
|
366
|
-
}
|
|
367
|
-
])
|
|
368
|
-
};
|
|
369
|
-
return metadata;
|
|
370
|
-
}
|
|
371
|
-
return __triggerRefund;
|
|
372
|
-
}
|
|
373
|
-
function voidAuthorizedPayments(payload) {
|
|
374
|
-
function __voidAuthorizedPayments({ host }) {
|
|
375
|
-
const metadata = {
|
|
376
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
377
|
-
method: "POST",
|
|
378
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.VoidAuthorizedPayments",
|
|
379
|
-
packageName: PACKAGE_NAME,
|
|
380
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
381
|
-
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/void-authorized-payments",
|
|
382
|
-
data: payload,
|
|
383
|
-
host
|
|
384
|
-
}),
|
|
385
|
-
data: payload,
|
|
386
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
226
|
+
},
|
|
387
227
|
{
|
|
388
|
-
transformFn:
|
|
228
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
389
229
|
paths: [
|
|
390
|
-
{ path: "
|
|
391
|
-
{ path: "
|
|
230
|
+
{ path: "order.lineItems.image.focalPoint.x" },
|
|
231
|
+
{ path: "order.lineItems.image.focalPoint.y" },
|
|
232
|
+
{ path: "order.lineItems.physicalProperties.weight" },
|
|
233
|
+
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
234
|
+
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
392
235
|
{
|
|
393
|
-
path: "
|
|
236
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
394
237
|
},
|
|
395
238
|
{
|
|
396
|
-
path: "
|
|
239
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
397
240
|
},
|
|
398
241
|
{
|
|
399
|
-
path: "
|
|
242
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
400
243
|
},
|
|
401
244
|
{
|
|
402
|
-
path: "
|
|
245
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
403
246
|
},
|
|
404
|
-
{ path: "
|
|
247
|
+
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
248
|
+
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
405
249
|
]
|
|
406
250
|
}
|
|
407
251
|
])
|
|
408
252
|
};
|
|
409
253
|
return metadata;
|
|
410
254
|
}
|
|
411
|
-
return
|
|
412
|
-
}
|
|
413
|
-
function captureAuthorizedPayments(payload) {
|
|
414
|
-
function __captureAuthorizedPayments({ host }) {
|
|
415
|
-
const metadata = {
|
|
416
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
417
|
-
method: "POST",
|
|
418
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.CaptureAuthorizedPayments",
|
|
419
|
-
packageName: PACKAGE_NAME,
|
|
420
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
421
|
-
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/capture-authorized-payments",
|
|
422
|
-
data: payload,
|
|
423
|
-
host
|
|
424
|
-
}),
|
|
425
|
-
data: payload,
|
|
426
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
427
|
-
{
|
|
428
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
429
|
-
paths: [
|
|
430
|
-
{ path: "orderTransactions.payments.createdDate" },
|
|
431
|
-
{ path: "orderTransactions.payments.updatedDate" },
|
|
432
|
-
{
|
|
433
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
|
|
434
|
-
},
|
|
435
|
-
{
|
|
436
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
437
|
-
},
|
|
438
|
-
{
|
|
439
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
440
|
-
},
|
|
441
|
-
{
|
|
442
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
443
|
-
},
|
|
444
|
-
{ path: "orderTransactions.refunds.createdDate" }
|
|
445
|
-
]
|
|
446
|
-
}
|
|
447
|
-
])
|
|
448
|
-
};
|
|
449
|
-
return metadata;
|
|
450
|
-
}
|
|
451
|
-
return __captureAuthorizedPayments;
|
|
452
|
-
}
|
|
453
|
-
function getOrder(payload) {
|
|
454
|
-
function __getOrder({ host }) {
|
|
455
|
-
const metadata = {
|
|
456
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
457
|
-
method: "GET",
|
|
458
|
-
methodFqn: "com.wix.ecom.orders.v1.Orders.GetOrder",
|
|
459
|
-
packageName: PACKAGE_NAME,
|
|
460
|
-
url: resolveComWixEcomOrdersV1OrdersUrl({
|
|
461
|
-
protoPath: "/v1/orders/{id}",
|
|
462
|
-
data: payload,
|
|
463
|
-
host
|
|
464
|
-
}),
|
|
465
|
-
params: toURLSearchParams(payload),
|
|
466
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
467
|
-
{
|
|
468
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
469
|
-
paths: [
|
|
470
|
-
{ path: "order.createdDate" },
|
|
471
|
-
{ path: "order.updatedDate" },
|
|
472
|
-
{ path: "order.purchasedDate" },
|
|
473
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
474
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
475
|
-
{
|
|
476
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
477
|
-
},
|
|
478
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
479
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
480
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
481
|
-
{ path: "order.activities.createdDate" }
|
|
482
|
-
]
|
|
483
|
-
},
|
|
484
|
-
{
|
|
485
|
-
transformFn: transformRESTFloatToSDKFloat,
|
|
486
|
-
paths: [
|
|
487
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
488
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
489
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
490
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
491
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
492
|
-
{
|
|
493
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
494
|
-
},
|
|
495
|
-
{
|
|
496
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
497
|
-
},
|
|
498
|
-
{
|
|
499
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
500
|
-
},
|
|
501
|
-
{
|
|
502
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
503
|
-
},
|
|
504
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
505
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
506
|
-
]
|
|
507
|
-
}
|
|
508
|
-
])
|
|
509
|
-
};
|
|
510
|
-
return metadata;
|
|
511
|
-
}
|
|
512
|
-
return __getOrder;
|
|
513
|
-
}
|
|
514
|
-
function searchOrders(payload) {
|
|
515
|
-
function __searchOrders({ host }) {
|
|
516
|
-
const metadata = {
|
|
517
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
518
|
-
method: "POST",
|
|
519
|
-
methodFqn: "com.wix.ecom.orders.v1.Orders.SearchOrders",
|
|
520
|
-
packageName: PACKAGE_NAME,
|
|
521
|
-
url: resolveComWixEcomOrdersV1OrdersUrl({
|
|
522
|
-
protoPath: "/v1/orders/search",
|
|
523
|
-
data: payload,
|
|
524
|
-
host
|
|
525
|
-
}),
|
|
526
|
-
data: payload,
|
|
527
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
528
|
-
{
|
|
529
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
530
|
-
paths: [
|
|
531
|
-
{ path: "orders.createdDate" },
|
|
532
|
-
{ path: "orders.updatedDate" },
|
|
533
|
-
{ path: "orders.purchasedDate" },
|
|
534
|
-
{ path: "orders.lineItems.image.urlExpirationDate" },
|
|
535
|
-
{ path: "orders.lineItems.digitalFile.expirationDate" },
|
|
536
|
-
{
|
|
537
|
-
path: "orders.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
538
|
-
},
|
|
539
|
-
{ path: "orders.shippingInfo.logistics.deliverByDate" },
|
|
540
|
-
{ path: "orders.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
541
|
-
{ path: "orders.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
542
|
-
{ path: "orders.activities.createdDate" }
|
|
543
|
-
]
|
|
544
|
-
},
|
|
545
|
-
{
|
|
546
|
-
transformFn: transformRESTFloatToSDKFloat,
|
|
547
|
-
paths: [
|
|
548
|
-
{ path: "orders.lineItems.image.focalPoint.x" },
|
|
549
|
-
{ path: "orders.lineItems.image.focalPoint.y" },
|
|
550
|
-
{ path: "orders.lineItems.physicalProperties.weight" },
|
|
551
|
-
{ path: "orders.billingInfo.address.geocode.latitude" },
|
|
552
|
-
{ path: "orders.billingInfo.address.geocode.longitude" },
|
|
553
|
-
{
|
|
554
|
-
path: "orders.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
555
|
-
},
|
|
556
|
-
{
|
|
557
|
-
path: "orders.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
558
|
-
},
|
|
559
|
-
{
|
|
560
|
-
path: "orders.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
561
|
-
},
|
|
562
|
-
{
|
|
563
|
-
path: "orders.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
564
|
-
},
|
|
565
|
-
{ path: "orders.recipientInfo.address.geocode.latitude" },
|
|
566
|
-
{ path: "orders.recipientInfo.address.geocode.longitude" }
|
|
567
|
-
]
|
|
568
|
-
}
|
|
569
|
-
])
|
|
570
|
-
};
|
|
571
|
-
return metadata;
|
|
572
|
-
}
|
|
573
|
-
return __searchOrders;
|
|
574
|
-
}
|
|
575
|
-
function createOrder(payload) {
|
|
576
|
-
function __createOrder({ host }) {
|
|
577
|
-
const serializedData = transformPaths(payload, [
|
|
578
|
-
{
|
|
579
|
-
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
580
|
-
paths: [
|
|
581
|
-
{ path: "order.createdDate" },
|
|
582
|
-
{ path: "order.updatedDate" },
|
|
583
|
-
{ path: "order.purchasedDate" },
|
|
584
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
585
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
586
|
-
{
|
|
587
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
588
|
-
},
|
|
589
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
590
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
591
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
592
|
-
{ path: "order.activities.createdDate" }
|
|
593
|
-
]
|
|
594
|
-
},
|
|
595
|
-
{
|
|
596
|
-
transformFn: transformSDKFloatToRESTFloat,
|
|
597
|
-
paths: [
|
|
598
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
599
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
600
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
601
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
602
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
603
|
-
{
|
|
604
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
605
|
-
},
|
|
606
|
-
{
|
|
607
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
608
|
-
},
|
|
609
|
-
{
|
|
610
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
611
|
-
},
|
|
612
|
-
{
|
|
613
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
614
|
-
},
|
|
615
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
616
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
617
|
-
]
|
|
618
|
-
}
|
|
619
|
-
]);
|
|
620
|
-
const metadata = {
|
|
621
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
622
|
-
method: "POST",
|
|
623
|
-
methodFqn: "com.wix.ecom.orders.v1.Orders.CreateOrder",
|
|
624
|
-
packageName: PACKAGE_NAME,
|
|
625
|
-
url: resolveComWixEcomOrdersV1OrdersUrl({
|
|
626
|
-
protoPath: "/v1/orders",
|
|
627
|
-
data: serializedData,
|
|
628
|
-
host
|
|
629
|
-
}),
|
|
630
|
-
data: serializedData,
|
|
631
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
632
|
-
{
|
|
633
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
634
|
-
paths: [
|
|
635
|
-
{ path: "order.createdDate" },
|
|
636
|
-
{ path: "order.updatedDate" },
|
|
637
|
-
{ path: "order.purchasedDate" },
|
|
638
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
639
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
640
|
-
{
|
|
641
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
642
|
-
},
|
|
643
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
644
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
645
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
646
|
-
{ path: "order.activities.createdDate" }
|
|
647
|
-
]
|
|
648
|
-
},
|
|
649
|
-
{
|
|
650
|
-
transformFn: transformRESTFloatToSDKFloat,
|
|
651
|
-
paths: [
|
|
652
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
653
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
654
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
655
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
656
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
657
|
-
{
|
|
658
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
659
|
-
},
|
|
660
|
-
{
|
|
661
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
662
|
-
},
|
|
663
|
-
{
|
|
664
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
665
|
-
},
|
|
666
|
-
{
|
|
667
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
668
|
-
},
|
|
669
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
670
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
671
|
-
]
|
|
672
|
-
}
|
|
673
|
-
])
|
|
674
|
-
};
|
|
675
|
-
return metadata;
|
|
676
|
-
}
|
|
677
|
-
return __createOrder;
|
|
255
|
+
return __createOrder;
|
|
678
256
|
}
|
|
679
257
|
function updateOrder(payload) {
|
|
680
258
|
function __updateOrder({ host }) {
|
|
@@ -1539,685 +1117,157 @@ var DiscountReason = /* @__PURE__ */ ((DiscountReason2) => {
|
|
|
1539
1117
|
return DiscountReason2;
|
|
1540
1118
|
})(DiscountReason || {});
|
|
1541
1119
|
var LineItemQuantityChangeType = /* @__PURE__ */ ((LineItemQuantityChangeType2) => {
|
|
1542
|
-
LineItemQuantityChangeType2["QUANTITY_INCREASED"] = "QUANTITY_INCREASED";
|
|
1543
|
-
LineItemQuantityChangeType2["QUANTITY_DECREASED"] = "QUANTITY_DECREASED";
|
|
1544
|
-
return LineItemQuantityChangeType2;
|
|
1545
|
-
})(LineItemQuantityChangeType || {});
|
|
1546
|
-
var ActivityType = /* @__PURE__ */ ((ActivityType2) => {
|
|
1547
|
-
ActivityType2["ORDER_REFUNDED"] = "ORDER_REFUNDED";
|
|
1548
|
-
ActivityType2["ORDER_PLACED"] = "ORDER_PLACED";
|
|
1549
|
-
ActivityType2["ORDER_PAID"] = "ORDER_PAID";
|
|
1550
|
-
ActivityType2["ORDER_FULFILLED"] = "ORDER_FULFILLED";
|
|
1551
|
-
ActivityType2["ORDER_NOT_FULFILLED"] = "ORDER_NOT_FULFILLED";
|
|
1552
|
-
ActivityType2["ORDER_CANCELED"] = "ORDER_CANCELED";
|
|
1553
|
-
ActivityType2["DOWNLOAD_LINK_SENT"] = "DOWNLOAD_LINK_SENT";
|
|
1554
|
-
ActivityType2["TRACKING_NUMBER_ADDED"] = "TRACKING_NUMBER_ADDED";
|
|
1555
|
-
ActivityType2["TRACKING_NUMBER_EDITED"] = "TRACKING_NUMBER_EDITED";
|
|
1556
|
-
ActivityType2["TRACKING_LINK_ADDED"] = "TRACKING_LINK_ADDED";
|
|
1557
|
-
ActivityType2["SHIPPING_CONFIRMATION_EMAIL_SENT"] = "SHIPPING_CONFIRMATION_EMAIL_SENT";
|
|
1558
|
-
ActivityType2["INVOICE_ADDED"] = "INVOICE_ADDED";
|
|
1559
|
-
ActivityType2["INVOICE_REMOVED"] = "INVOICE_REMOVED";
|
|
1560
|
-
ActivityType2["INVOICE_SENT"] = "INVOICE_SENT";
|
|
1561
|
-
ActivityType2["FULFILLER_EMAIL_SENT"] = "FULFILLER_EMAIL_SENT";
|
|
1562
|
-
ActivityType2["SHIPPING_ADDRESS_EDITED"] = "SHIPPING_ADDRESS_EDITED";
|
|
1563
|
-
ActivityType2["EMAIL_EDITED"] = "EMAIL_EDITED";
|
|
1564
|
-
ActivityType2["PICKUP_READY_EMAIL_SENT"] = "PICKUP_READY_EMAIL_SENT";
|
|
1565
|
-
ActivityType2["CUSTOM_ACTIVITY"] = "CUSTOM_ACTIVITY";
|
|
1566
|
-
ActivityType2["MERCHANT_COMMENT"] = "MERCHANT_COMMENT";
|
|
1567
|
-
ActivityType2["ORDER_CREATED_FROM_EXCHANGE"] = "ORDER_CREATED_FROM_EXCHANGE";
|
|
1568
|
-
ActivityType2["NEW_EXCHANGE_ORDER_CREATED"] = "NEW_EXCHANGE_ORDER_CREATED";
|
|
1569
|
-
ActivityType2["ORDER_PARTIALLY_PAID"] = "ORDER_PARTIALLY_PAID";
|
|
1570
|
-
ActivityType2["DRAFT_ORDER_CHANGES_APPLIED"] = "DRAFT_ORDER_CHANGES_APPLIED";
|
|
1571
|
-
ActivityType2["SAVED_PAYMENT_METHOD"] = "SAVED_PAYMENT_METHOD";
|
|
1572
|
-
ActivityType2["PAYMENT_PENDING"] = "PAYMENT_PENDING";
|
|
1573
|
-
ActivityType2["PAYMENT_CANCELED"] = "PAYMENT_CANCELED";
|
|
1574
|
-
ActivityType2["PAYMENT_DECLINED"] = "PAYMENT_DECLINED";
|
|
1575
|
-
ActivityType2["ORDER_PENDING"] = "ORDER_PENDING";
|
|
1576
|
-
ActivityType2["ORDER_REJECTED"] = "ORDER_REJECTED";
|
|
1577
|
-
return ActivityType2;
|
|
1578
|
-
})(ActivityType || {});
|
|
1579
|
-
var AttributionSource = /* @__PURE__ */ ((AttributionSource2) => {
|
|
1580
|
-
AttributionSource2["UNSPECIFIED"] = "UNSPECIFIED";
|
|
1581
|
-
AttributionSource2["FACEBOOK_ADS"] = "FACEBOOK_ADS";
|
|
1582
|
-
return AttributionSource2;
|
|
1583
|
-
})(AttributionSource || {});
|
|
1584
|
-
var ChannelType = /* @__PURE__ */ ((ChannelType2) => {
|
|
1585
|
-
ChannelType2["UNSPECIFIED"] = "UNSPECIFIED";
|
|
1586
|
-
ChannelType2["WEB"] = "WEB";
|
|
1587
|
-
ChannelType2["POS"] = "POS";
|
|
1588
|
-
ChannelType2["EBAY"] = "EBAY";
|
|
1589
|
-
ChannelType2["AMAZON"] = "AMAZON";
|
|
1590
|
-
ChannelType2["OTHER_PLATFORM"] = "OTHER_PLATFORM";
|
|
1591
|
-
ChannelType2["WIX_APP_STORE"] = "WIX_APP_STORE";
|
|
1592
|
-
ChannelType2["WIX_INVOICES"] = "WIX_INVOICES";
|
|
1593
|
-
ChannelType2["BACKOFFICE_MERCHANT"] = "BACKOFFICE_MERCHANT";
|
|
1594
|
-
ChannelType2["WISH"] = "WISH";
|
|
1595
|
-
ChannelType2["CLASS_PASS"] = "CLASS_PASS";
|
|
1596
|
-
ChannelType2["GLOBAL_E"] = "GLOBAL_E";
|
|
1597
|
-
ChannelType2["FACEBOOK"] = "FACEBOOK";
|
|
1598
|
-
ChannelType2["ETSY"] = "ETSY";
|
|
1599
|
-
ChannelType2["TIKTOK"] = "TIKTOK";
|
|
1600
|
-
ChannelType2["FAIRE_COM"] = "FAIRE_COM";
|
|
1601
|
-
return ChannelType2;
|
|
1602
|
-
})(ChannelType || {});
|
|
1603
|
-
var
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
return Reason2;
|
|
1694
|
-
})(Reason || {});
|
|
1695
|
-
var ActionType = /* @__PURE__ */ ((ActionType2) => {
|
|
1696
|
-
ActionType2["UNKNOWN_ACTION_TYPE"] = "UNKNOWN_ACTION_TYPE";
|
|
1697
|
-
ActionType2["VOID"] = "VOID";
|
|
1698
|
-
ActionType2["CAPTURE"] = "CAPTURE";
|
|
1699
|
-
return ActionType2;
|
|
1700
|
-
})(ActionType || {});
|
|
1701
|
-
var ChargebackStatus = /* @__PURE__ */ ((ChargebackStatus2) => {
|
|
1702
|
-
ChargebackStatus2["UNSPECIFIED"] = "UNSPECIFIED";
|
|
1703
|
-
ChargebackStatus2["APPROVED"] = "APPROVED";
|
|
1704
|
-
ChargebackStatus2["REVERSED"] = "REVERSED";
|
|
1705
|
-
return ChargebackStatus2;
|
|
1706
|
-
})(ChargebackStatus || {});
|
|
1707
|
-
var MembershipPaymentStatus = /* @__PURE__ */ ((MembershipPaymentStatus2) => {
|
|
1708
|
-
MembershipPaymentStatus2["CHARGED"] = "CHARGED";
|
|
1709
|
-
MembershipPaymentStatus2["CHARGE_FAILED"] = "CHARGE_FAILED";
|
|
1710
|
-
return MembershipPaymentStatus2;
|
|
1711
|
-
})(MembershipPaymentStatus || {});
|
|
1712
|
-
var RefundStatus = /* @__PURE__ */ ((RefundStatus2) => {
|
|
1713
|
-
RefundStatus2["PENDING"] = "PENDING";
|
|
1714
|
-
RefundStatus2["SUCCEEDED"] = "SUCCEEDED";
|
|
1715
|
-
RefundStatus2["FAILED"] = "FAILED";
|
|
1716
|
-
RefundStatus2["SCHEDULED"] = "SCHEDULED";
|
|
1717
|
-
RefundStatus2["STARTED"] = "STARTED";
|
|
1718
|
-
return RefundStatus2;
|
|
1719
|
-
})(RefundStatus || {});
|
|
1720
|
-
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
1721
|
-
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
1722
|
-
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
1723
|
-
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
1724
|
-
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
1725
|
-
WebhookIdentityType2["APP"] = "APP";
|
|
1726
|
-
return WebhookIdentityType2;
|
|
1727
|
-
})(WebhookIdentityType || {});
|
|
1728
|
-
var TextDetection = /* @__PURE__ */ ((TextDetection2) => {
|
|
1729
|
-
TextDetection2["UNKNOWN_TEXT_DETECTION"] = "UNKNOWN_TEXT_DETECTION";
|
|
1730
|
-
TextDetection2["CONTAINS_TEXT"] = "CONTAINS_TEXT";
|
|
1731
|
-
TextDetection2["NO_TEXT"] = "NO_TEXT";
|
|
1732
|
-
return TextDetection2;
|
|
1733
|
-
})(TextDetection || {});
|
|
1734
|
-
var AnimationDetection = /* @__PURE__ */ ((AnimationDetection2) => {
|
|
1735
|
-
AnimationDetection2["UNKNOWN_ANIMATION_DETECTION"] = "UNKNOWN_ANIMATION_DETECTION";
|
|
1736
|
-
AnimationDetection2["CONTAINS_ANIMATION"] = "CONTAINS_ANIMATION";
|
|
1737
|
-
AnimationDetection2["NO_ANIMATION"] = "NO_ANIMATION";
|
|
1738
|
-
return AnimationDetection2;
|
|
1739
|
-
})(AnimationDetection || {});
|
|
1740
|
-
var PreviewEmailType = /* @__PURE__ */ ((PreviewEmailType2) => {
|
|
1741
|
-
PreviewEmailType2["ORDER_PLACED"] = "ORDER_PLACED";
|
|
1742
|
-
PreviewEmailType2["DOWNLOAD_LINKS"] = "DOWNLOAD_LINKS";
|
|
1743
|
-
PreviewEmailType2["ORDER_SHIPPED"] = "ORDER_SHIPPED";
|
|
1744
|
-
PreviewEmailType2["ORDER_READY_FOR_PICKUP"] = "ORDER_READY_FOR_PICKUP";
|
|
1745
|
-
return PreviewEmailType2;
|
|
1746
|
-
})(PreviewEmailType || {});
|
|
1747
|
-
var State = /* @__PURE__ */ ((State2) => {
|
|
1748
|
-
State2["UNKNOWN"] = "UNKNOWN";
|
|
1749
|
-
State2["ENABLED"] = "ENABLED";
|
|
1750
|
-
State2["DISABLED"] = "DISABLED";
|
|
1751
|
-
State2["TEMPLATE"] = "TEMPLATE";
|
|
1752
|
-
State2["PENDING"] = "PENDING";
|
|
1753
|
-
return State2;
|
|
1754
|
-
})(State || {});
|
|
1755
|
-
var Namespace = /* @__PURE__ */ ((Namespace2) => {
|
|
1756
|
-
Namespace2["UNKNOWN_NAMESPACE"] = "UNKNOWN_NAMESPACE";
|
|
1757
|
-
Namespace2["WIX"] = "WIX";
|
|
1758
|
-
Namespace2["SHOUT_OUT"] = "SHOUT_OUT";
|
|
1759
|
-
Namespace2["ALBUMS"] = "ALBUMS";
|
|
1760
|
-
Namespace2["WIX_STORES_TEST_DRIVE"] = "WIX_STORES_TEST_DRIVE";
|
|
1761
|
-
Namespace2["HOTELS"] = "HOTELS";
|
|
1762
|
-
Namespace2["CLUBS"] = "CLUBS";
|
|
1763
|
-
Namespace2["ONBOARDING_DRAFT"] = "ONBOARDING_DRAFT";
|
|
1764
|
-
Namespace2["DEV_SITE"] = "DEV_SITE";
|
|
1765
|
-
Namespace2["LOGOS"] = "LOGOS";
|
|
1766
|
-
Namespace2["VIDEO_MAKER"] = "VIDEO_MAKER";
|
|
1767
|
-
Namespace2["PARTNER_DASHBOARD"] = "PARTNER_DASHBOARD";
|
|
1768
|
-
Namespace2["DEV_CENTER_COMPANY"] = "DEV_CENTER_COMPANY";
|
|
1769
|
-
Namespace2["HTML_DRAFT"] = "HTML_DRAFT";
|
|
1770
|
-
Namespace2["SITELESS_BUSINESS"] = "SITELESS_BUSINESS";
|
|
1771
|
-
Namespace2["CREATOR_ECONOMY"] = "CREATOR_ECONOMY";
|
|
1772
|
-
Namespace2["DASHBOARD_FIRST"] = "DASHBOARD_FIRST";
|
|
1773
|
-
Namespace2["ANYWHERE"] = "ANYWHERE";
|
|
1774
|
-
Namespace2["HEADLESS"] = "HEADLESS";
|
|
1775
|
-
Namespace2["ACCOUNT_MASTER_CMS"] = "ACCOUNT_MASTER_CMS";
|
|
1776
|
-
Namespace2["RISE"] = "RISE";
|
|
1777
|
-
Namespace2["BRANDED_FIRST"] = "BRANDED_FIRST";
|
|
1778
|
-
Namespace2["NOWNIA"] = "NOWNIA";
|
|
1779
|
-
Namespace2["UGC_TEMPLATE"] = "UGC_TEMPLATE";
|
|
1780
|
-
Namespace2["CODUX"] = "CODUX";
|
|
1781
|
-
Namespace2["MEDIA_DESIGN_CREATOR"] = "MEDIA_DESIGN_CREATOR";
|
|
1782
|
-
Namespace2["SHARED_BLOG_ENTERPRISE"] = "SHARED_BLOG_ENTERPRISE";
|
|
1783
|
-
Namespace2["STANDALONE_FORMS"] = "STANDALONE_FORMS";
|
|
1784
|
-
Namespace2["STANDALONE_EVENTS"] = "STANDALONE_EVENTS";
|
|
1785
|
-
Namespace2["MIMIR"] = "MIMIR";
|
|
1786
|
-
return Namespace2;
|
|
1787
|
-
})(Namespace || {});
|
|
1788
|
-
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
1789
|
-
SortOrder2["ASC"] = "ASC";
|
|
1790
|
-
SortOrder2["DESC"] = "DESC";
|
|
1791
|
-
return SortOrder2;
|
|
1792
|
-
})(SortOrder || {});
|
|
1793
|
-
var VersioningMode = /* @__PURE__ */ ((VersioningMode2) => {
|
|
1794
|
-
VersioningMode2["DEFAULT"] = "DEFAULT";
|
|
1795
|
-
VersioningMode2["GREATER_THAN"] = "GREATER_THAN";
|
|
1796
|
-
VersioningMode2["GREATER_OR_EQUAL"] = "GREATER_OR_EQUAL";
|
|
1797
|
-
return VersioningMode2;
|
|
1798
|
-
})(VersioningMode || {});
|
|
1799
|
-
var OrderApprovalStrategy = /* @__PURE__ */ ((OrderApprovalStrategy2) => {
|
|
1800
|
-
OrderApprovalStrategy2["DEFAULT"] = "DEFAULT";
|
|
1801
|
-
OrderApprovalStrategy2["PAYMENT_RECEIVED"] = "PAYMENT_RECEIVED";
|
|
1802
|
-
OrderApprovalStrategy2["PAYMENT_METHOD_SAVED"] = "PAYMENT_METHOD_SAVED";
|
|
1803
|
-
return OrderApprovalStrategy2;
|
|
1804
|
-
})(OrderApprovalStrategy || {});
|
|
1805
|
-
var DeltaPaymentOptionType = /* @__PURE__ */ ((DeltaPaymentOptionType2) => {
|
|
1806
|
-
DeltaPaymentOptionType2["UNKNOWN_PAYMENT_OPTION"] = "UNKNOWN_PAYMENT_OPTION";
|
|
1807
|
-
DeltaPaymentOptionType2["FULL_PAYMENT_OFFLINE"] = "FULL_PAYMENT_OFFLINE";
|
|
1808
|
-
DeltaPaymentOptionType2["MEMBERSHIP_OFFLINE"] = "MEMBERSHIP_OFFLINE";
|
|
1809
|
-
return DeltaPaymentOptionType2;
|
|
1810
|
-
})(DeltaPaymentOptionType || {});
|
|
1811
|
-
var InventoryAction = /* @__PURE__ */ ((InventoryAction2) => {
|
|
1812
|
-
InventoryAction2["RESTOCK"] = "RESTOCK";
|
|
1813
|
-
InventoryAction2["DECREASE"] = "DECREASE";
|
|
1814
|
-
return InventoryAction2;
|
|
1815
|
-
})(InventoryAction || {});
|
|
1816
|
-
var Placement = /* @__PURE__ */ ((Placement2) => {
|
|
1817
|
-
Placement2["Unknown"] = "Unknown";
|
|
1818
|
-
Placement2["Replace"] = "Replace";
|
|
1819
|
-
Placement2["Before"] = "Before";
|
|
1820
|
-
Placement2["After"] = "After";
|
|
1821
|
-
return Placement2;
|
|
1822
|
-
})(Placement || {});
|
|
1823
|
-
var SubdivisionType = /* @__PURE__ */ ((SubdivisionType2) => {
|
|
1824
|
-
SubdivisionType2["UNKNOWN_SUBDIVISION_TYPE"] = "UNKNOWN_SUBDIVISION_TYPE";
|
|
1825
|
-
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_1"] = "ADMINISTRATIVE_AREA_LEVEL_1";
|
|
1826
|
-
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_2"] = "ADMINISTRATIVE_AREA_LEVEL_2";
|
|
1827
|
-
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_3"] = "ADMINISTRATIVE_AREA_LEVEL_3";
|
|
1828
|
-
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_4"] = "ADMINISTRATIVE_AREA_LEVEL_4";
|
|
1829
|
-
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_5"] = "ADMINISTRATIVE_AREA_LEVEL_5";
|
|
1830
|
-
SubdivisionType2["COUNTRY"] = "COUNTRY";
|
|
1831
|
-
return SubdivisionType2;
|
|
1832
|
-
})(SubdivisionType || {});
|
|
1833
|
-
var SourceType = /* @__PURE__ */ ((SourceType2) => {
|
|
1834
|
-
SourceType2["UNKNOWN_SOURCE_TYPE"] = "UNKNOWN_SOURCE_TYPE";
|
|
1835
|
-
SourceType2["WIX_APP"] = "WIX_APP";
|
|
1836
|
-
SourceType2["EXTERNAL"] = "EXTERNAL";
|
|
1837
|
-
SourceType2["ADMIN"] = "ADMIN";
|
|
1838
|
-
SourceType2["OTHER"] = "OTHER";
|
|
1839
|
-
return SourceType2;
|
|
1840
|
-
})(SourceType || {});
|
|
1841
|
-
var CustomFieldGroup = /* @__PURE__ */ ((CustomFieldGroup2) => {
|
|
1842
|
-
CustomFieldGroup2["UNKNOWN_CUSTOM_FIELD_GROUP"] = "UNKNOWN_CUSTOM_FIELD_GROUP";
|
|
1843
|
-
CustomFieldGroup2["BUSINESS_DETAILS"] = "BUSINESS_DETAILS";
|
|
1844
|
-
CustomFieldGroup2["CUSTOMER_DETAILS"] = "CUSTOMER_DETAILS";
|
|
1845
|
-
CustomFieldGroup2["DOCUMENT"] = "DOCUMENT";
|
|
1846
|
-
CustomFieldGroup2["FOOTER"] = "FOOTER";
|
|
1847
|
-
CustomFieldGroup2["OTHER"] = "OTHER";
|
|
1848
|
-
return CustomFieldGroup2;
|
|
1849
|
-
})(CustomFieldGroup || {});
|
|
1850
|
-
var ValueType = /* @__PURE__ */ ((ValueType2) => {
|
|
1851
|
-
ValueType2["UNKNOWN_VALUE_TYPE"] = "UNKNOWN_VALUE_TYPE";
|
|
1852
|
-
ValueType2["STRING"] = "STRING";
|
|
1853
|
-
ValueType2["DATE"] = "DATE";
|
|
1854
|
-
ValueType2["BOOLEAN"] = "BOOLEAN";
|
|
1855
|
-
ValueType2["NUMBER"] = "NUMBER";
|
|
1856
|
-
return ValueType2;
|
|
1857
|
-
})(ValueType || {});
|
|
1858
|
-
var DepositType = /* @__PURE__ */ ((DepositType2) => {
|
|
1859
|
-
DepositType2["UNKNOWN"] = "UNKNOWN";
|
|
1860
|
-
DepositType2["FLAT"] = "FLAT";
|
|
1861
|
-
DepositType2["PERCENTAGE"] = "PERCENTAGE";
|
|
1862
|
-
return DepositType2;
|
|
1863
|
-
})(DepositType || {});
|
|
1864
|
-
var InvoiceStatus = /* @__PURE__ */ ((InvoiceStatus2) => {
|
|
1865
|
-
InvoiceStatus2["Draft"] = "Draft";
|
|
1866
|
-
InvoiceStatus2["Sent"] = "Sent";
|
|
1867
|
-
InvoiceStatus2["Processing"] = "Processing";
|
|
1868
|
-
InvoiceStatus2["Paid"] = "Paid";
|
|
1869
|
-
InvoiceStatus2["Overdue"] = "Overdue";
|
|
1870
|
-
InvoiceStatus2["Void"] = "Void";
|
|
1871
|
-
InvoiceStatus2["Deleted"] = "Deleted";
|
|
1872
|
-
InvoiceStatus2["PartiallyPaid"] = "PartiallyPaid";
|
|
1873
|
-
InvoiceStatus2["PartialAndOverdue"] = "PartialAndOverdue";
|
|
1874
|
-
return InvoiceStatus2;
|
|
1875
|
-
})(InvoiceStatus || {});
|
|
1876
|
-
async function preparePaymentCollection2(ecomOrderId, amount, options) {
|
|
1877
|
-
const { httpClient, sideEffects } = arguments[3];
|
|
1878
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1879
|
-
ecomOrderId,
|
|
1880
|
-
amount,
|
|
1881
|
-
paymentGatewayOrderId: options?.paymentGatewayOrderId,
|
|
1882
|
-
delayedCapture: options?.delayedCapture,
|
|
1883
|
-
delayedCaptureSettings: options?.delayedCaptureSettings
|
|
1884
|
-
});
|
|
1885
|
-
const reqOpts = preparePaymentCollection(payload);
|
|
1886
|
-
sideEffects?.onSiteCall?.();
|
|
1887
|
-
try {
|
|
1888
|
-
const result = await httpClient.request(reqOpts);
|
|
1889
|
-
sideEffects?.onSuccess?.(result);
|
|
1890
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1891
|
-
} catch (err) {
|
|
1892
|
-
const transformedError = sdkTransformError(
|
|
1893
|
-
err,
|
|
1894
|
-
{
|
|
1895
|
-
spreadPathsToArguments: {},
|
|
1896
|
-
explicitPathsToArguments: {
|
|
1897
|
-
ecomOrderId: "$[0]",
|
|
1898
|
-
amount: "$[1]",
|
|
1899
|
-
paymentGatewayOrderId: "$[2].paymentGatewayOrderId",
|
|
1900
|
-
delayedCapture: "$[2].delayedCapture",
|
|
1901
|
-
delayedCaptureSettings: "$[2].delayedCaptureSettings"
|
|
1902
|
-
},
|
|
1903
|
-
singleArgumentUnchanged: false
|
|
1904
|
-
},
|
|
1905
|
-
["ecomOrderId", "amount", "options"]
|
|
1906
|
-
);
|
|
1907
|
-
sideEffects?.onError?.(err);
|
|
1908
|
-
throw transformedError;
|
|
1909
|
-
}
|
|
1910
|
-
}
|
|
1911
|
-
async function getPaymentCollectabilityStatus2(ecomOrderId) {
|
|
1912
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1913
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1914
|
-
ecomOrderId
|
|
1915
|
-
});
|
|
1916
|
-
const reqOpts = getPaymentCollectabilityStatus(payload);
|
|
1917
|
-
sideEffects?.onSiteCall?.();
|
|
1918
|
-
try {
|
|
1919
|
-
const result = await httpClient.request(reqOpts);
|
|
1920
|
-
sideEffects?.onSuccess?.(result);
|
|
1921
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1922
|
-
} catch (err) {
|
|
1923
|
-
const transformedError = sdkTransformError(
|
|
1924
|
-
err,
|
|
1925
|
-
{
|
|
1926
|
-
spreadPathsToArguments: {},
|
|
1927
|
-
explicitPathsToArguments: { ecomOrderId: "$[0]" },
|
|
1928
|
-
singleArgumentUnchanged: false
|
|
1929
|
-
},
|
|
1930
|
-
["ecomOrderId"]
|
|
1931
|
-
);
|
|
1932
|
-
sideEffects?.onError?.(err);
|
|
1933
|
-
throw transformedError;
|
|
1934
|
-
}
|
|
1935
|
-
}
|
|
1936
|
-
async function recordManuallyCollectedPayment2(orderId, amount) {
|
|
1937
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
1938
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1939
|
-
orderId,
|
|
1940
|
-
amount
|
|
1941
|
-
});
|
|
1942
|
-
const reqOpts = recordManuallyCollectedPayment(payload);
|
|
1943
|
-
sideEffects?.onSiteCall?.();
|
|
1944
|
-
try {
|
|
1945
|
-
const result = await httpClient.request(reqOpts);
|
|
1946
|
-
sideEffects?.onSuccess?.(result);
|
|
1947
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1948
|
-
} catch (err) {
|
|
1949
|
-
const transformedError = sdkTransformError(
|
|
1950
|
-
err,
|
|
1951
|
-
{
|
|
1952
|
-
spreadPathsToArguments: {},
|
|
1953
|
-
explicitPathsToArguments: { orderId: "$[0]", amount: "$[1]" },
|
|
1954
|
-
singleArgumentUnchanged: false
|
|
1955
|
-
},
|
|
1956
|
-
["orderId", "amount"]
|
|
1957
|
-
);
|
|
1958
|
-
sideEffects?.onError?.(err);
|
|
1959
|
-
throw transformedError;
|
|
1960
|
-
}
|
|
1961
|
-
}
|
|
1962
|
-
async function paymentCollectionMarkOrderAsPaid2(ecomOrderId) {
|
|
1963
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1964
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1965
|
-
ecomOrderId
|
|
1966
|
-
});
|
|
1967
|
-
const reqOpts = paymentCollectionMarkOrderAsPaid(payload);
|
|
1968
|
-
sideEffects?.onSiteCall?.();
|
|
1969
|
-
try {
|
|
1970
|
-
const result = await httpClient.request(reqOpts);
|
|
1971
|
-
sideEffects?.onSuccess?.(result);
|
|
1972
|
-
return renameKeysFromRESTResponseToSDKResponse(
|
|
1973
|
-
transformPaths2(result.data, [
|
|
1974
|
-
{
|
|
1975
|
-
transformFn: transformRESTImageToSDKImage,
|
|
1976
|
-
paths: [{ path: "order.lineItems.image" }]
|
|
1977
|
-
},
|
|
1978
|
-
{
|
|
1979
|
-
transformFn: transformRESTAddressToSDKAddress,
|
|
1980
|
-
paths: [
|
|
1981
|
-
{ path: "order.billingInfo.address" },
|
|
1982
|
-
{
|
|
1983
|
-
path: "order.shippingInfo.logistics.shippingDestination.address"
|
|
1984
|
-
},
|
|
1985
|
-
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
1986
|
-
{ path: "order.recipientInfo.address" }
|
|
1987
|
-
]
|
|
1988
|
-
}
|
|
1989
|
-
])
|
|
1990
|
-
);
|
|
1991
|
-
} catch (err) {
|
|
1992
|
-
const transformedError = sdkTransformError(
|
|
1993
|
-
err,
|
|
1994
|
-
{
|
|
1995
|
-
spreadPathsToArguments: {},
|
|
1996
|
-
explicitPathsToArguments: { ecomOrderId: "$[0]" },
|
|
1997
|
-
singleArgumentUnchanged: false
|
|
1998
|
-
},
|
|
1999
|
-
["ecomOrderId"]
|
|
2000
|
-
);
|
|
2001
|
-
sideEffects?.onError?.(err);
|
|
2002
|
-
throw transformedError;
|
|
2003
|
-
}
|
|
2004
|
-
}
|
|
2005
|
-
async function paymentCollectionBulkMarkOrdersAsPaid2(ecomOrderIds) {
|
|
2006
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
2007
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2008
|
-
ecomOrderIds
|
|
2009
|
-
});
|
|
2010
|
-
const reqOpts = paymentCollectionBulkMarkOrdersAsPaid(payload);
|
|
2011
|
-
sideEffects?.onSiteCall?.();
|
|
2012
|
-
try {
|
|
2013
|
-
const result = await httpClient.request(reqOpts);
|
|
2014
|
-
sideEffects?.onSuccess?.(result);
|
|
2015
|
-
return renameKeysFromRESTResponseToSDKResponse(
|
|
2016
|
-
transformPaths2(result.data, [
|
|
2017
|
-
{
|
|
2018
|
-
transformFn: transformRESTImageToSDKImage,
|
|
2019
|
-
paths: [{ path: "results.item.lineItems.image" }]
|
|
2020
|
-
},
|
|
2021
|
-
{
|
|
2022
|
-
transformFn: transformRESTAddressToSDKAddress,
|
|
2023
|
-
paths: [
|
|
2024
|
-
{ path: "results.item.billingInfo.address" },
|
|
2025
|
-
{
|
|
2026
|
-
path: "results.item.shippingInfo.logistics.shippingDestination.address"
|
|
2027
|
-
},
|
|
2028
|
-
{
|
|
2029
|
-
path: "results.item.shippingInfo.logistics.pickupDetails.address"
|
|
2030
|
-
},
|
|
2031
|
-
{ path: "results.item.recipientInfo.address" }
|
|
2032
|
-
]
|
|
2033
|
-
}
|
|
2034
|
-
])
|
|
2035
|
-
);
|
|
2036
|
-
} catch (err) {
|
|
2037
|
-
const transformedError = sdkTransformError(
|
|
2038
|
-
err,
|
|
2039
|
-
{
|
|
2040
|
-
spreadPathsToArguments: {},
|
|
2041
|
-
explicitPathsToArguments: { ecomOrderIds: "$[0]" },
|
|
2042
|
-
singleArgumentUnchanged: false
|
|
2043
|
-
},
|
|
2044
|
-
["ecomOrderIds"]
|
|
2045
|
-
);
|
|
2046
|
-
sideEffects?.onError?.(err);
|
|
2047
|
-
throw transformedError;
|
|
2048
|
-
}
|
|
2049
|
-
}
|
|
2050
|
-
async function getRefundabilityStatus2(ecomOrderId) {
|
|
2051
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
2052
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2053
|
-
ecomOrderId
|
|
2054
|
-
});
|
|
2055
|
-
const reqOpts = getRefundabilityStatus(payload);
|
|
2056
|
-
sideEffects?.onSiteCall?.();
|
|
2057
|
-
try {
|
|
2058
|
-
const result = await httpClient.request(reqOpts);
|
|
2059
|
-
sideEffects?.onSuccess?.(result);
|
|
2060
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
2061
|
-
} catch (err) {
|
|
2062
|
-
const transformedError = sdkTransformError(
|
|
2063
|
-
err,
|
|
2064
|
-
{
|
|
2065
|
-
spreadPathsToArguments: {},
|
|
2066
|
-
explicitPathsToArguments: { ecomOrderId: "$[0]" },
|
|
2067
|
-
singleArgumentUnchanged: false
|
|
2068
|
-
},
|
|
2069
|
-
["ecomOrderId"]
|
|
2070
|
-
);
|
|
2071
|
-
sideEffects?.onError?.(err);
|
|
2072
|
-
throw transformedError;
|
|
2073
|
-
}
|
|
2074
|
-
}
|
|
2075
|
-
async function paymentCollectionCreatePaymentGatewayOrder2(ecomOrderId, options) {
|
|
2076
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
2077
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2078
|
-
ecomOrderId,
|
|
2079
|
-
chargedBy: options?.chargedBy
|
|
2080
|
-
});
|
|
2081
|
-
const reqOpts = paymentCollectionCreatePaymentGatewayOrder(
|
|
2082
|
-
payload
|
|
2083
|
-
);
|
|
2084
|
-
sideEffects?.onSiteCall?.();
|
|
2085
|
-
try {
|
|
2086
|
-
const result = await httpClient.request(reqOpts);
|
|
2087
|
-
sideEffects?.onSuccess?.(result);
|
|
2088
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
2089
|
-
} catch (err) {
|
|
2090
|
-
const transformedError = sdkTransformError(
|
|
2091
|
-
err,
|
|
2092
|
-
{
|
|
2093
|
-
spreadPathsToArguments: {},
|
|
2094
|
-
explicitPathsToArguments: {
|
|
2095
|
-
ecomOrderId: "$[0]",
|
|
2096
|
-
chargedBy: "$[1].chargedBy"
|
|
2097
|
-
},
|
|
2098
|
-
singleArgumentUnchanged: false
|
|
2099
|
-
},
|
|
2100
|
-
["ecomOrderId", "options"]
|
|
2101
|
-
);
|
|
2102
|
-
sideEffects?.onError?.(err);
|
|
2103
|
-
throw transformedError;
|
|
2104
|
-
}
|
|
2105
|
-
}
|
|
2106
|
-
async function chargeMemberships2(ecomOrderId, memberId, options) {
|
|
2107
|
-
const { httpClient, sideEffects } = arguments[3];
|
|
2108
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2109
|
-
ecomOrderId,
|
|
2110
|
-
memberId,
|
|
2111
|
-
membershipCharges: options?.membershipCharges
|
|
2112
|
-
});
|
|
2113
|
-
const reqOpts = chargeMemberships(payload);
|
|
2114
|
-
sideEffects?.onSiteCall?.();
|
|
2115
|
-
try {
|
|
2116
|
-
const result = await httpClient.request(reqOpts);
|
|
2117
|
-
sideEffects?.onSuccess?.(result);
|
|
2118
|
-
} catch (err) {
|
|
2119
|
-
const transformedError = sdkTransformError(
|
|
2120
|
-
err,
|
|
2121
|
-
{
|
|
2122
|
-
spreadPathsToArguments: {},
|
|
2123
|
-
explicitPathsToArguments: {
|
|
2124
|
-
ecomOrderId: "$[0]",
|
|
2125
|
-
memberId: "$[1]",
|
|
2126
|
-
membershipCharges: "$[2].membershipCharges"
|
|
2127
|
-
},
|
|
2128
|
-
singleArgumentUnchanged: false
|
|
2129
|
-
},
|
|
2130
|
-
["ecomOrderId", "memberId", "options"]
|
|
2131
|
-
);
|
|
2132
|
-
sideEffects?.onError?.(err);
|
|
2133
|
-
throw transformedError;
|
|
2134
|
-
}
|
|
2135
|
-
}
|
|
2136
|
-
async function triggerRefund2(ecomOrderId, payments, options) {
|
|
2137
|
-
const { httpClient, sideEffects } = arguments[3];
|
|
2138
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2139
|
-
ecomOrderId,
|
|
2140
|
-
payments,
|
|
2141
|
-
details: options?.details,
|
|
2142
|
-
sideEffects: options?.sideEffects
|
|
2143
|
-
});
|
|
2144
|
-
const reqOpts = triggerRefund(payload);
|
|
2145
|
-
sideEffects?.onSiteCall?.();
|
|
2146
|
-
try {
|
|
2147
|
-
const result = await httpClient.request(reqOpts);
|
|
2148
|
-
sideEffects?.onSuccess?.(result);
|
|
2149
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
2150
|
-
} catch (err) {
|
|
2151
|
-
const transformedError = sdkTransformError(
|
|
2152
|
-
err,
|
|
2153
|
-
{
|
|
2154
|
-
spreadPathsToArguments: {},
|
|
2155
|
-
explicitPathsToArguments: {
|
|
2156
|
-
ecomOrderId: "$[0]",
|
|
2157
|
-
payments: "$[1]",
|
|
2158
|
-
details: "$[2].details",
|
|
2159
|
-
sideEffects: "$[2].sideEffects"
|
|
2160
|
-
},
|
|
2161
|
-
singleArgumentUnchanged: false
|
|
2162
|
-
},
|
|
2163
|
-
["ecomOrderId", "payments", "options"]
|
|
2164
|
-
);
|
|
2165
|
-
sideEffects?.onError?.(err);
|
|
2166
|
-
throw transformedError;
|
|
2167
|
-
}
|
|
2168
|
-
}
|
|
2169
|
-
async function voidAuthorizedPayments2(ecomOrderId, paymentIds) {
|
|
2170
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
2171
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2172
|
-
ecomOrderId,
|
|
2173
|
-
paymentIds
|
|
2174
|
-
});
|
|
2175
|
-
const reqOpts = voidAuthorizedPayments(payload);
|
|
2176
|
-
sideEffects?.onSiteCall?.();
|
|
2177
|
-
try {
|
|
2178
|
-
const result = await httpClient.request(reqOpts);
|
|
2179
|
-
sideEffects?.onSuccess?.(result);
|
|
2180
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
2181
|
-
} catch (err) {
|
|
2182
|
-
const transformedError = sdkTransformError(
|
|
2183
|
-
err,
|
|
2184
|
-
{
|
|
2185
|
-
spreadPathsToArguments: {},
|
|
2186
|
-
explicitPathsToArguments: { ecomOrderId: "$[0]", paymentIds: "$[1]" },
|
|
2187
|
-
singleArgumentUnchanged: false
|
|
2188
|
-
},
|
|
2189
|
-
["ecomOrderId", "paymentIds"]
|
|
2190
|
-
);
|
|
2191
|
-
sideEffects?.onError?.(err);
|
|
2192
|
-
throw transformedError;
|
|
2193
|
-
}
|
|
2194
|
-
}
|
|
2195
|
-
async function captureAuthorizedPayments2(ecomOrderId, payments) {
|
|
2196
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
2197
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2198
|
-
ecomOrderId,
|
|
2199
|
-
payments
|
|
2200
|
-
});
|
|
2201
|
-
const reqOpts = captureAuthorizedPayments(payload);
|
|
2202
|
-
sideEffects?.onSiteCall?.();
|
|
2203
|
-
try {
|
|
2204
|
-
const result = await httpClient.request(reqOpts);
|
|
2205
|
-
sideEffects?.onSuccess?.(result);
|
|
2206
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
2207
|
-
} catch (err) {
|
|
2208
|
-
const transformedError = sdkTransformError(
|
|
2209
|
-
err,
|
|
2210
|
-
{
|
|
2211
|
-
spreadPathsToArguments: {},
|
|
2212
|
-
explicitPathsToArguments: { ecomOrderId: "$[0]", payments: "$[1]" },
|
|
2213
|
-
singleArgumentUnchanged: false
|
|
2214
|
-
},
|
|
2215
|
-
["ecomOrderId", "payments"]
|
|
2216
|
-
);
|
|
2217
|
-
sideEffects?.onError?.(err);
|
|
2218
|
-
throw transformedError;
|
|
2219
|
-
}
|
|
2220
|
-
}
|
|
1120
|
+
LineItemQuantityChangeType2["QUANTITY_INCREASED"] = "QUANTITY_INCREASED";
|
|
1121
|
+
LineItemQuantityChangeType2["QUANTITY_DECREASED"] = "QUANTITY_DECREASED";
|
|
1122
|
+
return LineItemQuantityChangeType2;
|
|
1123
|
+
})(LineItemQuantityChangeType || {});
|
|
1124
|
+
var ActivityType = /* @__PURE__ */ ((ActivityType2) => {
|
|
1125
|
+
ActivityType2["ORDER_REFUNDED"] = "ORDER_REFUNDED";
|
|
1126
|
+
ActivityType2["ORDER_PLACED"] = "ORDER_PLACED";
|
|
1127
|
+
ActivityType2["ORDER_PAID"] = "ORDER_PAID";
|
|
1128
|
+
ActivityType2["ORDER_FULFILLED"] = "ORDER_FULFILLED";
|
|
1129
|
+
ActivityType2["ORDER_NOT_FULFILLED"] = "ORDER_NOT_FULFILLED";
|
|
1130
|
+
ActivityType2["ORDER_CANCELED"] = "ORDER_CANCELED";
|
|
1131
|
+
ActivityType2["DOWNLOAD_LINK_SENT"] = "DOWNLOAD_LINK_SENT";
|
|
1132
|
+
ActivityType2["TRACKING_NUMBER_ADDED"] = "TRACKING_NUMBER_ADDED";
|
|
1133
|
+
ActivityType2["TRACKING_NUMBER_EDITED"] = "TRACKING_NUMBER_EDITED";
|
|
1134
|
+
ActivityType2["TRACKING_LINK_ADDED"] = "TRACKING_LINK_ADDED";
|
|
1135
|
+
ActivityType2["SHIPPING_CONFIRMATION_EMAIL_SENT"] = "SHIPPING_CONFIRMATION_EMAIL_SENT";
|
|
1136
|
+
ActivityType2["INVOICE_ADDED"] = "INVOICE_ADDED";
|
|
1137
|
+
ActivityType2["INVOICE_REMOVED"] = "INVOICE_REMOVED";
|
|
1138
|
+
ActivityType2["INVOICE_SENT"] = "INVOICE_SENT";
|
|
1139
|
+
ActivityType2["FULFILLER_EMAIL_SENT"] = "FULFILLER_EMAIL_SENT";
|
|
1140
|
+
ActivityType2["SHIPPING_ADDRESS_EDITED"] = "SHIPPING_ADDRESS_EDITED";
|
|
1141
|
+
ActivityType2["EMAIL_EDITED"] = "EMAIL_EDITED";
|
|
1142
|
+
ActivityType2["PICKUP_READY_EMAIL_SENT"] = "PICKUP_READY_EMAIL_SENT";
|
|
1143
|
+
ActivityType2["CUSTOM_ACTIVITY"] = "CUSTOM_ACTIVITY";
|
|
1144
|
+
ActivityType2["MERCHANT_COMMENT"] = "MERCHANT_COMMENT";
|
|
1145
|
+
ActivityType2["ORDER_CREATED_FROM_EXCHANGE"] = "ORDER_CREATED_FROM_EXCHANGE";
|
|
1146
|
+
ActivityType2["NEW_EXCHANGE_ORDER_CREATED"] = "NEW_EXCHANGE_ORDER_CREATED";
|
|
1147
|
+
ActivityType2["ORDER_PARTIALLY_PAID"] = "ORDER_PARTIALLY_PAID";
|
|
1148
|
+
ActivityType2["DRAFT_ORDER_CHANGES_APPLIED"] = "DRAFT_ORDER_CHANGES_APPLIED";
|
|
1149
|
+
ActivityType2["SAVED_PAYMENT_METHOD"] = "SAVED_PAYMENT_METHOD";
|
|
1150
|
+
ActivityType2["PAYMENT_PENDING"] = "PAYMENT_PENDING";
|
|
1151
|
+
ActivityType2["PAYMENT_CANCELED"] = "PAYMENT_CANCELED";
|
|
1152
|
+
ActivityType2["PAYMENT_DECLINED"] = "PAYMENT_DECLINED";
|
|
1153
|
+
ActivityType2["ORDER_PENDING"] = "ORDER_PENDING";
|
|
1154
|
+
ActivityType2["ORDER_REJECTED"] = "ORDER_REJECTED";
|
|
1155
|
+
return ActivityType2;
|
|
1156
|
+
})(ActivityType || {});
|
|
1157
|
+
var AttributionSource = /* @__PURE__ */ ((AttributionSource2) => {
|
|
1158
|
+
AttributionSource2["UNSPECIFIED"] = "UNSPECIFIED";
|
|
1159
|
+
AttributionSource2["FACEBOOK_ADS"] = "FACEBOOK_ADS";
|
|
1160
|
+
return AttributionSource2;
|
|
1161
|
+
})(AttributionSource || {});
|
|
1162
|
+
var ChannelType = /* @__PURE__ */ ((ChannelType2) => {
|
|
1163
|
+
ChannelType2["UNSPECIFIED"] = "UNSPECIFIED";
|
|
1164
|
+
ChannelType2["WEB"] = "WEB";
|
|
1165
|
+
ChannelType2["POS"] = "POS";
|
|
1166
|
+
ChannelType2["EBAY"] = "EBAY";
|
|
1167
|
+
ChannelType2["AMAZON"] = "AMAZON";
|
|
1168
|
+
ChannelType2["OTHER_PLATFORM"] = "OTHER_PLATFORM";
|
|
1169
|
+
ChannelType2["WIX_APP_STORE"] = "WIX_APP_STORE";
|
|
1170
|
+
ChannelType2["WIX_INVOICES"] = "WIX_INVOICES";
|
|
1171
|
+
ChannelType2["BACKOFFICE_MERCHANT"] = "BACKOFFICE_MERCHANT";
|
|
1172
|
+
ChannelType2["WISH"] = "WISH";
|
|
1173
|
+
ChannelType2["CLASS_PASS"] = "CLASS_PASS";
|
|
1174
|
+
ChannelType2["GLOBAL_E"] = "GLOBAL_E";
|
|
1175
|
+
ChannelType2["FACEBOOK"] = "FACEBOOK";
|
|
1176
|
+
ChannelType2["ETSY"] = "ETSY";
|
|
1177
|
+
ChannelType2["TIKTOK"] = "TIKTOK";
|
|
1178
|
+
ChannelType2["FAIRE_COM"] = "FAIRE_COM";
|
|
1179
|
+
return ChannelType2;
|
|
1180
|
+
})(ChannelType || {});
|
|
1181
|
+
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
1182
|
+
SortOrder2["ASC"] = "ASC";
|
|
1183
|
+
SortOrder2["DESC"] = "DESC";
|
|
1184
|
+
return SortOrder2;
|
|
1185
|
+
})(SortOrder || {});
|
|
1186
|
+
var OrderApprovalStrategy = /* @__PURE__ */ ((OrderApprovalStrategy2) => {
|
|
1187
|
+
OrderApprovalStrategy2["DEFAULT"] = "DEFAULT";
|
|
1188
|
+
OrderApprovalStrategy2["PAYMENT_RECEIVED"] = "PAYMENT_RECEIVED";
|
|
1189
|
+
OrderApprovalStrategy2["PAYMENT_METHOD_SAVED"] = "PAYMENT_METHOD_SAVED";
|
|
1190
|
+
return OrderApprovalStrategy2;
|
|
1191
|
+
})(OrderApprovalStrategy || {});
|
|
1192
|
+
var DeltaPaymentOptionType = /* @__PURE__ */ ((DeltaPaymentOptionType2) => {
|
|
1193
|
+
DeltaPaymentOptionType2["UNKNOWN_PAYMENT_OPTION"] = "UNKNOWN_PAYMENT_OPTION";
|
|
1194
|
+
DeltaPaymentOptionType2["FULL_PAYMENT_OFFLINE"] = "FULL_PAYMENT_OFFLINE";
|
|
1195
|
+
DeltaPaymentOptionType2["MEMBERSHIP_OFFLINE"] = "MEMBERSHIP_OFFLINE";
|
|
1196
|
+
return DeltaPaymentOptionType2;
|
|
1197
|
+
})(DeltaPaymentOptionType || {});
|
|
1198
|
+
var InventoryAction = /* @__PURE__ */ ((InventoryAction2) => {
|
|
1199
|
+
InventoryAction2["RESTOCK"] = "RESTOCK";
|
|
1200
|
+
InventoryAction2["DECREASE"] = "DECREASE";
|
|
1201
|
+
return InventoryAction2;
|
|
1202
|
+
})(InventoryAction || {});
|
|
1203
|
+
var Placement = /* @__PURE__ */ ((Placement2) => {
|
|
1204
|
+
Placement2["Unknown"] = "Unknown";
|
|
1205
|
+
Placement2["Replace"] = "Replace";
|
|
1206
|
+
Placement2["Before"] = "Before";
|
|
1207
|
+
Placement2["After"] = "After";
|
|
1208
|
+
return Placement2;
|
|
1209
|
+
})(Placement || {});
|
|
1210
|
+
var SubdivisionType = /* @__PURE__ */ ((SubdivisionType2) => {
|
|
1211
|
+
SubdivisionType2["UNKNOWN_SUBDIVISION_TYPE"] = "UNKNOWN_SUBDIVISION_TYPE";
|
|
1212
|
+
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_1"] = "ADMINISTRATIVE_AREA_LEVEL_1";
|
|
1213
|
+
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_2"] = "ADMINISTRATIVE_AREA_LEVEL_2";
|
|
1214
|
+
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_3"] = "ADMINISTRATIVE_AREA_LEVEL_3";
|
|
1215
|
+
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_4"] = "ADMINISTRATIVE_AREA_LEVEL_4";
|
|
1216
|
+
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_5"] = "ADMINISTRATIVE_AREA_LEVEL_5";
|
|
1217
|
+
SubdivisionType2["COUNTRY"] = "COUNTRY";
|
|
1218
|
+
return SubdivisionType2;
|
|
1219
|
+
})(SubdivisionType || {});
|
|
1220
|
+
var SourceType = /* @__PURE__ */ ((SourceType2) => {
|
|
1221
|
+
SourceType2["UNKNOWN_SOURCE_TYPE"] = "UNKNOWN_SOURCE_TYPE";
|
|
1222
|
+
SourceType2["WIX_APP"] = "WIX_APP";
|
|
1223
|
+
SourceType2["EXTERNAL"] = "EXTERNAL";
|
|
1224
|
+
SourceType2["ADMIN"] = "ADMIN";
|
|
1225
|
+
SourceType2["OTHER"] = "OTHER";
|
|
1226
|
+
return SourceType2;
|
|
1227
|
+
})(SourceType || {});
|
|
1228
|
+
var CustomFieldGroup = /* @__PURE__ */ ((CustomFieldGroup2) => {
|
|
1229
|
+
CustomFieldGroup2["UNKNOWN_CUSTOM_FIELD_GROUP"] = "UNKNOWN_CUSTOM_FIELD_GROUP";
|
|
1230
|
+
CustomFieldGroup2["BUSINESS_DETAILS"] = "BUSINESS_DETAILS";
|
|
1231
|
+
CustomFieldGroup2["CUSTOMER_DETAILS"] = "CUSTOMER_DETAILS";
|
|
1232
|
+
CustomFieldGroup2["DOCUMENT"] = "DOCUMENT";
|
|
1233
|
+
CustomFieldGroup2["FOOTER"] = "FOOTER";
|
|
1234
|
+
CustomFieldGroup2["OTHER"] = "OTHER";
|
|
1235
|
+
return CustomFieldGroup2;
|
|
1236
|
+
})(CustomFieldGroup || {});
|
|
1237
|
+
var ValueType = /* @__PURE__ */ ((ValueType2) => {
|
|
1238
|
+
ValueType2["UNKNOWN_VALUE_TYPE"] = "UNKNOWN_VALUE_TYPE";
|
|
1239
|
+
ValueType2["STRING"] = "STRING";
|
|
1240
|
+
ValueType2["DATE"] = "DATE";
|
|
1241
|
+
ValueType2["BOOLEAN"] = "BOOLEAN";
|
|
1242
|
+
ValueType2["NUMBER"] = "NUMBER";
|
|
1243
|
+
return ValueType2;
|
|
1244
|
+
})(ValueType || {});
|
|
1245
|
+
var DepositType = /* @__PURE__ */ ((DepositType2) => {
|
|
1246
|
+
DepositType2["UNKNOWN"] = "UNKNOWN";
|
|
1247
|
+
DepositType2["FLAT"] = "FLAT";
|
|
1248
|
+
DepositType2["PERCENTAGE"] = "PERCENTAGE";
|
|
1249
|
+
return DepositType2;
|
|
1250
|
+
})(DepositType || {});
|
|
1251
|
+
var InvoiceStatus = /* @__PURE__ */ ((InvoiceStatus2) => {
|
|
1252
|
+
InvoiceStatus2["Draft"] = "Draft";
|
|
1253
|
+
InvoiceStatus2["Sent"] = "Sent";
|
|
1254
|
+
InvoiceStatus2["Processing"] = "Processing";
|
|
1255
|
+
InvoiceStatus2["Paid"] = "Paid";
|
|
1256
|
+
InvoiceStatus2["Overdue"] = "Overdue";
|
|
1257
|
+
InvoiceStatus2["Void"] = "Void";
|
|
1258
|
+
InvoiceStatus2["Deleted"] = "Deleted";
|
|
1259
|
+
InvoiceStatus2["PartiallyPaid"] = "PartiallyPaid";
|
|
1260
|
+
InvoiceStatus2["PartialAndOverdue"] = "PartialAndOverdue";
|
|
1261
|
+
return InvoiceStatus2;
|
|
1262
|
+
})(InvoiceStatus || {});
|
|
1263
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
1264
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
1265
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
1266
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
1267
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
1268
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
1269
|
+
return WebhookIdentityType2;
|
|
1270
|
+
})(WebhookIdentityType || {});
|
|
2221
1271
|
async function getOrder2(_id) {
|
|
2222
1272
|
const { httpClient, sideEffects } = arguments[1];
|
|
2223
1273
|
const payload = renameKeysFromSDKRequestToRESTRequest({ id: _id });
|
|
@@ -2915,93 +1965,6 @@ async function bulkUpdateOrderTags2(orderIds, options) {
|
|
|
2915
1965
|
}
|
|
2916
1966
|
|
|
2917
1967
|
// src/ecom-v1-order-orders.public.ts
|
|
2918
|
-
function preparePaymentCollection3(httpClient) {
|
|
2919
|
-
return (ecomOrderId, amount, options) => preparePaymentCollection2(
|
|
2920
|
-
ecomOrderId,
|
|
2921
|
-
amount,
|
|
2922
|
-
options,
|
|
2923
|
-
// @ts-ignore
|
|
2924
|
-
{ httpClient }
|
|
2925
|
-
);
|
|
2926
|
-
}
|
|
2927
|
-
function getPaymentCollectabilityStatus3(httpClient) {
|
|
2928
|
-
return (ecomOrderId) => getPaymentCollectabilityStatus2(
|
|
2929
|
-
ecomOrderId,
|
|
2930
|
-
// @ts-ignore
|
|
2931
|
-
{ httpClient }
|
|
2932
|
-
);
|
|
2933
|
-
}
|
|
2934
|
-
function recordManuallyCollectedPayment3(httpClient) {
|
|
2935
|
-
return (orderId, amount) => recordManuallyCollectedPayment2(
|
|
2936
|
-
orderId,
|
|
2937
|
-
amount,
|
|
2938
|
-
// @ts-ignore
|
|
2939
|
-
{ httpClient }
|
|
2940
|
-
);
|
|
2941
|
-
}
|
|
2942
|
-
function paymentCollectionMarkOrderAsPaid3(httpClient) {
|
|
2943
|
-
return (ecomOrderId) => paymentCollectionMarkOrderAsPaid2(
|
|
2944
|
-
ecomOrderId,
|
|
2945
|
-
// @ts-ignore
|
|
2946
|
-
{ httpClient }
|
|
2947
|
-
);
|
|
2948
|
-
}
|
|
2949
|
-
function paymentCollectionBulkMarkOrdersAsPaid3(httpClient) {
|
|
2950
|
-
return (ecomOrderIds) => paymentCollectionBulkMarkOrdersAsPaid2(
|
|
2951
|
-
ecomOrderIds,
|
|
2952
|
-
// @ts-ignore
|
|
2953
|
-
{ httpClient }
|
|
2954
|
-
);
|
|
2955
|
-
}
|
|
2956
|
-
function getRefundabilityStatus3(httpClient) {
|
|
2957
|
-
return (ecomOrderId) => getRefundabilityStatus2(
|
|
2958
|
-
ecomOrderId,
|
|
2959
|
-
// @ts-ignore
|
|
2960
|
-
{ httpClient }
|
|
2961
|
-
);
|
|
2962
|
-
}
|
|
2963
|
-
function paymentCollectionCreatePaymentGatewayOrder3(httpClient) {
|
|
2964
|
-
return (ecomOrderId, options) => paymentCollectionCreatePaymentGatewayOrder2(
|
|
2965
|
-
ecomOrderId,
|
|
2966
|
-
options,
|
|
2967
|
-
// @ts-ignore
|
|
2968
|
-
{ httpClient }
|
|
2969
|
-
);
|
|
2970
|
-
}
|
|
2971
|
-
function chargeMemberships3(httpClient) {
|
|
2972
|
-
return (ecomOrderId, memberId, options) => chargeMemberships2(
|
|
2973
|
-
ecomOrderId,
|
|
2974
|
-
memberId,
|
|
2975
|
-
options,
|
|
2976
|
-
// @ts-ignore
|
|
2977
|
-
{ httpClient }
|
|
2978
|
-
);
|
|
2979
|
-
}
|
|
2980
|
-
function triggerRefund3(httpClient) {
|
|
2981
|
-
return (ecomOrderId, payments, options) => triggerRefund2(
|
|
2982
|
-
ecomOrderId,
|
|
2983
|
-
payments,
|
|
2984
|
-
options,
|
|
2985
|
-
// @ts-ignore
|
|
2986
|
-
{ httpClient }
|
|
2987
|
-
);
|
|
2988
|
-
}
|
|
2989
|
-
function voidAuthorizedPayments3(httpClient) {
|
|
2990
|
-
return (ecomOrderId, paymentIds) => voidAuthorizedPayments2(
|
|
2991
|
-
ecomOrderId,
|
|
2992
|
-
paymentIds,
|
|
2993
|
-
// @ts-ignore
|
|
2994
|
-
{ httpClient }
|
|
2995
|
-
);
|
|
2996
|
-
}
|
|
2997
|
-
function captureAuthorizedPayments3(httpClient) {
|
|
2998
|
-
return (ecomOrderId, payments) => captureAuthorizedPayments2(
|
|
2999
|
-
ecomOrderId,
|
|
3000
|
-
payments,
|
|
3001
|
-
// @ts-ignore
|
|
3002
|
-
{ httpClient }
|
|
3003
|
-
);
|
|
3004
|
-
}
|
|
3005
1968
|
function getOrder3(httpClient) {
|
|
3006
1969
|
return (_id) => getOrder2(
|
|
3007
1970
|
_id,
|
|
@@ -3154,8 +2117,52 @@ var onOrderApproved = EventDefinition(
|
|
|
3154
2117
|
])
|
|
3155
2118
|
)
|
|
3156
2119
|
)();
|
|
3157
|
-
var
|
|
3158
|
-
"wix.ecom.v1.
|
|
2120
|
+
var onOrderCanceled = EventDefinition(
|
|
2121
|
+
"wix.ecom.v1.order_canceled",
|
|
2122
|
+
true,
|
|
2123
|
+
(event) => renameKeysFromRESTResponseToSDKResponse2(
|
|
2124
|
+
transformPaths3(event, [
|
|
2125
|
+
{
|
|
2126
|
+
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
2127
|
+
paths: [
|
|
2128
|
+
{ path: "data.order.createdDate" },
|
|
2129
|
+
{ path: "data.order.updatedDate" },
|
|
2130
|
+
{ path: "data.order.purchasedDate" },
|
|
2131
|
+
{ path: "data.order.lineItems.digitalFile.expirationDate" },
|
|
2132
|
+
{
|
|
2133
|
+
path: "data.order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
2134
|
+
},
|
|
2135
|
+
{ path: "data.order.shippingInfo.logistics.deliverByDate" },
|
|
2136
|
+
{ path: "data.order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
2137
|
+
{ path: "data.order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
2138
|
+
{ path: "data.order.activities.createdDate" },
|
|
2139
|
+
{ path: "metadata.eventTime" }
|
|
2140
|
+
]
|
|
2141
|
+
},
|
|
2142
|
+
{
|
|
2143
|
+
transformFn: transformRESTImageToSDKImage2,
|
|
2144
|
+
paths: [{ path: "data.order.lineItems.image" }]
|
|
2145
|
+
},
|
|
2146
|
+
{
|
|
2147
|
+
transformFn: transformRESTFloatToSDKFloat2,
|
|
2148
|
+
paths: [{ path: "data.order.lineItems.physicalProperties.weight" }]
|
|
2149
|
+
},
|
|
2150
|
+
{
|
|
2151
|
+
transformFn: transformRESTAddressToSDKAddress2,
|
|
2152
|
+
paths: [
|
|
2153
|
+
{ path: "data.order.billingInfo.address" },
|
|
2154
|
+
{
|
|
2155
|
+
path: "data.order.shippingInfo.logistics.shippingDestination.address"
|
|
2156
|
+
},
|
|
2157
|
+
{ path: "data.order.shippingInfo.logistics.pickupDetails.address" },
|
|
2158
|
+
{ path: "data.order.recipientInfo.address" }
|
|
2159
|
+
]
|
|
2160
|
+
}
|
|
2161
|
+
])
|
|
2162
|
+
)
|
|
2163
|
+
)();
|
|
2164
|
+
var onOrderCreated = EventDefinition(
|
|
2165
|
+
"wix.ecom.v1.order_created",
|
|
3159
2166
|
true,
|
|
3160
2167
|
(event) => renameKeysFromRESTResponseToSDKResponse2(
|
|
3161
2168
|
transformPaths3(event, [
|
|
@@ -3198,8 +2205,8 @@ var onOrderUpdated = EventDefinition(
|
|
|
3198
2205
|
])
|
|
3199
2206
|
)
|
|
3200
2207
|
)();
|
|
3201
|
-
var
|
|
3202
|
-
"wix.ecom.v1.
|
|
2208
|
+
var onOrderPaymentStatusUpdated = EventDefinition(
|
|
2209
|
+
"wix.ecom.v1.order_payment_status_updated",
|
|
3203
2210
|
true,
|
|
3204
2211
|
(event) => renameKeysFromRESTResponseToSDKResponse2(
|
|
3205
2212
|
transformPaths3(event, [
|
|
@@ -3242,8 +2249,8 @@ var onOrderCanceled = EventDefinition(
|
|
|
3242
2249
|
])
|
|
3243
2250
|
)
|
|
3244
2251
|
)();
|
|
3245
|
-
var
|
|
3246
|
-
"wix.ecom.v1.
|
|
2252
|
+
var onOrderUpdated = EventDefinition(
|
|
2253
|
+
"wix.ecom.v1.order_updated",
|
|
3247
2254
|
true,
|
|
3248
2255
|
(event) => renameKeysFromRESTResponseToSDKResponse2(
|
|
3249
2256
|
transformPaths3(event, [
|
|
@@ -3290,19 +2297,6 @@ var onOrderCreated = EventDefinition(
|
|
|
3290
2297
|
// src/ecom-v1-order-orders.context.ts
|
|
3291
2298
|
import { createRESTModule } from "@wix/sdk-runtime/rest-modules";
|
|
3292
2299
|
import { createEventModule } from "@wix/sdk-runtime/event-definition-modules";
|
|
3293
|
-
var preparePaymentCollection4 = /* @__PURE__ */ createRESTModule(preparePaymentCollection3);
|
|
3294
|
-
var getPaymentCollectabilityStatus4 = /* @__PURE__ */ createRESTModule(getPaymentCollectabilityStatus3);
|
|
3295
|
-
var recordManuallyCollectedPayment4 = /* @__PURE__ */ createRESTModule(recordManuallyCollectedPayment3);
|
|
3296
|
-
var paymentCollectionMarkOrderAsPaid4 = /* @__PURE__ */ createRESTModule(paymentCollectionMarkOrderAsPaid3);
|
|
3297
|
-
var paymentCollectionBulkMarkOrdersAsPaid4 = /* @__PURE__ */ createRESTModule(paymentCollectionBulkMarkOrdersAsPaid3);
|
|
3298
|
-
var getRefundabilityStatus4 = /* @__PURE__ */ createRESTModule(getRefundabilityStatus3);
|
|
3299
|
-
var paymentCollectionCreatePaymentGatewayOrder4 = /* @__PURE__ */ createRESTModule(
|
|
3300
|
-
paymentCollectionCreatePaymentGatewayOrder3
|
|
3301
|
-
);
|
|
3302
|
-
var chargeMemberships4 = /* @__PURE__ */ createRESTModule(chargeMemberships3);
|
|
3303
|
-
var triggerRefund4 = /* @__PURE__ */ createRESTModule(triggerRefund3);
|
|
3304
|
-
var voidAuthorizedPayments4 = /* @__PURE__ */ createRESTModule(voidAuthorizedPayments3);
|
|
3305
|
-
var captureAuthorizedPayments4 = /* @__PURE__ */ createRESTModule(captureAuthorizedPayments3);
|
|
3306
2300
|
var getOrder4 = /* @__PURE__ */ createRESTModule(getOrder3);
|
|
3307
2301
|
var searchOrders4 = /* @__PURE__ */ createRESTModule(searchOrders3);
|
|
3308
2302
|
var createOrder4 = /* @__PURE__ */ createRESTModule(createOrder3);
|
|
@@ -3318,60 +2312,40 @@ var updateOrderStatus4 = /* @__PURE__ */ createRESTModule(updateOrderStatus3);
|
|
|
3318
2312
|
var aggregateOrders4 = /* @__PURE__ */ createRESTModule(aggregateOrders3);
|
|
3319
2313
|
var bulkUpdateOrderTags4 = /* @__PURE__ */ createRESTModule(bulkUpdateOrderTags3);
|
|
3320
2314
|
var onOrderApproved2 = createEventModule(onOrderApproved);
|
|
3321
|
-
var onOrderUpdated2 = createEventModule(onOrderUpdated);
|
|
3322
2315
|
var onOrderCanceled2 = createEventModule(onOrderCanceled);
|
|
3323
2316
|
var onOrderCreated2 = createEventModule(onOrderCreated);
|
|
2317
|
+
var onOrderPaymentStatusUpdated2 = createEventModule(onOrderPaymentStatusUpdated);
|
|
2318
|
+
var onOrderUpdated2 = createEventModule(onOrderUpdated);
|
|
3324
2319
|
export {
|
|
3325
|
-
ActionType,
|
|
3326
2320
|
ActivityType,
|
|
3327
2321
|
AdjustmentType,
|
|
3328
|
-
AnimationDetection,
|
|
3329
2322
|
AttributionSource,
|
|
3330
|
-
AuthorizationCaptureStatus,
|
|
3331
|
-
AuthorizationVoidStatus,
|
|
3332
2323
|
ChannelType,
|
|
3333
|
-
ChargebackStatus,
|
|
3334
2324
|
CustomFieldGroup,
|
|
3335
2325
|
DeltaPaymentOptionType,
|
|
3336
2326
|
DepositType,
|
|
3337
2327
|
DescriptionLineType,
|
|
3338
2328
|
DiscountReason,
|
|
3339
2329
|
DiscountType,
|
|
3340
|
-
DurationUnit,
|
|
3341
2330
|
FulfillmentStatus,
|
|
3342
2331
|
InventoryAction,
|
|
3343
2332
|
InvoiceStatus,
|
|
3344
2333
|
ItemTypeItemType,
|
|
3345
2334
|
JurisdictionType,
|
|
3346
2335
|
LineItemQuantityChangeType,
|
|
3347
|
-
ManuallyRefundableReason,
|
|
3348
|
-
MembershipPaymentStatus,
|
|
3349
|
-
Namespace,
|
|
3350
|
-
NonRefundableReason,
|
|
3351
2336
|
OrderApprovalStrategy,
|
|
3352
2337
|
OrderStatus,
|
|
3353
|
-
PaymentCollectabilityStatus,
|
|
3354
2338
|
PaymentOptionType,
|
|
3355
2339
|
PaymentStatus,
|
|
3356
2340
|
PickupMethod,
|
|
3357
2341
|
Placement,
|
|
3358
|
-
PreviewEmailType,
|
|
3359
|
-
Reason,
|
|
3360
|
-
RefundStatus,
|
|
3361
|
-
RefundableStatus,
|
|
3362
|
-
RestockType,
|
|
3363
|
-
ScheduledAction,
|
|
3364
2342
|
SortOrder,
|
|
3365
2343
|
SourceType,
|
|
3366
|
-
State,
|
|
3367
2344
|
SubdivisionType,
|
|
3368
2345
|
SubscriptionFrequency,
|
|
3369
2346
|
TaxableAddressType,
|
|
3370
|
-
TextDetection,
|
|
3371
|
-
TransactionStatus,
|
|
3372
2347
|
ValueType,
|
|
3373
2348
|
VatType,
|
|
3374
|
-
VersioningMode,
|
|
3375
2349
|
WebhookIdentityType,
|
|
3376
2350
|
WeightUnit,
|
|
3377
2351
|
addActivity4 as addActivity,
|
|
@@ -3379,29 +2353,19 @@ export {
|
|
|
3379
2353
|
bulkUpdateOrderTags4 as bulkUpdateOrderTags,
|
|
3380
2354
|
bulkUpdateOrders4 as bulkUpdateOrders,
|
|
3381
2355
|
cancelOrder4 as cancelOrder,
|
|
3382
|
-
captureAuthorizedPayments4 as captureAuthorizedPayments,
|
|
3383
|
-
chargeMemberships4 as chargeMemberships,
|
|
3384
2356
|
commitDeltas4 as commitDeltas,
|
|
3385
2357
|
createOrder4 as createOrder,
|
|
3386
2358
|
deleteActivity4 as deleteActivity,
|
|
3387
2359
|
getOrder4 as getOrder,
|
|
3388
|
-
getPaymentCollectabilityStatus4 as getPaymentCollectabilityStatus,
|
|
3389
|
-
getRefundabilityStatus4 as getRefundabilityStatus,
|
|
3390
2360
|
onOrderApproved2 as onOrderApproved,
|
|
3391
2361
|
onOrderCanceled2 as onOrderCanceled,
|
|
3392
2362
|
onOrderCreated2 as onOrderCreated,
|
|
2363
|
+
onOrderPaymentStatusUpdated2 as onOrderPaymentStatusUpdated,
|
|
3393
2364
|
onOrderUpdated2 as onOrderUpdated,
|
|
3394
|
-
paymentCollectionBulkMarkOrdersAsPaid4 as paymentCollectionBulkMarkOrdersAsPaid,
|
|
3395
|
-
paymentCollectionCreatePaymentGatewayOrder4 as paymentCollectionCreatePaymentGatewayOrder,
|
|
3396
|
-
paymentCollectionMarkOrderAsPaid4 as paymentCollectionMarkOrderAsPaid,
|
|
3397
|
-
preparePaymentCollection4 as preparePaymentCollection,
|
|
3398
|
-
recordManuallyCollectedPayment4 as recordManuallyCollectedPayment,
|
|
3399
2365
|
searchOrders4 as searchOrders,
|
|
3400
|
-
triggerRefund4 as triggerRefund,
|
|
3401
2366
|
updateActivity4 as updateActivity,
|
|
3402
2367
|
updateOrder4 as updateOrder,
|
|
3403
2368
|
updateOrderLineItem4 as updateOrderLineItem,
|
|
3404
|
-
updateOrderStatus4 as updateOrderStatus
|
|
3405
|
-
voidAuthorizedPayments4 as voidAuthorizedPayments
|
|
2369
|
+
updateOrderStatus4 as updateOrderStatus
|
|
3406
2370
|
};
|
|
3407
2371
|
//# sourceMappingURL=index.mjs.map
|