@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
package/build/cjs/meta.js
CHANGED
|
@@ -25,26 +25,15 @@ __export(meta_exports, {
|
|
|
25
25
|
bulkUpdateOrderTags: () => bulkUpdateOrderTags2,
|
|
26
26
|
bulkUpdateOrders: () => bulkUpdateOrders2,
|
|
27
27
|
cancelOrder: () => cancelOrder2,
|
|
28
|
-
captureAuthorizedPayments: () => captureAuthorizedPayments2,
|
|
29
|
-
chargeMemberships: () => chargeMemberships2,
|
|
30
28
|
commitDeltas: () => commitDeltas2,
|
|
31
29
|
createOrder: () => createOrder2,
|
|
32
30
|
deleteActivity: () => deleteActivity2,
|
|
33
31
|
getOrder: () => getOrder2,
|
|
34
|
-
getPaymentCollectabilityStatus: () => getPaymentCollectabilityStatus2,
|
|
35
|
-
getRefundabilityStatus: () => getRefundabilityStatus2,
|
|
36
|
-
paymentCollectionBulkMarkOrdersAsPaid: () => paymentCollectionBulkMarkOrdersAsPaid2,
|
|
37
|
-
paymentCollectionCreatePaymentGatewayOrder: () => paymentCollectionCreatePaymentGatewayOrder2,
|
|
38
|
-
paymentCollectionMarkOrderAsPaid: () => paymentCollectionMarkOrderAsPaid2,
|
|
39
|
-
preparePaymentCollection: () => preparePaymentCollection2,
|
|
40
|
-
recordManuallyCollectedPayment: () => recordManuallyCollectedPayment2,
|
|
41
32
|
searchOrders: () => searchOrders2,
|
|
42
|
-
triggerRefund: () => triggerRefund2,
|
|
43
33
|
updateActivity: () => updateActivity2,
|
|
44
34
|
updateOrder: () => updateOrder2,
|
|
45
35
|
updateOrderLineItem: () => updateOrderLineItem2,
|
|
46
|
-
updateOrderStatus: () => updateOrderStatus2
|
|
47
|
-
voidAuthorizedPayments: () => voidAuthorizedPayments2
|
|
36
|
+
updateOrderStatus: () => updateOrderStatus2
|
|
48
37
|
});
|
|
49
38
|
module.exports = __toCommonJS(meta_exports);
|
|
50
39
|
|
|
@@ -88,420 +77,7 @@ function resolveComWixEcomOrdersV1OrdersUrl(opts) {
|
|
|
88
77
|
};
|
|
89
78
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
90
79
|
}
|
|
91
|
-
function resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl(opts) {
|
|
92
|
-
const domainToMappings = {
|
|
93
|
-
"api._api_base_domain_": [
|
|
94
|
-
{
|
|
95
|
-
srcPath: "/payments-collector",
|
|
96
|
-
destPath: ""
|
|
97
|
-
}
|
|
98
|
-
],
|
|
99
|
-
"www.wixapis.com": [
|
|
100
|
-
{
|
|
101
|
-
srcPath: "/ecom/v1/payments-collector",
|
|
102
|
-
destPath: "/v1/payments-collector"
|
|
103
|
-
}
|
|
104
|
-
],
|
|
105
|
-
"manage._base_domain_": [
|
|
106
|
-
{
|
|
107
|
-
srcPath: "/ecom/v1/payments-collector",
|
|
108
|
-
destPath: "/v1/payments-collector"
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
srcPath: "/_api/v1/payments-collector",
|
|
112
|
-
destPath: "/v1/payments-collector"
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
srcPath: "/v1/payments-collector",
|
|
116
|
-
destPath: "/v1/payments-collector"
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
srcPath: "/_api/payments-collector",
|
|
120
|
-
destPath: "/v1/payments-collector"
|
|
121
|
-
}
|
|
122
|
-
]
|
|
123
|
-
};
|
|
124
|
-
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
125
|
-
}
|
|
126
80
|
var PACKAGE_NAME = "@wix/auto_sdk_ecom_orders";
|
|
127
|
-
function preparePaymentCollection(payload) {
|
|
128
|
-
function __preparePaymentCollection({ host }) {
|
|
129
|
-
const metadata = {
|
|
130
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
131
|
-
method: "POST",
|
|
132
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.PreparePaymentCollection",
|
|
133
|
-
packageName: PACKAGE_NAME,
|
|
134
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
135
|
-
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/prepare-payment-collection",
|
|
136
|
-
data: payload,
|
|
137
|
-
host
|
|
138
|
-
}),
|
|
139
|
-
data: payload
|
|
140
|
-
};
|
|
141
|
-
return metadata;
|
|
142
|
-
}
|
|
143
|
-
return __preparePaymentCollection;
|
|
144
|
-
}
|
|
145
|
-
function getPaymentCollectabilityStatus(payload) {
|
|
146
|
-
function __getPaymentCollectabilityStatus({ host }) {
|
|
147
|
-
const metadata = {
|
|
148
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
149
|
-
method: "GET",
|
|
150
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.GetPaymentCollectabilityStatus",
|
|
151
|
-
packageName: PACKAGE_NAME,
|
|
152
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
153
|
-
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/payment-collectability-status",
|
|
154
|
-
data: payload,
|
|
155
|
-
host
|
|
156
|
-
}),
|
|
157
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
158
|
-
};
|
|
159
|
-
return metadata;
|
|
160
|
-
}
|
|
161
|
-
return __getPaymentCollectabilityStatus;
|
|
162
|
-
}
|
|
163
|
-
function recordManuallyCollectedPayment(payload) {
|
|
164
|
-
function __recordManuallyCollectedPayment({ host }) {
|
|
165
|
-
const metadata = {
|
|
166
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
167
|
-
method: "POST",
|
|
168
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.RecordManuallyCollectedPayment",
|
|
169
|
-
packageName: PACKAGE_NAME,
|
|
170
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
171
|
-
protoPath: "/v1/payments-collector/orders/{orderId}/manual-payment",
|
|
172
|
-
data: payload,
|
|
173
|
-
host
|
|
174
|
-
}),
|
|
175
|
-
data: payload
|
|
176
|
-
};
|
|
177
|
-
return metadata;
|
|
178
|
-
}
|
|
179
|
-
return __recordManuallyCollectedPayment;
|
|
180
|
-
}
|
|
181
|
-
function paymentCollectionMarkOrderAsPaid(payload) {
|
|
182
|
-
function __paymentCollectionMarkOrderAsPaid({ host }) {
|
|
183
|
-
const metadata = {
|
|
184
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
185
|
-
method: "POST",
|
|
186
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.MarkOrderAsPaid",
|
|
187
|
-
packageName: PACKAGE_NAME,
|
|
188
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
189
|
-
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/mark-as-paid",
|
|
190
|
-
data: payload,
|
|
191
|
-
host
|
|
192
|
-
}),
|
|
193
|
-
data: payload,
|
|
194
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
195
|
-
{
|
|
196
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
197
|
-
paths: [
|
|
198
|
-
{ path: "order.createdDate" },
|
|
199
|
-
{ path: "order.updatedDate" },
|
|
200
|
-
{ path: "order.purchasedDate" },
|
|
201
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
202
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
203
|
-
{
|
|
204
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
205
|
-
},
|
|
206
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
207
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
208
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
209
|
-
{ path: "order.activities.createdDate" }
|
|
210
|
-
]
|
|
211
|
-
},
|
|
212
|
-
{
|
|
213
|
-
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
214
|
-
paths: [
|
|
215
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
216
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
217
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
218
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
219
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
220
|
-
{
|
|
221
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
222
|
-
},
|
|
223
|
-
{
|
|
224
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
225
|
-
},
|
|
226
|
-
{
|
|
227
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
228
|
-
},
|
|
229
|
-
{
|
|
230
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
231
|
-
},
|
|
232
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
233
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
234
|
-
]
|
|
235
|
-
}
|
|
236
|
-
])
|
|
237
|
-
};
|
|
238
|
-
return metadata;
|
|
239
|
-
}
|
|
240
|
-
return __paymentCollectionMarkOrderAsPaid;
|
|
241
|
-
}
|
|
242
|
-
function paymentCollectionBulkMarkOrdersAsPaid(payload) {
|
|
243
|
-
function __paymentCollectionBulkMarkOrdersAsPaid({ host }) {
|
|
244
|
-
const metadata = {
|
|
245
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
246
|
-
method: "POST",
|
|
247
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.BulkMarkOrdersAsPaid",
|
|
248
|
-
packageName: PACKAGE_NAME,
|
|
249
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
250
|
-
protoPath: "/v1/bulk/payments-collector/mark-as-paid",
|
|
251
|
-
data: payload,
|
|
252
|
-
host
|
|
253
|
-
}),
|
|
254
|
-
data: payload,
|
|
255
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
256
|
-
{
|
|
257
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
258
|
-
paths: [
|
|
259
|
-
{ path: "results.item.createdDate" },
|
|
260
|
-
{ path: "results.item.updatedDate" },
|
|
261
|
-
{ path: "results.item.purchasedDate" },
|
|
262
|
-
{ path: "results.item.lineItems.image.urlExpirationDate" },
|
|
263
|
-
{ path: "results.item.lineItems.digitalFile.expirationDate" },
|
|
264
|
-
{
|
|
265
|
-
path: "results.item.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
266
|
-
},
|
|
267
|
-
{ path: "results.item.shippingInfo.logistics.deliverByDate" },
|
|
268
|
-
{
|
|
269
|
-
path: "results.item.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
270
|
-
},
|
|
271
|
-
{
|
|
272
|
-
path: "results.item.shippingInfo.logistics.deliveryTimeSlot.to"
|
|
273
|
-
},
|
|
274
|
-
{ path: "results.item.activities.createdDate" }
|
|
275
|
-
]
|
|
276
|
-
},
|
|
277
|
-
{
|
|
278
|
-
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
279
|
-
paths: [
|
|
280
|
-
{ path: "results.item.lineItems.image.focalPoint.x" },
|
|
281
|
-
{ path: "results.item.lineItems.image.focalPoint.y" },
|
|
282
|
-
{ path: "results.item.lineItems.physicalProperties.weight" },
|
|
283
|
-
{ path: "results.item.billingInfo.address.geocode.latitude" },
|
|
284
|
-
{ path: "results.item.billingInfo.address.geocode.longitude" },
|
|
285
|
-
{
|
|
286
|
-
path: "results.item.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
287
|
-
},
|
|
288
|
-
{
|
|
289
|
-
path: "results.item.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
290
|
-
},
|
|
291
|
-
{
|
|
292
|
-
path: "results.item.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
293
|
-
},
|
|
294
|
-
{
|
|
295
|
-
path: "results.item.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
296
|
-
},
|
|
297
|
-
{ path: "results.item.recipientInfo.address.geocode.latitude" },
|
|
298
|
-
{ path: "results.item.recipientInfo.address.geocode.longitude" }
|
|
299
|
-
]
|
|
300
|
-
}
|
|
301
|
-
])
|
|
302
|
-
};
|
|
303
|
-
return metadata;
|
|
304
|
-
}
|
|
305
|
-
return __paymentCollectionBulkMarkOrdersAsPaid;
|
|
306
|
-
}
|
|
307
|
-
function getRefundabilityStatus(payload) {
|
|
308
|
-
function __getRefundabilityStatus({ host }) {
|
|
309
|
-
const metadata = {
|
|
310
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
311
|
-
method: "GET",
|
|
312
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.GetRefundabilityStatus",
|
|
313
|
-
packageName: PACKAGE_NAME,
|
|
314
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
315
|
-
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/refundability",
|
|
316
|
-
data: payload,
|
|
317
|
-
host
|
|
318
|
-
}),
|
|
319
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
320
|
-
};
|
|
321
|
-
return metadata;
|
|
322
|
-
}
|
|
323
|
-
return __getRefundabilityStatus;
|
|
324
|
-
}
|
|
325
|
-
function paymentCollectionCreatePaymentGatewayOrder(payload) {
|
|
326
|
-
function __paymentCollectionCreatePaymentGatewayOrder({ host }) {
|
|
327
|
-
const metadata = {
|
|
328
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
329
|
-
method: "POST",
|
|
330
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.CreatePaymentGatewayOrder",
|
|
331
|
-
packageName: PACKAGE_NAME,
|
|
332
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
333
|
-
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/create-payment-gateway-order",
|
|
334
|
-
data: payload,
|
|
335
|
-
host
|
|
336
|
-
}),
|
|
337
|
-
data: payload
|
|
338
|
-
};
|
|
339
|
-
return metadata;
|
|
340
|
-
}
|
|
341
|
-
return __paymentCollectionCreatePaymentGatewayOrder;
|
|
342
|
-
}
|
|
343
|
-
function chargeMemberships(payload) {
|
|
344
|
-
function __chargeMemberships({ host }) {
|
|
345
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
346
|
-
{
|
|
347
|
-
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
348
|
-
paths: [{ path: "membershipCharges.serviceProperties.scheduledDate" }]
|
|
349
|
-
}
|
|
350
|
-
]);
|
|
351
|
-
const metadata = {
|
|
352
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
353
|
-
method: "POST",
|
|
354
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.ChargeMemberships",
|
|
355
|
-
packageName: PACKAGE_NAME,
|
|
356
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
357
|
-
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/charge-membership",
|
|
358
|
-
data: serializedData,
|
|
359
|
-
host
|
|
360
|
-
}),
|
|
361
|
-
data: serializedData
|
|
362
|
-
};
|
|
363
|
-
return metadata;
|
|
364
|
-
}
|
|
365
|
-
return __chargeMemberships;
|
|
366
|
-
}
|
|
367
|
-
function triggerRefund(payload) {
|
|
368
|
-
function __triggerRefund({ host }) {
|
|
369
|
-
const metadata = {
|
|
370
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
371
|
-
method: "POST",
|
|
372
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.TriggerRefund",
|
|
373
|
-
packageName: PACKAGE_NAME,
|
|
374
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
375
|
-
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/trigger-refund",
|
|
376
|
-
data: payload,
|
|
377
|
-
host
|
|
378
|
-
}),
|
|
379
|
-
data: payload,
|
|
380
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
381
|
-
{
|
|
382
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
383
|
-
paths: [
|
|
384
|
-
{ path: "orderTransactions.payments.createdDate" },
|
|
385
|
-
{ path: "orderTransactions.payments.updatedDate" },
|
|
386
|
-
{
|
|
387
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
|
|
388
|
-
},
|
|
389
|
-
{
|
|
390
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
391
|
-
},
|
|
392
|
-
{
|
|
393
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
394
|
-
},
|
|
395
|
-
{
|
|
396
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
397
|
-
},
|
|
398
|
-
{
|
|
399
|
-
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
|
|
400
|
-
},
|
|
401
|
-
{
|
|
402
|
-
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.updatedDate"
|
|
403
|
-
},
|
|
404
|
-
{ path: "orderTransactions.refunds.createdDate" }
|
|
405
|
-
]
|
|
406
|
-
}
|
|
407
|
-
])
|
|
408
|
-
};
|
|
409
|
-
return metadata;
|
|
410
|
-
}
|
|
411
|
-
return __triggerRefund;
|
|
412
|
-
}
|
|
413
|
-
function voidAuthorizedPayments(payload) {
|
|
414
|
-
function __voidAuthorizedPayments({ host }) {
|
|
415
|
-
const metadata = {
|
|
416
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
417
|
-
method: "POST",
|
|
418
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.VoidAuthorizedPayments",
|
|
419
|
-
packageName: PACKAGE_NAME,
|
|
420
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
421
|
-
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/void-authorized-payments",
|
|
422
|
-
data: payload,
|
|
423
|
-
host
|
|
424
|
-
}),
|
|
425
|
-
data: payload,
|
|
426
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
427
|
-
{
|
|
428
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
429
|
-
paths: [
|
|
430
|
-
{ path: "orderTransactions.payments.createdDate" },
|
|
431
|
-
{ path: "orderTransactions.payments.updatedDate" },
|
|
432
|
-
{
|
|
433
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
|
|
434
|
-
},
|
|
435
|
-
{
|
|
436
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
437
|
-
},
|
|
438
|
-
{
|
|
439
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
440
|
-
},
|
|
441
|
-
{
|
|
442
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
443
|
-
},
|
|
444
|
-
{
|
|
445
|
-
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
|
|
446
|
-
},
|
|
447
|
-
{
|
|
448
|
-
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.updatedDate"
|
|
449
|
-
},
|
|
450
|
-
{ path: "orderTransactions.refunds.createdDate" }
|
|
451
|
-
]
|
|
452
|
-
}
|
|
453
|
-
])
|
|
454
|
-
};
|
|
455
|
-
return metadata;
|
|
456
|
-
}
|
|
457
|
-
return __voidAuthorizedPayments;
|
|
458
|
-
}
|
|
459
|
-
function captureAuthorizedPayments(payload) {
|
|
460
|
-
function __captureAuthorizedPayments({ host }) {
|
|
461
|
-
const metadata = {
|
|
462
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
463
|
-
method: "POST",
|
|
464
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.CaptureAuthorizedPayments",
|
|
465
|
-
packageName: PACKAGE_NAME,
|
|
466
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
467
|
-
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/capture-authorized-payments",
|
|
468
|
-
data: payload,
|
|
469
|
-
host
|
|
470
|
-
}),
|
|
471
|
-
data: payload,
|
|
472
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
473
|
-
{
|
|
474
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
475
|
-
paths: [
|
|
476
|
-
{ path: "orderTransactions.payments.createdDate" },
|
|
477
|
-
{ path: "orderTransactions.payments.updatedDate" },
|
|
478
|
-
{
|
|
479
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
|
|
480
|
-
},
|
|
481
|
-
{
|
|
482
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
483
|
-
},
|
|
484
|
-
{
|
|
485
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
486
|
-
},
|
|
487
|
-
{
|
|
488
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
489
|
-
},
|
|
490
|
-
{
|
|
491
|
-
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
|
|
492
|
-
},
|
|
493
|
-
{
|
|
494
|
-
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.updatedDate"
|
|
495
|
-
},
|
|
496
|
-
{ path: "orderTransactions.refunds.createdDate" }
|
|
497
|
-
]
|
|
498
|
-
}
|
|
499
|
-
])
|
|
500
|
-
};
|
|
501
|
-
return metadata;
|
|
502
|
-
}
|
|
503
|
-
return __captureAuthorizedPayments;
|
|
504
|
-
}
|
|
505
81
|
function getOrder(payload) {
|
|
506
82
|
function __getOrder({ host }) {
|
|
507
83
|
const metadata = {
|
|
@@ -1476,206 +1052,6 @@ function bulkUpdateOrderTags(payload) {
|
|
|
1476
1052
|
}
|
|
1477
1053
|
|
|
1478
1054
|
// src/ecom-v1-order-orders.meta.ts
|
|
1479
|
-
function preparePaymentCollection2() {
|
|
1480
|
-
const payload = { ecomOrderId: ":ecomOrderId" };
|
|
1481
|
-
const getRequestOptions = preparePaymentCollection(payload);
|
|
1482
|
-
const getUrl = (context) => {
|
|
1483
|
-
const { url } = getRequestOptions(context);
|
|
1484
|
-
return url;
|
|
1485
|
-
};
|
|
1486
|
-
return {
|
|
1487
|
-
getUrl,
|
|
1488
|
-
httpMethod: "POST",
|
|
1489
|
-
path: "/v1/payments-collector/orders/{ecomOrderId}/prepare-payment-collection",
|
|
1490
|
-
pathParams: { ecomOrderId: "ecomOrderId" },
|
|
1491
|
-
__requestType: null,
|
|
1492
|
-
__originalRequestType: null,
|
|
1493
|
-
__responseType: null,
|
|
1494
|
-
__originalResponseType: null
|
|
1495
|
-
};
|
|
1496
|
-
}
|
|
1497
|
-
function getPaymentCollectabilityStatus2() {
|
|
1498
|
-
const payload = { ecomOrderId: ":ecomOrderId" };
|
|
1499
|
-
const getRequestOptions = getPaymentCollectabilityStatus(payload);
|
|
1500
|
-
const getUrl = (context) => {
|
|
1501
|
-
const { url } = getRequestOptions(context);
|
|
1502
|
-
return url;
|
|
1503
|
-
};
|
|
1504
|
-
return {
|
|
1505
|
-
getUrl,
|
|
1506
|
-
httpMethod: "GET",
|
|
1507
|
-
path: "/v1/payments-collector/orders/{ecomOrderId}/payment-collectability-status",
|
|
1508
|
-
pathParams: { ecomOrderId: "ecomOrderId" },
|
|
1509
|
-
__requestType: null,
|
|
1510
|
-
__originalRequestType: null,
|
|
1511
|
-
__responseType: null,
|
|
1512
|
-
__originalResponseType: null
|
|
1513
|
-
};
|
|
1514
|
-
}
|
|
1515
|
-
function recordManuallyCollectedPayment2() {
|
|
1516
|
-
const payload = { orderId: ":orderId" };
|
|
1517
|
-
const getRequestOptions = recordManuallyCollectedPayment(payload);
|
|
1518
|
-
const getUrl = (context) => {
|
|
1519
|
-
const { url } = getRequestOptions(context);
|
|
1520
|
-
return url;
|
|
1521
|
-
};
|
|
1522
|
-
return {
|
|
1523
|
-
getUrl,
|
|
1524
|
-
httpMethod: "POST",
|
|
1525
|
-
path: "/v1/payments-collector/orders/{orderId}/manual-payment",
|
|
1526
|
-
pathParams: { orderId: "orderId" },
|
|
1527
|
-
__requestType: null,
|
|
1528
|
-
__originalRequestType: null,
|
|
1529
|
-
__responseType: null,
|
|
1530
|
-
__originalResponseType: null
|
|
1531
|
-
};
|
|
1532
|
-
}
|
|
1533
|
-
function paymentCollectionMarkOrderAsPaid2() {
|
|
1534
|
-
const payload = { ecomOrderId: ":ecomOrderId" };
|
|
1535
|
-
const getRequestOptions = paymentCollectionMarkOrderAsPaid(payload);
|
|
1536
|
-
const getUrl = (context) => {
|
|
1537
|
-
const { url } = getRequestOptions(context);
|
|
1538
|
-
return url;
|
|
1539
|
-
};
|
|
1540
|
-
return {
|
|
1541
|
-
getUrl,
|
|
1542
|
-
httpMethod: "POST",
|
|
1543
|
-
path: "/v1/payments-collector/orders/{ecomOrderId}/mark-as-paid",
|
|
1544
|
-
pathParams: { ecomOrderId: "ecomOrderId" },
|
|
1545
|
-
__requestType: null,
|
|
1546
|
-
__originalRequestType: null,
|
|
1547
|
-
__responseType: null,
|
|
1548
|
-
__originalResponseType: null
|
|
1549
|
-
};
|
|
1550
|
-
}
|
|
1551
|
-
function paymentCollectionBulkMarkOrdersAsPaid2() {
|
|
1552
|
-
const payload = {};
|
|
1553
|
-
const getRequestOptions = paymentCollectionBulkMarkOrdersAsPaid(payload);
|
|
1554
|
-
const getUrl = (context) => {
|
|
1555
|
-
const { url } = getRequestOptions(context);
|
|
1556
|
-
return url;
|
|
1557
|
-
};
|
|
1558
|
-
return {
|
|
1559
|
-
getUrl,
|
|
1560
|
-
httpMethod: "POST",
|
|
1561
|
-
path: "/v1/bulk/payments-collector/mark-as-paid",
|
|
1562
|
-
pathParams: {},
|
|
1563
|
-
__requestType: null,
|
|
1564
|
-
__originalRequestType: null,
|
|
1565
|
-
__responseType: null,
|
|
1566
|
-
__originalResponseType: null
|
|
1567
|
-
};
|
|
1568
|
-
}
|
|
1569
|
-
function getRefundabilityStatus2() {
|
|
1570
|
-
const payload = { ecomOrderId: ":ecomOrderId" };
|
|
1571
|
-
const getRequestOptions = getRefundabilityStatus(payload);
|
|
1572
|
-
const getUrl = (context) => {
|
|
1573
|
-
const { url } = getRequestOptions(context);
|
|
1574
|
-
return url;
|
|
1575
|
-
};
|
|
1576
|
-
return {
|
|
1577
|
-
getUrl,
|
|
1578
|
-
httpMethod: "GET",
|
|
1579
|
-
path: "/v1/payments-collector/orders/{ecomOrderId}/refundability",
|
|
1580
|
-
pathParams: { ecomOrderId: "ecomOrderId" },
|
|
1581
|
-
__requestType: null,
|
|
1582
|
-
__originalRequestType: null,
|
|
1583
|
-
__responseType: null,
|
|
1584
|
-
__originalResponseType: null
|
|
1585
|
-
};
|
|
1586
|
-
}
|
|
1587
|
-
function paymentCollectionCreatePaymentGatewayOrder2() {
|
|
1588
|
-
const payload = { ecomOrderId: ":ecomOrderId" };
|
|
1589
|
-
const getRequestOptions = paymentCollectionCreatePaymentGatewayOrder(
|
|
1590
|
-
payload
|
|
1591
|
-
);
|
|
1592
|
-
const getUrl = (context) => {
|
|
1593
|
-
const { url } = getRequestOptions(context);
|
|
1594
|
-
return url;
|
|
1595
|
-
};
|
|
1596
|
-
return {
|
|
1597
|
-
getUrl,
|
|
1598
|
-
httpMethod: "POST",
|
|
1599
|
-
path: "/v1/payments-collector/orders/{ecomOrderId}/create-payment-gateway-order",
|
|
1600
|
-
pathParams: { ecomOrderId: "ecomOrderId" },
|
|
1601
|
-
__requestType: null,
|
|
1602
|
-
__originalRequestType: null,
|
|
1603
|
-
__responseType: null,
|
|
1604
|
-
__originalResponseType: null
|
|
1605
|
-
};
|
|
1606
|
-
}
|
|
1607
|
-
function chargeMemberships2() {
|
|
1608
|
-
const payload = { ecomOrderId: ":ecomOrderId" };
|
|
1609
|
-
const getRequestOptions = chargeMemberships(payload);
|
|
1610
|
-
const getUrl = (context) => {
|
|
1611
|
-
const { url } = getRequestOptions(context);
|
|
1612
|
-
return url;
|
|
1613
|
-
};
|
|
1614
|
-
return {
|
|
1615
|
-
getUrl,
|
|
1616
|
-
httpMethod: "POST",
|
|
1617
|
-
path: "/v1/payments-collector/orders/{ecomOrderId}/charge-membership",
|
|
1618
|
-
pathParams: { ecomOrderId: "ecomOrderId" },
|
|
1619
|
-
__requestType: null,
|
|
1620
|
-
__originalRequestType: null,
|
|
1621
|
-
__responseType: null,
|
|
1622
|
-
__originalResponseType: null
|
|
1623
|
-
};
|
|
1624
|
-
}
|
|
1625
|
-
function triggerRefund2() {
|
|
1626
|
-
const payload = { ecomOrderId: ":ecomOrderId" };
|
|
1627
|
-
const getRequestOptions = triggerRefund(payload);
|
|
1628
|
-
const getUrl = (context) => {
|
|
1629
|
-
const { url } = getRequestOptions(context);
|
|
1630
|
-
return url;
|
|
1631
|
-
};
|
|
1632
|
-
return {
|
|
1633
|
-
getUrl,
|
|
1634
|
-
httpMethod: "POST",
|
|
1635
|
-
path: "/v1/payments-collector/orders/{ecomOrderId}/trigger-refund",
|
|
1636
|
-
pathParams: { ecomOrderId: "ecomOrderId" },
|
|
1637
|
-
__requestType: null,
|
|
1638
|
-
__originalRequestType: null,
|
|
1639
|
-
__responseType: null,
|
|
1640
|
-
__originalResponseType: null
|
|
1641
|
-
};
|
|
1642
|
-
}
|
|
1643
|
-
function voidAuthorizedPayments2() {
|
|
1644
|
-
const payload = { ecomOrderId: ":ecomOrderId" };
|
|
1645
|
-
const getRequestOptions = voidAuthorizedPayments(payload);
|
|
1646
|
-
const getUrl = (context) => {
|
|
1647
|
-
const { url } = getRequestOptions(context);
|
|
1648
|
-
return url;
|
|
1649
|
-
};
|
|
1650
|
-
return {
|
|
1651
|
-
getUrl,
|
|
1652
|
-
httpMethod: "POST",
|
|
1653
|
-
path: "/v1/payments-collector/orders/{ecomOrderId}/void-authorized-payments",
|
|
1654
|
-
pathParams: { ecomOrderId: "ecomOrderId" },
|
|
1655
|
-
__requestType: null,
|
|
1656
|
-
__originalRequestType: null,
|
|
1657
|
-
__responseType: null,
|
|
1658
|
-
__originalResponseType: null
|
|
1659
|
-
};
|
|
1660
|
-
}
|
|
1661
|
-
function captureAuthorizedPayments2() {
|
|
1662
|
-
const payload = { ecomOrderId: ":ecomOrderId" };
|
|
1663
|
-
const getRequestOptions = captureAuthorizedPayments(payload);
|
|
1664
|
-
const getUrl = (context) => {
|
|
1665
|
-
const { url } = getRequestOptions(context);
|
|
1666
|
-
return url;
|
|
1667
|
-
};
|
|
1668
|
-
return {
|
|
1669
|
-
getUrl,
|
|
1670
|
-
httpMethod: "POST",
|
|
1671
|
-
path: "/v1/payments-collector/orders/{ecomOrderId}/capture-authorized-payments",
|
|
1672
|
-
pathParams: { ecomOrderId: "ecomOrderId" },
|
|
1673
|
-
__requestType: null,
|
|
1674
|
-
__originalRequestType: null,
|
|
1675
|
-
__responseType: null,
|
|
1676
|
-
__originalResponseType: null
|
|
1677
|
-
};
|
|
1678
|
-
}
|
|
1679
1055
|
function getOrder2() {
|
|
1680
1056
|
const payload = { id: ":id" };
|
|
1681
1057
|
const getRequestOptions = getOrder(payload);
|
|
@@ -1935,25 +1311,14 @@ function bulkUpdateOrderTags2() {
|
|
|
1935
1311
|
bulkUpdateOrderTags,
|
|
1936
1312
|
bulkUpdateOrders,
|
|
1937
1313
|
cancelOrder,
|
|
1938
|
-
captureAuthorizedPayments,
|
|
1939
|
-
chargeMemberships,
|
|
1940
1314
|
commitDeltas,
|
|
1941
1315
|
createOrder,
|
|
1942
1316
|
deleteActivity,
|
|
1943
1317
|
getOrder,
|
|
1944
|
-
getPaymentCollectabilityStatus,
|
|
1945
|
-
getRefundabilityStatus,
|
|
1946
|
-
paymentCollectionBulkMarkOrdersAsPaid,
|
|
1947
|
-
paymentCollectionCreatePaymentGatewayOrder,
|
|
1948
|
-
paymentCollectionMarkOrderAsPaid,
|
|
1949
|
-
preparePaymentCollection,
|
|
1950
|
-
recordManuallyCollectedPayment,
|
|
1951
1318
|
searchOrders,
|
|
1952
|
-
triggerRefund,
|
|
1953
1319
|
updateActivity,
|
|
1954
1320
|
updateOrder,
|
|
1955
1321
|
updateOrderLineItem,
|
|
1956
|
-
updateOrderStatus
|
|
1957
|
-
voidAuthorizedPayments
|
|
1322
|
+
updateOrderStatus
|
|
1958
1323
|
});
|
|
1959
1324
|
//# sourceMappingURL=meta.js.map
|