@wix/auto_sdk_ecom_orders 1.0.70 → 1.0.71
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-KCtJReRk.d.ts → cjs/ecom-v1-order-orders.universal-B51dgVhk.d.ts} +223 -2226
- package/build/cjs/index.d.ts +3 -56
- package/build/cjs/index.js +311 -1338
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +112 -1039
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +38 -1006
- package/build/cjs/meta.js +2 -637
- package/build/cjs/meta.js.map +1 -1
- package/build/{internal/es/ecom-v1-order-orders.universal-KCtJReRk.d.mts → es/ecom-v1-order-orders.universal-B51dgVhk.d.mts} +223 -2226
- package/build/es/index.d.mts +3 -56
- package/build/es/index.mjs +310 -1311
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs +111 -1012
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +38 -1006
- package/build/es/meta.mjs +1 -625
- package/build/es/meta.mjs.map +1 -1
- package/build/{cjs/ecom-v1-order-orders.universal-C73TYoI7.d.ts → internal/cjs/ecom-v1-order-orders.universal-BuGgtT93.d.ts} +725 -1537
- package/build/internal/cjs/index.d.ts +3 -162
- package/build/internal/cjs/index.js +311 -1338
- 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 +112 -1039
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +38 -1006
- package/build/internal/cjs/meta.js +2 -637
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/{es/ecom-v1-order-orders.universal-C73TYoI7.d.mts → internal/es/ecom-v1-order-orders.universal-BuGgtT93.d.mts} +725 -1537
- package/build/internal/es/index.d.mts +3 -162
- package/build/internal/es/index.mjs +310 -1311
- 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 +111 -1012
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +38 -1006
- package/build/internal/es/meta.mjs +1 -625
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -45,109 +45,20 @@ function resolveComWixEcomOrdersV1OrdersUrl(opts) {
|
|
|
45
45
|
};
|
|
46
46
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
47
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
|
-
};
|
|
81
|
-
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
82
|
-
}
|
|
83
48
|
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 }) {
|
|
49
|
+
function getOrder(payload) {
|
|
50
|
+
function __getOrder({ host }) {
|
|
104
51
|
const metadata = {
|
|
105
52
|
entityFqdn: "wix.ecom.v1.order",
|
|
106
53
|
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",
|
|
54
|
+
methodFqn: "com.wix.ecom.orders.v1.Orders.GetOrder",
|
|
144
55
|
packageName: PACKAGE_NAME,
|
|
145
|
-
url:
|
|
146
|
-
protoPath: "/v1/
|
|
56
|
+
url: resolveComWixEcomOrdersV1OrdersUrl({
|
|
57
|
+
protoPath: "/v1/orders/{id}",
|
|
147
58
|
data: payload,
|
|
148
59
|
host
|
|
149
60
|
}),
|
|
150
|
-
|
|
61
|
+
params: toURLSearchParams(payload),
|
|
151
62
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
152
63
|
{
|
|
153
64
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
@@ -194,17 +105,17 @@ function paymentCollectionMarkOrderAsPaid(payload) {
|
|
|
194
105
|
};
|
|
195
106
|
return metadata;
|
|
196
107
|
}
|
|
197
|
-
return
|
|
108
|
+
return __getOrder;
|
|
198
109
|
}
|
|
199
|
-
function
|
|
200
|
-
function
|
|
110
|
+
function searchOrders(payload) {
|
|
111
|
+
function __searchOrders({ host }) {
|
|
201
112
|
const metadata = {
|
|
202
113
|
entityFqdn: "wix.ecom.v1.order",
|
|
203
114
|
method: "POST",
|
|
204
|
-
methodFqn: "com.wix.ecom.orders.
|
|
115
|
+
methodFqn: "com.wix.ecom.orders.v1.Orders.SearchOrders",
|
|
205
116
|
packageName: PACKAGE_NAME,
|
|
206
|
-
url:
|
|
207
|
-
protoPath: "/v1/
|
|
117
|
+
url: resolveComWixEcomOrdersV1OrdersUrl({
|
|
118
|
+
protoPath: "/v1/orders/search",
|
|
208
119
|
data: payload,
|
|
209
120
|
host
|
|
210
121
|
}),
|
|
@@ -213,477 +124,153 @@ function paymentCollectionBulkMarkOrdersAsPaid(payload) {
|
|
|
213
124
|
{
|
|
214
125
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
215
126
|
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
|
-
},
|
|
127
|
+
{ path: "orders.createdDate" },
|
|
128
|
+
{ path: "orders.updatedDate" },
|
|
129
|
+
{ path: "orders.purchasedDate" },
|
|
130
|
+
{ path: "orders.lineItems.image.urlExpirationDate" },
|
|
131
|
+
{ path: "orders.lineItems.digitalFile.expirationDate" },
|
|
228
132
|
{
|
|
229
|
-
path: "
|
|
133
|
+
path: "orders.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
230
134
|
},
|
|
231
|
-
{ path: "
|
|
135
|
+
{ path: "orders.shippingInfo.logistics.deliverByDate" },
|
|
136
|
+
{ path: "orders.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
137
|
+
{ path: "orders.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
138
|
+
{ path: "orders.activities.createdDate" }
|
|
232
139
|
]
|
|
233
140
|
},
|
|
234
141
|
{
|
|
235
142
|
transformFn: transformRESTFloatToSDKFloat,
|
|
236
143
|
paths: [
|
|
237
|
-
{ path: "
|
|
238
|
-
{ path: "
|
|
239
|
-
{ path: "
|
|
240
|
-
{ path: "
|
|
241
|
-
{ path: "
|
|
144
|
+
{ path: "orders.lineItems.image.focalPoint.x" },
|
|
145
|
+
{ path: "orders.lineItems.image.focalPoint.y" },
|
|
146
|
+
{ path: "orders.lineItems.physicalProperties.weight" },
|
|
147
|
+
{ path: "orders.billingInfo.address.geocode.latitude" },
|
|
148
|
+
{ path: "orders.billingInfo.address.geocode.longitude" },
|
|
242
149
|
{
|
|
243
|
-
path: "
|
|
150
|
+
path: "orders.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
244
151
|
},
|
|
245
152
|
{
|
|
246
|
-
path: "
|
|
153
|
+
path: "orders.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
247
154
|
},
|
|
248
155
|
{
|
|
249
|
-
path: "
|
|
156
|
+
path: "orders.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
250
157
|
},
|
|
251
158
|
{
|
|
252
|
-
path: "
|
|
159
|
+
path: "orders.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
253
160
|
},
|
|
254
|
-
{ path: "
|
|
255
|
-
{ path: "
|
|
161
|
+
{ path: "orders.recipientInfo.address.geocode.latitude" },
|
|
162
|
+
{ path: "orders.recipientInfo.address.geocode.longitude" }
|
|
256
163
|
]
|
|
257
164
|
}
|
|
258
165
|
])
|
|
259
166
|
};
|
|
260
167
|
return metadata;
|
|
261
168
|
}
|
|
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;
|
|
169
|
+
return __searchOrders;
|
|
299
170
|
}
|
|
300
|
-
function
|
|
301
|
-
function
|
|
171
|
+
function createOrder(payload) {
|
|
172
|
+
function __createOrder({ host }) {
|
|
302
173
|
const serializedData = transformPaths(payload, [
|
|
303
174
|
{
|
|
304
175
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
305
|
-
paths: [
|
|
176
|
+
paths: [
|
|
177
|
+
{ path: "order.createdDate" },
|
|
178
|
+
{ path: "order.updatedDate" },
|
|
179
|
+
{ path: "order.purchasedDate" },
|
|
180
|
+
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
181
|
+
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
182
|
+
{
|
|
183
|
+
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
184
|
+
},
|
|
185
|
+
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
186
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
187
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
188
|
+
{ path: "order.activities.createdDate" }
|
|
189
|
+
]
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
193
|
+
paths: [
|
|
194
|
+
{ path: "order.lineItems.image.focalPoint.x" },
|
|
195
|
+
{ path: "order.lineItems.image.focalPoint.y" },
|
|
196
|
+
{ path: "order.lineItems.physicalProperties.weight" },
|
|
197
|
+
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
198
|
+
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
199
|
+
{
|
|
200
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
210
|
+
},
|
|
211
|
+
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
212
|
+
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
213
|
+
]
|
|
306
214
|
}
|
|
307
215
|
]);
|
|
308
216
|
const metadata = {
|
|
309
217
|
entityFqdn: "wix.ecom.v1.order",
|
|
310
218
|
method: "POST",
|
|
311
|
-
methodFqn: "com.wix.ecom.orders.
|
|
219
|
+
methodFqn: "com.wix.ecom.orders.v1.Orders.CreateOrder",
|
|
312
220
|
packageName: PACKAGE_NAME,
|
|
313
|
-
url:
|
|
314
|
-
protoPath: "/v1/
|
|
221
|
+
url: resolveComWixEcomOrdersV1OrdersUrl({
|
|
222
|
+
protoPath: "/v1/orders",
|
|
315
223
|
data: serializedData,
|
|
316
224
|
host
|
|
317
225
|
}),
|
|
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,
|
|
226
|
+
data: serializedData,
|
|
337
227
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
338
228
|
{
|
|
339
229
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
340
230
|
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
|
-
},
|
|
352
|
-
{
|
|
353
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
354
|
-
},
|
|
355
|
-
{
|
|
356
|
-
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
|
|
357
|
-
},
|
|
231
|
+
{ path: "order.createdDate" },
|
|
232
|
+
{ path: "order.updatedDate" },
|
|
233
|
+
{ path: "order.purchasedDate" },
|
|
234
|
+
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
235
|
+
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
358
236
|
{
|
|
359
|
-
path: "
|
|
237
|
+
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
360
238
|
},
|
|
361
|
-
{ path: "
|
|
239
|
+
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
240
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
241
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
242
|
+
{ path: "order.activities.createdDate" }
|
|
362
243
|
]
|
|
363
|
-
}
|
|
364
|
-
])
|
|
365
|
-
};
|
|
366
|
-
return metadata;
|
|
367
|
-
}
|
|
368
|
-
return __triggerRefund;
|
|
369
|
-
}
|
|
370
|
-
function voidAuthorizedPayments(payload) {
|
|
371
|
-
function __voidAuthorizedPayments({ host }) {
|
|
372
|
-
const metadata = {
|
|
373
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
374
|
-
method: "POST",
|
|
375
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.VoidAuthorizedPayments",
|
|
376
|
-
packageName: PACKAGE_NAME,
|
|
377
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
378
|
-
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/void-authorized-payments",
|
|
379
|
-
data: payload,
|
|
380
|
-
host
|
|
381
|
-
}),
|
|
382
|
-
data: payload,
|
|
383
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
244
|
+
},
|
|
384
245
|
{
|
|
385
|
-
transformFn:
|
|
246
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
386
247
|
paths: [
|
|
387
|
-
{ path: "
|
|
388
|
-
{ path: "
|
|
389
|
-
{
|
|
390
|
-
|
|
391
|
-
},
|
|
392
|
-
{
|
|
393
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
394
|
-
},
|
|
248
|
+
{ path: "order.lineItems.image.focalPoint.x" },
|
|
249
|
+
{ path: "order.lineItems.image.focalPoint.y" },
|
|
250
|
+
{ path: "order.lineItems.physicalProperties.weight" },
|
|
251
|
+
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
252
|
+
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
395
253
|
{
|
|
396
|
-
path: "
|
|
254
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
397
255
|
},
|
|
398
256
|
{
|
|
399
|
-
path: "
|
|
257
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
400
258
|
},
|
|
401
259
|
{
|
|
402
|
-
path: "
|
|
260
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
403
261
|
},
|
|
404
262
|
{
|
|
405
|
-
path: "
|
|
263
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
406
264
|
},
|
|
407
|
-
{ path: "
|
|
265
|
+
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
266
|
+
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
408
267
|
]
|
|
409
268
|
}
|
|
410
269
|
])
|
|
411
270
|
};
|
|
412
271
|
return metadata;
|
|
413
272
|
}
|
|
414
|
-
return
|
|
415
|
-
}
|
|
416
|
-
function captureAuthorizedPayments(payload) {
|
|
417
|
-
function __captureAuthorizedPayments({ host }) {
|
|
418
|
-
const metadata = {
|
|
419
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
420
|
-
method: "POST",
|
|
421
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.CaptureAuthorizedPayments",
|
|
422
|
-
packageName: PACKAGE_NAME,
|
|
423
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
424
|
-
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/capture-authorized-payments",
|
|
425
|
-
data: payload,
|
|
426
|
-
host
|
|
427
|
-
}),
|
|
428
|
-
data: payload,
|
|
429
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
430
|
-
{
|
|
431
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
432
|
-
paths: [
|
|
433
|
-
{ path: "orderTransactions.payments.createdDate" },
|
|
434
|
-
{ path: "orderTransactions.payments.updatedDate" },
|
|
435
|
-
{
|
|
436
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
|
|
437
|
-
},
|
|
438
|
-
{
|
|
439
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
440
|
-
},
|
|
441
|
-
{
|
|
442
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
443
|
-
},
|
|
444
|
-
{
|
|
445
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
446
|
-
},
|
|
447
|
-
{
|
|
448
|
-
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
|
|
449
|
-
},
|
|
450
|
-
{
|
|
451
|
-
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.updatedDate"
|
|
452
|
-
},
|
|
453
|
-
{ path: "orderTransactions.refunds.createdDate" }
|
|
454
|
-
]
|
|
455
|
-
}
|
|
456
|
-
])
|
|
457
|
-
};
|
|
458
|
-
return metadata;
|
|
459
|
-
}
|
|
460
|
-
return __captureAuthorizedPayments;
|
|
461
|
-
}
|
|
462
|
-
function getOrder(payload) {
|
|
463
|
-
function __getOrder({ host }) {
|
|
464
|
-
const metadata = {
|
|
465
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
466
|
-
method: "GET",
|
|
467
|
-
methodFqn: "com.wix.ecom.orders.v1.Orders.GetOrder",
|
|
468
|
-
packageName: PACKAGE_NAME,
|
|
469
|
-
url: resolveComWixEcomOrdersV1OrdersUrl({
|
|
470
|
-
protoPath: "/v1/orders/{id}",
|
|
471
|
-
data: payload,
|
|
472
|
-
host
|
|
473
|
-
}),
|
|
474
|
-
params: toURLSearchParams(payload),
|
|
475
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
476
|
-
{
|
|
477
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
478
|
-
paths: [
|
|
479
|
-
{ path: "order.createdDate" },
|
|
480
|
-
{ path: "order.updatedDate" },
|
|
481
|
-
{ path: "order.purchasedDate" },
|
|
482
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
483
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
484
|
-
{
|
|
485
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
486
|
-
},
|
|
487
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
488
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
489
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
490
|
-
{ path: "order.activities.createdDate" }
|
|
491
|
-
]
|
|
492
|
-
},
|
|
493
|
-
{
|
|
494
|
-
transformFn: transformRESTFloatToSDKFloat,
|
|
495
|
-
paths: [
|
|
496
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
497
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
498
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
499
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
500
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
501
|
-
{
|
|
502
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
503
|
-
},
|
|
504
|
-
{
|
|
505
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
506
|
-
},
|
|
507
|
-
{
|
|
508
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
509
|
-
},
|
|
510
|
-
{
|
|
511
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
512
|
-
},
|
|
513
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
514
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
515
|
-
]
|
|
516
|
-
}
|
|
517
|
-
])
|
|
518
|
-
};
|
|
519
|
-
return metadata;
|
|
520
|
-
}
|
|
521
|
-
return __getOrder;
|
|
522
|
-
}
|
|
523
|
-
function searchOrders(payload) {
|
|
524
|
-
function __searchOrders({ host }) {
|
|
525
|
-
const metadata = {
|
|
526
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
527
|
-
method: "POST",
|
|
528
|
-
methodFqn: "com.wix.ecom.orders.v1.Orders.SearchOrders",
|
|
529
|
-
packageName: PACKAGE_NAME,
|
|
530
|
-
url: resolveComWixEcomOrdersV1OrdersUrl({
|
|
531
|
-
protoPath: "/v1/orders/search",
|
|
532
|
-
data: payload,
|
|
533
|
-
host
|
|
534
|
-
}),
|
|
535
|
-
data: payload,
|
|
536
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
537
|
-
{
|
|
538
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
539
|
-
paths: [
|
|
540
|
-
{ path: "orders.createdDate" },
|
|
541
|
-
{ path: "orders.updatedDate" },
|
|
542
|
-
{ path: "orders.purchasedDate" },
|
|
543
|
-
{ path: "orders.lineItems.image.urlExpirationDate" },
|
|
544
|
-
{ path: "orders.lineItems.digitalFile.expirationDate" },
|
|
545
|
-
{
|
|
546
|
-
path: "orders.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
547
|
-
},
|
|
548
|
-
{ path: "orders.shippingInfo.logistics.deliverByDate" },
|
|
549
|
-
{ path: "orders.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
550
|
-
{ path: "orders.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
551
|
-
{ path: "orders.activities.createdDate" }
|
|
552
|
-
]
|
|
553
|
-
},
|
|
554
|
-
{
|
|
555
|
-
transformFn: transformRESTFloatToSDKFloat,
|
|
556
|
-
paths: [
|
|
557
|
-
{ path: "orders.lineItems.image.focalPoint.x" },
|
|
558
|
-
{ path: "orders.lineItems.image.focalPoint.y" },
|
|
559
|
-
{ path: "orders.lineItems.physicalProperties.weight" },
|
|
560
|
-
{ path: "orders.billingInfo.address.geocode.latitude" },
|
|
561
|
-
{ path: "orders.billingInfo.address.geocode.longitude" },
|
|
562
|
-
{
|
|
563
|
-
path: "orders.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
564
|
-
},
|
|
565
|
-
{
|
|
566
|
-
path: "orders.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
567
|
-
},
|
|
568
|
-
{
|
|
569
|
-
path: "orders.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
570
|
-
},
|
|
571
|
-
{
|
|
572
|
-
path: "orders.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
573
|
-
},
|
|
574
|
-
{ path: "orders.recipientInfo.address.geocode.latitude" },
|
|
575
|
-
{ path: "orders.recipientInfo.address.geocode.longitude" }
|
|
576
|
-
]
|
|
577
|
-
}
|
|
578
|
-
])
|
|
579
|
-
};
|
|
580
|
-
return metadata;
|
|
581
|
-
}
|
|
582
|
-
return __searchOrders;
|
|
583
|
-
}
|
|
584
|
-
function createOrder(payload) {
|
|
585
|
-
function __createOrder({ host }) {
|
|
586
|
-
const serializedData = transformPaths(payload, [
|
|
587
|
-
{
|
|
588
|
-
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
589
|
-
paths: [
|
|
590
|
-
{ path: "order.createdDate" },
|
|
591
|
-
{ path: "order.updatedDate" },
|
|
592
|
-
{ path: "order.purchasedDate" },
|
|
593
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
594
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
595
|
-
{
|
|
596
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
597
|
-
},
|
|
598
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
599
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
600
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
601
|
-
{ path: "order.activities.createdDate" }
|
|
602
|
-
]
|
|
603
|
-
},
|
|
604
|
-
{
|
|
605
|
-
transformFn: transformSDKFloatToRESTFloat,
|
|
606
|
-
paths: [
|
|
607
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
608
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
609
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
610
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
611
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
612
|
-
{
|
|
613
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
614
|
-
},
|
|
615
|
-
{
|
|
616
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
617
|
-
},
|
|
618
|
-
{
|
|
619
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
620
|
-
},
|
|
621
|
-
{
|
|
622
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
623
|
-
},
|
|
624
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
625
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
626
|
-
]
|
|
627
|
-
}
|
|
628
|
-
]);
|
|
629
|
-
const metadata = {
|
|
630
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
631
|
-
method: "POST",
|
|
632
|
-
methodFqn: "com.wix.ecom.orders.v1.Orders.CreateOrder",
|
|
633
|
-
packageName: PACKAGE_NAME,
|
|
634
|
-
url: resolveComWixEcomOrdersV1OrdersUrl({
|
|
635
|
-
protoPath: "/v1/orders",
|
|
636
|
-
data: serializedData,
|
|
637
|
-
host
|
|
638
|
-
}),
|
|
639
|
-
data: serializedData,
|
|
640
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
641
|
-
{
|
|
642
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
643
|
-
paths: [
|
|
644
|
-
{ path: "order.createdDate" },
|
|
645
|
-
{ path: "order.updatedDate" },
|
|
646
|
-
{ path: "order.purchasedDate" },
|
|
647
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
648
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
649
|
-
{
|
|
650
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
651
|
-
},
|
|
652
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
653
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
654
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
655
|
-
{ path: "order.activities.createdDate" }
|
|
656
|
-
]
|
|
657
|
-
},
|
|
658
|
-
{
|
|
659
|
-
transformFn: transformRESTFloatToSDKFloat,
|
|
660
|
-
paths: [
|
|
661
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
662
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
663
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
664
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
665
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
666
|
-
{
|
|
667
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
668
|
-
},
|
|
669
|
-
{
|
|
670
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
671
|
-
},
|
|
672
|
-
{
|
|
673
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
674
|
-
},
|
|
675
|
-
{
|
|
676
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
677
|
-
},
|
|
678
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
679
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
680
|
-
]
|
|
681
|
-
}
|
|
682
|
-
])
|
|
683
|
-
};
|
|
684
|
-
return metadata;
|
|
685
|
-
}
|
|
686
|
-
return __createOrder;
|
|
273
|
+
return __createOrder;
|
|
687
274
|
}
|
|
688
275
|
function updateOrder(payload) {
|
|
689
276
|
function __updateOrder({ host }) {
|
|
@@ -1609,137 +1196,20 @@ var ChannelType = /* @__PURE__ */ ((ChannelType2) => {
|
|
|
1609
1196
|
ChannelType2["FAIRE_COM"] = "FAIRE_COM";
|
|
1610
1197
|
return ChannelType2;
|
|
1611
1198
|
})(ChannelType || {});
|
|
1612
|
-
var ScheduledAction = /* @__PURE__ */ ((ScheduledAction2) => {
|
|
1613
|
-
ScheduledAction2["UNSPECIFIED"] = "UNSPECIFIED";
|
|
1614
|
-
ScheduledAction2["VOID"] = "VOID";
|
|
1615
|
-
ScheduledAction2["CAPTURE"] = "CAPTURE";
|
|
1616
|
-
return ScheduledAction2;
|
|
1617
|
-
})(ScheduledAction || {});
|
|
1618
|
-
var DurationUnit = /* @__PURE__ */ ((DurationUnit2) => {
|
|
1619
|
-
DurationUnit2["UNKNOWN_DURATION_UNIT"] = "UNKNOWN_DURATION_UNIT";
|
|
1620
|
-
DurationUnit2["MINUTES"] = "MINUTES";
|
|
1621
|
-
DurationUnit2["HOURS"] = "HOURS";
|
|
1622
|
-
DurationUnit2["DAYS"] = "DAYS";
|
|
1623
|
-
return DurationUnit2;
|
|
1624
|
-
})(DurationUnit || {});
|
|
1625
|
-
var PaymentCollectabilityStatus = /* @__PURE__ */ ((PaymentCollectabilityStatus2) => {
|
|
1626
|
-
PaymentCollectabilityStatus2["UNKNOWN"] = "UNKNOWN";
|
|
1627
|
-
PaymentCollectabilityStatus2["COLLECTABLE"] = "COLLECTABLE";
|
|
1628
|
-
PaymentCollectabilityStatus2["NONCOLLECTABLE_ORDER_IS_CANCELLED"] = "NONCOLLECTABLE_ORDER_IS_CANCELLED";
|
|
1629
|
-
PaymentCollectabilityStatus2["NONCOLLECTABLE_ORDER_IS_PAID"] = "NONCOLLECTABLE_ORDER_IS_PAID";
|
|
1630
|
-
PaymentCollectabilityStatus2["NONCOLLECTABLE_MISSING_PAYMENT_METHOD"] = "NONCOLLECTABLE_MISSING_PAYMENT_METHOD";
|
|
1631
|
-
PaymentCollectabilityStatus2["NONCOLLECTABLE_ORDER_IS_PENDING"] = "NONCOLLECTABLE_ORDER_IS_PENDING";
|
|
1632
|
-
PaymentCollectabilityStatus2["NONCOLLECTABLE_ORDER_IS_REJECTED"] = "NONCOLLECTABLE_ORDER_IS_REJECTED";
|
|
1633
|
-
PaymentCollectabilityStatus2["NONCOLLECTABLE_ORDER_HAS_SUBSCRIPTIONS"] = "NONCOLLECTABLE_ORDER_HAS_SUBSCRIPTIONS";
|
|
1634
|
-
return PaymentCollectabilityStatus2;
|
|
1635
|
-
})(PaymentCollectabilityStatus || {});
|
|
1636
|
-
var RefundableStatus = /* @__PURE__ */ ((RefundableStatus2) => {
|
|
1637
|
-
RefundableStatus2["NOT_REFUNDABLE"] = "NOT_REFUNDABLE";
|
|
1638
|
-
RefundableStatus2["MANUAL"] = "MANUAL";
|
|
1639
|
-
RefundableStatus2["REFUNDABLE"] = "REFUNDABLE";
|
|
1640
|
-
return RefundableStatus2;
|
|
1641
|
-
})(RefundableStatus || {});
|
|
1642
|
-
var NonRefundableReason = /* @__PURE__ */ ((NonRefundableReason2) => {
|
|
1643
|
-
NonRefundableReason2["NONE"] = "NONE";
|
|
1644
|
-
NonRefundableReason2["ALREADY_REFUNDED"] = "ALREADY_REFUNDED";
|
|
1645
|
-
NonRefundableReason2["PROVIDER_IS_DOWN"] = "PROVIDER_IS_DOWN";
|
|
1646
|
-
NonRefundableReason2["INTERNAL_ERROR"] = "INTERNAL_ERROR";
|
|
1647
|
-
NonRefundableReason2["NOT_PAID"] = "NOT_PAID";
|
|
1648
|
-
NonRefundableReason2["ACCESS_DENIED"] = "ACCESS_DENIED";
|
|
1649
|
-
NonRefundableReason2["ZERO_PRICE"] = "ZERO_PRICE";
|
|
1650
|
-
NonRefundableReason2["DISABLED_BY_PROVIDER"] = "DISABLED_BY_PROVIDER";
|
|
1651
|
-
NonRefundableReason2["PENDING_REFUND"] = "PENDING_REFUND";
|
|
1652
|
-
NonRefundableReason2["FORBIDDEN"] = "FORBIDDEN";
|
|
1653
|
-
NonRefundableReason2["TRANSACTION_NOT_FOUND"] = "TRANSACTION_NOT_FOUND";
|
|
1654
|
-
NonRefundableReason2["ORDER_IS_PENDING"] = "ORDER_IS_PENDING";
|
|
1655
|
-
NonRefundableReason2["ORDER_IS_REJECTED"] = "ORDER_IS_REJECTED";
|
|
1656
|
-
return NonRefundableReason2;
|
|
1657
|
-
})(NonRefundableReason || {});
|
|
1658
|
-
var ManuallyRefundableReason = /* @__PURE__ */ ((ManuallyRefundableReason2) => {
|
|
1659
|
-
ManuallyRefundableReason2["EXPIRED"] = "EXPIRED";
|
|
1660
|
-
ManuallyRefundableReason2["NOT_SUPPORTED"] = "NOT_SUPPORTED";
|
|
1661
|
-
ManuallyRefundableReason2["OFFLINE"] = "OFFLINE";
|
|
1662
|
-
ManuallyRefundableReason2["REQUIRES_CARD_READER"] = "REQUIRES_CARD_READER";
|
|
1663
|
-
return ManuallyRefundableReason2;
|
|
1664
|
-
})(ManuallyRefundableReason || {});
|
|
1665
|
-
var RestockType = /* @__PURE__ */ ((RestockType2) => {
|
|
1666
|
-
RestockType2["NO_ITEMS"] = "NO_ITEMS";
|
|
1667
|
-
RestockType2["ALL_ITEMS"] = "ALL_ITEMS";
|
|
1668
|
-
RestockType2["SOME_ITEMS"] = "SOME_ITEMS";
|
|
1669
|
-
return RestockType2;
|
|
1670
|
-
})(RestockType || {});
|
|
1671
|
-
var TransactionStatus = /* @__PURE__ */ ((TransactionStatus2) => {
|
|
1672
|
-
TransactionStatus2["UNDEFINED"] = "UNDEFINED";
|
|
1673
|
-
TransactionStatus2["APPROVED"] = "APPROVED";
|
|
1674
|
-
TransactionStatus2["PENDING"] = "PENDING";
|
|
1675
|
-
TransactionStatus2["PENDING_MERCHANT"] = "PENDING_MERCHANT";
|
|
1676
|
-
TransactionStatus2["CANCELED"] = "CANCELED";
|
|
1677
|
-
TransactionStatus2["DECLINED"] = "DECLINED";
|
|
1678
|
-
TransactionStatus2["REFUNDED"] = "REFUNDED";
|
|
1679
|
-
TransactionStatus2["PARTIALLY_REFUNDED"] = "PARTIALLY_REFUNDED";
|
|
1680
|
-
TransactionStatus2["AUTHORIZED"] = "AUTHORIZED";
|
|
1681
|
-
TransactionStatus2["VOIDED"] = "VOIDED";
|
|
1682
|
-
return TransactionStatus2;
|
|
1683
|
-
})(TransactionStatus || {});
|
|
1684
|
-
var AuthorizationCaptureStatus = /* @__PURE__ */ ((AuthorizationCaptureStatus2) => {
|
|
1685
|
-
AuthorizationCaptureStatus2["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
|
|
1686
|
-
AuthorizationCaptureStatus2["PENDING"] = "PENDING";
|
|
1687
|
-
AuthorizationCaptureStatus2["SUCCEEDED"] = "SUCCEEDED";
|
|
1688
|
-
AuthorizationCaptureStatus2["FAILED"] = "FAILED";
|
|
1689
|
-
return AuthorizationCaptureStatus2;
|
|
1690
|
-
})(AuthorizationCaptureStatus || {});
|
|
1691
|
-
var AuthorizationVoidStatus = /* @__PURE__ */ ((AuthorizationVoidStatus2) => {
|
|
1692
|
-
AuthorizationVoidStatus2["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
|
|
1693
|
-
AuthorizationVoidStatus2["PENDING"] = "PENDING";
|
|
1694
|
-
AuthorizationVoidStatus2["SUCCEEDED"] = "SUCCEEDED";
|
|
1695
|
-
AuthorizationVoidStatus2["FAILED"] = "FAILED";
|
|
1696
|
-
return AuthorizationVoidStatus2;
|
|
1697
|
-
})(AuthorizationVoidStatus || {});
|
|
1698
|
-
var Reason = /* @__PURE__ */ ((Reason2) => {
|
|
1699
|
-
Reason2["UNKNOWN_REASON"] = "UNKNOWN_REASON";
|
|
1700
|
-
Reason2["MANUAL"] = "MANUAL";
|
|
1701
|
-
Reason2["SCHEDULED"] = "SCHEDULED";
|
|
1702
|
-
return Reason2;
|
|
1703
|
-
})(Reason || {});
|
|
1704
|
-
var ActionType = /* @__PURE__ */ ((ActionType2) => {
|
|
1705
|
-
ActionType2["UNKNOWN_ACTION_TYPE"] = "UNKNOWN_ACTION_TYPE";
|
|
1706
|
-
ActionType2["VOID"] = "VOID";
|
|
1707
|
-
ActionType2["CAPTURE"] = "CAPTURE";
|
|
1708
|
-
return ActionType2;
|
|
1709
|
-
})(ActionType || {});
|
|
1710
|
-
var ChargebackStatus = /* @__PURE__ */ ((ChargebackStatus2) => {
|
|
1711
|
-
ChargebackStatus2["UNSPECIFIED"] = "UNSPECIFIED";
|
|
1712
|
-
ChargebackStatus2["APPROVED"] = "APPROVED";
|
|
1713
|
-
ChargebackStatus2["REVERSED"] = "REVERSED";
|
|
1714
|
-
return ChargebackStatus2;
|
|
1715
|
-
})(ChargebackStatus || {});
|
|
1716
|
-
var MembershipPaymentStatus = /* @__PURE__ */ ((MembershipPaymentStatus2) => {
|
|
1717
|
-
MembershipPaymentStatus2["CHARGED"] = "CHARGED";
|
|
1718
|
-
MembershipPaymentStatus2["CHARGE_FAILED"] = "CHARGE_FAILED";
|
|
1719
|
-
return MembershipPaymentStatus2;
|
|
1720
|
-
})(MembershipPaymentStatus || {});
|
|
1721
|
-
var RefundStatus = /* @__PURE__ */ ((RefundStatus2) => {
|
|
1722
|
-
RefundStatus2["PENDING"] = "PENDING";
|
|
1723
|
-
RefundStatus2["SUCCEEDED"] = "SUCCEEDED";
|
|
1724
|
-
RefundStatus2["FAILED"] = "FAILED";
|
|
1725
|
-
RefundStatus2["SCHEDULED"] = "SCHEDULED";
|
|
1726
|
-
RefundStatus2["STARTED"] = "STARTED";
|
|
1727
|
-
return RefundStatus2;
|
|
1728
|
-
})(RefundStatus || {});
|
|
1729
|
-
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
1730
|
-
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
1731
|
-
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
1732
|
-
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
1733
|
-
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
1734
|
-
WebhookIdentityType2["APP"] = "APP";
|
|
1735
|
-
return WebhookIdentityType2;
|
|
1736
|
-
})(WebhookIdentityType || {});
|
|
1737
1199
|
var VersioningMode = /* @__PURE__ */ ((VersioningMode2) => {
|
|
1738
1200
|
VersioningMode2["DEFAULT"] = "DEFAULT";
|
|
1739
1201
|
VersioningMode2["GREATER_THAN"] = "GREATER_THAN";
|
|
1740
1202
|
VersioningMode2["GREATER_OR_EQUAL"] = "GREATER_OR_EQUAL";
|
|
1741
1203
|
return VersioningMode2;
|
|
1742
1204
|
})(VersioningMode || {});
|
|
1205
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
1206
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
1207
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
1208
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
1209
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
1210
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
1211
|
+
return WebhookIdentityType2;
|
|
1212
|
+
})(WebhookIdentityType || {});
|
|
1743
1213
|
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
1744
1214
|
SortOrder2["ASC"] = "ASC";
|
|
1745
1215
|
SortOrder2["DESC"] = "DESC";
|
|
@@ -1822,351 +1292,6 @@ var InvoiceStatus = /* @__PURE__ */ ((InvoiceStatus2) => {
|
|
|
1822
1292
|
InvoiceStatus2["PartialAndOverdue"] = "PartialAndOverdue";
|
|
1823
1293
|
return InvoiceStatus2;
|
|
1824
1294
|
})(InvoiceStatus || {});
|
|
1825
|
-
async function preparePaymentCollection2(ecomOrderId, amount, options) {
|
|
1826
|
-
const { httpClient, sideEffects } = arguments[3];
|
|
1827
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1828
|
-
ecomOrderId,
|
|
1829
|
-
amount,
|
|
1830
|
-
paymentGatewayOrderId: options?.paymentGatewayOrderId,
|
|
1831
|
-
delayedCapture: options?.delayedCapture,
|
|
1832
|
-
delayedCaptureSettings: options?.delayedCaptureSettings
|
|
1833
|
-
});
|
|
1834
|
-
const reqOpts = preparePaymentCollection(payload);
|
|
1835
|
-
sideEffects?.onSiteCall?.();
|
|
1836
|
-
try {
|
|
1837
|
-
const result = await httpClient.request(reqOpts);
|
|
1838
|
-
sideEffects?.onSuccess?.(result);
|
|
1839
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1840
|
-
} catch (err) {
|
|
1841
|
-
const transformedError = sdkTransformError(
|
|
1842
|
-
err,
|
|
1843
|
-
{
|
|
1844
|
-
spreadPathsToArguments: {},
|
|
1845
|
-
explicitPathsToArguments: {
|
|
1846
|
-
ecomOrderId: "$[0]",
|
|
1847
|
-
amount: "$[1]",
|
|
1848
|
-
paymentGatewayOrderId: "$[2].paymentGatewayOrderId",
|
|
1849
|
-
delayedCapture: "$[2].delayedCapture",
|
|
1850
|
-
delayedCaptureSettings: "$[2].delayedCaptureSettings"
|
|
1851
|
-
},
|
|
1852
|
-
singleArgumentUnchanged: false
|
|
1853
|
-
},
|
|
1854
|
-
["ecomOrderId", "amount", "options"]
|
|
1855
|
-
);
|
|
1856
|
-
sideEffects?.onError?.(err);
|
|
1857
|
-
throw transformedError;
|
|
1858
|
-
}
|
|
1859
|
-
}
|
|
1860
|
-
async function getPaymentCollectabilityStatus2(ecomOrderId) {
|
|
1861
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1862
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1863
|
-
ecomOrderId
|
|
1864
|
-
});
|
|
1865
|
-
const reqOpts = getPaymentCollectabilityStatus(payload);
|
|
1866
|
-
sideEffects?.onSiteCall?.();
|
|
1867
|
-
try {
|
|
1868
|
-
const result = await httpClient.request(reqOpts);
|
|
1869
|
-
sideEffects?.onSuccess?.(result);
|
|
1870
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1871
|
-
} catch (err) {
|
|
1872
|
-
const transformedError = sdkTransformError(
|
|
1873
|
-
err,
|
|
1874
|
-
{
|
|
1875
|
-
spreadPathsToArguments: {},
|
|
1876
|
-
explicitPathsToArguments: { ecomOrderId: "$[0]" },
|
|
1877
|
-
singleArgumentUnchanged: false
|
|
1878
|
-
},
|
|
1879
|
-
["ecomOrderId"]
|
|
1880
|
-
);
|
|
1881
|
-
sideEffects?.onError?.(err);
|
|
1882
|
-
throw transformedError;
|
|
1883
|
-
}
|
|
1884
|
-
}
|
|
1885
|
-
async function recordManuallyCollectedPayment2(orderId, amount) {
|
|
1886
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
1887
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1888
|
-
orderId,
|
|
1889
|
-
amount
|
|
1890
|
-
});
|
|
1891
|
-
const reqOpts = recordManuallyCollectedPayment(payload);
|
|
1892
|
-
sideEffects?.onSiteCall?.();
|
|
1893
|
-
try {
|
|
1894
|
-
const result = await httpClient.request(reqOpts);
|
|
1895
|
-
sideEffects?.onSuccess?.(result);
|
|
1896
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1897
|
-
} catch (err) {
|
|
1898
|
-
const transformedError = sdkTransformError(
|
|
1899
|
-
err,
|
|
1900
|
-
{
|
|
1901
|
-
spreadPathsToArguments: {},
|
|
1902
|
-
explicitPathsToArguments: { orderId: "$[0]", amount: "$[1]" },
|
|
1903
|
-
singleArgumentUnchanged: false
|
|
1904
|
-
},
|
|
1905
|
-
["orderId", "amount"]
|
|
1906
|
-
);
|
|
1907
|
-
sideEffects?.onError?.(err);
|
|
1908
|
-
throw transformedError;
|
|
1909
|
-
}
|
|
1910
|
-
}
|
|
1911
|
-
async function paymentCollectionMarkOrderAsPaid2(ecomOrderId) {
|
|
1912
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1913
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1914
|
-
ecomOrderId
|
|
1915
|
-
});
|
|
1916
|
-
const reqOpts = paymentCollectionMarkOrderAsPaid(payload);
|
|
1917
|
-
sideEffects?.onSiteCall?.();
|
|
1918
|
-
try {
|
|
1919
|
-
const result = await httpClient.request(reqOpts);
|
|
1920
|
-
sideEffects?.onSuccess?.(result);
|
|
1921
|
-
return renameKeysFromRESTResponseToSDKResponse(
|
|
1922
|
-
transformPaths2(result.data, [
|
|
1923
|
-
{
|
|
1924
|
-
transformFn: transformRESTImageToSDKImage,
|
|
1925
|
-
paths: [{ path: "order.lineItems.image" }]
|
|
1926
|
-
},
|
|
1927
|
-
{
|
|
1928
|
-
transformFn: transformRESTAddressToSDKAddress,
|
|
1929
|
-
paths: [
|
|
1930
|
-
{ path: "order.billingInfo.address" },
|
|
1931
|
-
{
|
|
1932
|
-
path: "order.shippingInfo.logistics.shippingDestination.address"
|
|
1933
|
-
},
|
|
1934
|
-
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
1935
|
-
{ path: "order.recipientInfo.address" }
|
|
1936
|
-
]
|
|
1937
|
-
}
|
|
1938
|
-
])
|
|
1939
|
-
);
|
|
1940
|
-
} catch (err) {
|
|
1941
|
-
const transformedError = sdkTransformError(
|
|
1942
|
-
err,
|
|
1943
|
-
{
|
|
1944
|
-
spreadPathsToArguments: {},
|
|
1945
|
-
explicitPathsToArguments: { ecomOrderId: "$[0]" },
|
|
1946
|
-
singleArgumentUnchanged: false
|
|
1947
|
-
},
|
|
1948
|
-
["ecomOrderId"]
|
|
1949
|
-
);
|
|
1950
|
-
sideEffects?.onError?.(err);
|
|
1951
|
-
throw transformedError;
|
|
1952
|
-
}
|
|
1953
|
-
}
|
|
1954
|
-
async function paymentCollectionBulkMarkOrdersAsPaid2(ecomOrderIds) {
|
|
1955
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1956
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1957
|
-
ecomOrderIds
|
|
1958
|
-
});
|
|
1959
|
-
const reqOpts = paymentCollectionBulkMarkOrdersAsPaid(payload);
|
|
1960
|
-
sideEffects?.onSiteCall?.();
|
|
1961
|
-
try {
|
|
1962
|
-
const result = await httpClient.request(reqOpts);
|
|
1963
|
-
sideEffects?.onSuccess?.(result);
|
|
1964
|
-
return renameKeysFromRESTResponseToSDKResponse(
|
|
1965
|
-
transformPaths2(result.data, [
|
|
1966
|
-
{
|
|
1967
|
-
transformFn: transformRESTImageToSDKImage,
|
|
1968
|
-
paths: [{ path: "results.item.lineItems.image" }]
|
|
1969
|
-
},
|
|
1970
|
-
{
|
|
1971
|
-
transformFn: transformRESTAddressToSDKAddress,
|
|
1972
|
-
paths: [
|
|
1973
|
-
{ path: "results.item.billingInfo.address" },
|
|
1974
|
-
{
|
|
1975
|
-
path: "results.item.shippingInfo.logistics.shippingDestination.address"
|
|
1976
|
-
},
|
|
1977
|
-
{
|
|
1978
|
-
path: "results.item.shippingInfo.logistics.pickupDetails.address"
|
|
1979
|
-
},
|
|
1980
|
-
{ path: "results.item.recipientInfo.address" }
|
|
1981
|
-
]
|
|
1982
|
-
}
|
|
1983
|
-
])
|
|
1984
|
-
);
|
|
1985
|
-
} catch (err) {
|
|
1986
|
-
const transformedError = sdkTransformError(
|
|
1987
|
-
err,
|
|
1988
|
-
{
|
|
1989
|
-
spreadPathsToArguments: {},
|
|
1990
|
-
explicitPathsToArguments: { ecomOrderIds: "$[0]" },
|
|
1991
|
-
singleArgumentUnchanged: false
|
|
1992
|
-
},
|
|
1993
|
-
["ecomOrderIds"]
|
|
1994
|
-
);
|
|
1995
|
-
sideEffects?.onError?.(err);
|
|
1996
|
-
throw transformedError;
|
|
1997
|
-
}
|
|
1998
|
-
}
|
|
1999
|
-
async function getRefundabilityStatus2(ecomOrderId) {
|
|
2000
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
2001
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2002
|
-
ecomOrderId
|
|
2003
|
-
});
|
|
2004
|
-
const reqOpts = getRefundabilityStatus(payload);
|
|
2005
|
-
sideEffects?.onSiteCall?.();
|
|
2006
|
-
try {
|
|
2007
|
-
const result = await httpClient.request(reqOpts);
|
|
2008
|
-
sideEffects?.onSuccess?.(result);
|
|
2009
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
2010
|
-
} catch (err) {
|
|
2011
|
-
const transformedError = sdkTransformError(
|
|
2012
|
-
err,
|
|
2013
|
-
{
|
|
2014
|
-
spreadPathsToArguments: {},
|
|
2015
|
-
explicitPathsToArguments: { ecomOrderId: "$[0]" },
|
|
2016
|
-
singleArgumentUnchanged: false
|
|
2017
|
-
},
|
|
2018
|
-
["ecomOrderId"]
|
|
2019
|
-
);
|
|
2020
|
-
sideEffects?.onError?.(err);
|
|
2021
|
-
throw transformedError;
|
|
2022
|
-
}
|
|
2023
|
-
}
|
|
2024
|
-
async function paymentCollectionCreatePaymentGatewayOrder2(ecomOrderId, options) {
|
|
2025
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
2026
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2027
|
-
ecomOrderId,
|
|
2028
|
-
chargedBy: options?.chargedBy
|
|
2029
|
-
});
|
|
2030
|
-
const reqOpts = paymentCollectionCreatePaymentGatewayOrder(
|
|
2031
|
-
payload
|
|
2032
|
-
);
|
|
2033
|
-
sideEffects?.onSiteCall?.();
|
|
2034
|
-
try {
|
|
2035
|
-
const result = await httpClient.request(reqOpts);
|
|
2036
|
-
sideEffects?.onSuccess?.(result);
|
|
2037
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
2038
|
-
} catch (err) {
|
|
2039
|
-
const transformedError = sdkTransformError(
|
|
2040
|
-
err,
|
|
2041
|
-
{
|
|
2042
|
-
spreadPathsToArguments: {},
|
|
2043
|
-
explicitPathsToArguments: {
|
|
2044
|
-
ecomOrderId: "$[0]",
|
|
2045
|
-
chargedBy: "$[1].chargedBy"
|
|
2046
|
-
},
|
|
2047
|
-
singleArgumentUnchanged: false
|
|
2048
|
-
},
|
|
2049
|
-
["ecomOrderId", "options"]
|
|
2050
|
-
);
|
|
2051
|
-
sideEffects?.onError?.(err);
|
|
2052
|
-
throw transformedError;
|
|
2053
|
-
}
|
|
2054
|
-
}
|
|
2055
|
-
async function chargeMemberships2(ecomOrderId, memberId, options) {
|
|
2056
|
-
const { httpClient, sideEffects } = arguments[3];
|
|
2057
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2058
|
-
ecomOrderId,
|
|
2059
|
-
memberId,
|
|
2060
|
-
membershipCharges: options?.membershipCharges
|
|
2061
|
-
});
|
|
2062
|
-
const reqOpts = chargeMemberships(payload);
|
|
2063
|
-
sideEffects?.onSiteCall?.();
|
|
2064
|
-
try {
|
|
2065
|
-
const result = await httpClient.request(reqOpts);
|
|
2066
|
-
sideEffects?.onSuccess?.(result);
|
|
2067
|
-
} catch (err) {
|
|
2068
|
-
const transformedError = sdkTransformError(
|
|
2069
|
-
err,
|
|
2070
|
-
{
|
|
2071
|
-
spreadPathsToArguments: {},
|
|
2072
|
-
explicitPathsToArguments: {
|
|
2073
|
-
ecomOrderId: "$[0]",
|
|
2074
|
-
memberId: "$[1]",
|
|
2075
|
-
membershipCharges: "$[2].membershipCharges"
|
|
2076
|
-
},
|
|
2077
|
-
singleArgumentUnchanged: false
|
|
2078
|
-
},
|
|
2079
|
-
["ecomOrderId", "memberId", "options"]
|
|
2080
|
-
);
|
|
2081
|
-
sideEffects?.onError?.(err);
|
|
2082
|
-
throw transformedError;
|
|
2083
|
-
}
|
|
2084
|
-
}
|
|
2085
|
-
async function triggerRefund2(ecomOrderId, payments, options) {
|
|
2086
|
-
const { httpClient, sideEffects } = arguments[3];
|
|
2087
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2088
|
-
ecomOrderId,
|
|
2089
|
-
payments,
|
|
2090
|
-
details: options?.details,
|
|
2091
|
-
sideEffects: options?.sideEffects
|
|
2092
|
-
});
|
|
2093
|
-
const reqOpts = triggerRefund(payload);
|
|
2094
|
-
sideEffects?.onSiteCall?.();
|
|
2095
|
-
try {
|
|
2096
|
-
const result = await httpClient.request(reqOpts);
|
|
2097
|
-
sideEffects?.onSuccess?.(result);
|
|
2098
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
2099
|
-
} catch (err) {
|
|
2100
|
-
const transformedError = sdkTransformError(
|
|
2101
|
-
err,
|
|
2102
|
-
{
|
|
2103
|
-
spreadPathsToArguments: {},
|
|
2104
|
-
explicitPathsToArguments: {
|
|
2105
|
-
ecomOrderId: "$[0]",
|
|
2106
|
-
payments: "$[1]",
|
|
2107
|
-
details: "$[2].details",
|
|
2108
|
-
sideEffects: "$[2].sideEffects"
|
|
2109
|
-
},
|
|
2110
|
-
singleArgumentUnchanged: false
|
|
2111
|
-
},
|
|
2112
|
-
["ecomOrderId", "payments", "options"]
|
|
2113
|
-
);
|
|
2114
|
-
sideEffects?.onError?.(err);
|
|
2115
|
-
throw transformedError;
|
|
2116
|
-
}
|
|
2117
|
-
}
|
|
2118
|
-
async function voidAuthorizedPayments2(ecomOrderId, paymentIds) {
|
|
2119
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
2120
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2121
|
-
ecomOrderId,
|
|
2122
|
-
paymentIds
|
|
2123
|
-
});
|
|
2124
|
-
const reqOpts = voidAuthorizedPayments(payload);
|
|
2125
|
-
sideEffects?.onSiteCall?.();
|
|
2126
|
-
try {
|
|
2127
|
-
const result = await httpClient.request(reqOpts);
|
|
2128
|
-
sideEffects?.onSuccess?.(result);
|
|
2129
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
2130
|
-
} catch (err) {
|
|
2131
|
-
const transformedError = sdkTransformError(
|
|
2132
|
-
err,
|
|
2133
|
-
{
|
|
2134
|
-
spreadPathsToArguments: {},
|
|
2135
|
-
explicitPathsToArguments: { ecomOrderId: "$[0]", paymentIds: "$[1]" },
|
|
2136
|
-
singleArgumentUnchanged: false
|
|
2137
|
-
},
|
|
2138
|
-
["ecomOrderId", "paymentIds"]
|
|
2139
|
-
);
|
|
2140
|
-
sideEffects?.onError?.(err);
|
|
2141
|
-
throw transformedError;
|
|
2142
|
-
}
|
|
2143
|
-
}
|
|
2144
|
-
async function captureAuthorizedPayments2(ecomOrderId, payments) {
|
|
2145
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
2146
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2147
|
-
ecomOrderId,
|
|
2148
|
-
payments
|
|
2149
|
-
});
|
|
2150
|
-
const reqOpts = captureAuthorizedPayments(payload);
|
|
2151
|
-
sideEffects?.onSiteCall?.();
|
|
2152
|
-
try {
|
|
2153
|
-
const result = await httpClient.request(reqOpts);
|
|
2154
|
-
sideEffects?.onSuccess?.(result);
|
|
2155
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
2156
|
-
} catch (err) {
|
|
2157
|
-
const transformedError = sdkTransformError(
|
|
2158
|
-
err,
|
|
2159
|
-
{
|
|
2160
|
-
spreadPathsToArguments: {},
|
|
2161
|
-
explicitPathsToArguments: { ecomOrderId: "$[0]", payments: "$[1]" },
|
|
2162
|
-
singleArgumentUnchanged: false
|
|
2163
|
-
},
|
|
2164
|
-
["ecomOrderId", "payments"]
|
|
2165
|
-
);
|
|
2166
|
-
sideEffects?.onError?.(err);
|
|
2167
|
-
throw transformedError;
|
|
2168
|
-
}
|
|
2169
|
-
}
|
|
2170
1295
|
async function getOrder2(_id) {
|
|
2171
1296
|
const { httpClient, sideEffects } = arguments[1];
|
|
2172
1297
|
const payload = renameKeysFromSDKRequestToRESTRequest({ id: _id });
|
|
@@ -2863,48 +1988,33 @@ async function bulkUpdateOrderTags2(orderIds, options) {
|
|
|
2863
1988
|
}
|
|
2864
1989
|
}
|
|
2865
1990
|
export {
|
|
2866
|
-
ActionType,
|
|
2867
1991
|
ActivityType,
|
|
2868
1992
|
AdjustmentType,
|
|
2869
1993
|
AttributionSource,
|
|
2870
|
-
AuthorizationCaptureStatus,
|
|
2871
|
-
AuthorizationVoidStatus,
|
|
2872
1994
|
ChannelType,
|
|
2873
|
-
ChargebackStatus,
|
|
2874
1995
|
CustomFieldGroup,
|
|
2875
1996
|
DeltaPaymentOptionType,
|
|
2876
1997
|
DepositType,
|
|
2877
1998
|
DescriptionLineType,
|
|
2878
1999
|
DiscountReason,
|
|
2879
2000
|
DiscountType,
|
|
2880
|
-
DurationUnit,
|
|
2881
2001
|
FulfillmentStatus,
|
|
2882
2002
|
InventoryAction,
|
|
2883
2003
|
InvoiceStatus,
|
|
2884
2004
|
ItemTypeItemType,
|
|
2885
2005
|
JurisdictionType,
|
|
2886
2006
|
LineItemQuantityChangeType,
|
|
2887
|
-
ManuallyRefundableReason,
|
|
2888
|
-
MembershipPaymentStatus,
|
|
2889
|
-
NonRefundableReason,
|
|
2890
2007
|
OrderApprovalStrategy,
|
|
2891
2008
|
OrderStatus,
|
|
2892
|
-
PaymentCollectabilityStatus,
|
|
2893
2009
|
PaymentOptionType,
|
|
2894
2010
|
PaymentStatus,
|
|
2895
2011
|
PickupMethod,
|
|
2896
2012
|
Placement,
|
|
2897
|
-
Reason,
|
|
2898
|
-
RefundStatus,
|
|
2899
|
-
RefundableStatus,
|
|
2900
|
-
RestockType,
|
|
2901
|
-
ScheduledAction,
|
|
2902
2013
|
SortOrder,
|
|
2903
2014
|
SourceType,
|
|
2904
2015
|
SubdivisionType,
|
|
2905
2016
|
SubscriptionFrequency,
|
|
2906
2017
|
TaxableAddressType,
|
|
2907
|
-
TransactionStatus,
|
|
2908
2018
|
ValueType,
|
|
2909
2019
|
VatType,
|
|
2910
2020
|
VersioningMode,
|
|
@@ -2915,25 +2025,14 @@ export {
|
|
|
2915
2025
|
bulkUpdateOrderTags2 as bulkUpdateOrderTags,
|
|
2916
2026
|
bulkUpdateOrders2 as bulkUpdateOrders,
|
|
2917
2027
|
cancelOrder2 as cancelOrder,
|
|
2918
|
-
captureAuthorizedPayments2 as captureAuthorizedPayments,
|
|
2919
|
-
chargeMemberships2 as chargeMemberships,
|
|
2920
2028
|
commitDeltas2 as commitDeltas,
|
|
2921
2029
|
createOrder2 as createOrder,
|
|
2922
2030
|
deleteActivity2 as deleteActivity,
|
|
2923
2031
|
getOrder2 as getOrder,
|
|
2924
|
-
getPaymentCollectabilityStatus2 as getPaymentCollectabilityStatus,
|
|
2925
|
-
getRefundabilityStatus2 as getRefundabilityStatus,
|
|
2926
|
-
paymentCollectionBulkMarkOrdersAsPaid2 as paymentCollectionBulkMarkOrdersAsPaid,
|
|
2927
|
-
paymentCollectionCreatePaymentGatewayOrder2 as paymentCollectionCreatePaymentGatewayOrder,
|
|
2928
|
-
paymentCollectionMarkOrderAsPaid2 as paymentCollectionMarkOrderAsPaid,
|
|
2929
|
-
preparePaymentCollection2 as preparePaymentCollection,
|
|
2930
|
-
recordManuallyCollectedPayment2 as recordManuallyCollectedPayment,
|
|
2931
2032
|
searchOrders2 as searchOrders,
|
|
2932
|
-
triggerRefund2 as triggerRefund,
|
|
2933
2033
|
updateActivity2 as updateActivity,
|
|
2934
2034
|
updateOrder2 as updateOrder,
|
|
2935
2035
|
updateOrderLineItem2 as updateOrderLineItem,
|
|
2936
|
-
updateOrderStatus2 as updateOrderStatus
|
|
2937
|
-
voidAuthorizedPayments2 as voidAuthorizedPayments
|
|
2036
|
+
updateOrderStatus2 as updateOrderStatus
|
|
2938
2037
|
};
|
|
2939
2038
|
//# sourceMappingURL=index.typings.mjs.map
|