@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/es/meta.mjs
CHANGED
|
@@ -38,420 +38,7 @@ function resolveComWixEcomOrdersV1OrdersUrl(opts) {
|
|
|
38
38
|
};
|
|
39
39
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
40
40
|
}
|
|
41
|
-
function resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl(opts) {
|
|
42
|
-
const domainToMappings = {
|
|
43
|
-
"api._api_base_domain_": [
|
|
44
|
-
{
|
|
45
|
-
srcPath: "/payments-collector",
|
|
46
|
-
destPath: ""
|
|
47
|
-
}
|
|
48
|
-
],
|
|
49
|
-
"www.wixapis.com": [
|
|
50
|
-
{
|
|
51
|
-
srcPath: "/ecom/v1/payments-collector",
|
|
52
|
-
destPath: "/v1/payments-collector"
|
|
53
|
-
}
|
|
54
|
-
],
|
|
55
|
-
"manage._base_domain_": [
|
|
56
|
-
{
|
|
57
|
-
srcPath: "/ecom/v1/payments-collector",
|
|
58
|
-
destPath: "/v1/payments-collector"
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
srcPath: "/_api/v1/payments-collector",
|
|
62
|
-
destPath: "/v1/payments-collector"
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
srcPath: "/v1/payments-collector",
|
|
66
|
-
destPath: "/v1/payments-collector"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
srcPath: "/_api/payments-collector",
|
|
70
|
-
destPath: "/v1/payments-collector"
|
|
71
|
-
}
|
|
72
|
-
]
|
|
73
|
-
};
|
|
74
|
-
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
75
|
-
}
|
|
76
41
|
var PACKAGE_NAME = "@wix/auto_sdk_ecom_orders";
|
|
77
|
-
function preparePaymentCollection(payload) {
|
|
78
|
-
function __preparePaymentCollection({ host }) {
|
|
79
|
-
const metadata = {
|
|
80
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
81
|
-
method: "POST",
|
|
82
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.PreparePaymentCollection",
|
|
83
|
-
packageName: PACKAGE_NAME,
|
|
84
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
85
|
-
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/prepare-payment-collection",
|
|
86
|
-
data: payload,
|
|
87
|
-
host
|
|
88
|
-
}),
|
|
89
|
-
data: payload
|
|
90
|
-
};
|
|
91
|
-
return metadata;
|
|
92
|
-
}
|
|
93
|
-
return __preparePaymentCollection;
|
|
94
|
-
}
|
|
95
|
-
function getPaymentCollectabilityStatus(payload) {
|
|
96
|
-
function __getPaymentCollectabilityStatus({ host }) {
|
|
97
|
-
const metadata = {
|
|
98
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
99
|
-
method: "GET",
|
|
100
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.GetPaymentCollectabilityStatus",
|
|
101
|
-
packageName: PACKAGE_NAME,
|
|
102
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
103
|
-
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/payment-collectability-status",
|
|
104
|
-
data: payload,
|
|
105
|
-
host
|
|
106
|
-
}),
|
|
107
|
-
params: toURLSearchParams(payload)
|
|
108
|
-
};
|
|
109
|
-
return metadata;
|
|
110
|
-
}
|
|
111
|
-
return __getPaymentCollectabilityStatus;
|
|
112
|
-
}
|
|
113
|
-
function recordManuallyCollectedPayment(payload) {
|
|
114
|
-
function __recordManuallyCollectedPayment({ host }) {
|
|
115
|
-
const metadata = {
|
|
116
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
117
|
-
method: "POST",
|
|
118
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.RecordManuallyCollectedPayment",
|
|
119
|
-
packageName: PACKAGE_NAME,
|
|
120
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
121
|
-
protoPath: "/v1/payments-collector/orders/{orderId}/manual-payment",
|
|
122
|
-
data: payload,
|
|
123
|
-
host
|
|
124
|
-
}),
|
|
125
|
-
data: payload
|
|
126
|
-
};
|
|
127
|
-
return metadata;
|
|
128
|
-
}
|
|
129
|
-
return __recordManuallyCollectedPayment;
|
|
130
|
-
}
|
|
131
|
-
function paymentCollectionMarkOrderAsPaid(payload) {
|
|
132
|
-
function __paymentCollectionMarkOrderAsPaid({ host }) {
|
|
133
|
-
const metadata = {
|
|
134
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
135
|
-
method: "POST",
|
|
136
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.MarkOrderAsPaid",
|
|
137
|
-
packageName: PACKAGE_NAME,
|
|
138
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
139
|
-
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/mark-as-paid",
|
|
140
|
-
data: payload,
|
|
141
|
-
host
|
|
142
|
-
}),
|
|
143
|
-
data: payload,
|
|
144
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
145
|
-
{
|
|
146
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
147
|
-
paths: [
|
|
148
|
-
{ path: "order.createdDate" },
|
|
149
|
-
{ path: "order.updatedDate" },
|
|
150
|
-
{ path: "order.purchasedDate" },
|
|
151
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
152
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
153
|
-
{
|
|
154
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
155
|
-
},
|
|
156
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
157
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
158
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
159
|
-
{ path: "order.activities.createdDate" }
|
|
160
|
-
]
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
transformFn: transformRESTFloatToSDKFloat,
|
|
164
|
-
paths: [
|
|
165
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
166
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
167
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
168
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
169
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
170
|
-
{
|
|
171
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
172
|
-
},
|
|
173
|
-
{
|
|
174
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
175
|
-
},
|
|
176
|
-
{
|
|
177
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
181
|
-
},
|
|
182
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
183
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
184
|
-
]
|
|
185
|
-
}
|
|
186
|
-
])
|
|
187
|
-
};
|
|
188
|
-
return metadata;
|
|
189
|
-
}
|
|
190
|
-
return __paymentCollectionMarkOrderAsPaid;
|
|
191
|
-
}
|
|
192
|
-
function paymentCollectionBulkMarkOrdersAsPaid(payload) {
|
|
193
|
-
function __paymentCollectionBulkMarkOrdersAsPaid({ host }) {
|
|
194
|
-
const metadata = {
|
|
195
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
196
|
-
method: "POST",
|
|
197
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.BulkMarkOrdersAsPaid",
|
|
198
|
-
packageName: PACKAGE_NAME,
|
|
199
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
200
|
-
protoPath: "/v1/bulk/payments-collector/mark-as-paid",
|
|
201
|
-
data: payload,
|
|
202
|
-
host
|
|
203
|
-
}),
|
|
204
|
-
data: payload,
|
|
205
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
206
|
-
{
|
|
207
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
208
|
-
paths: [
|
|
209
|
-
{ path: "results.item.createdDate" },
|
|
210
|
-
{ path: "results.item.updatedDate" },
|
|
211
|
-
{ path: "results.item.purchasedDate" },
|
|
212
|
-
{ path: "results.item.lineItems.image.urlExpirationDate" },
|
|
213
|
-
{ path: "results.item.lineItems.digitalFile.expirationDate" },
|
|
214
|
-
{
|
|
215
|
-
path: "results.item.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
216
|
-
},
|
|
217
|
-
{ path: "results.item.shippingInfo.logistics.deliverByDate" },
|
|
218
|
-
{
|
|
219
|
-
path: "results.item.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
220
|
-
},
|
|
221
|
-
{
|
|
222
|
-
path: "results.item.shippingInfo.logistics.deliveryTimeSlot.to"
|
|
223
|
-
},
|
|
224
|
-
{ path: "results.item.activities.createdDate" }
|
|
225
|
-
]
|
|
226
|
-
},
|
|
227
|
-
{
|
|
228
|
-
transformFn: transformRESTFloatToSDKFloat,
|
|
229
|
-
paths: [
|
|
230
|
-
{ path: "results.item.lineItems.image.focalPoint.x" },
|
|
231
|
-
{ path: "results.item.lineItems.image.focalPoint.y" },
|
|
232
|
-
{ path: "results.item.lineItems.physicalProperties.weight" },
|
|
233
|
-
{ path: "results.item.billingInfo.address.geocode.latitude" },
|
|
234
|
-
{ path: "results.item.billingInfo.address.geocode.longitude" },
|
|
235
|
-
{
|
|
236
|
-
path: "results.item.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
237
|
-
},
|
|
238
|
-
{
|
|
239
|
-
path: "results.item.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
240
|
-
},
|
|
241
|
-
{
|
|
242
|
-
path: "results.item.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
243
|
-
},
|
|
244
|
-
{
|
|
245
|
-
path: "results.item.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
246
|
-
},
|
|
247
|
-
{ path: "results.item.recipientInfo.address.geocode.latitude" },
|
|
248
|
-
{ path: "results.item.recipientInfo.address.geocode.longitude" }
|
|
249
|
-
]
|
|
250
|
-
}
|
|
251
|
-
])
|
|
252
|
-
};
|
|
253
|
-
return metadata;
|
|
254
|
-
}
|
|
255
|
-
return __paymentCollectionBulkMarkOrdersAsPaid;
|
|
256
|
-
}
|
|
257
|
-
function getRefundabilityStatus(payload) {
|
|
258
|
-
function __getRefundabilityStatus({ host }) {
|
|
259
|
-
const metadata = {
|
|
260
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
261
|
-
method: "GET",
|
|
262
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.GetRefundabilityStatus",
|
|
263
|
-
packageName: PACKAGE_NAME,
|
|
264
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
265
|
-
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/refundability",
|
|
266
|
-
data: payload,
|
|
267
|
-
host
|
|
268
|
-
}),
|
|
269
|
-
params: toURLSearchParams(payload)
|
|
270
|
-
};
|
|
271
|
-
return metadata;
|
|
272
|
-
}
|
|
273
|
-
return __getRefundabilityStatus;
|
|
274
|
-
}
|
|
275
|
-
function paymentCollectionCreatePaymentGatewayOrder(payload) {
|
|
276
|
-
function __paymentCollectionCreatePaymentGatewayOrder({ host }) {
|
|
277
|
-
const metadata = {
|
|
278
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
279
|
-
method: "POST",
|
|
280
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.CreatePaymentGatewayOrder",
|
|
281
|
-
packageName: PACKAGE_NAME,
|
|
282
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
283
|
-
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/create-payment-gateway-order",
|
|
284
|
-
data: payload,
|
|
285
|
-
host
|
|
286
|
-
}),
|
|
287
|
-
data: payload
|
|
288
|
-
};
|
|
289
|
-
return metadata;
|
|
290
|
-
}
|
|
291
|
-
return __paymentCollectionCreatePaymentGatewayOrder;
|
|
292
|
-
}
|
|
293
|
-
function chargeMemberships(payload) {
|
|
294
|
-
function __chargeMemberships({ host }) {
|
|
295
|
-
const serializedData = transformPaths(payload, [
|
|
296
|
-
{
|
|
297
|
-
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
298
|
-
paths: [{ path: "membershipCharges.serviceProperties.scheduledDate" }]
|
|
299
|
-
}
|
|
300
|
-
]);
|
|
301
|
-
const metadata = {
|
|
302
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
303
|
-
method: "POST",
|
|
304
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.ChargeMemberships",
|
|
305
|
-
packageName: PACKAGE_NAME,
|
|
306
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
307
|
-
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/charge-membership",
|
|
308
|
-
data: serializedData,
|
|
309
|
-
host
|
|
310
|
-
}),
|
|
311
|
-
data: serializedData
|
|
312
|
-
};
|
|
313
|
-
return metadata;
|
|
314
|
-
}
|
|
315
|
-
return __chargeMemberships;
|
|
316
|
-
}
|
|
317
|
-
function triggerRefund(payload) {
|
|
318
|
-
function __triggerRefund({ host }) {
|
|
319
|
-
const metadata = {
|
|
320
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
321
|
-
method: "POST",
|
|
322
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.TriggerRefund",
|
|
323
|
-
packageName: PACKAGE_NAME,
|
|
324
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
325
|
-
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/trigger-refund",
|
|
326
|
-
data: payload,
|
|
327
|
-
host
|
|
328
|
-
}),
|
|
329
|
-
data: payload,
|
|
330
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
331
|
-
{
|
|
332
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
333
|
-
paths: [
|
|
334
|
-
{ path: "orderTransactions.payments.createdDate" },
|
|
335
|
-
{ path: "orderTransactions.payments.updatedDate" },
|
|
336
|
-
{
|
|
337
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
|
|
338
|
-
},
|
|
339
|
-
{
|
|
340
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
341
|
-
},
|
|
342
|
-
{
|
|
343
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
344
|
-
},
|
|
345
|
-
{
|
|
346
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
347
|
-
},
|
|
348
|
-
{
|
|
349
|
-
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
|
|
350
|
-
},
|
|
351
|
-
{
|
|
352
|
-
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.updatedDate"
|
|
353
|
-
},
|
|
354
|
-
{ path: "orderTransactions.refunds.createdDate" }
|
|
355
|
-
]
|
|
356
|
-
}
|
|
357
|
-
])
|
|
358
|
-
};
|
|
359
|
-
return metadata;
|
|
360
|
-
}
|
|
361
|
-
return __triggerRefund;
|
|
362
|
-
}
|
|
363
|
-
function voidAuthorizedPayments(payload) {
|
|
364
|
-
function __voidAuthorizedPayments({ host }) {
|
|
365
|
-
const metadata = {
|
|
366
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
367
|
-
method: "POST",
|
|
368
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.VoidAuthorizedPayments",
|
|
369
|
-
packageName: PACKAGE_NAME,
|
|
370
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
371
|
-
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/void-authorized-payments",
|
|
372
|
-
data: payload,
|
|
373
|
-
host
|
|
374
|
-
}),
|
|
375
|
-
data: payload,
|
|
376
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
377
|
-
{
|
|
378
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
379
|
-
paths: [
|
|
380
|
-
{ path: "orderTransactions.payments.createdDate" },
|
|
381
|
-
{ path: "orderTransactions.payments.updatedDate" },
|
|
382
|
-
{
|
|
383
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
|
|
384
|
-
},
|
|
385
|
-
{
|
|
386
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
387
|
-
},
|
|
388
|
-
{
|
|
389
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
390
|
-
},
|
|
391
|
-
{
|
|
392
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
393
|
-
},
|
|
394
|
-
{
|
|
395
|
-
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
|
|
396
|
-
},
|
|
397
|
-
{
|
|
398
|
-
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.updatedDate"
|
|
399
|
-
},
|
|
400
|
-
{ path: "orderTransactions.refunds.createdDate" }
|
|
401
|
-
]
|
|
402
|
-
}
|
|
403
|
-
])
|
|
404
|
-
};
|
|
405
|
-
return metadata;
|
|
406
|
-
}
|
|
407
|
-
return __voidAuthorizedPayments;
|
|
408
|
-
}
|
|
409
|
-
function captureAuthorizedPayments(payload) {
|
|
410
|
-
function __captureAuthorizedPayments({ host }) {
|
|
411
|
-
const metadata = {
|
|
412
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
413
|
-
method: "POST",
|
|
414
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.CaptureAuthorizedPayments",
|
|
415
|
-
packageName: PACKAGE_NAME,
|
|
416
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
417
|
-
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/capture-authorized-payments",
|
|
418
|
-
data: payload,
|
|
419
|
-
host
|
|
420
|
-
}),
|
|
421
|
-
data: payload,
|
|
422
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
423
|
-
{
|
|
424
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
425
|
-
paths: [
|
|
426
|
-
{ path: "orderTransactions.payments.createdDate" },
|
|
427
|
-
{ path: "orderTransactions.payments.updatedDate" },
|
|
428
|
-
{
|
|
429
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
|
|
430
|
-
},
|
|
431
|
-
{
|
|
432
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
433
|
-
},
|
|
434
|
-
{
|
|
435
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
436
|
-
},
|
|
437
|
-
{
|
|
438
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
439
|
-
},
|
|
440
|
-
{
|
|
441
|
-
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
|
|
442
|
-
},
|
|
443
|
-
{
|
|
444
|
-
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.updatedDate"
|
|
445
|
-
},
|
|
446
|
-
{ path: "orderTransactions.refunds.createdDate" }
|
|
447
|
-
]
|
|
448
|
-
}
|
|
449
|
-
])
|
|
450
|
-
};
|
|
451
|
-
return metadata;
|
|
452
|
-
}
|
|
453
|
-
return __captureAuthorizedPayments;
|
|
454
|
-
}
|
|
455
42
|
function getOrder(payload) {
|
|
456
43
|
function __getOrder({ host }) {
|
|
457
44
|
const metadata = {
|
|
@@ -1426,206 +1013,6 @@ function bulkUpdateOrderTags(payload) {
|
|
|
1426
1013
|
}
|
|
1427
1014
|
|
|
1428
1015
|
// src/ecom-v1-order-orders.meta.ts
|
|
1429
|
-
function preparePaymentCollection2() {
|
|
1430
|
-
const payload = { ecomOrderId: ":ecomOrderId" };
|
|
1431
|
-
const getRequestOptions = preparePaymentCollection(payload);
|
|
1432
|
-
const getUrl = (context) => {
|
|
1433
|
-
const { url } = getRequestOptions(context);
|
|
1434
|
-
return url;
|
|
1435
|
-
};
|
|
1436
|
-
return {
|
|
1437
|
-
getUrl,
|
|
1438
|
-
httpMethod: "POST",
|
|
1439
|
-
path: "/v1/payments-collector/orders/{ecomOrderId}/prepare-payment-collection",
|
|
1440
|
-
pathParams: { ecomOrderId: "ecomOrderId" },
|
|
1441
|
-
__requestType: null,
|
|
1442
|
-
__originalRequestType: null,
|
|
1443
|
-
__responseType: null,
|
|
1444
|
-
__originalResponseType: null
|
|
1445
|
-
};
|
|
1446
|
-
}
|
|
1447
|
-
function getPaymentCollectabilityStatus2() {
|
|
1448
|
-
const payload = { ecomOrderId: ":ecomOrderId" };
|
|
1449
|
-
const getRequestOptions = getPaymentCollectabilityStatus(payload);
|
|
1450
|
-
const getUrl = (context) => {
|
|
1451
|
-
const { url } = getRequestOptions(context);
|
|
1452
|
-
return url;
|
|
1453
|
-
};
|
|
1454
|
-
return {
|
|
1455
|
-
getUrl,
|
|
1456
|
-
httpMethod: "GET",
|
|
1457
|
-
path: "/v1/payments-collector/orders/{ecomOrderId}/payment-collectability-status",
|
|
1458
|
-
pathParams: { ecomOrderId: "ecomOrderId" },
|
|
1459
|
-
__requestType: null,
|
|
1460
|
-
__originalRequestType: null,
|
|
1461
|
-
__responseType: null,
|
|
1462
|
-
__originalResponseType: null
|
|
1463
|
-
};
|
|
1464
|
-
}
|
|
1465
|
-
function recordManuallyCollectedPayment2() {
|
|
1466
|
-
const payload = { orderId: ":orderId" };
|
|
1467
|
-
const getRequestOptions = recordManuallyCollectedPayment(payload);
|
|
1468
|
-
const getUrl = (context) => {
|
|
1469
|
-
const { url } = getRequestOptions(context);
|
|
1470
|
-
return url;
|
|
1471
|
-
};
|
|
1472
|
-
return {
|
|
1473
|
-
getUrl,
|
|
1474
|
-
httpMethod: "POST",
|
|
1475
|
-
path: "/v1/payments-collector/orders/{orderId}/manual-payment",
|
|
1476
|
-
pathParams: { orderId: "orderId" },
|
|
1477
|
-
__requestType: null,
|
|
1478
|
-
__originalRequestType: null,
|
|
1479
|
-
__responseType: null,
|
|
1480
|
-
__originalResponseType: null
|
|
1481
|
-
};
|
|
1482
|
-
}
|
|
1483
|
-
function paymentCollectionMarkOrderAsPaid2() {
|
|
1484
|
-
const payload = { ecomOrderId: ":ecomOrderId" };
|
|
1485
|
-
const getRequestOptions = paymentCollectionMarkOrderAsPaid(payload);
|
|
1486
|
-
const getUrl = (context) => {
|
|
1487
|
-
const { url } = getRequestOptions(context);
|
|
1488
|
-
return url;
|
|
1489
|
-
};
|
|
1490
|
-
return {
|
|
1491
|
-
getUrl,
|
|
1492
|
-
httpMethod: "POST",
|
|
1493
|
-
path: "/v1/payments-collector/orders/{ecomOrderId}/mark-as-paid",
|
|
1494
|
-
pathParams: { ecomOrderId: "ecomOrderId" },
|
|
1495
|
-
__requestType: null,
|
|
1496
|
-
__originalRequestType: null,
|
|
1497
|
-
__responseType: null,
|
|
1498
|
-
__originalResponseType: null
|
|
1499
|
-
};
|
|
1500
|
-
}
|
|
1501
|
-
function paymentCollectionBulkMarkOrdersAsPaid2() {
|
|
1502
|
-
const payload = {};
|
|
1503
|
-
const getRequestOptions = paymentCollectionBulkMarkOrdersAsPaid(payload);
|
|
1504
|
-
const getUrl = (context) => {
|
|
1505
|
-
const { url } = getRequestOptions(context);
|
|
1506
|
-
return url;
|
|
1507
|
-
};
|
|
1508
|
-
return {
|
|
1509
|
-
getUrl,
|
|
1510
|
-
httpMethod: "POST",
|
|
1511
|
-
path: "/v1/bulk/payments-collector/mark-as-paid",
|
|
1512
|
-
pathParams: {},
|
|
1513
|
-
__requestType: null,
|
|
1514
|
-
__originalRequestType: null,
|
|
1515
|
-
__responseType: null,
|
|
1516
|
-
__originalResponseType: null
|
|
1517
|
-
};
|
|
1518
|
-
}
|
|
1519
|
-
function getRefundabilityStatus2() {
|
|
1520
|
-
const payload = { ecomOrderId: ":ecomOrderId" };
|
|
1521
|
-
const getRequestOptions = getRefundabilityStatus(payload);
|
|
1522
|
-
const getUrl = (context) => {
|
|
1523
|
-
const { url } = getRequestOptions(context);
|
|
1524
|
-
return url;
|
|
1525
|
-
};
|
|
1526
|
-
return {
|
|
1527
|
-
getUrl,
|
|
1528
|
-
httpMethod: "GET",
|
|
1529
|
-
path: "/v1/payments-collector/orders/{ecomOrderId}/refundability",
|
|
1530
|
-
pathParams: { ecomOrderId: "ecomOrderId" },
|
|
1531
|
-
__requestType: null,
|
|
1532
|
-
__originalRequestType: null,
|
|
1533
|
-
__responseType: null,
|
|
1534
|
-
__originalResponseType: null
|
|
1535
|
-
};
|
|
1536
|
-
}
|
|
1537
|
-
function paymentCollectionCreatePaymentGatewayOrder2() {
|
|
1538
|
-
const payload = { ecomOrderId: ":ecomOrderId" };
|
|
1539
|
-
const getRequestOptions = paymentCollectionCreatePaymentGatewayOrder(
|
|
1540
|
-
payload
|
|
1541
|
-
);
|
|
1542
|
-
const getUrl = (context) => {
|
|
1543
|
-
const { url } = getRequestOptions(context);
|
|
1544
|
-
return url;
|
|
1545
|
-
};
|
|
1546
|
-
return {
|
|
1547
|
-
getUrl,
|
|
1548
|
-
httpMethod: "POST",
|
|
1549
|
-
path: "/v1/payments-collector/orders/{ecomOrderId}/create-payment-gateway-order",
|
|
1550
|
-
pathParams: { ecomOrderId: "ecomOrderId" },
|
|
1551
|
-
__requestType: null,
|
|
1552
|
-
__originalRequestType: null,
|
|
1553
|
-
__responseType: null,
|
|
1554
|
-
__originalResponseType: null
|
|
1555
|
-
};
|
|
1556
|
-
}
|
|
1557
|
-
function chargeMemberships2() {
|
|
1558
|
-
const payload = { ecomOrderId: ":ecomOrderId" };
|
|
1559
|
-
const getRequestOptions = chargeMemberships(payload);
|
|
1560
|
-
const getUrl = (context) => {
|
|
1561
|
-
const { url } = getRequestOptions(context);
|
|
1562
|
-
return url;
|
|
1563
|
-
};
|
|
1564
|
-
return {
|
|
1565
|
-
getUrl,
|
|
1566
|
-
httpMethod: "POST",
|
|
1567
|
-
path: "/v1/payments-collector/orders/{ecomOrderId}/charge-membership",
|
|
1568
|
-
pathParams: { ecomOrderId: "ecomOrderId" },
|
|
1569
|
-
__requestType: null,
|
|
1570
|
-
__originalRequestType: null,
|
|
1571
|
-
__responseType: null,
|
|
1572
|
-
__originalResponseType: null
|
|
1573
|
-
};
|
|
1574
|
-
}
|
|
1575
|
-
function triggerRefund2() {
|
|
1576
|
-
const payload = { ecomOrderId: ":ecomOrderId" };
|
|
1577
|
-
const getRequestOptions = triggerRefund(payload);
|
|
1578
|
-
const getUrl = (context) => {
|
|
1579
|
-
const { url } = getRequestOptions(context);
|
|
1580
|
-
return url;
|
|
1581
|
-
};
|
|
1582
|
-
return {
|
|
1583
|
-
getUrl,
|
|
1584
|
-
httpMethod: "POST",
|
|
1585
|
-
path: "/v1/payments-collector/orders/{ecomOrderId}/trigger-refund",
|
|
1586
|
-
pathParams: { ecomOrderId: "ecomOrderId" },
|
|
1587
|
-
__requestType: null,
|
|
1588
|
-
__originalRequestType: null,
|
|
1589
|
-
__responseType: null,
|
|
1590
|
-
__originalResponseType: null
|
|
1591
|
-
};
|
|
1592
|
-
}
|
|
1593
|
-
function voidAuthorizedPayments2() {
|
|
1594
|
-
const payload = { ecomOrderId: ":ecomOrderId" };
|
|
1595
|
-
const getRequestOptions = voidAuthorizedPayments(payload);
|
|
1596
|
-
const getUrl = (context) => {
|
|
1597
|
-
const { url } = getRequestOptions(context);
|
|
1598
|
-
return url;
|
|
1599
|
-
};
|
|
1600
|
-
return {
|
|
1601
|
-
getUrl,
|
|
1602
|
-
httpMethod: "POST",
|
|
1603
|
-
path: "/v1/payments-collector/orders/{ecomOrderId}/void-authorized-payments",
|
|
1604
|
-
pathParams: { ecomOrderId: "ecomOrderId" },
|
|
1605
|
-
__requestType: null,
|
|
1606
|
-
__originalRequestType: null,
|
|
1607
|
-
__responseType: null,
|
|
1608
|
-
__originalResponseType: null
|
|
1609
|
-
};
|
|
1610
|
-
}
|
|
1611
|
-
function captureAuthorizedPayments2() {
|
|
1612
|
-
const payload = { ecomOrderId: ":ecomOrderId" };
|
|
1613
|
-
const getRequestOptions = captureAuthorizedPayments(payload);
|
|
1614
|
-
const getUrl = (context) => {
|
|
1615
|
-
const { url } = getRequestOptions(context);
|
|
1616
|
-
return url;
|
|
1617
|
-
};
|
|
1618
|
-
return {
|
|
1619
|
-
getUrl,
|
|
1620
|
-
httpMethod: "POST",
|
|
1621
|
-
path: "/v1/payments-collector/orders/{ecomOrderId}/capture-authorized-payments",
|
|
1622
|
-
pathParams: { ecomOrderId: "ecomOrderId" },
|
|
1623
|
-
__requestType: null,
|
|
1624
|
-
__originalRequestType: null,
|
|
1625
|
-
__responseType: null,
|
|
1626
|
-
__originalResponseType: null
|
|
1627
|
-
};
|
|
1628
|
-
}
|
|
1629
1016
|
function getOrder2() {
|
|
1630
1017
|
const payload = { id: ":id" };
|
|
1631
1018
|
const getRequestOptions = getOrder(payload);
|
|
@@ -1884,25 +1271,14 @@ export {
|
|
|
1884
1271
|
bulkUpdateOrderTags2 as bulkUpdateOrderTags,
|
|
1885
1272
|
bulkUpdateOrders2 as bulkUpdateOrders,
|
|
1886
1273
|
cancelOrder2 as cancelOrder,
|
|
1887
|
-
captureAuthorizedPayments2 as captureAuthorizedPayments,
|
|
1888
|
-
chargeMemberships2 as chargeMemberships,
|
|
1889
1274
|
commitDeltas2 as commitDeltas,
|
|
1890
1275
|
createOrder2 as createOrder,
|
|
1891
1276
|
deleteActivity2 as deleteActivity,
|
|
1892
1277
|
getOrder2 as getOrder,
|
|
1893
|
-
getPaymentCollectabilityStatus2 as getPaymentCollectabilityStatus,
|
|
1894
|
-
getRefundabilityStatus2 as getRefundabilityStatus,
|
|
1895
|
-
paymentCollectionBulkMarkOrdersAsPaid2 as paymentCollectionBulkMarkOrdersAsPaid,
|
|
1896
|
-
paymentCollectionCreatePaymentGatewayOrder2 as paymentCollectionCreatePaymentGatewayOrder,
|
|
1897
|
-
paymentCollectionMarkOrderAsPaid2 as paymentCollectionMarkOrderAsPaid,
|
|
1898
|
-
preparePaymentCollection2 as preparePaymentCollection,
|
|
1899
|
-
recordManuallyCollectedPayment2 as recordManuallyCollectedPayment,
|
|
1900
1278
|
searchOrders2 as searchOrders,
|
|
1901
|
-
triggerRefund2 as triggerRefund,
|
|
1902
1279
|
updateActivity2 as updateActivity,
|
|
1903
1280
|
updateOrder2 as updateOrder,
|
|
1904
1281
|
updateOrderLineItem2 as updateOrderLineItem,
|
|
1905
|
-
updateOrderStatus2 as updateOrderStatus
|
|
1906
|
-
voidAuthorizedPayments2 as voidAuthorizedPayments
|
|
1282
|
+
updateOrderStatus2 as updateOrderStatus
|
|
1907
1283
|
};
|
|
1908
1284
|
//# sourceMappingURL=meta.mjs.map
|