@wix/auto_sdk_ecom_orders 1.0.67 → 1.0.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/{internal/cjs/ecom-v1-order-orders.universal-Dt_KjUcw.d.ts → cjs/ecom-v1-order-orders.universal-Br3Nippn.d.ts} +351 -3211
- package/build/cjs/index.d.ts +11 -59
- package/build/cjs/index.js +310 -1377
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +113 -1127
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +43 -953
- package/build/cjs/meta.js +3 -647
- package/build/cjs/meta.js.map +1 -1
- package/build/{internal/es/ecom-v1-order-orders.universal-Dt_KjUcw.d.mts → es/ecom-v1-order-orders.universal-Br3Nippn.d.mts} +351 -3211
- package/build/es/index.d.mts +11 -59
- package/build/es/index.mjs +308 -1344
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs +112 -1094
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +43 -953
- package/build/es/meta.mjs +2 -635
- package/build/es/meta.mjs.map +1 -1
- package/build/{cjs/ecom-v1-order-orders.universal-D9sENjnN.d.ts → internal/cjs/ecom-v1-order-orders.universal-BAE6DVkA.d.ts} +857 -2526
- package/build/internal/cjs/index.d.ts +11 -165
- package/build/internal/cjs/index.js +310 -1377
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +2 -2
- package/build/internal/cjs/index.typings.js +113 -1127
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +43 -953
- package/build/internal/cjs/meta.js +3 -647
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/{es/ecom-v1-order-orders.universal-D9sENjnN.d.mts → internal/es/ecom-v1-order-orders.universal-BAE6DVkA.d.mts} +857 -2526
- package/build/internal/es/index.d.mts +11 -165
- package/build/internal/es/index.mjs +308 -1344
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +2 -2
- package/build/internal/es/index.typings.mjs +112 -1094
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +43 -953
- package/build/internal/es/meta.mjs +2 -635
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +3 -2
package/build/cjs/index.js
CHANGED
|
@@ -20,56 +20,35 @@ 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
|
-
AnimationDetection: () => AnimationDetection,
|
|
27
25
|
AttributionSource: () => AttributionSource,
|
|
28
|
-
AuthorizationCaptureStatus: () => AuthorizationCaptureStatus,
|
|
29
|
-
AuthorizationVoidStatus: () => AuthorizationVoidStatus,
|
|
30
26
|
ChannelType: () => ChannelType,
|
|
31
|
-
ChargebackStatus: () => ChargebackStatus,
|
|
32
27
|
CustomFieldGroup: () => CustomFieldGroup,
|
|
33
28
|
DeltaPaymentOptionType: () => DeltaPaymentOptionType,
|
|
34
29
|
DepositType: () => DepositType,
|
|
35
30
|
DescriptionLineType: () => DescriptionLineType,
|
|
36
31
|
DiscountReason: () => DiscountReason,
|
|
37
32
|
DiscountType: () => DiscountType,
|
|
38
|
-
DurationUnit: () => DurationUnit,
|
|
39
33
|
FulfillmentStatus: () => FulfillmentStatus,
|
|
40
34
|
InventoryAction: () => InventoryAction,
|
|
41
35
|
InvoiceStatus: () => InvoiceStatus,
|
|
42
36
|
ItemTypeItemType: () => ItemTypeItemType,
|
|
43
37
|
JurisdictionType: () => JurisdictionType,
|
|
44
38
|
LineItemQuantityChangeType: () => LineItemQuantityChangeType,
|
|
45
|
-
ManuallyRefundableReason: () => ManuallyRefundableReason,
|
|
46
|
-
MembershipPaymentStatus: () => MembershipPaymentStatus,
|
|
47
|
-
Namespace: () => Namespace,
|
|
48
|
-
NonRefundableReason: () => NonRefundableReason,
|
|
49
39
|
OrderApprovalStrategy: () => OrderApprovalStrategy,
|
|
50
40
|
OrderStatus: () => OrderStatus,
|
|
51
|
-
PaymentCollectabilityStatus: () => PaymentCollectabilityStatus,
|
|
52
41
|
PaymentOptionType: () => PaymentOptionType,
|
|
53
42
|
PaymentStatus: () => PaymentStatus,
|
|
54
43
|
PickupMethod: () => PickupMethod,
|
|
55
44
|
Placement: () => Placement,
|
|
56
|
-
PreviewEmailType: () => PreviewEmailType,
|
|
57
|
-
Reason: () => Reason,
|
|
58
|
-
RefundStatus: () => RefundStatus,
|
|
59
|
-
RefundableStatus: () => RefundableStatus,
|
|
60
|
-
RestockType: () => RestockType,
|
|
61
|
-
ScheduledAction: () => ScheduledAction,
|
|
62
45
|
SortOrder: () => SortOrder,
|
|
63
46
|
SourceType: () => SourceType,
|
|
64
|
-
State: () => State,
|
|
65
47
|
SubdivisionType: () => SubdivisionType,
|
|
66
48
|
SubscriptionFrequency: () => SubscriptionFrequency,
|
|
67
49
|
TaxableAddressType: () => TaxableAddressType,
|
|
68
|
-
TextDetection: () => TextDetection,
|
|
69
|
-
TransactionStatus: () => TransactionStatus,
|
|
70
50
|
ValueType: () => ValueType,
|
|
71
51
|
VatType: () => VatType,
|
|
72
|
-
VersioningMode: () => VersioningMode,
|
|
73
52
|
WebhookIdentityType: () => WebhookIdentityType,
|
|
74
53
|
WeightUnit: () => WeightUnit,
|
|
75
54
|
addActivity: () => addActivity4,
|
|
@@ -77,30 +56,20 @@ __export(index_exports, {
|
|
|
77
56
|
bulkUpdateOrderTags: () => bulkUpdateOrderTags4,
|
|
78
57
|
bulkUpdateOrders: () => bulkUpdateOrders4,
|
|
79
58
|
cancelOrder: () => cancelOrder4,
|
|
80
|
-
captureAuthorizedPayments: () => captureAuthorizedPayments4,
|
|
81
|
-
chargeMemberships: () => chargeMemberships4,
|
|
82
59
|
commitDeltas: () => commitDeltas4,
|
|
83
60
|
createOrder: () => createOrder4,
|
|
84
61
|
deleteActivity: () => deleteActivity4,
|
|
85
62
|
getOrder: () => getOrder4,
|
|
86
|
-
getPaymentCollectabilityStatus: () => getPaymentCollectabilityStatus4,
|
|
87
|
-
getRefundabilityStatus: () => getRefundabilityStatus4,
|
|
88
63
|
onOrderApproved: () => onOrderApproved2,
|
|
89
64
|
onOrderCanceled: () => onOrderCanceled2,
|
|
90
65
|
onOrderCreated: () => onOrderCreated2,
|
|
66
|
+
onOrderPaymentStatusUpdated: () => onOrderPaymentStatusUpdated2,
|
|
91
67
|
onOrderUpdated: () => onOrderUpdated2,
|
|
92
|
-
paymentCollectionBulkMarkOrdersAsPaid: () => paymentCollectionBulkMarkOrdersAsPaid4,
|
|
93
|
-
paymentCollectionCreatePaymentGatewayOrder: () => paymentCollectionCreatePaymentGatewayOrder4,
|
|
94
|
-
paymentCollectionMarkOrderAsPaid: () => paymentCollectionMarkOrderAsPaid4,
|
|
95
|
-
preparePaymentCollection: () => preparePaymentCollection4,
|
|
96
|
-
recordManuallyCollectedPayment: () => recordManuallyCollectedPayment4,
|
|
97
68
|
searchOrders: () => searchOrders4,
|
|
98
|
-
triggerRefund: () => triggerRefund4,
|
|
99
69
|
updateActivity: () => updateActivity4,
|
|
100
70
|
updateOrder: () => updateOrder4,
|
|
101
71
|
updateOrderLineItem: () => updateOrderLineItem4,
|
|
102
|
-
updateOrderStatus: () => updateOrderStatus4
|
|
103
|
-
voidAuthorizedPayments: () => voidAuthorizedPayments4
|
|
72
|
+
updateOrderStatus: () => updateOrderStatus4
|
|
104
73
|
});
|
|
105
74
|
module.exports = __toCommonJS(index_exports);
|
|
106
75
|
|
|
@@ -127,139 +96,23 @@ var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
|
|
|
127
96
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
128
97
|
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
129
98
|
function resolveComWixEcomOrdersV1OrdersUrl(opts) {
|
|
130
|
-
const domainToMappings = {
|
|
131
|
-
_: [
|
|
132
|
-
{
|
|
133
|
-
srcPath: "/_api/ecom-orders",
|
|
134
|
-
destPath: ""
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
srcPath: "/_api/orders",
|
|
138
|
-
destPath: ""
|
|
139
|
-
}
|
|
140
|
-
],
|
|
141
|
-
"manage._base_domain_": [
|
|
142
|
-
{
|
|
143
|
-
srcPath: "/_api/ecom-orders",
|
|
144
|
-
destPath: ""
|
|
145
|
-
}
|
|
146
|
-
],
|
|
147
|
-
"www.wixapis.com": [
|
|
148
|
-
{
|
|
149
|
-
srcPath: "/ecom/v1/bulk/orders",
|
|
150
|
-
destPath: "/v1/bulk/orders"
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
srcPath: "/ecom/v1/orders",
|
|
154
|
-
destPath: "/v1/orders"
|
|
155
|
-
}
|
|
156
|
-
]
|
|
157
|
-
};
|
|
158
|
-
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
159
|
-
}
|
|
160
|
-
function resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl(opts) {
|
|
161
|
-
const domainToMappings = {
|
|
162
|
-
"api._api_base_domain_": [
|
|
163
|
-
{
|
|
164
|
-
srcPath: "/payments-collector",
|
|
165
|
-
destPath: ""
|
|
166
|
-
}
|
|
167
|
-
],
|
|
168
|
-
"www.wixapis.com": [
|
|
169
|
-
{
|
|
170
|
-
srcPath: "/ecom/v1/payments-collector",
|
|
171
|
-
destPath: "/v1/payments-collector"
|
|
172
|
-
}
|
|
173
|
-
],
|
|
174
|
-
"manage._base_domain_": [
|
|
175
|
-
{
|
|
176
|
-
srcPath: "/ecom/v1/payments-collector",
|
|
177
|
-
destPath: "/v1/payments-collector"
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
srcPath: "/_api/v1/payments-collector",
|
|
181
|
-
destPath: "/v1/payments-collector"
|
|
182
|
-
},
|
|
183
|
-
{
|
|
184
|
-
srcPath: "/v1/payments-collector",
|
|
185
|
-
destPath: "/v1/payments-collector"
|
|
186
|
-
},
|
|
187
|
-
{
|
|
188
|
-
srcPath: "/_api/payments-collector",
|
|
189
|
-
destPath: "/v1/payments-collector"
|
|
190
|
-
}
|
|
191
|
-
]
|
|
192
|
-
};
|
|
99
|
+
const domainToMappings = {};
|
|
193
100
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
194
101
|
}
|
|
195
102
|
var PACKAGE_NAME = "@wix/auto_sdk_ecom_orders";
|
|
196
|
-
function
|
|
197
|
-
function
|
|
198
|
-
const metadata = {
|
|
199
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
200
|
-
method: "POST",
|
|
201
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.PreparePaymentCollection",
|
|
202
|
-
packageName: PACKAGE_NAME,
|
|
203
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
204
|
-
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/prepare-payment-collection",
|
|
205
|
-
data: payload,
|
|
206
|
-
host
|
|
207
|
-
}),
|
|
208
|
-
data: payload
|
|
209
|
-
};
|
|
210
|
-
return metadata;
|
|
211
|
-
}
|
|
212
|
-
return __preparePaymentCollection;
|
|
213
|
-
}
|
|
214
|
-
function getPaymentCollectabilityStatus(payload) {
|
|
215
|
-
function __getPaymentCollectabilityStatus({ host }) {
|
|
103
|
+
function getOrder(payload) {
|
|
104
|
+
function __getOrder({ host }) {
|
|
216
105
|
const metadata = {
|
|
217
106
|
entityFqdn: "wix.ecom.v1.order",
|
|
218
107
|
method: "GET",
|
|
219
|
-
methodFqn: "com.wix.ecom.orders.
|
|
220
|
-
packageName: PACKAGE_NAME,
|
|
221
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
222
|
-
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/payment-collectability-status",
|
|
223
|
-
data: payload,
|
|
224
|
-
host
|
|
225
|
-
}),
|
|
226
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
227
|
-
};
|
|
228
|
-
return metadata;
|
|
229
|
-
}
|
|
230
|
-
return __getPaymentCollectabilityStatus;
|
|
231
|
-
}
|
|
232
|
-
function recordManuallyCollectedPayment(payload) {
|
|
233
|
-
function __recordManuallyCollectedPayment({ host }) {
|
|
234
|
-
const metadata = {
|
|
235
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
236
|
-
method: "POST",
|
|
237
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.RecordManuallyCollectedPayment",
|
|
238
|
-
packageName: PACKAGE_NAME,
|
|
239
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
240
|
-
protoPath: "/v1/payments-collector/orders/{orderId}/manual-payment",
|
|
241
|
-
data: payload,
|
|
242
|
-
host
|
|
243
|
-
}),
|
|
244
|
-
data: payload
|
|
245
|
-
};
|
|
246
|
-
return metadata;
|
|
247
|
-
}
|
|
248
|
-
return __recordManuallyCollectedPayment;
|
|
249
|
-
}
|
|
250
|
-
function paymentCollectionMarkOrderAsPaid(payload) {
|
|
251
|
-
function __paymentCollectionMarkOrderAsPaid({ host }) {
|
|
252
|
-
const metadata = {
|
|
253
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
254
|
-
method: "POST",
|
|
255
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.MarkOrderAsPaid",
|
|
108
|
+
methodFqn: "com.wix.ecom.orders.v1.Orders.GetOrder",
|
|
256
109
|
packageName: PACKAGE_NAME,
|
|
257
|
-
url:
|
|
258
|
-
protoPath: "/v1/
|
|
110
|
+
url: resolveComWixEcomOrdersV1OrdersUrl({
|
|
111
|
+
protoPath: "/v1/orders/{id}",
|
|
259
112
|
data: payload,
|
|
260
113
|
host
|
|
261
114
|
}),
|
|
262
|
-
|
|
115
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
263
116
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
264
117
|
{
|
|
265
118
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
@@ -306,17 +159,17 @@ function paymentCollectionMarkOrderAsPaid(payload) {
|
|
|
306
159
|
};
|
|
307
160
|
return metadata;
|
|
308
161
|
}
|
|
309
|
-
return
|
|
162
|
+
return __getOrder;
|
|
310
163
|
}
|
|
311
|
-
function
|
|
312
|
-
function
|
|
164
|
+
function searchOrders(payload) {
|
|
165
|
+
function __searchOrders({ host }) {
|
|
313
166
|
const metadata = {
|
|
314
167
|
entityFqdn: "wix.ecom.v1.order",
|
|
315
168
|
method: "POST",
|
|
316
|
-
methodFqn: "com.wix.ecom.orders.
|
|
169
|
+
methodFqn: "com.wix.ecom.orders.v1.Orders.SearchOrders",
|
|
317
170
|
packageName: PACKAGE_NAME,
|
|
318
|
-
url:
|
|
319
|
-
protoPath: "/v1/
|
|
171
|
+
url: resolveComWixEcomOrdersV1OrdersUrl({
|
|
172
|
+
protoPath: "/v1/orders/search",
|
|
320
173
|
data: payload,
|
|
321
174
|
host
|
|
322
175
|
}),
|
|
@@ -325,459 +178,153 @@ function paymentCollectionBulkMarkOrdersAsPaid(payload) {
|
|
|
325
178
|
{
|
|
326
179
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
327
180
|
paths: [
|
|
328
|
-
{ path: "
|
|
329
|
-
{ path: "
|
|
330
|
-
{ path: "
|
|
331
|
-
{ path: "
|
|
332
|
-
{ path: "
|
|
333
|
-
{
|
|
334
|
-
path: "results.item.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
335
|
-
},
|
|
336
|
-
{ path: "results.item.shippingInfo.logistics.deliverByDate" },
|
|
337
|
-
{
|
|
338
|
-
path: "results.item.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
339
|
-
},
|
|
181
|
+
{ path: "orders.createdDate" },
|
|
182
|
+
{ path: "orders.updatedDate" },
|
|
183
|
+
{ path: "orders.purchasedDate" },
|
|
184
|
+
{ path: "orders.lineItems.image.urlExpirationDate" },
|
|
185
|
+
{ path: "orders.lineItems.digitalFile.expirationDate" },
|
|
340
186
|
{
|
|
341
|
-
path: "
|
|
187
|
+
path: "orders.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
342
188
|
},
|
|
343
|
-
{ path: "
|
|
189
|
+
{ path: "orders.shippingInfo.logistics.deliverByDate" },
|
|
190
|
+
{ path: "orders.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
191
|
+
{ path: "orders.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
192
|
+
{ path: "orders.activities.createdDate" }
|
|
344
193
|
]
|
|
345
194
|
},
|
|
346
195
|
{
|
|
347
196
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
348
197
|
paths: [
|
|
349
|
-
{ path: "
|
|
350
|
-
{ path: "
|
|
351
|
-
{ path: "
|
|
352
|
-
{ path: "
|
|
353
|
-
{ path: "
|
|
198
|
+
{ path: "orders.lineItems.image.focalPoint.x" },
|
|
199
|
+
{ path: "orders.lineItems.image.focalPoint.y" },
|
|
200
|
+
{ path: "orders.lineItems.physicalProperties.weight" },
|
|
201
|
+
{ path: "orders.billingInfo.address.geocode.latitude" },
|
|
202
|
+
{ path: "orders.billingInfo.address.geocode.longitude" },
|
|
354
203
|
{
|
|
355
|
-
path: "
|
|
204
|
+
path: "orders.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
356
205
|
},
|
|
357
206
|
{
|
|
358
|
-
path: "
|
|
207
|
+
path: "orders.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
359
208
|
},
|
|
360
209
|
{
|
|
361
|
-
path: "
|
|
210
|
+
path: "orders.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
362
211
|
},
|
|
363
212
|
{
|
|
364
|
-
path: "
|
|
213
|
+
path: "orders.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
365
214
|
},
|
|
366
|
-
{ path: "
|
|
367
|
-
{ path: "
|
|
215
|
+
{ path: "orders.recipientInfo.address.geocode.latitude" },
|
|
216
|
+
{ path: "orders.recipientInfo.address.geocode.longitude" }
|
|
368
217
|
]
|
|
369
218
|
}
|
|
370
219
|
])
|
|
371
220
|
};
|
|
372
221
|
return metadata;
|
|
373
222
|
}
|
|
374
|
-
return
|
|
375
|
-
}
|
|
376
|
-
function getRefundabilityStatus(payload) {
|
|
377
|
-
function __getRefundabilityStatus({ host }) {
|
|
378
|
-
const metadata = {
|
|
379
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
380
|
-
method: "GET",
|
|
381
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.GetRefundabilityStatus",
|
|
382
|
-
packageName: PACKAGE_NAME,
|
|
383
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
384
|
-
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/refundability",
|
|
385
|
-
data: payload,
|
|
386
|
-
host
|
|
387
|
-
}),
|
|
388
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
389
|
-
};
|
|
390
|
-
return metadata;
|
|
391
|
-
}
|
|
392
|
-
return __getRefundabilityStatus;
|
|
393
|
-
}
|
|
394
|
-
function paymentCollectionCreatePaymentGatewayOrder(payload) {
|
|
395
|
-
function __paymentCollectionCreatePaymentGatewayOrder({ host }) {
|
|
396
|
-
const metadata = {
|
|
397
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
398
|
-
method: "POST",
|
|
399
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.CreatePaymentGatewayOrder",
|
|
400
|
-
packageName: PACKAGE_NAME,
|
|
401
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
402
|
-
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/create-payment-gateway-order",
|
|
403
|
-
data: payload,
|
|
404
|
-
host
|
|
405
|
-
}),
|
|
406
|
-
data: payload
|
|
407
|
-
};
|
|
408
|
-
return metadata;
|
|
409
|
-
}
|
|
410
|
-
return __paymentCollectionCreatePaymentGatewayOrder;
|
|
223
|
+
return __searchOrders;
|
|
411
224
|
}
|
|
412
|
-
function
|
|
413
|
-
function
|
|
225
|
+
function createOrder(payload) {
|
|
226
|
+
function __createOrder({ host }) {
|
|
414
227
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
415
228
|
{
|
|
416
229
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
417
|
-
paths: [
|
|
230
|
+
paths: [
|
|
231
|
+
{ path: "order.createdDate" },
|
|
232
|
+
{ path: "order.updatedDate" },
|
|
233
|
+
{ path: "order.purchasedDate" },
|
|
234
|
+
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
235
|
+
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
236
|
+
{
|
|
237
|
+
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
238
|
+
},
|
|
239
|
+
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
240
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
241
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
242
|
+
{ path: "order.activities.createdDate" }
|
|
243
|
+
]
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
247
|
+
paths: [
|
|
248
|
+
{ path: "order.lineItems.image.focalPoint.x" },
|
|
249
|
+
{ path: "order.lineItems.image.focalPoint.y" },
|
|
250
|
+
{ path: "order.lineItems.physicalProperties.weight" },
|
|
251
|
+
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
252
|
+
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
253
|
+
{
|
|
254
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
264
|
+
},
|
|
265
|
+
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
266
|
+
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
267
|
+
]
|
|
418
268
|
}
|
|
419
269
|
]);
|
|
420
270
|
const metadata = {
|
|
421
271
|
entityFqdn: "wix.ecom.v1.order",
|
|
422
272
|
method: "POST",
|
|
423
|
-
methodFqn: "com.wix.ecom.orders.
|
|
273
|
+
methodFqn: "com.wix.ecom.orders.v1.Orders.CreateOrder",
|
|
424
274
|
packageName: PACKAGE_NAME,
|
|
425
|
-
url:
|
|
426
|
-
protoPath: "/v1/
|
|
275
|
+
url: resolveComWixEcomOrdersV1OrdersUrl({
|
|
276
|
+
protoPath: "/v1/orders",
|
|
427
277
|
data: serializedData,
|
|
428
278
|
host
|
|
429
279
|
}),
|
|
430
|
-
data: serializedData
|
|
431
|
-
};
|
|
432
|
-
return metadata;
|
|
433
|
-
}
|
|
434
|
-
return __chargeMemberships;
|
|
435
|
-
}
|
|
436
|
-
function triggerRefund(payload) {
|
|
437
|
-
function __triggerRefund({ host }) {
|
|
438
|
-
const metadata = {
|
|
439
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
440
|
-
method: "POST",
|
|
441
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.TriggerRefund",
|
|
442
|
-
packageName: PACKAGE_NAME,
|
|
443
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
444
|
-
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/trigger-refund",
|
|
445
|
-
data: payload,
|
|
446
|
-
host
|
|
447
|
-
}),
|
|
448
|
-
data: payload,
|
|
280
|
+
data: serializedData,
|
|
449
281
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
450
282
|
{
|
|
451
283
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
452
284
|
paths: [
|
|
453
|
-
{ path: "
|
|
454
|
-
{ path: "
|
|
455
|
-
{
|
|
456
|
-
|
|
457
|
-
},
|
|
458
|
-
{
|
|
459
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
460
|
-
},
|
|
461
|
-
{
|
|
462
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
463
|
-
},
|
|
285
|
+
{ path: "order.createdDate" },
|
|
286
|
+
{ path: "order.updatedDate" },
|
|
287
|
+
{ path: "order.purchasedDate" },
|
|
288
|
+
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
289
|
+
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
464
290
|
{
|
|
465
|
-
path: "
|
|
291
|
+
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
466
292
|
},
|
|
467
|
-
{ path: "
|
|
293
|
+
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
294
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
295
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
296
|
+
{ path: "order.activities.createdDate" }
|
|
468
297
|
]
|
|
469
|
-
}
|
|
470
|
-
])
|
|
471
|
-
};
|
|
472
|
-
return metadata;
|
|
473
|
-
}
|
|
474
|
-
return __triggerRefund;
|
|
475
|
-
}
|
|
476
|
-
function voidAuthorizedPayments(payload) {
|
|
477
|
-
function __voidAuthorizedPayments({ host }) {
|
|
478
|
-
const metadata = {
|
|
479
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
480
|
-
method: "POST",
|
|
481
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.VoidAuthorizedPayments",
|
|
482
|
-
packageName: PACKAGE_NAME,
|
|
483
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
484
|
-
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/void-authorized-payments",
|
|
485
|
-
data: payload,
|
|
486
|
-
host
|
|
487
|
-
}),
|
|
488
|
-
data: payload,
|
|
489
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
298
|
+
},
|
|
490
299
|
{
|
|
491
|
-
transformFn:
|
|
300
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
492
301
|
paths: [
|
|
493
|
-
{ path: "
|
|
494
|
-
{ path: "
|
|
302
|
+
{ path: "order.lineItems.image.focalPoint.x" },
|
|
303
|
+
{ path: "order.lineItems.image.focalPoint.y" },
|
|
304
|
+
{ path: "order.lineItems.physicalProperties.weight" },
|
|
305
|
+
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
306
|
+
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
495
307
|
{
|
|
496
|
-
path: "
|
|
308
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
497
309
|
},
|
|
498
310
|
{
|
|
499
|
-
path: "
|
|
311
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
500
312
|
},
|
|
501
313
|
{
|
|
502
|
-
path: "
|
|
314
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
503
315
|
},
|
|
504
316
|
{
|
|
505
|
-
path: "
|
|
317
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
506
318
|
},
|
|
507
|
-
{ path: "
|
|
319
|
+
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
320
|
+
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
508
321
|
]
|
|
509
322
|
}
|
|
510
323
|
])
|
|
511
324
|
};
|
|
512
325
|
return metadata;
|
|
513
326
|
}
|
|
514
|
-
return
|
|
515
|
-
}
|
|
516
|
-
function captureAuthorizedPayments(payload) {
|
|
517
|
-
function __captureAuthorizedPayments({ host }) {
|
|
518
|
-
const metadata = {
|
|
519
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
520
|
-
method: "POST",
|
|
521
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.CaptureAuthorizedPayments",
|
|
522
|
-
packageName: PACKAGE_NAME,
|
|
523
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
524
|
-
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/capture-authorized-payments",
|
|
525
|
-
data: payload,
|
|
526
|
-
host
|
|
527
|
-
}),
|
|
528
|
-
data: payload,
|
|
529
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
530
|
-
{
|
|
531
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
532
|
-
paths: [
|
|
533
|
-
{ path: "orderTransactions.payments.createdDate" },
|
|
534
|
-
{ path: "orderTransactions.payments.updatedDate" },
|
|
535
|
-
{
|
|
536
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
|
|
537
|
-
},
|
|
538
|
-
{
|
|
539
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
540
|
-
},
|
|
541
|
-
{
|
|
542
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
543
|
-
},
|
|
544
|
-
{
|
|
545
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
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;
|
|
327
|
+
return __createOrder;
|
|
781
328
|
}
|
|
782
329
|
function updateOrder(payload) {
|
|
783
330
|
function __updateOrder({ host }) {
|
|
@@ -1642,685 +1189,157 @@ var DiscountReason = /* @__PURE__ */ ((DiscountReason2) => {
|
|
|
1642
1189
|
return DiscountReason2;
|
|
1643
1190
|
})(DiscountReason || {});
|
|
1644
1191
|
var LineItemQuantityChangeType = /* @__PURE__ */ ((LineItemQuantityChangeType2) => {
|
|
1645
|
-
LineItemQuantityChangeType2["QUANTITY_INCREASED"] = "QUANTITY_INCREASED";
|
|
1646
|
-
LineItemQuantityChangeType2["QUANTITY_DECREASED"] = "QUANTITY_DECREASED";
|
|
1647
|
-
return LineItemQuantityChangeType2;
|
|
1648
|
-
})(LineItemQuantityChangeType || {});
|
|
1649
|
-
var ActivityType = /* @__PURE__ */ ((ActivityType2) => {
|
|
1650
|
-
ActivityType2["ORDER_REFUNDED"] = "ORDER_REFUNDED";
|
|
1651
|
-
ActivityType2["ORDER_PLACED"] = "ORDER_PLACED";
|
|
1652
|
-
ActivityType2["ORDER_PAID"] = "ORDER_PAID";
|
|
1653
|
-
ActivityType2["ORDER_FULFILLED"] = "ORDER_FULFILLED";
|
|
1654
|
-
ActivityType2["ORDER_NOT_FULFILLED"] = "ORDER_NOT_FULFILLED";
|
|
1655
|
-
ActivityType2["ORDER_CANCELED"] = "ORDER_CANCELED";
|
|
1656
|
-
ActivityType2["DOWNLOAD_LINK_SENT"] = "DOWNLOAD_LINK_SENT";
|
|
1657
|
-
ActivityType2["TRACKING_NUMBER_ADDED"] = "TRACKING_NUMBER_ADDED";
|
|
1658
|
-
ActivityType2["TRACKING_NUMBER_EDITED"] = "TRACKING_NUMBER_EDITED";
|
|
1659
|
-
ActivityType2["TRACKING_LINK_ADDED"] = "TRACKING_LINK_ADDED";
|
|
1660
|
-
ActivityType2["SHIPPING_CONFIRMATION_EMAIL_SENT"] = "SHIPPING_CONFIRMATION_EMAIL_SENT";
|
|
1661
|
-
ActivityType2["INVOICE_ADDED"] = "INVOICE_ADDED";
|
|
1662
|
-
ActivityType2["INVOICE_REMOVED"] = "INVOICE_REMOVED";
|
|
1663
|
-
ActivityType2["INVOICE_SENT"] = "INVOICE_SENT";
|
|
1664
|
-
ActivityType2["FULFILLER_EMAIL_SENT"] = "FULFILLER_EMAIL_SENT";
|
|
1665
|
-
ActivityType2["SHIPPING_ADDRESS_EDITED"] = "SHIPPING_ADDRESS_EDITED";
|
|
1666
|
-
ActivityType2["EMAIL_EDITED"] = "EMAIL_EDITED";
|
|
1667
|
-
ActivityType2["PICKUP_READY_EMAIL_SENT"] = "PICKUP_READY_EMAIL_SENT";
|
|
1668
|
-
ActivityType2["CUSTOM_ACTIVITY"] = "CUSTOM_ACTIVITY";
|
|
1669
|
-
ActivityType2["MERCHANT_COMMENT"] = "MERCHANT_COMMENT";
|
|
1670
|
-
ActivityType2["ORDER_CREATED_FROM_EXCHANGE"] = "ORDER_CREATED_FROM_EXCHANGE";
|
|
1671
|
-
ActivityType2["NEW_EXCHANGE_ORDER_CREATED"] = "NEW_EXCHANGE_ORDER_CREATED";
|
|
1672
|
-
ActivityType2["ORDER_PARTIALLY_PAID"] = "ORDER_PARTIALLY_PAID";
|
|
1673
|
-
ActivityType2["DRAFT_ORDER_CHANGES_APPLIED"] = "DRAFT_ORDER_CHANGES_APPLIED";
|
|
1674
|
-
ActivityType2["SAVED_PAYMENT_METHOD"] = "SAVED_PAYMENT_METHOD";
|
|
1675
|
-
ActivityType2["PAYMENT_PENDING"] = "PAYMENT_PENDING";
|
|
1676
|
-
ActivityType2["PAYMENT_CANCELED"] = "PAYMENT_CANCELED";
|
|
1677
|
-
ActivityType2["PAYMENT_DECLINED"] = "PAYMENT_DECLINED";
|
|
1678
|
-
ActivityType2["ORDER_PENDING"] = "ORDER_PENDING";
|
|
1679
|
-
ActivityType2["ORDER_REJECTED"] = "ORDER_REJECTED";
|
|
1680
|
-
return ActivityType2;
|
|
1681
|
-
})(ActivityType || {});
|
|
1682
|
-
var AttributionSource = /* @__PURE__ */ ((AttributionSource2) => {
|
|
1683
|
-
AttributionSource2["UNSPECIFIED"] = "UNSPECIFIED";
|
|
1684
|
-
AttributionSource2["FACEBOOK_ADS"] = "FACEBOOK_ADS";
|
|
1685
|
-
return AttributionSource2;
|
|
1686
|
-
})(AttributionSource || {});
|
|
1687
|
-
var ChannelType = /* @__PURE__ */ ((ChannelType2) => {
|
|
1688
|
-
ChannelType2["UNSPECIFIED"] = "UNSPECIFIED";
|
|
1689
|
-
ChannelType2["WEB"] = "WEB";
|
|
1690
|
-
ChannelType2["POS"] = "POS";
|
|
1691
|
-
ChannelType2["EBAY"] = "EBAY";
|
|
1692
|
-
ChannelType2["AMAZON"] = "AMAZON";
|
|
1693
|
-
ChannelType2["OTHER_PLATFORM"] = "OTHER_PLATFORM";
|
|
1694
|
-
ChannelType2["WIX_APP_STORE"] = "WIX_APP_STORE";
|
|
1695
|
-
ChannelType2["WIX_INVOICES"] = "WIX_INVOICES";
|
|
1696
|
-
ChannelType2["BACKOFFICE_MERCHANT"] = "BACKOFFICE_MERCHANT";
|
|
1697
|
-
ChannelType2["WISH"] = "WISH";
|
|
1698
|
-
ChannelType2["CLASS_PASS"] = "CLASS_PASS";
|
|
1699
|
-
ChannelType2["GLOBAL_E"] = "GLOBAL_E";
|
|
1700
|
-
ChannelType2["FACEBOOK"] = "FACEBOOK";
|
|
1701
|
-
ChannelType2["ETSY"] = "ETSY";
|
|
1702
|
-
ChannelType2["TIKTOK"] = "TIKTOK";
|
|
1703
|
-
ChannelType2["FAIRE_COM"] = "FAIRE_COM";
|
|
1704
|
-
return ChannelType2;
|
|
1705
|
-
})(ChannelType || {});
|
|
1706
|
-
var
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
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
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
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
|
-
var TextDetection = /* @__PURE__ */ ((TextDetection2) => {
|
|
1832
|
-
TextDetection2["UNKNOWN_TEXT_DETECTION"] = "UNKNOWN_TEXT_DETECTION";
|
|
1833
|
-
TextDetection2["CONTAINS_TEXT"] = "CONTAINS_TEXT";
|
|
1834
|
-
TextDetection2["NO_TEXT"] = "NO_TEXT";
|
|
1835
|
-
return TextDetection2;
|
|
1836
|
-
})(TextDetection || {});
|
|
1837
|
-
var AnimationDetection = /* @__PURE__ */ ((AnimationDetection2) => {
|
|
1838
|
-
AnimationDetection2["UNKNOWN_ANIMATION_DETECTION"] = "UNKNOWN_ANIMATION_DETECTION";
|
|
1839
|
-
AnimationDetection2["CONTAINS_ANIMATION"] = "CONTAINS_ANIMATION";
|
|
1840
|
-
AnimationDetection2["NO_ANIMATION"] = "NO_ANIMATION";
|
|
1841
|
-
return AnimationDetection2;
|
|
1842
|
-
})(AnimationDetection || {});
|
|
1843
|
-
var PreviewEmailType = /* @__PURE__ */ ((PreviewEmailType2) => {
|
|
1844
|
-
PreviewEmailType2["ORDER_PLACED"] = "ORDER_PLACED";
|
|
1845
|
-
PreviewEmailType2["DOWNLOAD_LINKS"] = "DOWNLOAD_LINKS";
|
|
1846
|
-
PreviewEmailType2["ORDER_SHIPPED"] = "ORDER_SHIPPED";
|
|
1847
|
-
PreviewEmailType2["ORDER_READY_FOR_PICKUP"] = "ORDER_READY_FOR_PICKUP";
|
|
1848
|
-
return PreviewEmailType2;
|
|
1849
|
-
})(PreviewEmailType || {});
|
|
1850
|
-
var State = /* @__PURE__ */ ((State2) => {
|
|
1851
|
-
State2["UNKNOWN"] = "UNKNOWN";
|
|
1852
|
-
State2["ENABLED"] = "ENABLED";
|
|
1853
|
-
State2["DISABLED"] = "DISABLED";
|
|
1854
|
-
State2["TEMPLATE"] = "TEMPLATE";
|
|
1855
|
-
State2["PENDING"] = "PENDING";
|
|
1856
|
-
return State2;
|
|
1857
|
-
})(State || {});
|
|
1858
|
-
var Namespace = /* @__PURE__ */ ((Namespace2) => {
|
|
1859
|
-
Namespace2["UNKNOWN_NAMESPACE"] = "UNKNOWN_NAMESPACE";
|
|
1860
|
-
Namespace2["WIX"] = "WIX";
|
|
1861
|
-
Namespace2["SHOUT_OUT"] = "SHOUT_OUT";
|
|
1862
|
-
Namespace2["ALBUMS"] = "ALBUMS";
|
|
1863
|
-
Namespace2["WIX_STORES_TEST_DRIVE"] = "WIX_STORES_TEST_DRIVE";
|
|
1864
|
-
Namespace2["HOTELS"] = "HOTELS";
|
|
1865
|
-
Namespace2["CLUBS"] = "CLUBS";
|
|
1866
|
-
Namespace2["ONBOARDING_DRAFT"] = "ONBOARDING_DRAFT";
|
|
1867
|
-
Namespace2["DEV_SITE"] = "DEV_SITE";
|
|
1868
|
-
Namespace2["LOGOS"] = "LOGOS";
|
|
1869
|
-
Namespace2["VIDEO_MAKER"] = "VIDEO_MAKER";
|
|
1870
|
-
Namespace2["PARTNER_DASHBOARD"] = "PARTNER_DASHBOARD";
|
|
1871
|
-
Namespace2["DEV_CENTER_COMPANY"] = "DEV_CENTER_COMPANY";
|
|
1872
|
-
Namespace2["HTML_DRAFT"] = "HTML_DRAFT";
|
|
1873
|
-
Namespace2["SITELESS_BUSINESS"] = "SITELESS_BUSINESS";
|
|
1874
|
-
Namespace2["CREATOR_ECONOMY"] = "CREATOR_ECONOMY";
|
|
1875
|
-
Namespace2["DASHBOARD_FIRST"] = "DASHBOARD_FIRST";
|
|
1876
|
-
Namespace2["ANYWHERE"] = "ANYWHERE";
|
|
1877
|
-
Namespace2["HEADLESS"] = "HEADLESS";
|
|
1878
|
-
Namespace2["ACCOUNT_MASTER_CMS"] = "ACCOUNT_MASTER_CMS";
|
|
1879
|
-
Namespace2["RISE"] = "RISE";
|
|
1880
|
-
Namespace2["BRANDED_FIRST"] = "BRANDED_FIRST";
|
|
1881
|
-
Namespace2["NOWNIA"] = "NOWNIA";
|
|
1882
|
-
Namespace2["UGC_TEMPLATE"] = "UGC_TEMPLATE";
|
|
1883
|
-
Namespace2["CODUX"] = "CODUX";
|
|
1884
|
-
Namespace2["MEDIA_DESIGN_CREATOR"] = "MEDIA_DESIGN_CREATOR";
|
|
1885
|
-
Namespace2["SHARED_BLOG_ENTERPRISE"] = "SHARED_BLOG_ENTERPRISE";
|
|
1886
|
-
Namespace2["STANDALONE_FORMS"] = "STANDALONE_FORMS";
|
|
1887
|
-
Namespace2["STANDALONE_EVENTS"] = "STANDALONE_EVENTS";
|
|
1888
|
-
Namespace2["MIMIR"] = "MIMIR";
|
|
1889
|
-
return Namespace2;
|
|
1890
|
-
})(Namespace || {});
|
|
1891
|
-
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
1892
|
-
SortOrder2["ASC"] = "ASC";
|
|
1893
|
-
SortOrder2["DESC"] = "DESC";
|
|
1894
|
-
return SortOrder2;
|
|
1895
|
-
})(SortOrder || {});
|
|
1896
|
-
var VersioningMode = /* @__PURE__ */ ((VersioningMode2) => {
|
|
1897
|
-
VersioningMode2["DEFAULT"] = "DEFAULT";
|
|
1898
|
-
VersioningMode2["GREATER_THAN"] = "GREATER_THAN";
|
|
1899
|
-
VersioningMode2["GREATER_OR_EQUAL"] = "GREATER_OR_EQUAL";
|
|
1900
|
-
return VersioningMode2;
|
|
1901
|
-
})(VersioningMode || {});
|
|
1902
|
-
var OrderApprovalStrategy = /* @__PURE__ */ ((OrderApprovalStrategy2) => {
|
|
1903
|
-
OrderApprovalStrategy2["DEFAULT"] = "DEFAULT";
|
|
1904
|
-
OrderApprovalStrategy2["PAYMENT_RECEIVED"] = "PAYMENT_RECEIVED";
|
|
1905
|
-
OrderApprovalStrategy2["PAYMENT_METHOD_SAVED"] = "PAYMENT_METHOD_SAVED";
|
|
1906
|
-
return OrderApprovalStrategy2;
|
|
1907
|
-
})(OrderApprovalStrategy || {});
|
|
1908
|
-
var DeltaPaymentOptionType = /* @__PURE__ */ ((DeltaPaymentOptionType2) => {
|
|
1909
|
-
DeltaPaymentOptionType2["UNKNOWN_PAYMENT_OPTION"] = "UNKNOWN_PAYMENT_OPTION";
|
|
1910
|
-
DeltaPaymentOptionType2["FULL_PAYMENT_OFFLINE"] = "FULL_PAYMENT_OFFLINE";
|
|
1911
|
-
DeltaPaymentOptionType2["MEMBERSHIP_OFFLINE"] = "MEMBERSHIP_OFFLINE";
|
|
1912
|
-
return DeltaPaymentOptionType2;
|
|
1913
|
-
})(DeltaPaymentOptionType || {});
|
|
1914
|
-
var InventoryAction = /* @__PURE__ */ ((InventoryAction2) => {
|
|
1915
|
-
InventoryAction2["RESTOCK"] = "RESTOCK";
|
|
1916
|
-
InventoryAction2["DECREASE"] = "DECREASE";
|
|
1917
|
-
return InventoryAction2;
|
|
1918
|
-
})(InventoryAction || {});
|
|
1919
|
-
var Placement = /* @__PURE__ */ ((Placement2) => {
|
|
1920
|
-
Placement2["Unknown"] = "Unknown";
|
|
1921
|
-
Placement2["Replace"] = "Replace";
|
|
1922
|
-
Placement2["Before"] = "Before";
|
|
1923
|
-
Placement2["After"] = "After";
|
|
1924
|
-
return Placement2;
|
|
1925
|
-
})(Placement || {});
|
|
1926
|
-
var SubdivisionType = /* @__PURE__ */ ((SubdivisionType2) => {
|
|
1927
|
-
SubdivisionType2["UNKNOWN_SUBDIVISION_TYPE"] = "UNKNOWN_SUBDIVISION_TYPE";
|
|
1928
|
-
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_1"] = "ADMINISTRATIVE_AREA_LEVEL_1";
|
|
1929
|
-
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_2"] = "ADMINISTRATIVE_AREA_LEVEL_2";
|
|
1930
|
-
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_3"] = "ADMINISTRATIVE_AREA_LEVEL_3";
|
|
1931
|
-
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_4"] = "ADMINISTRATIVE_AREA_LEVEL_4";
|
|
1932
|
-
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_5"] = "ADMINISTRATIVE_AREA_LEVEL_5";
|
|
1933
|
-
SubdivisionType2["COUNTRY"] = "COUNTRY";
|
|
1934
|
-
return SubdivisionType2;
|
|
1935
|
-
})(SubdivisionType || {});
|
|
1936
|
-
var SourceType = /* @__PURE__ */ ((SourceType2) => {
|
|
1937
|
-
SourceType2["UNKNOWN_SOURCE_TYPE"] = "UNKNOWN_SOURCE_TYPE";
|
|
1938
|
-
SourceType2["WIX_APP"] = "WIX_APP";
|
|
1939
|
-
SourceType2["EXTERNAL"] = "EXTERNAL";
|
|
1940
|
-
SourceType2["ADMIN"] = "ADMIN";
|
|
1941
|
-
SourceType2["OTHER"] = "OTHER";
|
|
1942
|
-
return SourceType2;
|
|
1943
|
-
})(SourceType || {});
|
|
1944
|
-
var CustomFieldGroup = /* @__PURE__ */ ((CustomFieldGroup2) => {
|
|
1945
|
-
CustomFieldGroup2["UNKNOWN_CUSTOM_FIELD_GROUP"] = "UNKNOWN_CUSTOM_FIELD_GROUP";
|
|
1946
|
-
CustomFieldGroup2["BUSINESS_DETAILS"] = "BUSINESS_DETAILS";
|
|
1947
|
-
CustomFieldGroup2["CUSTOMER_DETAILS"] = "CUSTOMER_DETAILS";
|
|
1948
|
-
CustomFieldGroup2["DOCUMENT"] = "DOCUMENT";
|
|
1949
|
-
CustomFieldGroup2["FOOTER"] = "FOOTER";
|
|
1950
|
-
CustomFieldGroup2["OTHER"] = "OTHER";
|
|
1951
|
-
return CustomFieldGroup2;
|
|
1952
|
-
})(CustomFieldGroup || {});
|
|
1953
|
-
var ValueType = /* @__PURE__ */ ((ValueType2) => {
|
|
1954
|
-
ValueType2["UNKNOWN_VALUE_TYPE"] = "UNKNOWN_VALUE_TYPE";
|
|
1955
|
-
ValueType2["STRING"] = "STRING";
|
|
1956
|
-
ValueType2["DATE"] = "DATE";
|
|
1957
|
-
ValueType2["BOOLEAN"] = "BOOLEAN";
|
|
1958
|
-
ValueType2["NUMBER"] = "NUMBER";
|
|
1959
|
-
return ValueType2;
|
|
1960
|
-
})(ValueType || {});
|
|
1961
|
-
var DepositType = /* @__PURE__ */ ((DepositType2) => {
|
|
1962
|
-
DepositType2["UNKNOWN"] = "UNKNOWN";
|
|
1963
|
-
DepositType2["FLAT"] = "FLAT";
|
|
1964
|
-
DepositType2["PERCENTAGE"] = "PERCENTAGE";
|
|
1965
|
-
return DepositType2;
|
|
1966
|
-
})(DepositType || {});
|
|
1967
|
-
var InvoiceStatus = /* @__PURE__ */ ((InvoiceStatus2) => {
|
|
1968
|
-
InvoiceStatus2["Draft"] = "Draft";
|
|
1969
|
-
InvoiceStatus2["Sent"] = "Sent";
|
|
1970
|
-
InvoiceStatus2["Processing"] = "Processing";
|
|
1971
|
-
InvoiceStatus2["Paid"] = "Paid";
|
|
1972
|
-
InvoiceStatus2["Overdue"] = "Overdue";
|
|
1973
|
-
InvoiceStatus2["Void"] = "Void";
|
|
1974
|
-
InvoiceStatus2["Deleted"] = "Deleted";
|
|
1975
|
-
InvoiceStatus2["PartiallyPaid"] = "PartiallyPaid";
|
|
1976
|
-
InvoiceStatus2["PartialAndOverdue"] = "PartialAndOverdue";
|
|
1977
|
-
return InvoiceStatus2;
|
|
1978
|
-
})(InvoiceStatus || {});
|
|
1979
|
-
async function preparePaymentCollection2(ecomOrderId, amount, options) {
|
|
1980
|
-
const { httpClient, sideEffects } = arguments[3];
|
|
1981
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1982
|
-
ecomOrderId,
|
|
1983
|
-
amount,
|
|
1984
|
-
paymentGatewayOrderId: options?.paymentGatewayOrderId,
|
|
1985
|
-
delayedCapture: options?.delayedCapture,
|
|
1986
|
-
delayedCaptureSettings: options?.delayedCaptureSettings
|
|
1987
|
-
});
|
|
1988
|
-
const reqOpts = preparePaymentCollection(payload);
|
|
1989
|
-
sideEffects?.onSiteCall?.();
|
|
1990
|
-
try {
|
|
1991
|
-
const result = await httpClient.request(reqOpts);
|
|
1992
|
-
sideEffects?.onSuccess?.(result);
|
|
1993
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1994
|
-
} catch (err) {
|
|
1995
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
1996
|
-
err,
|
|
1997
|
-
{
|
|
1998
|
-
spreadPathsToArguments: {},
|
|
1999
|
-
explicitPathsToArguments: {
|
|
2000
|
-
ecomOrderId: "$[0]",
|
|
2001
|
-
amount: "$[1]",
|
|
2002
|
-
paymentGatewayOrderId: "$[2].paymentGatewayOrderId",
|
|
2003
|
-
delayedCapture: "$[2].delayedCapture",
|
|
2004
|
-
delayedCaptureSettings: "$[2].delayedCaptureSettings"
|
|
2005
|
-
},
|
|
2006
|
-
singleArgumentUnchanged: false
|
|
2007
|
-
},
|
|
2008
|
-
["ecomOrderId", "amount", "options"]
|
|
2009
|
-
);
|
|
2010
|
-
sideEffects?.onError?.(err);
|
|
2011
|
-
throw transformedError;
|
|
2012
|
-
}
|
|
2013
|
-
}
|
|
2014
|
-
async function getPaymentCollectabilityStatus2(ecomOrderId) {
|
|
2015
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
2016
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2017
|
-
ecomOrderId
|
|
2018
|
-
});
|
|
2019
|
-
const reqOpts = getPaymentCollectabilityStatus(payload);
|
|
2020
|
-
sideEffects?.onSiteCall?.();
|
|
2021
|
-
try {
|
|
2022
|
-
const result = await httpClient.request(reqOpts);
|
|
2023
|
-
sideEffects?.onSuccess?.(result);
|
|
2024
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2025
|
-
} catch (err) {
|
|
2026
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
2027
|
-
err,
|
|
2028
|
-
{
|
|
2029
|
-
spreadPathsToArguments: {},
|
|
2030
|
-
explicitPathsToArguments: { ecomOrderId: "$[0]" },
|
|
2031
|
-
singleArgumentUnchanged: false
|
|
2032
|
-
},
|
|
2033
|
-
["ecomOrderId"]
|
|
2034
|
-
);
|
|
2035
|
-
sideEffects?.onError?.(err);
|
|
2036
|
-
throw transformedError;
|
|
2037
|
-
}
|
|
2038
|
-
}
|
|
2039
|
-
async function recordManuallyCollectedPayment2(orderId, amount) {
|
|
2040
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
2041
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2042
|
-
orderId,
|
|
2043
|
-
amount
|
|
2044
|
-
});
|
|
2045
|
-
const reqOpts = recordManuallyCollectedPayment(payload);
|
|
2046
|
-
sideEffects?.onSiteCall?.();
|
|
2047
|
-
try {
|
|
2048
|
-
const result = await httpClient.request(reqOpts);
|
|
2049
|
-
sideEffects?.onSuccess?.(result);
|
|
2050
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2051
|
-
} catch (err) {
|
|
2052
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
2053
|
-
err,
|
|
2054
|
-
{
|
|
2055
|
-
spreadPathsToArguments: {},
|
|
2056
|
-
explicitPathsToArguments: { orderId: "$[0]", amount: "$[1]" },
|
|
2057
|
-
singleArgumentUnchanged: false
|
|
2058
|
-
},
|
|
2059
|
-
["orderId", "amount"]
|
|
2060
|
-
);
|
|
2061
|
-
sideEffects?.onError?.(err);
|
|
2062
|
-
throw transformedError;
|
|
2063
|
-
}
|
|
2064
|
-
}
|
|
2065
|
-
async function paymentCollectionMarkOrderAsPaid2(ecomOrderId) {
|
|
2066
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
2067
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2068
|
-
ecomOrderId
|
|
2069
|
-
});
|
|
2070
|
-
const reqOpts = paymentCollectionMarkOrderAsPaid(payload);
|
|
2071
|
-
sideEffects?.onSiteCall?.();
|
|
2072
|
-
try {
|
|
2073
|
-
const result = await httpClient.request(reqOpts);
|
|
2074
|
-
sideEffects?.onSuccess?.(result);
|
|
2075
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
2076
|
-
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
2077
|
-
{
|
|
2078
|
-
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
2079
|
-
paths: [{ path: "order.lineItems.image" }]
|
|
2080
|
-
},
|
|
2081
|
-
{
|
|
2082
|
-
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
2083
|
-
paths: [
|
|
2084
|
-
{ path: "order.billingInfo.address" },
|
|
2085
|
-
{
|
|
2086
|
-
path: "order.shippingInfo.logistics.shippingDestination.address"
|
|
2087
|
-
},
|
|
2088
|
-
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
2089
|
-
{ path: "order.recipientInfo.address" }
|
|
2090
|
-
]
|
|
2091
|
-
}
|
|
2092
|
-
])
|
|
2093
|
-
);
|
|
2094
|
-
} catch (err) {
|
|
2095
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
2096
|
-
err,
|
|
2097
|
-
{
|
|
2098
|
-
spreadPathsToArguments: {},
|
|
2099
|
-
explicitPathsToArguments: { ecomOrderId: "$[0]" },
|
|
2100
|
-
singleArgumentUnchanged: false
|
|
2101
|
-
},
|
|
2102
|
-
["ecomOrderId"]
|
|
2103
|
-
);
|
|
2104
|
-
sideEffects?.onError?.(err);
|
|
2105
|
-
throw transformedError;
|
|
2106
|
-
}
|
|
2107
|
-
}
|
|
2108
|
-
async function paymentCollectionBulkMarkOrdersAsPaid2(ecomOrderIds) {
|
|
2109
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
2110
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2111
|
-
ecomOrderIds
|
|
2112
|
-
});
|
|
2113
|
-
const reqOpts = paymentCollectionBulkMarkOrdersAsPaid(payload);
|
|
2114
|
-
sideEffects?.onSiteCall?.();
|
|
2115
|
-
try {
|
|
2116
|
-
const result = await httpClient.request(reqOpts);
|
|
2117
|
-
sideEffects?.onSuccess?.(result);
|
|
2118
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
2119
|
-
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
2120
|
-
{
|
|
2121
|
-
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
2122
|
-
paths: [{ path: "results.item.lineItems.image" }]
|
|
2123
|
-
},
|
|
2124
|
-
{
|
|
2125
|
-
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
2126
|
-
paths: [
|
|
2127
|
-
{ path: "results.item.billingInfo.address" },
|
|
2128
|
-
{
|
|
2129
|
-
path: "results.item.shippingInfo.logistics.shippingDestination.address"
|
|
2130
|
-
},
|
|
2131
|
-
{
|
|
2132
|
-
path: "results.item.shippingInfo.logistics.pickupDetails.address"
|
|
2133
|
-
},
|
|
2134
|
-
{ path: "results.item.recipientInfo.address" }
|
|
2135
|
-
]
|
|
2136
|
-
}
|
|
2137
|
-
])
|
|
2138
|
-
);
|
|
2139
|
-
} catch (err) {
|
|
2140
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
2141
|
-
err,
|
|
2142
|
-
{
|
|
2143
|
-
spreadPathsToArguments: {},
|
|
2144
|
-
explicitPathsToArguments: { ecomOrderIds: "$[0]" },
|
|
2145
|
-
singleArgumentUnchanged: false
|
|
2146
|
-
},
|
|
2147
|
-
["ecomOrderIds"]
|
|
2148
|
-
);
|
|
2149
|
-
sideEffects?.onError?.(err);
|
|
2150
|
-
throw transformedError;
|
|
2151
|
-
}
|
|
2152
|
-
}
|
|
2153
|
-
async function getRefundabilityStatus2(ecomOrderId) {
|
|
2154
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
2155
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2156
|
-
ecomOrderId
|
|
2157
|
-
});
|
|
2158
|
-
const reqOpts = getRefundabilityStatus(payload);
|
|
2159
|
-
sideEffects?.onSiteCall?.();
|
|
2160
|
-
try {
|
|
2161
|
-
const result = await httpClient.request(reqOpts);
|
|
2162
|
-
sideEffects?.onSuccess?.(result);
|
|
2163
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2164
|
-
} catch (err) {
|
|
2165
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
2166
|
-
err,
|
|
2167
|
-
{
|
|
2168
|
-
spreadPathsToArguments: {},
|
|
2169
|
-
explicitPathsToArguments: { ecomOrderId: "$[0]" },
|
|
2170
|
-
singleArgumentUnchanged: false
|
|
2171
|
-
},
|
|
2172
|
-
["ecomOrderId"]
|
|
2173
|
-
);
|
|
2174
|
-
sideEffects?.onError?.(err);
|
|
2175
|
-
throw transformedError;
|
|
2176
|
-
}
|
|
2177
|
-
}
|
|
2178
|
-
async function paymentCollectionCreatePaymentGatewayOrder2(ecomOrderId, options) {
|
|
2179
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
2180
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2181
|
-
ecomOrderId,
|
|
2182
|
-
chargedBy: options?.chargedBy
|
|
2183
|
-
});
|
|
2184
|
-
const reqOpts = paymentCollectionCreatePaymentGatewayOrder(
|
|
2185
|
-
payload
|
|
2186
|
-
);
|
|
2187
|
-
sideEffects?.onSiteCall?.();
|
|
2188
|
-
try {
|
|
2189
|
-
const result = await httpClient.request(reqOpts);
|
|
2190
|
-
sideEffects?.onSuccess?.(result);
|
|
2191
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2192
|
-
} catch (err) {
|
|
2193
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
2194
|
-
err,
|
|
2195
|
-
{
|
|
2196
|
-
spreadPathsToArguments: {},
|
|
2197
|
-
explicitPathsToArguments: {
|
|
2198
|
-
ecomOrderId: "$[0]",
|
|
2199
|
-
chargedBy: "$[1].chargedBy"
|
|
2200
|
-
},
|
|
2201
|
-
singleArgumentUnchanged: false
|
|
2202
|
-
},
|
|
2203
|
-
["ecomOrderId", "options"]
|
|
2204
|
-
);
|
|
2205
|
-
sideEffects?.onError?.(err);
|
|
2206
|
-
throw transformedError;
|
|
2207
|
-
}
|
|
2208
|
-
}
|
|
2209
|
-
async function chargeMemberships2(ecomOrderId, memberId, options) {
|
|
2210
|
-
const { httpClient, sideEffects } = arguments[3];
|
|
2211
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2212
|
-
ecomOrderId,
|
|
2213
|
-
memberId,
|
|
2214
|
-
membershipCharges: options?.membershipCharges
|
|
2215
|
-
});
|
|
2216
|
-
const reqOpts = chargeMemberships(payload);
|
|
2217
|
-
sideEffects?.onSiteCall?.();
|
|
2218
|
-
try {
|
|
2219
|
-
const result = await httpClient.request(reqOpts);
|
|
2220
|
-
sideEffects?.onSuccess?.(result);
|
|
2221
|
-
} catch (err) {
|
|
2222
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
2223
|
-
err,
|
|
2224
|
-
{
|
|
2225
|
-
spreadPathsToArguments: {},
|
|
2226
|
-
explicitPathsToArguments: {
|
|
2227
|
-
ecomOrderId: "$[0]",
|
|
2228
|
-
memberId: "$[1]",
|
|
2229
|
-
membershipCharges: "$[2].membershipCharges"
|
|
2230
|
-
},
|
|
2231
|
-
singleArgumentUnchanged: false
|
|
2232
|
-
},
|
|
2233
|
-
["ecomOrderId", "memberId", "options"]
|
|
2234
|
-
);
|
|
2235
|
-
sideEffects?.onError?.(err);
|
|
2236
|
-
throw transformedError;
|
|
2237
|
-
}
|
|
2238
|
-
}
|
|
2239
|
-
async function triggerRefund2(ecomOrderId, payments, options) {
|
|
2240
|
-
const { httpClient, sideEffects } = arguments[3];
|
|
2241
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2242
|
-
ecomOrderId,
|
|
2243
|
-
payments,
|
|
2244
|
-
details: options?.details,
|
|
2245
|
-
sideEffects: options?.sideEffects
|
|
2246
|
-
});
|
|
2247
|
-
const reqOpts = triggerRefund(payload);
|
|
2248
|
-
sideEffects?.onSiteCall?.();
|
|
2249
|
-
try {
|
|
2250
|
-
const result = await httpClient.request(reqOpts);
|
|
2251
|
-
sideEffects?.onSuccess?.(result);
|
|
2252
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2253
|
-
} catch (err) {
|
|
2254
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
2255
|
-
err,
|
|
2256
|
-
{
|
|
2257
|
-
spreadPathsToArguments: {},
|
|
2258
|
-
explicitPathsToArguments: {
|
|
2259
|
-
ecomOrderId: "$[0]",
|
|
2260
|
-
payments: "$[1]",
|
|
2261
|
-
details: "$[2].details",
|
|
2262
|
-
sideEffects: "$[2].sideEffects"
|
|
2263
|
-
},
|
|
2264
|
-
singleArgumentUnchanged: false
|
|
2265
|
-
},
|
|
2266
|
-
["ecomOrderId", "payments", "options"]
|
|
2267
|
-
);
|
|
2268
|
-
sideEffects?.onError?.(err);
|
|
2269
|
-
throw transformedError;
|
|
2270
|
-
}
|
|
2271
|
-
}
|
|
2272
|
-
async function voidAuthorizedPayments2(ecomOrderId, paymentIds) {
|
|
2273
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
2274
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2275
|
-
ecomOrderId,
|
|
2276
|
-
paymentIds
|
|
2277
|
-
});
|
|
2278
|
-
const reqOpts = voidAuthorizedPayments(payload);
|
|
2279
|
-
sideEffects?.onSiteCall?.();
|
|
2280
|
-
try {
|
|
2281
|
-
const result = await httpClient.request(reqOpts);
|
|
2282
|
-
sideEffects?.onSuccess?.(result);
|
|
2283
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2284
|
-
} catch (err) {
|
|
2285
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
2286
|
-
err,
|
|
2287
|
-
{
|
|
2288
|
-
spreadPathsToArguments: {},
|
|
2289
|
-
explicitPathsToArguments: { ecomOrderId: "$[0]", paymentIds: "$[1]" },
|
|
2290
|
-
singleArgumentUnchanged: false
|
|
2291
|
-
},
|
|
2292
|
-
["ecomOrderId", "paymentIds"]
|
|
2293
|
-
);
|
|
2294
|
-
sideEffects?.onError?.(err);
|
|
2295
|
-
throw transformedError;
|
|
2296
|
-
}
|
|
2297
|
-
}
|
|
2298
|
-
async function captureAuthorizedPayments2(ecomOrderId, payments) {
|
|
2299
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
2300
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2301
|
-
ecomOrderId,
|
|
2302
|
-
payments
|
|
2303
|
-
});
|
|
2304
|
-
const reqOpts = captureAuthorizedPayments(payload);
|
|
2305
|
-
sideEffects?.onSiteCall?.();
|
|
2306
|
-
try {
|
|
2307
|
-
const result = await httpClient.request(reqOpts);
|
|
2308
|
-
sideEffects?.onSuccess?.(result);
|
|
2309
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2310
|
-
} catch (err) {
|
|
2311
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
2312
|
-
err,
|
|
2313
|
-
{
|
|
2314
|
-
spreadPathsToArguments: {},
|
|
2315
|
-
explicitPathsToArguments: { ecomOrderId: "$[0]", payments: "$[1]" },
|
|
2316
|
-
singleArgumentUnchanged: false
|
|
2317
|
-
},
|
|
2318
|
-
["ecomOrderId", "payments"]
|
|
2319
|
-
);
|
|
2320
|
-
sideEffects?.onError?.(err);
|
|
2321
|
-
throw transformedError;
|
|
2322
|
-
}
|
|
2323
|
-
}
|
|
1192
|
+
LineItemQuantityChangeType2["QUANTITY_INCREASED"] = "QUANTITY_INCREASED";
|
|
1193
|
+
LineItemQuantityChangeType2["QUANTITY_DECREASED"] = "QUANTITY_DECREASED";
|
|
1194
|
+
return LineItemQuantityChangeType2;
|
|
1195
|
+
})(LineItemQuantityChangeType || {});
|
|
1196
|
+
var ActivityType = /* @__PURE__ */ ((ActivityType2) => {
|
|
1197
|
+
ActivityType2["ORDER_REFUNDED"] = "ORDER_REFUNDED";
|
|
1198
|
+
ActivityType2["ORDER_PLACED"] = "ORDER_PLACED";
|
|
1199
|
+
ActivityType2["ORDER_PAID"] = "ORDER_PAID";
|
|
1200
|
+
ActivityType2["ORDER_FULFILLED"] = "ORDER_FULFILLED";
|
|
1201
|
+
ActivityType2["ORDER_NOT_FULFILLED"] = "ORDER_NOT_FULFILLED";
|
|
1202
|
+
ActivityType2["ORDER_CANCELED"] = "ORDER_CANCELED";
|
|
1203
|
+
ActivityType2["DOWNLOAD_LINK_SENT"] = "DOWNLOAD_LINK_SENT";
|
|
1204
|
+
ActivityType2["TRACKING_NUMBER_ADDED"] = "TRACKING_NUMBER_ADDED";
|
|
1205
|
+
ActivityType2["TRACKING_NUMBER_EDITED"] = "TRACKING_NUMBER_EDITED";
|
|
1206
|
+
ActivityType2["TRACKING_LINK_ADDED"] = "TRACKING_LINK_ADDED";
|
|
1207
|
+
ActivityType2["SHIPPING_CONFIRMATION_EMAIL_SENT"] = "SHIPPING_CONFIRMATION_EMAIL_SENT";
|
|
1208
|
+
ActivityType2["INVOICE_ADDED"] = "INVOICE_ADDED";
|
|
1209
|
+
ActivityType2["INVOICE_REMOVED"] = "INVOICE_REMOVED";
|
|
1210
|
+
ActivityType2["INVOICE_SENT"] = "INVOICE_SENT";
|
|
1211
|
+
ActivityType2["FULFILLER_EMAIL_SENT"] = "FULFILLER_EMAIL_SENT";
|
|
1212
|
+
ActivityType2["SHIPPING_ADDRESS_EDITED"] = "SHIPPING_ADDRESS_EDITED";
|
|
1213
|
+
ActivityType2["EMAIL_EDITED"] = "EMAIL_EDITED";
|
|
1214
|
+
ActivityType2["PICKUP_READY_EMAIL_SENT"] = "PICKUP_READY_EMAIL_SENT";
|
|
1215
|
+
ActivityType2["CUSTOM_ACTIVITY"] = "CUSTOM_ACTIVITY";
|
|
1216
|
+
ActivityType2["MERCHANT_COMMENT"] = "MERCHANT_COMMENT";
|
|
1217
|
+
ActivityType2["ORDER_CREATED_FROM_EXCHANGE"] = "ORDER_CREATED_FROM_EXCHANGE";
|
|
1218
|
+
ActivityType2["NEW_EXCHANGE_ORDER_CREATED"] = "NEW_EXCHANGE_ORDER_CREATED";
|
|
1219
|
+
ActivityType2["ORDER_PARTIALLY_PAID"] = "ORDER_PARTIALLY_PAID";
|
|
1220
|
+
ActivityType2["DRAFT_ORDER_CHANGES_APPLIED"] = "DRAFT_ORDER_CHANGES_APPLIED";
|
|
1221
|
+
ActivityType2["SAVED_PAYMENT_METHOD"] = "SAVED_PAYMENT_METHOD";
|
|
1222
|
+
ActivityType2["PAYMENT_PENDING"] = "PAYMENT_PENDING";
|
|
1223
|
+
ActivityType2["PAYMENT_CANCELED"] = "PAYMENT_CANCELED";
|
|
1224
|
+
ActivityType2["PAYMENT_DECLINED"] = "PAYMENT_DECLINED";
|
|
1225
|
+
ActivityType2["ORDER_PENDING"] = "ORDER_PENDING";
|
|
1226
|
+
ActivityType2["ORDER_REJECTED"] = "ORDER_REJECTED";
|
|
1227
|
+
return ActivityType2;
|
|
1228
|
+
})(ActivityType || {});
|
|
1229
|
+
var AttributionSource = /* @__PURE__ */ ((AttributionSource2) => {
|
|
1230
|
+
AttributionSource2["UNSPECIFIED"] = "UNSPECIFIED";
|
|
1231
|
+
AttributionSource2["FACEBOOK_ADS"] = "FACEBOOK_ADS";
|
|
1232
|
+
return AttributionSource2;
|
|
1233
|
+
})(AttributionSource || {});
|
|
1234
|
+
var ChannelType = /* @__PURE__ */ ((ChannelType2) => {
|
|
1235
|
+
ChannelType2["UNSPECIFIED"] = "UNSPECIFIED";
|
|
1236
|
+
ChannelType2["WEB"] = "WEB";
|
|
1237
|
+
ChannelType2["POS"] = "POS";
|
|
1238
|
+
ChannelType2["EBAY"] = "EBAY";
|
|
1239
|
+
ChannelType2["AMAZON"] = "AMAZON";
|
|
1240
|
+
ChannelType2["OTHER_PLATFORM"] = "OTHER_PLATFORM";
|
|
1241
|
+
ChannelType2["WIX_APP_STORE"] = "WIX_APP_STORE";
|
|
1242
|
+
ChannelType2["WIX_INVOICES"] = "WIX_INVOICES";
|
|
1243
|
+
ChannelType2["BACKOFFICE_MERCHANT"] = "BACKOFFICE_MERCHANT";
|
|
1244
|
+
ChannelType2["WISH"] = "WISH";
|
|
1245
|
+
ChannelType2["CLASS_PASS"] = "CLASS_PASS";
|
|
1246
|
+
ChannelType2["GLOBAL_E"] = "GLOBAL_E";
|
|
1247
|
+
ChannelType2["FACEBOOK"] = "FACEBOOK";
|
|
1248
|
+
ChannelType2["ETSY"] = "ETSY";
|
|
1249
|
+
ChannelType2["TIKTOK"] = "TIKTOK";
|
|
1250
|
+
ChannelType2["FAIRE_COM"] = "FAIRE_COM";
|
|
1251
|
+
return ChannelType2;
|
|
1252
|
+
})(ChannelType || {});
|
|
1253
|
+
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
1254
|
+
SortOrder2["ASC"] = "ASC";
|
|
1255
|
+
SortOrder2["DESC"] = "DESC";
|
|
1256
|
+
return SortOrder2;
|
|
1257
|
+
})(SortOrder || {});
|
|
1258
|
+
var OrderApprovalStrategy = /* @__PURE__ */ ((OrderApprovalStrategy2) => {
|
|
1259
|
+
OrderApprovalStrategy2["DEFAULT"] = "DEFAULT";
|
|
1260
|
+
OrderApprovalStrategy2["PAYMENT_RECEIVED"] = "PAYMENT_RECEIVED";
|
|
1261
|
+
OrderApprovalStrategy2["PAYMENT_METHOD_SAVED"] = "PAYMENT_METHOD_SAVED";
|
|
1262
|
+
return OrderApprovalStrategy2;
|
|
1263
|
+
})(OrderApprovalStrategy || {});
|
|
1264
|
+
var DeltaPaymentOptionType = /* @__PURE__ */ ((DeltaPaymentOptionType2) => {
|
|
1265
|
+
DeltaPaymentOptionType2["UNKNOWN_PAYMENT_OPTION"] = "UNKNOWN_PAYMENT_OPTION";
|
|
1266
|
+
DeltaPaymentOptionType2["FULL_PAYMENT_OFFLINE"] = "FULL_PAYMENT_OFFLINE";
|
|
1267
|
+
DeltaPaymentOptionType2["MEMBERSHIP_OFFLINE"] = "MEMBERSHIP_OFFLINE";
|
|
1268
|
+
return DeltaPaymentOptionType2;
|
|
1269
|
+
})(DeltaPaymentOptionType || {});
|
|
1270
|
+
var InventoryAction = /* @__PURE__ */ ((InventoryAction2) => {
|
|
1271
|
+
InventoryAction2["RESTOCK"] = "RESTOCK";
|
|
1272
|
+
InventoryAction2["DECREASE"] = "DECREASE";
|
|
1273
|
+
return InventoryAction2;
|
|
1274
|
+
})(InventoryAction || {});
|
|
1275
|
+
var Placement = /* @__PURE__ */ ((Placement2) => {
|
|
1276
|
+
Placement2["Unknown"] = "Unknown";
|
|
1277
|
+
Placement2["Replace"] = "Replace";
|
|
1278
|
+
Placement2["Before"] = "Before";
|
|
1279
|
+
Placement2["After"] = "After";
|
|
1280
|
+
return Placement2;
|
|
1281
|
+
})(Placement || {});
|
|
1282
|
+
var SubdivisionType = /* @__PURE__ */ ((SubdivisionType2) => {
|
|
1283
|
+
SubdivisionType2["UNKNOWN_SUBDIVISION_TYPE"] = "UNKNOWN_SUBDIVISION_TYPE";
|
|
1284
|
+
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_1"] = "ADMINISTRATIVE_AREA_LEVEL_1";
|
|
1285
|
+
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_2"] = "ADMINISTRATIVE_AREA_LEVEL_2";
|
|
1286
|
+
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_3"] = "ADMINISTRATIVE_AREA_LEVEL_3";
|
|
1287
|
+
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_4"] = "ADMINISTRATIVE_AREA_LEVEL_4";
|
|
1288
|
+
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_5"] = "ADMINISTRATIVE_AREA_LEVEL_5";
|
|
1289
|
+
SubdivisionType2["COUNTRY"] = "COUNTRY";
|
|
1290
|
+
return SubdivisionType2;
|
|
1291
|
+
})(SubdivisionType || {});
|
|
1292
|
+
var SourceType = /* @__PURE__ */ ((SourceType2) => {
|
|
1293
|
+
SourceType2["UNKNOWN_SOURCE_TYPE"] = "UNKNOWN_SOURCE_TYPE";
|
|
1294
|
+
SourceType2["WIX_APP"] = "WIX_APP";
|
|
1295
|
+
SourceType2["EXTERNAL"] = "EXTERNAL";
|
|
1296
|
+
SourceType2["ADMIN"] = "ADMIN";
|
|
1297
|
+
SourceType2["OTHER"] = "OTHER";
|
|
1298
|
+
return SourceType2;
|
|
1299
|
+
})(SourceType || {});
|
|
1300
|
+
var CustomFieldGroup = /* @__PURE__ */ ((CustomFieldGroup2) => {
|
|
1301
|
+
CustomFieldGroup2["UNKNOWN_CUSTOM_FIELD_GROUP"] = "UNKNOWN_CUSTOM_FIELD_GROUP";
|
|
1302
|
+
CustomFieldGroup2["BUSINESS_DETAILS"] = "BUSINESS_DETAILS";
|
|
1303
|
+
CustomFieldGroup2["CUSTOMER_DETAILS"] = "CUSTOMER_DETAILS";
|
|
1304
|
+
CustomFieldGroup2["DOCUMENT"] = "DOCUMENT";
|
|
1305
|
+
CustomFieldGroup2["FOOTER"] = "FOOTER";
|
|
1306
|
+
CustomFieldGroup2["OTHER"] = "OTHER";
|
|
1307
|
+
return CustomFieldGroup2;
|
|
1308
|
+
})(CustomFieldGroup || {});
|
|
1309
|
+
var ValueType = /* @__PURE__ */ ((ValueType2) => {
|
|
1310
|
+
ValueType2["UNKNOWN_VALUE_TYPE"] = "UNKNOWN_VALUE_TYPE";
|
|
1311
|
+
ValueType2["STRING"] = "STRING";
|
|
1312
|
+
ValueType2["DATE"] = "DATE";
|
|
1313
|
+
ValueType2["BOOLEAN"] = "BOOLEAN";
|
|
1314
|
+
ValueType2["NUMBER"] = "NUMBER";
|
|
1315
|
+
return ValueType2;
|
|
1316
|
+
})(ValueType || {});
|
|
1317
|
+
var DepositType = /* @__PURE__ */ ((DepositType2) => {
|
|
1318
|
+
DepositType2["UNKNOWN"] = "UNKNOWN";
|
|
1319
|
+
DepositType2["FLAT"] = "FLAT";
|
|
1320
|
+
DepositType2["PERCENTAGE"] = "PERCENTAGE";
|
|
1321
|
+
return DepositType2;
|
|
1322
|
+
})(DepositType || {});
|
|
1323
|
+
var InvoiceStatus = /* @__PURE__ */ ((InvoiceStatus2) => {
|
|
1324
|
+
InvoiceStatus2["Draft"] = "Draft";
|
|
1325
|
+
InvoiceStatus2["Sent"] = "Sent";
|
|
1326
|
+
InvoiceStatus2["Processing"] = "Processing";
|
|
1327
|
+
InvoiceStatus2["Paid"] = "Paid";
|
|
1328
|
+
InvoiceStatus2["Overdue"] = "Overdue";
|
|
1329
|
+
InvoiceStatus2["Void"] = "Void";
|
|
1330
|
+
InvoiceStatus2["Deleted"] = "Deleted";
|
|
1331
|
+
InvoiceStatus2["PartiallyPaid"] = "PartiallyPaid";
|
|
1332
|
+
InvoiceStatus2["PartialAndOverdue"] = "PartialAndOverdue";
|
|
1333
|
+
return InvoiceStatus2;
|
|
1334
|
+
})(InvoiceStatus || {});
|
|
1335
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
1336
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
1337
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
1338
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
1339
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
1340
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
1341
|
+
return WebhookIdentityType2;
|
|
1342
|
+
})(WebhookIdentityType || {});
|
|
2324
1343
|
async function getOrder2(_id) {
|
|
2325
1344
|
const { httpClient, sideEffects } = arguments[1];
|
|
2326
1345
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ id: _id });
|
|
@@ -3018,93 +2037,6 @@ async function bulkUpdateOrderTags2(orderIds, options) {
|
|
|
3018
2037
|
}
|
|
3019
2038
|
|
|
3020
2039
|
// src/ecom-v1-order-orders.public.ts
|
|
3021
|
-
function preparePaymentCollection3(httpClient) {
|
|
3022
|
-
return (ecomOrderId, amount, options) => preparePaymentCollection2(
|
|
3023
|
-
ecomOrderId,
|
|
3024
|
-
amount,
|
|
3025
|
-
options,
|
|
3026
|
-
// @ts-ignore
|
|
3027
|
-
{ httpClient }
|
|
3028
|
-
);
|
|
3029
|
-
}
|
|
3030
|
-
function getPaymentCollectabilityStatus3(httpClient) {
|
|
3031
|
-
return (ecomOrderId) => getPaymentCollectabilityStatus2(
|
|
3032
|
-
ecomOrderId,
|
|
3033
|
-
// @ts-ignore
|
|
3034
|
-
{ httpClient }
|
|
3035
|
-
);
|
|
3036
|
-
}
|
|
3037
|
-
function recordManuallyCollectedPayment3(httpClient) {
|
|
3038
|
-
return (orderId, amount) => recordManuallyCollectedPayment2(
|
|
3039
|
-
orderId,
|
|
3040
|
-
amount,
|
|
3041
|
-
// @ts-ignore
|
|
3042
|
-
{ httpClient }
|
|
3043
|
-
);
|
|
3044
|
-
}
|
|
3045
|
-
function paymentCollectionMarkOrderAsPaid3(httpClient) {
|
|
3046
|
-
return (ecomOrderId) => paymentCollectionMarkOrderAsPaid2(
|
|
3047
|
-
ecomOrderId,
|
|
3048
|
-
// @ts-ignore
|
|
3049
|
-
{ httpClient }
|
|
3050
|
-
);
|
|
3051
|
-
}
|
|
3052
|
-
function paymentCollectionBulkMarkOrdersAsPaid3(httpClient) {
|
|
3053
|
-
return (ecomOrderIds) => paymentCollectionBulkMarkOrdersAsPaid2(
|
|
3054
|
-
ecomOrderIds,
|
|
3055
|
-
// @ts-ignore
|
|
3056
|
-
{ httpClient }
|
|
3057
|
-
);
|
|
3058
|
-
}
|
|
3059
|
-
function getRefundabilityStatus3(httpClient) {
|
|
3060
|
-
return (ecomOrderId) => getRefundabilityStatus2(
|
|
3061
|
-
ecomOrderId,
|
|
3062
|
-
// @ts-ignore
|
|
3063
|
-
{ httpClient }
|
|
3064
|
-
);
|
|
3065
|
-
}
|
|
3066
|
-
function paymentCollectionCreatePaymentGatewayOrder3(httpClient) {
|
|
3067
|
-
return (ecomOrderId, options) => paymentCollectionCreatePaymentGatewayOrder2(
|
|
3068
|
-
ecomOrderId,
|
|
3069
|
-
options,
|
|
3070
|
-
// @ts-ignore
|
|
3071
|
-
{ httpClient }
|
|
3072
|
-
);
|
|
3073
|
-
}
|
|
3074
|
-
function chargeMemberships3(httpClient) {
|
|
3075
|
-
return (ecomOrderId, memberId, options) => chargeMemberships2(
|
|
3076
|
-
ecomOrderId,
|
|
3077
|
-
memberId,
|
|
3078
|
-
options,
|
|
3079
|
-
// @ts-ignore
|
|
3080
|
-
{ httpClient }
|
|
3081
|
-
);
|
|
3082
|
-
}
|
|
3083
|
-
function triggerRefund3(httpClient) {
|
|
3084
|
-
return (ecomOrderId, payments, options) => triggerRefund2(
|
|
3085
|
-
ecomOrderId,
|
|
3086
|
-
payments,
|
|
3087
|
-
options,
|
|
3088
|
-
// @ts-ignore
|
|
3089
|
-
{ httpClient }
|
|
3090
|
-
);
|
|
3091
|
-
}
|
|
3092
|
-
function voidAuthorizedPayments3(httpClient) {
|
|
3093
|
-
return (ecomOrderId, paymentIds) => voidAuthorizedPayments2(
|
|
3094
|
-
ecomOrderId,
|
|
3095
|
-
paymentIds,
|
|
3096
|
-
// @ts-ignore
|
|
3097
|
-
{ httpClient }
|
|
3098
|
-
);
|
|
3099
|
-
}
|
|
3100
|
-
function captureAuthorizedPayments3(httpClient) {
|
|
3101
|
-
return (ecomOrderId, payments) => captureAuthorizedPayments2(
|
|
3102
|
-
ecomOrderId,
|
|
3103
|
-
payments,
|
|
3104
|
-
// @ts-ignore
|
|
3105
|
-
{ httpClient }
|
|
3106
|
-
);
|
|
3107
|
-
}
|
|
3108
2040
|
function getOrder3(httpClient) {
|
|
3109
2041
|
return (_id) => getOrder2(
|
|
3110
2042
|
_id,
|
|
@@ -3257,8 +2189,52 @@ var onOrderApproved = (0, import_sdk_types.EventDefinition)(
|
|
|
3257
2189
|
])
|
|
3258
2190
|
)
|
|
3259
2191
|
)();
|
|
3260
|
-
var
|
|
3261
|
-
"wix.ecom.v1.
|
|
2192
|
+
var onOrderCanceled = (0, import_sdk_types.EventDefinition)(
|
|
2193
|
+
"wix.ecom.v1.order_canceled",
|
|
2194
|
+
true,
|
|
2195
|
+
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
2196
|
+
(0, import_transform_paths3.transformPaths)(event, [
|
|
2197
|
+
{
|
|
2198
|
+
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
2199
|
+
paths: [
|
|
2200
|
+
{ path: "data.order.createdDate" },
|
|
2201
|
+
{ path: "data.order.updatedDate" },
|
|
2202
|
+
{ path: "data.order.purchasedDate" },
|
|
2203
|
+
{ path: "data.order.lineItems.digitalFile.expirationDate" },
|
|
2204
|
+
{
|
|
2205
|
+
path: "data.order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
2206
|
+
},
|
|
2207
|
+
{ path: "data.order.shippingInfo.logistics.deliverByDate" },
|
|
2208
|
+
{ path: "data.order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
2209
|
+
{ path: "data.order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
2210
|
+
{ path: "data.order.activities.createdDate" },
|
|
2211
|
+
{ path: "metadata.eventTime" }
|
|
2212
|
+
]
|
|
2213
|
+
},
|
|
2214
|
+
{
|
|
2215
|
+
transformFn: import_image3.transformRESTImageToSDKImage,
|
|
2216
|
+
paths: [{ path: "data.order.lineItems.image" }]
|
|
2217
|
+
},
|
|
2218
|
+
{
|
|
2219
|
+
transformFn: import_float3.transformRESTFloatToSDKFloat,
|
|
2220
|
+
paths: [{ path: "data.order.lineItems.physicalProperties.weight" }]
|
|
2221
|
+
},
|
|
2222
|
+
{
|
|
2223
|
+
transformFn: import_address3.transformRESTAddressToSDKAddress,
|
|
2224
|
+
paths: [
|
|
2225
|
+
{ path: "data.order.billingInfo.address" },
|
|
2226
|
+
{
|
|
2227
|
+
path: "data.order.shippingInfo.logistics.shippingDestination.address"
|
|
2228
|
+
},
|
|
2229
|
+
{ path: "data.order.shippingInfo.logistics.pickupDetails.address" },
|
|
2230
|
+
{ path: "data.order.recipientInfo.address" }
|
|
2231
|
+
]
|
|
2232
|
+
}
|
|
2233
|
+
])
|
|
2234
|
+
)
|
|
2235
|
+
)();
|
|
2236
|
+
var onOrderCreated = (0, import_sdk_types.EventDefinition)(
|
|
2237
|
+
"wix.ecom.v1.order_created",
|
|
3262
2238
|
true,
|
|
3263
2239
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
3264
2240
|
(0, import_transform_paths3.transformPaths)(event, [
|
|
@@ -3301,8 +2277,8 @@ var onOrderUpdated = (0, import_sdk_types.EventDefinition)(
|
|
|
3301
2277
|
])
|
|
3302
2278
|
)
|
|
3303
2279
|
)();
|
|
3304
|
-
var
|
|
3305
|
-
"wix.ecom.v1.
|
|
2280
|
+
var onOrderPaymentStatusUpdated = (0, import_sdk_types.EventDefinition)(
|
|
2281
|
+
"wix.ecom.v1.order_payment_status_updated",
|
|
3306
2282
|
true,
|
|
3307
2283
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
3308
2284
|
(0, import_transform_paths3.transformPaths)(event, [
|
|
@@ -3345,8 +2321,8 @@ var onOrderCanceled = (0, import_sdk_types.EventDefinition)(
|
|
|
3345
2321
|
])
|
|
3346
2322
|
)
|
|
3347
2323
|
)();
|
|
3348
|
-
var
|
|
3349
|
-
"wix.ecom.v1.
|
|
2324
|
+
var onOrderUpdated = (0, import_sdk_types.EventDefinition)(
|
|
2325
|
+
"wix.ecom.v1.order_updated",
|
|
3350
2326
|
true,
|
|
3351
2327
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
3352
2328
|
(0, import_transform_paths3.transformPaths)(event, [
|
|
@@ -3393,19 +2369,6 @@ var onOrderCreated = (0, import_sdk_types.EventDefinition)(
|
|
|
3393
2369
|
// src/ecom-v1-order-orders.context.ts
|
|
3394
2370
|
var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
|
|
3395
2371
|
var import_event_definition_modules = require("@wix/sdk-runtime/event-definition-modules");
|
|
3396
|
-
var preparePaymentCollection4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(preparePaymentCollection3);
|
|
3397
|
-
var getPaymentCollectabilityStatus4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getPaymentCollectabilityStatus3);
|
|
3398
|
-
var recordManuallyCollectedPayment4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(recordManuallyCollectedPayment3);
|
|
3399
|
-
var paymentCollectionMarkOrderAsPaid4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(paymentCollectionMarkOrderAsPaid3);
|
|
3400
|
-
var paymentCollectionBulkMarkOrdersAsPaid4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(paymentCollectionBulkMarkOrdersAsPaid3);
|
|
3401
|
-
var getRefundabilityStatus4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getRefundabilityStatus3);
|
|
3402
|
-
var paymentCollectionCreatePaymentGatewayOrder4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(
|
|
3403
|
-
paymentCollectionCreatePaymentGatewayOrder3
|
|
3404
|
-
);
|
|
3405
|
-
var chargeMemberships4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(chargeMemberships3);
|
|
3406
|
-
var triggerRefund4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(triggerRefund3);
|
|
3407
|
-
var voidAuthorizedPayments4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(voidAuthorizedPayments3);
|
|
3408
|
-
var captureAuthorizedPayments4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(captureAuthorizedPayments3);
|
|
3409
2372
|
var getOrder4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getOrder3);
|
|
3410
2373
|
var searchOrders4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(searchOrders3);
|
|
3411
2374
|
var createOrder4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createOrder3);
|
|
@@ -3421,61 +2384,41 @@ var updateOrderStatus4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModu
|
|
|
3421
2384
|
var aggregateOrders4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(aggregateOrders3);
|
|
3422
2385
|
var bulkUpdateOrderTags4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkUpdateOrderTags3);
|
|
3423
2386
|
var onOrderApproved2 = (0, import_event_definition_modules.createEventModule)(onOrderApproved);
|
|
3424
|
-
var onOrderUpdated2 = (0, import_event_definition_modules.createEventModule)(onOrderUpdated);
|
|
3425
2387
|
var onOrderCanceled2 = (0, import_event_definition_modules.createEventModule)(onOrderCanceled);
|
|
3426
2388
|
var onOrderCreated2 = (0, import_event_definition_modules.createEventModule)(onOrderCreated);
|
|
2389
|
+
var onOrderPaymentStatusUpdated2 = (0, import_event_definition_modules.createEventModule)(onOrderPaymentStatusUpdated);
|
|
2390
|
+
var onOrderUpdated2 = (0, import_event_definition_modules.createEventModule)(onOrderUpdated);
|
|
3427
2391
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3428
2392
|
0 && (module.exports = {
|
|
3429
|
-
ActionType,
|
|
3430
2393
|
ActivityType,
|
|
3431
2394
|
AdjustmentType,
|
|
3432
|
-
AnimationDetection,
|
|
3433
2395
|
AttributionSource,
|
|
3434
|
-
AuthorizationCaptureStatus,
|
|
3435
|
-
AuthorizationVoidStatus,
|
|
3436
2396
|
ChannelType,
|
|
3437
|
-
ChargebackStatus,
|
|
3438
2397
|
CustomFieldGroup,
|
|
3439
2398
|
DeltaPaymentOptionType,
|
|
3440
2399
|
DepositType,
|
|
3441
2400
|
DescriptionLineType,
|
|
3442
2401
|
DiscountReason,
|
|
3443
2402
|
DiscountType,
|
|
3444
|
-
DurationUnit,
|
|
3445
2403
|
FulfillmentStatus,
|
|
3446
2404
|
InventoryAction,
|
|
3447
2405
|
InvoiceStatus,
|
|
3448
2406
|
ItemTypeItemType,
|
|
3449
2407
|
JurisdictionType,
|
|
3450
2408
|
LineItemQuantityChangeType,
|
|
3451
|
-
ManuallyRefundableReason,
|
|
3452
|
-
MembershipPaymentStatus,
|
|
3453
|
-
Namespace,
|
|
3454
|
-
NonRefundableReason,
|
|
3455
2409
|
OrderApprovalStrategy,
|
|
3456
2410
|
OrderStatus,
|
|
3457
|
-
PaymentCollectabilityStatus,
|
|
3458
2411
|
PaymentOptionType,
|
|
3459
2412
|
PaymentStatus,
|
|
3460
2413
|
PickupMethod,
|
|
3461
2414
|
Placement,
|
|
3462
|
-
PreviewEmailType,
|
|
3463
|
-
Reason,
|
|
3464
|
-
RefundStatus,
|
|
3465
|
-
RefundableStatus,
|
|
3466
|
-
RestockType,
|
|
3467
|
-
ScheduledAction,
|
|
3468
2415
|
SortOrder,
|
|
3469
2416
|
SourceType,
|
|
3470
|
-
State,
|
|
3471
2417
|
SubdivisionType,
|
|
3472
2418
|
SubscriptionFrequency,
|
|
3473
2419
|
TaxableAddressType,
|
|
3474
|
-
TextDetection,
|
|
3475
|
-
TransactionStatus,
|
|
3476
2420
|
ValueType,
|
|
3477
2421
|
VatType,
|
|
3478
|
-
VersioningMode,
|
|
3479
2422
|
WebhookIdentityType,
|
|
3480
2423
|
WeightUnit,
|
|
3481
2424
|
addActivity,
|
|
@@ -3483,29 +2426,19 @@ var onOrderCreated2 = (0, import_event_definition_modules.createEventModule)(onO
|
|
|
3483
2426
|
bulkUpdateOrderTags,
|
|
3484
2427
|
bulkUpdateOrders,
|
|
3485
2428
|
cancelOrder,
|
|
3486
|
-
captureAuthorizedPayments,
|
|
3487
|
-
chargeMemberships,
|
|
3488
2429
|
commitDeltas,
|
|
3489
2430
|
createOrder,
|
|
3490
2431
|
deleteActivity,
|
|
3491
2432
|
getOrder,
|
|
3492
|
-
getPaymentCollectabilityStatus,
|
|
3493
|
-
getRefundabilityStatus,
|
|
3494
2433
|
onOrderApproved,
|
|
3495
2434
|
onOrderCanceled,
|
|
3496
2435
|
onOrderCreated,
|
|
2436
|
+
onOrderPaymentStatusUpdated,
|
|
3497
2437
|
onOrderUpdated,
|
|
3498
|
-
paymentCollectionBulkMarkOrdersAsPaid,
|
|
3499
|
-
paymentCollectionCreatePaymentGatewayOrder,
|
|
3500
|
-
paymentCollectionMarkOrderAsPaid,
|
|
3501
|
-
preparePaymentCollection,
|
|
3502
|
-
recordManuallyCollectedPayment,
|
|
3503
2438
|
searchOrders,
|
|
3504
|
-
triggerRefund,
|
|
3505
2439
|
updateActivity,
|
|
3506
2440
|
updateOrder,
|
|
3507
2441
|
updateOrderLineItem,
|
|
3508
|
-
updateOrderStatus
|
|
3509
|
-
voidAuthorizedPayments
|
|
2442
|
+
updateOrderStatus
|
|
3510
2443
|
});
|
|
3511
2444
|
//# sourceMappingURL=index.js.map
|