@wix/auto_sdk_ecom_orders 1.0.68 → 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 +2 -2
|
@@ -15,139 +15,23 @@ import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transform
|
|
|
15
15
|
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
16
16
|
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
17
17
|
function resolveComWixEcomOrdersV1OrdersUrl(opts) {
|
|
18
|
-
const domainToMappings = {
|
|
19
|
-
_: [
|
|
20
|
-
{
|
|
21
|
-
srcPath: "/_api/ecom-orders",
|
|
22
|
-
destPath: ""
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
srcPath: "/_api/orders",
|
|
26
|
-
destPath: ""
|
|
27
|
-
}
|
|
28
|
-
],
|
|
29
|
-
"manage._base_domain_": [
|
|
30
|
-
{
|
|
31
|
-
srcPath: "/_api/ecom-orders",
|
|
32
|
-
destPath: ""
|
|
33
|
-
}
|
|
34
|
-
],
|
|
35
|
-
"www.wixapis.com": [
|
|
36
|
-
{
|
|
37
|
-
srcPath: "/ecom/v1/bulk/orders",
|
|
38
|
-
destPath: "/v1/bulk/orders"
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
srcPath: "/ecom/v1/orders",
|
|
42
|
-
destPath: "/v1/orders"
|
|
43
|
-
}
|
|
44
|
-
]
|
|
45
|
-
};
|
|
46
|
-
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
47
|
-
}
|
|
48
|
-
function resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl(opts) {
|
|
49
|
-
const domainToMappings = {
|
|
50
|
-
"api._api_base_domain_": [
|
|
51
|
-
{
|
|
52
|
-
srcPath: "/payments-collector",
|
|
53
|
-
destPath: ""
|
|
54
|
-
}
|
|
55
|
-
],
|
|
56
|
-
"www.wixapis.com": [
|
|
57
|
-
{
|
|
58
|
-
srcPath: "/ecom/v1/payments-collector",
|
|
59
|
-
destPath: "/v1/payments-collector"
|
|
60
|
-
}
|
|
61
|
-
],
|
|
62
|
-
"manage._base_domain_": [
|
|
63
|
-
{
|
|
64
|
-
srcPath: "/ecom/v1/payments-collector",
|
|
65
|
-
destPath: "/v1/payments-collector"
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
srcPath: "/_api/v1/payments-collector",
|
|
69
|
-
destPath: "/v1/payments-collector"
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
srcPath: "/v1/payments-collector",
|
|
73
|
-
destPath: "/v1/payments-collector"
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
srcPath: "/_api/payments-collector",
|
|
77
|
-
destPath: "/v1/payments-collector"
|
|
78
|
-
}
|
|
79
|
-
]
|
|
80
|
-
};
|
|
18
|
+
const domainToMappings = {};
|
|
81
19
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
82
20
|
}
|
|
83
21
|
var PACKAGE_NAME = "@wix/auto_sdk_ecom_orders";
|
|
84
|
-
function
|
|
85
|
-
function
|
|
86
|
-
const metadata = {
|
|
87
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
88
|
-
method: "POST",
|
|
89
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.PreparePaymentCollection",
|
|
90
|
-
packageName: PACKAGE_NAME,
|
|
91
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
92
|
-
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/prepare-payment-collection",
|
|
93
|
-
data: payload,
|
|
94
|
-
host
|
|
95
|
-
}),
|
|
96
|
-
data: payload
|
|
97
|
-
};
|
|
98
|
-
return metadata;
|
|
99
|
-
}
|
|
100
|
-
return __preparePaymentCollection;
|
|
101
|
-
}
|
|
102
|
-
function getPaymentCollectabilityStatus(payload) {
|
|
103
|
-
function __getPaymentCollectabilityStatus({ host }) {
|
|
22
|
+
function getOrder(payload) {
|
|
23
|
+
function __getOrder({ host }) {
|
|
104
24
|
const metadata = {
|
|
105
25
|
entityFqdn: "wix.ecom.v1.order",
|
|
106
26
|
method: "GET",
|
|
107
|
-
methodFqn: "com.wix.ecom.orders.
|
|
108
|
-
packageName: PACKAGE_NAME,
|
|
109
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
110
|
-
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/payment-collectability-status",
|
|
111
|
-
data: payload,
|
|
112
|
-
host
|
|
113
|
-
}),
|
|
114
|
-
params: toURLSearchParams(payload)
|
|
115
|
-
};
|
|
116
|
-
return metadata;
|
|
117
|
-
}
|
|
118
|
-
return __getPaymentCollectabilityStatus;
|
|
119
|
-
}
|
|
120
|
-
function recordManuallyCollectedPayment(payload) {
|
|
121
|
-
function __recordManuallyCollectedPayment({ host }) {
|
|
122
|
-
const metadata = {
|
|
123
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
124
|
-
method: "POST",
|
|
125
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.RecordManuallyCollectedPayment",
|
|
126
|
-
packageName: PACKAGE_NAME,
|
|
127
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
128
|
-
protoPath: "/v1/payments-collector/orders/{orderId}/manual-payment",
|
|
129
|
-
data: payload,
|
|
130
|
-
host
|
|
131
|
-
}),
|
|
132
|
-
data: payload
|
|
133
|
-
};
|
|
134
|
-
return metadata;
|
|
135
|
-
}
|
|
136
|
-
return __recordManuallyCollectedPayment;
|
|
137
|
-
}
|
|
138
|
-
function paymentCollectionMarkOrderAsPaid(payload) {
|
|
139
|
-
function __paymentCollectionMarkOrderAsPaid({ host }) {
|
|
140
|
-
const metadata = {
|
|
141
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
142
|
-
method: "POST",
|
|
143
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.MarkOrderAsPaid",
|
|
27
|
+
methodFqn: "com.wix.ecom.orders.v1.Orders.GetOrder",
|
|
144
28
|
packageName: PACKAGE_NAME,
|
|
145
|
-
url:
|
|
146
|
-
protoPath: "/v1/
|
|
29
|
+
url: resolveComWixEcomOrdersV1OrdersUrl({
|
|
30
|
+
protoPath: "/v1/orders/{id}",
|
|
147
31
|
data: payload,
|
|
148
32
|
host
|
|
149
33
|
}),
|
|
150
|
-
|
|
34
|
+
params: toURLSearchParams(payload),
|
|
151
35
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
152
36
|
{
|
|
153
37
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
@@ -194,17 +78,17 @@ function paymentCollectionMarkOrderAsPaid(payload) {
|
|
|
194
78
|
};
|
|
195
79
|
return metadata;
|
|
196
80
|
}
|
|
197
|
-
return
|
|
81
|
+
return __getOrder;
|
|
198
82
|
}
|
|
199
|
-
function
|
|
200
|
-
function
|
|
83
|
+
function searchOrders(payload) {
|
|
84
|
+
function __searchOrders({ host }) {
|
|
201
85
|
const metadata = {
|
|
202
86
|
entityFqdn: "wix.ecom.v1.order",
|
|
203
87
|
method: "POST",
|
|
204
|
-
methodFqn: "com.wix.ecom.orders.
|
|
88
|
+
methodFqn: "com.wix.ecom.orders.v1.Orders.SearchOrders",
|
|
205
89
|
packageName: PACKAGE_NAME,
|
|
206
|
-
url:
|
|
207
|
-
protoPath: "/v1/
|
|
90
|
+
url: resolveComWixEcomOrdersV1OrdersUrl({
|
|
91
|
+
protoPath: "/v1/orders/search",
|
|
208
92
|
data: payload,
|
|
209
93
|
host
|
|
210
94
|
}),
|
|
@@ -213,459 +97,153 @@ function paymentCollectionBulkMarkOrdersAsPaid(payload) {
|
|
|
213
97
|
{
|
|
214
98
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
215
99
|
paths: [
|
|
216
|
-
{ path: "
|
|
217
|
-
{ path: "
|
|
218
|
-
{ path: "
|
|
219
|
-
{ path: "
|
|
220
|
-
{ path: "
|
|
221
|
-
{
|
|
222
|
-
path: "results.item.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
223
|
-
},
|
|
224
|
-
{ path: "results.item.shippingInfo.logistics.deliverByDate" },
|
|
225
|
-
{
|
|
226
|
-
path: "results.item.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
227
|
-
},
|
|
100
|
+
{ path: "orders.createdDate" },
|
|
101
|
+
{ path: "orders.updatedDate" },
|
|
102
|
+
{ path: "orders.purchasedDate" },
|
|
103
|
+
{ path: "orders.lineItems.image.urlExpirationDate" },
|
|
104
|
+
{ path: "orders.lineItems.digitalFile.expirationDate" },
|
|
228
105
|
{
|
|
229
|
-
path: "
|
|
106
|
+
path: "orders.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
230
107
|
},
|
|
231
|
-
{ path: "
|
|
108
|
+
{ path: "orders.shippingInfo.logistics.deliverByDate" },
|
|
109
|
+
{ path: "orders.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
110
|
+
{ path: "orders.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
111
|
+
{ path: "orders.activities.createdDate" }
|
|
232
112
|
]
|
|
233
113
|
},
|
|
234
114
|
{
|
|
235
115
|
transformFn: transformRESTFloatToSDKFloat,
|
|
236
116
|
paths: [
|
|
237
|
-
{ path: "
|
|
238
|
-
{ path: "
|
|
239
|
-
{ path: "
|
|
240
|
-
{ path: "
|
|
241
|
-
{ path: "
|
|
117
|
+
{ path: "orders.lineItems.image.focalPoint.x" },
|
|
118
|
+
{ path: "orders.lineItems.image.focalPoint.y" },
|
|
119
|
+
{ path: "orders.lineItems.physicalProperties.weight" },
|
|
120
|
+
{ path: "orders.billingInfo.address.geocode.latitude" },
|
|
121
|
+
{ path: "orders.billingInfo.address.geocode.longitude" },
|
|
242
122
|
{
|
|
243
|
-
path: "
|
|
123
|
+
path: "orders.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
244
124
|
},
|
|
245
125
|
{
|
|
246
|
-
path: "
|
|
126
|
+
path: "orders.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
247
127
|
},
|
|
248
128
|
{
|
|
249
|
-
path: "
|
|
129
|
+
path: "orders.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
250
130
|
},
|
|
251
131
|
{
|
|
252
|
-
path: "
|
|
132
|
+
path: "orders.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
253
133
|
},
|
|
254
|
-
{ path: "
|
|
255
|
-
{ path: "
|
|
134
|
+
{ path: "orders.recipientInfo.address.geocode.latitude" },
|
|
135
|
+
{ path: "orders.recipientInfo.address.geocode.longitude" }
|
|
256
136
|
]
|
|
257
137
|
}
|
|
258
138
|
])
|
|
259
139
|
};
|
|
260
140
|
return metadata;
|
|
261
141
|
}
|
|
262
|
-
return
|
|
263
|
-
}
|
|
264
|
-
function getRefundabilityStatus(payload) {
|
|
265
|
-
function __getRefundabilityStatus({ host }) {
|
|
266
|
-
const metadata = {
|
|
267
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
268
|
-
method: "GET",
|
|
269
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.GetRefundabilityStatus",
|
|
270
|
-
packageName: PACKAGE_NAME,
|
|
271
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
272
|
-
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/refundability",
|
|
273
|
-
data: payload,
|
|
274
|
-
host
|
|
275
|
-
}),
|
|
276
|
-
params: toURLSearchParams(payload)
|
|
277
|
-
};
|
|
278
|
-
return metadata;
|
|
279
|
-
}
|
|
280
|
-
return __getRefundabilityStatus;
|
|
281
|
-
}
|
|
282
|
-
function paymentCollectionCreatePaymentGatewayOrder(payload) {
|
|
283
|
-
function __paymentCollectionCreatePaymentGatewayOrder({ host }) {
|
|
284
|
-
const metadata = {
|
|
285
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
286
|
-
method: "POST",
|
|
287
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.CreatePaymentGatewayOrder",
|
|
288
|
-
packageName: PACKAGE_NAME,
|
|
289
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
290
|
-
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/create-payment-gateway-order",
|
|
291
|
-
data: payload,
|
|
292
|
-
host
|
|
293
|
-
}),
|
|
294
|
-
data: payload
|
|
295
|
-
};
|
|
296
|
-
return metadata;
|
|
297
|
-
}
|
|
298
|
-
return __paymentCollectionCreatePaymentGatewayOrder;
|
|
142
|
+
return __searchOrders;
|
|
299
143
|
}
|
|
300
|
-
function
|
|
301
|
-
function
|
|
144
|
+
function createOrder(payload) {
|
|
145
|
+
function __createOrder({ host }) {
|
|
302
146
|
const serializedData = transformPaths(payload, [
|
|
303
147
|
{
|
|
304
148
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
305
|
-
paths: [
|
|
149
|
+
paths: [
|
|
150
|
+
{ path: "order.createdDate" },
|
|
151
|
+
{ path: "order.updatedDate" },
|
|
152
|
+
{ path: "order.purchasedDate" },
|
|
153
|
+
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
154
|
+
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
155
|
+
{
|
|
156
|
+
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
157
|
+
},
|
|
158
|
+
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
159
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
160
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
161
|
+
{ path: "order.activities.createdDate" }
|
|
162
|
+
]
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
166
|
+
paths: [
|
|
167
|
+
{ path: "order.lineItems.image.focalPoint.x" },
|
|
168
|
+
{ path: "order.lineItems.image.focalPoint.y" },
|
|
169
|
+
{ path: "order.lineItems.physicalProperties.weight" },
|
|
170
|
+
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
171
|
+
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
172
|
+
{
|
|
173
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
183
|
+
},
|
|
184
|
+
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
185
|
+
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
186
|
+
]
|
|
306
187
|
}
|
|
307
188
|
]);
|
|
308
189
|
const metadata = {
|
|
309
190
|
entityFqdn: "wix.ecom.v1.order",
|
|
310
191
|
method: "POST",
|
|
311
|
-
methodFqn: "com.wix.ecom.orders.
|
|
192
|
+
methodFqn: "com.wix.ecom.orders.v1.Orders.CreateOrder",
|
|
312
193
|
packageName: PACKAGE_NAME,
|
|
313
|
-
url:
|
|
314
|
-
protoPath: "/v1/
|
|
194
|
+
url: resolveComWixEcomOrdersV1OrdersUrl({
|
|
195
|
+
protoPath: "/v1/orders",
|
|
315
196
|
data: serializedData,
|
|
316
197
|
host
|
|
317
198
|
}),
|
|
318
|
-
data: serializedData
|
|
319
|
-
};
|
|
320
|
-
return metadata;
|
|
321
|
-
}
|
|
322
|
-
return __chargeMemberships;
|
|
323
|
-
}
|
|
324
|
-
function triggerRefund(payload) {
|
|
325
|
-
function __triggerRefund({ host }) {
|
|
326
|
-
const metadata = {
|
|
327
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
328
|
-
method: "POST",
|
|
329
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.TriggerRefund",
|
|
330
|
-
packageName: PACKAGE_NAME,
|
|
331
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
332
|
-
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/trigger-refund",
|
|
333
|
-
data: payload,
|
|
334
|
-
host
|
|
335
|
-
}),
|
|
336
|
-
data: payload,
|
|
199
|
+
data: serializedData,
|
|
337
200
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
338
201
|
{
|
|
339
202
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
340
203
|
paths: [
|
|
341
|
-
{ path: "
|
|
342
|
-
{ path: "
|
|
343
|
-
{
|
|
344
|
-
|
|
345
|
-
},
|
|
346
|
-
{
|
|
347
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
348
|
-
},
|
|
349
|
-
{
|
|
350
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
351
|
-
},
|
|
204
|
+
{ path: "order.createdDate" },
|
|
205
|
+
{ path: "order.updatedDate" },
|
|
206
|
+
{ path: "order.purchasedDate" },
|
|
207
|
+
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
208
|
+
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
352
209
|
{
|
|
353
|
-
path: "
|
|
210
|
+
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
354
211
|
},
|
|
355
|
-
{ path: "
|
|
212
|
+
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
213
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
214
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
215
|
+
{ path: "order.activities.createdDate" }
|
|
356
216
|
]
|
|
357
|
-
}
|
|
358
|
-
])
|
|
359
|
-
};
|
|
360
|
-
return metadata;
|
|
361
|
-
}
|
|
362
|
-
return __triggerRefund;
|
|
363
|
-
}
|
|
364
|
-
function voidAuthorizedPayments(payload) {
|
|
365
|
-
function __voidAuthorizedPayments({ host }) {
|
|
366
|
-
const metadata = {
|
|
367
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
368
|
-
method: "POST",
|
|
369
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.VoidAuthorizedPayments",
|
|
370
|
-
packageName: PACKAGE_NAME,
|
|
371
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
372
|
-
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/void-authorized-payments",
|
|
373
|
-
data: payload,
|
|
374
|
-
host
|
|
375
|
-
}),
|
|
376
|
-
data: payload,
|
|
377
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
217
|
+
},
|
|
378
218
|
{
|
|
379
|
-
transformFn:
|
|
219
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
380
220
|
paths: [
|
|
381
|
-
{ path: "
|
|
382
|
-
{ path: "
|
|
221
|
+
{ path: "order.lineItems.image.focalPoint.x" },
|
|
222
|
+
{ path: "order.lineItems.image.focalPoint.y" },
|
|
223
|
+
{ path: "order.lineItems.physicalProperties.weight" },
|
|
224
|
+
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
225
|
+
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
383
226
|
{
|
|
384
|
-
path: "
|
|
227
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
385
228
|
},
|
|
386
229
|
{
|
|
387
|
-
path: "
|
|
230
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
388
231
|
},
|
|
389
232
|
{
|
|
390
|
-
path: "
|
|
233
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
391
234
|
},
|
|
392
235
|
{
|
|
393
|
-
path: "
|
|
236
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
394
237
|
},
|
|
395
|
-
{ path: "
|
|
238
|
+
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
239
|
+
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
396
240
|
]
|
|
397
241
|
}
|
|
398
242
|
])
|
|
399
243
|
};
|
|
400
244
|
return metadata;
|
|
401
245
|
}
|
|
402
|
-
return
|
|
403
|
-
}
|
|
404
|
-
function captureAuthorizedPayments(payload) {
|
|
405
|
-
function __captureAuthorizedPayments({ host }) {
|
|
406
|
-
const metadata = {
|
|
407
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
408
|
-
method: "POST",
|
|
409
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.CaptureAuthorizedPayments",
|
|
410
|
-
packageName: PACKAGE_NAME,
|
|
411
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
412
|
-
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/capture-authorized-payments",
|
|
413
|
-
data: payload,
|
|
414
|
-
host
|
|
415
|
-
}),
|
|
416
|
-
data: payload,
|
|
417
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
418
|
-
{
|
|
419
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
420
|
-
paths: [
|
|
421
|
-
{ path: "orderTransactions.payments.createdDate" },
|
|
422
|
-
{ path: "orderTransactions.payments.updatedDate" },
|
|
423
|
-
{
|
|
424
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
|
|
425
|
-
},
|
|
426
|
-
{
|
|
427
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
428
|
-
},
|
|
429
|
-
{
|
|
430
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
431
|
-
},
|
|
432
|
-
{
|
|
433
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
434
|
-
},
|
|
435
|
-
{ path: "orderTransactions.refunds.createdDate" }
|
|
436
|
-
]
|
|
437
|
-
}
|
|
438
|
-
])
|
|
439
|
-
};
|
|
440
|
-
return metadata;
|
|
441
|
-
}
|
|
442
|
-
return __captureAuthorizedPayments;
|
|
443
|
-
}
|
|
444
|
-
function getOrder(payload) {
|
|
445
|
-
function __getOrder({ host }) {
|
|
446
|
-
const metadata = {
|
|
447
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
448
|
-
method: "GET",
|
|
449
|
-
methodFqn: "com.wix.ecom.orders.v1.Orders.GetOrder",
|
|
450
|
-
packageName: PACKAGE_NAME,
|
|
451
|
-
url: resolveComWixEcomOrdersV1OrdersUrl({
|
|
452
|
-
protoPath: "/v1/orders/{id}",
|
|
453
|
-
data: payload,
|
|
454
|
-
host
|
|
455
|
-
}),
|
|
456
|
-
params: toURLSearchParams(payload),
|
|
457
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
458
|
-
{
|
|
459
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
460
|
-
paths: [
|
|
461
|
-
{ path: "order.createdDate" },
|
|
462
|
-
{ path: "order.updatedDate" },
|
|
463
|
-
{ path: "order.purchasedDate" },
|
|
464
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
465
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
466
|
-
{
|
|
467
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
468
|
-
},
|
|
469
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
470
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
471
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
472
|
-
{ path: "order.activities.createdDate" }
|
|
473
|
-
]
|
|
474
|
-
},
|
|
475
|
-
{
|
|
476
|
-
transformFn: transformRESTFloatToSDKFloat,
|
|
477
|
-
paths: [
|
|
478
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
479
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
480
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
481
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
482
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
483
|
-
{
|
|
484
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
485
|
-
},
|
|
486
|
-
{
|
|
487
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
488
|
-
},
|
|
489
|
-
{
|
|
490
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
491
|
-
},
|
|
492
|
-
{
|
|
493
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
494
|
-
},
|
|
495
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
496
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
497
|
-
]
|
|
498
|
-
}
|
|
499
|
-
])
|
|
500
|
-
};
|
|
501
|
-
return metadata;
|
|
502
|
-
}
|
|
503
|
-
return __getOrder;
|
|
504
|
-
}
|
|
505
|
-
function searchOrders(payload) {
|
|
506
|
-
function __searchOrders({ host }) {
|
|
507
|
-
const metadata = {
|
|
508
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
509
|
-
method: "POST",
|
|
510
|
-
methodFqn: "com.wix.ecom.orders.v1.Orders.SearchOrders",
|
|
511
|
-
packageName: PACKAGE_NAME,
|
|
512
|
-
url: resolveComWixEcomOrdersV1OrdersUrl({
|
|
513
|
-
protoPath: "/v1/orders/search",
|
|
514
|
-
data: payload,
|
|
515
|
-
host
|
|
516
|
-
}),
|
|
517
|
-
data: payload,
|
|
518
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
519
|
-
{
|
|
520
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
521
|
-
paths: [
|
|
522
|
-
{ path: "orders.createdDate" },
|
|
523
|
-
{ path: "orders.updatedDate" },
|
|
524
|
-
{ path: "orders.purchasedDate" },
|
|
525
|
-
{ path: "orders.lineItems.image.urlExpirationDate" },
|
|
526
|
-
{ path: "orders.lineItems.digitalFile.expirationDate" },
|
|
527
|
-
{
|
|
528
|
-
path: "orders.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
529
|
-
},
|
|
530
|
-
{ path: "orders.shippingInfo.logistics.deliverByDate" },
|
|
531
|
-
{ path: "orders.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
532
|
-
{ path: "orders.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
533
|
-
{ path: "orders.activities.createdDate" }
|
|
534
|
-
]
|
|
535
|
-
},
|
|
536
|
-
{
|
|
537
|
-
transformFn: transformRESTFloatToSDKFloat,
|
|
538
|
-
paths: [
|
|
539
|
-
{ path: "orders.lineItems.image.focalPoint.x" },
|
|
540
|
-
{ path: "orders.lineItems.image.focalPoint.y" },
|
|
541
|
-
{ path: "orders.lineItems.physicalProperties.weight" },
|
|
542
|
-
{ path: "orders.billingInfo.address.geocode.latitude" },
|
|
543
|
-
{ path: "orders.billingInfo.address.geocode.longitude" },
|
|
544
|
-
{
|
|
545
|
-
path: "orders.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
546
|
-
},
|
|
547
|
-
{
|
|
548
|
-
path: "orders.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
549
|
-
},
|
|
550
|
-
{
|
|
551
|
-
path: "orders.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
552
|
-
},
|
|
553
|
-
{
|
|
554
|
-
path: "orders.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
555
|
-
},
|
|
556
|
-
{ path: "orders.recipientInfo.address.geocode.latitude" },
|
|
557
|
-
{ path: "orders.recipientInfo.address.geocode.longitude" }
|
|
558
|
-
]
|
|
559
|
-
}
|
|
560
|
-
])
|
|
561
|
-
};
|
|
562
|
-
return metadata;
|
|
563
|
-
}
|
|
564
|
-
return __searchOrders;
|
|
565
|
-
}
|
|
566
|
-
function createOrder(payload) {
|
|
567
|
-
function __createOrder({ host }) {
|
|
568
|
-
const serializedData = transformPaths(payload, [
|
|
569
|
-
{
|
|
570
|
-
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
571
|
-
paths: [
|
|
572
|
-
{ path: "order.createdDate" },
|
|
573
|
-
{ path: "order.updatedDate" },
|
|
574
|
-
{ path: "order.purchasedDate" },
|
|
575
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
576
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
577
|
-
{
|
|
578
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
579
|
-
},
|
|
580
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
581
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
582
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
583
|
-
{ path: "order.activities.createdDate" }
|
|
584
|
-
]
|
|
585
|
-
},
|
|
586
|
-
{
|
|
587
|
-
transformFn: transformSDKFloatToRESTFloat,
|
|
588
|
-
paths: [
|
|
589
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
590
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
591
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
592
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
593
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
594
|
-
{
|
|
595
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
596
|
-
},
|
|
597
|
-
{
|
|
598
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
599
|
-
},
|
|
600
|
-
{
|
|
601
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
602
|
-
},
|
|
603
|
-
{
|
|
604
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
605
|
-
},
|
|
606
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
607
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
608
|
-
]
|
|
609
|
-
}
|
|
610
|
-
]);
|
|
611
|
-
const metadata = {
|
|
612
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
613
|
-
method: "POST",
|
|
614
|
-
methodFqn: "com.wix.ecom.orders.v1.Orders.CreateOrder",
|
|
615
|
-
packageName: PACKAGE_NAME,
|
|
616
|
-
url: resolveComWixEcomOrdersV1OrdersUrl({
|
|
617
|
-
protoPath: "/v1/orders",
|
|
618
|
-
data: serializedData,
|
|
619
|
-
host
|
|
620
|
-
}),
|
|
621
|
-
data: serializedData,
|
|
622
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
623
|
-
{
|
|
624
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
625
|
-
paths: [
|
|
626
|
-
{ path: "order.createdDate" },
|
|
627
|
-
{ path: "order.updatedDate" },
|
|
628
|
-
{ path: "order.purchasedDate" },
|
|
629
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
630
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
631
|
-
{
|
|
632
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
633
|
-
},
|
|
634
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
635
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
636
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
637
|
-
{ path: "order.activities.createdDate" }
|
|
638
|
-
]
|
|
639
|
-
},
|
|
640
|
-
{
|
|
641
|
-
transformFn: transformRESTFloatToSDKFloat,
|
|
642
|
-
paths: [
|
|
643
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
644
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
645
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
646
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
647
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
648
|
-
{
|
|
649
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
650
|
-
},
|
|
651
|
-
{
|
|
652
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
653
|
-
},
|
|
654
|
-
{
|
|
655
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
656
|
-
},
|
|
657
|
-
{
|
|
658
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
659
|
-
},
|
|
660
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
661
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
662
|
-
]
|
|
663
|
-
}
|
|
664
|
-
])
|
|
665
|
-
};
|
|
666
|
-
return metadata;
|
|
667
|
-
}
|
|
668
|
-
return __createOrder;
|
|
246
|
+
return __createOrder;
|
|
669
247
|
}
|
|
670
248
|
function updateOrder(payload) {
|
|
671
249
|
function __updateOrder({ host }) {
|
|
@@ -1591,202 +1169,11 @@ var ChannelType = /* @__PURE__ */ ((ChannelType2) => {
|
|
|
1591
1169
|
ChannelType2["FAIRE_COM"] = "FAIRE_COM";
|
|
1592
1170
|
return ChannelType2;
|
|
1593
1171
|
})(ChannelType || {});
|
|
1594
|
-
var ScheduledAction = /* @__PURE__ */ ((ScheduledAction2) => {
|
|
1595
|
-
ScheduledAction2["UNSPECIFIED"] = "UNSPECIFIED";
|
|
1596
|
-
ScheduledAction2["VOID"] = "VOID";
|
|
1597
|
-
ScheduledAction2["CAPTURE"] = "CAPTURE";
|
|
1598
|
-
return ScheduledAction2;
|
|
1599
|
-
})(ScheduledAction || {});
|
|
1600
|
-
var DurationUnit = /* @__PURE__ */ ((DurationUnit2) => {
|
|
1601
|
-
DurationUnit2["UNKNOWN_DURATION_UNIT"] = "UNKNOWN_DURATION_UNIT";
|
|
1602
|
-
DurationUnit2["MINUTES"] = "MINUTES";
|
|
1603
|
-
DurationUnit2["HOURS"] = "HOURS";
|
|
1604
|
-
DurationUnit2["DAYS"] = "DAYS";
|
|
1605
|
-
return DurationUnit2;
|
|
1606
|
-
})(DurationUnit || {});
|
|
1607
|
-
var PaymentCollectabilityStatus = /* @__PURE__ */ ((PaymentCollectabilityStatus2) => {
|
|
1608
|
-
PaymentCollectabilityStatus2["UNKNOWN"] = "UNKNOWN";
|
|
1609
|
-
PaymentCollectabilityStatus2["COLLECTABLE"] = "COLLECTABLE";
|
|
1610
|
-
PaymentCollectabilityStatus2["NONCOLLECTABLE_ORDER_IS_CANCELLED"] = "NONCOLLECTABLE_ORDER_IS_CANCELLED";
|
|
1611
|
-
PaymentCollectabilityStatus2["NONCOLLECTABLE_ORDER_IS_PAID"] = "NONCOLLECTABLE_ORDER_IS_PAID";
|
|
1612
|
-
PaymentCollectabilityStatus2["NONCOLLECTABLE_MISSING_PAYMENT_METHOD"] = "NONCOLLECTABLE_MISSING_PAYMENT_METHOD";
|
|
1613
|
-
PaymentCollectabilityStatus2["NONCOLLECTABLE_ORDER_IS_PENDING"] = "NONCOLLECTABLE_ORDER_IS_PENDING";
|
|
1614
|
-
PaymentCollectabilityStatus2["NONCOLLECTABLE_ORDER_IS_REJECTED"] = "NONCOLLECTABLE_ORDER_IS_REJECTED";
|
|
1615
|
-
PaymentCollectabilityStatus2["NONCOLLECTABLE_ORDER_HAS_SUBSCRIPTIONS"] = "NONCOLLECTABLE_ORDER_HAS_SUBSCRIPTIONS";
|
|
1616
|
-
return PaymentCollectabilityStatus2;
|
|
1617
|
-
})(PaymentCollectabilityStatus || {});
|
|
1618
|
-
var RefundableStatus = /* @__PURE__ */ ((RefundableStatus2) => {
|
|
1619
|
-
RefundableStatus2["NOT_REFUNDABLE"] = "NOT_REFUNDABLE";
|
|
1620
|
-
RefundableStatus2["MANUAL"] = "MANUAL";
|
|
1621
|
-
RefundableStatus2["REFUNDABLE"] = "REFUNDABLE";
|
|
1622
|
-
return RefundableStatus2;
|
|
1623
|
-
})(RefundableStatus || {});
|
|
1624
|
-
var NonRefundableReason = /* @__PURE__ */ ((NonRefundableReason2) => {
|
|
1625
|
-
NonRefundableReason2["NONE"] = "NONE";
|
|
1626
|
-
NonRefundableReason2["ALREADY_REFUNDED"] = "ALREADY_REFUNDED";
|
|
1627
|
-
NonRefundableReason2["PROVIDER_IS_DOWN"] = "PROVIDER_IS_DOWN";
|
|
1628
|
-
NonRefundableReason2["INTERNAL_ERROR"] = "INTERNAL_ERROR";
|
|
1629
|
-
NonRefundableReason2["NOT_PAID"] = "NOT_PAID";
|
|
1630
|
-
NonRefundableReason2["ACCESS_DENIED"] = "ACCESS_DENIED";
|
|
1631
|
-
NonRefundableReason2["ZERO_PRICE"] = "ZERO_PRICE";
|
|
1632
|
-
NonRefundableReason2["DISABLED_BY_PROVIDER"] = "DISABLED_BY_PROVIDER";
|
|
1633
|
-
NonRefundableReason2["PENDING_REFUND"] = "PENDING_REFUND";
|
|
1634
|
-
NonRefundableReason2["FORBIDDEN"] = "FORBIDDEN";
|
|
1635
|
-
NonRefundableReason2["TRANSACTION_NOT_FOUND"] = "TRANSACTION_NOT_FOUND";
|
|
1636
|
-
NonRefundableReason2["ORDER_IS_PENDING"] = "ORDER_IS_PENDING";
|
|
1637
|
-
NonRefundableReason2["ORDER_IS_REJECTED"] = "ORDER_IS_REJECTED";
|
|
1638
|
-
return NonRefundableReason2;
|
|
1639
|
-
})(NonRefundableReason || {});
|
|
1640
|
-
var ManuallyRefundableReason = /* @__PURE__ */ ((ManuallyRefundableReason2) => {
|
|
1641
|
-
ManuallyRefundableReason2["EXPIRED"] = "EXPIRED";
|
|
1642
|
-
ManuallyRefundableReason2["NOT_SUPPORTED"] = "NOT_SUPPORTED";
|
|
1643
|
-
ManuallyRefundableReason2["OFFLINE"] = "OFFLINE";
|
|
1644
|
-
ManuallyRefundableReason2["REQUIRES_CARD_READER"] = "REQUIRES_CARD_READER";
|
|
1645
|
-
return ManuallyRefundableReason2;
|
|
1646
|
-
})(ManuallyRefundableReason || {});
|
|
1647
|
-
var RestockType = /* @__PURE__ */ ((RestockType2) => {
|
|
1648
|
-
RestockType2["NO_ITEMS"] = "NO_ITEMS";
|
|
1649
|
-
RestockType2["ALL_ITEMS"] = "ALL_ITEMS";
|
|
1650
|
-
RestockType2["SOME_ITEMS"] = "SOME_ITEMS";
|
|
1651
|
-
return RestockType2;
|
|
1652
|
-
})(RestockType || {});
|
|
1653
|
-
var TransactionStatus = /* @__PURE__ */ ((TransactionStatus2) => {
|
|
1654
|
-
TransactionStatus2["UNDEFINED"] = "UNDEFINED";
|
|
1655
|
-
TransactionStatus2["APPROVED"] = "APPROVED";
|
|
1656
|
-
TransactionStatus2["PENDING"] = "PENDING";
|
|
1657
|
-
TransactionStatus2["PENDING_MERCHANT"] = "PENDING_MERCHANT";
|
|
1658
|
-
TransactionStatus2["CANCELED"] = "CANCELED";
|
|
1659
|
-
TransactionStatus2["DECLINED"] = "DECLINED";
|
|
1660
|
-
TransactionStatus2["REFUNDED"] = "REFUNDED";
|
|
1661
|
-
TransactionStatus2["PARTIALLY_REFUNDED"] = "PARTIALLY_REFUNDED";
|
|
1662
|
-
TransactionStatus2["AUTHORIZED"] = "AUTHORIZED";
|
|
1663
|
-
TransactionStatus2["VOIDED"] = "VOIDED";
|
|
1664
|
-
return TransactionStatus2;
|
|
1665
|
-
})(TransactionStatus || {});
|
|
1666
|
-
var AuthorizationCaptureStatus = /* @__PURE__ */ ((AuthorizationCaptureStatus2) => {
|
|
1667
|
-
AuthorizationCaptureStatus2["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
|
|
1668
|
-
AuthorizationCaptureStatus2["PENDING"] = "PENDING";
|
|
1669
|
-
AuthorizationCaptureStatus2["SUCCEEDED"] = "SUCCEEDED";
|
|
1670
|
-
AuthorizationCaptureStatus2["FAILED"] = "FAILED";
|
|
1671
|
-
return AuthorizationCaptureStatus2;
|
|
1672
|
-
})(AuthorizationCaptureStatus || {});
|
|
1673
|
-
var AuthorizationVoidStatus = /* @__PURE__ */ ((AuthorizationVoidStatus2) => {
|
|
1674
|
-
AuthorizationVoidStatus2["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
|
|
1675
|
-
AuthorizationVoidStatus2["PENDING"] = "PENDING";
|
|
1676
|
-
AuthorizationVoidStatus2["SUCCEEDED"] = "SUCCEEDED";
|
|
1677
|
-
AuthorizationVoidStatus2["FAILED"] = "FAILED";
|
|
1678
|
-
return AuthorizationVoidStatus2;
|
|
1679
|
-
})(AuthorizationVoidStatus || {});
|
|
1680
|
-
var Reason = /* @__PURE__ */ ((Reason2) => {
|
|
1681
|
-
Reason2["UNKNOWN_REASON"] = "UNKNOWN_REASON";
|
|
1682
|
-
Reason2["MANUAL"] = "MANUAL";
|
|
1683
|
-
Reason2["SCHEDULED"] = "SCHEDULED";
|
|
1684
|
-
return Reason2;
|
|
1685
|
-
})(Reason || {});
|
|
1686
|
-
var ActionType = /* @__PURE__ */ ((ActionType2) => {
|
|
1687
|
-
ActionType2["UNKNOWN_ACTION_TYPE"] = "UNKNOWN_ACTION_TYPE";
|
|
1688
|
-
ActionType2["VOID"] = "VOID";
|
|
1689
|
-
ActionType2["CAPTURE"] = "CAPTURE";
|
|
1690
|
-
return ActionType2;
|
|
1691
|
-
})(ActionType || {});
|
|
1692
|
-
var ChargebackStatus = /* @__PURE__ */ ((ChargebackStatus2) => {
|
|
1693
|
-
ChargebackStatus2["UNSPECIFIED"] = "UNSPECIFIED";
|
|
1694
|
-
ChargebackStatus2["APPROVED"] = "APPROVED";
|
|
1695
|
-
ChargebackStatus2["REVERSED"] = "REVERSED";
|
|
1696
|
-
return ChargebackStatus2;
|
|
1697
|
-
})(ChargebackStatus || {});
|
|
1698
|
-
var MembershipPaymentStatus = /* @__PURE__ */ ((MembershipPaymentStatus2) => {
|
|
1699
|
-
MembershipPaymentStatus2["CHARGED"] = "CHARGED";
|
|
1700
|
-
MembershipPaymentStatus2["CHARGE_FAILED"] = "CHARGE_FAILED";
|
|
1701
|
-
return MembershipPaymentStatus2;
|
|
1702
|
-
})(MembershipPaymentStatus || {});
|
|
1703
|
-
var RefundStatus = /* @__PURE__ */ ((RefundStatus2) => {
|
|
1704
|
-
RefundStatus2["PENDING"] = "PENDING";
|
|
1705
|
-
RefundStatus2["SUCCEEDED"] = "SUCCEEDED";
|
|
1706
|
-
RefundStatus2["FAILED"] = "FAILED";
|
|
1707
|
-
RefundStatus2["SCHEDULED"] = "SCHEDULED";
|
|
1708
|
-
RefundStatus2["STARTED"] = "STARTED";
|
|
1709
|
-
return RefundStatus2;
|
|
1710
|
-
})(RefundStatus || {});
|
|
1711
|
-
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
1712
|
-
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
1713
|
-
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
1714
|
-
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
1715
|
-
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
1716
|
-
WebhookIdentityType2["APP"] = "APP";
|
|
1717
|
-
return WebhookIdentityType2;
|
|
1718
|
-
})(WebhookIdentityType || {});
|
|
1719
|
-
var TextDetection = /* @__PURE__ */ ((TextDetection2) => {
|
|
1720
|
-
TextDetection2["UNKNOWN_TEXT_DETECTION"] = "UNKNOWN_TEXT_DETECTION";
|
|
1721
|
-
TextDetection2["CONTAINS_TEXT"] = "CONTAINS_TEXT";
|
|
1722
|
-
TextDetection2["NO_TEXT"] = "NO_TEXT";
|
|
1723
|
-
return TextDetection2;
|
|
1724
|
-
})(TextDetection || {});
|
|
1725
|
-
var AnimationDetection = /* @__PURE__ */ ((AnimationDetection2) => {
|
|
1726
|
-
AnimationDetection2["UNKNOWN_ANIMATION_DETECTION"] = "UNKNOWN_ANIMATION_DETECTION";
|
|
1727
|
-
AnimationDetection2["CONTAINS_ANIMATION"] = "CONTAINS_ANIMATION";
|
|
1728
|
-
AnimationDetection2["NO_ANIMATION"] = "NO_ANIMATION";
|
|
1729
|
-
return AnimationDetection2;
|
|
1730
|
-
})(AnimationDetection || {});
|
|
1731
|
-
var PreviewEmailType = /* @__PURE__ */ ((PreviewEmailType2) => {
|
|
1732
|
-
PreviewEmailType2["ORDER_PLACED"] = "ORDER_PLACED";
|
|
1733
|
-
PreviewEmailType2["DOWNLOAD_LINKS"] = "DOWNLOAD_LINKS";
|
|
1734
|
-
PreviewEmailType2["ORDER_SHIPPED"] = "ORDER_SHIPPED";
|
|
1735
|
-
PreviewEmailType2["ORDER_READY_FOR_PICKUP"] = "ORDER_READY_FOR_PICKUP";
|
|
1736
|
-
return PreviewEmailType2;
|
|
1737
|
-
})(PreviewEmailType || {});
|
|
1738
|
-
var State = /* @__PURE__ */ ((State2) => {
|
|
1739
|
-
State2["UNKNOWN"] = "UNKNOWN";
|
|
1740
|
-
State2["ENABLED"] = "ENABLED";
|
|
1741
|
-
State2["DISABLED"] = "DISABLED";
|
|
1742
|
-
State2["TEMPLATE"] = "TEMPLATE";
|
|
1743
|
-
State2["PENDING"] = "PENDING";
|
|
1744
|
-
return State2;
|
|
1745
|
-
})(State || {});
|
|
1746
|
-
var Namespace = /* @__PURE__ */ ((Namespace2) => {
|
|
1747
|
-
Namespace2["UNKNOWN_NAMESPACE"] = "UNKNOWN_NAMESPACE";
|
|
1748
|
-
Namespace2["WIX"] = "WIX";
|
|
1749
|
-
Namespace2["SHOUT_OUT"] = "SHOUT_OUT";
|
|
1750
|
-
Namespace2["ALBUMS"] = "ALBUMS";
|
|
1751
|
-
Namespace2["WIX_STORES_TEST_DRIVE"] = "WIX_STORES_TEST_DRIVE";
|
|
1752
|
-
Namespace2["HOTELS"] = "HOTELS";
|
|
1753
|
-
Namespace2["CLUBS"] = "CLUBS";
|
|
1754
|
-
Namespace2["ONBOARDING_DRAFT"] = "ONBOARDING_DRAFT";
|
|
1755
|
-
Namespace2["DEV_SITE"] = "DEV_SITE";
|
|
1756
|
-
Namespace2["LOGOS"] = "LOGOS";
|
|
1757
|
-
Namespace2["VIDEO_MAKER"] = "VIDEO_MAKER";
|
|
1758
|
-
Namespace2["PARTNER_DASHBOARD"] = "PARTNER_DASHBOARD";
|
|
1759
|
-
Namespace2["DEV_CENTER_COMPANY"] = "DEV_CENTER_COMPANY";
|
|
1760
|
-
Namespace2["HTML_DRAFT"] = "HTML_DRAFT";
|
|
1761
|
-
Namespace2["SITELESS_BUSINESS"] = "SITELESS_BUSINESS";
|
|
1762
|
-
Namespace2["CREATOR_ECONOMY"] = "CREATOR_ECONOMY";
|
|
1763
|
-
Namespace2["DASHBOARD_FIRST"] = "DASHBOARD_FIRST";
|
|
1764
|
-
Namespace2["ANYWHERE"] = "ANYWHERE";
|
|
1765
|
-
Namespace2["HEADLESS"] = "HEADLESS";
|
|
1766
|
-
Namespace2["ACCOUNT_MASTER_CMS"] = "ACCOUNT_MASTER_CMS";
|
|
1767
|
-
Namespace2["RISE"] = "RISE";
|
|
1768
|
-
Namespace2["BRANDED_FIRST"] = "BRANDED_FIRST";
|
|
1769
|
-
Namespace2["NOWNIA"] = "NOWNIA";
|
|
1770
|
-
Namespace2["UGC_TEMPLATE"] = "UGC_TEMPLATE";
|
|
1771
|
-
Namespace2["CODUX"] = "CODUX";
|
|
1772
|
-
Namespace2["MEDIA_DESIGN_CREATOR"] = "MEDIA_DESIGN_CREATOR";
|
|
1773
|
-
Namespace2["SHARED_BLOG_ENTERPRISE"] = "SHARED_BLOG_ENTERPRISE";
|
|
1774
|
-
Namespace2["STANDALONE_FORMS"] = "STANDALONE_FORMS";
|
|
1775
|
-
Namespace2["STANDALONE_EVENTS"] = "STANDALONE_EVENTS";
|
|
1776
|
-
Namespace2["MIMIR"] = "MIMIR";
|
|
1777
|
-
return Namespace2;
|
|
1778
|
-
})(Namespace || {});
|
|
1779
1172
|
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
1780
1173
|
SortOrder2["ASC"] = "ASC";
|
|
1781
1174
|
SortOrder2["DESC"] = "DESC";
|
|
1782
1175
|
return SortOrder2;
|
|
1783
1176
|
})(SortOrder || {});
|
|
1784
|
-
var VersioningMode = /* @__PURE__ */ ((VersioningMode2) => {
|
|
1785
|
-
VersioningMode2["DEFAULT"] = "DEFAULT";
|
|
1786
|
-
VersioningMode2["GREATER_THAN"] = "GREATER_THAN";
|
|
1787
|
-
VersioningMode2["GREATER_OR_EQUAL"] = "GREATER_OR_EQUAL";
|
|
1788
|
-
return VersioningMode2;
|
|
1789
|
-
})(VersioningMode || {});
|
|
1790
1177
|
var OrderApprovalStrategy = /* @__PURE__ */ ((OrderApprovalStrategy2) => {
|
|
1791
1178
|
OrderApprovalStrategy2["DEFAULT"] = "DEFAULT";
|
|
1792
1179
|
OrderApprovalStrategy2["PAYMENT_RECEIVED"] = "PAYMENT_RECEIVED";
|
|
@@ -1864,351 +1251,14 @@ var InvoiceStatus = /* @__PURE__ */ ((InvoiceStatus2) => {
|
|
|
1864
1251
|
InvoiceStatus2["PartialAndOverdue"] = "PartialAndOverdue";
|
|
1865
1252
|
return InvoiceStatus2;
|
|
1866
1253
|
})(InvoiceStatus || {});
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
});
|
|
1876
|
-
const reqOpts = preparePaymentCollection(payload);
|
|
1877
|
-
sideEffects?.onSiteCall?.();
|
|
1878
|
-
try {
|
|
1879
|
-
const result = await httpClient.request(reqOpts);
|
|
1880
|
-
sideEffects?.onSuccess?.(result);
|
|
1881
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1882
|
-
} catch (err) {
|
|
1883
|
-
const transformedError = sdkTransformError(
|
|
1884
|
-
err,
|
|
1885
|
-
{
|
|
1886
|
-
spreadPathsToArguments: {},
|
|
1887
|
-
explicitPathsToArguments: {
|
|
1888
|
-
ecomOrderId: "$[0]",
|
|
1889
|
-
amount: "$[1]",
|
|
1890
|
-
paymentGatewayOrderId: "$[2].paymentGatewayOrderId",
|
|
1891
|
-
delayedCapture: "$[2].delayedCapture",
|
|
1892
|
-
delayedCaptureSettings: "$[2].delayedCaptureSettings"
|
|
1893
|
-
},
|
|
1894
|
-
singleArgumentUnchanged: false
|
|
1895
|
-
},
|
|
1896
|
-
["ecomOrderId", "amount", "options"]
|
|
1897
|
-
);
|
|
1898
|
-
sideEffects?.onError?.(err);
|
|
1899
|
-
throw transformedError;
|
|
1900
|
-
}
|
|
1901
|
-
}
|
|
1902
|
-
async function getPaymentCollectabilityStatus2(ecomOrderId) {
|
|
1903
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1904
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1905
|
-
ecomOrderId
|
|
1906
|
-
});
|
|
1907
|
-
const reqOpts = getPaymentCollectabilityStatus(payload);
|
|
1908
|
-
sideEffects?.onSiteCall?.();
|
|
1909
|
-
try {
|
|
1910
|
-
const result = await httpClient.request(reqOpts);
|
|
1911
|
-
sideEffects?.onSuccess?.(result);
|
|
1912
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1913
|
-
} catch (err) {
|
|
1914
|
-
const transformedError = sdkTransformError(
|
|
1915
|
-
err,
|
|
1916
|
-
{
|
|
1917
|
-
spreadPathsToArguments: {},
|
|
1918
|
-
explicitPathsToArguments: { ecomOrderId: "$[0]" },
|
|
1919
|
-
singleArgumentUnchanged: false
|
|
1920
|
-
},
|
|
1921
|
-
["ecomOrderId"]
|
|
1922
|
-
);
|
|
1923
|
-
sideEffects?.onError?.(err);
|
|
1924
|
-
throw transformedError;
|
|
1925
|
-
}
|
|
1926
|
-
}
|
|
1927
|
-
async function recordManuallyCollectedPayment2(orderId, amount) {
|
|
1928
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
1929
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1930
|
-
orderId,
|
|
1931
|
-
amount
|
|
1932
|
-
});
|
|
1933
|
-
const reqOpts = recordManuallyCollectedPayment(payload);
|
|
1934
|
-
sideEffects?.onSiteCall?.();
|
|
1935
|
-
try {
|
|
1936
|
-
const result = await httpClient.request(reqOpts);
|
|
1937
|
-
sideEffects?.onSuccess?.(result);
|
|
1938
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1939
|
-
} catch (err) {
|
|
1940
|
-
const transformedError = sdkTransformError(
|
|
1941
|
-
err,
|
|
1942
|
-
{
|
|
1943
|
-
spreadPathsToArguments: {},
|
|
1944
|
-
explicitPathsToArguments: { orderId: "$[0]", amount: "$[1]" },
|
|
1945
|
-
singleArgumentUnchanged: false
|
|
1946
|
-
},
|
|
1947
|
-
["orderId", "amount"]
|
|
1948
|
-
);
|
|
1949
|
-
sideEffects?.onError?.(err);
|
|
1950
|
-
throw transformedError;
|
|
1951
|
-
}
|
|
1952
|
-
}
|
|
1953
|
-
async function paymentCollectionMarkOrderAsPaid2(ecomOrderId) {
|
|
1954
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1955
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1956
|
-
ecomOrderId
|
|
1957
|
-
});
|
|
1958
|
-
const reqOpts = paymentCollectionMarkOrderAsPaid(payload);
|
|
1959
|
-
sideEffects?.onSiteCall?.();
|
|
1960
|
-
try {
|
|
1961
|
-
const result = await httpClient.request(reqOpts);
|
|
1962
|
-
sideEffects?.onSuccess?.(result);
|
|
1963
|
-
return renameKeysFromRESTResponseToSDKResponse(
|
|
1964
|
-
transformPaths2(result.data, [
|
|
1965
|
-
{
|
|
1966
|
-
transformFn: transformRESTImageToSDKImage,
|
|
1967
|
-
paths: [{ path: "order.lineItems.image" }]
|
|
1968
|
-
},
|
|
1969
|
-
{
|
|
1970
|
-
transformFn: transformRESTAddressToSDKAddress,
|
|
1971
|
-
paths: [
|
|
1972
|
-
{ path: "order.billingInfo.address" },
|
|
1973
|
-
{
|
|
1974
|
-
path: "order.shippingInfo.logistics.shippingDestination.address"
|
|
1975
|
-
},
|
|
1976
|
-
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
1977
|
-
{ path: "order.recipientInfo.address" }
|
|
1978
|
-
]
|
|
1979
|
-
}
|
|
1980
|
-
])
|
|
1981
|
-
);
|
|
1982
|
-
} catch (err) {
|
|
1983
|
-
const transformedError = sdkTransformError(
|
|
1984
|
-
err,
|
|
1985
|
-
{
|
|
1986
|
-
spreadPathsToArguments: {},
|
|
1987
|
-
explicitPathsToArguments: { ecomOrderId: "$[0]" },
|
|
1988
|
-
singleArgumentUnchanged: false
|
|
1989
|
-
},
|
|
1990
|
-
["ecomOrderId"]
|
|
1991
|
-
);
|
|
1992
|
-
sideEffects?.onError?.(err);
|
|
1993
|
-
throw transformedError;
|
|
1994
|
-
}
|
|
1995
|
-
}
|
|
1996
|
-
async function paymentCollectionBulkMarkOrdersAsPaid2(ecomOrderIds) {
|
|
1997
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1998
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1999
|
-
ecomOrderIds
|
|
2000
|
-
});
|
|
2001
|
-
const reqOpts = paymentCollectionBulkMarkOrdersAsPaid(payload);
|
|
2002
|
-
sideEffects?.onSiteCall?.();
|
|
2003
|
-
try {
|
|
2004
|
-
const result = await httpClient.request(reqOpts);
|
|
2005
|
-
sideEffects?.onSuccess?.(result);
|
|
2006
|
-
return renameKeysFromRESTResponseToSDKResponse(
|
|
2007
|
-
transformPaths2(result.data, [
|
|
2008
|
-
{
|
|
2009
|
-
transformFn: transformRESTImageToSDKImage,
|
|
2010
|
-
paths: [{ path: "results.item.lineItems.image" }]
|
|
2011
|
-
},
|
|
2012
|
-
{
|
|
2013
|
-
transformFn: transformRESTAddressToSDKAddress,
|
|
2014
|
-
paths: [
|
|
2015
|
-
{ path: "results.item.billingInfo.address" },
|
|
2016
|
-
{
|
|
2017
|
-
path: "results.item.shippingInfo.logistics.shippingDestination.address"
|
|
2018
|
-
},
|
|
2019
|
-
{
|
|
2020
|
-
path: "results.item.shippingInfo.logistics.pickupDetails.address"
|
|
2021
|
-
},
|
|
2022
|
-
{ path: "results.item.recipientInfo.address" }
|
|
2023
|
-
]
|
|
2024
|
-
}
|
|
2025
|
-
])
|
|
2026
|
-
);
|
|
2027
|
-
} catch (err) {
|
|
2028
|
-
const transformedError = sdkTransformError(
|
|
2029
|
-
err,
|
|
2030
|
-
{
|
|
2031
|
-
spreadPathsToArguments: {},
|
|
2032
|
-
explicitPathsToArguments: { ecomOrderIds: "$[0]" },
|
|
2033
|
-
singleArgumentUnchanged: false
|
|
2034
|
-
},
|
|
2035
|
-
["ecomOrderIds"]
|
|
2036
|
-
);
|
|
2037
|
-
sideEffects?.onError?.(err);
|
|
2038
|
-
throw transformedError;
|
|
2039
|
-
}
|
|
2040
|
-
}
|
|
2041
|
-
async function getRefundabilityStatus2(ecomOrderId) {
|
|
2042
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
2043
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2044
|
-
ecomOrderId
|
|
2045
|
-
});
|
|
2046
|
-
const reqOpts = getRefundabilityStatus(payload);
|
|
2047
|
-
sideEffects?.onSiteCall?.();
|
|
2048
|
-
try {
|
|
2049
|
-
const result = await httpClient.request(reqOpts);
|
|
2050
|
-
sideEffects?.onSuccess?.(result);
|
|
2051
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
2052
|
-
} catch (err) {
|
|
2053
|
-
const transformedError = sdkTransformError(
|
|
2054
|
-
err,
|
|
2055
|
-
{
|
|
2056
|
-
spreadPathsToArguments: {},
|
|
2057
|
-
explicitPathsToArguments: { ecomOrderId: "$[0]" },
|
|
2058
|
-
singleArgumentUnchanged: false
|
|
2059
|
-
},
|
|
2060
|
-
["ecomOrderId"]
|
|
2061
|
-
);
|
|
2062
|
-
sideEffects?.onError?.(err);
|
|
2063
|
-
throw transformedError;
|
|
2064
|
-
}
|
|
2065
|
-
}
|
|
2066
|
-
async function paymentCollectionCreatePaymentGatewayOrder2(ecomOrderId, options) {
|
|
2067
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
2068
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2069
|
-
ecomOrderId,
|
|
2070
|
-
chargedBy: options?.chargedBy
|
|
2071
|
-
});
|
|
2072
|
-
const reqOpts = paymentCollectionCreatePaymentGatewayOrder(
|
|
2073
|
-
payload
|
|
2074
|
-
);
|
|
2075
|
-
sideEffects?.onSiteCall?.();
|
|
2076
|
-
try {
|
|
2077
|
-
const result = await httpClient.request(reqOpts);
|
|
2078
|
-
sideEffects?.onSuccess?.(result);
|
|
2079
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
2080
|
-
} catch (err) {
|
|
2081
|
-
const transformedError = sdkTransformError(
|
|
2082
|
-
err,
|
|
2083
|
-
{
|
|
2084
|
-
spreadPathsToArguments: {},
|
|
2085
|
-
explicitPathsToArguments: {
|
|
2086
|
-
ecomOrderId: "$[0]",
|
|
2087
|
-
chargedBy: "$[1].chargedBy"
|
|
2088
|
-
},
|
|
2089
|
-
singleArgumentUnchanged: false
|
|
2090
|
-
},
|
|
2091
|
-
["ecomOrderId", "options"]
|
|
2092
|
-
);
|
|
2093
|
-
sideEffects?.onError?.(err);
|
|
2094
|
-
throw transformedError;
|
|
2095
|
-
}
|
|
2096
|
-
}
|
|
2097
|
-
async function chargeMemberships2(ecomOrderId, memberId, options) {
|
|
2098
|
-
const { httpClient, sideEffects } = arguments[3];
|
|
2099
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2100
|
-
ecomOrderId,
|
|
2101
|
-
memberId,
|
|
2102
|
-
membershipCharges: options?.membershipCharges
|
|
2103
|
-
});
|
|
2104
|
-
const reqOpts = chargeMemberships(payload);
|
|
2105
|
-
sideEffects?.onSiteCall?.();
|
|
2106
|
-
try {
|
|
2107
|
-
const result = await httpClient.request(reqOpts);
|
|
2108
|
-
sideEffects?.onSuccess?.(result);
|
|
2109
|
-
} catch (err) {
|
|
2110
|
-
const transformedError = sdkTransformError(
|
|
2111
|
-
err,
|
|
2112
|
-
{
|
|
2113
|
-
spreadPathsToArguments: {},
|
|
2114
|
-
explicitPathsToArguments: {
|
|
2115
|
-
ecomOrderId: "$[0]",
|
|
2116
|
-
memberId: "$[1]",
|
|
2117
|
-
membershipCharges: "$[2].membershipCharges"
|
|
2118
|
-
},
|
|
2119
|
-
singleArgumentUnchanged: false
|
|
2120
|
-
},
|
|
2121
|
-
["ecomOrderId", "memberId", "options"]
|
|
2122
|
-
);
|
|
2123
|
-
sideEffects?.onError?.(err);
|
|
2124
|
-
throw transformedError;
|
|
2125
|
-
}
|
|
2126
|
-
}
|
|
2127
|
-
async function triggerRefund2(ecomOrderId, payments, options) {
|
|
2128
|
-
const { httpClient, sideEffects } = arguments[3];
|
|
2129
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2130
|
-
ecomOrderId,
|
|
2131
|
-
payments,
|
|
2132
|
-
details: options?.details,
|
|
2133
|
-
sideEffects: options?.sideEffects
|
|
2134
|
-
});
|
|
2135
|
-
const reqOpts = triggerRefund(payload);
|
|
2136
|
-
sideEffects?.onSiteCall?.();
|
|
2137
|
-
try {
|
|
2138
|
-
const result = await httpClient.request(reqOpts);
|
|
2139
|
-
sideEffects?.onSuccess?.(result);
|
|
2140
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
2141
|
-
} catch (err) {
|
|
2142
|
-
const transformedError = sdkTransformError(
|
|
2143
|
-
err,
|
|
2144
|
-
{
|
|
2145
|
-
spreadPathsToArguments: {},
|
|
2146
|
-
explicitPathsToArguments: {
|
|
2147
|
-
ecomOrderId: "$[0]",
|
|
2148
|
-
payments: "$[1]",
|
|
2149
|
-
details: "$[2].details",
|
|
2150
|
-
sideEffects: "$[2].sideEffects"
|
|
2151
|
-
},
|
|
2152
|
-
singleArgumentUnchanged: false
|
|
2153
|
-
},
|
|
2154
|
-
["ecomOrderId", "payments", "options"]
|
|
2155
|
-
);
|
|
2156
|
-
sideEffects?.onError?.(err);
|
|
2157
|
-
throw transformedError;
|
|
2158
|
-
}
|
|
2159
|
-
}
|
|
2160
|
-
async function voidAuthorizedPayments2(ecomOrderId, paymentIds) {
|
|
2161
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
2162
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2163
|
-
ecomOrderId,
|
|
2164
|
-
paymentIds
|
|
2165
|
-
});
|
|
2166
|
-
const reqOpts = voidAuthorizedPayments(payload);
|
|
2167
|
-
sideEffects?.onSiteCall?.();
|
|
2168
|
-
try {
|
|
2169
|
-
const result = await httpClient.request(reqOpts);
|
|
2170
|
-
sideEffects?.onSuccess?.(result);
|
|
2171
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
2172
|
-
} catch (err) {
|
|
2173
|
-
const transformedError = sdkTransformError(
|
|
2174
|
-
err,
|
|
2175
|
-
{
|
|
2176
|
-
spreadPathsToArguments: {},
|
|
2177
|
-
explicitPathsToArguments: { ecomOrderId: "$[0]", paymentIds: "$[1]" },
|
|
2178
|
-
singleArgumentUnchanged: false
|
|
2179
|
-
},
|
|
2180
|
-
["ecomOrderId", "paymentIds"]
|
|
2181
|
-
);
|
|
2182
|
-
sideEffects?.onError?.(err);
|
|
2183
|
-
throw transformedError;
|
|
2184
|
-
}
|
|
2185
|
-
}
|
|
2186
|
-
async function captureAuthorizedPayments2(ecomOrderId, payments) {
|
|
2187
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
2188
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2189
|
-
ecomOrderId,
|
|
2190
|
-
payments
|
|
2191
|
-
});
|
|
2192
|
-
const reqOpts = captureAuthorizedPayments(payload);
|
|
2193
|
-
sideEffects?.onSiteCall?.();
|
|
2194
|
-
try {
|
|
2195
|
-
const result = await httpClient.request(reqOpts);
|
|
2196
|
-
sideEffects?.onSuccess?.(result);
|
|
2197
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
2198
|
-
} catch (err) {
|
|
2199
|
-
const transformedError = sdkTransformError(
|
|
2200
|
-
err,
|
|
2201
|
-
{
|
|
2202
|
-
spreadPathsToArguments: {},
|
|
2203
|
-
explicitPathsToArguments: { ecomOrderId: "$[0]", payments: "$[1]" },
|
|
2204
|
-
singleArgumentUnchanged: false
|
|
2205
|
-
},
|
|
2206
|
-
["ecomOrderId", "payments"]
|
|
2207
|
-
);
|
|
2208
|
-
sideEffects?.onError?.(err);
|
|
2209
|
-
throw transformedError;
|
|
2210
|
-
}
|
|
2211
|
-
}
|
|
1254
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
1255
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
1256
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
1257
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
1258
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
1259
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
1260
|
+
return WebhookIdentityType2;
|
|
1261
|
+
})(WebhookIdentityType || {});
|
|
2212
1262
|
async function getOrder2(_id) {
|
|
2213
1263
|
const { httpClient, sideEffects } = arguments[1];
|
|
2214
1264
|
const payload = renameKeysFromSDKRequestToRESTRequest({ id: _id });
|
|
@@ -2905,56 +1955,35 @@ async function bulkUpdateOrderTags2(orderIds, options) {
|
|
|
2905
1955
|
}
|
|
2906
1956
|
}
|
|
2907
1957
|
export {
|
|
2908
|
-
ActionType,
|
|
2909
1958
|
ActivityType,
|
|
2910
1959
|
AdjustmentType,
|
|
2911
|
-
AnimationDetection,
|
|
2912
1960
|
AttributionSource,
|
|
2913
|
-
AuthorizationCaptureStatus,
|
|
2914
|
-
AuthorizationVoidStatus,
|
|
2915
1961
|
ChannelType,
|
|
2916
|
-
ChargebackStatus,
|
|
2917
1962
|
CustomFieldGroup,
|
|
2918
1963
|
DeltaPaymentOptionType,
|
|
2919
1964
|
DepositType,
|
|
2920
1965
|
DescriptionLineType,
|
|
2921
1966
|
DiscountReason,
|
|
2922
1967
|
DiscountType,
|
|
2923
|
-
DurationUnit,
|
|
2924
1968
|
FulfillmentStatus,
|
|
2925
1969
|
InventoryAction,
|
|
2926
1970
|
InvoiceStatus,
|
|
2927
1971
|
ItemTypeItemType,
|
|
2928
1972
|
JurisdictionType,
|
|
2929
1973
|
LineItemQuantityChangeType,
|
|
2930
|
-
ManuallyRefundableReason,
|
|
2931
|
-
MembershipPaymentStatus,
|
|
2932
|
-
Namespace,
|
|
2933
|
-
NonRefundableReason,
|
|
2934
1974
|
OrderApprovalStrategy,
|
|
2935
1975
|
OrderStatus,
|
|
2936
|
-
PaymentCollectabilityStatus,
|
|
2937
1976
|
PaymentOptionType,
|
|
2938
1977
|
PaymentStatus,
|
|
2939
1978
|
PickupMethod,
|
|
2940
1979
|
Placement,
|
|
2941
|
-
PreviewEmailType,
|
|
2942
|
-
Reason,
|
|
2943
|
-
RefundStatus,
|
|
2944
|
-
RefundableStatus,
|
|
2945
|
-
RestockType,
|
|
2946
|
-
ScheduledAction,
|
|
2947
1980
|
SortOrder,
|
|
2948
1981
|
SourceType,
|
|
2949
|
-
State,
|
|
2950
1982
|
SubdivisionType,
|
|
2951
1983
|
SubscriptionFrequency,
|
|
2952
1984
|
TaxableAddressType,
|
|
2953
|
-
TextDetection,
|
|
2954
|
-
TransactionStatus,
|
|
2955
1985
|
ValueType,
|
|
2956
1986
|
VatType,
|
|
2957
|
-
VersioningMode,
|
|
2958
1987
|
WebhookIdentityType,
|
|
2959
1988
|
WeightUnit,
|
|
2960
1989
|
addActivity2 as addActivity,
|
|
@@ -2962,25 +1991,14 @@ export {
|
|
|
2962
1991
|
bulkUpdateOrderTags2 as bulkUpdateOrderTags,
|
|
2963
1992
|
bulkUpdateOrders2 as bulkUpdateOrders,
|
|
2964
1993
|
cancelOrder2 as cancelOrder,
|
|
2965
|
-
captureAuthorizedPayments2 as captureAuthorizedPayments,
|
|
2966
|
-
chargeMemberships2 as chargeMemberships,
|
|
2967
1994
|
commitDeltas2 as commitDeltas,
|
|
2968
1995
|
createOrder2 as createOrder,
|
|
2969
1996
|
deleteActivity2 as deleteActivity,
|
|
2970
1997
|
getOrder2 as getOrder,
|
|
2971
|
-
getPaymentCollectabilityStatus2 as getPaymentCollectabilityStatus,
|
|
2972
|
-
getRefundabilityStatus2 as getRefundabilityStatus,
|
|
2973
|
-
paymentCollectionBulkMarkOrdersAsPaid2 as paymentCollectionBulkMarkOrdersAsPaid,
|
|
2974
|
-
paymentCollectionCreatePaymentGatewayOrder2 as paymentCollectionCreatePaymentGatewayOrder,
|
|
2975
|
-
paymentCollectionMarkOrderAsPaid2 as paymentCollectionMarkOrderAsPaid,
|
|
2976
|
-
preparePaymentCollection2 as preparePaymentCollection,
|
|
2977
|
-
recordManuallyCollectedPayment2 as recordManuallyCollectedPayment,
|
|
2978
1998
|
searchOrders2 as searchOrders,
|
|
2979
|
-
triggerRefund2 as triggerRefund,
|
|
2980
1999
|
updateActivity2 as updateActivity,
|
|
2981
2000
|
updateOrder2 as updateOrder,
|
|
2982
2001
|
updateOrderLineItem2 as updateOrderLineItem,
|
|
2983
|
-
updateOrderStatus2 as updateOrderStatus
|
|
2984
|
-
voidAuthorizedPayments2 as voidAuthorizedPayments
|
|
2002
|
+
updateOrderStatus2 as updateOrderStatus
|
|
2985
2003
|
};
|
|
2986
2004
|
//# sourceMappingURL=index.typings.mjs.map
|