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