@wix/auto_sdk_ecom_orders 1.0.69 → 1.0.70
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-BAE6DVkA.d.ts → cjs/ecom-v1-order-orders.universal-C73TYoI7.d.ts} +1857 -885
- package/build/cjs/index.d.ts +59 -6
- package/build/cjs/index.js +1118 -56
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +1295 -333
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +1006 -38
- package/build/cjs/meta.js +665 -3
- package/build/cjs/meta.js.map +1 -1
- package/build/{internal/es/ecom-v1-order-orders.universal-BAE6DVkA.d.mts → es/ecom-v1-order-orders.universal-C73TYoI7.d.mts} +1857 -885
- package/build/es/index.d.mts +59 -6
- package/build/es/index.mjs +1090 -55
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs +1267 -332
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +1006 -38
- package/build/es/meta.mjs +653 -2
- package/build/es/meta.mjs.map +1 -1
- package/build/{cjs/ecom-v1-order-orders.universal-Br3Nippn.d.ts → internal/cjs/ecom-v1-order-orders.universal-KCtJReRk.d.ts} +2528 -365
- package/build/internal/cjs/index.d.ts +165 -6
- package/build/internal/cjs/index.js +1118 -56
- 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 +1295 -333
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +1006 -38
- package/build/internal/cjs/meta.js +665 -3
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/{es/ecom-v1-order-orders.universal-Br3Nippn.d.mts → internal/es/ecom-v1-order-orders.universal-KCtJReRk.d.mts} +2528 -365
- package/build/internal/es/index.d.mts +165 -6
- package/build/internal/es/index.mjs +1090 -55
- 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 +1267 -332
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +1006 -38
- package/build/internal/es/meta.mjs +653 -2
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -25,15 +25,26 @@ __export(meta_exports, {
|
|
|
25
25
|
bulkUpdateOrderTags: () => bulkUpdateOrderTags2,
|
|
26
26
|
bulkUpdateOrders: () => bulkUpdateOrders2,
|
|
27
27
|
cancelOrder: () => cancelOrder2,
|
|
28
|
+
captureAuthorizedPayments: () => captureAuthorizedPayments2,
|
|
29
|
+
chargeMemberships: () => chargeMemberships2,
|
|
28
30
|
commitDeltas: () => commitDeltas2,
|
|
29
31
|
createOrder: () => createOrder2,
|
|
30
32
|
deleteActivity: () => deleteActivity2,
|
|
31
33
|
getOrder: () => getOrder2,
|
|
34
|
+
getPaymentCollectabilityStatus: () => getPaymentCollectabilityStatus2,
|
|
35
|
+
getRefundabilityStatus: () => getRefundabilityStatus2,
|
|
36
|
+
paymentCollectionBulkMarkOrdersAsPaid: () => paymentCollectionBulkMarkOrdersAsPaid2,
|
|
37
|
+
paymentCollectionCreatePaymentGatewayOrder: () => paymentCollectionCreatePaymentGatewayOrder2,
|
|
38
|
+
paymentCollectionMarkOrderAsPaid: () => paymentCollectionMarkOrderAsPaid2,
|
|
39
|
+
preparePaymentCollection: () => preparePaymentCollection2,
|
|
40
|
+
recordManuallyCollectedPayment: () => recordManuallyCollectedPayment2,
|
|
32
41
|
searchOrders: () => searchOrders2,
|
|
42
|
+
triggerRefund: () => triggerRefund2,
|
|
33
43
|
updateActivity: () => updateActivity2,
|
|
34
44
|
updateOrder: () => updateOrder2,
|
|
35
45
|
updateOrderLineItem: () => updateOrderLineItem2,
|
|
36
|
-
updateOrderStatus: () => updateOrderStatus2
|
|
46
|
+
updateOrderStatus: () => updateOrderStatus2,
|
|
47
|
+
voidAuthorizedPayments: () => voidAuthorizedPayments2
|
|
37
48
|
});
|
|
38
49
|
module.exports = __toCommonJS(meta_exports);
|
|
39
50
|
|
|
@@ -47,10 +58,450 @@ var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
|
|
|
47
58
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
48
59
|
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
49
60
|
function resolveComWixEcomOrdersV1OrdersUrl(opts) {
|
|
50
|
-
const domainToMappings = {
|
|
61
|
+
const domainToMappings = {
|
|
62
|
+
_: [
|
|
63
|
+
{
|
|
64
|
+
srcPath: "/_api/ecom-orders",
|
|
65
|
+
destPath: ""
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
srcPath: "/_api/orders",
|
|
69
|
+
destPath: ""
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
"manage._base_domain_": [
|
|
73
|
+
{
|
|
74
|
+
srcPath: "/_api/ecom-orders",
|
|
75
|
+
destPath: ""
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
"www.wixapis.com": [
|
|
79
|
+
{
|
|
80
|
+
srcPath: "/ecom/v1/bulk/orders",
|
|
81
|
+
destPath: "/v1/bulk/orders"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
srcPath: "/ecom/v1/orders",
|
|
85
|
+
destPath: "/v1/orders"
|
|
86
|
+
}
|
|
87
|
+
]
|
|
88
|
+
};
|
|
89
|
+
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
90
|
+
}
|
|
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
|
+
};
|
|
51
124
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
52
125
|
}
|
|
53
126
|
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
|
+
}
|
|
54
505
|
function getOrder(payload) {
|
|
55
506
|
function __getOrder({ host }) {
|
|
56
507
|
const metadata = {
|
|
@@ -1025,6 +1476,206 @@ function bulkUpdateOrderTags(payload) {
|
|
|
1025
1476
|
}
|
|
1026
1477
|
|
|
1027
1478
|
// 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
|
+
}
|
|
1028
1679
|
function getOrder2() {
|
|
1029
1680
|
const payload = { id: ":id" };
|
|
1030
1681
|
const getRequestOptions = getOrder(payload);
|
|
@@ -1284,14 +1935,25 @@ function bulkUpdateOrderTags2() {
|
|
|
1284
1935
|
bulkUpdateOrderTags,
|
|
1285
1936
|
bulkUpdateOrders,
|
|
1286
1937
|
cancelOrder,
|
|
1938
|
+
captureAuthorizedPayments,
|
|
1939
|
+
chargeMemberships,
|
|
1287
1940
|
commitDeltas,
|
|
1288
1941
|
createOrder,
|
|
1289
1942
|
deleteActivity,
|
|
1290
1943
|
getOrder,
|
|
1944
|
+
getPaymentCollectabilityStatus,
|
|
1945
|
+
getRefundabilityStatus,
|
|
1946
|
+
paymentCollectionBulkMarkOrdersAsPaid,
|
|
1947
|
+
paymentCollectionCreatePaymentGatewayOrder,
|
|
1948
|
+
paymentCollectionMarkOrderAsPaid,
|
|
1949
|
+
preparePaymentCollection,
|
|
1950
|
+
recordManuallyCollectedPayment,
|
|
1291
1951
|
searchOrders,
|
|
1952
|
+
triggerRefund,
|
|
1292
1953
|
updateActivity,
|
|
1293
1954
|
updateOrder,
|
|
1294
1955
|
updateOrderLineItem,
|
|
1295
|
-
updateOrderStatus
|
|
1956
|
+
updateOrderStatus,
|
|
1957
|
+
voidAuthorizedPayments
|
|
1296
1958
|
});
|
|
1297
1959
|
//# sourceMappingURL=meta.js.map
|