@wix/auto_sdk_ecom_orders 1.0.69 → 1.0.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/{internal/cjs/ecom-v1-order-orders.universal-BAE6DVkA.d.ts → cjs/ecom-v1-order-orders.universal-C73TYoI7.d.ts} +1857 -885
- package/build/cjs/index.d.ts +59 -6
- package/build/cjs/index.js +1118 -56
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +1295 -333
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +1006 -38
- package/build/cjs/meta.js +665 -3
- package/build/cjs/meta.js.map +1 -1
- package/build/{internal/es/ecom-v1-order-orders.universal-BAE6DVkA.d.mts → es/ecom-v1-order-orders.universal-C73TYoI7.d.mts} +1857 -885
- package/build/es/index.d.mts +59 -6
- package/build/es/index.mjs +1090 -55
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs +1267 -332
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +1006 -38
- package/build/es/meta.mjs +653 -2
- package/build/es/meta.mjs.map +1 -1
- package/build/{cjs/ecom-v1-order-orders.universal-Br3Nippn.d.ts → internal/cjs/ecom-v1-order-orders.universal-KCtJReRk.d.ts} +2528 -365
- package/build/internal/cjs/index.d.ts +165 -6
- package/build/internal/cjs/index.js +1118 -56
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +2 -2
- package/build/internal/cjs/index.typings.js +1295 -333
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +1006 -38
- package/build/internal/cjs/meta.js +665 -3
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/{es/ecom-v1-order-orders.universal-Br3Nippn.d.mts → internal/es/ecom-v1-order-orders.universal-KCtJReRk.d.mts} +2528 -365
- package/build/internal/es/index.d.mts +165 -6
- package/build/internal/es/index.mjs +1090 -55
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +2 -2
- package/build/internal/es/index.typings.mjs +1267 -332
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +1006 -38
- package/build/internal/es/meta.mjs +653 -2
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -20,35 +20,51 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// index.ts
|
|
21
21
|
var index_exports = {};
|
|
22
22
|
__export(index_exports, {
|
|
23
|
+
ActionType: () => ActionType,
|
|
23
24
|
ActivityType: () => ActivityType,
|
|
24
25
|
AdjustmentType: () => AdjustmentType,
|
|
25
26
|
AttributionSource: () => AttributionSource,
|
|
27
|
+
AuthorizationCaptureStatus: () => AuthorizationCaptureStatus,
|
|
28
|
+
AuthorizationVoidStatus: () => AuthorizationVoidStatus,
|
|
26
29
|
ChannelType: () => ChannelType,
|
|
30
|
+
ChargebackStatus: () => ChargebackStatus,
|
|
27
31
|
CustomFieldGroup: () => CustomFieldGroup,
|
|
28
32
|
DeltaPaymentOptionType: () => DeltaPaymentOptionType,
|
|
29
33
|
DepositType: () => DepositType,
|
|
30
34
|
DescriptionLineType: () => DescriptionLineType,
|
|
31
35
|
DiscountReason: () => DiscountReason,
|
|
32
36
|
DiscountType: () => DiscountType,
|
|
37
|
+
DurationUnit: () => DurationUnit,
|
|
33
38
|
FulfillmentStatus: () => FulfillmentStatus,
|
|
34
39
|
InventoryAction: () => InventoryAction,
|
|
35
40
|
InvoiceStatus: () => InvoiceStatus,
|
|
36
41
|
ItemTypeItemType: () => ItemTypeItemType,
|
|
37
42
|
JurisdictionType: () => JurisdictionType,
|
|
38
43
|
LineItemQuantityChangeType: () => LineItemQuantityChangeType,
|
|
44
|
+
ManuallyRefundableReason: () => ManuallyRefundableReason,
|
|
45
|
+
MembershipPaymentStatus: () => MembershipPaymentStatus,
|
|
46
|
+
NonRefundableReason: () => NonRefundableReason,
|
|
39
47
|
OrderApprovalStrategy: () => OrderApprovalStrategy,
|
|
40
48
|
OrderStatus: () => OrderStatus,
|
|
49
|
+
PaymentCollectabilityStatus: () => PaymentCollectabilityStatus,
|
|
41
50
|
PaymentOptionType: () => PaymentOptionType,
|
|
42
51
|
PaymentStatus: () => PaymentStatus,
|
|
43
52
|
PickupMethod: () => PickupMethod,
|
|
44
53
|
Placement: () => Placement,
|
|
54
|
+
Reason: () => Reason,
|
|
55
|
+
RefundStatus: () => RefundStatus,
|
|
56
|
+
RefundableStatus: () => RefundableStatus,
|
|
57
|
+
RestockType: () => RestockType,
|
|
58
|
+
ScheduledAction: () => ScheduledAction,
|
|
45
59
|
SortOrder: () => SortOrder,
|
|
46
60
|
SourceType: () => SourceType,
|
|
47
61
|
SubdivisionType: () => SubdivisionType,
|
|
48
62
|
SubscriptionFrequency: () => SubscriptionFrequency,
|
|
49
63
|
TaxableAddressType: () => TaxableAddressType,
|
|
64
|
+
TransactionStatus: () => TransactionStatus,
|
|
50
65
|
ValueType: () => ValueType,
|
|
51
66
|
VatType: () => VatType,
|
|
67
|
+
VersioningMode: () => VersioningMode,
|
|
52
68
|
WebhookIdentityType: () => WebhookIdentityType,
|
|
53
69
|
WeightUnit: () => WeightUnit,
|
|
54
70
|
addActivity: () => addActivity4,
|
|
@@ -56,20 +72,31 @@ __export(index_exports, {
|
|
|
56
72
|
bulkUpdateOrderTags: () => bulkUpdateOrderTags4,
|
|
57
73
|
bulkUpdateOrders: () => bulkUpdateOrders4,
|
|
58
74
|
cancelOrder: () => cancelOrder4,
|
|
75
|
+
captureAuthorizedPayments: () => captureAuthorizedPayments4,
|
|
76
|
+
chargeMemberships: () => chargeMemberships4,
|
|
59
77
|
commitDeltas: () => commitDeltas4,
|
|
60
78
|
createOrder: () => createOrder4,
|
|
61
79
|
deleteActivity: () => deleteActivity4,
|
|
62
80
|
getOrder: () => getOrder4,
|
|
81
|
+
getPaymentCollectabilityStatus: () => getPaymentCollectabilityStatus4,
|
|
82
|
+
getRefundabilityStatus: () => getRefundabilityStatus4,
|
|
63
83
|
onOrderApproved: () => onOrderApproved2,
|
|
64
84
|
onOrderCanceled: () => onOrderCanceled2,
|
|
65
85
|
onOrderCreated: () => onOrderCreated2,
|
|
66
86
|
onOrderPaymentStatusUpdated: () => onOrderPaymentStatusUpdated2,
|
|
67
87
|
onOrderUpdated: () => onOrderUpdated2,
|
|
88
|
+
paymentCollectionBulkMarkOrdersAsPaid: () => paymentCollectionBulkMarkOrdersAsPaid4,
|
|
89
|
+
paymentCollectionCreatePaymentGatewayOrder: () => paymentCollectionCreatePaymentGatewayOrder4,
|
|
90
|
+
paymentCollectionMarkOrderAsPaid: () => paymentCollectionMarkOrderAsPaid4,
|
|
91
|
+
preparePaymentCollection: () => preparePaymentCollection4,
|
|
92
|
+
recordManuallyCollectedPayment: () => recordManuallyCollectedPayment4,
|
|
68
93
|
searchOrders: () => searchOrders4,
|
|
94
|
+
triggerRefund: () => triggerRefund4,
|
|
69
95
|
updateActivity: () => updateActivity4,
|
|
70
96
|
updateOrder: () => updateOrder4,
|
|
71
97
|
updateOrderLineItem: () => updateOrderLineItem4,
|
|
72
|
-
updateOrderStatus: () => updateOrderStatus4
|
|
98
|
+
updateOrderStatus: () => updateOrderStatus4,
|
|
99
|
+
voidAuthorizedPayments: () => voidAuthorizedPayments4
|
|
73
100
|
});
|
|
74
101
|
module.exports = __toCommonJS(index_exports);
|
|
75
102
|
|
|
@@ -96,10 +123,450 @@ var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
|
|
|
96
123
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
97
124
|
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
98
125
|
function resolveComWixEcomOrdersV1OrdersUrl(opts) {
|
|
99
|
-
const domainToMappings = {
|
|
126
|
+
const domainToMappings = {
|
|
127
|
+
_: [
|
|
128
|
+
{
|
|
129
|
+
srcPath: "/_api/ecom-orders",
|
|
130
|
+
destPath: ""
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
srcPath: "/_api/orders",
|
|
134
|
+
destPath: ""
|
|
135
|
+
}
|
|
136
|
+
],
|
|
137
|
+
"manage._base_domain_": [
|
|
138
|
+
{
|
|
139
|
+
srcPath: "/_api/ecom-orders",
|
|
140
|
+
destPath: ""
|
|
141
|
+
}
|
|
142
|
+
],
|
|
143
|
+
"www.wixapis.com": [
|
|
144
|
+
{
|
|
145
|
+
srcPath: "/ecom/v1/bulk/orders",
|
|
146
|
+
destPath: "/v1/bulk/orders"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
srcPath: "/ecom/v1/orders",
|
|
150
|
+
destPath: "/v1/orders"
|
|
151
|
+
}
|
|
152
|
+
]
|
|
153
|
+
};
|
|
154
|
+
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
155
|
+
}
|
|
156
|
+
function resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl(opts) {
|
|
157
|
+
const domainToMappings = {
|
|
158
|
+
"api._api_base_domain_": [
|
|
159
|
+
{
|
|
160
|
+
srcPath: "/payments-collector",
|
|
161
|
+
destPath: ""
|
|
162
|
+
}
|
|
163
|
+
],
|
|
164
|
+
"www.wixapis.com": [
|
|
165
|
+
{
|
|
166
|
+
srcPath: "/ecom/v1/payments-collector",
|
|
167
|
+
destPath: "/v1/payments-collector"
|
|
168
|
+
}
|
|
169
|
+
],
|
|
170
|
+
"manage._base_domain_": [
|
|
171
|
+
{
|
|
172
|
+
srcPath: "/ecom/v1/payments-collector",
|
|
173
|
+
destPath: "/v1/payments-collector"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
srcPath: "/_api/v1/payments-collector",
|
|
177
|
+
destPath: "/v1/payments-collector"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
srcPath: "/v1/payments-collector",
|
|
181
|
+
destPath: "/v1/payments-collector"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
srcPath: "/_api/payments-collector",
|
|
185
|
+
destPath: "/v1/payments-collector"
|
|
186
|
+
}
|
|
187
|
+
]
|
|
188
|
+
};
|
|
100
189
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
101
190
|
}
|
|
102
191
|
var PACKAGE_NAME = "@wix/auto_sdk_ecom_orders";
|
|
192
|
+
function preparePaymentCollection(payload) {
|
|
193
|
+
function __preparePaymentCollection({ host }) {
|
|
194
|
+
const metadata = {
|
|
195
|
+
entityFqdn: "wix.ecom.v1.order",
|
|
196
|
+
method: "POST",
|
|
197
|
+
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.PreparePaymentCollection",
|
|
198
|
+
packageName: PACKAGE_NAME,
|
|
199
|
+
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
200
|
+
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/prepare-payment-collection",
|
|
201
|
+
data: payload,
|
|
202
|
+
host
|
|
203
|
+
}),
|
|
204
|
+
data: payload
|
|
205
|
+
};
|
|
206
|
+
return metadata;
|
|
207
|
+
}
|
|
208
|
+
return __preparePaymentCollection;
|
|
209
|
+
}
|
|
210
|
+
function getPaymentCollectabilityStatus(payload) {
|
|
211
|
+
function __getPaymentCollectabilityStatus({ host }) {
|
|
212
|
+
const metadata = {
|
|
213
|
+
entityFqdn: "wix.ecom.v1.order",
|
|
214
|
+
method: "GET",
|
|
215
|
+
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.GetPaymentCollectabilityStatus",
|
|
216
|
+
packageName: PACKAGE_NAME,
|
|
217
|
+
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
218
|
+
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/payment-collectability-status",
|
|
219
|
+
data: payload,
|
|
220
|
+
host
|
|
221
|
+
}),
|
|
222
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
223
|
+
};
|
|
224
|
+
return metadata;
|
|
225
|
+
}
|
|
226
|
+
return __getPaymentCollectabilityStatus;
|
|
227
|
+
}
|
|
228
|
+
function recordManuallyCollectedPayment(payload) {
|
|
229
|
+
function __recordManuallyCollectedPayment({ host }) {
|
|
230
|
+
const metadata = {
|
|
231
|
+
entityFqdn: "wix.ecom.v1.order",
|
|
232
|
+
method: "POST",
|
|
233
|
+
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.RecordManuallyCollectedPayment",
|
|
234
|
+
packageName: PACKAGE_NAME,
|
|
235
|
+
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
236
|
+
protoPath: "/v1/payments-collector/orders/{orderId}/manual-payment",
|
|
237
|
+
data: payload,
|
|
238
|
+
host
|
|
239
|
+
}),
|
|
240
|
+
data: payload
|
|
241
|
+
};
|
|
242
|
+
return metadata;
|
|
243
|
+
}
|
|
244
|
+
return __recordManuallyCollectedPayment;
|
|
245
|
+
}
|
|
246
|
+
function paymentCollectionMarkOrderAsPaid(payload) {
|
|
247
|
+
function __paymentCollectionMarkOrderAsPaid({ host }) {
|
|
248
|
+
const metadata = {
|
|
249
|
+
entityFqdn: "wix.ecom.v1.order",
|
|
250
|
+
method: "POST",
|
|
251
|
+
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.MarkOrderAsPaid",
|
|
252
|
+
packageName: PACKAGE_NAME,
|
|
253
|
+
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
254
|
+
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/mark-as-paid",
|
|
255
|
+
data: payload,
|
|
256
|
+
host
|
|
257
|
+
}),
|
|
258
|
+
data: payload,
|
|
259
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
260
|
+
{
|
|
261
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
262
|
+
paths: [
|
|
263
|
+
{ path: "order.createdDate" },
|
|
264
|
+
{ path: "order.updatedDate" },
|
|
265
|
+
{ path: "order.purchasedDate" },
|
|
266
|
+
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
267
|
+
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
268
|
+
{
|
|
269
|
+
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
270
|
+
},
|
|
271
|
+
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
272
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
273
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
274
|
+
{ path: "order.activities.createdDate" }
|
|
275
|
+
]
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
279
|
+
paths: [
|
|
280
|
+
{ path: "order.lineItems.image.focalPoint.x" },
|
|
281
|
+
{ path: "order.lineItems.image.focalPoint.y" },
|
|
282
|
+
{ path: "order.lineItems.physicalProperties.weight" },
|
|
283
|
+
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
284
|
+
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
285
|
+
{
|
|
286
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
296
|
+
},
|
|
297
|
+
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
298
|
+
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
299
|
+
]
|
|
300
|
+
}
|
|
301
|
+
])
|
|
302
|
+
};
|
|
303
|
+
return metadata;
|
|
304
|
+
}
|
|
305
|
+
return __paymentCollectionMarkOrderAsPaid;
|
|
306
|
+
}
|
|
307
|
+
function paymentCollectionBulkMarkOrdersAsPaid(payload) {
|
|
308
|
+
function __paymentCollectionBulkMarkOrdersAsPaid({ host }) {
|
|
309
|
+
const metadata = {
|
|
310
|
+
entityFqdn: "wix.ecom.v1.order",
|
|
311
|
+
method: "POST",
|
|
312
|
+
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.BulkMarkOrdersAsPaid",
|
|
313
|
+
packageName: PACKAGE_NAME,
|
|
314
|
+
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
315
|
+
protoPath: "/v1/bulk/payments-collector/mark-as-paid",
|
|
316
|
+
data: payload,
|
|
317
|
+
host
|
|
318
|
+
}),
|
|
319
|
+
data: payload,
|
|
320
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
321
|
+
{
|
|
322
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
323
|
+
paths: [
|
|
324
|
+
{ path: "results.item.createdDate" },
|
|
325
|
+
{ path: "results.item.updatedDate" },
|
|
326
|
+
{ path: "results.item.purchasedDate" },
|
|
327
|
+
{ path: "results.item.lineItems.image.urlExpirationDate" },
|
|
328
|
+
{ path: "results.item.lineItems.digitalFile.expirationDate" },
|
|
329
|
+
{
|
|
330
|
+
path: "results.item.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
331
|
+
},
|
|
332
|
+
{ path: "results.item.shippingInfo.logistics.deliverByDate" },
|
|
333
|
+
{
|
|
334
|
+
path: "results.item.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
path: "results.item.shippingInfo.logistics.deliveryTimeSlot.to"
|
|
338
|
+
},
|
|
339
|
+
{ path: "results.item.activities.createdDate" }
|
|
340
|
+
]
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
344
|
+
paths: [
|
|
345
|
+
{ path: "results.item.lineItems.image.focalPoint.x" },
|
|
346
|
+
{ path: "results.item.lineItems.image.focalPoint.y" },
|
|
347
|
+
{ path: "results.item.lineItems.physicalProperties.weight" },
|
|
348
|
+
{ path: "results.item.billingInfo.address.geocode.latitude" },
|
|
349
|
+
{ path: "results.item.billingInfo.address.geocode.longitude" },
|
|
350
|
+
{
|
|
351
|
+
path: "results.item.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
path: "results.item.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
path: "results.item.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
path: "results.item.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
361
|
+
},
|
|
362
|
+
{ path: "results.item.recipientInfo.address.geocode.latitude" },
|
|
363
|
+
{ path: "results.item.recipientInfo.address.geocode.longitude" }
|
|
364
|
+
]
|
|
365
|
+
}
|
|
366
|
+
])
|
|
367
|
+
};
|
|
368
|
+
return metadata;
|
|
369
|
+
}
|
|
370
|
+
return __paymentCollectionBulkMarkOrdersAsPaid;
|
|
371
|
+
}
|
|
372
|
+
function getRefundabilityStatus(payload) {
|
|
373
|
+
function __getRefundabilityStatus({ host }) {
|
|
374
|
+
const metadata = {
|
|
375
|
+
entityFqdn: "wix.ecom.v1.order",
|
|
376
|
+
method: "GET",
|
|
377
|
+
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.GetRefundabilityStatus",
|
|
378
|
+
packageName: PACKAGE_NAME,
|
|
379
|
+
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
380
|
+
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/refundability",
|
|
381
|
+
data: payload,
|
|
382
|
+
host
|
|
383
|
+
}),
|
|
384
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
385
|
+
};
|
|
386
|
+
return metadata;
|
|
387
|
+
}
|
|
388
|
+
return __getRefundabilityStatus;
|
|
389
|
+
}
|
|
390
|
+
function paymentCollectionCreatePaymentGatewayOrder(payload) {
|
|
391
|
+
function __paymentCollectionCreatePaymentGatewayOrder({ host }) {
|
|
392
|
+
const metadata = {
|
|
393
|
+
entityFqdn: "wix.ecom.v1.order",
|
|
394
|
+
method: "POST",
|
|
395
|
+
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.CreatePaymentGatewayOrder",
|
|
396
|
+
packageName: PACKAGE_NAME,
|
|
397
|
+
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
398
|
+
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/create-payment-gateway-order",
|
|
399
|
+
data: payload,
|
|
400
|
+
host
|
|
401
|
+
}),
|
|
402
|
+
data: payload
|
|
403
|
+
};
|
|
404
|
+
return metadata;
|
|
405
|
+
}
|
|
406
|
+
return __paymentCollectionCreatePaymentGatewayOrder;
|
|
407
|
+
}
|
|
408
|
+
function chargeMemberships(payload) {
|
|
409
|
+
function __chargeMemberships({ host }) {
|
|
410
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
411
|
+
{
|
|
412
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
413
|
+
paths: [{ path: "membershipCharges.serviceProperties.scheduledDate" }]
|
|
414
|
+
}
|
|
415
|
+
]);
|
|
416
|
+
const metadata = {
|
|
417
|
+
entityFqdn: "wix.ecom.v1.order",
|
|
418
|
+
method: "POST",
|
|
419
|
+
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.ChargeMemberships",
|
|
420
|
+
packageName: PACKAGE_NAME,
|
|
421
|
+
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
422
|
+
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/charge-membership",
|
|
423
|
+
data: serializedData,
|
|
424
|
+
host
|
|
425
|
+
}),
|
|
426
|
+
data: serializedData
|
|
427
|
+
};
|
|
428
|
+
return metadata;
|
|
429
|
+
}
|
|
430
|
+
return __chargeMemberships;
|
|
431
|
+
}
|
|
432
|
+
function triggerRefund(payload) {
|
|
433
|
+
function __triggerRefund({ host }) {
|
|
434
|
+
const metadata = {
|
|
435
|
+
entityFqdn: "wix.ecom.v1.order",
|
|
436
|
+
method: "POST",
|
|
437
|
+
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.TriggerRefund",
|
|
438
|
+
packageName: PACKAGE_NAME,
|
|
439
|
+
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
440
|
+
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/trigger-refund",
|
|
441
|
+
data: payload,
|
|
442
|
+
host
|
|
443
|
+
}),
|
|
444
|
+
data: payload,
|
|
445
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
446
|
+
{
|
|
447
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
448
|
+
paths: [
|
|
449
|
+
{ path: "orderTransactions.payments.createdDate" },
|
|
450
|
+
{ path: "orderTransactions.payments.updatedDate" },
|
|
451
|
+
{
|
|
452
|
+
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.updatedDate"
|
|
468
|
+
},
|
|
469
|
+
{ path: "orderTransactions.refunds.createdDate" }
|
|
470
|
+
]
|
|
471
|
+
}
|
|
472
|
+
])
|
|
473
|
+
};
|
|
474
|
+
return metadata;
|
|
475
|
+
}
|
|
476
|
+
return __triggerRefund;
|
|
477
|
+
}
|
|
478
|
+
function voidAuthorizedPayments(payload) {
|
|
479
|
+
function __voidAuthorizedPayments({ host }) {
|
|
480
|
+
const metadata = {
|
|
481
|
+
entityFqdn: "wix.ecom.v1.order",
|
|
482
|
+
method: "POST",
|
|
483
|
+
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.VoidAuthorizedPayments",
|
|
484
|
+
packageName: PACKAGE_NAME,
|
|
485
|
+
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
486
|
+
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/void-authorized-payments",
|
|
487
|
+
data: payload,
|
|
488
|
+
host
|
|
489
|
+
}),
|
|
490
|
+
data: payload,
|
|
491
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
492
|
+
{
|
|
493
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
494
|
+
paths: [
|
|
495
|
+
{ path: "orderTransactions.payments.createdDate" },
|
|
496
|
+
{ path: "orderTransactions.payments.updatedDate" },
|
|
497
|
+
{
|
|
498
|
+
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
502
|
+
},
|
|
503
|
+
{
|
|
504
|
+
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.updatedDate"
|
|
514
|
+
},
|
|
515
|
+
{ path: "orderTransactions.refunds.createdDate" }
|
|
516
|
+
]
|
|
517
|
+
}
|
|
518
|
+
])
|
|
519
|
+
};
|
|
520
|
+
return metadata;
|
|
521
|
+
}
|
|
522
|
+
return __voidAuthorizedPayments;
|
|
523
|
+
}
|
|
524
|
+
function captureAuthorizedPayments(payload) {
|
|
525
|
+
function __captureAuthorizedPayments({ host }) {
|
|
526
|
+
const metadata = {
|
|
527
|
+
entityFqdn: "wix.ecom.v1.order",
|
|
528
|
+
method: "POST",
|
|
529
|
+
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.CaptureAuthorizedPayments",
|
|
530
|
+
packageName: PACKAGE_NAME,
|
|
531
|
+
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
532
|
+
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/capture-authorized-payments",
|
|
533
|
+
data: payload,
|
|
534
|
+
host
|
|
535
|
+
}),
|
|
536
|
+
data: payload,
|
|
537
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
538
|
+
{
|
|
539
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
540
|
+
paths: [
|
|
541
|
+
{ path: "orderTransactions.payments.createdDate" },
|
|
542
|
+
{ path: "orderTransactions.payments.updatedDate" },
|
|
543
|
+
{
|
|
544
|
+
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
|
|
545
|
+
},
|
|
546
|
+
{
|
|
547
|
+
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
548
|
+
},
|
|
549
|
+
{
|
|
550
|
+
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
|
|
557
|
+
},
|
|
558
|
+
{
|
|
559
|
+
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.updatedDate"
|
|
560
|
+
},
|
|
561
|
+
{ path: "orderTransactions.refunds.createdDate" }
|
|
562
|
+
]
|
|
563
|
+
}
|
|
564
|
+
])
|
|
565
|
+
};
|
|
566
|
+
return metadata;
|
|
567
|
+
}
|
|
568
|
+
return __captureAuthorizedPayments;
|
|
569
|
+
}
|
|
103
570
|
function getOrder(payload) {
|
|
104
571
|
function __getOrder({ host }) {
|
|
105
572
|
const metadata = {
|
|
@@ -1250,6 +1717,137 @@ var ChannelType = /* @__PURE__ */ ((ChannelType2) => {
|
|
|
1250
1717
|
ChannelType2["FAIRE_COM"] = "FAIRE_COM";
|
|
1251
1718
|
return ChannelType2;
|
|
1252
1719
|
})(ChannelType || {});
|
|
1720
|
+
var ScheduledAction = /* @__PURE__ */ ((ScheduledAction2) => {
|
|
1721
|
+
ScheduledAction2["UNSPECIFIED"] = "UNSPECIFIED";
|
|
1722
|
+
ScheduledAction2["VOID"] = "VOID";
|
|
1723
|
+
ScheduledAction2["CAPTURE"] = "CAPTURE";
|
|
1724
|
+
return ScheduledAction2;
|
|
1725
|
+
})(ScheduledAction || {});
|
|
1726
|
+
var DurationUnit = /* @__PURE__ */ ((DurationUnit2) => {
|
|
1727
|
+
DurationUnit2["UNKNOWN_DURATION_UNIT"] = "UNKNOWN_DURATION_UNIT";
|
|
1728
|
+
DurationUnit2["MINUTES"] = "MINUTES";
|
|
1729
|
+
DurationUnit2["HOURS"] = "HOURS";
|
|
1730
|
+
DurationUnit2["DAYS"] = "DAYS";
|
|
1731
|
+
return DurationUnit2;
|
|
1732
|
+
})(DurationUnit || {});
|
|
1733
|
+
var PaymentCollectabilityStatus = /* @__PURE__ */ ((PaymentCollectabilityStatus2) => {
|
|
1734
|
+
PaymentCollectabilityStatus2["UNKNOWN"] = "UNKNOWN";
|
|
1735
|
+
PaymentCollectabilityStatus2["COLLECTABLE"] = "COLLECTABLE";
|
|
1736
|
+
PaymentCollectabilityStatus2["NONCOLLECTABLE_ORDER_IS_CANCELLED"] = "NONCOLLECTABLE_ORDER_IS_CANCELLED";
|
|
1737
|
+
PaymentCollectabilityStatus2["NONCOLLECTABLE_ORDER_IS_PAID"] = "NONCOLLECTABLE_ORDER_IS_PAID";
|
|
1738
|
+
PaymentCollectabilityStatus2["NONCOLLECTABLE_MISSING_PAYMENT_METHOD"] = "NONCOLLECTABLE_MISSING_PAYMENT_METHOD";
|
|
1739
|
+
PaymentCollectabilityStatus2["NONCOLLECTABLE_ORDER_IS_PENDING"] = "NONCOLLECTABLE_ORDER_IS_PENDING";
|
|
1740
|
+
PaymentCollectabilityStatus2["NONCOLLECTABLE_ORDER_IS_REJECTED"] = "NONCOLLECTABLE_ORDER_IS_REJECTED";
|
|
1741
|
+
PaymentCollectabilityStatus2["NONCOLLECTABLE_ORDER_HAS_SUBSCRIPTIONS"] = "NONCOLLECTABLE_ORDER_HAS_SUBSCRIPTIONS";
|
|
1742
|
+
return PaymentCollectabilityStatus2;
|
|
1743
|
+
})(PaymentCollectabilityStatus || {});
|
|
1744
|
+
var RefundableStatus = /* @__PURE__ */ ((RefundableStatus2) => {
|
|
1745
|
+
RefundableStatus2["NOT_REFUNDABLE"] = "NOT_REFUNDABLE";
|
|
1746
|
+
RefundableStatus2["MANUAL"] = "MANUAL";
|
|
1747
|
+
RefundableStatus2["REFUNDABLE"] = "REFUNDABLE";
|
|
1748
|
+
return RefundableStatus2;
|
|
1749
|
+
})(RefundableStatus || {});
|
|
1750
|
+
var NonRefundableReason = /* @__PURE__ */ ((NonRefundableReason2) => {
|
|
1751
|
+
NonRefundableReason2["NONE"] = "NONE";
|
|
1752
|
+
NonRefundableReason2["ALREADY_REFUNDED"] = "ALREADY_REFUNDED";
|
|
1753
|
+
NonRefundableReason2["PROVIDER_IS_DOWN"] = "PROVIDER_IS_DOWN";
|
|
1754
|
+
NonRefundableReason2["INTERNAL_ERROR"] = "INTERNAL_ERROR";
|
|
1755
|
+
NonRefundableReason2["NOT_PAID"] = "NOT_PAID";
|
|
1756
|
+
NonRefundableReason2["ACCESS_DENIED"] = "ACCESS_DENIED";
|
|
1757
|
+
NonRefundableReason2["ZERO_PRICE"] = "ZERO_PRICE";
|
|
1758
|
+
NonRefundableReason2["DISABLED_BY_PROVIDER"] = "DISABLED_BY_PROVIDER";
|
|
1759
|
+
NonRefundableReason2["PENDING_REFUND"] = "PENDING_REFUND";
|
|
1760
|
+
NonRefundableReason2["FORBIDDEN"] = "FORBIDDEN";
|
|
1761
|
+
NonRefundableReason2["TRANSACTION_NOT_FOUND"] = "TRANSACTION_NOT_FOUND";
|
|
1762
|
+
NonRefundableReason2["ORDER_IS_PENDING"] = "ORDER_IS_PENDING";
|
|
1763
|
+
NonRefundableReason2["ORDER_IS_REJECTED"] = "ORDER_IS_REJECTED";
|
|
1764
|
+
return NonRefundableReason2;
|
|
1765
|
+
})(NonRefundableReason || {});
|
|
1766
|
+
var ManuallyRefundableReason = /* @__PURE__ */ ((ManuallyRefundableReason2) => {
|
|
1767
|
+
ManuallyRefundableReason2["EXPIRED"] = "EXPIRED";
|
|
1768
|
+
ManuallyRefundableReason2["NOT_SUPPORTED"] = "NOT_SUPPORTED";
|
|
1769
|
+
ManuallyRefundableReason2["OFFLINE"] = "OFFLINE";
|
|
1770
|
+
ManuallyRefundableReason2["REQUIRES_CARD_READER"] = "REQUIRES_CARD_READER";
|
|
1771
|
+
return ManuallyRefundableReason2;
|
|
1772
|
+
})(ManuallyRefundableReason || {});
|
|
1773
|
+
var RestockType = /* @__PURE__ */ ((RestockType2) => {
|
|
1774
|
+
RestockType2["NO_ITEMS"] = "NO_ITEMS";
|
|
1775
|
+
RestockType2["ALL_ITEMS"] = "ALL_ITEMS";
|
|
1776
|
+
RestockType2["SOME_ITEMS"] = "SOME_ITEMS";
|
|
1777
|
+
return RestockType2;
|
|
1778
|
+
})(RestockType || {});
|
|
1779
|
+
var TransactionStatus = /* @__PURE__ */ ((TransactionStatus2) => {
|
|
1780
|
+
TransactionStatus2["UNDEFINED"] = "UNDEFINED";
|
|
1781
|
+
TransactionStatus2["APPROVED"] = "APPROVED";
|
|
1782
|
+
TransactionStatus2["PENDING"] = "PENDING";
|
|
1783
|
+
TransactionStatus2["PENDING_MERCHANT"] = "PENDING_MERCHANT";
|
|
1784
|
+
TransactionStatus2["CANCELED"] = "CANCELED";
|
|
1785
|
+
TransactionStatus2["DECLINED"] = "DECLINED";
|
|
1786
|
+
TransactionStatus2["REFUNDED"] = "REFUNDED";
|
|
1787
|
+
TransactionStatus2["PARTIALLY_REFUNDED"] = "PARTIALLY_REFUNDED";
|
|
1788
|
+
TransactionStatus2["AUTHORIZED"] = "AUTHORIZED";
|
|
1789
|
+
TransactionStatus2["VOIDED"] = "VOIDED";
|
|
1790
|
+
return TransactionStatus2;
|
|
1791
|
+
})(TransactionStatus || {});
|
|
1792
|
+
var AuthorizationCaptureStatus = /* @__PURE__ */ ((AuthorizationCaptureStatus2) => {
|
|
1793
|
+
AuthorizationCaptureStatus2["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
|
|
1794
|
+
AuthorizationCaptureStatus2["PENDING"] = "PENDING";
|
|
1795
|
+
AuthorizationCaptureStatus2["SUCCEEDED"] = "SUCCEEDED";
|
|
1796
|
+
AuthorizationCaptureStatus2["FAILED"] = "FAILED";
|
|
1797
|
+
return AuthorizationCaptureStatus2;
|
|
1798
|
+
})(AuthorizationCaptureStatus || {});
|
|
1799
|
+
var AuthorizationVoidStatus = /* @__PURE__ */ ((AuthorizationVoidStatus2) => {
|
|
1800
|
+
AuthorizationVoidStatus2["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
|
|
1801
|
+
AuthorizationVoidStatus2["PENDING"] = "PENDING";
|
|
1802
|
+
AuthorizationVoidStatus2["SUCCEEDED"] = "SUCCEEDED";
|
|
1803
|
+
AuthorizationVoidStatus2["FAILED"] = "FAILED";
|
|
1804
|
+
return AuthorizationVoidStatus2;
|
|
1805
|
+
})(AuthorizationVoidStatus || {});
|
|
1806
|
+
var Reason = /* @__PURE__ */ ((Reason2) => {
|
|
1807
|
+
Reason2["UNKNOWN_REASON"] = "UNKNOWN_REASON";
|
|
1808
|
+
Reason2["MANUAL"] = "MANUAL";
|
|
1809
|
+
Reason2["SCHEDULED"] = "SCHEDULED";
|
|
1810
|
+
return Reason2;
|
|
1811
|
+
})(Reason || {});
|
|
1812
|
+
var ActionType = /* @__PURE__ */ ((ActionType2) => {
|
|
1813
|
+
ActionType2["UNKNOWN_ACTION_TYPE"] = "UNKNOWN_ACTION_TYPE";
|
|
1814
|
+
ActionType2["VOID"] = "VOID";
|
|
1815
|
+
ActionType2["CAPTURE"] = "CAPTURE";
|
|
1816
|
+
return ActionType2;
|
|
1817
|
+
})(ActionType || {});
|
|
1818
|
+
var ChargebackStatus = /* @__PURE__ */ ((ChargebackStatus2) => {
|
|
1819
|
+
ChargebackStatus2["UNSPECIFIED"] = "UNSPECIFIED";
|
|
1820
|
+
ChargebackStatus2["APPROVED"] = "APPROVED";
|
|
1821
|
+
ChargebackStatus2["REVERSED"] = "REVERSED";
|
|
1822
|
+
return ChargebackStatus2;
|
|
1823
|
+
})(ChargebackStatus || {});
|
|
1824
|
+
var MembershipPaymentStatus = /* @__PURE__ */ ((MembershipPaymentStatus2) => {
|
|
1825
|
+
MembershipPaymentStatus2["CHARGED"] = "CHARGED";
|
|
1826
|
+
MembershipPaymentStatus2["CHARGE_FAILED"] = "CHARGE_FAILED";
|
|
1827
|
+
return MembershipPaymentStatus2;
|
|
1828
|
+
})(MembershipPaymentStatus || {});
|
|
1829
|
+
var RefundStatus = /* @__PURE__ */ ((RefundStatus2) => {
|
|
1830
|
+
RefundStatus2["PENDING"] = "PENDING";
|
|
1831
|
+
RefundStatus2["SUCCEEDED"] = "SUCCEEDED";
|
|
1832
|
+
RefundStatus2["FAILED"] = "FAILED";
|
|
1833
|
+
RefundStatus2["SCHEDULED"] = "SCHEDULED";
|
|
1834
|
+
RefundStatus2["STARTED"] = "STARTED";
|
|
1835
|
+
return RefundStatus2;
|
|
1836
|
+
})(RefundStatus || {});
|
|
1837
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
1838
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
1839
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
1840
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
1841
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
1842
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
1843
|
+
return WebhookIdentityType2;
|
|
1844
|
+
})(WebhookIdentityType || {});
|
|
1845
|
+
var VersioningMode = /* @__PURE__ */ ((VersioningMode2) => {
|
|
1846
|
+
VersioningMode2["DEFAULT"] = "DEFAULT";
|
|
1847
|
+
VersioningMode2["GREATER_THAN"] = "GREATER_THAN";
|
|
1848
|
+
VersioningMode2["GREATER_OR_EQUAL"] = "GREATER_OR_EQUAL";
|
|
1849
|
+
return VersioningMode2;
|
|
1850
|
+
})(VersioningMode || {});
|
|
1253
1851
|
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
1254
1852
|
SortOrder2["ASC"] = "ASC";
|
|
1255
1853
|
SortOrder2["DESC"] = "DESC";
|
|
@@ -1332,14 +1930,351 @@ var InvoiceStatus = /* @__PURE__ */ ((InvoiceStatus2) => {
|
|
|
1332
1930
|
InvoiceStatus2["PartialAndOverdue"] = "PartialAndOverdue";
|
|
1333
1931
|
return InvoiceStatus2;
|
|
1334
1932
|
})(InvoiceStatus || {});
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1933
|
+
async function preparePaymentCollection2(ecomOrderId, amount, options) {
|
|
1934
|
+
const { httpClient, sideEffects } = arguments[3];
|
|
1935
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1936
|
+
ecomOrderId,
|
|
1937
|
+
amount,
|
|
1938
|
+
paymentGatewayOrderId: options?.paymentGatewayOrderId,
|
|
1939
|
+
delayedCapture: options?.delayedCapture,
|
|
1940
|
+
delayedCaptureSettings: options?.delayedCaptureSettings
|
|
1941
|
+
});
|
|
1942
|
+
const reqOpts = preparePaymentCollection(payload);
|
|
1943
|
+
sideEffects?.onSiteCall?.();
|
|
1944
|
+
try {
|
|
1945
|
+
const result = await httpClient.request(reqOpts);
|
|
1946
|
+
sideEffects?.onSuccess?.(result);
|
|
1947
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1948
|
+
} catch (err) {
|
|
1949
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1950
|
+
err,
|
|
1951
|
+
{
|
|
1952
|
+
spreadPathsToArguments: {},
|
|
1953
|
+
explicitPathsToArguments: {
|
|
1954
|
+
ecomOrderId: "$[0]",
|
|
1955
|
+
amount: "$[1]",
|
|
1956
|
+
paymentGatewayOrderId: "$[2].paymentGatewayOrderId",
|
|
1957
|
+
delayedCapture: "$[2].delayedCapture",
|
|
1958
|
+
delayedCaptureSettings: "$[2].delayedCaptureSettings"
|
|
1959
|
+
},
|
|
1960
|
+
singleArgumentUnchanged: false
|
|
1961
|
+
},
|
|
1962
|
+
["ecomOrderId", "amount", "options"]
|
|
1963
|
+
);
|
|
1964
|
+
sideEffects?.onError?.(err);
|
|
1965
|
+
throw transformedError;
|
|
1966
|
+
}
|
|
1967
|
+
}
|
|
1968
|
+
async function getPaymentCollectabilityStatus2(ecomOrderId) {
|
|
1969
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1970
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1971
|
+
ecomOrderId
|
|
1972
|
+
});
|
|
1973
|
+
const reqOpts = getPaymentCollectabilityStatus(payload);
|
|
1974
|
+
sideEffects?.onSiteCall?.();
|
|
1975
|
+
try {
|
|
1976
|
+
const result = await httpClient.request(reqOpts);
|
|
1977
|
+
sideEffects?.onSuccess?.(result);
|
|
1978
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1979
|
+
} catch (err) {
|
|
1980
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1981
|
+
err,
|
|
1982
|
+
{
|
|
1983
|
+
spreadPathsToArguments: {},
|
|
1984
|
+
explicitPathsToArguments: { ecomOrderId: "$[0]" },
|
|
1985
|
+
singleArgumentUnchanged: false
|
|
1986
|
+
},
|
|
1987
|
+
["ecomOrderId"]
|
|
1988
|
+
);
|
|
1989
|
+
sideEffects?.onError?.(err);
|
|
1990
|
+
throw transformedError;
|
|
1991
|
+
}
|
|
1992
|
+
}
|
|
1993
|
+
async function recordManuallyCollectedPayment2(orderId, amount) {
|
|
1994
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1995
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1996
|
+
orderId,
|
|
1997
|
+
amount
|
|
1998
|
+
});
|
|
1999
|
+
const reqOpts = recordManuallyCollectedPayment(payload);
|
|
2000
|
+
sideEffects?.onSiteCall?.();
|
|
2001
|
+
try {
|
|
2002
|
+
const result = await httpClient.request(reqOpts);
|
|
2003
|
+
sideEffects?.onSuccess?.(result);
|
|
2004
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2005
|
+
} catch (err) {
|
|
2006
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
2007
|
+
err,
|
|
2008
|
+
{
|
|
2009
|
+
spreadPathsToArguments: {},
|
|
2010
|
+
explicitPathsToArguments: { orderId: "$[0]", amount: "$[1]" },
|
|
2011
|
+
singleArgumentUnchanged: false
|
|
2012
|
+
},
|
|
2013
|
+
["orderId", "amount"]
|
|
2014
|
+
);
|
|
2015
|
+
sideEffects?.onError?.(err);
|
|
2016
|
+
throw transformedError;
|
|
2017
|
+
}
|
|
2018
|
+
}
|
|
2019
|
+
async function paymentCollectionMarkOrderAsPaid2(ecomOrderId) {
|
|
2020
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
2021
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2022
|
+
ecomOrderId
|
|
2023
|
+
});
|
|
2024
|
+
const reqOpts = paymentCollectionMarkOrderAsPaid(payload);
|
|
2025
|
+
sideEffects?.onSiteCall?.();
|
|
2026
|
+
try {
|
|
2027
|
+
const result = await httpClient.request(reqOpts);
|
|
2028
|
+
sideEffects?.onSuccess?.(result);
|
|
2029
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
2030
|
+
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
2031
|
+
{
|
|
2032
|
+
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
2033
|
+
paths: [{ path: "order.lineItems.image" }]
|
|
2034
|
+
},
|
|
2035
|
+
{
|
|
2036
|
+
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
2037
|
+
paths: [
|
|
2038
|
+
{ path: "order.billingInfo.address" },
|
|
2039
|
+
{
|
|
2040
|
+
path: "order.shippingInfo.logistics.shippingDestination.address"
|
|
2041
|
+
},
|
|
2042
|
+
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
2043
|
+
{ path: "order.recipientInfo.address" }
|
|
2044
|
+
]
|
|
2045
|
+
}
|
|
2046
|
+
])
|
|
2047
|
+
);
|
|
2048
|
+
} catch (err) {
|
|
2049
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
2050
|
+
err,
|
|
2051
|
+
{
|
|
2052
|
+
spreadPathsToArguments: {},
|
|
2053
|
+
explicitPathsToArguments: { ecomOrderId: "$[0]" },
|
|
2054
|
+
singleArgumentUnchanged: false
|
|
2055
|
+
},
|
|
2056
|
+
["ecomOrderId"]
|
|
2057
|
+
);
|
|
2058
|
+
sideEffects?.onError?.(err);
|
|
2059
|
+
throw transformedError;
|
|
2060
|
+
}
|
|
2061
|
+
}
|
|
2062
|
+
async function paymentCollectionBulkMarkOrdersAsPaid2(ecomOrderIds) {
|
|
2063
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
2064
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2065
|
+
ecomOrderIds
|
|
2066
|
+
});
|
|
2067
|
+
const reqOpts = paymentCollectionBulkMarkOrdersAsPaid(payload);
|
|
2068
|
+
sideEffects?.onSiteCall?.();
|
|
2069
|
+
try {
|
|
2070
|
+
const result = await httpClient.request(reqOpts);
|
|
2071
|
+
sideEffects?.onSuccess?.(result);
|
|
2072
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
2073
|
+
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
2074
|
+
{
|
|
2075
|
+
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
2076
|
+
paths: [{ path: "results.item.lineItems.image" }]
|
|
2077
|
+
},
|
|
2078
|
+
{
|
|
2079
|
+
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
2080
|
+
paths: [
|
|
2081
|
+
{ path: "results.item.billingInfo.address" },
|
|
2082
|
+
{
|
|
2083
|
+
path: "results.item.shippingInfo.logistics.shippingDestination.address"
|
|
2084
|
+
},
|
|
2085
|
+
{
|
|
2086
|
+
path: "results.item.shippingInfo.logistics.pickupDetails.address"
|
|
2087
|
+
},
|
|
2088
|
+
{ path: "results.item.recipientInfo.address" }
|
|
2089
|
+
]
|
|
2090
|
+
}
|
|
2091
|
+
])
|
|
2092
|
+
);
|
|
2093
|
+
} catch (err) {
|
|
2094
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
2095
|
+
err,
|
|
2096
|
+
{
|
|
2097
|
+
spreadPathsToArguments: {},
|
|
2098
|
+
explicitPathsToArguments: { ecomOrderIds: "$[0]" },
|
|
2099
|
+
singleArgumentUnchanged: false
|
|
2100
|
+
},
|
|
2101
|
+
["ecomOrderIds"]
|
|
2102
|
+
);
|
|
2103
|
+
sideEffects?.onError?.(err);
|
|
2104
|
+
throw transformedError;
|
|
2105
|
+
}
|
|
2106
|
+
}
|
|
2107
|
+
async function getRefundabilityStatus2(ecomOrderId) {
|
|
2108
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
2109
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2110
|
+
ecomOrderId
|
|
2111
|
+
});
|
|
2112
|
+
const reqOpts = getRefundabilityStatus(payload);
|
|
2113
|
+
sideEffects?.onSiteCall?.();
|
|
2114
|
+
try {
|
|
2115
|
+
const result = await httpClient.request(reqOpts);
|
|
2116
|
+
sideEffects?.onSuccess?.(result);
|
|
2117
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2118
|
+
} catch (err) {
|
|
2119
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
2120
|
+
err,
|
|
2121
|
+
{
|
|
2122
|
+
spreadPathsToArguments: {},
|
|
2123
|
+
explicitPathsToArguments: { ecomOrderId: "$[0]" },
|
|
2124
|
+
singleArgumentUnchanged: false
|
|
2125
|
+
},
|
|
2126
|
+
["ecomOrderId"]
|
|
2127
|
+
);
|
|
2128
|
+
sideEffects?.onError?.(err);
|
|
2129
|
+
throw transformedError;
|
|
2130
|
+
}
|
|
2131
|
+
}
|
|
2132
|
+
async function paymentCollectionCreatePaymentGatewayOrder2(ecomOrderId, options) {
|
|
2133
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2134
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2135
|
+
ecomOrderId,
|
|
2136
|
+
chargedBy: options?.chargedBy
|
|
2137
|
+
});
|
|
2138
|
+
const reqOpts = paymentCollectionCreatePaymentGatewayOrder(
|
|
2139
|
+
payload
|
|
2140
|
+
);
|
|
2141
|
+
sideEffects?.onSiteCall?.();
|
|
2142
|
+
try {
|
|
2143
|
+
const result = await httpClient.request(reqOpts);
|
|
2144
|
+
sideEffects?.onSuccess?.(result);
|
|
2145
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2146
|
+
} catch (err) {
|
|
2147
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
2148
|
+
err,
|
|
2149
|
+
{
|
|
2150
|
+
spreadPathsToArguments: {},
|
|
2151
|
+
explicitPathsToArguments: {
|
|
2152
|
+
ecomOrderId: "$[0]",
|
|
2153
|
+
chargedBy: "$[1].chargedBy"
|
|
2154
|
+
},
|
|
2155
|
+
singleArgumentUnchanged: false
|
|
2156
|
+
},
|
|
2157
|
+
["ecomOrderId", "options"]
|
|
2158
|
+
);
|
|
2159
|
+
sideEffects?.onError?.(err);
|
|
2160
|
+
throw transformedError;
|
|
2161
|
+
}
|
|
2162
|
+
}
|
|
2163
|
+
async function chargeMemberships2(ecomOrderId, memberId, options) {
|
|
2164
|
+
const { httpClient, sideEffects } = arguments[3];
|
|
2165
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2166
|
+
ecomOrderId,
|
|
2167
|
+
memberId,
|
|
2168
|
+
membershipCharges: options?.membershipCharges
|
|
2169
|
+
});
|
|
2170
|
+
const reqOpts = chargeMemberships(payload);
|
|
2171
|
+
sideEffects?.onSiteCall?.();
|
|
2172
|
+
try {
|
|
2173
|
+
const result = await httpClient.request(reqOpts);
|
|
2174
|
+
sideEffects?.onSuccess?.(result);
|
|
2175
|
+
} catch (err) {
|
|
2176
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
2177
|
+
err,
|
|
2178
|
+
{
|
|
2179
|
+
spreadPathsToArguments: {},
|
|
2180
|
+
explicitPathsToArguments: {
|
|
2181
|
+
ecomOrderId: "$[0]",
|
|
2182
|
+
memberId: "$[1]",
|
|
2183
|
+
membershipCharges: "$[2].membershipCharges"
|
|
2184
|
+
},
|
|
2185
|
+
singleArgumentUnchanged: false
|
|
2186
|
+
},
|
|
2187
|
+
["ecomOrderId", "memberId", "options"]
|
|
2188
|
+
);
|
|
2189
|
+
sideEffects?.onError?.(err);
|
|
2190
|
+
throw transformedError;
|
|
2191
|
+
}
|
|
2192
|
+
}
|
|
2193
|
+
async function triggerRefund2(ecomOrderId, payments, options) {
|
|
2194
|
+
const { httpClient, sideEffects } = arguments[3];
|
|
2195
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2196
|
+
ecomOrderId,
|
|
2197
|
+
payments,
|
|
2198
|
+
details: options?.details,
|
|
2199
|
+
sideEffects: options?.sideEffects
|
|
2200
|
+
});
|
|
2201
|
+
const reqOpts = triggerRefund(payload);
|
|
2202
|
+
sideEffects?.onSiteCall?.();
|
|
2203
|
+
try {
|
|
2204
|
+
const result = await httpClient.request(reqOpts);
|
|
2205
|
+
sideEffects?.onSuccess?.(result);
|
|
2206
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2207
|
+
} catch (err) {
|
|
2208
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
2209
|
+
err,
|
|
2210
|
+
{
|
|
2211
|
+
spreadPathsToArguments: {},
|
|
2212
|
+
explicitPathsToArguments: {
|
|
2213
|
+
ecomOrderId: "$[0]",
|
|
2214
|
+
payments: "$[1]",
|
|
2215
|
+
details: "$[2].details",
|
|
2216
|
+
sideEffects: "$[2].sideEffects"
|
|
2217
|
+
},
|
|
2218
|
+
singleArgumentUnchanged: false
|
|
2219
|
+
},
|
|
2220
|
+
["ecomOrderId", "payments", "options"]
|
|
2221
|
+
);
|
|
2222
|
+
sideEffects?.onError?.(err);
|
|
2223
|
+
throw transformedError;
|
|
2224
|
+
}
|
|
2225
|
+
}
|
|
2226
|
+
async function voidAuthorizedPayments2(ecomOrderId, paymentIds) {
|
|
2227
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2228
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2229
|
+
ecomOrderId,
|
|
2230
|
+
paymentIds
|
|
2231
|
+
});
|
|
2232
|
+
const reqOpts = voidAuthorizedPayments(payload);
|
|
2233
|
+
sideEffects?.onSiteCall?.();
|
|
2234
|
+
try {
|
|
2235
|
+
const result = await httpClient.request(reqOpts);
|
|
2236
|
+
sideEffects?.onSuccess?.(result);
|
|
2237
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2238
|
+
} catch (err) {
|
|
2239
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
2240
|
+
err,
|
|
2241
|
+
{
|
|
2242
|
+
spreadPathsToArguments: {},
|
|
2243
|
+
explicitPathsToArguments: { ecomOrderId: "$[0]", paymentIds: "$[1]" },
|
|
2244
|
+
singleArgumentUnchanged: false
|
|
2245
|
+
},
|
|
2246
|
+
["ecomOrderId", "paymentIds"]
|
|
2247
|
+
);
|
|
2248
|
+
sideEffects?.onError?.(err);
|
|
2249
|
+
throw transformedError;
|
|
2250
|
+
}
|
|
2251
|
+
}
|
|
2252
|
+
async function captureAuthorizedPayments2(ecomOrderId, payments) {
|
|
2253
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2254
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2255
|
+
ecomOrderId,
|
|
2256
|
+
payments
|
|
2257
|
+
});
|
|
2258
|
+
const reqOpts = captureAuthorizedPayments(payload);
|
|
2259
|
+
sideEffects?.onSiteCall?.();
|
|
2260
|
+
try {
|
|
2261
|
+
const result = await httpClient.request(reqOpts);
|
|
2262
|
+
sideEffects?.onSuccess?.(result);
|
|
2263
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2264
|
+
} catch (err) {
|
|
2265
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
2266
|
+
err,
|
|
2267
|
+
{
|
|
2268
|
+
spreadPathsToArguments: {},
|
|
2269
|
+
explicitPathsToArguments: { ecomOrderId: "$[0]", payments: "$[1]" },
|
|
2270
|
+
singleArgumentUnchanged: false
|
|
2271
|
+
},
|
|
2272
|
+
["ecomOrderId", "payments"]
|
|
2273
|
+
);
|
|
2274
|
+
sideEffects?.onError?.(err);
|
|
2275
|
+
throw transformedError;
|
|
2276
|
+
}
|
|
2277
|
+
}
|
|
1343
2278
|
async function getOrder2(_id) {
|
|
1344
2279
|
const { httpClient, sideEffects } = arguments[1];
|
|
1345
2280
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ id: _id });
|
|
@@ -2037,6 +2972,93 @@ async function bulkUpdateOrderTags2(orderIds, options) {
|
|
|
2037
2972
|
}
|
|
2038
2973
|
|
|
2039
2974
|
// src/ecom-v1-order-orders.public.ts
|
|
2975
|
+
function preparePaymentCollection3(httpClient) {
|
|
2976
|
+
return (ecomOrderId, amount, options) => preparePaymentCollection2(
|
|
2977
|
+
ecomOrderId,
|
|
2978
|
+
amount,
|
|
2979
|
+
options,
|
|
2980
|
+
// @ts-ignore
|
|
2981
|
+
{ httpClient }
|
|
2982
|
+
);
|
|
2983
|
+
}
|
|
2984
|
+
function getPaymentCollectabilityStatus3(httpClient) {
|
|
2985
|
+
return (ecomOrderId) => getPaymentCollectabilityStatus2(
|
|
2986
|
+
ecomOrderId,
|
|
2987
|
+
// @ts-ignore
|
|
2988
|
+
{ httpClient }
|
|
2989
|
+
);
|
|
2990
|
+
}
|
|
2991
|
+
function recordManuallyCollectedPayment3(httpClient) {
|
|
2992
|
+
return (orderId, amount) => recordManuallyCollectedPayment2(
|
|
2993
|
+
orderId,
|
|
2994
|
+
amount,
|
|
2995
|
+
// @ts-ignore
|
|
2996
|
+
{ httpClient }
|
|
2997
|
+
);
|
|
2998
|
+
}
|
|
2999
|
+
function paymentCollectionMarkOrderAsPaid3(httpClient) {
|
|
3000
|
+
return (ecomOrderId) => paymentCollectionMarkOrderAsPaid2(
|
|
3001
|
+
ecomOrderId,
|
|
3002
|
+
// @ts-ignore
|
|
3003
|
+
{ httpClient }
|
|
3004
|
+
);
|
|
3005
|
+
}
|
|
3006
|
+
function paymentCollectionBulkMarkOrdersAsPaid3(httpClient) {
|
|
3007
|
+
return (ecomOrderIds) => paymentCollectionBulkMarkOrdersAsPaid2(
|
|
3008
|
+
ecomOrderIds,
|
|
3009
|
+
// @ts-ignore
|
|
3010
|
+
{ httpClient }
|
|
3011
|
+
);
|
|
3012
|
+
}
|
|
3013
|
+
function getRefundabilityStatus3(httpClient) {
|
|
3014
|
+
return (ecomOrderId) => getRefundabilityStatus2(
|
|
3015
|
+
ecomOrderId,
|
|
3016
|
+
// @ts-ignore
|
|
3017
|
+
{ httpClient }
|
|
3018
|
+
);
|
|
3019
|
+
}
|
|
3020
|
+
function paymentCollectionCreatePaymentGatewayOrder3(httpClient) {
|
|
3021
|
+
return (ecomOrderId, options) => paymentCollectionCreatePaymentGatewayOrder2(
|
|
3022
|
+
ecomOrderId,
|
|
3023
|
+
options,
|
|
3024
|
+
// @ts-ignore
|
|
3025
|
+
{ httpClient }
|
|
3026
|
+
);
|
|
3027
|
+
}
|
|
3028
|
+
function chargeMemberships3(httpClient) {
|
|
3029
|
+
return (ecomOrderId, memberId, options) => chargeMemberships2(
|
|
3030
|
+
ecomOrderId,
|
|
3031
|
+
memberId,
|
|
3032
|
+
options,
|
|
3033
|
+
// @ts-ignore
|
|
3034
|
+
{ httpClient }
|
|
3035
|
+
);
|
|
3036
|
+
}
|
|
3037
|
+
function triggerRefund3(httpClient) {
|
|
3038
|
+
return (ecomOrderId, payments, options) => triggerRefund2(
|
|
3039
|
+
ecomOrderId,
|
|
3040
|
+
payments,
|
|
3041
|
+
options,
|
|
3042
|
+
// @ts-ignore
|
|
3043
|
+
{ httpClient }
|
|
3044
|
+
);
|
|
3045
|
+
}
|
|
3046
|
+
function voidAuthorizedPayments3(httpClient) {
|
|
3047
|
+
return (ecomOrderId, paymentIds) => voidAuthorizedPayments2(
|
|
3048
|
+
ecomOrderId,
|
|
3049
|
+
paymentIds,
|
|
3050
|
+
// @ts-ignore
|
|
3051
|
+
{ httpClient }
|
|
3052
|
+
);
|
|
3053
|
+
}
|
|
3054
|
+
function captureAuthorizedPayments3(httpClient) {
|
|
3055
|
+
return (ecomOrderId, payments) => captureAuthorizedPayments2(
|
|
3056
|
+
ecomOrderId,
|
|
3057
|
+
payments,
|
|
3058
|
+
// @ts-ignore
|
|
3059
|
+
{ httpClient }
|
|
3060
|
+
);
|
|
3061
|
+
}
|
|
2040
3062
|
function getOrder3(httpClient) {
|
|
2041
3063
|
return (_id) => getOrder2(
|
|
2042
3064
|
_id,
|
|
@@ -2189,6 +3211,50 @@ var onOrderApproved = (0, import_sdk_types.EventDefinition)(
|
|
|
2189
3211
|
])
|
|
2190
3212
|
)
|
|
2191
3213
|
)();
|
|
3214
|
+
var onOrderUpdated = (0, import_sdk_types.EventDefinition)(
|
|
3215
|
+
"wix.ecom.v1.order_updated",
|
|
3216
|
+
true,
|
|
3217
|
+
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
3218
|
+
(0, import_transform_paths3.transformPaths)(event, [
|
|
3219
|
+
{
|
|
3220
|
+
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
3221
|
+
paths: [
|
|
3222
|
+
{ path: "entity.createdDate" },
|
|
3223
|
+
{ path: "entity.updatedDate" },
|
|
3224
|
+
{ path: "entity.purchasedDate" },
|
|
3225
|
+
{ path: "entity.lineItems.digitalFile.expirationDate" },
|
|
3226
|
+
{
|
|
3227
|
+
path: "entity.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
3228
|
+
},
|
|
3229
|
+
{ path: "entity.shippingInfo.logistics.deliverByDate" },
|
|
3230
|
+
{ path: "entity.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
3231
|
+
{ path: "entity.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
3232
|
+
{ path: "entity.activities.createdDate" },
|
|
3233
|
+
{ path: "metadata.eventTime" }
|
|
3234
|
+
]
|
|
3235
|
+
},
|
|
3236
|
+
{
|
|
3237
|
+
transformFn: import_image3.transformRESTImageToSDKImage,
|
|
3238
|
+
paths: [{ path: "entity.lineItems.image" }]
|
|
3239
|
+
},
|
|
3240
|
+
{
|
|
3241
|
+
transformFn: import_float3.transformRESTFloatToSDKFloat,
|
|
3242
|
+
paths: [{ path: "entity.lineItems.physicalProperties.weight" }]
|
|
3243
|
+
},
|
|
3244
|
+
{
|
|
3245
|
+
transformFn: import_address3.transformRESTAddressToSDKAddress,
|
|
3246
|
+
paths: [
|
|
3247
|
+
{ path: "entity.billingInfo.address" },
|
|
3248
|
+
{
|
|
3249
|
+
path: "entity.shippingInfo.logistics.shippingDestination.address"
|
|
3250
|
+
},
|
|
3251
|
+
{ path: "entity.shippingInfo.logistics.pickupDetails.address" },
|
|
3252
|
+
{ path: "entity.recipientInfo.address" }
|
|
3253
|
+
]
|
|
3254
|
+
}
|
|
3255
|
+
])
|
|
3256
|
+
)
|
|
3257
|
+
)();
|
|
2192
3258
|
var onOrderCanceled = (0, import_sdk_types.EventDefinition)(
|
|
2193
3259
|
"wix.ecom.v1.order_canceled",
|
|
2194
3260
|
true,
|
|
@@ -2321,54 +3387,23 @@ var onOrderPaymentStatusUpdated = (0, import_sdk_types.EventDefinition)(
|
|
|
2321
3387
|
])
|
|
2322
3388
|
)
|
|
2323
3389
|
)();
|
|
2324
|
-
var onOrderUpdated = (0, import_sdk_types.EventDefinition)(
|
|
2325
|
-
"wix.ecom.v1.order_updated",
|
|
2326
|
-
true,
|
|
2327
|
-
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
2328
|
-
(0, import_transform_paths3.transformPaths)(event, [
|
|
2329
|
-
{
|
|
2330
|
-
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
2331
|
-
paths: [
|
|
2332
|
-
{ path: "entity.createdDate" },
|
|
2333
|
-
{ path: "entity.updatedDate" },
|
|
2334
|
-
{ path: "entity.purchasedDate" },
|
|
2335
|
-
{ path: "entity.lineItems.digitalFile.expirationDate" },
|
|
2336
|
-
{
|
|
2337
|
-
path: "entity.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
2338
|
-
},
|
|
2339
|
-
{ path: "entity.shippingInfo.logistics.deliverByDate" },
|
|
2340
|
-
{ path: "entity.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
2341
|
-
{ path: "entity.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
2342
|
-
{ path: "entity.activities.createdDate" },
|
|
2343
|
-
{ path: "metadata.eventTime" }
|
|
2344
|
-
]
|
|
2345
|
-
},
|
|
2346
|
-
{
|
|
2347
|
-
transformFn: import_image3.transformRESTImageToSDKImage,
|
|
2348
|
-
paths: [{ path: "entity.lineItems.image" }]
|
|
2349
|
-
},
|
|
2350
|
-
{
|
|
2351
|
-
transformFn: import_float3.transformRESTFloatToSDKFloat,
|
|
2352
|
-
paths: [{ path: "entity.lineItems.physicalProperties.weight" }]
|
|
2353
|
-
},
|
|
2354
|
-
{
|
|
2355
|
-
transformFn: import_address3.transformRESTAddressToSDKAddress,
|
|
2356
|
-
paths: [
|
|
2357
|
-
{ path: "entity.billingInfo.address" },
|
|
2358
|
-
{
|
|
2359
|
-
path: "entity.shippingInfo.logistics.shippingDestination.address"
|
|
2360
|
-
},
|
|
2361
|
-
{ path: "entity.shippingInfo.logistics.pickupDetails.address" },
|
|
2362
|
-
{ path: "entity.recipientInfo.address" }
|
|
2363
|
-
]
|
|
2364
|
-
}
|
|
2365
|
-
])
|
|
2366
|
-
)
|
|
2367
|
-
)();
|
|
2368
3390
|
|
|
2369
3391
|
// src/ecom-v1-order-orders.context.ts
|
|
2370
3392
|
var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
|
|
2371
3393
|
var import_event_definition_modules = require("@wix/sdk-runtime/event-definition-modules");
|
|
3394
|
+
var preparePaymentCollection4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(preparePaymentCollection3);
|
|
3395
|
+
var getPaymentCollectabilityStatus4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getPaymentCollectabilityStatus3);
|
|
3396
|
+
var recordManuallyCollectedPayment4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(recordManuallyCollectedPayment3);
|
|
3397
|
+
var paymentCollectionMarkOrderAsPaid4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(paymentCollectionMarkOrderAsPaid3);
|
|
3398
|
+
var paymentCollectionBulkMarkOrdersAsPaid4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(paymentCollectionBulkMarkOrdersAsPaid3);
|
|
3399
|
+
var getRefundabilityStatus4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getRefundabilityStatus3);
|
|
3400
|
+
var paymentCollectionCreatePaymentGatewayOrder4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(
|
|
3401
|
+
paymentCollectionCreatePaymentGatewayOrder3
|
|
3402
|
+
);
|
|
3403
|
+
var chargeMemberships4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(chargeMemberships3);
|
|
3404
|
+
var triggerRefund4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(triggerRefund3);
|
|
3405
|
+
var voidAuthorizedPayments4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(voidAuthorizedPayments3);
|
|
3406
|
+
var captureAuthorizedPayments4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(captureAuthorizedPayments3);
|
|
2372
3407
|
var getOrder4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getOrder3);
|
|
2373
3408
|
var searchOrders4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(searchOrders3);
|
|
2374
3409
|
var createOrder4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createOrder3);
|
|
@@ -2384,41 +3419,57 @@ var updateOrderStatus4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModu
|
|
|
2384
3419
|
var aggregateOrders4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(aggregateOrders3);
|
|
2385
3420
|
var bulkUpdateOrderTags4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkUpdateOrderTags3);
|
|
2386
3421
|
var onOrderApproved2 = (0, import_event_definition_modules.createEventModule)(onOrderApproved);
|
|
3422
|
+
var onOrderUpdated2 = (0, import_event_definition_modules.createEventModule)(onOrderUpdated);
|
|
2387
3423
|
var onOrderCanceled2 = (0, import_event_definition_modules.createEventModule)(onOrderCanceled);
|
|
2388
3424
|
var onOrderCreated2 = (0, import_event_definition_modules.createEventModule)(onOrderCreated);
|
|
2389
3425
|
var onOrderPaymentStatusUpdated2 = (0, import_event_definition_modules.createEventModule)(onOrderPaymentStatusUpdated);
|
|
2390
|
-
var onOrderUpdated2 = (0, import_event_definition_modules.createEventModule)(onOrderUpdated);
|
|
2391
3426
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2392
3427
|
0 && (module.exports = {
|
|
3428
|
+
ActionType,
|
|
2393
3429
|
ActivityType,
|
|
2394
3430
|
AdjustmentType,
|
|
2395
3431
|
AttributionSource,
|
|
3432
|
+
AuthorizationCaptureStatus,
|
|
3433
|
+
AuthorizationVoidStatus,
|
|
2396
3434
|
ChannelType,
|
|
3435
|
+
ChargebackStatus,
|
|
2397
3436
|
CustomFieldGroup,
|
|
2398
3437
|
DeltaPaymentOptionType,
|
|
2399
3438
|
DepositType,
|
|
2400
3439
|
DescriptionLineType,
|
|
2401
3440
|
DiscountReason,
|
|
2402
3441
|
DiscountType,
|
|
3442
|
+
DurationUnit,
|
|
2403
3443
|
FulfillmentStatus,
|
|
2404
3444
|
InventoryAction,
|
|
2405
3445
|
InvoiceStatus,
|
|
2406
3446
|
ItemTypeItemType,
|
|
2407
3447
|
JurisdictionType,
|
|
2408
3448
|
LineItemQuantityChangeType,
|
|
3449
|
+
ManuallyRefundableReason,
|
|
3450
|
+
MembershipPaymentStatus,
|
|
3451
|
+
NonRefundableReason,
|
|
2409
3452
|
OrderApprovalStrategy,
|
|
2410
3453
|
OrderStatus,
|
|
3454
|
+
PaymentCollectabilityStatus,
|
|
2411
3455
|
PaymentOptionType,
|
|
2412
3456
|
PaymentStatus,
|
|
2413
3457
|
PickupMethod,
|
|
2414
3458
|
Placement,
|
|
3459
|
+
Reason,
|
|
3460
|
+
RefundStatus,
|
|
3461
|
+
RefundableStatus,
|
|
3462
|
+
RestockType,
|
|
3463
|
+
ScheduledAction,
|
|
2415
3464
|
SortOrder,
|
|
2416
3465
|
SourceType,
|
|
2417
3466
|
SubdivisionType,
|
|
2418
3467
|
SubscriptionFrequency,
|
|
2419
3468
|
TaxableAddressType,
|
|
3469
|
+
TransactionStatus,
|
|
2420
3470
|
ValueType,
|
|
2421
3471
|
VatType,
|
|
3472
|
+
VersioningMode,
|
|
2422
3473
|
WebhookIdentityType,
|
|
2423
3474
|
WeightUnit,
|
|
2424
3475
|
addActivity,
|
|
@@ -2426,19 +3477,30 @@ var onOrderUpdated2 = (0, import_event_definition_modules.createEventModule)(onO
|
|
|
2426
3477
|
bulkUpdateOrderTags,
|
|
2427
3478
|
bulkUpdateOrders,
|
|
2428
3479
|
cancelOrder,
|
|
3480
|
+
captureAuthorizedPayments,
|
|
3481
|
+
chargeMemberships,
|
|
2429
3482
|
commitDeltas,
|
|
2430
3483
|
createOrder,
|
|
2431
3484
|
deleteActivity,
|
|
2432
3485
|
getOrder,
|
|
3486
|
+
getPaymentCollectabilityStatus,
|
|
3487
|
+
getRefundabilityStatus,
|
|
2433
3488
|
onOrderApproved,
|
|
2434
3489
|
onOrderCanceled,
|
|
2435
3490
|
onOrderCreated,
|
|
2436
3491
|
onOrderPaymentStatusUpdated,
|
|
2437
3492
|
onOrderUpdated,
|
|
3493
|
+
paymentCollectionBulkMarkOrdersAsPaid,
|
|
3494
|
+
paymentCollectionCreatePaymentGatewayOrder,
|
|
3495
|
+
paymentCollectionMarkOrderAsPaid,
|
|
3496
|
+
preparePaymentCollection,
|
|
3497
|
+
recordManuallyCollectedPayment,
|
|
2438
3498
|
searchOrders,
|
|
3499
|
+
triggerRefund,
|
|
2439
3500
|
updateActivity,
|
|
2440
3501
|
updateOrder,
|
|
2441
3502
|
updateOrderLineItem,
|
|
2442
|
-
updateOrderStatus
|
|
3503
|
+
updateOrderStatus,
|
|
3504
|
+
voidAuthorizedPayments
|
|
2443
3505
|
});
|
|
2444
3506
|
//# sourceMappingURL=index.js.map
|