@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
|
@@ -20,56 +20,35 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// index.typings.ts
|
|
21
21
|
var index_typings_exports = {};
|
|
22
22
|
__export(index_typings_exports, {
|
|
23
|
-
ActionType: () => ActionType,
|
|
24
23
|
ActivityType: () => ActivityType,
|
|
25
24
|
AdjustmentType: () => AdjustmentType,
|
|
26
|
-
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: () => addActivity2,
|
|
@@ -77,26 +56,15 @@ __export(index_typings_exports, {
|
|
|
77
56
|
bulkUpdateOrderTags: () => bulkUpdateOrderTags2,
|
|
78
57
|
bulkUpdateOrders: () => bulkUpdateOrders2,
|
|
79
58
|
cancelOrder: () => cancelOrder2,
|
|
80
|
-
captureAuthorizedPayments: () => captureAuthorizedPayments2,
|
|
81
|
-
chargeMemberships: () => chargeMemberships2,
|
|
82
59
|
commitDeltas: () => commitDeltas2,
|
|
83
60
|
createOrder: () => createOrder2,
|
|
84
61
|
deleteActivity: () => deleteActivity2,
|
|
85
62
|
getOrder: () => getOrder2,
|
|
86
|
-
getPaymentCollectabilityStatus: () => getPaymentCollectabilityStatus2,
|
|
87
|
-
getRefundabilityStatus: () => getRefundabilityStatus2,
|
|
88
|
-
paymentCollectionBulkMarkOrdersAsPaid: () => paymentCollectionBulkMarkOrdersAsPaid2,
|
|
89
|
-
paymentCollectionCreatePaymentGatewayOrder: () => paymentCollectionCreatePaymentGatewayOrder2,
|
|
90
|
-
paymentCollectionMarkOrderAsPaid: () => paymentCollectionMarkOrderAsPaid2,
|
|
91
|
-
preparePaymentCollection: () => preparePaymentCollection2,
|
|
92
|
-
recordManuallyCollectedPayment: () => recordManuallyCollectedPayment2,
|
|
93
63
|
searchOrders: () => searchOrders2,
|
|
94
|
-
triggerRefund: () => triggerRefund2,
|
|
95
64
|
updateActivity: () => updateActivity2,
|
|
96
65
|
updateOrder: () => updateOrder2,
|
|
97
66
|
updateOrderLineItem: () => updateOrderLineItem2,
|
|
98
|
-
updateOrderStatus: () => updateOrderStatus2
|
|
99
|
-
voidAuthorizedPayments: () => voidAuthorizedPayments2
|
|
67
|
+
updateOrderStatus: () => updateOrderStatus2
|
|
100
68
|
});
|
|
101
69
|
module.exports = __toCommonJS(index_typings_exports);
|
|
102
70
|
|
|
@@ -114,139 +82,23 @@ var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
|
|
|
114
82
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
115
83
|
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
116
84
|
function resolveComWixEcomOrdersV1OrdersUrl(opts) {
|
|
117
|
-
const domainToMappings = {
|
|
118
|
-
_: [
|
|
119
|
-
{
|
|
120
|
-
srcPath: "/_api/ecom-orders",
|
|
121
|
-
destPath: ""
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
srcPath: "/_api/orders",
|
|
125
|
-
destPath: ""
|
|
126
|
-
}
|
|
127
|
-
],
|
|
128
|
-
"manage._base_domain_": [
|
|
129
|
-
{
|
|
130
|
-
srcPath: "/_api/ecom-orders",
|
|
131
|
-
destPath: ""
|
|
132
|
-
}
|
|
133
|
-
],
|
|
134
|
-
"www.wixapis.com": [
|
|
135
|
-
{
|
|
136
|
-
srcPath: "/ecom/v1/bulk/orders",
|
|
137
|
-
destPath: "/v1/bulk/orders"
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
srcPath: "/ecom/v1/orders",
|
|
141
|
-
destPath: "/v1/orders"
|
|
142
|
-
}
|
|
143
|
-
]
|
|
144
|
-
};
|
|
145
|
-
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
146
|
-
}
|
|
147
|
-
function resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl(opts) {
|
|
148
|
-
const domainToMappings = {
|
|
149
|
-
"api._api_base_domain_": [
|
|
150
|
-
{
|
|
151
|
-
srcPath: "/payments-collector",
|
|
152
|
-
destPath: ""
|
|
153
|
-
}
|
|
154
|
-
],
|
|
155
|
-
"www.wixapis.com": [
|
|
156
|
-
{
|
|
157
|
-
srcPath: "/ecom/v1/payments-collector",
|
|
158
|
-
destPath: "/v1/payments-collector"
|
|
159
|
-
}
|
|
160
|
-
],
|
|
161
|
-
"manage._base_domain_": [
|
|
162
|
-
{
|
|
163
|
-
srcPath: "/ecom/v1/payments-collector",
|
|
164
|
-
destPath: "/v1/payments-collector"
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
srcPath: "/_api/v1/payments-collector",
|
|
168
|
-
destPath: "/v1/payments-collector"
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
srcPath: "/v1/payments-collector",
|
|
172
|
-
destPath: "/v1/payments-collector"
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
srcPath: "/_api/payments-collector",
|
|
176
|
-
destPath: "/v1/payments-collector"
|
|
177
|
-
}
|
|
178
|
-
]
|
|
179
|
-
};
|
|
85
|
+
const domainToMappings = {};
|
|
180
86
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
181
87
|
}
|
|
182
88
|
var PACKAGE_NAME = "@wix/auto_sdk_ecom_orders";
|
|
183
|
-
function
|
|
184
|
-
function
|
|
185
|
-
const metadata = {
|
|
186
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
187
|
-
method: "POST",
|
|
188
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.PreparePaymentCollection",
|
|
189
|
-
packageName: PACKAGE_NAME,
|
|
190
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
191
|
-
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/prepare-payment-collection",
|
|
192
|
-
data: payload,
|
|
193
|
-
host
|
|
194
|
-
}),
|
|
195
|
-
data: payload
|
|
196
|
-
};
|
|
197
|
-
return metadata;
|
|
198
|
-
}
|
|
199
|
-
return __preparePaymentCollection;
|
|
200
|
-
}
|
|
201
|
-
function getPaymentCollectabilityStatus(payload) {
|
|
202
|
-
function __getPaymentCollectabilityStatus({ host }) {
|
|
89
|
+
function getOrder(payload) {
|
|
90
|
+
function __getOrder({ host }) {
|
|
203
91
|
const metadata = {
|
|
204
92
|
entityFqdn: "wix.ecom.v1.order",
|
|
205
93
|
method: "GET",
|
|
206
|
-
methodFqn: "com.wix.ecom.orders.
|
|
207
|
-
packageName: PACKAGE_NAME,
|
|
208
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
209
|
-
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/payment-collectability-status",
|
|
210
|
-
data: payload,
|
|
211
|
-
host
|
|
212
|
-
}),
|
|
213
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
214
|
-
};
|
|
215
|
-
return metadata;
|
|
216
|
-
}
|
|
217
|
-
return __getPaymentCollectabilityStatus;
|
|
218
|
-
}
|
|
219
|
-
function recordManuallyCollectedPayment(payload) {
|
|
220
|
-
function __recordManuallyCollectedPayment({ host }) {
|
|
221
|
-
const metadata = {
|
|
222
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
223
|
-
method: "POST",
|
|
224
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.RecordManuallyCollectedPayment",
|
|
225
|
-
packageName: PACKAGE_NAME,
|
|
226
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
227
|
-
protoPath: "/v1/payments-collector/orders/{orderId}/manual-payment",
|
|
228
|
-
data: payload,
|
|
229
|
-
host
|
|
230
|
-
}),
|
|
231
|
-
data: payload
|
|
232
|
-
};
|
|
233
|
-
return metadata;
|
|
234
|
-
}
|
|
235
|
-
return __recordManuallyCollectedPayment;
|
|
236
|
-
}
|
|
237
|
-
function paymentCollectionMarkOrderAsPaid(payload) {
|
|
238
|
-
function __paymentCollectionMarkOrderAsPaid({ host }) {
|
|
239
|
-
const metadata = {
|
|
240
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
241
|
-
method: "POST",
|
|
242
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.MarkOrderAsPaid",
|
|
94
|
+
methodFqn: "com.wix.ecom.orders.v1.Orders.GetOrder",
|
|
243
95
|
packageName: PACKAGE_NAME,
|
|
244
|
-
url:
|
|
245
|
-
protoPath: "/v1/
|
|
96
|
+
url: resolveComWixEcomOrdersV1OrdersUrl({
|
|
97
|
+
protoPath: "/v1/orders/{id}",
|
|
246
98
|
data: payload,
|
|
247
99
|
host
|
|
248
100
|
}),
|
|
249
|
-
|
|
101
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
250
102
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
251
103
|
{
|
|
252
104
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
@@ -293,17 +145,17 @@ function paymentCollectionMarkOrderAsPaid(payload) {
|
|
|
293
145
|
};
|
|
294
146
|
return metadata;
|
|
295
147
|
}
|
|
296
|
-
return
|
|
148
|
+
return __getOrder;
|
|
297
149
|
}
|
|
298
|
-
function
|
|
299
|
-
function
|
|
150
|
+
function searchOrders(payload) {
|
|
151
|
+
function __searchOrders({ host }) {
|
|
300
152
|
const metadata = {
|
|
301
153
|
entityFqdn: "wix.ecom.v1.order",
|
|
302
154
|
method: "POST",
|
|
303
|
-
methodFqn: "com.wix.ecom.orders.
|
|
155
|
+
methodFqn: "com.wix.ecom.orders.v1.Orders.SearchOrders",
|
|
304
156
|
packageName: PACKAGE_NAME,
|
|
305
|
-
url:
|
|
306
|
-
protoPath: "/v1/
|
|
157
|
+
url: resolveComWixEcomOrdersV1OrdersUrl({
|
|
158
|
+
protoPath: "/v1/orders/search",
|
|
307
159
|
data: payload,
|
|
308
160
|
host
|
|
309
161
|
}),
|
|
@@ -312,459 +164,153 @@ function paymentCollectionBulkMarkOrdersAsPaid(payload) {
|
|
|
312
164
|
{
|
|
313
165
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
314
166
|
paths: [
|
|
315
|
-
{ path: "
|
|
316
|
-
{ path: "
|
|
317
|
-
{ path: "
|
|
318
|
-
{ path: "
|
|
319
|
-
{ path: "
|
|
320
|
-
{
|
|
321
|
-
path: "results.item.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
322
|
-
},
|
|
323
|
-
{ path: "results.item.shippingInfo.logistics.deliverByDate" },
|
|
324
|
-
{
|
|
325
|
-
path: "results.item.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
326
|
-
},
|
|
167
|
+
{ path: "orders.createdDate" },
|
|
168
|
+
{ path: "orders.updatedDate" },
|
|
169
|
+
{ path: "orders.purchasedDate" },
|
|
170
|
+
{ path: "orders.lineItems.image.urlExpirationDate" },
|
|
171
|
+
{ path: "orders.lineItems.digitalFile.expirationDate" },
|
|
327
172
|
{
|
|
328
|
-
path: "
|
|
173
|
+
path: "orders.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
329
174
|
},
|
|
330
|
-
{ path: "
|
|
175
|
+
{ path: "orders.shippingInfo.logistics.deliverByDate" },
|
|
176
|
+
{ path: "orders.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
177
|
+
{ path: "orders.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
178
|
+
{ path: "orders.activities.createdDate" }
|
|
331
179
|
]
|
|
332
180
|
},
|
|
333
181
|
{
|
|
334
182
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
335
183
|
paths: [
|
|
336
|
-
{ path: "
|
|
337
|
-
{ path: "
|
|
338
|
-
{ path: "
|
|
339
|
-
{ path: "
|
|
340
|
-
{ path: "
|
|
184
|
+
{ path: "orders.lineItems.image.focalPoint.x" },
|
|
185
|
+
{ path: "orders.lineItems.image.focalPoint.y" },
|
|
186
|
+
{ path: "orders.lineItems.physicalProperties.weight" },
|
|
187
|
+
{ path: "orders.billingInfo.address.geocode.latitude" },
|
|
188
|
+
{ path: "orders.billingInfo.address.geocode.longitude" },
|
|
341
189
|
{
|
|
342
|
-
path: "
|
|
190
|
+
path: "orders.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
343
191
|
},
|
|
344
192
|
{
|
|
345
|
-
path: "
|
|
193
|
+
path: "orders.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
346
194
|
},
|
|
347
195
|
{
|
|
348
|
-
path: "
|
|
196
|
+
path: "orders.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
349
197
|
},
|
|
350
198
|
{
|
|
351
|
-
path: "
|
|
199
|
+
path: "orders.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
352
200
|
},
|
|
353
|
-
{ path: "
|
|
354
|
-
{ path: "
|
|
201
|
+
{ path: "orders.recipientInfo.address.geocode.latitude" },
|
|
202
|
+
{ path: "orders.recipientInfo.address.geocode.longitude" }
|
|
355
203
|
]
|
|
356
204
|
}
|
|
357
205
|
])
|
|
358
206
|
};
|
|
359
207
|
return metadata;
|
|
360
208
|
}
|
|
361
|
-
return
|
|
362
|
-
}
|
|
363
|
-
function getRefundabilityStatus(payload) {
|
|
364
|
-
function __getRefundabilityStatus({ host }) {
|
|
365
|
-
const metadata = {
|
|
366
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
367
|
-
method: "GET",
|
|
368
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.GetRefundabilityStatus",
|
|
369
|
-
packageName: PACKAGE_NAME,
|
|
370
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
371
|
-
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/refundability",
|
|
372
|
-
data: payload,
|
|
373
|
-
host
|
|
374
|
-
}),
|
|
375
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
376
|
-
};
|
|
377
|
-
return metadata;
|
|
378
|
-
}
|
|
379
|
-
return __getRefundabilityStatus;
|
|
380
|
-
}
|
|
381
|
-
function paymentCollectionCreatePaymentGatewayOrder(payload) {
|
|
382
|
-
function __paymentCollectionCreatePaymentGatewayOrder({ host }) {
|
|
383
|
-
const metadata = {
|
|
384
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
385
|
-
method: "POST",
|
|
386
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.CreatePaymentGatewayOrder",
|
|
387
|
-
packageName: PACKAGE_NAME,
|
|
388
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
389
|
-
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/create-payment-gateway-order",
|
|
390
|
-
data: payload,
|
|
391
|
-
host
|
|
392
|
-
}),
|
|
393
|
-
data: payload
|
|
394
|
-
};
|
|
395
|
-
return metadata;
|
|
396
|
-
}
|
|
397
|
-
return __paymentCollectionCreatePaymentGatewayOrder;
|
|
209
|
+
return __searchOrders;
|
|
398
210
|
}
|
|
399
|
-
function
|
|
400
|
-
function
|
|
211
|
+
function createOrder(payload) {
|
|
212
|
+
function __createOrder({ host }) {
|
|
401
213
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
402
214
|
{
|
|
403
215
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
404
|
-
paths: [
|
|
216
|
+
paths: [
|
|
217
|
+
{ path: "order.createdDate" },
|
|
218
|
+
{ path: "order.updatedDate" },
|
|
219
|
+
{ path: "order.purchasedDate" },
|
|
220
|
+
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
221
|
+
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
222
|
+
{
|
|
223
|
+
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
224
|
+
},
|
|
225
|
+
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
226
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
227
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
228
|
+
{ path: "order.activities.createdDate" }
|
|
229
|
+
]
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
233
|
+
paths: [
|
|
234
|
+
{ path: "order.lineItems.image.focalPoint.x" },
|
|
235
|
+
{ path: "order.lineItems.image.focalPoint.y" },
|
|
236
|
+
{ path: "order.lineItems.physicalProperties.weight" },
|
|
237
|
+
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
238
|
+
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
239
|
+
{
|
|
240
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
250
|
+
},
|
|
251
|
+
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
252
|
+
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
253
|
+
]
|
|
405
254
|
}
|
|
406
255
|
]);
|
|
407
256
|
const metadata = {
|
|
408
257
|
entityFqdn: "wix.ecom.v1.order",
|
|
409
258
|
method: "POST",
|
|
410
|
-
methodFqn: "com.wix.ecom.orders.
|
|
259
|
+
methodFqn: "com.wix.ecom.orders.v1.Orders.CreateOrder",
|
|
411
260
|
packageName: PACKAGE_NAME,
|
|
412
|
-
url:
|
|
413
|
-
protoPath: "/v1/
|
|
261
|
+
url: resolveComWixEcomOrdersV1OrdersUrl({
|
|
262
|
+
protoPath: "/v1/orders",
|
|
414
263
|
data: serializedData,
|
|
415
264
|
host
|
|
416
265
|
}),
|
|
417
|
-
data: serializedData
|
|
418
|
-
};
|
|
419
|
-
return metadata;
|
|
420
|
-
}
|
|
421
|
-
return __chargeMemberships;
|
|
422
|
-
}
|
|
423
|
-
function triggerRefund(payload) {
|
|
424
|
-
function __triggerRefund({ host }) {
|
|
425
|
-
const metadata = {
|
|
426
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
427
|
-
method: "POST",
|
|
428
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.TriggerRefund",
|
|
429
|
-
packageName: PACKAGE_NAME,
|
|
430
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
431
|
-
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/trigger-refund",
|
|
432
|
-
data: payload,
|
|
433
|
-
host
|
|
434
|
-
}),
|
|
435
|
-
data: payload,
|
|
266
|
+
data: serializedData,
|
|
436
267
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
437
268
|
{
|
|
438
269
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
439
270
|
paths: [
|
|
440
|
-
{ path: "
|
|
441
|
-
{ path: "
|
|
442
|
-
{
|
|
443
|
-
|
|
444
|
-
},
|
|
445
|
-
{
|
|
446
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
447
|
-
},
|
|
448
|
-
{
|
|
449
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
450
|
-
},
|
|
271
|
+
{ path: "order.createdDate" },
|
|
272
|
+
{ path: "order.updatedDate" },
|
|
273
|
+
{ path: "order.purchasedDate" },
|
|
274
|
+
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
275
|
+
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
451
276
|
{
|
|
452
|
-
path: "
|
|
277
|
+
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
453
278
|
},
|
|
454
|
-
{ path: "
|
|
279
|
+
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
280
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
281
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
282
|
+
{ path: "order.activities.createdDate" }
|
|
455
283
|
]
|
|
456
|
-
}
|
|
457
|
-
])
|
|
458
|
-
};
|
|
459
|
-
return metadata;
|
|
460
|
-
}
|
|
461
|
-
return __triggerRefund;
|
|
462
|
-
}
|
|
463
|
-
function voidAuthorizedPayments(payload) {
|
|
464
|
-
function __voidAuthorizedPayments({ host }) {
|
|
465
|
-
const metadata = {
|
|
466
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
467
|
-
method: "POST",
|
|
468
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.VoidAuthorizedPayments",
|
|
469
|
-
packageName: PACKAGE_NAME,
|
|
470
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
471
|
-
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/void-authorized-payments",
|
|
472
|
-
data: payload,
|
|
473
|
-
host
|
|
474
|
-
}),
|
|
475
|
-
data: payload,
|
|
476
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
284
|
+
},
|
|
477
285
|
{
|
|
478
|
-
transformFn:
|
|
286
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
479
287
|
paths: [
|
|
480
|
-
{ path: "
|
|
481
|
-
{ path: "
|
|
288
|
+
{ path: "order.lineItems.image.focalPoint.x" },
|
|
289
|
+
{ path: "order.lineItems.image.focalPoint.y" },
|
|
290
|
+
{ path: "order.lineItems.physicalProperties.weight" },
|
|
291
|
+
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
292
|
+
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
482
293
|
{
|
|
483
|
-
path: "
|
|
294
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
484
295
|
},
|
|
485
296
|
{
|
|
486
|
-
path: "
|
|
297
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
487
298
|
},
|
|
488
299
|
{
|
|
489
|
-
path: "
|
|
300
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
490
301
|
},
|
|
491
302
|
{
|
|
492
|
-
path: "
|
|
303
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
493
304
|
},
|
|
494
|
-
{ path: "
|
|
305
|
+
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
306
|
+
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
495
307
|
]
|
|
496
308
|
}
|
|
497
309
|
])
|
|
498
310
|
};
|
|
499
311
|
return metadata;
|
|
500
312
|
}
|
|
501
|
-
return
|
|
502
|
-
}
|
|
503
|
-
function captureAuthorizedPayments(payload) {
|
|
504
|
-
function __captureAuthorizedPayments({ host }) {
|
|
505
|
-
const metadata = {
|
|
506
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
507
|
-
method: "POST",
|
|
508
|
-
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.CaptureAuthorizedPayments",
|
|
509
|
-
packageName: PACKAGE_NAME,
|
|
510
|
-
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
511
|
-
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/capture-authorized-payments",
|
|
512
|
-
data: payload,
|
|
513
|
-
host
|
|
514
|
-
}),
|
|
515
|
-
data: payload,
|
|
516
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
517
|
-
{
|
|
518
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
519
|
-
paths: [
|
|
520
|
-
{ path: "orderTransactions.payments.createdDate" },
|
|
521
|
-
{ path: "orderTransactions.payments.updatedDate" },
|
|
522
|
-
{
|
|
523
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
|
|
524
|
-
},
|
|
525
|
-
{
|
|
526
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
527
|
-
},
|
|
528
|
-
{
|
|
529
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
530
|
-
},
|
|
531
|
-
{
|
|
532
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
533
|
-
},
|
|
534
|
-
{ path: "orderTransactions.refunds.createdDate" }
|
|
535
|
-
]
|
|
536
|
-
}
|
|
537
|
-
])
|
|
538
|
-
};
|
|
539
|
-
return metadata;
|
|
540
|
-
}
|
|
541
|
-
return __captureAuthorizedPayments;
|
|
542
|
-
}
|
|
543
|
-
function getOrder(payload) {
|
|
544
|
-
function __getOrder({ host }) {
|
|
545
|
-
const metadata = {
|
|
546
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
547
|
-
method: "GET",
|
|
548
|
-
methodFqn: "com.wix.ecom.orders.v1.Orders.GetOrder",
|
|
549
|
-
packageName: PACKAGE_NAME,
|
|
550
|
-
url: resolveComWixEcomOrdersV1OrdersUrl({
|
|
551
|
-
protoPath: "/v1/orders/{id}",
|
|
552
|
-
data: payload,
|
|
553
|
-
host
|
|
554
|
-
}),
|
|
555
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
556
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
557
|
-
{
|
|
558
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
559
|
-
paths: [
|
|
560
|
-
{ path: "order.createdDate" },
|
|
561
|
-
{ path: "order.updatedDate" },
|
|
562
|
-
{ path: "order.purchasedDate" },
|
|
563
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
564
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
565
|
-
{
|
|
566
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
567
|
-
},
|
|
568
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
569
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
570
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
571
|
-
{ path: "order.activities.createdDate" }
|
|
572
|
-
]
|
|
573
|
-
},
|
|
574
|
-
{
|
|
575
|
-
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
576
|
-
paths: [
|
|
577
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
578
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
579
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
580
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
581
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
582
|
-
{
|
|
583
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
584
|
-
},
|
|
585
|
-
{
|
|
586
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
587
|
-
},
|
|
588
|
-
{
|
|
589
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
590
|
-
},
|
|
591
|
-
{
|
|
592
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
593
|
-
},
|
|
594
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
595
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
596
|
-
]
|
|
597
|
-
}
|
|
598
|
-
])
|
|
599
|
-
};
|
|
600
|
-
return metadata;
|
|
601
|
-
}
|
|
602
|
-
return __getOrder;
|
|
603
|
-
}
|
|
604
|
-
function searchOrders(payload) {
|
|
605
|
-
function __searchOrders({ host }) {
|
|
606
|
-
const metadata = {
|
|
607
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
608
|
-
method: "POST",
|
|
609
|
-
methodFqn: "com.wix.ecom.orders.v1.Orders.SearchOrders",
|
|
610
|
-
packageName: PACKAGE_NAME,
|
|
611
|
-
url: resolveComWixEcomOrdersV1OrdersUrl({
|
|
612
|
-
protoPath: "/v1/orders/search",
|
|
613
|
-
data: payload,
|
|
614
|
-
host
|
|
615
|
-
}),
|
|
616
|
-
data: payload,
|
|
617
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
618
|
-
{
|
|
619
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
620
|
-
paths: [
|
|
621
|
-
{ path: "orders.createdDate" },
|
|
622
|
-
{ path: "orders.updatedDate" },
|
|
623
|
-
{ path: "orders.purchasedDate" },
|
|
624
|
-
{ path: "orders.lineItems.image.urlExpirationDate" },
|
|
625
|
-
{ path: "orders.lineItems.digitalFile.expirationDate" },
|
|
626
|
-
{
|
|
627
|
-
path: "orders.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
628
|
-
},
|
|
629
|
-
{ path: "orders.shippingInfo.logistics.deliverByDate" },
|
|
630
|
-
{ path: "orders.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
631
|
-
{ path: "orders.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
632
|
-
{ path: "orders.activities.createdDate" }
|
|
633
|
-
]
|
|
634
|
-
},
|
|
635
|
-
{
|
|
636
|
-
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
637
|
-
paths: [
|
|
638
|
-
{ path: "orders.lineItems.image.focalPoint.x" },
|
|
639
|
-
{ path: "orders.lineItems.image.focalPoint.y" },
|
|
640
|
-
{ path: "orders.lineItems.physicalProperties.weight" },
|
|
641
|
-
{ path: "orders.billingInfo.address.geocode.latitude" },
|
|
642
|
-
{ path: "orders.billingInfo.address.geocode.longitude" },
|
|
643
|
-
{
|
|
644
|
-
path: "orders.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
645
|
-
},
|
|
646
|
-
{
|
|
647
|
-
path: "orders.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
648
|
-
},
|
|
649
|
-
{
|
|
650
|
-
path: "orders.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
651
|
-
},
|
|
652
|
-
{
|
|
653
|
-
path: "orders.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
654
|
-
},
|
|
655
|
-
{ path: "orders.recipientInfo.address.geocode.latitude" },
|
|
656
|
-
{ path: "orders.recipientInfo.address.geocode.longitude" }
|
|
657
|
-
]
|
|
658
|
-
}
|
|
659
|
-
])
|
|
660
|
-
};
|
|
661
|
-
return metadata;
|
|
662
|
-
}
|
|
663
|
-
return __searchOrders;
|
|
664
|
-
}
|
|
665
|
-
function createOrder(payload) {
|
|
666
|
-
function __createOrder({ host }) {
|
|
667
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
668
|
-
{
|
|
669
|
-
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
670
|
-
paths: [
|
|
671
|
-
{ path: "order.createdDate" },
|
|
672
|
-
{ path: "order.updatedDate" },
|
|
673
|
-
{ path: "order.purchasedDate" },
|
|
674
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
675
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
676
|
-
{
|
|
677
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
678
|
-
},
|
|
679
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
680
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
681
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
682
|
-
{ path: "order.activities.createdDate" }
|
|
683
|
-
]
|
|
684
|
-
},
|
|
685
|
-
{
|
|
686
|
-
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
687
|
-
paths: [
|
|
688
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
689
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
690
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
691
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
692
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
693
|
-
{
|
|
694
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
695
|
-
},
|
|
696
|
-
{
|
|
697
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
698
|
-
},
|
|
699
|
-
{
|
|
700
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
701
|
-
},
|
|
702
|
-
{
|
|
703
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
704
|
-
},
|
|
705
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
706
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
707
|
-
]
|
|
708
|
-
}
|
|
709
|
-
]);
|
|
710
|
-
const metadata = {
|
|
711
|
-
entityFqdn: "wix.ecom.v1.order",
|
|
712
|
-
method: "POST",
|
|
713
|
-
methodFqn: "com.wix.ecom.orders.v1.Orders.CreateOrder",
|
|
714
|
-
packageName: PACKAGE_NAME,
|
|
715
|
-
url: resolveComWixEcomOrdersV1OrdersUrl({
|
|
716
|
-
protoPath: "/v1/orders",
|
|
717
|
-
data: serializedData,
|
|
718
|
-
host
|
|
719
|
-
}),
|
|
720
|
-
data: serializedData,
|
|
721
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
722
|
-
{
|
|
723
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
724
|
-
paths: [
|
|
725
|
-
{ path: "order.createdDate" },
|
|
726
|
-
{ path: "order.updatedDate" },
|
|
727
|
-
{ path: "order.purchasedDate" },
|
|
728
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
729
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
730
|
-
{
|
|
731
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
732
|
-
},
|
|
733
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
734
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
735
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
736
|
-
{ path: "order.activities.createdDate" }
|
|
737
|
-
]
|
|
738
|
-
},
|
|
739
|
-
{
|
|
740
|
-
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
741
|
-
paths: [
|
|
742
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
743
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
744
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
745
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
746
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
747
|
-
{
|
|
748
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
749
|
-
},
|
|
750
|
-
{
|
|
751
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
752
|
-
},
|
|
753
|
-
{
|
|
754
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
755
|
-
},
|
|
756
|
-
{
|
|
757
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
758
|
-
},
|
|
759
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
760
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
761
|
-
]
|
|
762
|
-
}
|
|
763
|
-
])
|
|
764
|
-
};
|
|
765
|
-
return metadata;
|
|
766
|
-
}
|
|
767
|
-
return __createOrder;
|
|
313
|
+
return __createOrder;
|
|
768
314
|
}
|
|
769
315
|
function updateOrder(payload) {
|
|
770
316
|
function __updateOrder({ host }) {
|
|
@@ -1690,202 +1236,11 @@ var ChannelType = /* @__PURE__ */ ((ChannelType2) => {
|
|
|
1690
1236
|
ChannelType2["FAIRE_COM"] = "FAIRE_COM";
|
|
1691
1237
|
return ChannelType2;
|
|
1692
1238
|
})(ChannelType || {});
|
|
1693
|
-
var ScheduledAction = /* @__PURE__ */ ((ScheduledAction2) => {
|
|
1694
|
-
ScheduledAction2["UNSPECIFIED"] = "UNSPECIFIED";
|
|
1695
|
-
ScheduledAction2["VOID"] = "VOID";
|
|
1696
|
-
ScheduledAction2["CAPTURE"] = "CAPTURE";
|
|
1697
|
-
return ScheduledAction2;
|
|
1698
|
-
})(ScheduledAction || {});
|
|
1699
|
-
var DurationUnit = /* @__PURE__ */ ((DurationUnit2) => {
|
|
1700
|
-
DurationUnit2["UNKNOWN_DURATION_UNIT"] = "UNKNOWN_DURATION_UNIT";
|
|
1701
|
-
DurationUnit2["MINUTES"] = "MINUTES";
|
|
1702
|
-
DurationUnit2["HOURS"] = "HOURS";
|
|
1703
|
-
DurationUnit2["DAYS"] = "DAYS";
|
|
1704
|
-
return DurationUnit2;
|
|
1705
|
-
})(DurationUnit || {});
|
|
1706
|
-
var PaymentCollectabilityStatus = /* @__PURE__ */ ((PaymentCollectabilityStatus2) => {
|
|
1707
|
-
PaymentCollectabilityStatus2["UNKNOWN"] = "UNKNOWN";
|
|
1708
|
-
PaymentCollectabilityStatus2["COLLECTABLE"] = "COLLECTABLE";
|
|
1709
|
-
PaymentCollectabilityStatus2["NONCOLLECTABLE_ORDER_IS_CANCELLED"] = "NONCOLLECTABLE_ORDER_IS_CANCELLED";
|
|
1710
|
-
PaymentCollectabilityStatus2["NONCOLLECTABLE_ORDER_IS_PAID"] = "NONCOLLECTABLE_ORDER_IS_PAID";
|
|
1711
|
-
PaymentCollectabilityStatus2["NONCOLLECTABLE_MISSING_PAYMENT_METHOD"] = "NONCOLLECTABLE_MISSING_PAYMENT_METHOD";
|
|
1712
|
-
PaymentCollectabilityStatus2["NONCOLLECTABLE_ORDER_IS_PENDING"] = "NONCOLLECTABLE_ORDER_IS_PENDING";
|
|
1713
|
-
PaymentCollectabilityStatus2["NONCOLLECTABLE_ORDER_IS_REJECTED"] = "NONCOLLECTABLE_ORDER_IS_REJECTED";
|
|
1714
|
-
PaymentCollectabilityStatus2["NONCOLLECTABLE_ORDER_HAS_SUBSCRIPTIONS"] = "NONCOLLECTABLE_ORDER_HAS_SUBSCRIPTIONS";
|
|
1715
|
-
return PaymentCollectabilityStatus2;
|
|
1716
|
-
})(PaymentCollectabilityStatus || {});
|
|
1717
|
-
var RefundableStatus = /* @__PURE__ */ ((RefundableStatus2) => {
|
|
1718
|
-
RefundableStatus2["NOT_REFUNDABLE"] = "NOT_REFUNDABLE";
|
|
1719
|
-
RefundableStatus2["MANUAL"] = "MANUAL";
|
|
1720
|
-
RefundableStatus2["REFUNDABLE"] = "REFUNDABLE";
|
|
1721
|
-
return RefundableStatus2;
|
|
1722
|
-
})(RefundableStatus || {});
|
|
1723
|
-
var NonRefundableReason = /* @__PURE__ */ ((NonRefundableReason2) => {
|
|
1724
|
-
NonRefundableReason2["NONE"] = "NONE";
|
|
1725
|
-
NonRefundableReason2["ALREADY_REFUNDED"] = "ALREADY_REFUNDED";
|
|
1726
|
-
NonRefundableReason2["PROVIDER_IS_DOWN"] = "PROVIDER_IS_DOWN";
|
|
1727
|
-
NonRefundableReason2["INTERNAL_ERROR"] = "INTERNAL_ERROR";
|
|
1728
|
-
NonRefundableReason2["NOT_PAID"] = "NOT_PAID";
|
|
1729
|
-
NonRefundableReason2["ACCESS_DENIED"] = "ACCESS_DENIED";
|
|
1730
|
-
NonRefundableReason2["ZERO_PRICE"] = "ZERO_PRICE";
|
|
1731
|
-
NonRefundableReason2["DISABLED_BY_PROVIDER"] = "DISABLED_BY_PROVIDER";
|
|
1732
|
-
NonRefundableReason2["PENDING_REFUND"] = "PENDING_REFUND";
|
|
1733
|
-
NonRefundableReason2["FORBIDDEN"] = "FORBIDDEN";
|
|
1734
|
-
NonRefundableReason2["TRANSACTION_NOT_FOUND"] = "TRANSACTION_NOT_FOUND";
|
|
1735
|
-
NonRefundableReason2["ORDER_IS_PENDING"] = "ORDER_IS_PENDING";
|
|
1736
|
-
NonRefundableReason2["ORDER_IS_REJECTED"] = "ORDER_IS_REJECTED";
|
|
1737
|
-
return NonRefundableReason2;
|
|
1738
|
-
})(NonRefundableReason || {});
|
|
1739
|
-
var ManuallyRefundableReason = /* @__PURE__ */ ((ManuallyRefundableReason2) => {
|
|
1740
|
-
ManuallyRefundableReason2["EXPIRED"] = "EXPIRED";
|
|
1741
|
-
ManuallyRefundableReason2["NOT_SUPPORTED"] = "NOT_SUPPORTED";
|
|
1742
|
-
ManuallyRefundableReason2["OFFLINE"] = "OFFLINE";
|
|
1743
|
-
ManuallyRefundableReason2["REQUIRES_CARD_READER"] = "REQUIRES_CARD_READER";
|
|
1744
|
-
return ManuallyRefundableReason2;
|
|
1745
|
-
})(ManuallyRefundableReason || {});
|
|
1746
|
-
var RestockType = /* @__PURE__ */ ((RestockType2) => {
|
|
1747
|
-
RestockType2["NO_ITEMS"] = "NO_ITEMS";
|
|
1748
|
-
RestockType2["ALL_ITEMS"] = "ALL_ITEMS";
|
|
1749
|
-
RestockType2["SOME_ITEMS"] = "SOME_ITEMS";
|
|
1750
|
-
return RestockType2;
|
|
1751
|
-
})(RestockType || {});
|
|
1752
|
-
var TransactionStatus = /* @__PURE__ */ ((TransactionStatus2) => {
|
|
1753
|
-
TransactionStatus2["UNDEFINED"] = "UNDEFINED";
|
|
1754
|
-
TransactionStatus2["APPROVED"] = "APPROVED";
|
|
1755
|
-
TransactionStatus2["PENDING"] = "PENDING";
|
|
1756
|
-
TransactionStatus2["PENDING_MERCHANT"] = "PENDING_MERCHANT";
|
|
1757
|
-
TransactionStatus2["CANCELED"] = "CANCELED";
|
|
1758
|
-
TransactionStatus2["DECLINED"] = "DECLINED";
|
|
1759
|
-
TransactionStatus2["REFUNDED"] = "REFUNDED";
|
|
1760
|
-
TransactionStatus2["PARTIALLY_REFUNDED"] = "PARTIALLY_REFUNDED";
|
|
1761
|
-
TransactionStatus2["AUTHORIZED"] = "AUTHORIZED";
|
|
1762
|
-
TransactionStatus2["VOIDED"] = "VOIDED";
|
|
1763
|
-
return TransactionStatus2;
|
|
1764
|
-
})(TransactionStatus || {});
|
|
1765
|
-
var AuthorizationCaptureStatus = /* @__PURE__ */ ((AuthorizationCaptureStatus2) => {
|
|
1766
|
-
AuthorizationCaptureStatus2["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
|
|
1767
|
-
AuthorizationCaptureStatus2["PENDING"] = "PENDING";
|
|
1768
|
-
AuthorizationCaptureStatus2["SUCCEEDED"] = "SUCCEEDED";
|
|
1769
|
-
AuthorizationCaptureStatus2["FAILED"] = "FAILED";
|
|
1770
|
-
return AuthorizationCaptureStatus2;
|
|
1771
|
-
})(AuthorizationCaptureStatus || {});
|
|
1772
|
-
var AuthorizationVoidStatus = /* @__PURE__ */ ((AuthorizationVoidStatus2) => {
|
|
1773
|
-
AuthorizationVoidStatus2["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
|
|
1774
|
-
AuthorizationVoidStatus2["PENDING"] = "PENDING";
|
|
1775
|
-
AuthorizationVoidStatus2["SUCCEEDED"] = "SUCCEEDED";
|
|
1776
|
-
AuthorizationVoidStatus2["FAILED"] = "FAILED";
|
|
1777
|
-
return AuthorizationVoidStatus2;
|
|
1778
|
-
})(AuthorizationVoidStatus || {});
|
|
1779
|
-
var Reason = /* @__PURE__ */ ((Reason2) => {
|
|
1780
|
-
Reason2["UNKNOWN_REASON"] = "UNKNOWN_REASON";
|
|
1781
|
-
Reason2["MANUAL"] = "MANUAL";
|
|
1782
|
-
Reason2["SCHEDULED"] = "SCHEDULED";
|
|
1783
|
-
return Reason2;
|
|
1784
|
-
})(Reason || {});
|
|
1785
|
-
var ActionType = /* @__PURE__ */ ((ActionType2) => {
|
|
1786
|
-
ActionType2["UNKNOWN_ACTION_TYPE"] = "UNKNOWN_ACTION_TYPE";
|
|
1787
|
-
ActionType2["VOID"] = "VOID";
|
|
1788
|
-
ActionType2["CAPTURE"] = "CAPTURE";
|
|
1789
|
-
return ActionType2;
|
|
1790
|
-
})(ActionType || {});
|
|
1791
|
-
var ChargebackStatus = /* @__PURE__ */ ((ChargebackStatus2) => {
|
|
1792
|
-
ChargebackStatus2["UNSPECIFIED"] = "UNSPECIFIED";
|
|
1793
|
-
ChargebackStatus2["APPROVED"] = "APPROVED";
|
|
1794
|
-
ChargebackStatus2["REVERSED"] = "REVERSED";
|
|
1795
|
-
return ChargebackStatus2;
|
|
1796
|
-
})(ChargebackStatus || {});
|
|
1797
|
-
var MembershipPaymentStatus = /* @__PURE__ */ ((MembershipPaymentStatus2) => {
|
|
1798
|
-
MembershipPaymentStatus2["CHARGED"] = "CHARGED";
|
|
1799
|
-
MembershipPaymentStatus2["CHARGE_FAILED"] = "CHARGE_FAILED";
|
|
1800
|
-
return MembershipPaymentStatus2;
|
|
1801
|
-
})(MembershipPaymentStatus || {});
|
|
1802
|
-
var RefundStatus = /* @__PURE__ */ ((RefundStatus2) => {
|
|
1803
|
-
RefundStatus2["PENDING"] = "PENDING";
|
|
1804
|
-
RefundStatus2["SUCCEEDED"] = "SUCCEEDED";
|
|
1805
|
-
RefundStatus2["FAILED"] = "FAILED";
|
|
1806
|
-
RefundStatus2["SCHEDULED"] = "SCHEDULED";
|
|
1807
|
-
RefundStatus2["STARTED"] = "STARTED";
|
|
1808
|
-
return RefundStatus2;
|
|
1809
|
-
})(RefundStatus || {});
|
|
1810
|
-
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
1811
|
-
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
1812
|
-
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
1813
|
-
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
1814
|
-
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
1815
|
-
WebhookIdentityType2["APP"] = "APP";
|
|
1816
|
-
return WebhookIdentityType2;
|
|
1817
|
-
})(WebhookIdentityType || {});
|
|
1818
|
-
var TextDetection = /* @__PURE__ */ ((TextDetection2) => {
|
|
1819
|
-
TextDetection2["UNKNOWN_TEXT_DETECTION"] = "UNKNOWN_TEXT_DETECTION";
|
|
1820
|
-
TextDetection2["CONTAINS_TEXT"] = "CONTAINS_TEXT";
|
|
1821
|
-
TextDetection2["NO_TEXT"] = "NO_TEXT";
|
|
1822
|
-
return TextDetection2;
|
|
1823
|
-
})(TextDetection || {});
|
|
1824
|
-
var AnimationDetection = /* @__PURE__ */ ((AnimationDetection2) => {
|
|
1825
|
-
AnimationDetection2["UNKNOWN_ANIMATION_DETECTION"] = "UNKNOWN_ANIMATION_DETECTION";
|
|
1826
|
-
AnimationDetection2["CONTAINS_ANIMATION"] = "CONTAINS_ANIMATION";
|
|
1827
|
-
AnimationDetection2["NO_ANIMATION"] = "NO_ANIMATION";
|
|
1828
|
-
return AnimationDetection2;
|
|
1829
|
-
})(AnimationDetection || {});
|
|
1830
|
-
var PreviewEmailType = /* @__PURE__ */ ((PreviewEmailType2) => {
|
|
1831
|
-
PreviewEmailType2["ORDER_PLACED"] = "ORDER_PLACED";
|
|
1832
|
-
PreviewEmailType2["DOWNLOAD_LINKS"] = "DOWNLOAD_LINKS";
|
|
1833
|
-
PreviewEmailType2["ORDER_SHIPPED"] = "ORDER_SHIPPED";
|
|
1834
|
-
PreviewEmailType2["ORDER_READY_FOR_PICKUP"] = "ORDER_READY_FOR_PICKUP";
|
|
1835
|
-
return PreviewEmailType2;
|
|
1836
|
-
})(PreviewEmailType || {});
|
|
1837
|
-
var State = /* @__PURE__ */ ((State2) => {
|
|
1838
|
-
State2["UNKNOWN"] = "UNKNOWN";
|
|
1839
|
-
State2["ENABLED"] = "ENABLED";
|
|
1840
|
-
State2["DISABLED"] = "DISABLED";
|
|
1841
|
-
State2["TEMPLATE"] = "TEMPLATE";
|
|
1842
|
-
State2["PENDING"] = "PENDING";
|
|
1843
|
-
return State2;
|
|
1844
|
-
})(State || {});
|
|
1845
|
-
var Namespace = /* @__PURE__ */ ((Namespace2) => {
|
|
1846
|
-
Namespace2["UNKNOWN_NAMESPACE"] = "UNKNOWN_NAMESPACE";
|
|
1847
|
-
Namespace2["WIX"] = "WIX";
|
|
1848
|
-
Namespace2["SHOUT_OUT"] = "SHOUT_OUT";
|
|
1849
|
-
Namespace2["ALBUMS"] = "ALBUMS";
|
|
1850
|
-
Namespace2["WIX_STORES_TEST_DRIVE"] = "WIX_STORES_TEST_DRIVE";
|
|
1851
|
-
Namespace2["HOTELS"] = "HOTELS";
|
|
1852
|
-
Namespace2["CLUBS"] = "CLUBS";
|
|
1853
|
-
Namespace2["ONBOARDING_DRAFT"] = "ONBOARDING_DRAFT";
|
|
1854
|
-
Namespace2["DEV_SITE"] = "DEV_SITE";
|
|
1855
|
-
Namespace2["LOGOS"] = "LOGOS";
|
|
1856
|
-
Namespace2["VIDEO_MAKER"] = "VIDEO_MAKER";
|
|
1857
|
-
Namespace2["PARTNER_DASHBOARD"] = "PARTNER_DASHBOARD";
|
|
1858
|
-
Namespace2["DEV_CENTER_COMPANY"] = "DEV_CENTER_COMPANY";
|
|
1859
|
-
Namespace2["HTML_DRAFT"] = "HTML_DRAFT";
|
|
1860
|
-
Namespace2["SITELESS_BUSINESS"] = "SITELESS_BUSINESS";
|
|
1861
|
-
Namespace2["CREATOR_ECONOMY"] = "CREATOR_ECONOMY";
|
|
1862
|
-
Namespace2["DASHBOARD_FIRST"] = "DASHBOARD_FIRST";
|
|
1863
|
-
Namespace2["ANYWHERE"] = "ANYWHERE";
|
|
1864
|
-
Namespace2["HEADLESS"] = "HEADLESS";
|
|
1865
|
-
Namespace2["ACCOUNT_MASTER_CMS"] = "ACCOUNT_MASTER_CMS";
|
|
1866
|
-
Namespace2["RISE"] = "RISE";
|
|
1867
|
-
Namespace2["BRANDED_FIRST"] = "BRANDED_FIRST";
|
|
1868
|
-
Namespace2["NOWNIA"] = "NOWNIA";
|
|
1869
|
-
Namespace2["UGC_TEMPLATE"] = "UGC_TEMPLATE";
|
|
1870
|
-
Namespace2["CODUX"] = "CODUX";
|
|
1871
|
-
Namespace2["MEDIA_DESIGN_CREATOR"] = "MEDIA_DESIGN_CREATOR";
|
|
1872
|
-
Namespace2["SHARED_BLOG_ENTERPRISE"] = "SHARED_BLOG_ENTERPRISE";
|
|
1873
|
-
Namespace2["STANDALONE_FORMS"] = "STANDALONE_FORMS";
|
|
1874
|
-
Namespace2["STANDALONE_EVENTS"] = "STANDALONE_EVENTS";
|
|
1875
|
-
Namespace2["MIMIR"] = "MIMIR";
|
|
1876
|
-
return Namespace2;
|
|
1877
|
-
})(Namespace || {});
|
|
1878
1239
|
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
1879
1240
|
SortOrder2["ASC"] = "ASC";
|
|
1880
1241
|
SortOrder2["DESC"] = "DESC";
|
|
1881
1242
|
return SortOrder2;
|
|
1882
1243
|
})(SortOrder || {});
|
|
1883
|
-
var VersioningMode = /* @__PURE__ */ ((VersioningMode2) => {
|
|
1884
|
-
VersioningMode2["DEFAULT"] = "DEFAULT";
|
|
1885
|
-
VersioningMode2["GREATER_THAN"] = "GREATER_THAN";
|
|
1886
|
-
VersioningMode2["GREATER_OR_EQUAL"] = "GREATER_OR_EQUAL";
|
|
1887
|
-
return VersioningMode2;
|
|
1888
|
-
})(VersioningMode || {});
|
|
1889
1244
|
var OrderApprovalStrategy = /* @__PURE__ */ ((OrderApprovalStrategy2) => {
|
|
1890
1245
|
OrderApprovalStrategy2["DEFAULT"] = "DEFAULT";
|
|
1891
1246
|
OrderApprovalStrategy2["PAYMENT_RECEIVED"] = "PAYMENT_RECEIVED";
|
|
@@ -1963,351 +1318,14 @@ var InvoiceStatus = /* @__PURE__ */ ((InvoiceStatus2) => {
|
|
|
1963
1318
|
InvoiceStatus2["PartialAndOverdue"] = "PartialAndOverdue";
|
|
1964
1319
|
return InvoiceStatus2;
|
|
1965
1320
|
})(InvoiceStatus || {});
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
});
|
|
1975
|
-
const reqOpts = preparePaymentCollection(payload);
|
|
1976
|
-
sideEffects?.onSiteCall?.();
|
|
1977
|
-
try {
|
|
1978
|
-
const result = await httpClient.request(reqOpts);
|
|
1979
|
-
sideEffects?.onSuccess?.(result);
|
|
1980
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1981
|
-
} catch (err) {
|
|
1982
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
1983
|
-
err,
|
|
1984
|
-
{
|
|
1985
|
-
spreadPathsToArguments: {},
|
|
1986
|
-
explicitPathsToArguments: {
|
|
1987
|
-
ecomOrderId: "$[0]",
|
|
1988
|
-
amount: "$[1]",
|
|
1989
|
-
paymentGatewayOrderId: "$[2].paymentGatewayOrderId",
|
|
1990
|
-
delayedCapture: "$[2].delayedCapture",
|
|
1991
|
-
delayedCaptureSettings: "$[2].delayedCaptureSettings"
|
|
1992
|
-
},
|
|
1993
|
-
singleArgumentUnchanged: false
|
|
1994
|
-
},
|
|
1995
|
-
["ecomOrderId", "amount", "options"]
|
|
1996
|
-
);
|
|
1997
|
-
sideEffects?.onError?.(err);
|
|
1998
|
-
throw transformedError;
|
|
1999
|
-
}
|
|
2000
|
-
}
|
|
2001
|
-
async function getPaymentCollectabilityStatus2(ecomOrderId) {
|
|
2002
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
2003
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2004
|
-
ecomOrderId
|
|
2005
|
-
});
|
|
2006
|
-
const reqOpts = getPaymentCollectabilityStatus(payload);
|
|
2007
|
-
sideEffects?.onSiteCall?.();
|
|
2008
|
-
try {
|
|
2009
|
-
const result = await httpClient.request(reqOpts);
|
|
2010
|
-
sideEffects?.onSuccess?.(result);
|
|
2011
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2012
|
-
} catch (err) {
|
|
2013
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
2014
|
-
err,
|
|
2015
|
-
{
|
|
2016
|
-
spreadPathsToArguments: {},
|
|
2017
|
-
explicitPathsToArguments: { ecomOrderId: "$[0]" },
|
|
2018
|
-
singleArgumentUnchanged: false
|
|
2019
|
-
},
|
|
2020
|
-
["ecomOrderId"]
|
|
2021
|
-
);
|
|
2022
|
-
sideEffects?.onError?.(err);
|
|
2023
|
-
throw transformedError;
|
|
2024
|
-
}
|
|
2025
|
-
}
|
|
2026
|
-
async function recordManuallyCollectedPayment2(orderId, amount) {
|
|
2027
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
2028
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2029
|
-
orderId,
|
|
2030
|
-
amount
|
|
2031
|
-
});
|
|
2032
|
-
const reqOpts = recordManuallyCollectedPayment(payload);
|
|
2033
|
-
sideEffects?.onSiteCall?.();
|
|
2034
|
-
try {
|
|
2035
|
-
const result = await httpClient.request(reqOpts);
|
|
2036
|
-
sideEffects?.onSuccess?.(result);
|
|
2037
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2038
|
-
} catch (err) {
|
|
2039
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
2040
|
-
err,
|
|
2041
|
-
{
|
|
2042
|
-
spreadPathsToArguments: {},
|
|
2043
|
-
explicitPathsToArguments: { orderId: "$[0]", amount: "$[1]" },
|
|
2044
|
-
singleArgumentUnchanged: false
|
|
2045
|
-
},
|
|
2046
|
-
["orderId", "amount"]
|
|
2047
|
-
);
|
|
2048
|
-
sideEffects?.onError?.(err);
|
|
2049
|
-
throw transformedError;
|
|
2050
|
-
}
|
|
2051
|
-
}
|
|
2052
|
-
async function paymentCollectionMarkOrderAsPaid2(ecomOrderId) {
|
|
2053
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
2054
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2055
|
-
ecomOrderId
|
|
2056
|
-
});
|
|
2057
|
-
const reqOpts = paymentCollectionMarkOrderAsPaid(payload);
|
|
2058
|
-
sideEffects?.onSiteCall?.();
|
|
2059
|
-
try {
|
|
2060
|
-
const result = await httpClient.request(reqOpts);
|
|
2061
|
-
sideEffects?.onSuccess?.(result);
|
|
2062
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
2063
|
-
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
2064
|
-
{
|
|
2065
|
-
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
2066
|
-
paths: [{ path: "order.lineItems.image" }]
|
|
2067
|
-
},
|
|
2068
|
-
{
|
|
2069
|
-
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
2070
|
-
paths: [
|
|
2071
|
-
{ path: "order.billingInfo.address" },
|
|
2072
|
-
{
|
|
2073
|
-
path: "order.shippingInfo.logistics.shippingDestination.address"
|
|
2074
|
-
},
|
|
2075
|
-
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
2076
|
-
{ path: "order.recipientInfo.address" }
|
|
2077
|
-
]
|
|
2078
|
-
}
|
|
2079
|
-
])
|
|
2080
|
-
);
|
|
2081
|
-
} catch (err) {
|
|
2082
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
2083
|
-
err,
|
|
2084
|
-
{
|
|
2085
|
-
spreadPathsToArguments: {},
|
|
2086
|
-
explicitPathsToArguments: { ecomOrderId: "$[0]" },
|
|
2087
|
-
singleArgumentUnchanged: false
|
|
2088
|
-
},
|
|
2089
|
-
["ecomOrderId"]
|
|
2090
|
-
);
|
|
2091
|
-
sideEffects?.onError?.(err);
|
|
2092
|
-
throw transformedError;
|
|
2093
|
-
}
|
|
2094
|
-
}
|
|
2095
|
-
async function paymentCollectionBulkMarkOrdersAsPaid2(ecomOrderIds) {
|
|
2096
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
2097
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2098
|
-
ecomOrderIds
|
|
2099
|
-
});
|
|
2100
|
-
const reqOpts = paymentCollectionBulkMarkOrdersAsPaid(payload);
|
|
2101
|
-
sideEffects?.onSiteCall?.();
|
|
2102
|
-
try {
|
|
2103
|
-
const result = await httpClient.request(reqOpts);
|
|
2104
|
-
sideEffects?.onSuccess?.(result);
|
|
2105
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
2106
|
-
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
2107
|
-
{
|
|
2108
|
-
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
2109
|
-
paths: [{ path: "results.item.lineItems.image" }]
|
|
2110
|
-
},
|
|
2111
|
-
{
|
|
2112
|
-
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
2113
|
-
paths: [
|
|
2114
|
-
{ path: "results.item.billingInfo.address" },
|
|
2115
|
-
{
|
|
2116
|
-
path: "results.item.shippingInfo.logistics.shippingDestination.address"
|
|
2117
|
-
},
|
|
2118
|
-
{
|
|
2119
|
-
path: "results.item.shippingInfo.logistics.pickupDetails.address"
|
|
2120
|
-
},
|
|
2121
|
-
{ path: "results.item.recipientInfo.address" }
|
|
2122
|
-
]
|
|
2123
|
-
}
|
|
2124
|
-
])
|
|
2125
|
-
);
|
|
2126
|
-
} catch (err) {
|
|
2127
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
2128
|
-
err,
|
|
2129
|
-
{
|
|
2130
|
-
spreadPathsToArguments: {},
|
|
2131
|
-
explicitPathsToArguments: { ecomOrderIds: "$[0]" },
|
|
2132
|
-
singleArgumentUnchanged: false
|
|
2133
|
-
},
|
|
2134
|
-
["ecomOrderIds"]
|
|
2135
|
-
);
|
|
2136
|
-
sideEffects?.onError?.(err);
|
|
2137
|
-
throw transformedError;
|
|
2138
|
-
}
|
|
2139
|
-
}
|
|
2140
|
-
async function getRefundabilityStatus2(ecomOrderId) {
|
|
2141
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
2142
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2143
|
-
ecomOrderId
|
|
2144
|
-
});
|
|
2145
|
-
const reqOpts = getRefundabilityStatus(payload);
|
|
2146
|
-
sideEffects?.onSiteCall?.();
|
|
2147
|
-
try {
|
|
2148
|
-
const result = await httpClient.request(reqOpts);
|
|
2149
|
-
sideEffects?.onSuccess?.(result);
|
|
2150
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2151
|
-
} catch (err) {
|
|
2152
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
2153
|
-
err,
|
|
2154
|
-
{
|
|
2155
|
-
spreadPathsToArguments: {},
|
|
2156
|
-
explicitPathsToArguments: { ecomOrderId: "$[0]" },
|
|
2157
|
-
singleArgumentUnchanged: false
|
|
2158
|
-
},
|
|
2159
|
-
["ecomOrderId"]
|
|
2160
|
-
);
|
|
2161
|
-
sideEffects?.onError?.(err);
|
|
2162
|
-
throw transformedError;
|
|
2163
|
-
}
|
|
2164
|
-
}
|
|
2165
|
-
async function paymentCollectionCreatePaymentGatewayOrder2(ecomOrderId, options) {
|
|
2166
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
2167
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2168
|
-
ecomOrderId,
|
|
2169
|
-
chargedBy: options?.chargedBy
|
|
2170
|
-
});
|
|
2171
|
-
const reqOpts = paymentCollectionCreatePaymentGatewayOrder(
|
|
2172
|
-
payload
|
|
2173
|
-
);
|
|
2174
|
-
sideEffects?.onSiteCall?.();
|
|
2175
|
-
try {
|
|
2176
|
-
const result = await httpClient.request(reqOpts);
|
|
2177
|
-
sideEffects?.onSuccess?.(result);
|
|
2178
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2179
|
-
} catch (err) {
|
|
2180
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
2181
|
-
err,
|
|
2182
|
-
{
|
|
2183
|
-
spreadPathsToArguments: {},
|
|
2184
|
-
explicitPathsToArguments: {
|
|
2185
|
-
ecomOrderId: "$[0]",
|
|
2186
|
-
chargedBy: "$[1].chargedBy"
|
|
2187
|
-
},
|
|
2188
|
-
singleArgumentUnchanged: false
|
|
2189
|
-
},
|
|
2190
|
-
["ecomOrderId", "options"]
|
|
2191
|
-
);
|
|
2192
|
-
sideEffects?.onError?.(err);
|
|
2193
|
-
throw transformedError;
|
|
2194
|
-
}
|
|
2195
|
-
}
|
|
2196
|
-
async function chargeMemberships2(ecomOrderId, memberId, options) {
|
|
2197
|
-
const { httpClient, sideEffects } = arguments[3];
|
|
2198
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2199
|
-
ecomOrderId,
|
|
2200
|
-
memberId,
|
|
2201
|
-
membershipCharges: options?.membershipCharges
|
|
2202
|
-
});
|
|
2203
|
-
const reqOpts = chargeMemberships(payload);
|
|
2204
|
-
sideEffects?.onSiteCall?.();
|
|
2205
|
-
try {
|
|
2206
|
-
const result = await httpClient.request(reqOpts);
|
|
2207
|
-
sideEffects?.onSuccess?.(result);
|
|
2208
|
-
} catch (err) {
|
|
2209
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
2210
|
-
err,
|
|
2211
|
-
{
|
|
2212
|
-
spreadPathsToArguments: {},
|
|
2213
|
-
explicitPathsToArguments: {
|
|
2214
|
-
ecomOrderId: "$[0]",
|
|
2215
|
-
memberId: "$[1]",
|
|
2216
|
-
membershipCharges: "$[2].membershipCharges"
|
|
2217
|
-
},
|
|
2218
|
-
singleArgumentUnchanged: false
|
|
2219
|
-
},
|
|
2220
|
-
["ecomOrderId", "memberId", "options"]
|
|
2221
|
-
);
|
|
2222
|
-
sideEffects?.onError?.(err);
|
|
2223
|
-
throw transformedError;
|
|
2224
|
-
}
|
|
2225
|
-
}
|
|
2226
|
-
async function triggerRefund2(ecomOrderId, payments, options) {
|
|
2227
|
-
const { httpClient, sideEffects } = arguments[3];
|
|
2228
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2229
|
-
ecomOrderId,
|
|
2230
|
-
payments,
|
|
2231
|
-
details: options?.details,
|
|
2232
|
-
sideEffects: options?.sideEffects
|
|
2233
|
-
});
|
|
2234
|
-
const reqOpts = triggerRefund(payload);
|
|
2235
|
-
sideEffects?.onSiteCall?.();
|
|
2236
|
-
try {
|
|
2237
|
-
const result = await httpClient.request(reqOpts);
|
|
2238
|
-
sideEffects?.onSuccess?.(result);
|
|
2239
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2240
|
-
} catch (err) {
|
|
2241
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
2242
|
-
err,
|
|
2243
|
-
{
|
|
2244
|
-
spreadPathsToArguments: {},
|
|
2245
|
-
explicitPathsToArguments: {
|
|
2246
|
-
ecomOrderId: "$[0]",
|
|
2247
|
-
payments: "$[1]",
|
|
2248
|
-
details: "$[2].details",
|
|
2249
|
-
sideEffects: "$[2].sideEffects"
|
|
2250
|
-
},
|
|
2251
|
-
singleArgumentUnchanged: false
|
|
2252
|
-
},
|
|
2253
|
-
["ecomOrderId", "payments", "options"]
|
|
2254
|
-
);
|
|
2255
|
-
sideEffects?.onError?.(err);
|
|
2256
|
-
throw transformedError;
|
|
2257
|
-
}
|
|
2258
|
-
}
|
|
2259
|
-
async function voidAuthorizedPayments2(ecomOrderId, paymentIds) {
|
|
2260
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
2261
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2262
|
-
ecomOrderId,
|
|
2263
|
-
paymentIds
|
|
2264
|
-
});
|
|
2265
|
-
const reqOpts = voidAuthorizedPayments(payload);
|
|
2266
|
-
sideEffects?.onSiteCall?.();
|
|
2267
|
-
try {
|
|
2268
|
-
const result = await httpClient.request(reqOpts);
|
|
2269
|
-
sideEffects?.onSuccess?.(result);
|
|
2270
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2271
|
-
} catch (err) {
|
|
2272
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
2273
|
-
err,
|
|
2274
|
-
{
|
|
2275
|
-
spreadPathsToArguments: {},
|
|
2276
|
-
explicitPathsToArguments: { ecomOrderId: "$[0]", paymentIds: "$[1]" },
|
|
2277
|
-
singleArgumentUnchanged: false
|
|
2278
|
-
},
|
|
2279
|
-
["ecomOrderId", "paymentIds"]
|
|
2280
|
-
);
|
|
2281
|
-
sideEffects?.onError?.(err);
|
|
2282
|
-
throw transformedError;
|
|
2283
|
-
}
|
|
2284
|
-
}
|
|
2285
|
-
async function captureAuthorizedPayments2(ecomOrderId, payments) {
|
|
2286
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
2287
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2288
|
-
ecomOrderId,
|
|
2289
|
-
payments
|
|
2290
|
-
});
|
|
2291
|
-
const reqOpts = captureAuthorizedPayments(payload);
|
|
2292
|
-
sideEffects?.onSiteCall?.();
|
|
2293
|
-
try {
|
|
2294
|
-
const result = await httpClient.request(reqOpts);
|
|
2295
|
-
sideEffects?.onSuccess?.(result);
|
|
2296
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2297
|
-
} catch (err) {
|
|
2298
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
2299
|
-
err,
|
|
2300
|
-
{
|
|
2301
|
-
spreadPathsToArguments: {},
|
|
2302
|
-
explicitPathsToArguments: { ecomOrderId: "$[0]", payments: "$[1]" },
|
|
2303
|
-
singleArgumentUnchanged: false
|
|
2304
|
-
},
|
|
2305
|
-
["ecomOrderId", "payments"]
|
|
2306
|
-
);
|
|
2307
|
-
sideEffects?.onError?.(err);
|
|
2308
|
-
throw transformedError;
|
|
2309
|
-
}
|
|
2310
|
-
}
|
|
1321
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
1322
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
1323
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
1324
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
1325
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
1326
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
1327
|
+
return WebhookIdentityType2;
|
|
1328
|
+
})(WebhookIdentityType || {});
|
|
2311
1329
|
async function getOrder2(_id) {
|
|
2312
1330
|
const { httpClient, sideEffects } = arguments[1];
|
|
2313
1331
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ id: _id });
|
|
@@ -3005,56 +2023,35 @@ async function bulkUpdateOrderTags2(orderIds, options) {
|
|
|
3005
2023
|
}
|
|
3006
2024
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3007
2025
|
0 && (module.exports = {
|
|
3008
|
-
ActionType,
|
|
3009
2026
|
ActivityType,
|
|
3010
2027
|
AdjustmentType,
|
|
3011
|
-
AnimationDetection,
|
|
3012
2028
|
AttributionSource,
|
|
3013
|
-
AuthorizationCaptureStatus,
|
|
3014
|
-
AuthorizationVoidStatus,
|
|
3015
2029
|
ChannelType,
|
|
3016
|
-
ChargebackStatus,
|
|
3017
2030
|
CustomFieldGroup,
|
|
3018
2031
|
DeltaPaymentOptionType,
|
|
3019
2032
|
DepositType,
|
|
3020
2033
|
DescriptionLineType,
|
|
3021
2034
|
DiscountReason,
|
|
3022
2035
|
DiscountType,
|
|
3023
|
-
DurationUnit,
|
|
3024
2036
|
FulfillmentStatus,
|
|
3025
2037
|
InventoryAction,
|
|
3026
2038
|
InvoiceStatus,
|
|
3027
2039
|
ItemTypeItemType,
|
|
3028
2040
|
JurisdictionType,
|
|
3029
2041
|
LineItemQuantityChangeType,
|
|
3030
|
-
ManuallyRefundableReason,
|
|
3031
|
-
MembershipPaymentStatus,
|
|
3032
|
-
Namespace,
|
|
3033
|
-
NonRefundableReason,
|
|
3034
2042
|
OrderApprovalStrategy,
|
|
3035
2043
|
OrderStatus,
|
|
3036
|
-
PaymentCollectabilityStatus,
|
|
3037
2044
|
PaymentOptionType,
|
|
3038
2045
|
PaymentStatus,
|
|
3039
2046
|
PickupMethod,
|
|
3040
2047
|
Placement,
|
|
3041
|
-
PreviewEmailType,
|
|
3042
|
-
Reason,
|
|
3043
|
-
RefundStatus,
|
|
3044
|
-
RefundableStatus,
|
|
3045
|
-
RestockType,
|
|
3046
|
-
ScheduledAction,
|
|
3047
2048
|
SortOrder,
|
|
3048
2049
|
SourceType,
|
|
3049
|
-
State,
|
|
3050
2050
|
SubdivisionType,
|
|
3051
2051
|
SubscriptionFrequency,
|
|
3052
2052
|
TaxableAddressType,
|
|
3053
|
-
TextDetection,
|
|
3054
|
-
TransactionStatus,
|
|
3055
2053
|
ValueType,
|
|
3056
2054
|
VatType,
|
|
3057
|
-
VersioningMode,
|
|
3058
2055
|
WebhookIdentityType,
|
|
3059
2056
|
WeightUnit,
|
|
3060
2057
|
addActivity,
|
|
@@ -3062,25 +2059,14 @@ async function bulkUpdateOrderTags2(orderIds, options) {
|
|
|
3062
2059
|
bulkUpdateOrderTags,
|
|
3063
2060
|
bulkUpdateOrders,
|
|
3064
2061
|
cancelOrder,
|
|
3065
|
-
captureAuthorizedPayments,
|
|
3066
|
-
chargeMemberships,
|
|
3067
2062
|
commitDeltas,
|
|
3068
2063
|
createOrder,
|
|
3069
2064
|
deleteActivity,
|
|
3070
2065
|
getOrder,
|
|
3071
|
-
getPaymentCollectabilityStatus,
|
|
3072
|
-
getRefundabilityStatus,
|
|
3073
|
-
paymentCollectionBulkMarkOrdersAsPaid,
|
|
3074
|
-
paymentCollectionCreatePaymentGatewayOrder,
|
|
3075
|
-
paymentCollectionMarkOrderAsPaid,
|
|
3076
|
-
preparePaymentCollection,
|
|
3077
|
-
recordManuallyCollectedPayment,
|
|
3078
2066
|
searchOrders,
|
|
3079
|
-
triggerRefund,
|
|
3080
2067
|
updateActivity,
|
|
3081
2068
|
updateOrder,
|
|
3082
2069
|
updateOrderLineItem,
|
|
3083
|
-
updateOrderStatus
|
|
3084
|
-
voidAuthorizedPayments
|
|
2070
|
+
updateOrderStatus
|
|
3085
2071
|
});
|
|
3086
2072
|
//# sourceMappingURL=index.typings.js.map
|