@wix/auto_sdk_ecom_orders 1.0.68 → 1.0.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/{internal/cjs/ecom-v1-order-orders.universal-Dt_KjUcw.d.ts → cjs/ecom-v1-order-orders.universal-Br3Nippn.d.ts} +351 -3211
- package/build/cjs/index.d.ts +11 -59
- package/build/cjs/index.js +310 -1377
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +113 -1127
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +43 -953
- package/build/cjs/meta.js +3 -647
- package/build/cjs/meta.js.map +1 -1
- package/build/{internal/es/ecom-v1-order-orders.universal-Dt_KjUcw.d.mts → es/ecom-v1-order-orders.universal-Br3Nippn.d.mts} +351 -3211
- package/build/es/index.d.mts +11 -59
- package/build/es/index.mjs +308 -1344
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs +112 -1094
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +43 -953
- package/build/es/meta.mjs +2 -635
- package/build/es/meta.mjs.map +1 -1
- package/build/{cjs/ecom-v1-order-orders.universal-D9sENjnN.d.ts → internal/cjs/ecom-v1-order-orders.universal-BAE6DVkA.d.ts} +857 -2526
- package/build/internal/cjs/index.d.ts +11 -165
- package/build/internal/cjs/index.js +310 -1377
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +2 -2
- package/build/internal/cjs/index.typings.js +113 -1127
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +43 -953
- package/build/internal/cjs/meta.js +3 -647
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/{es/ecom-v1-order-orders.universal-D9sENjnN.d.mts → internal/es/ecom-v1-order-orders.universal-BAE6DVkA.d.mts} +857 -2526
- package/build/internal/es/index.d.mts +11 -165
- package/build/internal/es/index.mjs +308 -1344
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +2 -2
- package/build/internal/es/index.typings.mjs +112 -1094
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +43 -953
- package/build/internal/es/meta.mjs +2 -635
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
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
|
|
|
@@ -58,432 +47,10 @@ var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
|
|
|
58
47
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
59
48
|
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
60
49
|
function resolveComWixEcomOrdersV1OrdersUrl(opts) {
|
|
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
|
-
};
|
|
50
|
+
const domainToMappings = {};
|
|
124
51
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
125
52
|
}
|
|
126
53
|
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
|
-
{ path: "orderTransactions.refunds.createdDate" }
|
|
399
|
-
]
|
|
400
|
-
}
|
|
401
|
-
])
|
|
402
|
-
};
|
|
403
|
-
return metadata;
|
|
404
|
-
}
|
|
405
|
-
return __triggerRefund;
|
|
406
|
-
}
|
|
407
|
-
function voidAuthorizedPayments(payload) {
|
|
408
|
-
function __voidAuthorizedPayments({ host }) {
|
|
409
|
-
const metadata = {
|
|
410
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
411
|
-
method: "POST",
|
|
412
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.VoidAuthorizedPayments",
|
|
413
|
-
packageName: PACKAGE_NAME,
|
|
414
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
415
|
-
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/void-authorized-payments",
|
|
416
|
-
data: payload,
|
|
417
|
-
host
|
|
418
|
-
}),
|
|
419
|
-
data: payload,
|
|
420
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
421
|
-
{
|
|
422
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
423
|
-
paths: [
|
|
424
|
-
{ path: "orderTransactions.payments.createdDate" },
|
|
425
|
-
{ path: "orderTransactions.payments.updatedDate" },
|
|
426
|
-
{
|
|
427
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
|
|
428
|
-
},
|
|
429
|
-
{
|
|
430
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
431
|
-
},
|
|
432
|
-
{
|
|
433
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
434
|
-
},
|
|
435
|
-
{
|
|
436
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
437
|
-
},
|
|
438
|
-
{ path: "orderTransactions.refunds.createdDate" }
|
|
439
|
-
]
|
|
440
|
-
}
|
|
441
|
-
])
|
|
442
|
-
};
|
|
443
|
-
return metadata;
|
|
444
|
-
}
|
|
445
|
-
return __voidAuthorizedPayments;
|
|
446
|
-
}
|
|
447
|
-
function captureAuthorizedPayments(payload) {
|
|
448
|
-
function __captureAuthorizedPayments({ host }) {
|
|
449
|
-
const metadata = {
|
|
450
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
451
|
-
method: "POST",
|
|
452
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.CaptureAuthorizedPayments",
|
|
453
|
-
packageName: PACKAGE_NAME,
|
|
454
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
455
|
-
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/capture-authorized-payments",
|
|
456
|
-
data: payload,
|
|
457
|
-
host
|
|
458
|
-
}),
|
|
459
|
-
data: payload,
|
|
460
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
461
|
-
{
|
|
462
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
463
|
-
paths: [
|
|
464
|
-
{ path: "orderTransactions.payments.createdDate" },
|
|
465
|
-
{ path: "orderTransactions.payments.updatedDate" },
|
|
466
|
-
{
|
|
467
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
|
|
468
|
-
},
|
|
469
|
-
{
|
|
470
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
471
|
-
},
|
|
472
|
-
{
|
|
473
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
474
|
-
},
|
|
475
|
-
{
|
|
476
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
477
|
-
},
|
|
478
|
-
{ path: "orderTransactions.refunds.createdDate" }
|
|
479
|
-
]
|
|
480
|
-
}
|
|
481
|
-
])
|
|
482
|
-
};
|
|
483
|
-
return metadata;
|
|
484
|
-
}
|
|
485
|
-
return __captureAuthorizedPayments;
|
|
486
|
-
}
|
|
487
54
|
function getOrder(payload) {
|
|
488
55
|
function __getOrder({ host }) {
|
|
489
56
|
const metadata = {
|
|
@@ -1458,206 +1025,6 @@ function bulkUpdateOrderTags(payload) {
|
|
|
1458
1025
|
}
|
|
1459
1026
|
|
|
1460
1027
|
// src/ecom-v1-order-orders.meta.ts
|
|
1461
|
-
function preparePaymentCollection2() {
|
|
1462
|
-
const payload = { ecomOrderId: ":ecomOrderId" };
|
|
1463
|
-
const getRequestOptions = preparePaymentCollection(payload);
|
|
1464
|
-
const getUrl = (context) => {
|
|
1465
|
-
const { url } = getRequestOptions(context);
|
|
1466
|
-
return url;
|
|
1467
|
-
};
|
|
1468
|
-
return {
|
|
1469
|
-
getUrl,
|
|
1470
|
-
httpMethod: "POST",
|
|
1471
|
-
path: "/v1/payments-collector/orders/{ecomOrderId}/prepare-payment-collection",
|
|
1472
|
-
pathParams: { ecomOrderId: "ecomOrderId" },
|
|
1473
|
-
__requestType: null,
|
|
1474
|
-
__originalRequestType: null,
|
|
1475
|
-
__responseType: null,
|
|
1476
|
-
__originalResponseType: null
|
|
1477
|
-
};
|
|
1478
|
-
}
|
|
1479
|
-
function getPaymentCollectabilityStatus2() {
|
|
1480
|
-
const payload = { ecomOrderId: ":ecomOrderId" };
|
|
1481
|
-
const getRequestOptions = getPaymentCollectabilityStatus(payload);
|
|
1482
|
-
const getUrl = (context) => {
|
|
1483
|
-
const { url } = getRequestOptions(context);
|
|
1484
|
-
return url;
|
|
1485
|
-
};
|
|
1486
|
-
return {
|
|
1487
|
-
getUrl,
|
|
1488
|
-
httpMethod: "GET",
|
|
1489
|
-
path: "/v1/payments-collector/orders/{ecomOrderId}/payment-collectability-status",
|
|
1490
|
-
pathParams: { ecomOrderId: "ecomOrderId" },
|
|
1491
|
-
__requestType: null,
|
|
1492
|
-
__originalRequestType: null,
|
|
1493
|
-
__responseType: null,
|
|
1494
|
-
__originalResponseType: null
|
|
1495
|
-
};
|
|
1496
|
-
}
|
|
1497
|
-
function recordManuallyCollectedPayment2() {
|
|
1498
|
-
const payload = { orderId: ":orderId" };
|
|
1499
|
-
const getRequestOptions = recordManuallyCollectedPayment(payload);
|
|
1500
|
-
const getUrl = (context) => {
|
|
1501
|
-
const { url } = getRequestOptions(context);
|
|
1502
|
-
return url;
|
|
1503
|
-
};
|
|
1504
|
-
return {
|
|
1505
|
-
getUrl,
|
|
1506
|
-
httpMethod: "POST",
|
|
1507
|
-
path: "/v1/payments-collector/orders/{orderId}/manual-payment",
|
|
1508
|
-
pathParams: { orderId: "orderId" },
|
|
1509
|
-
__requestType: null,
|
|
1510
|
-
__originalRequestType: null,
|
|
1511
|
-
__responseType: null,
|
|
1512
|
-
__originalResponseType: null
|
|
1513
|
-
};
|
|
1514
|
-
}
|
|
1515
|
-
function paymentCollectionMarkOrderAsPaid2() {
|
|
1516
|
-
const payload = { ecomOrderId: ":ecomOrderId" };
|
|
1517
|
-
const getRequestOptions = paymentCollectionMarkOrderAsPaid(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/{ecomOrderId}/mark-as-paid",
|
|
1526
|
-
pathParams: { ecomOrderId: "ecomOrderId" },
|
|
1527
|
-
__requestType: null,
|
|
1528
|
-
__originalRequestType: null,
|
|
1529
|
-
__responseType: null,
|
|
1530
|
-
__originalResponseType: null
|
|
1531
|
-
};
|
|
1532
|
-
}
|
|
1533
|
-
function paymentCollectionBulkMarkOrdersAsPaid2() {
|
|
1534
|
-
const payload = {};
|
|
1535
|
-
const getRequestOptions = paymentCollectionBulkMarkOrdersAsPaid(payload);
|
|
1536
|
-
const getUrl = (context) => {
|
|
1537
|
-
const { url } = getRequestOptions(context);
|
|
1538
|
-
return url;
|
|
1539
|
-
};
|
|
1540
|
-
return {
|
|
1541
|
-
getUrl,
|
|
1542
|
-
httpMethod: "POST",
|
|
1543
|
-
path: "/v1/bulk/payments-collector/mark-as-paid",
|
|
1544
|
-
pathParams: {},
|
|
1545
|
-
__requestType: null,
|
|
1546
|
-
__originalRequestType: null,
|
|
1547
|
-
__responseType: null,
|
|
1548
|
-
__originalResponseType: null
|
|
1549
|
-
};
|
|
1550
|
-
}
|
|
1551
|
-
function getRefundabilityStatus2() {
|
|
1552
|
-
const payload = { ecomOrderId: ":ecomOrderId" };
|
|
1553
|
-
const getRequestOptions = getRefundabilityStatus(payload);
|
|
1554
|
-
const getUrl = (context) => {
|
|
1555
|
-
const { url } = getRequestOptions(context);
|
|
1556
|
-
return url;
|
|
1557
|
-
};
|
|
1558
|
-
return {
|
|
1559
|
-
getUrl,
|
|
1560
|
-
httpMethod: "GET",
|
|
1561
|
-
path: "/v1/payments-collector/orders/{ecomOrderId}/refundability",
|
|
1562
|
-
pathParams: { ecomOrderId: "ecomOrderId" },
|
|
1563
|
-
__requestType: null,
|
|
1564
|
-
__originalRequestType: null,
|
|
1565
|
-
__responseType: null,
|
|
1566
|
-
__originalResponseType: null
|
|
1567
|
-
};
|
|
1568
|
-
}
|
|
1569
|
-
function paymentCollectionCreatePaymentGatewayOrder2() {
|
|
1570
|
-
const payload = { ecomOrderId: ":ecomOrderId" };
|
|
1571
|
-
const getRequestOptions = paymentCollectionCreatePaymentGatewayOrder(
|
|
1572
|
-
payload
|
|
1573
|
-
);
|
|
1574
|
-
const getUrl = (context) => {
|
|
1575
|
-
const { url } = getRequestOptions(context);
|
|
1576
|
-
return url;
|
|
1577
|
-
};
|
|
1578
|
-
return {
|
|
1579
|
-
getUrl,
|
|
1580
|
-
httpMethod: "POST",
|
|
1581
|
-
path: "/v1/payments-collector/orders/{ecomOrderId}/create-payment-gateway-order",
|
|
1582
|
-
pathParams: { ecomOrderId: "ecomOrderId" },
|
|
1583
|
-
__requestType: null,
|
|
1584
|
-
__originalRequestType: null,
|
|
1585
|
-
__responseType: null,
|
|
1586
|
-
__originalResponseType: null
|
|
1587
|
-
};
|
|
1588
|
-
}
|
|
1589
|
-
function chargeMemberships2() {
|
|
1590
|
-
const payload = { ecomOrderId: ":ecomOrderId" };
|
|
1591
|
-
const getRequestOptions = chargeMemberships(payload);
|
|
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}/charge-membership",
|
|
1600
|
-
pathParams: { ecomOrderId: "ecomOrderId" },
|
|
1601
|
-
__requestType: null,
|
|
1602
|
-
__originalRequestType: null,
|
|
1603
|
-
__responseType: null,
|
|
1604
|
-
__originalResponseType: null
|
|
1605
|
-
};
|
|
1606
|
-
}
|
|
1607
|
-
function triggerRefund2() {
|
|
1608
|
-
const payload = { ecomOrderId: ":ecomOrderId" };
|
|
1609
|
-
const getRequestOptions = triggerRefund(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}/trigger-refund",
|
|
1618
|
-
pathParams: { ecomOrderId: "ecomOrderId" },
|
|
1619
|
-
__requestType: null,
|
|
1620
|
-
__originalRequestType: null,
|
|
1621
|
-
__responseType: null,
|
|
1622
|
-
__originalResponseType: null
|
|
1623
|
-
};
|
|
1624
|
-
}
|
|
1625
|
-
function voidAuthorizedPayments2() {
|
|
1626
|
-
const payload = { ecomOrderId: ":ecomOrderId" };
|
|
1627
|
-
const getRequestOptions = voidAuthorizedPayments(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}/void-authorized-payments",
|
|
1636
|
-
pathParams: { ecomOrderId: "ecomOrderId" },
|
|
1637
|
-
__requestType: null,
|
|
1638
|
-
__originalRequestType: null,
|
|
1639
|
-
__responseType: null,
|
|
1640
|
-
__originalResponseType: null
|
|
1641
|
-
};
|
|
1642
|
-
}
|
|
1643
|
-
function captureAuthorizedPayments2() {
|
|
1644
|
-
const payload = { ecomOrderId: ":ecomOrderId" };
|
|
1645
|
-
const getRequestOptions = captureAuthorizedPayments(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}/capture-authorized-payments",
|
|
1654
|
-
pathParams: { ecomOrderId: "ecomOrderId" },
|
|
1655
|
-
__requestType: null,
|
|
1656
|
-
__originalRequestType: null,
|
|
1657
|
-
__responseType: null,
|
|
1658
|
-
__originalResponseType: null
|
|
1659
|
-
};
|
|
1660
|
-
}
|
|
1661
1028
|
function getOrder2() {
|
|
1662
1029
|
const payload = { id: ":id" };
|
|
1663
1030
|
const getRequestOptions = getOrder(payload);
|
|
@@ -1917,25 +1284,14 @@ function bulkUpdateOrderTags2() {
|
|
|
1917
1284
|
bulkUpdateOrderTags,
|
|
1918
1285
|
bulkUpdateOrders,
|
|
1919
1286
|
cancelOrder,
|
|
1920
|
-
captureAuthorizedPayments,
|
|
1921
|
-
chargeMemberships,
|
|
1922
1287
|
commitDeltas,
|
|
1923
1288
|
createOrder,
|
|
1924
1289
|
deleteActivity,
|
|
1925
1290
|
getOrder,
|
|
1926
|
-
getPaymentCollectabilityStatus,
|
|
1927
|
-
getRefundabilityStatus,
|
|
1928
|
-
paymentCollectionBulkMarkOrdersAsPaid,
|
|
1929
|
-
paymentCollectionCreatePaymentGatewayOrder,
|
|
1930
|
-
paymentCollectionMarkOrderAsPaid,
|
|
1931
|
-
preparePaymentCollection,
|
|
1932
|
-
recordManuallyCollectedPayment,
|
|
1933
1291
|
searchOrders,
|
|
1934
|
-
triggerRefund,
|
|
1935
1292
|
updateActivity,
|
|
1936
1293
|
updateOrder,
|
|
1937
1294
|
updateOrderLineItem,
|
|
1938
|
-
updateOrderStatus
|
|
1939
|
-
voidAuthorizedPayments
|
|
1295
|
+
updateOrderStatus
|
|
1940
1296
|
});
|
|
1941
1297
|
//# sourceMappingURL=meta.js.map
|