@wix/auto_sdk_ecom_orders 1.0.70 → 1.0.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/{internal/cjs/ecom-v1-order-orders.universal-KCtJReRk.d.ts → cjs/ecom-v1-order-orders.universal-B51dgVhk.d.ts} +223 -2226
- package/build/cjs/index.d.ts +3 -56
- package/build/cjs/index.js +311 -1338
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +112 -1039
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +38 -1006
- package/build/cjs/meta.js +2 -637
- package/build/cjs/meta.js.map +1 -1
- package/build/{internal/es/ecom-v1-order-orders.universal-KCtJReRk.d.mts → es/ecom-v1-order-orders.universal-B51dgVhk.d.mts} +223 -2226
- package/build/es/index.d.mts +3 -56
- package/build/es/index.mjs +310 -1311
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs +111 -1012
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +38 -1006
- package/build/es/meta.mjs +1 -625
- package/build/es/meta.mjs.map +1 -1
- package/build/{cjs/ecom-v1-order-orders.universal-C73TYoI7.d.ts → internal/cjs/ecom-v1-order-orders.universal-BuGgtT93.d.ts} +725 -1537
- package/build/internal/cjs/index.d.ts +3 -162
- package/build/internal/cjs/index.js +311 -1338
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +2 -2
- package/build/internal/cjs/index.typings.js +112 -1039
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +38 -1006
- package/build/internal/cjs/meta.js +2 -637
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/{es/ecom-v1-order-orders.universal-C73TYoI7.d.mts → internal/es/ecom-v1-order-orders.universal-BuGgtT93.d.mts} +725 -1537
- package/build/internal/es/index.d.mts +3 -162
- package/build/internal/es/index.mjs +310 -1311
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +2 -2
- package/build/internal/es/index.typings.mjs +111 -1012
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +38 -1006
- package/build/internal/es/meta.mjs +1 -625
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -20,48 +20,33 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// index.typings.ts
|
|
21
21
|
var index_typings_exports = {};
|
|
22
22
|
__export(index_typings_exports, {
|
|
23
|
-
ActionType: () => ActionType,
|
|
24
23
|
ActivityType: () => ActivityType,
|
|
25
24
|
AdjustmentType: () => AdjustmentType,
|
|
26
25
|
AttributionSource: () => AttributionSource,
|
|
27
|
-
AuthorizationCaptureStatus: () => AuthorizationCaptureStatus,
|
|
28
|
-
AuthorizationVoidStatus: () => AuthorizationVoidStatus,
|
|
29
26
|
ChannelType: () => ChannelType,
|
|
30
|
-
ChargebackStatus: () => ChargebackStatus,
|
|
31
27
|
CustomFieldGroup: () => CustomFieldGroup,
|
|
32
28
|
DeltaPaymentOptionType: () => DeltaPaymentOptionType,
|
|
33
29
|
DepositType: () => DepositType,
|
|
34
30
|
DescriptionLineType: () => DescriptionLineType,
|
|
35
31
|
DiscountReason: () => DiscountReason,
|
|
36
32
|
DiscountType: () => DiscountType,
|
|
37
|
-
DurationUnit: () => DurationUnit,
|
|
38
33
|
FulfillmentStatus: () => FulfillmentStatus,
|
|
39
34
|
InventoryAction: () => InventoryAction,
|
|
40
35
|
InvoiceStatus: () => InvoiceStatus,
|
|
41
36
|
ItemTypeItemType: () => ItemTypeItemType,
|
|
42
37
|
JurisdictionType: () => JurisdictionType,
|
|
43
38
|
LineItemQuantityChangeType: () => LineItemQuantityChangeType,
|
|
44
|
-
ManuallyRefundableReason: () => ManuallyRefundableReason,
|
|
45
|
-
MembershipPaymentStatus: () => MembershipPaymentStatus,
|
|
46
|
-
NonRefundableReason: () => NonRefundableReason,
|
|
47
39
|
OrderApprovalStrategy: () => OrderApprovalStrategy,
|
|
48
40
|
OrderStatus: () => OrderStatus,
|
|
49
|
-
PaymentCollectabilityStatus: () => PaymentCollectabilityStatus,
|
|
50
41
|
PaymentOptionType: () => PaymentOptionType,
|
|
51
42
|
PaymentStatus: () => PaymentStatus,
|
|
52
43
|
PickupMethod: () => PickupMethod,
|
|
53
44
|
Placement: () => Placement,
|
|
54
|
-
Reason: () => Reason,
|
|
55
|
-
RefundStatus: () => RefundStatus,
|
|
56
|
-
RefundableStatus: () => RefundableStatus,
|
|
57
|
-
RestockType: () => RestockType,
|
|
58
|
-
ScheduledAction: () => ScheduledAction,
|
|
59
45
|
SortOrder: () => SortOrder,
|
|
60
46
|
SourceType: () => SourceType,
|
|
61
47
|
SubdivisionType: () => SubdivisionType,
|
|
62
48
|
SubscriptionFrequency: () => SubscriptionFrequency,
|
|
63
49
|
TaxableAddressType: () => TaxableAddressType,
|
|
64
|
-
TransactionStatus: () => TransactionStatus,
|
|
65
50
|
ValueType: () => ValueType,
|
|
66
51
|
VatType: () => VatType,
|
|
67
52
|
VersioningMode: () => VersioningMode,
|
|
@@ -72,26 +57,15 @@ __export(index_typings_exports, {
|
|
|
72
57
|
bulkUpdateOrderTags: () => bulkUpdateOrderTags2,
|
|
73
58
|
bulkUpdateOrders: () => bulkUpdateOrders2,
|
|
74
59
|
cancelOrder: () => cancelOrder2,
|
|
75
|
-
captureAuthorizedPayments: () => captureAuthorizedPayments2,
|
|
76
|
-
chargeMemberships: () => chargeMemberships2,
|
|
77
60
|
commitDeltas: () => commitDeltas2,
|
|
78
61
|
createOrder: () => createOrder2,
|
|
79
62
|
deleteActivity: () => deleteActivity2,
|
|
80
63
|
getOrder: () => getOrder2,
|
|
81
|
-
getPaymentCollectabilityStatus: () => getPaymentCollectabilityStatus2,
|
|
82
|
-
getRefundabilityStatus: () => getRefundabilityStatus2,
|
|
83
|
-
paymentCollectionBulkMarkOrdersAsPaid: () => paymentCollectionBulkMarkOrdersAsPaid2,
|
|
84
|
-
paymentCollectionCreatePaymentGatewayOrder: () => paymentCollectionCreatePaymentGatewayOrder2,
|
|
85
|
-
paymentCollectionMarkOrderAsPaid: () => paymentCollectionMarkOrderAsPaid2,
|
|
86
|
-
preparePaymentCollection: () => preparePaymentCollection2,
|
|
87
|
-
recordManuallyCollectedPayment: () => recordManuallyCollectedPayment2,
|
|
88
64
|
searchOrders: () => searchOrders2,
|
|
89
|
-
triggerRefund: () => triggerRefund2,
|
|
90
65
|
updateActivity: () => updateActivity2,
|
|
91
66
|
updateOrder: () => updateOrder2,
|
|
92
67
|
updateOrderLineItem: () => updateOrderLineItem2,
|
|
93
|
-
updateOrderStatus: () => updateOrderStatus2
|
|
94
|
-
voidAuthorizedPayments: () => voidAuthorizedPayments2
|
|
68
|
+
updateOrderStatus: () => updateOrderStatus2
|
|
95
69
|
});
|
|
96
70
|
module.exports = __toCommonJS(index_typings_exports);
|
|
97
71
|
|
|
@@ -139,109 +113,20 @@ function resolveComWixEcomOrdersV1OrdersUrl(opts) {
|
|
|
139
113
|
};
|
|
140
114
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
141
115
|
}
|
|
142
|
-
function resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl(opts) {
|
|
143
|
-
const domainToMappings = {
|
|
144
|
-
"api._api_base_domain_": [
|
|
145
|
-
{
|
|
146
|
-
srcPath: "/payments-collector",
|
|
147
|
-
destPath: ""
|
|
148
|
-
}
|
|
149
|
-
],
|
|
150
|
-
"www.wixapis.com": [
|
|
151
|
-
{
|
|
152
|
-
srcPath: "/ecom/v1/payments-collector",
|
|
153
|
-
destPath: "/v1/payments-collector"
|
|
154
|
-
}
|
|
155
|
-
],
|
|
156
|
-
"manage._base_domain_": [
|
|
157
|
-
{
|
|
158
|
-
srcPath: "/ecom/v1/payments-collector",
|
|
159
|
-
destPath: "/v1/payments-collector"
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
srcPath: "/_api/v1/payments-collector",
|
|
163
|
-
destPath: "/v1/payments-collector"
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
srcPath: "/v1/payments-collector",
|
|
167
|
-
destPath: "/v1/payments-collector"
|
|
168
|
-
},
|
|
169
|
-
{
|
|
170
|
-
srcPath: "/_api/payments-collector",
|
|
171
|
-
destPath: "/v1/payments-collector"
|
|
172
|
-
}
|
|
173
|
-
]
|
|
174
|
-
};
|
|
175
|
-
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
176
|
-
}
|
|
177
116
|
var PACKAGE_NAME = "@wix/auto_sdk_ecom_orders";
|
|
178
|
-
function
|
|
179
|
-
function
|
|
180
|
-
const metadata = {
|
|
181
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
182
|
-
method: "POST",
|
|
183
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.PreparePaymentCollection",
|
|
184
|
-
packageName: PACKAGE_NAME,
|
|
185
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
186
|
-
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/prepare-payment-collection",
|
|
187
|
-
data: payload,
|
|
188
|
-
host
|
|
189
|
-
}),
|
|
190
|
-
data: payload
|
|
191
|
-
};
|
|
192
|
-
return metadata;
|
|
193
|
-
}
|
|
194
|
-
return __preparePaymentCollection;
|
|
195
|
-
}
|
|
196
|
-
function getPaymentCollectabilityStatus(payload) {
|
|
197
|
-
function __getPaymentCollectabilityStatus({ host }) {
|
|
117
|
+
function getOrder(payload) {
|
|
118
|
+
function __getOrder({ host }) {
|
|
198
119
|
const metadata = {
|
|
199
120
|
entityFqdn: "wix.ecom.v1.order",
|
|
200
121
|
method: "GET",
|
|
201
|
-
methodFqn: "com.wix.ecom.orders.
|
|
202
|
-
packageName: PACKAGE_NAME,
|
|
203
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
204
|
-
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/payment-collectability-status",
|
|
205
|
-
data: payload,
|
|
206
|
-
host
|
|
207
|
-
}),
|
|
208
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
209
|
-
};
|
|
210
|
-
return metadata;
|
|
211
|
-
}
|
|
212
|
-
return __getPaymentCollectabilityStatus;
|
|
213
|
-
}
|
|
214
|
-
function recordManuallyCollectedPayment(payload) {
|
|
215
|
-
function __recordManuallyCollectedPayment({ host }) {
|
|
216
|
-
const metadata = {
|
|
217
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
218
|
-
method: "POST",
|
|
219
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.RecordManuallyCollectedPayment",
|
|
220
|
-
packageName: PACKAGE_NAME,
|
|
221
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
222
|
-
protoPath: "/v1/payments-collector/orders/{orderId}/manual-payment",
|
|
223
|
-
data: payload,
|
|
224
|
-
host
|
|
225
|
-
}),
|
|
226
|
-
data: payload
|
|
227
|
-
};
|
|
228
|
-
return metadata;
|
|
229
|
-
}
|
|
230
|
-
return __recordManuallyCollectedPayment;
|
|
231
|
-
}
|
|
232
|
-
function paymentCollectionMarkOrderAsPaid(payload) {
|
|
233
|
-
function __paymentCollectionMarkOrderAsPaid({ host }) {
|
|
234
|
-
const metadata = {
|
|
235
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
236
|
-
method: "POST",
|
|
237
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.MarkOrderAsPaid",
|
|
122
|
+
methodFqn: "com.wix.ecom.orders.v1.Orders.GetOrder",
|
|
238
123
|
packageName: PACKAGE_NAME,
|
|
239
|
-
url:
|
|
240
|
-
protoPath: "/v1/
|
|
124
|
+
url: resolveComWixEcomOrdersV1OrdersUrl({
|
|
125
|
+
protoPath: "/v1/orders/{id}",
|
|
241
126
|
data: payload,
|
|
242
127
|
host
|
|
243
128
|
}),
|
|
244
|
-
|
|
129
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
245
130
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
246
131
|
{
|
|
247
132
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
@@ -288,17 +173,17 @@ function paymentCollectionMarkOrderAsPaid(payload) {
|
|
|
288
173
|
};
|
|
289
174
|
return metadata;
|
|
290
175
|
}
|
|
291
|
-
return
|
|
176
|
+
return __getOrder;
|
|
292
177
|
}
|
|
293
|
-
function
|
|
294
|
-
function
|
|
178
|
+
function searchOrders(payload) {
|
|
179
|
+
function __searchOrders({ host }) {
|
|
295
180
|
const metadata = {
|
|
296
181
|
entityFqdn: "wix.ecom.v1.order",
|
|
297
182
|
method: "POST",
|
|
298
|
-
methodFqn: "com.wix.ecom.orders.
|
|
183
|
+
methodFqn: "com.wix.ecom.orders.v1.Orders.SearchOrders",
|
|
299
184
|
packageName: PACKAGE_NAME,
|
|
300
|
-
url:
|
|
301
|
-
protoPath: "/v1/
|
|
185
|
+
url: resolveComWixEcomOrdersV1OrdersUrl({
|
|
186
|
+
protoPath: "/v1/orders/search",
|
|
302
187
|
data: payload,
|
|
303
188
|
host
|
|
304
189
|
}),
|
|
@@ -307,477 +192,153 @@ function paymentCollectionBulkMarkOrdersAsPaid(payload) {
|
|
|
307
192
|
{
|
|
308
193
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
309
194
|
paths: [
|
|
310
|
-
{ path: "
|
|
311
|
-
{ path: "
|
|
312
|
-
{ path: "
|
|
313
|
-
{ path: "
|
|
314
|
-
{ path: "
|
|
315
|
-
{
|
|
316
|
-
path: "results.item.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
317
|
-
},
|
|
318
|
-
{ path: "results.item.shippingInfo.logistics.deliverByDate" },
|
|
319
|
-
{
|
|
320
|
-
path: "results.item.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
321
|
-
},
|
|
195
|
+
{ path: "orders.createdDate" },
|
|
196
|
+
{ path: "orders.updatedDate" },
|
|
197
|
+
{ path: "orders.purchasedDate" },
|
|
198
|
+
{ path: "orders.lineItems.image.urlExpirationDate" },
|
|
199
|
+
{ path: "orders.lineItems.digitalFile.expirationDate" },
|
|
322
200
|
{
|
|
323
|
-
path: "
|
|
201
|
+
path: "orders.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
324
202
|
},
|
|
325
|
-
{ path: "
|
|
203
|
+
{ path: "orders.shippingInfo.logistics.deliverByDate" },
|
|
204
|
+
{ path: "orders.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
205
|
+
{ path: "orders.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
206
|
+
{ path: "orders.activities.createdDate" }
|
|
326
207
|
]
|
|
327
208
|
},
|
|
328
209
|
{
|
|
329
210
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
330
211
|
paths: [
|
|
331
|
-
{ path: "
|
|
332
|
-
{ path: "
|
|
333
|
-
{ path: "
|
|
334
|
-
{ path: "
|
|
335
|
-
{ path: "
|
|
212
|
+
{ path: "orders.lineItems.image.focalPoint.x" },
|
|
213
|
+
{ path: "orders.lineItems.image.focalPoint.y" },
|
|
214
|
+
{ path: "orders.lineItems.physicalProperties.weight" },
|
|
215
|
+
{ path: "orders.billingInfo.address.geocode.latitude" },
|
|
216
|
+
{ path: "orders.billingInfo.address.geocode.longitude" },
|
|
336
217
|
{
|
|
337
|
-
path: "
|
|
218
|
+
path: "orders.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
338
219
|
},
|
|
339
220
|
{
|
|
340
|
-
path: "
|
|
221
|
+
path: "orders.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
341
222
|
},
|
|
342
223
|
{
|
|
343
|
-
path: "
|
|
224
|
+
path: "orders.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
344
225
|
},
|
|
345
226
|
{
|
|
346
|
-
path: "
|
|
227
|
+
path: "orders.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
347
228
|
},
|
|
348
|
-
{ path: "
|
|
349
|
-
{ path: "
|
|
229
|
+
{ path: "orders.recipientInfo.address.geocode.latitude" },
|
|
230
|
+
{ path: "orders.recipientInfo.address.geocode.longitude" }
|
|
350
231
|
]
|
|
351
232
|
}
|
|
352
233
|
])
|
|
353
234
|
};
|
|
354
235
|
return metadata;
|
|
355
236
|
}
|
|
356
|
-
return
|
|
357
|
-
}
|
|
358
|
-
function getRefundabilityStatus(payload) {
|
|
359
|
-
function __getRefundabilityStatus({ host }) {
|
|
360
|
-
const metadata = {
|
|
361
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
362
|
-
method: "GET",
|
|
363
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.GetRefundabilityStatus",
|
|
364
|
-
packageName: PACKAGE_NAME,
|
|
365
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
366
|
-
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/refundability",
|
|
367
|
-
data: payload,
|
|
368
|
-
host
|
|
369
|
-
}),
|
|
370
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
371
|
-
};
|
|
372
|
-
return metadata;
|
|
373
|
-
}
|
|
374
|
-
return __getRefundabilityStatus;
|
|
375
|
-
}
|
|
376
|
-
function paymentCollectionCreatePaymentGatewayOrder(payload) {
|
|
377
|
-
function __paymentCollectionCreatePaymentGatewayOrder({ host }) {
|
|
378
|
-
const metadata = {
|
|
379
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
380
|
-
method: "POST",
|
|
381
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.CreatePaymentGatewayOrder",
|
|
382
|
-
packageName: PACKAGE_NAME,
|
|
383
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
384
|
-
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/create-payment-gateway-order",
|
|
385
|
-
data: payload,
|
|
386
|
-
host
|
|
387
|
-
}),
|
|
388
|
-
data: payload
|
|
389
|
-
};
|
|
390
|
-
return metadata;
|
|
391
|
-
}
|
|
392
|
-
return __paymentCollectionCreatePaymentGatewayOrder;
|
|
237
|
+
return __searchOrders;
|
|
393
238
|
}
|
|
394
|
-
function
|
|
395
|
-
function
|
|
239
|
+
function createOrder(payload) {
|
|
240
|
+
function __createOrder({ host }) {
|
|
396
241
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
397
242
|
{
|
|
398
243
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
399
|
-
paths: [
|
|
244
|
+
paths: [
|
|
245
|
+
{ path: "order.createdDate" },
|
|
246
|
+
{ path: "order.updatedDate" },
|
|
247
|
+
{ path: "order.purchasedDate" },
|
|
248
|
+
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
249
|
+
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
250
|
+
{
|
|
251
|
+
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
252
|
+
},
|
|
253
|
+
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
254
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
255
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
256
|
+
{ path: "order.activities.createdDate" }
|
|
257
|
+
]
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
261
|
+
paths: [
|
|
262
|
+
{ path: "order.lineItems.image.focalPoint.x" },
|
|
263
|
+
{ path: "order.lineItems.image.focalPoint.y" },
|
|
264
|
+
{ path: "order.lineItems.physicalProperties.weight" },
|
|
265
|
+
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
266
|
+
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
267
|
+
{
|
|
268
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
278
|
+
},
|
|
279
|
+
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
280
|
+
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
281
|
+
]
|
|
400
282
|
}
|
|
401
283
|
]);
|
|
402
284
|
const metadata = {
|
|
403
285
|
entityFqdn: "wix.ecom.v1.order",
|
|
404
286
|
method: "POST",
|
|
405
|
-
methodFqn: "com.wix.ecom.orders.
|
|
287
|
+
methodFqn: "com.wix.ecom.orders.v1.Orders.CreateOrder",
|
|
406
288
|
packageName: PACKAGE_NAME,
|
|
407
|
-
url:
|
|
408
|
-
protoPath: "/v1/
|
|
289
|
+
url: resolveComWixEcomOrdersV1OrdersUrl({
|
|
290
|
+
protoPath: "/v1/orders",
|
|
409
291
|
data: serializedData,
|
|
410
292
|
host
|
|
411
293
|
}),
|
|
412
|
-
data: serializedData
|
|
413
|
-
};
|
|
414
|
-
return metadata;
|
|
415
|
-
}
|
|
416
|
-
return __chargeMemberships;
|
|
417
|
-
}
|
|
418
|
-
function triggerRefund(payload) {
|
|
419
|
-
function __triggerRefund({ host }) {
|
|
420
|
-
const metadata = {
|
|
421
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
422
|
-
method: "POST",
|
|
423
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.TriggerRefund",
|
|
424
|
-
packageName: PACKAGE_NAME,
|
|
425
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
426
|
-
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/trigger-refund",
|
|
427
|
-
data: payload,
|
|
428
|
-
host
|
|
429
|
-
}),
|
|
430
|
-
data: payload,
|
|
294
|
+
data: serializedData,
|
|
431
295
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
432
296
|
{
|
|
433
297
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
434
298
|
paths: [
|
|
435
|
-
{ path: "
|
|
436
|
-
{ path: "
|
|
437
|
-
{
|
|
438
|
-
|
|
439
|
-
},
|
|
440
|
-
{
|
|
441
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
442
|
-
},
|
|
443
|
-
{
|
|
444
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
445
|
-
},
|
|
446
|
-
{
|
|
447
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
448
|
-
},
|
|
449
|
-
{
|
|
450
|
-
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
|
|
451
|
-
},
|
|
299
|
+
{ path: "order.createdDate" },
|
|
300
|
+
{ path: "order.updatedDate" },
|
|
301
|
+
{ path: "order.purchasedDate" },
|
|
302
|
+
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
303
|
+
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
452
304
|
{
|
|
453
|
-
path: "
|
|
305
|
+
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
454
306
|
},
|
|
455
|
-
{ path: "
|
|
307
|
+
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
308
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
309
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
310
|
+
{ path: "order.activities.createdDate" }
|
|
456
311
|
]
|
|
457
|
-
}
|
|
458
|
-
])
|
|
459
|
-
};
|
|
460
|
-
return metadata;
|
|
461
|
-
}
|
|
462
|
-
return __triggerRefund;
|
|
463
|
-
}
|
|
464
|
-
function voidAuthorizedPayments(payload) {
|
|
465
|
-
function __voidAuthorizedPayments({ host }) {
|
|
466
|
-
const metadata = {
|
|
467
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
468
|
-
method: "POST",
|
|
469
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.VoidAuthorizedPayments",
|
|
470
|
-
packageName: PACKAGE_NAME,
|
|
471
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
472
|
-
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/void-authorized-payments",
|
|
473
|
-
data: payload,
|
|
474
|
-
host
|
|
475
|
-
}),
|
|
476
|
-
data: payload,
|
|
477
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
312
|
+
},
|
|
478
313
|
{
|
|
479
|
-
transformFn:
|
|
314
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
480
315
|
paths: [
|
|
481
|
-
{ path: "
|
|
482
|
-
{ path: "
|
|
483
|
-
{
|
|
484
|
-
|
|
485
|
-
},
|
|
486
|
-
{
|
|
487
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
488
|
-
},
|
|
316
|
+
{ path: "order.lineItems.image.focalPoint.x" },
|
|
317
|
+
{ path: "order.lineItems.image.focalPoint.y" },
|
|
318
|
+
{ path: "order.lineItems.physicalProperties.weight" },
|
|
319
|
+
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
320
|
+
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
489
321
|
{
|
|
490
|
-
path: "
|
|
322
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
491
323
|
},
|
|
492
324
|
{
|
|
493
|
-
path: "
|
|
325
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
494
326
|
},
|
|
495
327
|
{
|
|
496
|
-
path: "
|
|
328
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
497
329
|
},
|
|
498
330
|
{
|
|
499
|
-
path: "
|
|
331
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
500
332
|
},
|
|
501
|
-
{ path: "
|
|
333
|
+
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
334
|
+
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
502
335
|
]
|
|
503
336
|
}
|
|
504
337
|
])
|
|
505
338
|
};
|
|
506
339
|
return metadata;
|
|
507
340
|
}
|
|
508
|
-
return
|
|
509
|
-
}
|
|
510
|
-
function captureAuthorizedPayments(payload) {
|
|
511
|
-
function __captureAuthorizedPayments({ host }) {
|
|
512
|
-
const metadata = {
|
|
513
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
514
|
-
method: "POST",
|
|
515
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.CaptureAuthorizedPayments",
|
|
516
|
-
packageName: PACKAGE_NAME,
|
|
517
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
518
|
-
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/capture-authorized-payments",
|
|
519
|
-
data: payload,
|
|
520
|
-
host
|
|
521
|
-
}),
|
|
522
|
-
data: payload,
|
|
523
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
524
|
-
{
|
|
525
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
526
|
-
paths: [
|
|
527
|
-
{ path: "orderTransactions.payments.createdDate" },
|
|
528
|
-
{ path: "orderTransactions.payments.updatedDate" },
|
|
529
|
-
{
|
|
530
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
|
|
531
|
-
},
|
|
532
|
-
{
|
|
533
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
534
|
-
},
|
|
535
|
-
{
|
|
536
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
537
|
-
},
|
|
538
|
-
{
|
|
539
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
540
|
-
},
|
|
541
|
-
{
|
|
542
|
-
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
|
|
543
|
-
},
|
|
544
|
-
{
|
|
545
|
-
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.updatedDate"
|
|
546
|
-
},
|
|
547
|
-
{ path: "orderTransactions.refunds.createdDate" }
|
|
548
|
-
]
|
|
549
|
-
}
|
|
550
|
-
])
|
|
551
|
-
};
|
|
552
|
-
return metadata;
|
|
553
|
-
}
|
|
554
|
-
return __captureAuthorizedPayments;
|
|
555
|
-
}
|
|
556
|
-
function getOrder(payload) {
|
|
557
|
-
function __getOrder({ host }) {
|
|
558
|
-
const metadata = {
|
|
559
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
560
|
-
method: "GET",
|
|
561
|
-
methodFqn: "com.wix.ecom.orders.v1.Orders.GetOrder",
|
|
562
|
-
packageName: PACKAGE_NAME,
|
|
563
|
-
url: resolveComWixEcomOrdersV1OrdersUrl({
|
|
564
|
-
protoPath: "/v1/orders/{id}",
|
|
565
|
-
data: payload,
|
|
566
|
-
host
|
|
567
|
-
}),
|
|
568
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
569
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
570
|
-
{
|
|
571
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
572
|
-
paths: [
|
|
573
|
-
{ path: "order.createdDate" },
|
|
574
|
-
{ path: "order.updatedDate" },
|
|
575
|
-
{ path: "order.purchasedDate" },
|
|
576
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
577
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
578
|
-
{
|
|
579
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
580
|
-
},
|
|
581
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
582
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
583
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
584
|
-
{ path: "order.activities.createdDate" }
|
|
585
|
-
]
|
|
586
|
-
},
|
|
587
|
-
{
|
|
588
|
-
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
589
|
-
paths: [
|
|
590
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
591
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
592
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
593
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
594
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
595
|
-
{
|
|
596
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
597
|
-
},
|
|
598
|
-
{
|
|
599
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
600
|
-
},
|
|
601
|
-
{
|
|
602
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
603
|
-
},
|
|
604
|
-
{
|
|
605
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
606
|
-
},
|
|
607
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
608
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
609
|
-
]
|
|
610
|
-
}
|
|
611
|
-
])
|
|
612
|
-
};
|
|
613
|
-
return metadata;
|
|
614
|
-
}
|
|
615
|
-
return __getOrder;
|
|
616
|
-
}
|
|
617
|
-
function searchOrders(payload) {
|
|
618
|
-
function __searchOrders({ host }) {
|
|
619
|
-
const metadata = {
|
|
620
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
621
|
-
method: "POST",
|
|
622
|
-
methodFqn: "com.wix.ecom.orders.v1.Orders.SearchOrders",
|
|
623
|
-
packageName: PACKAGE_NAME,
|
|
624
|
-
url: resolveComWixEcomOrdersV1OrdersUrl({
|
|
625
|
-
protoPath: "/v1/orders/search",
|
|
626
|
-
data: payload,
|
|
627
|
-
host
|
|
628
|
-
}),
|
|
629
|
-
data: payload,
|
|
630
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
631
|
-
{
|
|
632
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
633
|
-
paths: [
|
|
634
|
-
{ path: "orders.createdDate" },
|
|
635
|
-
{ path: "orders.updatedDate" },
|
|
636
|
-
{ path: "orders.purchasedDate" },
|
|
637
|
-
{ path: "orders.lineItems.image.urlExpirationDate" },
|
|
638
|
-
{ path: "orders.lineItems.digitalFile.expirationDate" },
|
|
639
|
-
{
|
|
640
|
-
path: "orders.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
641
|
-
},
|
|
642
|
-
{ path: "orders.shippingInfo.logistics.deliverByDate" },
|
|
643
|
-
{ path: "orders.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
644
|
-
{ path: "orders.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
645
|
-
{ path: "orders.activities.createdDate" }
|
|
646
|
-
]
|
|
647
|
-
},
|
|
648
|
-
{
|
|
649
|
-
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
650
|
-
paths: [
|
|
651
|
-
{ path: "orders.lineItems.image.focalPoint.x" },
|
|
652
|
-
{ path: "orders.lineItems.image.focalPoint.y" },
|
|
653
|
-
{ path: "orders.lineItems.physicalProperties.weight" },
|
|
654
|
-
{ path: "orders.billingInfo.address.geocode.latitude" },
|
|
655
|
-
{ path: "orders.billingInfo.address.geocode.longitude" },
|
|
656
|
-
{
|
|
657
|
-
path: "orders.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
658
|
-
},
|
|
659
|
-
{
|
|
660
|
-
path: "orders.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
661
|
-
},
|
|
662
|
-
{
|
|
663
|
-
path: "orders.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
664
|
-
},
|
|
665
|
-
{
|
|
666
|
-
path: "orders.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
667
|
-
},
|
|
668
|
-
{ path: "orders.recipientInfo.address.geocode.latitude" },
|
|
669
|
-
{ path: "orders.recipientInfo.address.geocode.longitude" }
|
|
670
|
-
]
|
|
671
|
-
}
|
|
672
|
-
])
|
|
673
|
-
};
|
|
674
|
-
return metadata;
|
|
675
|
-
}
|
|
676
|
-
return __searchOrders;
|
|
677
|
-
}
|
|
678
|
-
function createOrder(payload) {
|
|
679
|
-
function __createOrder({ host }) {
|
|
680
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
681
|
-
{
|
|
682
|
-
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
683
|
-
paths: [
|
|
684
|
-
{ path: "order.createdDate" },
|
|
685
|
-
{ path: "order.updatedDate" },
|
|
686
|
-
{ path: "order.purchasedDate" },
|
|
687
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
688
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
689
|
-
{
|
|
690
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
691
|
-
},
|
|
692
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
693
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
694
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
695
|
-
{ path: "order.activities.createdDate" }
|
|
696
|
-
]
|
|
697
|
-
},
|
|
698
|
-
{
|
|
699
|
-
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
700
|
-
paths: [
|
|
701
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
702
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
703
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
704
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
705
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
706
|
-
{
|
|
707
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
708
|
-
},
|
|
709
|
-
{
|
|
710
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
711
|
-
},
|
|
712
|
-
{
|
|
713
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
714
|
-
},
|
|
715
|
-
{
|
|
716
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
717
|
-
},
|
|
718
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
719
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
720
|
-
]
|
|
721
|
-
}
|
|
722
|
-
]);
|
|
723
|
-
const metadata = {
|
|
724
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
725
|
-
method: "POST",
|
|
726
|
-
methodFqn: "com.wix.ecom.orders.v1.Orders.CreateOrder",
|
|
727
|
-
packageName: PACKAGE_NAME,
|
|
728
|
-
url: resolveComWixEcomOrdersV1OrdersUrl({
|
|
729
|
-
protoPath: "/v1/orders",
|
|
730
|
-
data: serializedData,
|
|
731
|
-
host
|
|
732
|
-
}),
|
|
733
|
-
data: serializedData,
|
|
734
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
735
|
-
{
|
|
736
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
737
|
-
paths: [
|
|
738
|
-
{ path: "order.createdDate" },
|
|
739
|
-
{ path: "order.updatedDate" },
|
|
740
|
-
{ path: "order.purchasedDate" },
|
|
741
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
742
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
743
|
-
{
|
|
744
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
745
|
-
},
|
|
746
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
747
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
748
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
749
|
-
{ path: "order.activities.createdDate" }
|
|
750
|
-
]
|
|
751
|
-
},
|
|
752
|
-
{
|
|
753
|
-
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
754
|
-
paths: [
|
|
755
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
756
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
757
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
758
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
759
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
760
|
-
{
|
|
761
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
762
|
-
},
|
|
763
|
-
{
|
|
764
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
765
|
-
},
|
|
766
|
-
{
|
|
767
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
768
|
-
},
|
|
769
|
-
{
|
|
770
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
771
|
-
},
|
|
772
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
773
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
774
|
-
]
|
|
775
|
-
}
|
|
776
|
-
])
|
|
777
|
-
};
|
|
778
|
-
return metadata;
|
|
779
|
-
}
|
|
780
|
-
return __createOrder;
|
|
341
|
+
return __createOrder;
|
|
781
342
|
}
|
|
782
343
|
function updateOrder(payload) {
|
|
783
344
|
function __updateOrder({ host }) {
|
|
@@ -1703,137 +1264,20 @@ var ChannelType = /* @__PURE__ */ ((ChannelType2) => {
|
|
|
1703
1264
|
ChannelType2["FAIRE_COM"] = "FAIRE_COM";
|
|
1704
1265
|
return ChannelType2;
|
|
1705
1266
|
})(ChannelType || {});
|
|
1706
|
-
var ScheduledAction = /* @__PURE__ */ ((ScheduledAction2) => {
|
|
1707
|
-
ScheduledAction2["UNSPECIFIED"] = "UNSPECIFIED";
|
|
1708
|
-
ScheduledAction2["VOID"] = "VOID";
|
|
1709
|
-
ScheduledAction2["CAPTURE"] = "CAPTURE";
|
|
1710
|
-
return ScheduledAction2;
|
|
1711
|
-
})(ScheduledAction || {});
|
|
1712
|
-
var DurationUnit = /* @__PURE__ */ ((DurationUnit2) => {
|
|
1713
|
-
DurationUnit2["UNKNOWN_DURATION_UNIT"] = "UNKNOWN_DURATION_UNIT";
|
|
1714
|
-
DurationUnit2["MINUTES"] = "MINUTES";
|
|
1715
|
-
DurationUnit2["HOURS"] = "HOURS";
|
|
1716
|
-
DurationUnit2["DAYS"] = "DAYS";
|
|
1717
|
-
return DurationUnit2;
|
|
1718
|
-
})(DurationUnit || {});
|
|
1719
|
-
var PaymentCollectabilityStatus = /* @__PURE__ */ ((PaymentCollectabilityStatus2) => {
|
|
1720
|
-
PaymentCollectabilityStatus2["UNKNOWN"] = "UNKNOWN";
|
|
1721
|
-
PaymentCollectabilityStatus2["COLLECTABLE"] = "COLLECTABLE";
|
|
1722
|
-
PaymentCollectabilityStatus2["NONCOLLECTABLE_ORDER_IS_CANCELLED"] = "NONCOLLECTABLE_ORDER_IS_CANCELLED";
|
|
1723
|
-
PaymentCollectabilityStatus2["NONCOLLECTABLE_ORDER_IS_PAID"] = "NONCOLLECTABLE_ORDER_IS_PAID";
|
|
1724
|
-
PaymentCollectabilityStatus2["NONCOLLECTABLE_MISSING_PAYMENT_METHOD"] = "NONCOLLECTABLE_MISSING_PAYMENT_METHOD";
|
|
1725
|
-
PaymentCollectabilityStatus2["NONCOLLECTABLE_ORDER_IS_PENDING"] = "NONCOLLECTABLE_ORDER_IS_PENDING";
|
|
1726
|
-
PaymentCollectabilityStatus2["NONCOLLECTABLE_ORDER_IS_REJECTED"] = "NONCOLLECTABLE_ORDER_IS_REJECTED";
|
|
1727
|
-
PaymentCollectabilityStatus2["NONCOLLECTABLE_ORDER_HAS_SUBSCRIPTIONS"] = "NONCOLLECTABLE_ORDER_HAS_SUBSCRIPTIONS";
|
|
1728
|
-
return PaymentCollectabilityStatus2;
|
|
1729
|
-
})(PaymentCollectabilityStatus || {});
|
|
1730
|
-
var RefundableStatus = /* @__PURE__ */ ((RefundableStatus2) => {
|
|
1731
|
-
RefundableStatus2["NOT_REFUNDABLE"] = "NOT_REFUNDABLE";
|
|
1732
|
-
RefundableStatus2["MANUAL"] = "MANUAL";
|
|
1733
|
-
RefundableStatus2["REFUNDABLE"] = "REFUNDABLE";
|
|
1734
|
-
return RefundableStatus2;
|
|
1735
|
-
})(RefundableStatus || {});
|
|
1736
|
-
var NonRefundableReason = /* @__PURE__ */ ((NonRefundableReason2) => {
|
|
1737
|
-
NonRefundableReason2["NONE"] = "NONE";
|
|
1738
|
-
NonRefundableReason2["ALREADY_REFUNDED"] = "ALREADY_REFUNDED";
|
|
1739
|
-
NonRefundableReason2["PROVIDER_IS_DOWN"] = "PROVIDER_IS_DOWN";
|
|
1740
|
-
NonRefundableReason2["INTERNAL_ERROR"] = "INTERNAL_ERROR";
|
|
1741
|
-
NonRefundableReason2["NOT_PAID"] = "NOT_PAID";
|
|
1742
|
-
NonRefundableReason2["ACCESS_DENIED"] = "ACCESS_DENIED";
|
|
1743
|
-
NonRefundableReason2["ZERO_PRICE"] = "ZERO_PRICE";
|
|
1744
|
-
NonRefundableReason2["DISABLED_BY_PROVIDER"] = "DISABLED_BY_PROVIDER";
|
|
1745
|
-
NonRefundableReason2["PENDING_REFUND"] = "PENDING_REFUND";
|
|
1746
|
-
NonRefundableReason2["FORBIDDEN"] = "FORBIDDEN";
|
|
1747
|
-
NonRefundableReason2["TRANSACTION_NOT_FOUND"] = "TRANSACTION_NOT_FOUND";
|
|
1748
|
-
NonRefundableReason2["ORDER_IS_PENDING"] = "ORDER_IS_PENDING";
|
|
1749
|
-
NonRefundableReason2["ORDER_IS_REJECTED"] = "ORDER_IS_REJECTED";
|
|
1750
|
-
return NonRefundableReason2;
|
|
1751
|
-
})(NonRefundableReason || {});
|
|
1752
|
-
var ManuallyRefundableReason = /* @__PURE__ */ ((ManuallyRefundableReason2) => {
|
|
1753
|
-
ManuallyRefundableReason2["EXPIRED"] = "EXPIRED";
|
|
1754
|
-
ManuallyRefundableReason2["NOT_SUPPORTED"] = "NOT_SUPPORTED";
|
|
1755
|
-
ManuallyRefundableReason2["OFFLINE"] = "OFFLINE";
|
|
1756
|
-
ManuallyRefundableReason2["REQUIRES_CARD_READER"] = "REQUIRES_CARD_READER";
|
|
1757
|
-
return ManuallyRefundableReason2;
|
|
1758
|
-
})(ManuallyRefundableReason || {});
|
|
1759
|
-
var RestockType = /* @__PURE__ */ ((RestockType2) => {
|
|
1760
|
-
RestockType2["NO_ITEMS"] = "NO_ITEMS";
|
|
1761
|
-
RestockType2["ALL_ITEMS"] = "ALL_ITEMS";
|
|
1762
|
-
RestockType2["SOME_ITEMS"] = "SOME_ITEMS";
|
|
1763
|
-
return RestockType2;
|
|
1764
|
-
})(RestockType || {});
|
|
1765
|
-
var TransactionStatus = /* @__PURE__ */ ((TransactionStatus2) => {
|
|
1766
|
-
TransactionStatus2["UNDEFINED"] = "UNDEFINED";
|
|
1767
|
-
TransactionStatus2["APPROVED"] = "APPROVED";
|
|
1768
|
-
TransactionStatus2["PENDING"] = "PENDING";
|
|
1769
|
-
TransactionStatus2["PENDING_MERCHANT"] = "PENDING_MERCHANT";
|
|
1770
|
-
TransactionStatus2["CANCELED"] = "CANCELED";
|
|
1771
|
-
TransactionStatus2["DECLINED"] = "DECLINED";
|
|
1772
|
-
TransactionStatus2["REFUNDED"] = "REFUNDED";
|
|
1773
|
-
TransactionStatus2["PARTIALLY_REFUNDED"] = "PARTIALLY_REFUNDED";
|
|
1774
|
-
TransactionStatus2["AUTHORIZED"] = "AUTHORIZED";
|
|
1775
|
-
TransactionStatus2["VOIDED"] = "VOIDED";
|
|
1776
|
-
return TransactionStatus2;
|
|
1777
|
-
})(TransactionStatus || {});
|
|
1778
|
-
var AuthorizationCaptureStatus = /* @__PURE__ */ ((AuthorizationCaptureStatus2) => {
|
|
1779
|
-
AuthorizationCaptureStatus2["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
|
|
1780
|
-
AuthorizationCaptureStatus2["PENDING"] = "PENDING";
|
|
1781
|
-
AuthorizationCaptureStatus2["SUCCEEDED"] = "SUCCEEDED";
|
|
1782
|
-
AuthorizationCaptureStatus2["FAILED"] = "FAILED";
|
|
1783
|
-
return AuthorizationCaptureStatus2;
|
|
1784
|
-
})(AuthorizationCaptureStatus || {});
|
|
1785
|
-
var AuthorizationVoidStatus = /* @__PURE__ */ ((AuthorizationVoidStatus2) => {
|
|
1786
|
-
AuthorizationVoidStatus2["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
|
|
1787
|
-
AuthorizationVoidStatus2["PENDING"] = "PENDING";
|
|
1788
|
-
AuthorizationVoidStatus2["SUCCEEDED"] = "SUCCEEDED";
|
|
1789
|
-
AuthorizationVoidStatus2["FAILED"] = "FAILED";
|
|
1790
|
-
return AuthorizationVoidStatus2;
|
|
1791
|
-
})(AuthorizationVoidStatus || {});
|
|
1792
|
-
var Reason = /* @__PURE__ */ ((Reason2) => {
|
|
1793
|
-
Reason2["UNKNOWN_REASON"] = "UNKNOWN_REASON";
|
|
1794
|
-
Reason2["MANUAL"] = "MANUAL";
|
|
1795
|
-
Reason2["SCHEDULED"] = "SCHEDULED";
|
|
1796
|
-
return Reason2;
|
|
1797
|
-
})(Reason || {});
|
|
1798
|
-
var ActionType = /* @__PURE__ */ ((ActionType2) => {
|
|
1799
|
-
ActionType2["UNKNOWN_ACTION_TYPE"] = "UNKNOWN_ACTION_TYPE";
|
|
1800
|
-
ActionType2["VOID"] = "VOID";
|
|
1801
|
-
ActionType2["CAPTURE"] = "CAPTURE";
|
|
1802
|
-
return ActionType2;
|
|
1803
|
-
})(ActionType || {});
|
|
1804
|
-
var ChargebackStatus = /* @__PURE__ */ ((ChargebackStatus2) => {
|
|
1805
|
-
ChargebackStatus2["UNSPECIFIED"] = "UNSPECIFIED";
|
|
1806
|
-
ChargebackStatus2["APPROVED"] = "APPROVED";
|
|
1807
|
-
ChargebackStatus2["REVERSED"] = "REVERSED";
|
|
1808
|
-
return ChargebackStatus2;
|
|
1809
|
-
})(ChargebackStatus || {});
|
|
1810
|
-
var MembershipPaymentStatus = /* @__PURE__ */ ((MembershipPaymentStatus2) => {
|
|
1811
|
-
MembershipPaymentStatus2["CHARGED"] = "CHARGED";
|
|
1812
|
-
MembershipPaymentStatus2["CHARGE_FAILED"] = "CHARGE_FAILED";
|
|
1813
|
-
return MembershipPaymentStatus2;
|
|
1814
|
-
})(MembershipPaymentStatus || {});
|
|
1815
|
-
var RefundStatus = /* @__PURE__ */ ((RefundStatus2) => {
|
|
1816
|
-
RefundStatus2["PENDING"] = "PENDING";
|
|
1817
|
-
RefundStatus2["SUCCEEDED"] = "SUCCEEDED";
|
|
1818
|
-
RefundStatus2["FAILED"] = "FAILED";
|
|
1819
|
-
RefundStatus2["SCHEDULED"] = "SCHEDULED";
|
|
1820
|
-
RefundStatus2["STARTED"] = "STARTED";
|
|
1821
|
-
return RefundStatus2;
|
|
1822
|
-
})(RefundStatus || {});
|
|
1823
|
-
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
1824
|
-
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
1825
|
-
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
1826
|
-
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
1827
|
-
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
1828
|
-
WebhookIdentityType2["APP"] = "APP";
|
|
1829
|
-
return WebhookIdentityType2;
|
|
1830
|
-
})(WebhookIdentityType || {});
|
|
1831
1267
|
var VersioningMode = /* @__PURE__ */ ((VersioningMode2) => {
|
|
1832
1268
|
VersioningMode2["DEFAULT"] = "DEFAULT";
|
|
1833
1269
|
VersioningMode2["GREATER_THAN"] = "GREATER_THAN";
|
|
1834
1270
|
VersioningMode2["GREATER_OR_EQUAL"] = "GREATER_OR_EQUAL";
|
|
1835
1271
|
return VersioningMode2;
|
|
1836
1272
|
})(VersioningMode || {});
|
|
1273
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
1274
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
1275
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
1276
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
1277
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
1278
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
1279
|
+
return WebhookIdentityType2;
|
|
1280
|
+
})(WebhookIdentityType || {});
|
|
1837
1281
|
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
1838
1282
|
SortOrder2["ASC"] = "ASC";
|
|
1839
1283
|
SortOrder2["DESC"] = "DESC";
|
|
@@ -1916,351 +1360,6 @@ var InvoiceStatus = /* @__PURE__ */ ((InvoiceStatus2) => {
|
|
|
1916
1360
|
InvoiceStatus2["PartialAndOverdue"] = "PartialAndOverdue";
|
|
1917
1361
|
return InvoiceStatus2;
|
|
1918
1362
|
})(InvoiceStatus || {});
|
|
1919
|
-
async function preparePaymentCollection2(ecomOrderId, amount, options) {
|
|
1920
|
-
const { httpClient, sideEffects } = arguments[3];
|
|
1921
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1922
|
-
ecomOrderId,
|
|
1923
|
-
amount,
|
|
1924
|
-
paymentGatewayOrderId: options?.paymentGatewayOrderId,
|
|
1925
|
-
delayedCapture: options?.delayedCapture,
|
|
1926
|
-
delayedCaptureSettings: options?.delayedCaptureSettings
|
|
1927
|
-
});
|
|
1928
|
-
const reqOpts = preparePaymentCollection(payload);
|
|
1929
|
-
sideEffects?.onSiteCall?.();
|
|
1930
|
-
try {
|
|
1931
|
-
const result = await httpClient.request(reqOpts);
|
|
1932
|
-
sideEffects?.onSuccess?.(result);
|
|
1933
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1934
|
-
} catch (err) {
|
|
1935
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
1936
|
-
err,
|
|
1937
|
-
{
|
|
1938
|
-
spreadPathsToArguments: {},
|
|
1939
|
-
explicitPathsToArguments: {
|
|
1940
|
-
ecomOrderId: "$[0]",
|
|
1941
|
-
amount: "$[1]",
|
|
1942
|
-
paymentGatewayOrderId: "$[2].paymentGatewayOrderId",
|
|
1943
|
-
delayedCapture: "$[2].delayedCapture",
|
|
1944
|
-
delayedCaptureSettings: "$[2].delayedCaptureSettings"
|
|
1945
|
-
},
|
|
1946
|
-
singleArgumentUnchanged: false
|
|
1947
|
-
},
|
|
1948
|
-
["ecomOrderId", "amount", "options"]
|
|
1949
|
-
);
|
|
1950
|
-
sideEffects?.onError?.(err);
|
|
1951
|
-
throw transformedError;
|
|
1952
|
-
}
|
|
1953
|
-
}
|
|
1954
|
-
async function getPaymentCollectabilityStatus2(ecomOrderId) {
|
|
1955
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1956
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1957
|
-
ecomOrderId
|
|
1958
|
-
});
|
|
1959
|
-
const reqOpts = getPaymentCollectabilityStatus(payload);
|
|
1960
|
-
sideEffects?.onSiteCall?.();
|
|
1961
|
-
try {
|
|
1962
|
-
const result = await httpClient.request(reqOpts);
|
|
1963
|
-
sideEffects?.onSuccess?.(result);
|
|
1964
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1965
|
-
} catch (err) {
|
|
1966
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
1967
|
-
err,
|
|
1968
|
-
{
|
|
1969
|
-
spreadPathsToArguments: {},
|
|
1970
|
-
explicitPathsToArguments: { ecomOrderId: "$[0]" },
|
|
1971
|
-
singleArgumentUnchanged: false
|
|
1972
|
-
},
|
|
1973
|
-
["ecomOrderId"]
|
|
1974
|
-
);
|
|
1975
|
-
sideEffects?.onError?.(err);
|
|
1976
|
-
throw transformedError;
|
|
1977
|
-
}
|
|
1978
|
-
}
|
|
1979
|
-
async function recordManuallyCollectedPayment2(orderId, amount) {
|
|
1980
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
1981
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1982
|
-
orderId,
|
|
1983
|
-
amount
|
|
1984
|
-
});
|
|
1985
|
-
const reqOpts = recordManuallyCollectedPayment(payload);
|
|
1986
|
-
sideEffects?.onSiteCall?.();
|
|
1987
|
-
try {
|
|
1988
|
-
const result = await httpClient.request(reqOpts);
|
|
1989
|
-
sideEffects?.onSuccess?.(result);
|
|
1990
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1991
|
-
} catch (err) {
|
|
1992
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
1993
|
-
err,
|
|
1994
|
-
{
|
|
1995
|
-
spreadPathsToArguments: {},
|
|
1996
|
-
explicitPathsToArguments: { orderId: "$[0]", amount: "$[1]" },
|
|
1997
|
-
singleArgumentUnchanged: false
|
|
1998
|
-
},
|
|
1999
|
-
["orderId", "amount"]
|
|
2000
|
-
);
|
|
2001
|
-
sideEffects?.onError?.(err);
|
|
2002
|
-
throw transformedError;
|
|
2003
|
-
}
|
|
2004
|
-
}
|
|
2005
|
-
async function paymentCollectionMarkOrderAsPaid2(ecomOrderId) {
|
|
2006
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
2007
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2008
|
-
ecomOrderId
|
|
2009
|
-
});
|
|
2010
|
-
const reqOpts = paymentCollectionMarkOrderAsPaid(payload);
|
|
2011
|
-
sideEffects?.onSiteCall?.();
|
|
2012
|
-
try {
|
|
2013
|
-
const result = await httpClient.request(reqOpts);
|
|
2014
|
-
sideEffects?.onSuccess?.(result);
|
|
2015
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
2016
|
-
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
2017
|
-
{
|
|
2018
|
-
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
2019
|
-
paths: [{ path: "order.lineItems.image" }]
|
|
2020
|
-
},
|
|
2021
|
-
{
|
|
2022
|
-
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
2023
|
-
paths: [
|
|
2024
|
-
{ path: "order.billingInfo.address" },
|
|
2025
|
-
{
|
|
2026
|
-
path: "order.shippingInfo.logistics.shippingDestination.address"
|
|
2027
|
-
},
|
|
2028
|
-
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
2029
|
-
{ path: "order.recipientInfo.address" }
|
|
2030
|
-
]
|
|
2031
|
-
}
|
|
2032
|
-
])
|
|
2033
|
-
);
|
|
2034
|
-
} catch (err) {
|
|
2035
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
2036
|
-
err,
|
|
2037
|
-
{
|
|
2038
|
-
spreadPathsToArguments: {},
|
|
2039
|
-
explicitPathsToArguments: { ecomOrderId: "$[0]" },
|
|
2040
|
-
singleArgumentUnchanged: false
|
|
2041
|
-
},
|
|
2042
|
-
["ecomOrderId"]
|
|
2043
|
-
);
|
|
2044
|
-
sideEffects?.onError?.(err);
|
|
2045
|
-
throw transformedError;
|
|
2046
|
-
}
|
|
2047
|
-
}
|
|
2048
|
-
async function paymentCollectionBulkMarkOrdersAsPaid2(ecomOrderIds) {
|
|
2049
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
2050
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2051
|
-
ecomOrderIds
|
|
2052
|
-
});
|
|
2053
|
-
const reqOpts = paymentCollectionBulkMarkOrdersAsPaid(payload);
|
|
2054
|
-
sideEffects?.onSiteCall?.();
|
|
2055
|
-
try {
|
|
2056
|
-
const result = await httpClient.request(reqOpts);
|
|
2057
|
-
sideEffects?.onSuccess?.(result);
|
|
2058
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
2059
|
-
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
2060
|
-
{
|
|
2061
|
-
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
2062
|
-
paths: [{ path: "results.item.lineItems.image" }]
|
|
2063
|
-
},
|
|
2064
|
-
{
|
|
2065
|
-
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
2066
|
-
paths: [
|
|
2067
|
-
{ path: "results.item.billingInfo.address" },
|
|
2068
|
-
{
|
|
2069
|
-
path: "results.item.shippingInfo.logistics.shippingDestination.address"
|
|
2070
|
-
},
|
|
2071
|
-
{
|
|
2072
|
-
path: "results.item.shippingInfo.logistics.pickupDetails.address"
|
|
2073
|
-
},
|
|
2074
|
-
{ path: "results.item.recipientInfo.address" }
|
|
2075
|
-
]
|
|
2076
|
-
}
|
|
2077
|
-
])
|
|
2078
|
-
);
|
|
2079
|
-
} catch (err) {
|
|
2080
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
2081
|
-
err,
|
|
2082
|
-
{
|
|
2083
|
-
spreadPathsToArguments: {},
|
|
2084
|
-
explicitPathsToArguments: { ecomOrderIds: "$[0]" },
|
|
2085
|
-
singleArgumentUnchanged: false
|
|
2086
|
-
},
|
|
2087
|
-
["ecomOrderIds"]
|
|
2088
|
-
);
|
|
2089
|
-
sideEffects?.onError?.(err);
|
|
2090
|
-
throw transformedError;
|
|
2091
|
-
}
|
|
2092
|
-
}
|
|
2093
|
-
async function getRefundabilityStatus2(ecomOrderId) {
|
|
2094
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
2095
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2096
|
-
ecomOrderId
|
|
2097
|
-
});
|
|
2098
|
-
const reqOpts = getRefundabilityStatus(payload);
|
|
2099
|
-
sideEffects?.onSiteCall?.();
|
|
2100
|
-
try {
|
|
2101
|
-
const result = await httpClient.request(reqOpts);
|
|
2102
|
-
sideEffects?.onSuccess?.(result);
|
|
2103
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2104
|
-
} catch (err) {
|
|
2105
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
2106
|
-
err,
|
|
2107
|
-
{
|
|
2108
|
-
spreadPathsToArguments: {},
|
|
2109
|
-
explicitPathsToArguments: { ecomOrderId: "$[0]" },
|
|
2110
|
-
singleArgumentUnchanged: false
|
|
2111
|
-
},
|
|
2112
|
-
["ecomOrderId"]
|
|
2113
|
-
);
|
|
2114
|
-
sideEffects?.onError?.(err);
|
|
2115
|
-
throw transformedError;
|
|
2116
|
-
}
|
|
2117
|
-
}
|
|
2118
|
-
async function paymentCollectionCreatePaymentGatewayOrder2(ecomOrderId, options) {
|
|
2119
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
2120
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2121
|
-
ecomOrderId,
|
|
2122
|
-
chargedBy: options?.chargedBy
|
|
2123
|
-
});
|
|
2124
|
-
const reqOpts = paymentCollectionCreatePaymentGatewayOrder(
|
|
2125
|
-
payload
|
|
2126
|
-
);
|
|
2127
|
-
sideEffects?.onSiteCall?.();
|
|
2128
|
-
try {
|
|
2129
|
-
const result = await httpClient.request(reqOpts);
|
|
2130
|
-
sideEffects?.onSuccess?.(result);
|
|
2131
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2132
|
-
} catch (err) {
|
|
2133
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
2134
|
-
err,
|
|
2135
|
-
{
|
|
2136
|
-
spreadPathsToArguments: {},
|
|
2137
|
-
explicitPathsToArguments: {
|
|
2138
|
-
ecomOrderId: "$[0]",
|
|
2139
|
-
chargedBy: "$[1].chargedBy"
|
|
2140
|
-
},
|
|
2141
|
-
singleArgumentUnchanged: false
|
|
2142
|
-
},
|
|
2143
|
-
["ecomOrderId", "options"]
|
|
2144
|
-
);
|
|
2145
|
-
sideEffects?.onError?.(err);
|
|
2146
|
-
throw transformedError;
|
|
2147
|
-
}
|
|
2148
|
-
}
|
|
2149
|
-
async function chargeMemberships2(ecomOrderId, memberId, options) {
|
|
2150
|
-
const { httpClient, sideEffects } = arguments[3];
|
|
2151
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2152
|
-
ecomOrderId,
|
|
2153
|
-
memberId,
|
|
2154
|
-
membershipCharges: options?.membershipCharges
|
|
2155
|
-
});
|
|
2156
|
-
const reqOpts = chargeMemberships(payload);
|
|
2157
|
-
sideEffects?.onSiteCall?.();
|
|
2158
|
-
try {
|
|
2159
|
-
const result = await httpClient.request(reqOpts);
|
|
2160
|
-
sideEffects?.onSuccess?.(result);
|
|
2161
|
-
} catch (err) {
|
|
2162
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
2163
|
-
err,
|
|
2164
|
-
{
|
|
2165
|
-
spreadPathsToArguments: {},
|
|
2166
|
-
explicitPathsToArguments: {
|
|
2167
|
-
ecomOrderId: "$[0]",
|
|
2168
|
-
memberId: "$[1]",
|
|
2169
|
-
membershipCharges: "$[2].membershipCharges"
|
|
2170
|
-
},
|
|
2171
|
-
singleArgumentUnchanged: false
|
|
2172
|
-
},
|
|
2173
|
-
["ecomOrderId", "memberId", "options"]
|
|
2174
|
-
);
|
|
2175
|
-
sideEffects?.onError?.(err);
|
|
2176
|
-
throw transformedError;
|
|
2177
|
-
}
|
|
2178
|
-
}
|
|
2179
|
-
async function triggerRefund2(ecomOrderId, payments, options) {
|
|
2180
|
-
const { httpClient, sideEffects } = arguments[3];
|
|
2181
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2182
|
-
ecomOrderId,
|
|
2183
|
-
payments,
|
|
2184
|
-
details: options?.details,
|
|
2185
|
-
sideEffects: options?.sideEffects
|
|
2186
|
-
});
|
|
2187
|
-
const reqOpts = triggerRefund(payload);
|
|
2188
|
-
sideEffects?.onSiteCall?.();
|
|
2189
|
-
try {
|
|
2190
|
-
const result = await httpClient.request(reqOpts);
|
|
2191
|
-
sideEffects?.onSuccess?.(result);
|
|
2192
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2193
|
-
} catch (err) {
|
|
2194
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
2195
|
-
err,
|
|
2196
|
-
{
|
|
2197
|
-
spreadPathsToArguments: {},
|
|
2198
|
-
explicitPathsToArguments: {
|
|
2199
|
-
ecomOrderId: "$[0]",
|
|
2200
|
-
payments: "$[1]",
|
|
2201
|
-
details: "$[2].details",
|
|
2202
|
-
sideEffects: "$[2].sideEffects"
|
|
2203
|
-
},
|
|
2204
|
-
singleArgumentUnchanged: false
|
|
2205
|
-
},
|
|
2206
|
-
["ecomOrderId", "payments", "options"]
|
|
2207
|
-
);
|
|
2208
|
-
sideEffects?.onError?.(err);
|
|
2209
|
-
throw transformedError;
|
|
2210
|
-
}
|
|
2211
|
-
}
|
|
2212
|
-
async function voidAuthorizedPayments2(ecomOrderId, paymentIds) {
|
|
2213
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
2214
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2215
|
-
ecomOrderId,
|
|
2216
|
-
paymentIds
|
|
2217
|
-
});
|
|
2218
|
-
const reqOpts = voidAuthorizedPayments(payload);
|
|
2219
|
-
sideEffects?.onSiteCall?.();
|
|
2220
|
-
try {
|
|
2221
|
-
const result = await httpClient.request(reqOpts);
|
|
2222
|
-
sideEffects?.onSuccess?.(result);
|
|
2223
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2224
|
-
} catch (err) {
|
|
2225
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
2226
|
-
err,
|
|
2227
|
-
{
|
|
2228
|
-
spreadPathsToArguments: {},
|
|
2229
|
-
explicitPathsToArguments: { ecomOrderId: "$[0]", paymentIds: "$[1]" },
|
|
2230
|
-
singleArgumentUnchanged: false
|
|
2231
|
-
},
|
|
2232
|
-
["ecomOrderId", "paymentIds"]
|
|
2233
|
-
);
|
|
2234
|
-
sideEffects?.onError?.(err);
|
|
2235
|
-
throw transformedError;
|
|
2236
|
-
}
|
|
2237
|
-
}
|
|
2238
|
-
async function captureAuthorizedPayments2(ecomOrderId, payments) {
|
|
2239
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
2240
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2241
|
-
ecomOrderId,
|
|
2242
|
-
payments
|
|
2243
|
-
});
|
|
2244
|
-
const reqOpts = captureAuthorizedPayments(payload);
|
|
2245
|
-
sideEffects?.onSiteCall?.();
|
|
2246
|
-
try {
|
|
2247
|
-
const result = await httpClient.request(reqOpts);
|
|
2248
|
-
sideEffects?.onSuccess?.(result);
|
|
2249
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2250
|
-
} catch (err) {
|
|
2251
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
2252
|
-
err,
|
|
2253
|
-
{
|
|
2254
|
-
spreadPathsToArguments: {},
|
|
2255
|
-
explicitPathsToArguments: { ecomOrderId: "$[0]", payments: "$[1]" },
|
|
2256
|
-
singleArgumentUnchanged: false
|
|
2257
|
-
},
|
|
2258
|
-
["ecomOrderId", "payments"]
|
|
2259
|
-
);
|
|
2260
|
-
sideEffects?.onError?.(err);
|
|
2261
|
-
throw transformedError;
|
|
2262
|
-
}
|
|
2263
|
-
}
|
|
2264
1363
|
async function getOrder2(_id) {
|
|
2265
1364
|
const { httpClient, sideEffects } = arguments[1];
|
|
2266
1365
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ id: _id });
|
|
@@ -2958,48 +2057,33 @@ async function bulkUpdateOrderTags2(orderIds, options) {
|
|
|
2958
2057
|
}
|
|
2959
2058
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2960
2059
|
0 && (module.exports = {
|
|
2961
|
-
ActionType,
|
|
2962
2060
|
ActivityType,
|
|
2963
2061
|
AdjustmentType,
|
|
2964
2062
|
AttributionSource,
|
|
2965
|
-
AuthorizationCaptureStatus,
|
|
2966
|
-
AuthorizationVoidStatus,
|
|
2967
2063
|
ChannelType,
|
|
2968
|
-
ChargebackStatus,
|
|
2969
2064
|
CustomFieldGroup,
|
|
2970
2065
|
DeltaPaymentOptionType,
|
|
2971
2066
|
DepositType,
|
|
2972
2067
|
DescriptionLineType,
|
|
2973
2068
|
DiscountReason,
|
|
2974
2069
|
DiscountType,
|
|
2975
|
-
DurationUnit,
|
|
2976
2070
|
FulfillmentStatus,
|
|
2977
2071
|
InventoryAction,
|
|
2978
2072
|
InvoiceStatus,
|
|
2979
2073
|
ItemTypeItemType,
|
|
2980
2074
|
JurisdictionType,
|
|
2981
2075
|
LineItemQuantityChangeType,
|
|
2982
|
-
ManuallyRefundableReason,
|
|
2983
|
-
MembershipPaymentStatus,
|
|
2984
|
-
NonRefundableReason,
|
|
2985
2076
|
OrderApprovalStrategy,
|
|
2986
2077
|
OrderStatus,
|
|
2987
|
-
PaymentCollectabilityStatus,
|
|
2988
2078
|
PaymentOptionType,
|
|
2989
2079
|
PaymentStatus,
|
|
2990
2080
|
PickupMethod,
|
|
2991
2081
|
Placement,
|
|
2992
|
-
Reason,
|
|
2993
|
-
RefundStatus,
|
|
2994
|
-
RefundableStatus,
|
|
2995
|
-
RestockType,
|
|
2996
|
-
ScheduledAction,
|
|
2997
2082
|
SortOrder,
|
|
2998
2083
|
SourceType,
|
|
2999
2084
|
SubdivisionType,
|
|
3000
2085
|
SubscriptionFrequency,
|
|
3001
2086
|
TaxableAddressType,
|
|
3002
|
-
TransactionStatus,
|
|
3003
2087
|
ValueType,
|
|
3004
2088
|
VatType,
|
|
3005
2089
|
VersioningMode,
|
|
@@ -3010,25 +2094,14 @@ async function bulkUpdateOrderTags2(orderIds, options) {
|
|
|
3010
2094
|
bulkUpdateOrderTags,
|
|
3011
2095
|
bulkUpdateOrders,
|
|
3012
2096
|
cancelOrder,
|
|
3013
|
-
captureAuthorizedPayments,
|
|
3014
|
-
chargeMemberships,
|
|
3015
2097
|
commitDeltas,
|
|
3016
2098
|
createOrder,
|
|
3017
2099
|
deleteActivity,
|
|
3018
2100
|
getOrder,
|
|
3019
|
-
getPaymentCollectabilityStatus,
|
|
3020
|
-
getRefundabilityStatus,
|
|
3021
|
-
paymentCollectionBulkMarkOrdersAsPaid,
|
|
3022
|
-
paymentCollectionCreatePaymentGatewayOrder,
|
|
3023
|
-
paymentCollectionMarkOrderAsPaid,
|
|
3024
|
-
preparePaymentCollection,
|
|
3025
|
-
recordManuallyCollectedPayment,
|
|
3026
2101
|
searchOrders,
|
|
3027
|
-
triggerRefund,
|
|
3028
2102
|
updateActivity,
|
|
3029
2103
|
updateOrder,
|
|
3030
2104
|
updateOrderLineItem,
|
|
3031
|
-
updateOrderStatus
|
|
3032
|
-
voidAuthorizedPayments
|
|
2105
|
+
updateOrderStatus
|
|
3033
2106
|
});
|
|
3034
2107
|
//# sourceMappingURL=index.typings.js.map
|