@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.ts
|
|
21
21
|
var index_exports = {};
|
|
22
22
|
__export(index_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,31 +57,20 @@ __export(index_exports, {
|
|
|
72
57
|
bulkUpdateOrderTags: () => bulkUpdateOrderTags4,
|
|
73
58
|
bulkUpdateOrders: () => bulkUpdateOrders4,
|
|
74
59
|
cancelOrder: () => cancelOrder4,
|
|
75
|
-
captureAuthorizedPayments: () => captureAuthorizedPayments4,
|
|
76
|
-
chargeMemberships: () => chargeMemberships4,
|
|
77
60
|
commitDeltas: () => commitDeltas4,
|
|
78
61
|
createOrder: () => createOrder4,
|
|
79
62
|
deleteActivity: () => deleteActivity4,
|
|
80
63
|
getOrder: () => getOrder4,
|
|
81
|
-
getPaymentCollectabilityStatus: () => getPaymentCollectabilityStatus4,
|
|
82
|
-
getRefundabilityStatus: () => getRefundabilityStatus4,
|
|
83
64
|
onOrderApproved: () => onOrderApproved2,
|
|
84
65
|
onOrderCanceled: () => onOrderCanceled2,
|
|
85
66
|
onOrderCreated: () => onOrderCreated2,
|
|
86
67
|
onOrderPaymentStatusUpdated: () => onOrderPaymentStatusUpdated2,
|
|
87
68
|
onOrderUpdated: () => onOrderUpdated2,
|
|
88
|
-
paymentCollectionBulkMarkOrdersAsPaid: () => paymentCollectionBulkMarkOrdersAsPaid4,
|
|
89
|
-
paymentCollectionCreatePaymentGatewayOrder: () => paymentCollectionCreatePaymentGatewayOrder4,
|
|
90
|
-
paymentCollectionMarkOrderAsPaid: () => paymentCollectionMarkOrderAsPaid4,
|
|
91
|
-
preparePaymentCollection: () => preparePaymentCollection4,
|
|
92
|
-
recordManuallyCollectedPayment: () => recordManuallyCollectedPayment4,
|
|
93
69
|
searchOrders: () => searchOrders4,
|
|
94
|
-
triggerRefund: () => triggerRefund4,
|
|
95
70
|
updateActivity: () => updateActivity4,
|
|
96
71
|
updateOrder: () => updateOrder4,
|
|
97
72
|
updateOrderLineItem: () => updateOrderLineItem4,
|
|
98
|
-
updateOrderStatus: () => updateOrderStatus4
|
|
99
|
-
voidAuthorizedPayments: () => voidAuthorizedPayments4
|
|
73
|
+
updateOrderStatus: () => updateOrderStatus4
|
|
100
74
|
});
|
|
101
75
|
module.exports = __toCommonJS(index_exports);
|
|
102
76
|
|
|
@@ -153,109 +127,20 @@ function resolveComWixEcomOrdersV1OrdersUrl(opts) {
|
|
|
153
127
|
};
|
|
154
128
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
155
129
|
}
|
|
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
|
-
};
|
|
189
|
-
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
190
|
-
}
|
|
191
130
|
var PACKAGE_NAME = "@wix/auto_sdk_ecom_orders";
|
|
192
|
-
function
|
|
193
|
-
function
|
|
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 }) {
|
|
131
|
+
function getOrder(payload) {
|
|
132
|
+
function __getOrder({ host }) {
|
|
212
133
|
const metadata = {
|
|
213
134
|
entityFqdn: "wix.ecom.v1.order",
|
|
214
135
|
method: "GET",
|
|
215
|
-
methodFqn: "com.wix.ecom.orders.
|
|
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",
|
|
136
|
+
methodFqn: "com.wix.ecom.orders.v1.Orders.GetOrder",
|
|
252
137
|
packageName: PACKAGE_NAME,
|
|
253
|
-
url:
|
|
254
|
-
protoPath: "/v1/
|
|
138
|
+
url: resolveComWixEcomOrdersV1OrdersUrl({
|
|
139
|
+
protoPath: "/v1/orders/{id}",
|
|
255
140
|
data: payload,
|
|
256
141
|
host
|
|
257
142
|
}),
|
|
258
|
-
|
|
143
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
259
144
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
260
145
|
{
|
|
261
146
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
@@ -302,17 +187,17 @@ function paymentCollectionMarkOrderAsPaid(payload) {
|
|
|
302
187
|
};
|
|
303
188
|
return metadata;
|
|
304
189
|
}
|
|
305
|
-
return
|
|
190
|
+
return __getOrder;
|
|
306
191
|
}
|
|
307
|
-
function
|
|
308
|
-
function
|
|
192
|
+
function searchOrders(payload) {
|
|
193
|
+
function __searchOrders({ host }) {
|
|
309
194
|
const metadata = {
|
|
310
195
|
entityFqdn: "wix.ecom.v1.order",
|
|
311
196
|
method: "POST",
|
|
312
|
-
methodFqn: "com.wix.ecom.orders.
|
|
197
|
+
methodFqn: "com.wix.ecom.orders.v1.Orders.SearchOrders",
|
|
313
198
|
packageName: PACKAGE_NAME,
|
|
314
|
-
url:
|
|
315
|
-
protoPath: "/v1/
|
|
199
|
+
url: resolveComWixEcomOrdersV1OrdersUrl({
|
|
200
|
+
protoPath: "/v1/orders/search",
|
|
316
201
|
data: payload,
|
|
317
202
|
host
|
|
318
203
|
}),
|
|
@@ -321,477 +206,153 @@ function paymentCollectionBulkMarkOrdersAsPaid(payload) {
|
|
|
321
206
|
{
|
|
322
207
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
323
208
|
paths: [
|
|
324
|
-
{ path: "
|
|
325
|
-
{ path: "
|
|
326
|
-
{ path: "
|
|
327
|
-
{ path: "
|
|
328
|
-
{ path: "
|
|
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
|
-
},
|
|
209
|
+
{ path: "orders.createdDate" },
|
|
210
|
+
{ path: "orders.updatedDate" },
|
|
211
|
+
{ path: "orders.purchasedDate" },
|
|
212
|
+
{ path: "orders.lineItems.image.urlExpirationDate" },
|
|
213
|
+
{ path: "orders.lineItems.digitalFile.expirationDate" },
|
|
336
214
|
{
|
|
337
|
-
path: "
|
|
215
|
+
path: "orders.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
338
216
|
},
|
|
339
|
-
{ path: "
|
|
217
|
+
{ path: "orders.shippingInfo.logistics.deliverByDate" },
|
|
218
|
+
{ path: "orders.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
219
|
+
{ path: "orders.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
220
|
+
{ path: "orders.activities.createdDate" }
|
|
340
221
|
]
|
|
341
222
|
},
|
|
342
223
|
{
|
|
343
224
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
344
225
|
paths: [
|
|
345
|
-
{ path: "
|
|
346
|
-
{ path: "
|
|
347
|
-
{ path: "
|
|
348
|
-
{ path: "
|
|
349
|
-
{ path: "
|
|
226
|
+
{ path: "orders.lineItems.image.focalPoint.x" },
|
|
227
|
+
{ path: "orders.lineItems.image.focalPoint.y" },
|
|
228
|
+
{ path: "orders.lineItems.physicalProperties.weight" },
|
|
229
|
+
{ path: "orders.billingInfo.address.geocode.latitude" },
|
|
230
|
+
{ path: "orders.billingInfo.address.geocode.longitude" },
|
|
350
231
|
{
|
|
351
|
-
path: "
|
|
232
|
+
path: "orders.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
352
233
|
},
|
|
353
234
|
{
|
|
354
|
-
path: "
|
|
235
|
+
path: "orders.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
355
236
|
},
|
|
356
237
|
{
|
|
357
|
-
path: "
|
|
238
|
+
path: "orders.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
358
239
|
},
|
|
359
240
|
{
|
|
360
|
-
path: "
|
|
241
|
+
path: "orders.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
361
242
|
},
|
|
362
|
-
{ path: "
|
|
363
|
-
{ path: "
|
|
243
|
+
{ path: "orders.recipientInfo.address.geocode.latitude" },
|
|
244
|
+
{ path: "orders.recipientInfo.address.geocode.longitude" }
|
|
364
245
|
]
|
|
365
246
|
}
|
|
366
247
|
])
|
|
367
248
|
};
|
|
368
249
|
return metadata;
|
|
369
250
|
}
|
|
370
|
-
return
|
|
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;
|
|
251
|
+
return __searchOrders;
|
|
407
252
|
}
|
|
408
|
-
function
|
|
409
|
-
function
|
|
253
|
+
function createOrder(payload) {
|
|
254
|
+
function __createOrder({ host }) {
|
|
410
255
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
411
256
|
{
|
|
412
257
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
413
|
-
paths: [
|
|
258
|
+
paths: [
|
|
259
|
+
{ path: "order.createdDate" },
|
|
260
|
+
{ path: "order.updatedDate" },
|
|
261
|
+
{ path: "order.purchasedDate" },
|
|
262
|
+
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
263
|
+
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
264
|
+
{
|
|
265
|
+
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
266
|
+
},
|
|
267
|
+
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
268
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
269
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
270
|
+
{ path: "order.activities.createdDate" }
|
|
271
|
+
]
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
275
|
+
paths: [
|
|
276
|
+
{ path: "order.lineItems.image.focalPoint.x" },
|
|
277
|
+
{ path: "order.lineItems.image.focalPoint.y" },
|
|
278
|
+
{ path: "order.lineItems.physicalProperties.weight" },
|
|
279
|
+
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
280
|
+
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
281
|
+
{
|
|
282
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
292
|
+
},
|
|
293
|
+
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
294
|
+
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
295
|
+
]
|
|
414
296
|
}
|
|
415
297
|
]);
|
|
416
298
|
const metadata = {
|
|
417
299
|
entityFqdn: "wix.ecom.v1.order",
|
|
418
300
|
method: "POST",
|
|
419
|
-
methodFqn: "com.wix.ecom.orders.
|
|
301
|
+
methodFqn: "com.wix.ecom.orders.v1.Orders.CreateOrder",
|
|
420
302
|
packageName: PACKAGE_NAME,
|
|
421
|
-
url:
|
|
422
|
-
protoPath: "/v1/
|
|
303
|
+
url: resolveComWixEcomOrdersV1OrdersUrl({
|
|
304
|
+
protoPath: "/v1/orders",
|
|
423
305
|
data: serializedData,
|
|
424
306
|
host
|
|
425
307
|
}),
|
|
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,
|
|
308
|
+
data: serializedData,
|
|
445
309
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
446
310
|
{
|
|
447
311
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
448
312
|
paths: [
|
|
449
|
-
{ path: "
|
|
450
|
-
{ path: "
|
|
451
|
-
{
|
|
452
|
-
|
|
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
|
-
},
|
|
313
|
+
{ path: "order.createdDate" },
|
|
314
|
+
{ path: "order.updatedDate" },
|
|
315
|
+
{ path: "order.purchasedDate" },
|
|
316
|
+
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
317
|
+
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
466
318
|
{
|
|
467
|
-
path: "
|
|
319
|
+
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
468
320
|
},
|
|
469
|
-
{ path: "
|
|
321
|
+
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
322
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
323
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
324
|
+
{ path: "order.activities.createdDate" }
|
|
470
325
|
]
|
|
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, [
|
|
326
|
+
},
|
|
492
327
|
{
|
|
493
|
-
transformFn:
|
|
328
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
494
329
|
paths: [
|
|
495
|
-
{ path: "
|
|
496
|
-
{ path: "
|
|
497
|
-
{
|
|
498
|
-
|
|
499
|
-
},
|
|
500
|
-
{
|
|
501
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
502
|
-
},
|
|
330
|
+
{ path: "order.lineItems.image.focalPoint.x" },
|
|
331
|
+
{ path: "order.lineItems.image.focalPoint.y" },
|
|
332
|
+
{ path: "order.lineItems.physicalProperties.weight" },
|
|
333
|
+
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
334
|
+
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
503
335
|
{
|
|
504
|
-
path: "
|
|
336
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
505
337
|
},
|
|
506
338
|
{
|
|
507
|
-
path: "
|
|
339
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
508
340
|
},
|
|
509
341
|
{
|
|
510
|
-
path: "
|
|
342
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
511
343
|
},
|
|
512
344
|
{
|
|
513
|
-
path: "
|
|
345
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
514
346
|
},
|
|
515
|
-
{ path: "
|
|
347
|
+
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
348
|
+
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
516
349
|
]
|
|
517
350
|
}
|
|
518
351
|
])
|
|
519
352
|
};
|
|
520
353
|
return metadata;
|
|
521
354
|
}
|
|
522
|
-
return
|
|
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
|
-
}
|
|
570
|
-
function getOrder(payload) {
|
|
571
|
-
function __getOrder({ host }) {
|
|
572
|
-
const metadata = {
|
|
573
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
574
|
-
method: "GET",
|
|
575
|
-
methodFqn: "com.wix.ecom.orders.v1.Orders.GetOrder",
|
|
576
|
-
packageName: PACKAGE_NAME,
|
|
577
|
-
url: resolveComWixEcomOrdersV1OrdersUrl({
|
|
578
|
-
protoPath: "/v1/orders/{id}",
|
|
579
|
-
data: payload,
|
|
580
|
-
host
|
|
581
|
-
}),
|
|
582
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
583
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
584
|
-
{
|
|
585
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
586
|
-
paths: [
|
|
587
|
-
{ path: "order.createdDate" },
|
|
588
|
-
{ path: "order.updatedDate" },
|
|
589
|
-
{ path: "order.purchasedDate" },
|
|
590
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
591
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
592
|
-
{
|
|
593
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
594
|
-
},
|
|
595
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
596
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
597
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
598
|
-
{ path: "order.activities.createdDate" }
|
|
599
|
-
]
|
|
600
|
-
},
|
|
601
|
-
{
|
|
602
|
-
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
603
|
-
paths: [
|
|
604
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
605
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
606
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
607
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
608
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
609
|
-
{
|
|
610
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
611
|
-
},
|
|
612
|
-
{
|
|
613
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
614
|
-
},
|
|
615
|
-
{
|
|
616
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
617
|
-
},
|
|
618
|
-
{
|
|
619
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
620
|
-
},
|
|
621
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
622
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
623
|
-
]
|
|
624
|
-
}
|
|
625
|
-
])
|
|
626
|
-
};
|
|
627
|
-
return metadata;
|
|
628
|
-
}
|
|
629
|
-
return __getOrder;
|
|
630
|
-
}
|
|
631
|
-
function searchOrders(payload) {
|
|
632
|
-
function __searchOrders({ host }) {
|
|
633
|
-
const metadata = {
|
|
634
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
635
|
-
method: "POST",
|
|
636
|
-
methodFqn: "com.wix.ecom.orders.v1.Orders.SearchOrders",
|
|
637
|
-
packageName: PACKAGE_NAME,
|
|
638
|
-
url: resolveComWixEcomOrdersV1OrdersUrl({
|
|
639
|
-
protoPath: "/v1/orders/search",
|
|
640
|
-
data: payload,
|
|
641
|
-
host
|
|
642
|
-
}),
|
|
643
|
-
data: payload,
|
|
644
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
645
|
-
{
|
|
646
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
647
|
-
paths: [
|
|
648
|
-
{ path: "orders.createdDate" },
|
|
649
|
-
{ path: "orders.updatedDate" },
|
|
650
|
-
{ path: "orders.purchasedDate" },
|
|
651
|
-
{ path: "orders.lineItems.image.urlExpirationDate" },
|
|
652
|
-
{ path: "orders.lineItems.digitalFile.expirationDate" },
|
|
653
|
-
{
|
|
654
|
-
path: "orders.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
655
|
-
},
|
|
656
|
-
{ path: "orders.shippingInfo.logistics.deliverByDate" },
|
|
657
|
-
{ path: "orders.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
658
|
-
{ path: "orders.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
659
|
-
{ path: "orders.activities.createdDate" }
|
|
660
|
-
]
|
|
661
|
-
},
|
|
662
|
-
{
|
|
663
|
-
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
664
|
-
paths: [
|
|
665
|
-
{ path: "orders.lineItems.image.focalPoint.x" },
|
|
666
|
-
{ path: "orders.lineItems.image.focalPoint.y" },
|
|
667
|
-
{ path: "orders.lineItems.physicalProperties.weight" },
|
|
668
|
-
{ path: "orders.billingInfo.address.geocode.latitude" },
|
|
669
|
-
{ path: "orders.billingInfo.address.geocode.longitude" },
|
|
670
|
-
{
|
|
671
|
-
path: "orders.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
672
|
-
},
|
|
673
|
-
{
|
|
674
|
-
path: "orders.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
675
|
-
},
|
|
676
|
-
{
|
|
677
|
-
path: "orders.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
678
|
-
},
|
|
679
|
-
{
|
|
680
|
-
path: "orders.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
681
|
-
},
|
|
682
|
-
{ path: "orders.recipientInfo.address.geocode.latitude" },
|
|
683
|
-
{ path: "orders.recipientInfo.address.geocode.longitude" }
|
|
684
|
-
]
|
|
685
|
-
}
|
|
686
|
-
])
|
|
687
|
-
};
|
|
688
|
-
return metadata;
|
|
689
|
-
}
|
|
690
|
-
return __searchOrders;
|
|
691
|
-
}
|
|
692
|
-
function createOrder(payload) {
|
|
693
|
-
function __createOrder({ host }) {
|
|
694
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
695
|
-
{
|
|
696
|
-
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
697
|
-
paths: [
|
|
698
|
-
{ path: "order.createdDate" },
|
|
699
|
-
{ path: "order.updatedDate" },
|
|
700
|
-
{ path: "order.purchasedDate" },
|
|
701
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
702
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
703
|
-
{
|
|
704
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
705
|
-
},
|
|
706
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
707
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
708
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
709
|
-
{ path: "order.activities.createdDate" }
|
|
710
|
-
]
|
|
711
|
-
},
|
|
712
|
-
{
|
|
713
|
-
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
714
|
-
paths: [
|
|
715
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
716
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
717
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
718
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
719
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
720
|
-
{
|
|
721
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
722
|
-
},
|
|
723
|
-
{
|
|
724
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
725
|
-
},
|
|
726
|
-
{
|
|
727
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
728
|
-
},
|
|
729
|
-
{
|
|
730
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
731
|
-
},
|
|
732
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
733
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
734
|
-
]
|
|
735
|
-
}
|
|
736
|
-
]);
|
|
737
|
-
const metadata = {
|
|
738
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
739
|
-
method: "POST",
|
|
740
|
-
methodFqn: "com.wix.ecom.orders.v1.Orders.CreateOrder",
|
|
741
|
-
packageName: PACKAGE_NAME,
|
|
742
|
-
url: resolveComWixEcomOrdersV1OrdersUrl({
|
|
743
|
-
protoPath: "/v1/orders",
|
|
744
|
-
data: serializedData,
|
|
745
|
-
host
|
|
746
|
-
}),
|
|
747
|
-
data: serializedData,
|
|
748
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
749
|
-
{
|
|
750
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
751
|
-
paths: [
|
|
752
|
-
{ path: "order.createdDate" },
|
|
753
|
-
{ path: "order.updatedDate" },
|
|
754
|
-
{ path: "order.purchasedDate" },
|
|
755
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
756
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
757
|
-
{
|
|
758
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
759
|
-
},
|
|
760
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
761
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
762
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
763
|
-
{ path: "order.activities.createdDate" }
|
|
764
|
-
]
|
|
765
|
-
},
|
|
766
|
-
{
|
|
767
|
-
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
768
|
-
paths: [
|
|
769
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
770
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
771
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
772
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
773
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
774
|
-
{
|
|
775
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
776
|
-
},
|
|
777
|
-
{
|
|
778
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
779
|
-
},
|
|
780
|
-
{
|
|
781
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
782
|
-
},
|
|
783
|
-
{
|
|
784
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
785
|
-
},
|
|
786
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
787
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
788
|
-
]
|
|
789
|
-
}
|
|
790
|
-
])
|
|
791
|
-
};
|
|
792
|
-
return metadata;
|
|
793
|
-
}
|
|
794
|
-
return __createOrder;
|
|
355
|
+
return __createOrder;
|
|
795
356
|
}
|
|
796
357
|
function updateOrder(payload) {
|
|
797
358
|
function __updateOrder({ host }) {
|
|
@@ -1606,675 +1167,213 @@ var PaymentStatus = /* @__PURE__ */ ((PaymentStatus2) => {
|
|
|
1606
1167
|
PaymentStatus2["FULLY_REFUNDED"] = "FULLY_REFUNDED";
|
|
1607
1168
|
PaymentStatus2["PENDING"] = "PENDING";
|
|
1608
1169
|
PaymentStatus2["PARTIALLY_PAID"] = "PARTIALLY_PAID";
|
|
1609
|
-
PaymentStatus2["PENDING_MERCHANT"] = "PENDING_MERCHANT";
|
|
1610
|
-
PaymentStatus2["CANCELED"] = "CANCELED";
|
|
1611
|
-
PaymentStatus2["DECLINED"] = "DECLINED";
|
|
1612
|
-
return PaymentStatus2;
|
|
1613
|
-
})(PaymentStatus || {});
|
|
1614
|
-
var FulfillmentStatus = /* @__PURE__ */ ((FulfillmentStatus2) => {
|
|
1615
|
-
FulfillmentStatus2["NOT_FULFILLED"] = "NOT_FULFILLED";
|
|
1616
|
-
FulfillmentStatus2["FULFILLED"] = "FULFILLED";
|
|
1617
|
-
FulfillmentStatus2["PARTIALLY_FULFILLED"] = "PARTIALLY_FULFILLED";
|
|
1618
|
-
return FulfillmentStatus2;
|
|
1619
|
-
})(FulfillmentStatus || {});
|
|
1620
|
-
var WeightUnit = /* @__PURE__ */ ((WeightUnit2) => {
|
|
1621
|
-
WeightUnit2["UNSPECIFIED_WEIGHT_UNIT"] = "UNSPECIFIED_WEIGHT_UNIT";
|
|
1622
|
-
WeightUnit2["KG"] = "KG";
|
|
1623
|
-
WeightUnit2["LB"] = "LB";
|
|
1624
|
-
return WeightUnit2;
|
|
1625
|
-
})(WeightUnit || {});
|
|
1626
|
-
var VatType = /* @__PURE__ */ ((VatType2) => {
|
|
1627
|
-
VatType2["UNSPECIFIED"] = "UNSPECIFIED";
|
|
1628
|
-
VatType2["CPF"] = "CPF";
|
|
1629
|
-
VatType2["CNPJ"] = "CNPJ";
|
|
1630
|
-
return VatType2;
|
|
1631
|
-
})(VatType || {});
|
|
1632
|
-
var PickupMethod = /* @__PURE__ */ ((PickupMethod2) => {
|
|
1633
|
-
PickupMethod2["UNKNOWN_METHOD"] = "UNKNOWN_METHOD";
|
|
1634
|
-
PickupMethod2["STORE_PICKUP"] = "STORE_PICKUP";
|
|
1635
|
-
PickupMethod2["PICKUP_POINT"] = "PICKUP_POINT";
|
|
1636
|
-
return PickupMethod2;
|
|
1637
|
-
})(PickupMethod || {});
|
|
1638
|
-
var OrderStatus = /* @__PURE__ */ ((OrderStatus2) => {
|
|
1639
|
-
OrderStatus2["INITIALIZED"] = "INITIALIZED";
|
|
1640
|
-
OrderStatus2["APPROVED"] = "APPROVED";
|
|
1641
|
-
OrderStatus2["CANCELED"] = "CANCELED";
|
|
1642
|
-
OrderStatus2["PENDING"] = "PENDING";
|
|
1643
|
-
OrderStatus2["REJECTED"] = "REJECTED";
|
|
1644
|
-
return OrderStatus2;
|
|
1645
|
-
})(OrderStatus || {});
|
|
1646
|
-
var DiscountType = /* @__PURE__ */ ((DiscountType2) => {
|
|
1647
|
-
DiscountType2["GLOBAL"] = "GLOBAL";
|
|
1648
|
-
DiscountType2["SPECIFIC_ITEMS"] = "SPECIFIC_ITEMS";
|
|
1649
|
-
DiscountType2["SHIPPING"] = "SHIPPING";
|
|
1650
|
-
return DiscountType2;
|
|
1651
|
-
})(DiscountType || {});
|
|
1652
|
-
var DiscountReason = /* @__PURE__ */ ((DiscountReason2) => {
|
|
1653
|
-
DiscountReason2["UNSPECIFIED"] = "UNSPECIFIED";
|
|
1654
|
-
DiscountReason2["EXCHANGED_ITEMS"] = "EXCHANGED_ITEMS";
|
|
1655
|
-
DiscountReason2["BILLING_ADJUSTMENT"] = "BILLING_ADJUSTMENT";
|
|
1656
|
-
return DiscountReason2;
|
|
1657
|
-
})(DiscountReason || {});
|
|
1658
|
-
var LineItemQuantityChangeType = /* @__PURE__ */ ((LineItemQuantityChangeType2) => {
|
|
1659
|
-
LineItemQuantityChangeType2["QUANTITY_INCREASED"] = "QUANTITY_INCREASED";
|
|
1660
|
-
LineItemQuantityChangeType2["QUANTITY_DECREASED"] = "QUANTITY_DECREASED";
|
|
1661
|
-
return LineItemQuantityChangeType2;
|
|
1662
|
-
})(LineItemQuantityChangeType || {});
|
|
1663
|
-
var ActivityType = /* @__PURE__ */ ((ActivityType2) => {
|
|
1664
|
-
ActivityType2["ORDER_REFUNDED"] = "ORDER_REFUNDED";
|
|
1665
|
-
ActivityType2["ORDER_PLACED"] = "ORDER_PLACED";
|
|
1666
|
-
ActivityType2["ORDER_PAID"] = "ORDER_PAID";
|
|
1667
|
-
ActivityType2["ORDER_FULFILLED"] = "ORDER_FULFILLED";
|
|
1668
|
-
ActivityType2["ORDER_NOT_FULFILLED"] = "ORDER_NOT_FULFILLED";
|
|
1669
|
-
ActivityType2["ORDER_CANCELED"] = "ORDER_CANCELED";
|
|
1670
|
-
ActivityType2["DOWNLOAD_LINK_SENT"] = "DOWNLOAD_LINK_SENT";
|
|
1671
|
-
ActivityType2["TRACKING_NUMBER_ADDED"] = "TRACKING_NUMBER_ADDED";
|
|
1672
|
-
ActivityType2["TRACKING_NUMBER_EDITED"] = "TRACKING_NUMBER_EDITED";
|
|
1673
|
-
ActivityType2["TRACKING_LINK_ADDED"] = "TRACKING_LINK_ADDED";
|
|
1674
|
-
ActivityType2["SHIPPING_CONFIRMATION_EMAIL_SENT"] = "SHIPPING_CONFIRMATION_EMAIL_SENT";
|
|
1675
|
-
ActivityType2["INVOICE_ADDED"] = "INVOICE_ADDED";
|
|
1676
|
-
ActivityType2["INVOICE_REMOVED"] = "INVOICE_REMOVED";
|
|
1677
|
-
ActivityType2["INVOICE_SENT"] = "INVOICE_SENT";
|
|
1678
|
-
ActivityType2["FULFILLER_EMAIL_SENT"] = "FULFILLER_EMAIL_SENT";
|
|
1679
|
-
ActivityType2["SHIPPING_ADDRESS_EDITED"] = "SHIPPING_ADDRESS_EDITED";
|
|
1680
|
-
ActivityType2["EMAIL_EDITED"] = "EMAIL_EDITED";
|
|
1681
|
-
ActivityType2["PICKUP_READY_EMAIL_SENT"] = "PICKUP_READY_EMAIL_SENT";
|
|
1682
|
-
ActivityType2["CUSTOM_ACTIVITY"] = "CUSTOM_ACTIVITY";
|
|
1683
|
-
ActivityType2["MERCHANT_COMMENT"] = "MERCHANT_COMMENT";
|
|
1684
|
-
ActivityType2["ORDER_CREATED_FROM_EXCHANGE"] = "ORDER_CREATED_FROM_EXCHANGE";
|
|
1685
|
-
ActivityType2["NEW_EXCHANGE_ORDER_CREATED"] = "NEW_EXCHANGE_ORDER_CREATED";
|
|
1686
|
-
ActivityType2["ORDER_PARTIALLY_PAID"] = "ORDER_PARTIALLY_PAID";
|
|
1687
|
-
ActivityType2["DRAFT_ORDER_CHANGES_APPLIED"] = "DRAFT_ORDER_CHANGES_APPLIED";
|
|
1688
|
-
ActivityType2["SAVED_PAYMENT_METHOD"] = "SAVED_PAYMENT_METHOD";
|
|
1689
|
-
ActivityType2["PAYMENT_PENDING"] = "PAYMENT_PENDING";
|
|
1690
|
-
ActivityType2["PAYMENT_CANCELED"] = "PAYMENT_CANCELED";
|
|
1691
|
-
ActivityType2["PAYMENT_DECLINED"] = "PAYMENT_DECLINED";
|
|
1692
|
-
ActivityType2["ORDER_PENDING"] = "ORDER_PENDING";
|
|
1693
|
-
ActivityType2["ORDER_REJECTED"] = "ORDER_REJECTED";
|
|
1694
|
-
return ActivityType2;
|
|
1695
|
-
})(ActivityType || {});
|
|
1696
|
-
var AttributionSource = /* @__PURE__ */ ((AttributionSource2) => {
|
|
1697
|
-
AttributionSource2["UNSPECIFIED"] = "UNSPECIFIED";
|
|
1698
|
-
AttributionSource2["FACEBOOK_ADS"] = "FACEBOOK_ADS";
|
|
1699
|
-
return AttributionSource2;
|
|
1700
|
-
})(AttributionSource || {});
|
|
1701
|
-
var ChannelType = /* @__PURE__ */ ((ChannelType2) => {
|
|
1702
|
-
ChannelType2["UNSPECIFIED"] = "UNSPECIFIED";
|
|
1703
|
-
ChannelType2["WEB"] = "WEB";
|
|
1704
|
-
ChannelType2["POS"] = "POS";
|
|
1705
|
-
ChannelType2["EBAY"] = "EBAY";
|
|
1706
|
-
ChannelType2["AMAZON"] = "AMAZON";
|
|
1707
|
-
ChannelType2["OTHER_PLATFORM"] = "OTHER_PLATFORM";
|
|
1708
|
-
ChannelType2["WIX_APP_STORE"] = "WIX_APP_STORE";
|
|
1709
|
-
ChannelType2["WIX_INVOICES"] = "WIX_INVOICES";
|
|
1710
|
-
ChannelType2["BACKOFFICE_MERCHANT"] = "BACKOFFICE_MERCHANT";
|
|
1711
|
-
ChannelType2["WISH"] = "WISH";
|
|
1712
|
-
ChannelType2["CLASS_PASS"] = "CLASS_PASS";
|
|
1713
|
-
ChannelType2["GLOBAL_E"] = "GLOBAL_E";
|
|
1714
|
-
ChannelType2["FACEBOOK"] = "FACEBOOK";
|
|
1715
|
-
ChannelType2["ETSY"] = "ETSY";
|
|
1716
|
-
ChannelType2["TIKTOK"] = "TIKTOK";
|
|
1717
|
-
ChannelType2["FAIRE_COM"] = "FAIRE_COM";
|
|
1718
|
-
return ChannelType2;
|
|
1719
|
-
})(ChannelType || {});
|
|
1720
|
-
var
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
return
|
|
1725
|
-
})(
|
|
1726
|
-
var
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
return
|
|
1772
|
-
})(
|
|
1773
|
-
var
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
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 || {});
|
|
1851
|
-
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
1852
|
-
SortOrder2["ASC"] = "ASC";
|
|
1853
|
-
SortOrder2["DESC"] = "DESC";
|
|
1854
|
-
return SortOrder2;
|
|
1855
|
-
})(SortOrder || {});
|
|
1856
|
-
var OrderApprovalStrategy = /* @__PURE__ */ ((OrderApprovalStrategy2) => {
|
|
1857
|
-
OrderApprovalStrategy2["DEFAULT"] = "DEFAULT";
|
|
1858
|
-
OrderApprovalStrategy2["PAYMENT_RECEIVED"] = "PAYMENT_RECEIVED";
|
|
1859
|
-
OrderApprovalStrategy2["PAYMENT_METHOD_SAVED"] = "PAYMENT_METHOD_SAVED";
|
|
1860
|
-
return OrderApprovalStrategy2;
|
|
1861
|
-
})(OrderApprovalStrategy || {});
|
|
1862
|
-
var DeltaPaymentOptionType = /* @__PURE__ */ ((DeltaPaymentOptionType2) => {
|
|
1863
|
-
DeltaPaymentOptionType2["UNKNOWN_PAYMENT_OPTION"] = "UNKNOWN_PAYMENT_OPTION";
|
|
1864
|
-
DeltaPaymentOptionType2["FULL_PAYMENT_OFFLINE"] = "FULL_PAYMENT_OFFLINE";
|
|
1865
|
-
DeltaPaymentOptionType2["MEMBERSHIP_OFFLINE"] = "MEMBERSHIP_OFFLINE";
|
|
1866
|
-
return DeltaPaymentOptionType2;
|
|
1867
|
-
})(DeltaPaymentOptionType || {});
|
|
1868
|
-
var InventoryAction = /* @__PURE__ */ ((InventoryAction2) => {
|
|
1869
|
-
InventoryAction2["RESTOCK"] = "RESTOCK";
|
|
1870
|
-
InventoryAction2["DECREASE"] = "DECREASE";
|
|
1871
|
-
return InventoryAction2;
|
|
1872
|
-
})(InventoryAction || {});
|
|
1873
|
-
var Placement = /* @__PURE__ */ ((Placement2) => {
|
|
1874
|
-
Placement2["Unknown"] = "Unknown";
|
|
1875
|
-
Placement2["Replace"] = "Replace";
|
|
1876
|
-
Placement2["Before"] = "Before";
|
|
1877
|
-
Placement2["After"] = "After";
|
|
1878
|
-
return Placement2;
|
|
1879
|
-
})(Placement || {});
|
|
1880
|
-
var SubdivisionType = /* @__PURE__ */ ((SubdivisionType2) => {
|
|
1881
|
-
SubdivisionType2["UNKNOWN_SUBDIVISION_TYPE"] = "UNKNOWN_SUBDIVISION_TYPE";
|
|
1882
|
-
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_1"] = "ADMINISTRATIVE_AREA_LEVEL_1";
|
|
1883
|
-
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_2"] = "ADMINISTRATIVE_AREA_LEVEL_2";
|
|
1884
|
-
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_3"] = "ADMINISTRATIVE_AREA_LEVEL_3";
|
|
1885
|
-
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_4"] = "ADMINISTRATIVE_AREA_LEVEL_4";
|
|
1886
|
-
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_5"] = "ADMINISTRATIVE_AREA_LEVEL_5";
|
|
1887
|
-
SubdivisionType2["COUNTRY"] = "COUNTRY";
|
|
1888
|
-
return SubdivisionType2;
|
|
1889
|
-
})(SubdivisionType || {});
|
|
1890
|
-
var SourceType = /* @__PURE__ */ ((SourceType2) => {
|
|
1891
|
-
SourceType2["UNKNOWN_SOURCE_TYPE"] = "UNKNOWN_SOURCE_TYPE";
|
|
1892
|
-
SourceType2["WIX_APP"] = "WIX_APP";
|
|
1893
|
-
SourceType2["EXTERNAL"] = "EXTERNAL";
|
|
1894
|
-
SourceType2["ADMIN"] = "ADMIN";
|
|
1895
|
-
SourceType2["OTHER"] = "OTHER";
|
|
1896
|
-
return SourceType2;
|
|
1897
|
-
})(SourceType || {});
|
|
1898
|
-
var CustomFieldGroup = /* @__PURE__ */ ((CustomFieldGroup2) => {
|
|
1899
|
-
CustomFieldGroup2["UNKNOWN_CUSTOM_FIELD_GROUP"] = "UNKNOWN_CUSTOM_FIELD_GROUP";
|
|
1900
|
-
CustomFieldGroup2["BUSINESS_DETAILS"] = "BUSINESS_DETAILS";
|
|
1901
|
-
CustomFieldGroup2["CUSTOMER_DETAILS"] = "CUSTOMER_DETAILS";
|
|
1902
|
-
CustomFieldGroup2["DOCUMENT"] = "DOCUMENT";
|
|
1903
|
-
CustomFieldGroup2["FOOTER"] = "FOOTER";
|
|
1904
|
-
CustomFieldGroup2["OTHER"] = "OTHER";
|
|
1905
|
-
return CustomFieldGroup2;
|
|
1906
|
-
})(CustomFieldGroup || {});
|
|
1907
|
-
var ValueType = /* @__PURE__ */ ((ValueType2) => {
|
|
1908
|
-
ValueType2["UNKNOWN_VALUE_TYPE"] = "UNKNOWN_VALUE_TYPE";
|
|
1909
|
-
ValueType2["STRING"] = "STRING";
|
|
1910
|
-
ValueType2["DATE"] = "DATE";
|
|
1911
|
-
ValueType2["BOOLEAN"] = "BOOLEAN";
|
|
1912
|
-
ValueType2["NUMBER"] = "NUMBER";
|
|
1913
|
-
return ValueType2;
|
|
1914
|
-
})(ValueType || {});
|
|
1915
|
-
var DepositType = /* @__PURE__ */ ((DepositType2) => {
|
|
1916
|
-
DepositType2["UNKNOWN"] = "UNKNOWN";
|
|
1917
|
-
DepositType2["FLAT"] = "FLAT";
|
|
1918
|
-
DepositType2["PERCENTAGE"] = "PERCENTAGE";
|
|
1919
|
-
return DepositType2;
|
|
1920
|
-
})(DepositType || {});
|
|
1921
|
-
var InvoiceStatus = /* @__PURE__ */ ((InvoiceStatus2) => {
|
|
1922
|
-
InvoiceStatus2["Draft"] = "Draft";
|
|
1923
|
-
InvoiceStatus2["Sent"] = "Sent";
|
|
1924
|
-
InvoiceStatus2["Processing"] = "Processing";
|
|
1925
|
-
InvoiceStatus2["Paid"] = "Paid";
|
|
1926
|
-
InvoiceStatus2["Overdue"] = "Overdue";
|
|
1927
|
-
InvoiceStatus2["Void"] = "Void";
|
|
1928
|
-
InvoiceStatus2["Deleted"] = "Deleted";
|
|
1929
|
-
InvoiceStatus2["PartiallyPaid"] = "PartiallyPaid";
|
|
1930
|
-
InvoiceStatus2["PartialAndOverdue"] = "PartialAndOverdue";
|
|
1931
|
-
return InvoiceStatus2;
|
|
1932
|
-
})(InvoiceStatus || {});
|
|
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
|
-
}
|
|
1170
|
+
PaymentStatus2["PENDING_MERCHANT"] = "PENDING_MERCHANT";
|
|
1171
|
+
PaymentStatus2["CANCELED"] = "CANCELED";
|
|
1172
|
+
PaymentStatus2["DECLINED"] = "DECLINED";
|
|
1173
|
+
return PaymentStatus2;
|
|
1174
|
+
})(PaymentStatus || {});
|
|
1175
|
+
var FulfillmentStatus = /* @__PURE__ */ ((FulfillmentStatus2) => {
|
|
1176
|
+
FulfillmentStatus2["NOT_FULFILLED"] = "NOT_FULFILLED";
|
|
1177
|
+
FulfillmentStatus2["FULFILLED"] = "FULFILLED";
|
|
1178
|
+
FulfillmentStatus2["PARTIALLY_FULFILLED"] = "PARTIALLY_FULFILLED";
|
|
1179
|
+
return FulfillmentStatus2;
|
|
1180
|
+
})(FulfillmentStatus || {});
|
|
1181
|
+
var WeightUnit = /* @__PURE__ */ ((WeightUnit2) => {
|
|
1182
|
+
WeightUnit2["UNSPECIFIED_WEIGHT_UNIT"] = "UNSPECIFIED_WEIGHT_UNIT";
|
|
1183
|
+
WeightUnit2["KG"] = "KG";
|
|
1184
|
+
WeightUnit2["LB"] = "LB";
|
|
1185
|
+
return WeightUnit2;
|
|
1186
|
+
})(WeightUnit || {});
|
|
1187
|
+
var VatType = /* @__PURE__ */ ((VatType2) => {
|
|
1188
|
+
VatType2["UNSPECIFIED"] = "UNSPECIFIED";
|
|
1189
|
+
VatType2["CPF"] = "CPF";
|
|
1190
|
+
VatType2["CNPJ"] = "CNPJ";
|
|
1191
|
+
return VatType2;
|
|
1192
|
+
})(VatType || {});
|
|
1193
|
+
var PickupMethod = /* @__PURE__ */ ((PickupMethod2) => {
|
|
1194
|
+
PickupMethod2["UNKNOWN_METHOD"] = "UNKNOWN_METHOD";
|
|
1195
|
+
PickupMethod2["STORE_PICKUP"] = "STORE_PICKUP";
|
|
1196
|
+
PickupMethod2["PICKUP_POINT"] = "PICKUP_POINT";
|
|
1197
|
+
return PickupMethod2;
|
|
1198
|
+
})(PickupMethod || {});
|
|
1199
|
+
var OrderStatus = /* @__PURE__ */ ((OrderStatus2) => {
|
|
1200
|
+
OrderStatus2["INITIALIZED"] = "INITIALIZED";
|
|
1201
|
+
OrderStatus2["APPROVED"] = "APPROVED";
|
|
1202
|
+
OrderStatus2["CANCELED"] = "CANCELED";
|
|
1203
|
+
OrderStatus2["PENDING"] = "PENDING";
|
|
1204
|
+
OrderStatus2["REJECTED"] = "REJECTED";
|
|
1205
|
+
return OrderStatus2;
|
|
1206
|
+
})(OrderStatus || {});
|
|
1207
|
+
var DiscountType = /* @__PURE__ */ ((DiscountType2) => {
|
|
1208
|
+
DiscountType2["GLOBAL"] = "GLOBAL";
|
|
1209
|
+
DiscountType2["SPECIFIC_ITEMS"] = "SPECIFIC_ITEMS";
|
|
1210
|
+
DiscountType2["SHIPPING"] = "SHIPPING";
|
|
1211
|
+
return DiscountType2;
|
|
1212
|
+
})(DiscountType || {});
|
|
1213
|
+
var DiscountReason = /* @__PURE__ */ ((DiscountReason2) => {
|
|
1214
|
+
DiscountReason2["UNSPECIFIED"] = "UNSPECIFIED";
|
|
1215
|
+
DiscountReason2["EXCHANGED_ITEMS"] = "EXCHANGED_ITEMS";
|
|
1216
|
+
DiscountReason2["BILLING_ADJUSTMENT"] = "BILLING_ADJUSTMENT";
|
|
1217
|
+
return DiscountReason2;
|
|
1218
|
+
})(DiscountReason || {});
|
|
1219
|
+
var LineItemQuantityChangeType = /* @__PURE__ */ ((LineItemQuantityChangeType2) => {
|
|
1220
|
+
LineItemQuantityChangeType2["QUANTITY_INCREASED"] = "QUANTITY_INCREASED";
|
|
1221
|
+
LineItemQuantityChangeType2["QUANTITY_DECREASED"] = "QUANTITY_DECREASED";
|
|
1222
|
+
return LineItemQuantityChangeType2;
|
|
1223
|
+
})(LineItemQuantityChangeType || {});
|
|
1224
|
+
var ActivityType = /* @__PURE__ */ ((ActivityType2) => {
|
|
1225
|
+
ActivityType2["ORDER_REFUNDED"] = "ORDER_REFUNDED";
|
|
1226
|
+
ActivityType2["ORDER_PLACED"] = "ORDER_PLACED";
|
|
1227
|
+
ActivityType2["ORDER_PAID"] = "ORDER_PAID";
|
|
1228
|
+
ActivityType2["ORDER_FULFILLED"] = "ORDER_FULFILLED";
|
|
1229
|
+
ActivityType2["ORDER_NOT_FULFILLED"] = "ORDER_NOT_FULFILLED";
|
|
1230
|
+
ActivityType2["ORDER_CANCELED"] = "ORDER_CANCELED";
|
|
1231
|
+
ActivityType2["DOWNLOAD_LINK_SENT"] = "DOWNLOAD_LINK_SENT";
|
|
1232
|
+
ActivityType2["TRACKING_NUMBER_ADDED"] = "TRACKING_NUMBER_ADDED";
|
|
1233
|
+
ActivityType2["TRACKING_NUMBER_EDITED"] = "TRACKING_NUMBER_EDITED";
|
|
1234
|
+
ActivityType2["TRACKING_LINK_ADDED"] = "TRACKING_LINK_ADDED";
|
|
1235
|
+
ActivityType2["SHIPPING_CONFIRMATION_EMAIL_SENT"] = "SHIPPING_CONFIRMATION_EMAIL_SENT";
|
|
1236
|
+
ActivityType2["INVOICE_ADDED"] = "INVOICE_ADDED";
|
|
1237
|
+
ActivityType2["INVOICE_REMOVED"] = "INVOICE_REMOVED";
|
|
1238
|
+
ActivityType2["INVOICE_SENT"] = "INVOICE_SENT";
|
|
1239
|
+
ActivityType2["FULFILLER_EMAIL_SENT"] = "FULFILLER_EMAIL_SENT";
|
|
1240
|
+
ActivityType2["SHIPPING_ADDRESS_EDITED"] = "SHIPPING_ADDRESS_EDITED";
|
|
1241
|
+
ActivityType2["EMAIL_EDITED"] = "EMAIL_EDITED";
|
|
1242
|
+
ActivityType2["PICKUP_READY_EMAIL_SENT"] = "PICKUP_READY_EMAIL_SENT";
|
|
1243
|
+
ActivityType2["CUSTOM_ACTIVITY"] = "CUSTOM_ACTIVITY";
|
|
1244
|
+
ActivityType2["MERCHANT_COMMENT"] = "MERCHANT_COMMENT";
|
|
1245
|
+
ActivityType2["ORDER_CREATED_FROM_EXCHANGE"] = "ORDER_CREATED_FROM_EXCHANGE";
|
|
1246
|
+
ActivityType2["NEW_EXCHANGE_ORDER_CREATED"] = "NEW_EXCHANGE_ORDER_CREATED";
|
|
1247
|
+
ActivityType2["ORDER_PARTIALLY_PAID"] = "ORDER_PARTIALLY_PAID";
|
|
1248
|
+
ActivityType2["DRAFT_ORDER_CHANGES_APPLIED"] = "DRAFT_ORDER_CHANGES_APPLIED";
|
|
1249
|
+
ActivityType2["SAVED_PAYMENT_METHOD"] = "SAVED_PAYMENT_METHOD";
|
|
1250
|
+
ActivityType2["PAYMENT_PENDING"] = "PAYMENT_PENDING";
|
|
1251
|
+
ActivityType2["PAYMENT_CANCELED"] = "PAYMENT_CANCELED";
|
|
1252
|
+
ActivityType2["PAYMENT_DECLINED"] = "PAYMENT_DECLINED";
|
|
1253
|
+
ActivityType2["ORDER_PENDING"] = "ORDER_PENDING";
|
|
1254
|
+
ActivityType2["ORDER_REJECTED"] = "ORDER_REJECTED";
|
|
1255
|
+
return ActivityType2;
|
|
1256
|
+
})(ActivityType || {});
|
|
1257
|
+
var AttributionSource = /* @__PURE__ */ ((AttributionSource2) => {
|
|
1258
|
+
AttributionSource2["UNSPECIFIED"] = "UNSPECIFIED";
|
|
1259
|
+
AttributionSource2["FACEBOOK_ADS"] = "FACEBOOK_ADS";
|
|
1260
|
+
return AttributionSource2;
|
|
1261
|
+
})(AttributionSource || {});
|
|
1262
|
+
var ChannelType = /* @__PURE__ */ ((ChannelType2) => {
|
|
1263
|
+
ChannelType2["UNSPECIFIED"] = "UNSPECIFIED";
|
|
1264
|
+
ChannelType2["WEB"] = "WEB";
|
|
1265
|
+
ChannelType2["POS"] = "POS";
|
|
1266
|
+
ChannelType2["EBAY"] = "EBAY";
|
|
1267
|
+
ChannelType2["AMAZON"] = "AMAZON";
|
|
1268
|
+
ChannelType2["OTHER_PLATFORM"] = "OTHER_PLATFORM";
|
|
1269
|
+
ChannelType2["WIX_APP_STORE"] = "WIX_APP_STORE";
|
|
1270
|
+
ChannelType2["WIX_INVOICES"] = "WIX_INVOICES";
|
|
1271
|
+
ChannelType2["BACKOFFICE_MERCHANT"] = "BACKOFFICE_MERCHANT";
|
|
1272
|
+
ChannelType2["WISH"] = "WISH";
|
|
1273
|
+
ChannelType2["CLASS_PASS"] = "CLASS_PASS";
|
|
1274
|
+
ChannelType2["GLOBAL_E"] = "GLOBAL_E";
|
|
1275
|
+
ChannelType2["FACEBOOK"] = "FACEBOOK";
|
|
1276
|
+
ChannelType2["ETSY"] = "ETSY";
|
|
1277
|
+
ChannelType2["TIKTOK"] = "TIKTOK";
|
|
1278
|
+
ChannelType2["FAIRE_COM"] = "FAIRE_COM";
|
|
1279
|
+
return ChannelType2;
|
|
1280
|
+
})(ChannelType || {});
|
|
1281
|
+
var VersioningMode = /* @__PURE__ */ ((VersioningMode2) => {
|
|
1282
|
+
VersioningMode2["DEFAULT"] = "DEFAULT";
|
|
1283
|
+
VersioningMode2["GREATER_THAN"] = "GREATER_THAN";
|
|
1284
|
+
VersioningMode2["GREATER_OR_EQUAL"] = "GREATER_OR_EQUAL";
|
|
1285
|
+
return VersioningMode2;
|
|
1286
|
+
})(VersioningMode || {});
|
|
1287
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
1288
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
1289
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
1290
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
1291
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
1292
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
1293
|
+
return WebhookIdentityType2;
|
|
1294
|
+
})(WebhookIdentityType || {});
|
|
1295
|
+
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
1296
|
+
SortOrder2["ASC"] = "ASC";
|
|
1297
|
+
SortOrder2["DESC"] = "DESC";
|
|
1298
|
+
return SortOrder2;
|
|
1299
|
+
})(SortOrder || {});
|
|
1300
|
+
var OrderApprovalStrategy = /* @__PURE__ */ ((OrderApprovalStrategy2) => {
|
|
1301
|
+
OrderApprovalStrategy2["DEFAULT"] = "DEFAULT";
|
|
1302
|
+
OrderApprovalStrategy2["PAYMENT_RECEIVED"] = "PAYMENT_RECEIVED";
|
|
1303
|
+
OrderApprovalStrategy2["PAYMENT_METHOD_SAVED"] = "PAYMENT_METHOD_SAVED";
|
|
1304
|
+
return OrderApprovalStrategy2;
|
|
1305
|
+
})(OrderApprovalStrategy || {});
|
|
1306
|
+
var DeltaPaymentOptionType = /* @__PURE__ */ ((DeltaPaymentOptionType2) => {
|
|
1307
|
+
DeltaPaymentOptionType2["UNKNOWN_PAYMENT_OPTION"] = "UNKNOWN_PAYMENT_OPTION";
|
|
1308
|
+
DeltaPaymentOptionType2["FULL_PAYMENT_OFFLINE"] = "FULL_PAYMENT_OFFLINE";
|
|
1309
|
+
DeltaPaymentOptionType2["MEMBERSHIP_OFFLINE"] = "MEMBERSHIP_OFFLINE";
|
|
1310
|
+
return DeltaPaymentOptionType2;
|
|
1311
|
+
})(DeltaPaymentOptionType || {});
|
|
1312
|
+
var InventoryAction = /* @__PURE__ */ ((InventoryAction2) => {
|
|
1313
|
+
InventoryAction2["RESTOCK"] = "RESTOCK";
|
|
1314
|
+
InventoryAction2["DECREASE"] = "DECREASE";
|
|
1315
|
+
return InventoryAction2;
|
|
1316
|
+
})(InventoryAction || {});
|
|
1317
|
+
var Placement = /* @__PURE__ */ ((Placement2) => {
|
|
1318
|
+
Placement2["Unknown"] = "Unknown";
|
|
1319
|
+
Placement2["Replace"] = "Replace";
|
|
1320
|
+
Placement2["Before"] = "Before";
|
|
1321
|
+
Placement2["After"] = "After";
|
|
1322
|
+
return Placement2;
|
|
1323
|
+
})(Placement || {});
|
|
1324
|
+
var SubdivisionType = /* @__PURE__ */ ((SubdivisionType2) => {
|
|
1325
|
+
SubdivisionType2["UNKNOWN_SUBDIVISION_TYPE"] = "UNKNOWN_SUBDIVISION_TYPE";
|
|
1326
|
+
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_1"] = "ADMINISTRATIVE_AREA_LEVEL_1";
|
|
1327
|
+
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_2"] = "ADMINISTRATIVE_AREA_LEVEL_2";
|
|
1328
|
+
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_3"] = "ADMINISTRATIVE_AREA_LEVEL_3";
|
|
1329
|
+
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_4"] = "ADMINISTRATIVE_AREA_LEVEL_4";
|
|
1330
|
+
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_5"] = "ADMINISTRATIVE_AREA_LEVEL_5";
|
|
1331
|
+
SubdivisionType2["COUNTRY"] = "COUNTRY";
|
|
1332
|
+
return SubdivisionType2;
|
|
1333
|
+
})(SubdivisionType || {});
|
|
1334
|
+
var SourceType = /* @__PURE__ */ ((SourceType2) => {
|
|
1335
|
+
SourceType2["UNKNOWN_SOURCE_TYPE"] = "UNKNOWN_SOURCE_TYPE";
|
|
1336
|
+
SourceType2["WIX_APP"] = "WIX_APP";
|
|
1337
|
+
SourceType2["EXTERNAL"] = "EXTERNAL";
|
|
1338
|
+
SourceType2["ADMIN"] = "ADMIN";
|
|
1339
|
+
SourceType2["OTHER"] = "OTHER";
|
|
1340
|
+
return SourceType2;
|
|
1341
|
+
})(SourceType || {});
|
|
1342
|
+
var CustomFieldGroup = /* @__PURE__ */ ((CustomFieldGroup2) => {
|
|
1343
|
+
CustomFieldGroup2["UNKNOWN_CUSTOM_FIELD_GROUP"] = "UNKNOWN_CUSTOM_FIELD_GROUP";
|
|
1344
|
+
CustomFieldGroup2["BUSINESS_DETAILS"] = "BUSINESS_DETAILS";
|
|
1345
|
+
CustomFieldGroup2["CUSTOMER_DETAILS"] = "CUSTOMER_DETAILS";
|
|
1346
|
+
CustomFieldGroup2["DOCUMENT"] = "DOCUMENT";
|
|
1347
|
+
CustomFieldGroup2["FOOTER"] = "FOOTER";
|
|
1348
|
+
CustomFieldGroup2["OTHER"] = "OTHER";
|
|
1349
|
+
return CustomFieldGroup2;
|
|
1350
|
+
})(CustomFieldGroup || {});
|
|
1351
|
+
var ValueType = /* @__PURE__ */ ((ValueType2) => {
|
|
1352
|
+
ValueType2["UNKNOWN_VALUE_TYPE"] = "UNKNOWN_VALUE_TYPE";
|
|
1353
|
+
ValueType2["STRING"] = "STRING";
|
|
1354
|
+
ValueType2["DATE"] = "DATE";
|
|
1355
|
+
ValueType2["BOOLEAN"] = "BOOLEAN";
|
|
1356
|
+
ValueType2["NUMBER"] = "NUMBER";
|
|
1357
|
+
return ValueType2;
|
|
1358
|
+
})(ValueType || {});
|
|
1359
|
+
var DepositType = /* @__PURE__ */ ((DepositType2) => {
|
|
1360
|
+
DepositType2["UNKNOWN"] = "UNKNOWN";
|
|
1361
|
+
DepositType2["FLAT"] = "FLAT";
|
|
1362
|
+
DepositType2["PERCENTAGE"] = "PERCENTAGE";
|
|
1363
|
+
return DepositType2;
|
|
1364
|
+
})(DepositType || {});
|
|
1365
|
+
var InvoiceStatus = /* @__PURE__ */ ((InvoiceStatus2) => {
|
|
1366
|
+
InvoiceStatus2["Draft"] = "Draft";
|
|
1367
|
+
InvoiceStatus2["Sent"] = "Sent";
|
|
1368
|
+
InvoiceStatus2["Processing"] = "Processing";
|
|
1369
|
+
InvoiceStatus2["Paid"] = "Paid";
|
|
1370
|
+
InvoiceStatus2["Overdue"] = "Overdue";
|
|
1371
|
+
InvoiceStatus2["Void"] = "Void";
|
|
1372
|
+
InvoiceStatus2["Deleted"] = "Deleted";
|
|
1373
|
+
InvoiceStatus2["PartiallyPaid"] = "PartiallyPaid";
|
|
1374
|
+
InvoiceStatus2["PartialAndOverdue"] = "PartialAndOverdue";
|
|
1375
|
+
return InvoiceStatus2;
|
|
1376
|
+
})(InvoiceStatus || {});
|
|
2278
1377
|
async function getOrder2(_id) {
|
|
2279
1378
|
const { httpClient, sideEffects } = arguments[1];
|
|
2280
1379
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ id: _id });
|
|
@@ -2972,93 +2071,6 @@ async function bulkUpdateOrderTags2(orderIds, options) {
|
|
|
2972
2071
|
}
|
|
2973
2072
|
|
|
2974
2073
|
// 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
|
-
}
|
|
3062
2074
|
function getOrder3(httpClient) {
|
|
3063
2075
|
return (_id) => getOrder2(
|
|
3064
2076
|
_id,
|
|
@@ -3391,19 +2403,6 @@ var onOrderPaymentStatusUpdated = (0, import_sdk_types.EventDefinition)(
|
|
|
3391
2403
|
// src/ecom-v1-order-orders.context.ts
|
|
3392
2404
|
var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
|
|
3393
2405
|
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);
|
|
3407
2406
|
var getOrder4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getOrder3);
|
|
3408
2407
|
var searchOrders4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(searchOrders3);
|
|
3409
2408
|
var createOrder4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createOrder3);
|
|
@@ -3425,48 +2424,33 @@ var onOrderCreated2 = (0, import_event_definition_modules.createEventModule)(onO
|
|
|
3425
2424
|
var onOrderPaymentStatusUpdated2 = (0, import_event_definition_modules.createEventModule)(onOrderPaymentStatusUpdated);
|
|
3426
2425
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3427
2426
|
0 && (module.exports = {
|
|
3428
|
-
ActionType,
|
|
3429
2427
|
ActivityType,
|
|
3430
2428
|
AdjustmentType,
|
|
3431
2429
|
AttributionSource,
|
|
3432
|
-
AuthorizationCaptureStatus,
|
|
3433
|
-
AuthorizationVoidStatus,
|
|
3434
2430
|
ChannelType,
|
|
3435
|
-
ChargebackStatus,
|
|
3436
2431
|
CustomFieldGroup,
|
|
3437
2432
|
DeltaPaymentOptionType,
|
|
3438
2433
|
DepositType,
|
|
3439
2434
|
DescriptionLineType,
|
|
3440
2435
|
DiscountReason,
|
|
3441
2436
|
DiscountType,
|
|
3442
|
-
DurationUnit,
|
|
3443
2437
|
FulfillmentStatus,
|
|
3444
2438
|
InventoryAction,
|
|
3445
2439
|
InvoiceStatus,
|
|
3446
2440
|
ItemTypeItemType,
|
|
3447
2441
|
JurisdictionType,
|
|
3448
2442
|
LineItemQuantityChangeType,
|
|
3449
|
-
ManuallyRefundableReason,
|
|
3450
|
-
MembershipPaymentStatus,
|
|
3451
|
-
NonRefundableReason,
|
|
3452
2443
|
OrderApprovalStrategy,
|
|
3453
2444
|
OrderStatus,
|
|
3454
|
-
PaymentCollectabilityStatus,
|
|
3455
2445
|
PaymentOptionType,
|
|
3456
2446
|
PaymentStatus,
|
|
3457
2447
|
PickupMethod,
|
|
3458
2448
|
Placement,
|
|
3459
|
-
Reason,
|
|
3460
|
-
RefundStatus,
|
|
3461
|
-
RefundableStatus,
|
|
3462
|
-
RestockType,
|
|
3463
|
-
ScheduledAction,
|
|
3464
2449
|
SortOrder,
|
|
3465
2450
|
SourceType,
|
|
3466
2451
|
SubdivisionType,
|
|
3467
2452
|
SubscriptionFrequency,
|
|
3468
2453
|
TaxableAddressType,
|
|
3469
|
-
TransactionStatus,
|
|
3470
2454
|
ValueType,
|
|
3471
2455
|
VatType,
|
|
3472
2456
|
VersioningMode,
|
|
@@ -3477,30 +2461,19 @@ var onOrderPaymentStatusUpdated2 = (0, import_event_definition_modules.createEve
|
|
|
3477
2461
|
bulkUpdateOrderTags,
|
|
3478
2462
|
bulkUpdateOrders,
|
|
3479
2463
|
cancelOrder,
|
|
3480
|
-
captureAuthorizedPayments,
|
|
3481
|
-
chargeMemberships,
|
|
3482
2464
|
commitDeltas,
|
|
3483
2465
|
createOrder,
|
|
3484
2466
|
deleteActivity,
|
|
3485
2467
|
getOrder,
|
|
3486
|
-
getPaymentCollectabilityStatus,
|
|
3487
|
-
getRefundabilityStatus,
|
|
3488
2468
|
onOrderApproved,
|
|
3489
2469
|
onOrderCanceled,
|
|
3490
2470
|
onOrderCreated,
|
|
3491
2471
|
onOrderPaymentStatusUpdated,
|
|
3492
2472
|
onOrderUpdated,
|
|
3493
|
-
paymentCollectionBulkMarkOrdersAsPaid,
|
|
3494
|
-
paymentCollectionCreatePaymentGatewayOrder,
|
|
3495
|
-
paymentCollectionMarkOrderAsPaid,
|
|
3496
|
-
preparePaymentCollection,
|
|
3497
|
-
recordManuallyCollectedPayment,
|
|
3498
2473
|
searchOrders,
|
|
3499
|
-
triggerRefund,
|
|
3500
2474
|
updateActivity,
|
|
3501
2475
|
updateOrder,
|
|
3502
2476
|
updateOrderLineItem,
|
|
3503
|
-
updateOrderStatus
|
|
3504
|
-
voidAuthorizedPayments
|
|
2477
|
+
updateOrderStatus
|
|
3505
2478
|
});
|
|
3506
2479
|
//# sourceMappingURL=index.js.map
|