@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/es/meta.mjs
CHANGED
|
@@ -8,432 +8,10 @@ import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transform
|
|
|
8
8
|
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
9
9
|
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
10
10
|
function resolveComWixEcomOrdersV1OrdersUrl(opts) {
|
|
11
|
-
const domainToMappings = {
|
|
12
|
-
_: [
|
|
13
|
-
{
|
|
14
|
-
srcPath: "/_api/ecom-orders",
|
|
15
|
-
destPath: ""
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
srcPath: "/_api/orders",
|
|
19
|
-
destPath: ""
|
|
20
|
-
}
|
|
21
|
-
],
|
|
22
|
-
"manage._base_domain_": [
|
|
23
|
-
{
|
|
24
|
-
srcPath: "/_api/ecom-orders",
|
|
25
|
-
destPath: ""
|
|
26
|
-
}
|
|
27
|
-
],
|
|
28
|
-
"www.wixapis.com": [
|
|
29
|
-
{
|
|
30
|
-
srcPath: "/ecom/v1/bulk/orders",
|
|
31
|
-
destPath: "/v1/bulk/orders"
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
srcPath: "/ecom/v1/orders",
|
|
35
|
-
destPath: "/v1/orders"
|
|
36
|
-
}
|
|
37
|
-
]
|
|
38
|
-
};
|
|
39
|
-
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
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
|
-
};
|
|
11
|
+
const domainToMappings = {};
|
|
74
12
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
75
13
|
}
|
|
76
14
|
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
|
-
{ path: "orderTransactions.refunds.createdDate" }
|
|
349
|
-
]
|
|
350
|
-
}
|
|
351
|
-
])
|
|
352
|
-
};
|
|
353
|
-
return metadata;
|
|
354
|
-
}
|
|
355
|
-
return __triggerRefund;
|
|
356
|
-
}
|
|
357
|
-
function voidAuthorizedPayments(payload) {
|
|
358
|
-
function __voidAuthorizedPayments({ host }) {
|
|
359
|
-
const metadata = {
|
|
360
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
361
|
-
method: "POST",
|
|
362
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.VoidAuthorizedPayments",
|
|
363
|
-
packageName: PACKAGE_NAME,
|
|
364
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
365
|
-
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/void-authorized-payments",
|
|
366
|
-
data: payload,
|
|
367
|
-
host
|
|
368
|
-
}),
|
|
369
|
-
data: payload,
|
|
370
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
371
|
-
{
|
|
372
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
373
|
-
paths: [
|
|
374
|
-
{ path: "orderTransactions.payments.createdDate" },
|
|
375
|
-
{ path: "orderTransactions.payments.updatedDate" },
|
|
376
|
-
{
|
|
377
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
|
|
378
|
-
},
|
|
379
|
-
{
|
|
380
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
381
|
-
},
|
|
382
|
-
{
|
|
383
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
384
|
-
},
|
|
385
|
-
{
|
|
386
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
387
|
-
},
|
|
388
|
-
{ path: "orderTransactions.refunds.createdDate" }
|
|
389
|
-
]
|
|
390
|
-
}
|
|
391
|
-
])
|
|
392
|
-
};
|
|
393
|
-
return metadata;
|
|
394
|
-
}
|
|
395
|
-
return __voidAuthorizedPayments;
|
|
396
|
-
}
|
|
397
|
-
function captureAuthorizedPayments(payload) {
|
|
398
|
-
function __captureAuthorizedPayments({ host }) {
|
|
399
|
-
const metadata = {
|
|
400
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
401
|
-
method: "POST",
|
|
402
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.CaptureAuthorizedPayments",
|
|
403
|
-
packageName: PACKAGE_NAME,
|
|
404
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
405
|
-
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/capture-authorized-payments",
|
|
406
|
-
data: payload,
|
|
407
|
-
host
|
|
408
|
-
}),
|
|
409
|
-
data: payload,
|
|
410
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
411
|
-
{
|
|
412
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
413
|
-
paths: [
|
|
414
|
-
{ path: "orderTransactions.payments.createdDate" },
|
|
415
|
-
{ path: "orderTransactions.payments.updatedDate" },
|
|
416
|
-
{
|
|
417
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
|
|
418
|
-
},
|
|
419
|
-
{
|
|
420
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
421
|
-
},
|
|
422
|
-
{
|
|
423
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
424
|
-
},
|
|
425
|
-
{
|
|
426
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
427
|
-
},
|
|
428
|
-
{ path: "orderTransactions.refunds.createdDate" }
|
|
429
|
-
]
|
|
430
|
-
}
|
|
431
|
-
])
|
|
432
|
-
};
|
|
433
|
-
return metadata;
|
|
434
|
-
}
|
|
435
|
-
return __captureAuthorizedPayments;
|
|
436
|
-
}
|
|
437
15
|
function getOrder(payload) {
|
|
438
16
|
function __getOrder({ host }) {
|
|
439
17
|
const metadata = {
|
|
@@ -1408,206 +986,6 @@ function bulkUpdateOrderTags(payload) {
|
|
|
1408
986
|
}
|
|
1409
987
|
|
|
1410
988
|
// src/ecom-v1-order-orders.meta.ts
|
|
1411
|
-
function preparePaymentCollection2() {
|
|
1412
|
-
const payload = { ecomOrderId: ":ecomOrderId" };
|
|
1413
|
-
const getRequestOptions = preparePaymentCollection(payload);
|
|
1414
|
-
const getUrl = (context) => {
|
|
1415
|
-
const { url } = getRequestOptions(context);
|
|
1416
|
-
return url;
|
|
1417
|
-
};
|
|
1418
|
-
return {
|
|
1419
|
-
getUrl,
|
|
1420
|
-
httpMethod: "POST",
|
|
1421
|
-
path: "/v1/payments-collector/orders/{ecomOrderId}/prepare-payment-collection",
|
|
1422
|
-
pathParams: { ecomOrderId: "ecomOrderId" },
|
|
1423
|
-
__requestType: null,
|
|
1424
|
-
__originalRequestType: null,
|
|
1425
|
-
__responseType: null,
|
|
1426
|
-
__originalResponseType: null
|
|
1427
|
-
};
|
|
1428
|
-
}
|
|
1429
|
-
function getPaymentCollectabilityStatus2() {
|
|
1430
|
-
const payload = { ecomOrderId: ":ecomOrderId" };
|
|
1431
|
-
const getRequestOptions = getPaymentCollectabilityStatus(payload);
|
|
1432
|
-
const getUrl = (context) => {
|
|
1433
|
-
const { url } = getRequestOptions(context);
|
|
1434
|
-
return url;
|
|
1435
|
-
};
|
|
1436
|
-
return {
|
|
1437
|
-
getUrl,
|
|
1438
|
-
httpMethod: "GET",
|
|
1439
|
-
path: "/v1/payments-collector/orders/{ecomOrderId}/payment-collectability-status",
|
|
1440
|
-
pathParams: { ecomOrderId: "ecomOrderId" },
|
|
1441
|
-
__requestType: null,
|
|
1442
|
-
__originalRequestType: null,
|
|
1443
|
-
__responseType: null,
|
|
1444
|
-
__originalResponseType: null
|
|
1445
|
-
};
|
|
1446
|
-
}
|
|
1447
|
-
function recordManuallyCollectedPayment2() {
|
|
1448
|
-
const payload = { orderId: ":orderId" };
|
|
1449
|
-
const getRequestOptions = recordManuallyCollectedPayment(payload);
|
|
1450
|
-
const getUrl = (context) => {
|
|
1451
|
-
const { url } = getRequestOptions(context);
|
|
1452
|
-
return url;
|
|
1453
|
-
};
|
|
1454
|
-
return {
|
|
1455
|
-
getUrl,
|
|
1456
|
-
httpMethod: "POST",
|
|
1457
|
-
path: "/v1/payments-collector/orders/{orderId}/manual-payment",
|
|
1458
|
-
pathParams: { orderId: "orderId" },
|
|
1459
|
-
__requestType: null,
|
|
1460
|
-
__originalRequestType: null,
|
|
1461
|
-
__responseType: null,
|
|
1462
|
-
__originalResponseType: null
|
|
1463
|
-
};
|
|
1464
|
-
}
|
|
1465
|
-
function paymentCollectionMarkOrderAsPaid2() {
|
|
1466
|
-
const payload = { ecomOrderId: ":ecomOrderId" };
|
|
1467
|
-
const getRequestOptions = paymentCollectionMarkOrderAsPaid(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/{ecomOrderId}/mark-as-paid",
|
|
1476
|
-
pathParams: { ecomOrderId: "ecomOrderId" },
|
|
1477
|
-
__requestType: null,
|
|
1478
|
-
__originalRequestType: null,
|
|
1479
|
-
__responseType: null,
|
|
1480
|
-
__originalResponseType: null
|
|
1481
|
-
};
|
|
1482
|
-
}
|
|
1483
|
-
function paymentCollectionBulkMarkOrdersAsPaid2() {
|
|
1484
|
-
const payload = {};
|
|
1485
|
-
const getRequestOptions = paymentCollectionBulkMarkOrdersAsPaid(payload);
|
|
1486
|
-
const getUrl = (context) => {
|
|
1487
|
-
const { url } = getRequestOptions(context);
|
|
1488
|
-
return url;
|
|
1489
|
-
};
|
|
1490
|
-
return {
|
|
1491
|
-
getUrl,
|
|
1492
|
-
httpMethod: "POST",
|
|
1493
|
-
path: "/v1/bulk/payments-collector/mark-as-paid",
|
|
1494
|
-
pathParams: {},
|
|
1495
|
-
__requestType: null,
|
|
1496
|
-
__originalRequestType: null,
|
|
1497
|
-
__responseType: null,
|
|
1498
|
-
__originalResponseType: null
|
|
1499
|
-
};
|
|
1500
|
-
}
|
|
1501
|
-
function getRefundabilityStatus2() {
|
|
1502
|
-
const payload = { ecomOrderId: ":ecomOrderId" };
|
|
1503
|
-
const getRequestOptions = getRefundabilityStatus(payload);
|
|
1504
|
-
const getUrl = (context) => {
|
|
1505
|
-
const { url } = getRequestOptions(context);
|
|
1506
|
-
return url;
|
|
1507
|
-
};
|
|
1508
|
-
return {
|
|
1509
|
-
getUrl,
|
|
1510
|
-
httpMethod: "GET",
|
|
1511
|
-
path: "/v1/payments-collector/orders/{ecomOrderId}/refundability",
|
|
1512
|
-
pathParams: { ecomOrderId: "ecomOrderId" },
|
|
1513
|
-
__requestType: null,
|
|
1514
|
-
__originalRequestType: null,
|
|
1515
|
-
__responseType: null,
|
|
1516
|
-
__originalResponseType: null
|
|
1517
|
-
};
|
|
1518
|
-
}
|
|
1519
|
-
function paymentCollectionCreatePaymentGatewayOrder2() {
|
|
1520
|
-
const payload = { ecomOrderId: ":ecomOrderId" };
|
|
1521
|
-
const getRequestOptions = paymentCollectionCreatePaymentGatewayOrder(
|
|
1522
|
-
payload
|
|
1523
|
-
);
|
|
1524
|
-
const getUrl = (context) => {
|
|
1525
|
-
const { url } = getRequestOptions(context);
|
|
1526
|
-
return url;
|
|
1527
|
-
};
|
|
1528
|
-
return {
|
|
1529
|
-
getUrl,
|
|
1530
|
-
httpMethod: "POST",
|
|
1531
|
-
path: "/v1/payments-collector/orders/{ecomOrderId}/create-payment-gateway-order",
|
|
1532
|
-
pathParams: { ecomOrderId: "ecomOrderId" },
|
|
1533
|
-
__requestType: null,
|
|
1534
|
-
__originalRequestType: null,
|
|
1535
|
-
__responseType: null,
|
|
1536
|
-
__originalResponseType: null
|
|
1537
|
-
};
|
|
1538
|
-
}
|
|
1539
|
-
function chargeMemberships2() {
|
|
1540
|
-
const payload = { ecomOrderId: ":ecomOrderId" };
|
|
1541
|
-
const getRequestOptions = chargeMemberships(payload);
|
|
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}/charge-membership",
|
|
1550
|
-
pathParams: { ecomOrderId: "ecomOrderId" },
|
|
1551
|
-
__requestType: null,
|
|
1552
|
-
__originalRequestType: null,
|
|
1553
|
-
__responseType: null,
|
|
1554
|
-
__originalResponseType: null
|
|
1555
|
-
};
|
|
1556
|
-
}
|
|
1557
|
-
function triggerRefund2() {
|
|
1558
|
-
const payload = { ecomOrderId: ":ecomOrderId" };
|
|
1559
|
-
const getRequestOptions = triggerRefund(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}/trigger-refund",
|
|
1568
|
-
pathParams: { ecomOrderId: "ecomOrderId" },
|
|
1569
|
-
__requestType: null,
|
|
1570
|
-
__originalRequestType: null,
|
|
1571
|
-
__responseType: null,
|
|
1572
|
-
__originalResponseType: null
|
|
1573
|
-
};
|
|
1574
|
-
}
|
|
1575
|
-
function voidAuthorizedPayments2() {
|
|
1576
|
-
const payload = { ecomOrderId: ":ecomOrderId" };
|
|
1577
|
-
const getRequestOptions = voidAuthorizedPayments(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}/void-authorized-payments",
|
|
1586
|
-
pathParams: { ecomOrderId: "ecomOrderId" },
|
|
1587
|
-
__requestType: null,
|
|
1588
|
-
__originalRequestType: null,
|
|
1589
|
-
__responseType: null,
|
|
1590
|
-
__originalResponseType: null
|
|
1591
|
-
};
|
|
1592
|
-
}
|
|
1593
|
-
function captureAuthorizedPayments2() {
|
|
1594
|
-
const payload = { ecomOrderId: ":ecomOrderId" };
|
|
1595
|
-
const getRequestOptions = captureAuthorizedPayments(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}/capture-authorized-payments",
|
|
1604
|
-
pathParams: { ecomOrderId: "ecomOrderId" },
|
|
1605
|
-
__requestType: null,
|
|
1606
|
-
__originalRequestType: null,
|
|
1607
|
-
__responseType: null,
|
|
1608
|
-
__originalResponseType: null
|
|
1609
|
-
};
|
|
1610
|
-
}
|
|
1611
989
|
function getOrder2() {
|
|
1612
990
|
const payload = { id: ":id" };
|
|
1613
991
|
const getRequestOptions = getOrder(payload);
|
|
@@ -1866,25 +1244,14 @@ export {
|
|
|
1866
1244
|
bulkUpdateOrderTags2 as bulkUpdateOrderTags,
|
|
1867
1245
|
bulkUpdateOrders2 as bulkUpdateOrders,
|
|
1868
1246
|
cancelOrder2 as cancelOrder,
|
|
1869
|
-
captureAuthorizedPayments2 as captureAuthorizedPayments,
|
|
1870
|
-
chargeMemberships2 as chargeMemberships,
|
|
1871
1247
|
commitDeltas2 as commitDeltas,
|
|
1872
1248
|
createOrder2 as createOrder,
|
|
1873
1249
|
deleteActivity2 as deleteActivity,
|
|
1874
1250
|
getOrder2 as getOrder,
|
|
1875
|
-
getPaymentCollectabilityStatus2 as getPaymentCollectabilityStatus,
|
|
1876
|
-
getRefundabilityStatus2 as getRefundabilityStatus,
|
|
1877
|
-
paymentCollectionBulkMarkOrdersAsPaid2 as paymentCollectionBulkMarkOrdersAsPaid,
|
|
1878
|
-
paymentCollectionCreatePaymentGatewayOrder2 as paymentCollectionCreatePaymentGatewayOrder,
|
|
1879
|
-
paymentCollectionMarkOrderAsPaid2 as paymentCollectionMarkOrderAsPaid,
|
|
1880
|
-
preparePaymentCollection2 as preparePaymentCollection,
|
|
1881
|
-
recordManuallyCollectedPayment2 as recordManuallyCollectedPayment,
|
|
1882
1251
|
searchOrders2 as searchOrders,
|
|
1883
|
-
triggerRefund2 as triggerRefund,
|
|
1884
1252
|
updateActivity2 as updateActivity,
|
|
1885
1253
|
updateOrder2 as updateOrder,
|
|
1886
1254
|
updateOrderLineItem2 as updateOrderLineItem,
|
|
1887
|
-
updateOrderStatus2 as updateOrderStatus
|
|
1888
|
-
voidAuthorizedPayments2 as voidAuthorizedPayments
|
|
1255
|
+
updateOrderStatus2 as updateOrderStatus
|
|
1889
1256
|
};
|
|
1890
1257
|
//# sourceMappingURL=meta.mjs.map
|