@wix/auto_sdk_ecom_orders 1.0.71 → 1.0.73
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-BuGgtT93.d.ts → cjs/ecom-v1-order-orders.universal-DepMBjXB.d.ts} +1796 -767
- package/build/cjs/index.d.ts +56 -3
- package/build/cjs/index.js +1044 -8
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +1268 -332
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +1006 -38
- package/build/cjs/meta.js +637 -2
- package/build/cjs/meta.js.map +1 -1
- package/build/{internal/es/ecom-v1-order-orders.universal-BuGgtT93.d.mts → es/ecom-v1-order-orders.universal-DepMBjXB.d.mts} +1796 -767
- package/build/es/index.d.mts +56 -3
- package/build/es/index.mjs +1016 -7
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs +1240 -331
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +1006 -38
- package/build/es/meta.mjs +625 -1
- package/build/es/meta.mjs.map +1 -1
- package/build/{cjs/ecom-v1-order-orders.universal-B51dgVhk.d.ts → internal/cjs/ecom-v1-order-orders.universal-CHeSUY50.d.ts} +2473 -253
- package/build/internal/cjs/index.d.ts +162 -3
- package/build/internal/cjs/index.js +1044 -8
- 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 +1268 -332
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +1006 -38
- package/build/internal/cjs/meta.js +637 -2
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/{es/ecom-v1-order-orders.universal-B51dgVhk.d.mts → internal/es/ecom-v1-order-orders.universal-CHeSUY50.d.mts} +2473 -253
- package/build/internal/es/index.d.mts +162 -3
- package/build/internal/es/index.mjs +1016 -7
- 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 +1240 -331
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +1006 -38
- package/build/internal/es/meta.mjs +625 -1
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -20,33 +20,49 @@ 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,
|
|
23
24
|
ActivityType: () => ActivityType,
|
|
24
25
|
AdjustmentType: () => AdjustmentType,
|
|
25
26
|
AttributionSource: () => AttributionSource,
|
|
27
|
+
AuthorizationCaptureStatus: () => AuthorizationCaptureStatus,
|
|
28
|
+
AuthorizationVoidStatus: () => AuthorizationVoidStatus,
|
|
26
29
|
ChannelType: () => ChannelType,
|
|
30
|
+
ChargebackStatus: () => ChargebackStatus,
|
|
27
31
|
CustomFieldGroup: () => CustomFieldGroup,
|
|
28
32
|
DeltaPaymentOptionType: () => DeltaPaymentOptionType,
|
|
29
33
|
DepositType: () => DepositType,
|
|
30
34
|
DescriptionLineType: () => DescriptionLineType,
|
|
31
35
|
DiscountReason: () => DiscountReason,
|
|
32
36
|
DiscountType: () => DiscountType,
|
|
37
|
+
DurationUnit: () => DurationUnit,
|
|
33
38
|
FulfillmentStatus: () => FulfillmentStatus,
|
|
34
39
|
InventoryAction: () => InventoryAction,
|
|
35
40
|
InvoiceStatus: () => InvoiceStatus,
|
|
36
41
|
ItemTypeItemType: () => ItemTypeItemType,
|
|
37
42
|
JurisdictionType: () => JurisdictionType,
|
|
38
43
|
LineItemQuantityChangeType: () => LineItemQuantityChangeType,
|
|
44
|
+
ManuallyRefundableReason: () => ManuallyRefundableReason,
|
|
45
|
+
MembershipPaymentStatus: () => MembershipPaymentStatus,
|
|
46
|
+
NonRefundableReason: () => NonRefundableReason,
|
|
39
47
|
OrderApprovalStrategy: () => OrderApprovalStrategy,
|
|
40
48
|
OrderStatus: () => OrderStatus,
|
|
49
|
+
PaymentCollectabilityStatus: () => PaymentCollectabilityStatus,
|
|
41
50
|
PaymentOptionType: () => PaymentOptionType,
|
|
42
51
|
PaymentStatus: () => PaymentStatus,
|
|
43
52
|
PickupMethod: () => PickupMethod,
|
|
44
53
|
Placement: () => Placement,
|
|
54
|
+
PreviewEmailType: () => PreviewEmailType,
|
|
55
|
+
Reason: () => Reason,
|
|
56
|
+
RefundStatus: () => RefundStatus,
|
|
57
|
+
RefundableStatus: () => RefundableStatus,
|
|
58
|
+
RestockType: () => RestockType,
|
|
59
|
+
ScheduledAction: () => ScheduledAction,
|
|
45
60
|
SortOrder: () => SortOrder,
|
|
46
61
|
SourceType: () => SourceType,
|
|
47
62
|
SubdivisionType: () => SubdivisionType,
|
|
48
63
|
SubscriptionFrequency: () => SubscriptionFrequency,
|
|
49
64
|
TaxableAddressType: () => TaxableAddressType,
|
|
65
|
+
TransactionStatus: () => TransactionStatus,
|
|
50
66
|
ValueType: () => ValueType,
|
|
51
67
|
VatType: () => VatType,
|
|
52
68
|
VersioningMode: () => VersioningMode,
|
|
@@ -57,15 +73,26 @@ __export(index_typings_exports, {
|
|
|
57
73
|
bulkUpdateOrderTags: () => bulkUpdateOrderTags2,
|
|
58
74
|
bulkUpdateOrders: () => bulkUpdateOrders2,
|
|
59
75
|
cancelOrder: () => cancelOrder2,
|
|
76
|
+
captureAuthorizedPayments: () => captureAuthorizedPayments2,
|
|
77
|
+
chargeMemberships: () => chargeMemberships2,
|
|
60
78
|
commitDeltas: () => commitDeltas2,
|
|
61
79
|
createOrder: () => createOrder2,
|
|
62
80
|
deleteActivity: () => deleteActivity2,
|
|
63
81
|
getOrder: () => getOrder2,
|
|
82
|
+
getPaymentCollectabilityStatus: () => getPaymentCollectabilityStatus2,
|
|
83
|
+
getRefundabilityStatus: () => getRefundabilityStatus2,
|
|
84
|
+
paymentCollectionBulkMarkOrdersAsPaid: () => paymentCollectionBulkMarkOrdersAsPaid2,
|
|
85
|
+
paymentCollectionCreatePaymentGatewayOrder: () => paymentCollectionCreatePaymentGatewayOrder2,
|
|
86
|
+
paymentCollectionMarkOrderAsPaid: () => paymentCollectionMarkOrderAsPaid2,
|
|
87
|
+
preparePaymentCollection: () => preparePaymentCollection2,
|
|
88
|
+
recordManuallyCollectedPayment: () => recordManuallyCollectedPayment2,
|
|
64
89
|
searchOrders: () => searchOrders2,
|
|
90
|
+
triggerRefund: () => triggerRefund2,
|
|
65
91
|
updateActivity: () => updateActivity2,
|
|
66
92
|
updateOrder: () => updateOrder2,
|
|
67
93
|
updateOrderLineItem: () => updateOrderLineItem2,
|
|
68
|
-
updateOrderStatus: () => updateOrderStatus2
|
|
94
|
+
updateOrderStatus: () => updateOrderStatus2,
|
|
95
|
+
voidAuthorizedPayments: () => voidAuthorizedPayments2
|
|
69
96
|
});
|
|
70
97
|
module.exports = __toCommonJS(index_typings_exports);
|
|
71
98
|
|
|
@@ -113,20 +140,109 @@ function resolveComWixEcomOrdersV1OrdersUrl(opts) {
|
|
|
113
140
|
};
|
|
114
141
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
115
142
|
}
|
|
143
|
+
function resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl(opts) {
|
|
144
|
+
const domainToMappings = {
|
|
145
|
+
"api._api_base_domain_": [
|
|
146
|
+
{
|
|
147
|
+
srcPath: "/payments-collector",
|
|
148
|
+
destPath: ""
|
|
149
|
+
}
|
|
150
|
+
],
|
|
151
|
+
"www.wixapis.com": [
|
|
152
|
+
{
|
|
153
|
+
srcPath: "/ecom/v1/payments-collector",
|
|
154
|
+
destPath: "/v1/payments-collector"
|
|
155
|
+
}
|
|
156
|
+
],
|
|
157
|
+
"manage._base_domain_": [
|
|
158
|
+
{
|
|
159
|
+
srcPath: "/ecom/v1/payments-collector",
|
|
160
|
+
destPath: "/v1/payments-collector"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
srcPath: "/_api/v1/payments-collector",
|
|
164
|
+
destPath: "/v1/payments-collector"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
srcPath: "/v1/payments-collector",
|
|
168
|
+
destPath: "/v1/payments-collector"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
srcPath: "/_api/payments-collector",
|
|
172
|
+
destPath: "/v1/payments-collector"
|
|
173
|
+
}
|
|
174
|
+
]
|
|
175
|
+
};
|
|
176
|
+
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
177
|
+
}
|
|
116
178
|
var PACKAGE_NAME = "@wix/auto_sdk_ecom_orders";
|
|
117
|
-
function
|
|
118
|
-
function
|
|
179
|
+
function preparePaymentCollection(payload) {
|
|
180
|
+
function __preparePaymentCollection({ host }) {
|
|
181
|
+
const metadata = {
|
|
182
|
+
entityFqdn: "wix.ecom.v1.order",
|
|
183
|
+
method: "POST",
|
|
184
|
+
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.PreparePaymentCollection",
|
|
185
|
+
packageName: PACKAGE_NAME,
|
|
186
|
+
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
187
|
+
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/prepare-payment-collection",
|
|
188
|
+
data: payload,
|
|
189
|
+
host
|
|
190
|
+
}),
|
|
191
|
+
data: payload
|
|
192
|
+
};
|
|
193
|
+
return metadata;
|
|
194
|
+
}
|
|
195
|
+
return __preparePaymentCollection;
|
|
196
|
+
}
|
|
197
|
+
function getPaymentCollectabilityStatus(payload) {
|
|
198
|
+
function __getPaymentCollectabilityStatus({ host }) {
|
|
119
199
|
const metadata = {
|
|
120
200
|
entityFqdn: "wix.ecom.v1.order",
|
|
121
201
|
method: "GET",
|
|
122
|
-
methodFqn: "com.wix.ecom.orders.v1.
|
|
202
|
+
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.GetPaymentCollectabilityStatus",
|
|
123
203
|
packageName: PACKAGE_NAME,
|
|
124
|
-
url:
|
|
125
|
-
protoPath: "/v1/orders/{
|
|
204
|
+
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
205
|
+
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/payment-collectability-status",
|
|
126
206
|
data: payload,
|
|
127
207
|
host
|
|
128
208
|
}),
|
|
129
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
209
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
210
|
+
};
|
|
211
|
+
return metadata;
|
|
212
|
+
}
|
|
213
|
+
return __getPaymentCollectabilityStatus;
|
|
214
|
+
}
|
|
215
|
+
function recordManuallyCollectedPayment(payload) {
|
|
216
|
+
function __recordManuallyCollectedPayment({ host }) {
|
|
217
|
+
const metadata = {
|
|
218
|
+
entityFqdn: "wix.ecom.v1.order",
|
|
219
|
+
method: "POST",
|
|
220
|
+
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.RecordManuallyCollectedPayment",
|
|
221
|
+
packageName: PACKAGE_NAME,
|
|
222
|
+
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
223
|
+
protoPath: "/v1/payments-collector/orders/{orderId}/manual-payment",
|
|
224
|
+
data: payload,
|
|
225
|
+
host
|
|
226
|
+
}),
|
|
227
|
+
data: payload
|
|
228
|
+
};
|
|
229
|
+
return metadata;
|
|
230
|
+
}
|
|
231
|
+
return __recordManuallyCollectedPayment;
|
|
232
|
+
}
|
|
233
|
+
function paymentCollectionMarkOrderAsPaid(payload) {
|
|
234
|
+
function __paymentCollectionMarkOrderAsPaid({ host }) {
|
|
235
|
+
const metadata = {
|
|
236
|
+
entityFqdn: "wix.ecom.v1.order",
|
|
237
|
+
method: "POST",
|
|
238
|
+
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.MarkOrderAsPaid",
|
|
239
|
+
packageName: PACKAGE_NAME,
|
|
240
|
+
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
241
|
+
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/mark-as-paid",
|
|
242
|
+
data: payload,
|
|
243
|
+
host
|
|
244
|
+
}),
|
|
245
|
+
data: payload,
|
|
130
246
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
131
247
|
{
|
|
132
248
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
@@ -173,17 +289,17 @@ function getOrder(payload) {
|
|
|
173
289
|
};
|
|
174
290
|
return metadata;
|
|
175
291
|
}
|
|
176
|
-
return
|
|
292
|
+
return __paymentCollectionMarkOrderAsPaid;
|
|
177
293
|
}
|
|
178
|
-
function
|
|
179
|
-
function
|
|
294
|
+
function paymentCollectionBulkMarkOrdersAsPaid(payload) {
|
|
295
|
+
function __paymentCollectionBulkMarkOrdersAsPaid({ host }) {
|
|
180
296
|
const metadata = {
|
|
181
297
|
entityFqdn: "wix.ecom.v1.order",
|
|
182
298
|
method: "POST",
|
|
183
|
-
methodFqn: "com.wix.ecom.orders.v1.
|
|
299
|
+
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.BulkMarkOrdersAsPaid",
|
|
184
300
|
packageName: PACKAGE_NAME,
|
|
185
|
-
url:
|
|
186
|
-
protoPath: "/v1/
|
|
301
|
+
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
302
|
+
protoPath: "/v1/bulk/payments-collector/mark-as-paid",
|
|
187
303
|
data: payload,
|
|
188
304
|
host
|
|
189
305
|
}),
|
|
@@ -192,214 +308,265 @@ function searchOrders(payload) {
|
|
|
192
308
|
{
|
|
193
309
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
194
310
|
paths: [
|
|
195
|
-
{ path: "
|
|
196
|
-
{ path: "
|
|
197
|
-
{ path: "
|
|
198
|
-
{ path: "
|
|
199
|
-
{ path: "
|
|
311
|
+
{ path: "results.item.createdDate" },
|
|
312
|
+
{ path: "results.item.updatedDate" },
|
|
313
|
+
{ path: "results.item.purchasedDate" },
|
|
314
|
+
{ path: "results.item.lineItems.image.urlExpirationDate" },
|
|
315
|
+
{ path: "results.item.lineItems.digitalFile.expirationDate" },
|
|
200
316
|
{
|
|
201
|
-
path: "
|
|
317
|
+
path: "results.item.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
202
318
|
},
|
|
203
|
-
{ path: "
|
|
204
|
-
{
|
|
205
|
-
|
|
206
|
-
|
|
319
|
+
{ path: "results.item.shippingInfo.logistics.deliverByDate" },
|
|
320
|
+
{
|
|
321
|
+
path: "results.item.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
path: "results.item.shippingInfo.logistics.deliveryTimeSlot.to"
|
|
325
|
+
},
|
|
326
|
+
{ path: "results.item.activities.createdDate" }
|
|
207
327
|
]
|
|
208
328
|
},
|
|
209
329
|
{
|
|
210
330
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
211
331
|
paths: [
|
|
212
|
-
{ path: "
|
|
213
|
-
{ path: "
|
|
214
|
-
{ path: "
|
|
215
|
-
{ path: "
|
|
216
|
-
{ path: "
|
|
332
|
+
{ path: "results.item.lineItems.image.focalPoint.x" },
|
|
333
|
+
{ path: "results.item.lineItems.image.focalPoint.y" },
|
|
334
|
+
{ path: "results.item.lineItems.physicalProperties.weight" },
|
|
335
|
+
{ path: "results.item.billingInfo.address.geocode.latitude" },
|
|
336
|
+
{ path: "results.item.billingInfo.address.geocode.longitude" },
|
|
217
337
|
{
|
|
218
|
-
path: "
|
|
338
|
+
path: "results.item.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
219
339
|
},
|
|
220
340
|
{
|
|
221
|
-
path: "
|
|
341
|
+
path: "results.item.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
222
342
|
},
|
|
223
343
|
{
|
|
224
|
-
path: "
|
|
344
|
+
path: "results.item.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
225
345
|
},
|
|
226
346
|
{
|
|
227
|
-
path: "
|
|
347
|
+
path: "results.item.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
228
348
|
},
|
|
229
|
-
{ path: "
|
|
230
|
-
{ path: "
|
|
349
|
+
{ path: "results.item.recipientInfo.address.geocode.latitude" },
|
|
350
|
+
{ path: "results.item.recipientInfo.address.geocode.longitude" }
|
|
231
351
|
]
|
|
232
352
|
}
|
|
233
353
|
])
|
|
234
354
|
};
|
|
235
355
|
return metadata;
|
|
236
356
|
}
|
|
237
|
-
return
|
|
357
|
+
return __paymentCollectionBulkMarkOrdersAsPaid;
|
|
238
358
|
}
|
|
239
|
-
function
|
|
240
|
-
function
|
|
359
|
+
function getRefundabilityStatus(payload) {
|
|
360
|
+
function __getRefundabilityStatus({ host }) {
|
|
361
|
+
const metadata = {
|
|
362
|
+
entityFqdn: "wix.ecom.v1.order",
|
|
363
|
+
method: "GET",
|
|
364
|
+
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.GetRefundabilityStatus",
|
|
365
|
+
packageName: PACKAGE_NAME,
|
|
366
|
+
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
367
|
+
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/refundability",
|
|
368
|
+
data: payload,
|
|
369
|
+
host
|
|
370
|
+
}),
|
|
371
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
372
|
+
};
|
|
373
|
+
return metadata;
|
|
374
|
+
}
|
|
375
|
+
return __getRefundabilityStatus;
|
|
376
|
+
}
|
|
377
|
+
function paymentCollectionCreatePaymentGatewayOrder(payload) {
|
|
378
|
+
function __paymentCollectionCreatePaymentGatewayOrder({ host }) {
|
|
379
|
+
const metadata = {
|
|
380
|
+
entityFqdn: "wix.ecom.v1.order",
|
|
381
|
+
method: "POST",
|
|
382
|
+
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.CreatePaymentGatewayOrder",
|
|
383
|
+
packageName: PACKAGE_NAME,
|
|
384
|
+
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
385
|
+
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/create-payment-gateway-order",
|
|
386
|
+
data: payload,
|
|
387
|
+
host
|
|
388
|
+
}),
|
|
389
|
+
data: payload
|
|
390
|
+
};
|
|
391
|
+
return metadata;
|
|
392
|
+
}
|
|
393
|
+
return __paymentCollectionCreatePaymentGatewayOrder;
|
|
394
|
+
}
|
|
395
|
+
function chargeMemberships(payload) {
|
|
396
|
+
function __chargeMemberships({ host }) {
|
|
241
397
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
242
398
|
{
|
|
243
399
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
244
|
-
paths: [
|
|
245
|
-
{ path: "order.createdDate" },
|
|
246
|
-
{ path: "order.updatedDate" },
|
|
247
|
-
{ path: "order.purchasedDate" },
|
|
248
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
249
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
250
|
-
{
|
|
251
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
252
|
-
},
|
|
253
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
254
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
255
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
256
|
-
{ path: "order.activities.createdDate" }
|
|
257
|
-
]
|
|
258
|
-
},
|
|
259
|
-
{
|
|
260
|
-
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
261
|
-
paths: [
|
|
262
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
263
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
264
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
265
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
266
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
267
|
-
{
|
|
268
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
269
|
-
},
|
|
270
|
-
{
|
|
271
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
272
|
-
},
|
|
273
|
-
{
|
|
274
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
275
|
-
},
|
|
276
|
-
{
|
|
277
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
278
|
-
},
|
|
279
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
280
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
281
|
-
]
|
|
400
|
+
paths: [{ path: "membershipCharges.serviceProperties.scheduledDate" }]
|
|
282
401
|
}
|
|
283
402
|
]);
|
|
284
403
|
const metadata = {
|
|
285
404
|
entityFqdn: "wix.ecom.v1.order",
|
|
286
405
|
method: "POST",
|
|
287
|
-
methodFqn: "com.wix.ecom.orders.v1.
|
|
406
|
+
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.ChargeMemberships",
|
|
288
407
|
packageName: PACKAGE_NAME,
|
|
289
|
-
url:
|
|
290
|
-
protoPath: "/v1/orders",
|
|
408
|
+
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
409
|
+
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/charge-membership",
|
|
291
410
|
data: serializedData,
|
|
292
411
|
host
|
|
293
412
|
}),
|
|
294
|
-
data: serializedData
|
|
413
|
+
data: serializedData
|
|
414
|
+
};
|
|
415
|
+
return metadata;
|
|
416
|
+
}
|
|
417
|
+
return __chargeMemberships;
|
|
418
|
+
}
|
|
419
|
+
function triggerRefund(payload) {
|
|
420
|
+
function __triggerRefund({ host }) {
|
|
421
|
+
const metadata = {
|
|
422
|
+
entityFqdn: "wix.ecom.v1.order",
|
|
423
|
+
method: "POST",
|
|
424
|
+
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.TriggerRefund",
|
|
425
|
+
packageName: PACKAGE_NAME,
|
|
426
|
+
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
427
|
+
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/trigger-refund",
|
|
428
|
+
data: payload,
|
|
429
|
+
host
|
|
430
|
+
}),
|
|
431
|
+
data: payload,
|
|
295
432
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
296
433
|
{
|
|
297
434
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
298
435
|
paths: [
|
|
299
|
-
{ path: "
|
|
300
|
-
{ path: "
|
|
301
|
-
{ path: "order.purchasedDate" },
|
|
302
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
303
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
436
|
+
{ path: "orderTransactions.payments.createdDate" },
|
|
437
|
+
{ path: "orderTransactions.payments.updatedDate" },
|
|
304
438
|
{
|
|
305
|
-
path: "
|
|
439
|
+
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
|
|
306
440
|
},
|
|
307
|
-
{
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
{
|
|
441
|
+
{
|
|
442
|
+
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.updatedDate"
|
|
455
|
+
},
|
|
456
|
+
{ path: "orderTransactions.refunds.createdDate" }
|
|
311
457
|
]
|
|
312
|
-
}
|
|
458
|
+
}
|
|
459
|
+
])
|
|
460
|
+
};
|
|
461
|
+
return metadata;
|
|
462
|
+
}
|
|
463
|
+
return __triggerRefund;
|
|
464
|
+
}
|
|
465
|
+
function voidAuthorizedPayments(payload) {
|
|
466
|
+
function __voidAuthorizedPayments({ host }) {
|
|
467
|
+
const metadata = {
|
|
468
|
+
entityFqdn: "wix.ecom.v1.order",
|
|
469
|
+
method: "POST",
|
|
470
|
+
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.VoidAuthorizedPayments",
|
|
471
|
+
packageName: PACKAGE_NAME,
|
|
472
|
+
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
473
|
+
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/void-authorized-payments",
|
|
474
|
+
data: payload,
|
|
475
|
+
host
|
|
476
|
+
}),
|
|
477
|
+
data: payload,
|
|
478
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
313
479
|
{
|
|
314
|
-
transformFn:
|
|
480
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
315
481
|
paths: [
|
|
316
|
-
{ path: "
|
|
317
|
-
{ path: "
|
|
318
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
319
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
320
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
482
|
+
{ path: "orderTransactions.payments.createdDate" },
|
|
483
|
+
{ path: "orderTransactions.payments.updatedDate" },
|
|
321
484
|
{
|
|
322
|
-
path: "
|
|
485
|
+
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
|
|
323
486
|
},
|
|
324
487
|
{
|
|
325
|
-
path: "
|
|
488
|
+
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
326
489
|
},
|
|
327
490
|
{
|
|
328
|
-
path: "
|
|
491
|
+
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
329
492
|
},
|
|
330
493
|
{
|
|
331
|
-
path: "
|
|
494
|
+
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
332
495
|
},
|
|
333
|
-
{
|
|
334
|
-
|
|
496
|
+
{
|
|
497
|
+
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.updatedDate"
|
|
501
|
+
},
|
|
502
|
+
{ path: "orderTransactions.refunds.createdDate" }
|
|
335
503
|
]
|
|
336
504
|
}
|
|
337
505
|
])
|
|
338
506
|
};
|
|
339
507
|
return metadata;
|
|
340
508
|
}
|
|
341
|
-
return
|
|
509
|
+
return __voidAuthorizedPayments;
|
|
342
510
|
}
|
|
343
|
-
function
|
|
344
|
-
function
|
|
345
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
346
|
-
{
|
|
347
|
-
transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
|
|
348
|
-
paths: [{ path: "fieldMask" }]
|
|
349
|
-
},
|
|
350
|
-
{
|
|
351
|
-
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
352
|
-
paths: [
|
|
353
|
-
{ path: "order.createdDate" },
|
|
354
|
-
{ path: "order.updatedDate" },
|
|
355
|
-
{ path: "order.purchasedDate" },
|
|
356
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
357
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
358
|
-
{
|
|
359
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
360
|
-
},
|
|
361
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
362
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
363
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
364
|
-
{ path: "order.activities.createdDate" }
|
|
365
|
-
]
|
|
366
|
-
},
|
|
367
|
-
{
|
|
368
|
-
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
369
|
-
paths: [
|
|
370
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
371
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
372
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
373
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
374
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
375
|
-
{
|
|
376
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
377
|
-
},
|
|
378
|
-
{
|
|
379
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
380
|
-
},
|
|
381
|
-
{
|
|
382
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
383
|
-
},
|
|
384
|
-
{
|
|
385
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
386
|
-
},
|
|
387
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
388
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
389
|
-
]
|
|
390
|
-
}
|
|
391
|
-
]);
|
|
511
|
+
function captureAuthorizedPayments(payload) {
|
|
512
|
+
function __captureAuthorizedPayments({ host }) {
|
|
392
513
|
const metadata = {
|
|
393
514
|
entityFqdn: "wix.ecom.v1.order",
|
|
394
|
-
method: "
|
|
395
|
-
methodFqn: "com.wix.ecom.orders.v1.
|
|
515
|
+
method: "POST",
|
|
516
|
+
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.CaptureAuthorizedPayments",
|
|
517
|
+
packageName: PACKAGE_NAME,
|
|
518
|
+
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
519
|
+
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/capture-authorized-payments",
|
|
520
|
+
data: payload,
|
|
521
|
+
host
|
|
522
|
+
}),
|
|
523
|
+
data: payload,
|
|
524
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
525
|
+
{
|
|
526
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
527
|
+
paths: [
|
|
528
|
+
{ path: "orderTransactions.payments.createdDate" },
|
|
529
|
+
{ path: "orderTransactions.payments.updatedDate" },
|
|
530
|
+
{
|
|
531
|
+
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
535
|
+
},
|
|
536
|
+
{
|
|
537
|
+
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
541
|
+
},
|
|
542
|
+
{
|
|
543
|
+
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
|
|
544
|
+
},
|
|
545
|
+
{
|
|
546
|
+
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.updatedDate"
|
|
547
|
+
},
|
|
548
|
+
{ path: "orderTransactions.refunds.createdDate" }
|
|
549
|
+
]
|
|
550
|
+
}
|
|
551
|
+
])
|
|
552
|
+
};
|
|
553
|
+
return metadata;
|
|
554
|
+
}
|
|
555
|
+
return __captureAuthorizedPayments;
|
|
556
|
+
}
|
|
557
|
+
function getOrder(payload) {
|
|
558
|
+
function __getOrder({ host }) {
|
|
559
|
+
const metadata = {
|
|
560
|
+
entityFqdn: "wix.ecom.v1.order",
|
|
561
|
+
method: "GET",
|
|
562
|
+
methodFqn: "com.wix.ecom.orders.v1.Orders.GetOrder",
|
|
396
563
|
packageName: PACKAGE_NAME,
|
|
397
564
|
url: resolveComWixEcomOrdersV1OrdersUrl({
|
|
398
|
-
protoPath: "/v1/orders/{
|
|
399
|
-
data:
|
|
565
|
+
protoPath: "/v1/orders/{id}",
|
|
566
|
+
data: payload,
|
|
400
567
|
host
|
|
401
568
|
}),
|
|
402
|
-
|
|
569
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
403
570
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
404
571
|
{
|
|
405
572
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
@@ -446,170 +613,121 @@ function updateOrder(payload) {
|
|
|
446
613
|
};
|
|
447
614
|
return metadata;
|
|
448
615
|
}
|
|
449
|
-
return
|
|
616
|
+
return __getOrder;
|
|
450
617
|
}
|
|
451
|
-
function
|
|
452
|
-
function
|
|
453
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
454
|
-
{
|
|
455
|
-
transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
|
|
456
|
-
paths: [{ path: "orders.fieldMask" }]
|
|
457
|
-
},
|
|
458
|
-
{
|
|
459
|
-
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
460
|
-
paths: [
|
|
461
|
-
{ path: "orders.order.createdDate" },
|
|
462
|
-
{ path: "orders.order.updatedDate" },
|
|
463
|
-
{ path: "orders.order.purchasedDate" },
|
|
464
|
-
{ path: "orders.order.lineItems.image.urlExpirationDate" },
|
|
465
|
-
{ path: "orders.order.lineItems.digitalFile.expirationDate" },
|
|
466
|
-
{
|
|
467
|
-
path: "orders.order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
468
|
-
},
|
|
469
|
-
{ path: "orders.order.shippingInfo.logistics.deliverByDate" },
|
|
470
|
-
{ path: "orders.order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
471
|
-
{ path: "orders.order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
472
|
-
{ path: "orders.order.activities.createdDate" }
|
|
473
|
-
]
|
|
474
|
-
},
|
|
475
|
-
{
|
|
476
|
-
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
477
|
-
paths: [
|
|
478
|
-
{ path: "orders.order.lineItems.image.focalPoint.x" },
|
|
479
|
-
{ path: "orders.order.lineItems.image.focalPoint.y" },
|
|
480
|
-
{ path: "orders.order.lineItems.physicalProperties.weight" },
|
|
481
|
-
{ path: "orders.order.billingInfo.address.geocode.latitude" },
|
|
482
|
-
{ path: "orders.order.billingInfo.address.geocode.longitude" },
|
|
483
|
-
{
|
|
484
|
-
path: "orders.order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
485
|
-
},
|
|
486
|
-
{
|
|
487
|
-
path: "orders.order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
488
|
-
},
|
|
489
|
-
{
|
|
490
|
-
path: "orders.order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
491
|
-
},
|
|
492
|
-
{
|
|
493
|
-
path: "orders.order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
494
|
-
},
|
|
495
|
-
{ path: "orders.order.recipientInfo.address.geocode.latitude" },
|
|
496
|
-
{ path: "orders.order.recipientInfo.address.geocode.longitude" }
|
|
497
|
-
]
|
|
498
|
-
}
|
|
499
|
-
]);
|
|
618
|
+
function searchOrders(payload) {
|
|
619
|
+
function __searchOrders({ host }) {
|
|
500
620
|
const metadata = {
|
|
501
621
|
entityFqdn: "wix.ecom.v1.order",
|
|
502
622
|
method: "POST",
|
|
503
|
-
methodFqn: "com.wix.ecom.orders.v1.Orders.
|
|
623
|
+
methodFqn: "com.wix.ecom.orders.v1.Orders.SearchOrders",
|
|
504
624
|
packageName: PACKAGE_NAME,
|
|
505
625
|
url: resolveComWixEcomOrdersV1OrdersUrl({
|
|
506
|
-
protoPath: "/v1/
|
|
507
|
-
data:
|
|
626
|
+
protoPath: "/v1/orders/search",
|
|
627
|
+
data: payload,
|
|
508
628
|
host
|
|
509
629
|
}),
|
|
510
|
-
data:
|
|
630
|
+
data: payload,
|
|
511
631
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
512
632
|
{
|
|
513
633
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
514
634
|
paths: [
|
|
515
|
-
{ path: "
|
|
516
|
-
{ path: "
|
|
517
|
-
{ path: "
|
|
518
|
-
{ path: "
|
|
519
|
-
{ path: "
|
|
520
|
-
{
|
|
521
|
-
path: "results.item.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
522
|
-
},
|
|
523
|
-
{ path: "results.item.shippingInfo.logistics.deliverByDate" },
|
|
524
|
-
{
|
|
525
|
-
path: "results.item.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
526
|
-
},
|
|
635
|
+
{ path: "orders.createdDate" },
|
|
636
|
+
{ path: "orders.updatedDate" },
|
|
637
|
+
{ path: "orders.purchasedDate" },
|
|
638
|
+
{ path: "orders.lineItems.image.urlExpirationDate" },
|
|
639
|
+
{ path: "orders.lineItems.digitalFile.expirationDate" },
|
|
527
640
|
{
|
|
528
|
-
path: "
|
|
641
|
+
path: "orders.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
529
642
|
},
|
|
530
|
-
{ path: "
|
|
643
|
+
{ path: "orders.shippingInfo.logistics.deliverByDate" },
|
|
644
|
+
{ path: "orders.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
645
|
+
{ path: "orders.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
646
|
+
{ path: "orders.activities.createdDate" }
|
|
531
647
|
]
|
|
532
648
|
},
|
|
533
649
|
{
|
|
534
650
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
535
651
|
paths: [
|
|
536
|
-
{ path: "
|
|
537
|
-
{ path: "
|
|
538
|
-
{ path: "
|
|
539
|
-
{ path: "
|
|
540
|
-
{ path: "
|
|
652
|
+
{ path: "orders.lineItems.image.focalPoint.x" },
|
|
653
|
+
{ path: "orders.lineItems.image.focalPoint.y" },
|
|
654
|
+
{ path: "orders.lineItems.physicalProperties.weight" },
|
|
655
|
+
{ path: "orders.billingInfo.address.geocode.latitude" },
|
|
656
|
+
{ path: "orders.billingInfo.address.geocode.longitude" },
|
|
541
657
|
{
|
|
542
|
-
path: "
|
|
658
|
+
path: "orders.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
543
659
|
},
|
|
544
660
|
{
|
|
545
|
-
path: "
|
|
661
|
+
path: "orders.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
546
662
|
},
|
|
547
663
|
{
|
|
548
|
-
path: "
|
|
664
|
+
path: "orders.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
549
665
|
},
|
|
550
666
|
{
|
|
551
|
-
path: "
|
|
667
|
+
path: "orders.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
552
668
|
},
|
|
553
|
-
{ path: "
|
|
554
|
-
{ path: "
|
|
669
|
+
{ path: "orders.recipientInfo.address.geocode.latitude" },
|
|
670
|
+
{ path: "orders.recipientInfo.address.geocode.longitude" }
|
|
555
671
|
]
|
|
556
672
|
}
|
|
557
673
|
])
|
|
558
674
|
};
|
|
559
675
|
return metadata;
|
|
560
676
|
}
|
|
561
|
-
return
|
|
677
|
+
return __searchOrders;
|
|
562
678
|
}
|
|
563
|
-
function
|
|
564
|
-
function
|
|
679
|
+
function createOrder(payload) {
|
|
680
|
+
function __createOrder({ host }) {
|
|
565
681
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
566
682
|
{
|
|
567
683
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
568
684
|
paths: [
|
|
569
|
-
{ path: "
|
|
685
|
+
{ path: "order.createdDate" },
|
|
686
|
+
{ path: "order.updatedDate" },
|
|
687
|
+
{ path: "order.purchasedDate" },
|
|
688
|
+
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
689
|
+
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
570
690
|
{
|
|
571
|
-
path: "
|
|
691
|
+
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
572
692
|
},
|
|
573
|
-
{ path: "
|
|
574
|
-
{ path: "
|
|
575
|
-
{ path: "
|
|
576
|
-
{
|
|
577
|
-
path: "changes.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
|
|
578
|
-
}
|
|
693
|
+
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
694
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
695
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
696
|
+
{ path: "order.activities.createdDate" }
|
|
579
697
|
]
|
|
580
698
|
},
|
|
581
699
|
{
|
|
582
700
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
583
701
|
paths: [
|
|
702
|
+
{ path: "order.lineItems.image.focalPoint.x" },
|
|
703
|
+
{ path: "order.lineItems.image.focalPoint.y" },
|
|
704
|
+
{ path: "order.lineItems.physicalProperties.weight" },
|
|
705
|
+
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
706
|
+
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
584
707
|
{
|
|
585
|
-
path: "
|
|
708
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
586
709
|
},
|
|
587
710
|
{
|
|
588
|
-
path: "
|
|
711
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
589
712
|
},
|
|
590
713
|
{
|
|
591
|
-
path: "
|
|
714
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
592
715
|
},
|
|
593
716
|
{
|
|
594
|
-
path: "
|
|
717
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
595
718
|
},
|
|
596
|
-
{ path: "
|
|
597
|
-
{ path: "
|
|
598
|
-
{ path: "changes.changedRecipientInfo.address.geocode.latitude" },
|
|
599
|
-
{ path: "changes.changedRecipientInfo.address.geocode.longitude" },
|
|
600
|
-
{ path: "changes.lineItems.lineItem.physicalProperties.weight" },
|
|
601
|
-
{ path: "changes.lineItems.lineItem.image.focalPoint.x" },
|
|
602
|
-
{ path: "changes.lineItems.lineItem.image.focalPoint.y" }
|
|
719
|
+
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
720
|
+
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
603
721
|
]
|
|
604
722
|
}
|
|
605
723
|
]);
|
|
606
724
|
const metadata = {
|
|
607
725
|
entityFqdn: "wix.ecom.v1.order",
|
|
608
726
|
method: "POST",
|
|
609
|
-
methodFqn: "com.wix.ecom.orders.v1.Orders.
|
|
727
|
+
methodFqn: "com.wix.ecom.orders.v1.Orders.CreateOrder",
|
|
610
728
|
packageName: PACKAGE_NAME,
|
|
611
729
|
url: resolveComWixEcomOrdersV1OrdersUrl({
|
|
612
|
-
protoPath: "/v1/orders
|
|
730
|
+
protoPath: "/v1/orders",
|
|
613
731
|
data: serializedData,
|
|
614
732
|
host
|
|
615
733
|
}),
|
|
@@ -660,10 +778,10 @@ function commitDeltas(payload) {
|
|
|
660
778
|
};
|
|
661
779
|
return metadata;
|
|
662
780
|
}
|
|
663
|
-
return
|
|
781
|
+
return __createOrder;
|
|
664
782
|
}
|
|
665
|
-
function
|
|
666
|
-
function
|
|
783
|
+
function updateOrder(payload) {
|
|
784
|
+
function __updateOrder({ host }) {
|
|
667
785
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
668
786
|
{
|
|
669
787
|
transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
|
|
@@ -672,27 +790,52 @@ function updateOrderLineItem(payload) {
|
|
|
672
790
|
{
|
|
673
791
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
674
792
|
paths: [
|
|
675
|
-
{ path: "
|
|
676
|
-
{ path: "
|
|
677
|
-
{ path: "
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
793
|
+
{ path: "order.createdDate" },
|
|
794
|
+
{ path: "order.updatedDate" },
|
|
795
|
+
{ path: "order.purchasedDate" },
|
|
796
|
+
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
797
|
+
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
798
|
+
{
|
|
799
|
+
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
800
|
+
},
|
|
801
|
+
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
802
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
803
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
804
|
+
{ path: "order.activities.createdDate" }
|
|
805
|
+
]
|
|
806
|
+
},
|
|
807
|
+
{
|
|
808
|
+
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
682
809
|
paths: [
|
|
683
|
-
{ path: "
|
|
684
|
-
{ path: "
|
|
685
|
-
{ path: "
|
|
810
|
+
{ path: "order.lineItems.image.focalPoint.x" },
|
|
811
|
+
{ path: "order.lineItems.image.focalPoint.y" },
|
|
812
|
+
{ path: "order.lineItems.physicalProperties.weight" },
|
|
813
|
+
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
814
|
+
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
815
|
+
{
|
|
816
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
817
|
+
},
|
|
818
|
+
{
|
|
819
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
820
|
+
},
|
|
821
|
+
{
|
|
822
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
823
|
+
},
|
|
824
|
+
{
|
|
825
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
826
|
+
},
|
|
827
|
+
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
828
|
+
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
686
829
|
]
|
|
687
830
|
}
|
|
688
831
|
]);
|
|
689
832
|
const metadata = {
|
|
690
833
|
entityFqdn: "wix.ecom.v1.order",
|
|
691
834
|
method: "PATCH",
|
|
692
|
-
methodFqn: "com.wix.ecom.orders.v1.Orders.
|
|
835
|
+
methodFqn: "com.wix.ecom.orders.v1.Orders.UpdateOrder",
|
|
693
836
|
packageName: PACKAGE_NAME,
|
|
694
837
|
url: resolveComWixEcomOrdersV1OrdersUrl({
|
|
695
|
-
protoPath: "/v1/orders/{
|
|
838
|
+
protoPath: "/v1/orders/{order.id}",
|
|
696
839
|
data: serializedData,
|
|
697
840
|
host
|
|
698
841
|
}),
|
|
@@ -743,82 +886,174 @@ function updateOrderLineItem(payload) {
|
|
|
743
886
|
};
|
|
744
887
|
return metadata;
|
|
745
888
|
}
|
|
746
|
-
return
|
|
889
|
+
return __updateOrder;
|
|
747
890
|
}
|
|
748
|
-
function
|
|
749
|
-
function
|
|
891
|
+
function bulkUpdateOrders(payload) {
|
|
892
|
+
function __bulkUpdateOrders({ host }) {
|
|
893
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
894
|
+
{
|
|
895
|
+
transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
|
|
896
|
+
paths: [{ path: "orders.fieldMask" }]
|
|
897
|
+
},
|
|
898
|
+
{
|
|
899
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
900
|
+
paths: [
|
|
901
|
+
{ path: "orders.order.createdDate" },
|
|
902
|
+
{ path: "orders.order.updatedDate" },
|
|
903
|
+
{ path: "orders.order.purchasedDate" },
|
|
904
|
+
{ path: "orders.order.lineItems.image.urlExpirationDate" },
|
|
905
|
+
{ path: "orders.order.lineItems.digitalFile.expirationDate" },
|
|
906
|
+
{
|
|
907
|
+
path: "orders.order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
908
|
+
},
|
|
909
|
+
{ path: "orders.order.shippingInfo.logistics.deliverByDate" },
|
|
910
|
+
{ path: "orders.order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
911
|
+
{ path: "orders.order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
912
|
+
{ path: "orders.order.activities.createdDate" }
|
|
913
|
+
]
|
|
914
|
+
},
|
|
915
|
+
{
|
|
916
|
+
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
917
|
+
paths: [
|
|
918
|
+
{ path: "orders.order.lineItems.image.focalPoint.x" },
|
|
919
|
+
{ path: "orders.order.lineItems.image.focalPoint.y" },
|
|
920
|
+
{ path: "orders.order.lineItems.physicalProperties.weight" },
|
|
921
|
+
{ path: "orders.order.billingInfo.address.geocode.latitude" },
|
|
922
|
+
{ path: "orders.order.billingInfo.address.geocode.longitude" },
|
|
923
|
+
{
|
|
924
|
+
path: "orders.order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
925
|
+
},
|
|
926
|
+
{
|
|
927
|
+
path: "orders.order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
928
|
+
},
|
|
929
|
+
{
|
|
930
|
+
path: "orders.order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
931
|
+
},
|
|
932
|
+
{
|
|
933
|
+
path: "orders.order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
934
|
+
},
|
|
935
|
+
{ path: "orders.order.recipientInfo.address.geocode.latitude" },
|
|
936
|
+
{ path: "orders.order.recipientInfo.address.geocode.longitude" }
|
|
937
|
+
]
|
|
938
|
+
}
|
|
939
|
+
]);
|
|
750
940
|
const metadata = {
|
|
751
941
|
entityFqdn: "wix.ecom.v1.order",
|
|
752
942
|
method: "POST",
|
|
753
|
-
methodFqn: "com.wix.ecom.orders.v1.Orders.
|
|
943
|
+
methodFqn: "com.wix.ecom.orders.v1.Orders.BulkUpdateOrders",
|
|
754
944
|
packageName: PACKAGE_NAME,
|
|
755
945
|
url: resolveComWixEcomOrdersV1OrdersUrl({
|
|
756
|
-
protoPath: "/v1/orders/
|
|
757
|
-
data:
|
|
946
|
+
protoPath: "/v1/bulk/orders/update",
|
|
947
|
+
data: serializedData,
|
|
758
948
|
host
|
|
759
949
|
}),
|
|
760
|
-
data:
|
|
950
|
+
data: serializedData,
|
|
761
951
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
762
952
|
{
|
|
763
953
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
764
954
|
paths: [
|
|
765
|
-
{ path: "
|
|
766
|
-
{ path: "
|
|
767
|
-
{ path: "
|
|
768
|
-
{ path: "
|
|
769
|
-
{ path: "
|
|
955
|
+
{ path: "results.item.createdDate" },
|
|
956
|
+
{ path: "results.item.updatedDate" },
|
|
957
|
+
{ path: "results.item.purchasedDate" },
|
|
958
|
+
{ path: "results.item.lineItems.image.urlExpirationDate" },
|
|
959
|
+
{ path: "results.item.lineItems.digitalFile.expirationDate" },
|
|
770
960
|
{
|
|
771
|
-
path: "
|
|
961
|
+
path: "results.item.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
772
962
|
},
|
|
773
|
-
{ path: "
|
|
774
|
-
{
|
|
775
|
-
|
|
776
|
-
|
|
963
|
+
{ path: "results.item.shippingInfo.logistics.deliverByDate" },
|
|
964
|
+
{
|
|
965
|
+
path: "results.item.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
966
|
+
},
|
|
967
|
+
{
|
|
968
|
+
path: "results.item.shippingInfo.logistics.deliveryTimeSlot.to"
|
|
969
|
+
},
|
|
970
|
+
{ path: "results.item.activities.createdDate" }
|
|
777
971
|
]
|
|
778
972
|
},
|
|
779
973
|
{
|
|
780
974
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
781
975
|
paths: [
|
|
782
|
-
{ path: "
|
|
783
|
-
{ path: "
|
|
784
|
-
{ path: "
|
|
785
|
-
{ path: "
|
|
786
|
-
{ path: "
|
|
976
|
+
{ path: "results.item.lineItems.image.focalPoint.x" },
|
|
977
|
+
{ path: "results.item.lineItems.image.focalPoint.y" },
|
|
978
|
+
{ path: "results.item.lineItems.physicalProperties.weight" },
|
|
979
|
+
{ path: "results.item.billingInfo.address.geocode.latitude" },
|
|
980
|
+
{ path: "results.item.billingInfo.address.geocode.longitude" },
|
|
787
981
|
{
|
|
788
|
-
path: "
|
|
982
|
+
path: "results.item.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
789
983
|
},
|
|
790
984
|
{
|
|
791
|
-
path: "
|
|
985
|
+
path: "results.item.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
792
986
|
},
|
|
793
987
|
{
|
|
794
|
-
path: "
|
|
988
|
+
path: "results.item.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
795
989
|
},
|
|
796
990
|
{
|
|
797
|
-
path: "
|
|
991
|
+
path: "results.item.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
798
992
|
},
|
|
799
|
-
{ path: "
|
|
800
|
-
{ path: "
|
|
993
|
+
{ path: "results.item.recipientInfo.address.geocode.latitude" },
|
|
994
|
+
{ path: "results.item.recipientInfo.address.geocode.longitude" }
|
|
801
995
|
]
|
|
802
996
|
}
|
|
803
997
|
])
|
|
804
998
|
};
|
|
805
999
|
return metadata;
|
|
806
1000
|
}
|
|
807
|
-
return
|
|
1001
|
+
return __bulkUpdateOrders;
|
|
808
1002
|
}
|
|
809
|
-
function
|
|
810
|
-
function
|
|
1003
|
+
function commitDeltas(payload) {
|
|
1004
|
+
function __commitDeltas({ host }) {
|
|
1005
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
1006
|
+
{
|
|
1007
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
1008
|
+
paths: [
|
|
1009
|
+
{ path: "changes.changedShippingInfo.logistics.deliverByDate" },
|
|
1010
|
+
{
|
|
1011
|
+
path: "changes.changedShippingInfo.logistics.deliveryTimeSlot.from"
|
|
1012
|
+
},
|
|
1013
|
+
{ path: "changes.changedShippingInfo.logistics.deliveryTimeSlot.to" },
|
|
1014
|
+
{ path: "changes.lineItems.lineItem.image.urlExpirationDate" },
|
|
1015
|
+
{ path: "changes.lineItems.lineItem.digitalFile.expirationDate" },
|
|
1016
|
+
{
|
|
1017
|
+
path: "changes.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
|
|
1018
|
+
}
|
|
1019
|
+
]
|
|
1020
|
+
},
|
|
1021
|
+
{
|
|
1022
|
+
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
1023
|
+
paths: [
|
|
1024
|
+
{
|
|
1025
|
+
path: "changes.changedShippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
1026
|
+
},
|
|
1027
|
+
{
|
|
1028
|
+
path: "changes.changedShippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
1029
|
+
},
|
|
1030
|
+
{
|
|
1031
|
+
path: "changes.changedShippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
1032
|
+
},
|
|
1033
|
+
{
|
|
1034
|
+
path: "changes.changedShippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
1035
|
+
},
|
|
1036
|
+
{ path: "changes.changedBillingInfo.address.geocode.latitude" },
|
|
1037
|
+
{ path: "changes.changedBillingInfo.address.geocode.longitude" },
|
|
1038
|
+
{ path: "changes.changedRecipientInfo.address.geocode.latitude" },
|
|
1039
|
+
{ path: "changes.changedRecipientInfo.address.geocode.longitude" },
|
|
1040
|
+
{ path: "changes.lineItems.lineItem.physicalProperties.weight" },
|
|
1041
|
+
{ path: "changes.lineItems.lineItem.image.focalPoint.x" },
|
|
1042
|
+
{ path: "changes.lineItems.lineItem.image.focalPoint.y" }
|
|
1043
|
+
]
|
|
1044
|
+
}
|
|
1045
|
+
]);
|
|
811
1046
|
const metadata = {
|
|
812
1047
|
entityFqdn: "wix.ecom.v1.order",
|
|
813
|
-
method: "
|
|
814
|
-
methodFqn: "com.wix.ecom.orders.v1.Orders.
|
|
1048
|
+
method: "POST",
|
|
1049
|
+
methodFqn: "com.wix.ecom.orders.v1.Orders.CommitDeltas",
|
|
815
1050
|
packageName: PACKAGE_NAME,
|
|
816
1051
|
url: resolveComWixEcomOrdersV1OrdersUrl({
|
|
817
|
-
protoPath: "/v1/orders/{id}/
|
|
818
|
-
data:
|
|
1052
|
+
protoPath: "/v1/orders/{id}/commit-deltas",
|
|
1053
|
+
data: serializedData,
|
|
819
1054
|
host
|
|
820
1055
|
}),
|
|
821
|
-
data:
|
|
1056
|
+
data: serializedData,
|
|
822
1057
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
823
1058
|
{
|
|
824
1059
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
@@ -865,21 +1100,43 @@ function updateActivity(payload) {
|
|
|
865
1100
|
};
|
|
866
1101
|
return metadata;
|
|
867
1102
|
}
|
|
868
|
-
return
|
|
1103
|
+
return __commitDeltas;
|
|
869
1104
|
}
|
|
870
|
-
function
|
|
871
|
-
function
|
|
1105
|
+
function updateOrderLineItem(payload) {
|
|
1106
|
+
function __updateOrderLineItem({ host }) {
|
|
1107
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
1108
|
+
{
|
|
1109
|
+
transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
|
|
1110
|
+
paths: [{ path: "fieldMask" }]
|
|
1111
|
+
},
|
|
1112
|
+
{
|
|
1113
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
1114
|
+
paths: [
|
|
1115
|
+
{ path: "lineItem.image.urlExpirationDate" },
|
|
1116
|
+
{ path: "lineItem.digitalFile.expirationDate" },
|
|
1117
|
+
{ path: "lineItem.subscriptionInfo.subscriptionSettings.startDate" }
|
|
1118
|
+
]
|
|
1119
|
+
},
|
|
1120
|
+
{
|
|
1121
|
+
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
1122
|
+
paths: [
|
|
1123
|
+
{ path: "lineItem.image.focalPoint.x" },
|
|
1124
|
+
{ path: "lineItem.image.focalPoint.y" },
|
|
1125
|
+
{ path: "lineItem.physicalProperties.weight" }
|
|
1126
|
+
]
|
|
1127
|
+
}
|
|
1128
|
+
]);
|
|
872
1129
|
const metadata = {
|
|
873
1130
|
entityFqdn: "wix.ecom.v1.order",
|
|
874
|
-
method: "
|
|
875
|
-
methodFqn: "com.wix.ecom.orders.v1.Orders.
|
|
1131
|
+
method: "PATCH",
|
|
1132
|
+
methodFqn: "com.wix.ecom.orders.v1.Orders.UpdateOrderLineItem",
|
|
876
1133
|
packageName: PACKAGE_NAME,
|
|
877
1134
|
url: resolveComWixEcomOrdersV1OrdersUrl({
|
|
878
|
-
protoPath: "/v1/orders/{id}/
|
|
879
|
-
data:
|
|
1135
|
+
protoPath: "/v1/orders/{id}/line-item/{lineItem.id}",
|
|
1136
|
+
data: serializedData,
|
|
880
1137
|
host
|
|
881
1138
|
}),
|
|
882
|
-
|
|
1139
|
+
data: serializedData,
|
|
883
1140
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
884
1141
|
{
|
|
885
1142
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
@@ -926,17 +1183,17 @@ function deleteActivity(payload) {
|
|
|
926
1183
|
};
|
|
927
1184
|
return metadata;
|
|
928
1185
|
}
|
|
929
|
-
return
|
|
1186
|
+
return __updateOrderLineItem;
|
|
930
1187
|
}
|
|
931
|
-
function
|
|
932
|
-
function
|
|
1188
|
+
function addActivity(payload) {
|
|
1189
|
+
function __addActivity({ host }) {
|
|
933
1190
|
const metadata = {
|
|
934
1191
|
entityFqdn: "wix.ecom.v1.order",
|
|
935
1192
|
method: "POST",
|
|
936
|
-
methodFqn: "com.wix.ecom.orders.v1.Orders.
|
|
1193
|
+
methodFqn: "com.wix.ecom.orders.v1.Orders.AddActivity",
|
|
937
1194
|
packageName: PACKAGE_NAME,
|
|
938
1195
|
url: resolveComWixEcomOrdersV1OrdersUrl({
|
|
939
|
-
protoPath: "/v1/orders/{id}/
|
|
1196
|
+
protoPath: "/v1/orders/{id}/activities",
|
|
940
1197
|
data: payload,
|
|
941
1198
|
host
|
|
942
1199
|
}),
|
|
@@ -987,7 +1244,190 @@ function cancelOrder(payload) {
|
|
|
987
1244
|
};
|
|
988
1245
|
return metadata;
|
|
989
1246
|
}
|
|
990
|
-
return
|
|
1247
|
+
return __addActivity;
|
|
1248
|
+
}
|
|
1249
|
+
function updateActivity(payload) {
|
|
1250
|
+
function __updateActivity({ host }) {
|
|
1251
|
+
const metadata = {
|
|
1252
|
+
entityFqdn: "wix.ecom.v1.order",
|
|
1253
|
+
method: "PATCH",
|
|
1254
|
+
methodFqn: "com.wix.ecom.orders.v1.Orders.UpdateActivity",
|
|
1255
|
+
packageName: PACKAGE_NAME,
|
|
1256
|
+
url: resolveComWixEcomOrdersV1OrdersUrl({
|
|
1257
|
+
protoPath: "/v1/orders/{id}/activities/{activityId}",
|
|
1258
|
+
data: payload,
|
|
1259
|
+
host
|
|
1260
|
+
}),
|
|
1261
|
+
data: payload,
|
|
1262
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1263
|
+
{
|
|
1264
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1265
|
+
paths: [
|
|
1266
|
+
{ path: "order.createdDate" },
|
|
1267
|
+
{ path: "order.updatedDate" },
|
|
1268
|
+
{ path: "order.purchasedDate" },
|
|
1269
|
+
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
1270
|
+
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
1271
|
+
{
|
|
1272
|
+
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
1273
|
+
},
|
|
1274
|
+
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
1275
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
1276
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
1277
|
+
{ path: "order.activities.createdDate" }
|
|
1278
|
+
]
|
|
1279
|
+
},
|
|
1280
|
+
{
|
|
1281
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1282
|
+
paths: [
|
|
1283
|
+
{ path: "order.lineItems.image.focalPoint.x" },
|
|
1284
|
+
{ path: "order.lineItems.image.focalPoint.y" },
|
|
1285
|
+
{ path: "order.lineItems.physicalProperties.weight" },
|
|
1286
|
+
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
1287
|
+
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
1288
|
+
{
|
|
1289
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
1290
|
+
},
|
|
1291
|
+
{
|
|
1292
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
1293
|
+
},
|
|
1294
|
+
{
|
|
1295
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
1296
|
+
},
|
|
1297
|
+
{
|
|
1298
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
1299
|
+
},
|
|
1300
|
+
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
1301
|
+
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
1302
|
+
]
|
|
1303
|
+
}
|
|
1304
|
+
])
|
|
1305
|
+
};
|
|
1306
|
+
return metadata;
|
|
1307
|
+
}
|
|
1308
|
+
return __updateActivity;
|
|
1309
|
+
}
|
|
1310
|
+
function deleteActivity(payload) {
|
|
1311
|
+
function __deleteActivity({ host }) {
|
|
1312
|
+
const metadata = {
|
|
1313
|
+
entityFqdn: "wix.ecom.v1.order",
|
|
1314
|
+
method: "DELETE",
|
|
1315
|
+
methodFqn: "com.wix.ecom.orders.v1.Orders.DeleteActivity",
|
|
1316
|
+
packageName: PACKAGE_NAME,
|
|
1317
|
+
url: resolveComWixEcomOrdersV1OrdersUrl({
|
|
1318
|
+
protoPath: "/v1/orders/{id}/activities/{activityId}",
|
|
1319
|
+
data: payload,
|
|
1320
|
+
host
|
|
1321
|
+
}),
|
|
1322
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
1323
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1324
|
+
{
|
|
1325
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1326
|
+
paths: [
|
|
1327
|
+
{ path: "order.createdDate" },
|
|
1328
|
+
{ path: "order.updatedDate" },
|
|
1329
|
+
{ path: "order.purchasedDate" },
|
|
1330
|
+
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
1331
|
+
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
1332
|
+
{
|
|
1333
|
+
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
1334
|
+
},
|
|
1335
|
+
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
1336
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
1337
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
1338
|
+
{ path: "order.activities.createdDate" }
|
|
1339
|
+
]
|
|
1340
|
+
},
|
|
1341
|
+
{
|
|
1342
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1343
|
+
paths: [
|
|
1344
|
+
{ path: "order.lineItems.image.focalPoint.x" },
|
|
1345
|
+
{ path: "order.lineItems.image.focalPoint.y" },
|
|
1346
|
+
{ path: "order.lineItems.physicalProperties.weight" },
|
|
1347
|
+
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
1348
|
+
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
1349
|
+
{
|
|
1350
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
1351
|
+
},
|
|
1352
|
+
{
|
|
1353
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
1354
|
+
},
|
|
1355
|
+
{
|
|
1356
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
1357
|
+
},
|
|
1358
|
+
{
|
|
1359
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
1360
|
+
},
|
|
1361
|
+
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
1362
|
+
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
1363
|
+
]
|
|
1364
|
+
}
|
|
1365
|
+
])
|
|
1366
|
+
};
|
|
1367
|
+
return metadata;
|
|
1368
|
+
}
|
|
1369
|
+
return __deleteActivity;
|
|
1370
|
+
}
|
|
1371
|
+
function cancelOrder(payload) {
|
|
1372
|
+
function __cancelOrder({ host }) {
|
|
1373
|
+
const metadata = {
|
|
1374
|
+
entityFqdn: "wix.ecom.v1.order",
|
|
1375
|
+
method: "POST",
|
|
1376
|
+
methodFqn: "com.wix.ecom.orders.v1.Orders.CancelOrder",
|
|
1377
|
+
packageName: PACKAGE_NAME,
|
|
1378
|
+
url: resolveComWixEcomOrdersV1OrdersUrl({
|
|
1379
|
+
protoPath: "/v1/orders/{id}/cancel",
|
|
1380
|
+
data: payload,
|
|
1381
|
+
host
|
|
1382
|
+
}),
|
|
1383
|
+
data: payload,
|
|
1384
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1385
|
+
{
|
|
1386
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1387
|
+
paths: [
|
|
1388
|
+
{ path: "order.createdDate" },
|
|
1389
|
+
{ path: "order.updatedDate" },
|
|
1390
|
+
{ path: "order.purchasedDate" },
|
|
1391
|
+
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
1392
|
+
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
1393
|
+
{
|
|
1394
|
+
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
1395
|
+
},
|
|
1396
|
+
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
1397
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
1398
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
1399
|
+
{ path: "order.activities.createdDate" }
|
|
1400
|
+
]
|
|
1401
|
+
},
|
|
1402
|
+
{
|
|
1403
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1404
|
+
paths: [
|
|
1405
|
+
{ path: "order.lineItems.image.focalPoint.x" },
|
|
1406
|
+
{ path: "order.lineItems.image.focalPoint.y" },
|
|
1407
|
+
{ path: "order.lineItems.physicalProperties.weight" },
|
|
1408
|
+
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
1409
|
+
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
1410
|
+
{
|
|
1411
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
1412
|
+
},
|
|
1413
|
+
{
|
|
1414
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
1415
|
+
},
|
|
1416
|
+
{
|
|
1417
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
1418
|
+
},
|
|
1419
|
+
{
|
|
1420
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
1421
|
+
},
|
|
1422
|
+
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
1423
|
+
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
1424
|
+
]
|
|
1425
|
+
}
|
|
1426
|
+
])
|
|
1427
|
+
};
|
|
1428
|
+
return metadata;
|
|
1429
|
+
}
|
|
1430
|
+
return __cancelOrder;
|
|
991
1431
|
}
|
|
992
1432
|
function updateOrderStatus(payload) {
|
|
993
1433
|
function __updateOrderStatus({ host }) {
|
|
@@ -1264,12 +1704,13 @@ var ChannelType = /* @__PURE__ */ ((ChannelType2) => {
|
|
|
1264
1704
|
ChannelType2["FAIRE_COM"] = "FAIRE_COM";
|
|
1265
1705
|
return ChannelType2;
|
|
1266
1706
|
})(ChannelType || {});
|
|
1267
|
-
var
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1707
|
+
var PreviewEmailType = /* @__PURE__ */ ((PreviewEmailType2) => {
|
|
1708
|
+
PreviewEmailType2["ORDER_PLACED"] = "ORDER_PLACED";
|
|
1709
|
+
PreviewEmailType2["DOWNLOAD_LINKS"] = "DOWNLOAD_LINKS";
|
|
1710
|
+
PreviewEmailType2["ORDER_SHIPPED"] = "ORDER_SHIPPED";
|
|
1711
|
+
PreviewEmailType2["ORDER_READY_FOR_PICKUP"] = "ORDER_READY_FOR_PICKUP";
|
|
1712
|
+
return PreviewEmailType2;
|
|
1713
|
+
})(PreviewEmailType || {});
|
|
1273
1714
|
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
1274
1715
|
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
1275
1716
|
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
@@ -1278,6 +1719,129 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
|
1278
1719
|
WebhookIdentityType2["APP"] = "APP";
|
|
1279
1720
|
return WebhookIdentityType2;
|
|
1280
1721
|
})(WebhookIdentityType || {});
|
|
1722
|
+
var ScheduledAction = /* @__PURE__ */ ((ScheduledAction2) => {
|
|
1723
|
+
ScheduledAction2["UNSPECIFIED"] = "UNSPECIFIED";
|
|
1724
|
+
ScheduledAction2["VOID"] = "VOID";
|
|
1725
|
+
ScheduledAction2["CAPTURE"] = "CAPTURE";
|
|
1726
|
+
return ScheduledAction2;
|
|
1727
|
+
})(ScheduledAction || {});
|
|
1728
|
+
var DurationUnit = /* @__PURE__ */ ((DurationUnit2) => {
|
|
1729
|
+
DurationUnit2["UNKNOWN_DURATION_UNIT"] = "UNKNOWN_DURATION_UNIT";
|
|
1730
|
+
DurationUnit2["MINUTES"] = "MINUTES";
|
|
1731
|
+
DurationUnit2["HOURS"] = "HOURS";
|
|
1732
|
+
DurationUnit2["DAYS"] = "DAYS";
|
|
1733
|
+
return DurationUnit2;
|
|
1734
|
+
})(DurationUnit || {});
|
|
1735
|
+
var PaymentCollectabilityStatus = /* @__PURE__ */ ((PaymentCollectabilityStatus2) => {
|
|
1736
|
+
PaymentCollectabilityStatus2["UNKNOWN"] = "UNKNOWN";
|
|
1737
|
+
PaymentCollectabilityStatus2["COLLECTABLE"] = "COLLECTABLE";
|
|
1738
|
+
PaymentCollectabilityStatus2["NONCOLLECTABLE_ORDER_IS_CANCELLED"] = "NONCOLLECTABLE_ORDER_IS_CANCELLED";
|
|
1739
|
+
PaymentCollectabilityStatus2["NONCOLLECTABLE_ORDER_IS_PAID"] = "NONCOLLECTABLE_ORDER_IS_PAID";
|
|
1740
|
+
PaymentCollectabilityStatus2["NONCOLLECTABLE_MISSING_PAYMENT_METHOD"] = "NONCOLLECTABLE_MISSING_PAYMENT_METHOD";
|
|
1741
|
+
PaymentCollectabilityStatus2["NONCOLLECTABLE_ORDER_IS_PENDING"] = "NONCOLLECTABLE_ORDER_IS_PENDING";
|
|
1742
|
+
PaymentCollectabilityStatus2["NONCOLLECTABLE_ORDER_IS_REJECTED"] = "NONCOLLECTABLE_ORDER_IS_REJECTED";
|
|
1743
|
+
PaymentCollectabilityStatus2["NONCOLLECTABLE_ORDER_HAS_SUBSCRIPTIONS"] = "NONCOLLECTABLE_ORDER_HAS_SUBSCRIPTIONS";
|
|
1744
|
+
return PaymentCollectabilityStatus2;
|
|
1745
|
+
})(PaymentCollectabilityStatus || {});
|
|
1746
|
+
var RefundableStatus = /* @__PURE__ */ ((RefundableStatus2) => {
|
|
1747
|
+
RefundableStatus2["NOT_REFUNDABLE"] = "NOT_REFUNDABLE";
|
|
1748
|
+
RefundableStatus2["MANUAL"] = "MANUAL";
|
|
1749
|
+
RefundableStatus2["REFUNDABLE"] = "REFUNDABLE";
|
|
1750
|
+
return RefundableStatus2;
|
|
1751
|
+
})(RefundableStatus || {});
|
|
1752
|
+
var NonRefundableReason = /* @__PURE__ */ ((NonRefundableReason2) => {
|
|
1753
|
+
NonRefundableReason2["NONE"] = "NONE";
|
|
1754
|
+
NonRefundableReason2["ALREADY_REFUNDED"] = "ALREADY_REFUNDED";
|
|
1755
|
+
NonRefundableReason2["PROVIDER_IS_DOWN"] = "PROVIDER_IS_DOWN";
|
|
1756
|
+
NonRefundableReason2["INTERNAL_ERROR"] = "INTERNAL_ERROR";
|
|
1757
|
+
NonRefundableReason2["NOT_PAID"] = "NOT_PAID";
|
|
1758
|
+
NonRefundableReason2["ACCESS_DENIED"] = "ACCESS_DENIED";
|
|
1759
|
+
NonRefundableReason2["ZERO_PRICE"] = "ZERO_PRICE";
|
|
1760
|
+
NonRefundableReason2["DISABLED_BY_PROVIDER"] = "DISABLED_BY_PROVIDER";
|
|
1761
|
+
NonRefundableReason2["PENDING_REFUND"] = "PENDING_REFUND";
|
|
1762
|
+
NonRefundableReason2["FORBIDDEN"] = "FORBIDDEN";
|
|
1763
|
+
NonRefundableReason2["TRANSACTION_NOT_FOUND"] = "TRANSACTION_NOT_FOUND";
|
|
1764
|
+
NonRefundableReason2["ORDER_IS_PENDING"] = "ORDER_IS_PENDING";
|
|
1765
|
+
NonRefundableReason2["ORDER_IS_REJECTED"] = "ORDER_IS_REJECTED";
|
|
1766
|
+
return NonRefundableReason2;
|
|
1767
|
+
})(NonRefundableReason || {});
|
|
1768
|
+
var ManuallyRefundableReason = /* @__PURE__ */ ((ManuallyRefundableReason2) => {
|
|
1769
|
+
ManuallyRefundableReason2["EXPIRED"] = "EXPIRED";
|
|
1770
|
+
ManuallyRefundableReason2["NOT_SUPPORTED"] = "NOT_SUPPORTED";
|
|
1771
|
+
ManuallyRefundableReason2["OFFLINE"] = "OFFLINE";
|
|
1772
|
+
ManuallyRefundableReason2["REQUIRES_CARD_READER"] = "REQUIRES_CARD_READER";
|
|
1773
|
+
return ManuallyRefundableReason2;
|
|
1774
|
+
})(ManuallyRefundableReason || {});
|
|
1775
|
+
var RestockType = /* @__PURE__ */ ((RestockType2) => {
|
|
1776
|
+
RestockType2["NO_ITEMS"] = "NO_ITEMS";
|
|
1777
|
+
RestockType2["ALL_ITEMS"] = "ALL_ITEMS";
|
|
1778
|
+
RestockType2["SOME_ITEMS"] = "SOME_ITEMS";
|
|
1779
|
+
return RestockType2;
|
|
1780
|
+
})(RestockType || {});
|
|
1781
|
+
var TransactionStatus = /* @__PURE__ */ ((TransactionStatus2) => {
|
|
1782
|
+
TransactionStatus2["UNDEFINED"] = "UNDEFINED";
|
|
1783
|
+
TransactionStatus2["APPROVED"] = "APPROVED";
|
|
1784
|
+
TransactionStatus2["PENDING"] = "PENDING";
|
|
1785
|
+
TransactionStatus2["PENDING_MERCHANT"] = "PENDING_MERCHANT";
|
|
1786
|
+
TransactionStatus2["CANCELED"] = "CANCELED";
|
|
1787
|
+
TransactionStatus2["DECLINED"] = "DECLINED";
|
|
1788
|
+
TransactionStatus2["REFUNDED"] = "REFUNDED";
|
|
1789
|
+
TransactionStatus2["PARTIALLY_REFUNDED"] = "PARTIALLY_REFUNDED";
|
|
1790
|
+
TransactionStatus2["AUTHORIZED"] = "AUTHORIZED";
|
|
1791
|
+
TransactionStatus2["VOIDED"] = "VOIDED";
|
|
1792
|
+
return TransactionStatus2;
|
|
1793
|
+
})(TransactionStatus || {});
|
|
1794
|
+
var AuthorizationCaptureStatus = /* @__PURE__ */ ((AuthorizationCaptureStatus2) => {
|
|
1795
|
+
AuthorizationCaptureStatus2["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
|
|
1796
|
+
AuthorizationCaptureStatus2["PENDING"] = "PENDING";
|
|
1797
|
+
AuthorizationCaptureStatus2["SUCCEEDED"] = "SUCCEEDED";
|
|
1798
|
+
AuthorizationCaptureStatus2["FAILED"] = "FAILED";
|
|
1799
|
+
return AuthorizationCaptureStatus2;
|
|
1800
|
+
})(AuthorizationCaptureStatus || {});
|
|
1801
|
+
var AuthorizationVoidStatus = /* @__PURE__ */ ((AuthorizationVoidStatus2) => {
|
|
1802
|
+
AuthorizationVoidStatus2["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
|
|
1803
|
+
AuthorizationVoidStatus2["PENDING"] = "PENDING";
|
|
1804
|
+
AuthorizationVoidStatus2["SUCCEEDED"] = "SUCCEEDED";
|
|
1805
|
+
AuthorizationVoidStatus2["FAILED"] = "FAILED";
|
|
1806
|
+
return AuthorizationVoidStatus2;
|
|
1807
|
+
})(AuthorizationVoidStatus || {});
|
|
1808
|
+
var Reason = /* @__PURE__ */ ((Reason2) => {
|
|
1809
|
+
Reason2["UNKNOWN_REASON"] = "UNKNOWN_REASON";
|
|
1810
|
+
Reason2["MANUAL"] = "MANUAL";
|
|
1811
|
+
Reason2["SCHEDULED"] = "SCHEDULED";
|
|
1812
|
+
return Reason2;
|
|
1813
|
+
})(Reason || {});
|
|
1814
|
+
var ActionType = /* @__PURE__ */ ((ActionType2) => {
|
|
1815
|
+
ActionType2["UNKNOWN_ACTION_TYPE"] = "UNKNOWN_ACTION_TYPE";
|
|
1816
|
+
ActionType2["VOID"] = "VOID";
|
|
1817
|
+
ActionType2["CAPTURE"] = "CAPTURE";
|
|
1818
|
+
return ActionType2;
|
|
1819
|
+
})(ActionType || {});
|
|
1820
|
+
var ChargebackStatus = /* @__PURE__ */ ((ChargebackStatus2) => {
|
|
1821
|
+
ChargebackStatus2["UNSPECIFIED"] = "UNSPECIFIED";
|
|
1822
|
+
ChargebackStatus2["APPROVED"] = "APPROVED";
|
|
1823
|
+
ChargebackStatus2["REVERSED"] = "REVERSED";
|
|
1824
|
+
return ChargebackStatus2;
|
|
1825
|
+
})(ChargebackStatus || {});
|
|
1826
|
+
var MembershipPaymentStatus = /* @__PURE__ */ ((MembershipPaymentStatus2) => {
|
|
1827
|
+
MembershipPaymentStatus2["CHARGED"] = "CHARGED";
|
|
1828
|
+
MembershipPaymentStatus2["CHARGE_FAILED"] = "CHARGE_FAILED";
|
|
1829
|
+
return MembershipPaymentStatus2;
|
|
1830
|
+
})(MembershipPaymentStatus || {});
|
|
1831
|
+
var RefundStatus = /* @__PURE__ */ ((RefundStatus2) => {
|
|
1832
|
+
RefundStatus2["PENDING"] = "PENDING";
|
|
1833
|
+
RefundStatus2["SUCCEEDED"] = "SUCCEEDED";
|
|
1834
|
+
RefundStatus2["FAILED"] = "FAILED";
|
|
1835
|
+
RefundStatus2["SCHEDULED"] = "SCHEDULED";
|
|
1836
|
+
RefundStatus2["STARTED"] = "STARTED";
|
|
1837
|
+
return RefundStatus2;
|
|
1838
|
+
})(RefundStatus || {});
|
|
1839
|
+
var VersioningMode = /* @__PURE__ */ ((VersioningMode2) => {
|
|
1840
|
+
VersioningMode2["DEFAULT"] = "DEFAULT";
|
|
1841
|
+
VersioningMode2["GREATER_THAN"] = "GREATER_THAN";
|
|
1842
|
+
VersioningMode2["GREATER_OR_EQUAL"] = "GREATER_OR_EQUAL";
|
|
1843
|
+
return VersioningMode2;
|
|
1844
|
+
})(VersioningMode || {});
|
|
1281
1845
|
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
1282
1846
|
SortOrder2["ASC"] = "ASC";
|
|
1283
1847
|
SortOrder2["DESC"] = "DESC";
|
|
@@ -1360,6 +1924,351 @@ var InvoiceStatus = /* @__PURE__ */ ((InvoiceStatus2) => {
|
|
|
1360
1924
|
InvoiceStatus2["PartialAndOverdue"] = "PartialAndOverdue";
|
|
1361
1925
|
return InvoiceStatus2;
|
|
1362
1926
|
})(InvoiceStatus || {});
|
|
1927
|
+
async function preparePaymentCollection2(ecomOrderId, amount, options) {
|
|
1928
|
+
const { httpClient, sideEffects } = arguments[3];
|
|
1929
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1930
|
+
ecomOrderId,
|
|
1931
|
+
amount,
|
|
1932
|
+
paymentGatewayOrderId: options?.paymentGatewayOrderId,
|
|
1933
|
+
delayedCapture: options?.delayedCapture,
|
|
1934
|
+
delayedCaptureSettings: options?.delayedCaptureSettings
|
|
1935
|
+
});
|
|
1936
|
+
const reqOpts = preparePaymentCollection(payload);
|
|
1937
|
+
sideEffects?.onSiteCall?.();
|
|
1938
|
+
try {
|
|
1939
|
+
const result = await httpClient.request(reqOpts);
|
|
1940
|
+
sideEffects?.onSuccess?.(result);
|
|
1941
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1942
|
+
} catch (err) {
|
|
1943
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1944
|
+
err,
|
|
1945
|
+
{
|
|
1946
|
+
spreadPathsToArguments: {},
|
|
1947
|
+
explicitPathsToArguments: {
|
|
1948
|
+
ecomOrderId: "$[0]",
|
|
1949
|
+
amount: "$[1]",
|
|
1950
|
+
paymentGatewayOrderId: "$[2].paymentGatewayOrderId",
|
|
1951
|
+
delayedCapture: "$[2].delayedCapture",
|
|
1952
|
+
delayedCaptureSettings: "$[2].delayedCaptureSettings"
|
|
1953
|
+
},
|
|
1954
|
+
singleArgumentUnchanged: false
|
|
1955
|
+
},
|
|
1956
|
+
["ecomOrderId", "amount", "options"]
|
|
1957
|
+
);
|
|
1958
|
+
sideEffects?.onError?.(err);
|
|
1959
|
+
throw transformedError;
|
|
1960
|
+
}
|
|
1961
|
+
}
|
|
1962
|
+
async function getPaymentCollectabilityStatus2(ecomOrderId) {
|
|
1963
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1964
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1965
|
+
ecomOrderId
|
|
1966
|
+
});
|
|
1967
|
+
const reqOpts = getPaymentCollectabilityStatus(payload);
|
|
1968
|
+
sideEffects?.onSiteCall?.();
|
|
1969
|
+
try {
|
|
1970
|
+
const result = await httpClient.request(reqOpts);
|
|
1971
|
+
sideEffects?.onSuccess?.(result);
|
|
1972
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1973
|
+
} catch (err) {
|
|
1974
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1975
|
+
err,
|
|
1976
|
+
{
|
|
1977
|
+
spreadPathsToArguments: {},
|
|
1978
|
+
explicitPathsToArguments: { ecomOrderId: "$[0]" },
|
|
1979
|
+
singleArgumentUnchanged: false
|
|
1980
|
+
},
|
|
1981
|
+
["ecomOrderId"]
|
|
1982
|
+
);
|
|
1983
|
+
sideEffects?.onError?.(err);
|
|
1984
|
+
throw transformedError;
|
|
1985
|
+
}
|
|
1986
|
+
}
|
|
1987
|
+
async function recordManuallyCollectedPayment2(orderId, amount) {
|
|
1988
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1989
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1990
|
+
orderId,
|
|
1991
|
+
amount
|
|
1992
|
+
});
|
|
1993
|
+
const reqOpts = recordManuallyCollectedPayment(payload);
|
|
1994
|
+
sideEffects?.onSiteCall?.();
|
|
1995
|
+
try {
|
|
1996
|
+
const result = await httpClient.request(reqOpts);
|
|
1997
|
+
sideEffects?.onSuccess?.(result);
|
|
1998
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1999
|
+
} catch (err) {
|
|
2000
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
2001
|
+
err,
|
|
2002
|
+
{
|
|
2003
|
+
spreadPathsToArguments: {},
|
|
2004
|
+
explicitPathsToArguments: { orderId: "$[0]", amount: "$[1]" },
|
|
2005
|
+
singleArgumentUnchanged: false
|
|
2006
|
+
},
|
|
2007
|
+
["orderId", "amount"]
|
|
2008
|
+
);
|
|
2009
|
+
sideEffects?.onError?.(err);
|
|
2010
|
+
throw transformedError;
|
|
2011
|
+
}
|
|
2012
|
+
}
|
|
2013
|
+
async function paymentCollectionMarkOrderAsPaid2(ecomOrderId) {
|
|
2014
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
2015
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2016
|
+
ecomOrderId
|
|
2017
|
+
});
|
|
2018
|
+
const reqOpts = paymentCollectionMarkOrderAsPaid(payload);
|
|
2019
|
+
sideEffects?.onSiteCall?.();
|
|
2020
|
+
try {
|
|
2021
|
+
const result = await httpClient.request(reqOpts);
|
|
2022
|
+
sideEffects?.onSuccess?.(result);
|
|
2023
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
2024
|
+
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
2025
|
+
{
|
|
2026
|
+
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
2027
|
+
paths: [{ path: "order.lineItems.image" }]
|
|
2028
|
+
},
|
|
2029
|
+
{
|
|
2030
|
+
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
2031
|
+
paths: [
|
|
2032
|
+
{ path: "order.billingInfo.address" },
|
|
2033
|
+
{
|
|
2034
|
+
path: "order.shippingInfo.logistics.shippingDestination.address"
|
|
2035
|
+
},
|
|
2036
|
+
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
2037
|
+
{ path: "order.recipientInfo.address" }
|
|
2038
|
+
]
|
|
2039
|
+
}
|
|
2040
|
+
])
|
|
2041
|
+
);
|
|
2042
|
+
} catch (err) {
|
|
2043
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
2044
|
+
err,
|
|
2045
|
+
{
|
|
2046
|
+
spreadPathsToArguments: {},
|
|
2047
|
+
explicitPathsToArguments: { ecomOrderId: "$[0]" },
|
|
2048
|
+
singleArgumentUnchanged: false
|
|
2049
|
+
},
|
|
2050
|
+
["ecomOrderId"]
|
|
2051
|
+
);
|
|
2052
|
+
sideEffects?.onError?.(err);
|
|
2053
|
+
throw transformedError;
|
|
2054
|
+
}
|
|
2055
|
+
}
|
|
2056
|
+
async function paymentCollectionBulkMarkOrdersAsPaid2(ecomOrderIds) {
|
|
2057
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
2058
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2059
|
+
ecomOrderIds
|
|
2060
|
+
});
|
|
2061
|
+
const reqOpts = paymentCollectionBulkMarkOrdersAsPaid(payload);
|
|
2062
|
+
sideEffects?.onSiteCall?.();
|
|
2063
|
+
try {
|
|
2064
|
+
const result = await httpClient.request(reqOpts);
|
|
2065
|
+
sideEffects?.onSuccess?.(result);
|
|
2066
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
2067
|
+
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
2068
|
+
{
|
|
2069
|
+
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
2070
|
+
paths: [{ path: "results.item.lineItems.image" }]
|
|
2071
|
+
},
|
|
2072
|
+
{
|
|
2073
|
+
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
2074
|
+
paths: [
|
|
2075
|
+
{ path: "results.item.billingInfo.address" },
|
|
2076
|
+
{
|
|
2077
|
+
path: "results.item.shippingInfo.logistics.shippingDestination.address"
|
|
2078
|
+
},
|
|
2079
|
+
{
|
|
2080
|
+
path: "results.item.shippingInfo.logistics.pickupDetails.address"
|
|
2081
|
+
},
|
|
2082
|
+
{ path: "results.item.recipientInfo.address" }
|
|
2083
|
+
]
|
|
2084
|
+
}
|
|
2085
|
+
])
|
|
2086
|
+
);
|
|
2087
|
+
} catch (err) {
|
|
2088
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
2089
|
+
err,
|
|
2090
|
+
{
|
|
2091
|
+
spreadPathsToArguments: {},
|
|
2092
|
+
explicitPathsToArguments: { ecomOrderIds: "$[0]" },
|
|
2093
|
+
singleArgumentUnchanged: false
|
|
2094
|
+
},
|
|
2095
|
+
["ecomOrderIds"]
|
|
2096
|
+
);
|
|
2097
|
+
sideEffects?.onError?.(err);
|
|
2098
|
+
throw transformedError;
|
|
2099
|
+
}
|
|
2100
|
+
}
|
|
2101
|
+
async function getRefundabilityStatus2(ecomOrderId) {
|
|
2102
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
2103
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2104
|
+
ecomOrderId
|
|
2105
|
+
});
|
|
2106
|
+
const reqOpts = getRefundabilityStatus(payload);
|
|
2107
|
+
sideEffects?.onSiteCall?.();
|
|
2108
|
+
try {
|
|
2109
|
+
const result = await httpClient.request(reqOpts);
|
|
2110
|
+
sideEffects?.onSuccess?.(result);
|
|
2111
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2112
|
+
} catch (err) {
|
|
2113
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
2114
|
+
err,
|
|
2115
|
+
{
|
|
2116
|
+
spreadPathsToArguments: {},
|
|
2117
|
+
explicitPathsToArguments: { ecomOrderId: "$[0]" },
|
|
2118
|
+
singleArgumentUnchanged: false
|
|
2119
|
+
},
|
|
2120
|
+
["ecomOrderId"]
|
|
2121
|
+
);
|
|
2122
|
+
sideEffects?.onError?.(err);
|
|
2123
|
+
throw transformedError;
|
|
2124
|
+
}
|
|
2125
|
+
}
|
|
2126
|
+
async function paymentCollectionCreatePaymentGatewayOrder2(ecomOrderId, options) {
|
|
2127
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2128
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2129
|
+
ecomOrderId,
|
|
2130
|
+
chargedBy: options?.chargedBy
|
|
2131
|
+
});
|
|
2132
|
+
const reqOpts = paymentCollectionCreatePaymentGatewayOrder(
|
|
2133
|
+
payload
|
|
2134
|
+
);
|
|
2135
|
+
sideEffects?.onSiteCall?.();
|
|
2136
|
+
try {
|
|
2137
|
+
const result = await httpClient.request(reqOpts);
|
|
2138
|
+
sideEffects?.onSuccess?.(result);
|
|
2139
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2140
|
+
} catch (err) {
|
|
2141
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
2142
|
+
err,
|
|
2143
|
+
{
|
|
2144
|
+
spreadPathsToArguments: {},
|
|
2145
|
+
explicitPathsToArguments: {
|
|
2146
|
+
ecomOrderId: "$[0]",
|
|
2147
|
+
chargedBy: "$[1].chargedBy"
|
|
2148
|
+
},
|
|
2149
|
+
singleArgumentUnchanged: false
|
|
2150
|
+
},
|
|
2151
|
+
["ecomOrderId", "options"]
|
|
2152
|
+
);
|
|
2153
|
+
sideEffects?.onError?.(err);
|
|
2154
|
+
throw transformedError;
|
|
2155
|
+
}
|
|
2156
|
+
}
|
|
2157
|
+
async function chargeMemberships2(ecomOrderId, memberId, options) {
|
|
2158
|
+
const { httpClient, sideEffects } = arguments[3];
|
|
2159
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2160
|
+
ecomOrderId,
|
|
2161
|
+
memberId,
|
|
2162
|
+
membershipCharges: options?.membershipCharges
|
|
2163
|
+
});
|
|
2164
|
+
const reqOpts = chargeMemberships(payload);
|
|
2165
|
+
sideEffects?.onSiteCall?.();
|
|
2166
|
+
try {
|
|
2167
|
+
const result = await httpClient.request(reqOpts);
|
|
2168
|
+
sideEffects?.onSuccess?.(result);
|
|
2169
|
+
} catch (err) {
|
|
2170
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
2171
|
+
err,
|
|
2172
|
+
{
|
|
2173
|
+
spreadPathsToArguments: {},
|
|
2174
|
+
explicitPathsToArguments: {
|
|
2175
|
+
ecomOrderId: "$[0]",
|
|
2176
|
+
memberId: "$[1]",
|
|
2177
|
+
membershipCharges: "$[2].membershipCharges"
|
|
2178
|
+
},
|
|
2179
|
+
singleArgumentUnchanged: false
|
|
2180
|
+
},
|
|
2181
|
+
["ecomOrderId", "memberId", "options"]
|
|
2182
|
+
);
|
|
2183
|
+
sideEffects?.onError?.(err);
|
|
2184
|
+
throw transformedError;
|
|
2185
|
+
}
|
|
2186
|
+
}
|
|
2187
|
+
async function triggerRefund2(ecomOrderId, payments, options) {
|
|
2188
|
+
const { httpClient, sideEffects } = arguments[3];
|
|
2189
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2190
|
+
ecomOrderId,
|
|
2191
|
+
payments,
|
|
2192
|
+
details: options?.details,
|
|
2193
|
+
sideEffects: options?.sideEffects
|
|
2194
|
+
});
|
|
2195
|
+
const reqOpts = triggerRefund(payload);
|
|
2196
|
+
sideEffects?.onSiteCall?.();
|
|
2197
|
+
try {
|
|
2198
|
+
const result = await httpClient.request(reqOpts);
|
|
2199
|
+
sideEffects?.onSuccess?.(result);
|
|
2200
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2201
|
+
} catch (err) {
|
|
2202
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
2203
|
+
err,
|
|
2204
|
+
{
|
|
2205
|
+
spreadPathsToArguments: {},
|
|
2206
|
+
explicitPathsToArguments: {
|
|
2207
|
+
ecomOrderId: "$[0]",
|
|
2208
|
+
payments: "$[1]",
|
|
2209
|
+
details: "$[2].details",
|
|
2210
|
+
sideEffects: "$[2].sideEffects"
|
|
2211
|
+
},
|
|
2212
|
+
singleArgumentUnchanged: false
|
|
2213
|
+
},
|
|
2214
|
+
["ecomOrderId", "payments", "options"]
|
|
2215
|
+
);
|
|
2216
|
+
sideEffects?.onError?.(err);
|
|
2217
|
+
throw transformedError;
|
|
2218
|
+
}
|
|
2219
|
+
}
|
|
2220
|
+
async function voidAuthorizedPayments2(ecomOrderId, paymentIds) {
|
|
2221
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2222
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2223
|
+
ecomOrderId,
|
|
2224
|
+
paymentIds
|
|
2225
|
+
});
|
|
2226
|
+
const reqOpts = voidAuthorizedPayments(payload);
|
|
2227
|
+
sideEffects?.onSiteCall?.();
|
|
2228
|
+
try {
|
|
2229
|
+
const result = await httpClient.request(reqOpts);
|
|
2230
|
+
sideEffects?.onSuccess?.(result);
|
|
2231
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2232
|
+
} catch (err) {
|
|
2233
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
2234
|
+
err,
|
|
2235
|
+
{
|
|
2236
|
+
spreadPathsToArguments: {},
|
|
2237
|
+
explicitPathsToArguments: { ecomOrderId: "$[0]", paymentIds: "$[1]" },
|
|
2238
|
+
singleArgumentUnchanged: false
|
|
2239
|
+
},
|
|
2240
|
+
["ecomOrderId", "paymentIds"]
|
|
2241
|
+
);
|
|
2242
|
+
sideEffects?.onError?.(err);
|
|
2243
|
+
throw transformedError;
|
|
2244
|
+
}
|
|
2245
|
+
}
|
|
2246
|
+
async function captureAuthorizedPayments2(ecomOrderId, payments) {
|
|
2247
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2248
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2249
|
+
ecomOrderId,
|
|
2250
|
+
payments
|
|
2251
|
+
});
|
|
2252
|
+
const reqOpts = captureAuthorizedPayments(payload);
|
|
2253
|
+
sideEffects?.onSiteCall?.();
|
|
2254
|
+
try {
|
|
2255
|
+
const result = await httpClient.request(reqOpts);
|
|
2256
|
+
sideEffects?.onSuccess?.(result);
|
|
2257
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2258
|
+
} catch (err) {
|
|
2259
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
2260
|
+
err,
|
|
2261
|
+
{
|
|
2262
|
+
spreadPathsToArguments: {},
|
|
2263
|
+
explicitPathsToArguments: { ecomOrderId: "$[0]", payments: "$[1]" },
|
|
2264
|
+
singleArgumentUnchanged: false
|
|
2265
|
+
},
|
|
2266
|
+
["ecomOrderId", "payments"]
|
|
2267
|
+
);
|
|
2268
|
+
sideEffects?.onError?.(err);
|
|
2269
|
+
throw transformedError;
|
|
2270
|
+
}
|
|
2271
|
+
}
|
|
1363
2272
|
async function getOrder2(_id) {
|
|
1364
2273
|
const { httpClient, sideEffects } = arguments[1];
|
|
1365
2274
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ id: _id });
|
|
@@ -2057,33 +2966,49 @@ async function bulkUpdateOrderTags2(orderIds, options) {
|
|
|
2057
2966
|
}
|
|
2058
2967
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2059
2968
|
0 && (module.exports = {
|
|
2969
|
+
ActionType,
|
|
2060
2970
|
ActivityType,
|
|
2061
2971
|
AdjustmentType,
|
|
2062
2972
|
AttributionSource,
|
|
2973
|
+
AuthorizationCaptureStatus,
|
|
2974
|
+
AuthorizationVoidStatus,
|
|
2063
2975
|
ChannelType,
|
|
2976
|
+
ChargebackStatus,
|
|
2064
2977
|
CustomFieldGroup,
|
|
2065
2978
|
DeltaPaymentOptionType,
|
|
2066
2979
|
DepositType,
|
|
2067
2980
|
DescriptionLineType,
|
|
2068
2981
|
DiscountReason,
|
|
2069
2982
|
DiscountType,
|
|
2983
|
+
DurationUnit,
|
|
2070
2984
|
FulfillmentStatus,
|
|
2071
2985
|
InventoryAction,
|
|
2072
2986
|
InvoiceStatus,
|
|
2073
2987
|
ItemTypeItemType,
|
|
2074
2988
|
JurisdictionType,
|
|
2075
2989
|
LineItemQuantityChangeType,
|
|
2990
|
+
ManuallyRefundableReason,
|
|
2991
|
+
MembershipPaymentStatus,
|
|
2992
|
+
NonRefundableReason,
|
|
2076
2993
|
OrderApprovalStrategy,
|
|
2077
2994
|
OrderStatus,
|
|
2995
|
+
PaymentCollectabilityStatus,
|
|
2078
2996
|
PaymentOptionType,
|
|
2079
2997
|
PaymentStatus,
|
|
2080
2998
|
PickupMethod,
|
|
2081
2999
|
Placement,
|
|
3000
|
+
PreviewEmailType,
|
|
3001
|
+
Reason,
|
|
3002
|
+
RefundStatus,
|
|
3003
|
+
RefundableStatus,
|
|
3004
|
+
RestockType,
|
|
3005
|
+
ScheduledAction,
|
|
2082
3006
|
SortOrder,
|
|
2083
3007
|
SourceType,
|
|
2084
3008
|
SubdivisionType,
|
|
2085
3009
|
SubscriptionFrequency,
|
|
2086
3010
|
TaxableAddressType,
|
|
3011
|
+
TransactionStatus,
|
|
2087
3012
|
ValueType,
|
|
2088
3013
|
VatType,
|
|
2089
3014
|
VersioningMode,
|
|
@@ -2094,14 +3019,25 @@ async function bulkUpdateOrderTags2(orderIds, options) {
|
|
|
2094
3019
|
bulkUpdateOrderTags,
|
|
2095
3020
|
bulkUpdateOrders,
|
|
2096
3021
|
cancelOrder,
|
|
3022
|
+
captureAuthorizedPayments,
|
|
3023
|
+
chargeMemberships,
|
|
2097
3024
|
commitDeltas,
|
|
2098
3025
|
createOrder,
|
|
2099
3026
|
deleteActivity,
|
|
2100
3027
|
getOrder,
|
|
3028
|
+
getPaymentCollectabilityStatus,
|
|
3029
|
+
getRefundabilityStatus,
|
|
3030
|
+
paymentCollectionBulkMarkOrdersAsPaid,
|
|
3031
|
+
paymentCollectionCreatePaymentGatewayOrder,
|
|
3032
|
+
paymentCollectionMarkOrderAsPaid,
|
|
3033
|
+
preparePaymentCollection,
|
|
3034
|
+
recordManuallyCollectedPayment,
|
|
2101
3035
|
searchOrders,
|
|
3036
|
+
triggerRefund,
|
|
2102
3037
|
updateActivity,
|
|
2103
3038
|
updateOrder,
|
|
2104
3039
|
updateOrderLineItem,
|
|
2105
|
-
updateOrderStatus
|
|
3040
|
+
updateOrderStatus,
|
|
3041
|
+
voidAuthorizedPayments
|
|
2106
3042
|
});
|
|
2107
3043
|
//# sourceMappingURL=index.typings.js.map
|