@wix/auto_sdk_ecom_orders 1.0.53 → 1.0.55
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/{cjs/src/ecom-v1-order-orders.universal.d.ts → ecom-v1-order-orders.universal-CyvtIwV9.d.mts} +648 -1079
- package/build/{es/src/ecom-v1-order-orders.universal.d.ts → ecom-v1-order-orders.universal-CyvtIwV9.d.ts} +648 -1079
- package/build/index.d.mts +216 -0
- package/build/index.d.ts +216 -0
- package/build/index.js +3502 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +3399 -0
- package/build/index.mjs.map +1 -0
- package/build/internal/{cjs/src/ecom-v1-order-orders.universal.d.ts → ecom-v1-order-orders.universal-yuJ_Abfi.d.mts} +648 -1446
- package/build/internal/{es/src/ecom-v1-order-orders.universal.d.ts → ecom-v1-order-orders.universal-yuJ_Abfi.d.ts} +648 -1446
- package/build/internal/index.d.mts +395 -0
- package/build/internal/index.d.ts +395 -0
- package/build/internal/index.js +3502 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +3399 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/internal/meta.d.mts +3302 -0
- package/build/internal/meta.d.ts +3302 -0
- package/build/internal/meta.js +1941 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +1890 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/meta.d.mts +3302 -0
- package/build/meta.d.ts +3302 -0
- package/build/meta.js +1941 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +1890 -0
- package/build/meta.mjs.map +1 -0
- package/package.json +12 -11
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/index.typings.d.ts +0 -43
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/ecom-v1-order-orders.context.d.ts +0 -34
- package/build/cjs/src/ecom-v1-order-orders.context.js +0 -117
- package/build/cjs/src/ecom-v1-order-orders.context.js.map +0 -1
- package/build/cjs/src/ecom-v1-order-orders.http.d.ts +0 -200
- package/build/cjs/src/ecom-v1-order-orders.http.js +0 -1610
- package/build/cjs/src/ecom-v1-order-orders.http.js.map +0 -1
- package/build/cjs/src/ecom-v1-order-orders.meta.d.ts +0 -78
- package/build/cjs/src/ecom-v1-order-orders.meta.js +0 -503
- package/build/cjs/src/ecom-v1-order-orders.meta.js.map +0 -1
- package/build/cjs/src/ecom-v1-order-orders.public.d.ts +0 -190
- package/build/cjs/src/ecom-v1-order-orders.public.js +0 -382
- package/build/cjs/src/ecom-v1-order-orders.public.js.map +0 -1
- package/build/cjs/src/ecom-v1-order-orders.types.d.ts +0 -6317
- package/build/cjs/src/ecom-v1-order-orders.types.js +0 -652
- package/build/cjs/src/ecom-v1-order-orders.types.js.map +0 -1
- package/build/cjs/src/ecom-v1-order-orders.universal.js +0 -2337
- package/build/cjs/src/ecom-v1-order-orders.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -43
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/package.json +0 -3
- package/build/es/src/ecom-v1-order-orders.context.d.ts +0 -34
- package/build/es/src/ecom-v1-order-orders.context.js +0 -62
- package/build/es/src/ecom-v1-order-orders.context.js.map +0 -1
- package/build/es/src/ecom-v1-order-orders.http.d.ts +0 -200
- package/build/es/src/ecom-v1-order-orders.http.js +0 -1582
- package/build/es/src/ecom-v1-order-orders.http.js.map +0 -1
- package/build/es/src/ecom-v1-order-orders.meta.d.ts +0 -78
- package/build/es/src/ecom-v1-order-orders.meta.js +0 -452
- package/build/es/src/ecom-v1-order-orders.meta.js.map +0 -1
- package/build/es/src/ecom-v1-order-orders.public.d.ts +0 -190
- package/build/es/src/ecom-v1-order-orders.public.js +0 -302
- package/build/es/src/ecom-v1-order-orders.public.js.map +0 -1
- package/build/es/src/ecom-v1-order-orders.types.d.ts +0 -6317
- package/build/es/src/ecom-v1-order-orders.types.js +0 -648
- package/build/es/src/ecom-v1-order-orders.types.js.map +0 -1
- package/build/es/src/ecom-v1-order-orders.universal.js +0 -2285
- package/build/es/src/ecom-v1-order-orders.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -43
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/ecom-v1-order-orders.context.d.ts +0 -62
- package/build/internal/cjs/src/ecom-v1-order-orders.context.js +0 -117
- package/build/internal/cjs/src/ecom-v1-order-orders.context.js.map +0 -1
- package/build/internal/cjs/src/ecom-v1-order-orders.http.d.ts +0 -200
- package/build/internal/cjs/src/ecom-v1-order-orders.http.js +0 -1610
- package/build/internal/cjs/src/ecom-v1-order-orders.http.js.map +0 -1
- package/build/internal/cjs/src/ecom-v1-order-orders.meta.d.ts +0 -78
- package/build/internal/cjs/src/ecom-v1-order-orders.meta.js +0 -503
- package/build/internal/cjs/src/ecom-v1-order-orders.meta.js.map +0 -1
- package/build/internal/cjs/src/ecom-v1-order-orders.public.d.ts +0 -341
- package/build/internal/cjs/src/ecom-v1-order-orders.public.js +0 -382
- package/build/internal/cjs/src/ecom-v1-order-orders.public.js.map +0 -1
- package/build/internal/cjs/src/ecom-v1-order-orders.types.d.ts +0 -6317
- package/build/internal/cjs/src/ecom-v1-order-orders.types.js +0 -652
- package/build/internal/cjs/src/ecom-v1-order-orders.types.js.map +0 -1
- package/build/internal/cjs/src/ecom-v1-order-orders.universal.js +0 -2337
- package/build/internal/cjs/src/ecom-v1-order-orders.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -43
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/ecom-v1-order-orders.context.d.ts +0 -62
- package/build/internal/es/src/ecom-v1-order-orders.context.js +0 -62
- package/build/internal/es/src/ecom-v1-order-orders.context.js.map +0 -1
- package/build/internal/es/src/ecom-v1-order-orders.http.d.ts +0 -200
- package/build/internal/es/src/ecom-v1-order-orders.http.js +0 -1582
- package/build/internal/es/src/ecom-v1-order-orders.http.js.map +0 -1
- package/build/internal/es/src/ecom-v1-order-orders.meta.d.ts +0 -78
- package/build/internal/es/src/ecom-v1-order-orders.meta.js +0 -452
- package/build/internal/es/src/ecom-v1-order-orders.meta.js.map +0 -1
- package/build/internal/es/src/ecom-v1-order-orders.public.d.ts +0 -341
- package/build/internal/es/src/ecom-v1-order-orders.public.js +0 -302
- package/build/internal/es/src/ecom-v1-order-orders.public.js.map +0 -1
- package/build/internal/es/src/ecom-v1-order-orders.types.d.ts +0 -6317
- package/build/internal/es/src/ecom-v1-order-orders.types.js +0 -648
- package/build/internal/es/src/ecom-v1-order-orders.types.js.map +0 -1
- package/build/internal/es/src/ecom-v1-order-orders.universal.js +0 -2285
- package/build/internal/es/src/ecom-v1-order-orders.universal.js.map +0 -1
package/build/index.mjs
ADDED
|
@@ -0,0 +1,3399 @@
|
|
|
1
|
+
// src/ecom-v1-order-orders.public.ts
|
|
2
|
+
import { renameKeysFromRESTResponseToSDKResponse as renameKeysFromRESTResponseToSDKResponse2 } from "@wix/sdk-runtime/rename-all-nested-keys";
|
|
3
|
+
import { transformRESTAddressToSDKAddress as transformRESTAddressToSDKAddress2 } from "@wix/sdk-runtime/transformations/address";
|
|
4
|
+
import { transformRESTFloatToSDKFloat as transformRESTFloatToSDKFloat2 } from "@wix/sdk-runtime/transformations/float";
|
|
5
|
+
import { transformRESTImageToSDKImage as transformRESTImageToSDKImage2 } from "@wix/sdk-runtime/transformations/image";
|
|
6
|
+
import { transformRESTTimestampToSDKTimestamp as transformRESTTimestampToSDKTimestamp2 } from "@wix/sdk-runtime/transformations/timestamp";
|
|
7
|
+
import { transformPaths as transformPaths3 } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
8
|
+
import { EventDefinition } from "@wix/sdk-types";
|
|
9
|
+
|
|
10
|
+
// src/ecom-v1-order-orders.universal.ts
|
|
11
|
+
import { transformError as sdkTransformError } from "@wix/sdk-runtime/transform-error";
|
|
12
|
+
import {
|
|
13
|
+
renameKeysFromSDKRequestToRESTRequest,
|
|
14
|
+
renameKeysFromRESTResponseToSDKResponse
|
|
15
|
+
} from "@wix/sdk-runtime/rename-all-nested-keys";
|
|
16
|
+
|
|
17
|
+
// src/ecom-v1-order-orders.http.ts
|
|
18
|
+
import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
|
|
19
|
+
import { transformSDKFloatToRESTFloat } from "@wix/sdk-runtime/transformations/float";
|
|
20
|
+
import { transformRESTFloatToSDKFloat } from "@wix/sdk-runtime/transformations/float";
|
|
21
|
+
import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
|
22
|
+
import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
|
23
|
+
import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
|
|
24
|
+
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
25
|
+
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
26
|
+
function resolveComWixEcomOrdersV1OrdersUrl(opts) {
|
|
27
|
+
const domainToMappings = {
|
|
28
|
+
_: [
|
|
29
|
+
{
|
|
30
|
+
srcPath: "/_api/ecom-orders",
|
|
31
|
+
destPath: ""
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
srcPath: "/_api/orders",
|
|
35
|
+
destPath: ""
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"manage._base_domain_": [
|
|
39
|
+
{
|
|
40
|
+
srcPath: "/_api/ecom-orders",
|
|
41
|
+
destPath: ""
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"www.wixapis.com": [
|
|
45
|
+
{
|
|
46
|
+
srcPath: "/ecom/v1/bulk/orders",
|
|
47
|
+
destPath: "/v1/bulk/orders"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
srcPath: "/ecom/v1/orders",
|
|
51
|
+
destPath: "/v1/orders"
|
|
52
|
+
}
|
|
53
|
+
]
|
|
54
|
+
};
|
|
55
|
+
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
56
|
+
}
|
|
57
|
+
function resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl(opts) {
|
|
58
|
+
const domainToMappings = {
|
|
59
|
+
"api._api_base_domain_": [
|
|
60
|
+
{
|
|
61
|
+
srcPath: "/payments-collector",
|
|
62
|
+
destPath: ""
|
|
63
|
+
}
|
|
64
|
+
],
|
|
65
|
+
"www.wixapis.com": [
|
|
66
|
+
{
|
|
67
|
+
srcPath: "/ecom/v1/payments-collector",
|
|
68
|
+
destPath: "/v1/payments-collector"
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
"manage._base_domain_": [
|
|
72
|
+
{
|
|
73
|
+
srcPath: "/ecom/v1/payments-collector",
|
|
74
|
+
destPath: "/v1/payments-collector"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
srcPath: "/_api/v1/payments-collector",
|
|
78
|
+
destPath: "/v1/payments-collector"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
srcPath: "/v1/payments-collector",
|
|
82
|
+
destPath: "/v1/payments-collector"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
srcPath: "/_api/payments-collector",
|
|
86
|
+
destPath: "/v1/payments-collector"
|
|
87
|
+
}
|
|
88
|
+
]
|
|
89
|
+
};
|
|
90
|
+
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
91
|
+
}
|
|
92
|
+
var PACKAGE_NAME = "@wix/auto_sdk_ecom_orders";
|
|
93
|
+
function preparePaymentCollection(payload) {
|
|
94
|
+
function __preparePaymentCollection({ host }) {
|
|
95
|
+
const metadata = {
|
|
96
|
+
entityFqdn: "wix.ecom.v1.order",
|
|
97
|
+
method: "POST",
|
|
98
|
+
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.PreparePaymentCollection",
|
|
99
|
+
packageName: PACKAGE_NAME,
|
|
100
|
+
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
101
|
+
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/prepare-payment-collection",
|
|
102
|
+
data: payload,
|
|
103
|
+
host
|
|
104
|
+
}),
|
|
105
|
+
data: payload
|
|
106
|
+
};
|
|
107
|
+
return metadata;
|
|
108
|
+
}
|
|
109
|
+
return __preparePaymentCollection;
|
|
110
|
+
}
|
|
111
|
+
function getPaymentCollectabilityStatus(payload) {
|
|
112
|
+
function __getPaymentCollectabilityStatus({ host }) {
|
|
113
|
+
const metadata = {
|
|
114
|
+
entityFqdn: "wix.ecom.v1.order",
|
|
115
|
+
method: "GET",
|
|
116
|
+
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.GetPaymentCollectabilityStatus",
|
|
117
|
+
packageName: PACKAGE_NAME,
|
|
118
|
+
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
119
|
+
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/payment-collectability-status",
|
|
120
|
+
data: payload,
|
|
121
|
+
host
|
|
122
|
+
}),
|
|
123
|
+
params: toURLSearchParams(payload)
|
|
124
|
+
};
|
|
125
|
+
return metadata;
|
|
126
|
+
}
|
|
127
|
+
return __getPaymentCollectabilityStatus;
|
|
128
|
+
}
|
|
129
|
+
function recordManuallyCollectedPayment(payload) {
|
|
130
|
+
function __recordManuallyCollectedPayment({ host }) {
|
|
131
|
+
const metadata = {
|
|
132
|
+
entityFqdn: "wix.ecom.v1.order",
|
|
133
|
+
method: "POST",
|
|
134
|
+
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.RecordManuallyCollectedPayment",
|
|
135
|
+
packageName: PACKAGE_NAME,
|
|
136
|
+
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
137
|
+
protoPath: "/v1/payments-collector/orders/{orderId}/manual-payment",
|
|
138
|
+
data: payload,
|
|
139
|
+
host
|
|
140
|
+
}),
|
|
141
|
+
data: payload
|
|
142
|
+
};
|
|
143
|
+
return metadata;
|
|
144
|
+
}
|
|
145
|
+
return __recordManuallyCollectedPayment;
|
|
146
|
+
}
|
|
147
|
+
function paymentCollectionMarkOrderAsPaid(payload) {
|
|
148
|
+
function __paymentCollectionMarkOrderAsPaid({ host }) {
|
|
149
|
+
const metadata = {
|
|
150
|
+
entityFqdn: "wix.ecom.v1.order",
|
|
151
|
+
method: "POST",
|
|
152
|
+
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.MarkOrderAsPaid",
|
|
153
|
+
packageName: PACKAGE_NAME,
|
|
154
|
+
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
155
|
+
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/mark-as-paid",
|
|
156
|
+
data: payload,
|
|
157
|
+
host
|
|
158
|
+
}),
|
|
159
|
+
data: payload,
|
|
160
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
161
|
+
{
|
|
162
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
163
|
+
paths: [
|
|
164
|
+
{ path: "order.createdDate" },
|
|
165
|
+
{ path: "order.updatedDate" },
|
|
166
|
+
{ path: "order.purchasedDate" },
|
|
167
|
+
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
168
|
+
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
169
|
+
{
|
|
170
|
+
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
171
|
+
},
|
|
172
|
+
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
173
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
174
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
175
|
+
{ path: "order.activities.createdDate" }
|
|
176
|
+
]
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
180
|
+
paths: [
|
|
181
|
+
{ path: "order.lineItems.image.focalPoint.x" },
|
|
182
|
+
{ path: "order.lineItems.image.focalPoint.y" },
|
|
183
|
+
{ path: "order.lineItems.physicalProperties.weight" },
|
|
184
|
+
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
185
|
+
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
186
|
+
{
|
|
187
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
197
|
+
},
|
|
198
|
+
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
199
|
+
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
200
|
+
]
|
|
201
|
+
}
|
|
202
|
+
])
|
|
203
|
+
};
|
|
204
|
+
return metadata;
|
|
205
|
+
}
|
|
206
|
+
return __paymentCollectionMarkOrderAsPaid;
|
|
207
|
+
}
|
|
208
|
+
function paymentCollectionBulkMarkOrdersAsPaid(payload) {
|
|
209
|
+
function __paymentCollectionBulkMarkOrdersAsPaid({ host }) {
|
|
210
|
+
const metadata = {
|
|
211
|
+
entityFqdn: "wix.ecom.v1.order",
|
|
212
|
+
method: "POST",
|
|
213
|
+
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.BulkMarkOrdersAsPaid",
|
|
214
|
+
packageName: PACKAGE_NAME,
|
|
215
|
+
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
216
|
+
protoPath: "/v1/bulk/payments-collector/mark-as-paid",
|
|
217
|
+
data: payload,
|
|
218
|
+
host
|
|
219
|
+
}),
|
|
220
|
+
data: payload,
|
|
221
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
222
|
+
{
|
|
223
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
224
|
+
paths: [
|
|
225
|
+
{ path: "results.item.createdDate" },
|
|
226
|
+
{ path: "results.item.updatedDate" },
|
|
227
|
+
{ path: "results.item.purchasedDate" },
|
|
228
|
+
{ path: "results.item.lineItems.image.urlExpirationDate" },
|
|
229
|
+
{ path: "results.item.lineItems.digitalFile.expirationDate" },
|
|
230
|
+
{
|
|
231
|
+
path: "results.item.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
232
|
+
},
|
|
233
|
+
{ path: "results.item.shippingInfo.logistics.deliverByDate" },
|
|
234
|
+
{
|
|
235
|
+
path: "results.item.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
path: "results.item.shippingInfo.logistics.deliveryTimeSlot.to"
|
|
239
|
+
},
|
|
240
|
+
{ path: "results.item.activities.createdDate" }
|
|
241
|
+
]
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
245
|
+
paths: [
|
|
246
|
+
{ path: "results.item.lineItems.image.focalPoint.x" },
|
|
247
|
+
{ path: "results.item.lineItems.image.focalPoint.y" },
|
|
248
|
+
{ path: "results.item.lineItems.physicalProperties.weight" },
|
|
249
|
+
{ path: "results.item.billingInfo.address.geocode.latitude" },
|
|
250
|
+
{ path: "results.item.billingInfo.address.geocode.longitude" },
|
|
251
|
+
{
|
|
252
|
+
path: "results.item.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
path: "results.item.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
path: "results.item.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
path: "results.item.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
262
|
+
},
|
|
263
|
+
{ path: "results.item.recipientInfo.address.geocode.latitude" },
|
|
264
|
+
{ path: "results.item.recipientInfo.address.geocode.longitude" }
|
|
265
|
+
]
|
|
266
|
+
}
|
|
267
|
+
])
|
|
268
|
+
};
|
|
269
|
+
return metadata;
|
|
270
|
+
}
|
|
271
|
+
return __paymentCollectionBulkMarkOrdersAsPaid;
|
|
272
|
+
}
|
|
273
|
+
function getRefundabilityStatus(payload) {
|
|
274
|
+
function __getRefundabilityStatus({ host }) {
|
|
275
|
+
const metadata = {
|
|
276
|
+
entityFqdn: "wix.ecom.v1.order",
|
|
277
|
+
method: "GET",
|
|
278
|
+
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.GetRefundabilityStatus",
|
|
279
|
+
packageName: PACKAGE_NAME,
|
|
280
|
+
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
281
|
+
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/refundability",
|
|
282
|
+
data: payload,
|
|
283
|
+
host
|
|
284
|
+
}),
|
|
285
|
+
params: toURLSearchParams(payload)
|
|
286
|
+
};
|
|
287
|
+
return metadata;
|
|
288
|
+
}
|
|
289
|
+
return __getRefundabilityStatus;
|
|
290
|
+
}
|
|
291
|
+
function paymentCollectionCreatePaymentGatewayOrder(payload) {
|
|
292
|
+
function __paymentCollectionCreatePaymentGatewayOrder({ host }) {
|
|
293
|
+
const metadata = {
|
|
294
|
+
entityFqdn: "wix.ecom.v1.order",
|
|
295
|
+
method: "POST",
|
|
296
|
+
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.CreatePaymentGatewayOrder",
|
|
297
|
+
packageName: PACKAGE_NAME,
|
|
298
|
+
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
299
|
+
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/create-payment-gateway-order",
|
|
300
|
+
data: payload,
|
|
301
|
+
host
|
|
302
|
+
}),
|
|
303
|
+
data: payload
|
|
304
|
+
};
|
|
305
|
+
return metadata;
|
|
306
|
+
}
|
|
307
|
+
return __paymentCollectionCreatePaymentGatewayOrder;
|
|
308
|
+
}
|
|
309
|
+
function chargeMemberships(payload) {
|
|
310
|
+
function __chargeMemberships({ host }) {
|
|
311
|
+
const serializedData = transformPaths(payload, [
|
|
312
|
+
{
|
|
313
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
314
|
+
paths: [{ path: "membershipCharges.serviceProperties.scheduledDate" }]
|
|
315
|
+
}
|
|
316
|
+
]);
|
|
317
|
+
const metadata = {
|
|
318
|
+
entityFqdn: "wix.ecom.v1.order",
|
|
319
|
+
method: "POST",
|
|
320
|
+
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.ChargeMemberships",
|
|
321
|
+
packageName: PACKAGE_NAME,
|
|
322
|
+
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
323
|
+
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/charge-membership",
|
|
324
|
+
data: serializedData,
|
|
325
|
+
host
|
|
326
|
+
}),
|
|
327
|
+
data: serializedData
|
|
328
|
+
};
|
|
329
|
+
return metadata;
|
|
330
|
+
}
|
|
331
|
+
return __chargeMemberships;
|
|
332
|
+
}
|
|
333
|
+
function triggerRefund(payload) {
|
|
334
|
+
function __triggerRefund({ host }) {
|
|
335
|
+
const metadata = {
|
|
336
|
+
entityFqdn: "wix.ecom.v1.order",
|
|
337
|
+
method: "POST",
|
|
338
|
+
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.TriggerRefund",
|
|
339
|
+
packageName: PACKAGE_NAME,
|
|
340
|
+
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
341
|
+
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/trigger-refund",
|
|
342
|
+
data: payload,
|
|
343
|
+
host
|
|
344
|
+
}),
|
|
345
|
+
data: payload,
|
|
346
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
347
|
+
{
|
|
348
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
349
|
+
paths: [
|
|
350
|
+
{ path: "orderTransactions.payments.createdDate" },
|
|
351
|
+
{ path: "orderTransactions.payments.updatedDate" },
|
|
352
|
+
{
|
|
353
|
+
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
363
|
+
},
|
|
364
|
+
{ path: "orderTransactions.refunds.createdDate" }
|
|
365
|
+
]
|
|
366
|
+
}
|
|
367
|
+
])
|
|
368
|
+
};
|
|
369
|
+
return metadata;
|
|
370
|
+
}
|
|
371
|
+
return __triggerRefund;
|
|
372
|
+
}
|
|
373
|
+
function voidAuthorizedPayments(payload) {
|
|
374
|
+
function __voidAuthorizedPayments({ host }) {
|
|
375
|
+
const metadata = {
|
|
376
|
+
entityFqdn: "wix.ecom.v1.order",
|
|
377
|
+
method: "POST",
|
|
378
|
+
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.VoidAuthorizedPayments",
|
|
379
|
+
packageName: PACKAGE_NAME,
|
|
380
|
+
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
381
|
+
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/void-authorized-payments",
|
|
382
|
+
data: payload,
|
|
383
|
+
host
|
|
384
|
+
}),
|
|
385
|
+
data: payload,
|
|
386
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
387
|
+
{
|
|
388
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
389
|
+
paths: [
|
|
390
|
+
{ path: "orderTransactions.payments.createdDate" },
|
|
391
|
+
{ path: "orderTransactions.payments.updatedDate" },
|
|
392
|
+
{
|
|
393
|
+
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
403
|
+
},
|
|
404
|
+
{ path: "orderTransactions.refunds.createdDate" }
|
|
405
|
+
]
|
|
406
|
+
}
|
|
407
|
+
])
|
|
408
|
+
};
|
|
409
|
+
return metadata;
|
|
410
|
+
}
|
|
411
|
+
return __voidAuthorizedPayments;
|
|
412
|
+
}
|
|
413
|
+
function captureAuthorizedPayments(payload) {
|
|
414
|
+
function __captureAuthorizedPayments({ host }) {
|
|
415
|
+
const metadata = {
|
|
416
|
+
entityFqdn: "wix.ecom.v1.order",
|
|
417
|
+
method: "POST",
|
|
418
|
+
methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.CaptureAuthorizedPayments",
|
|
419
|
+
packageName: PACKAGE_NAME,
|
|
420
|
+
url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
|
|
421
|
+
protoPath: "/v1/payments-collector/orders/{ecomOrderId}/capture-authorized-payments",
|
|
422
|
+
data: payload,
|
|
423
|
+
host
|
|
424
|
+
}),
|
|
425
|
+
data: payload,
|
|
426
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
427
|
+
{
|
|
428
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
429
|
+
paths: [
|
|
430
|
+
{ path: "orderTransactions.payments.createdDate" },
|
|
431
|
+
{ path: "orderTransactions.payments.updatedDate" },
|
|
432
|
+
{
|
|
433
|
+
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
443
|
+
},
|
|
444
|
+
{ path: "orderTransactions.refunds.createdDate" }
|
|
445
|
+
]
|
|
446
|
+
}
|
|
447
|
+
])
|
|
448
|
+
};
|
|
449
|
+
return metadata;
|
|
450
|
+
}
|
|
451
|
+
return __captureAuthorizedPayments;
|
|
452
|
+
}
|
|
453
|
+
function getOrder(payload) {
|
|
454
|
+
function __getOrder({ host }) {
|
|
455
|
+
const metadata = {
|
|
456
|
+
entityFqdn: "wix.ecom.v1.order",
|
|
457
|
+
method: "GET",
|
|
458
|
+
methodFqn: "com.wix.ecom.orders.v1.Orders.GetOrder",
|
|
459
|
+
packageName: PACKAGE_NAME,
|
|
460
|
+
url: resolveComWixEcomOrdersV1OrdersUrl({
|
|
461
|
+
protoPath: "/v1/orders/{id}",
|
|
462
|
+
data: payload,
|
|
463
|
+
host
|
|
464
|
+
}),
|
|
465
|
+
params: toURLSearchParams(payload),
|
|
466
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
467
|
+
{
|
|
468
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
469
|
+
paths: [
|
|
470
|
+
{ path: "order.createdDate" },
|
|
471
|
+
{ path: "order.updatedDate" },
|
|
472
|
+
{ path: "order.purchasedDate" },
|
|
473
|
+
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
474
|
+
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
475
|
+
{
|
|
476
|
+
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
477
|
+
},
|
|
478
|
+
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
479
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
480
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
481
|
+
{ path: "order.activities.createdDate" }
|
|
482
|
+
]
|
|
483
|
+
},
|
|
484
|
+
{
|
|
485
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
486
|
+
paths: [
|
|
487
|
+
{ path: "order.lineItems.image.focalPoint.x" },
|
|
488
|
+
{ path: "order.lineItems.image.focalPoint.y" },
|
|
489
|
+
{ path: "order.lineItems.physicalProperties.weight" },
|
|
490
|
+
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
491
|
+
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
492
|
+
{
|
|
493
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
497
|
+
},
|
|
498
|
+
{
|
|
499
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
503
|
+
},
|
|
504
|
+
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
505
|
+
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
506
|
+
]
|
|
507
|
+
}
|
|
508
|
+
])
|
|
509
|
+
};
|
|
510
|
+
return metadata;
|
|
511
|
+
}
|
|
512
|
+
return __getOrder;
|
|
513
|
+
}
|
|
514
|
+
function searchOrders(payload) {
|
|
515
|
+
function __searchOrders({ host }) {
|
|
516
|
+
const metadata = {
|
|
517
|
+
entityFqdn: "wix.ecom.v1.order",
|
|
518
|
+
method: "POST",
|
|
519
|
+
methodFqn: "com.wix.ecom.orders.v1.Orders.SearchOrders",
|
|
520
|
+
packageName: PACKAGE_NAME,
|
|
521
|
+
url: resolveComWixEcomOrdersV1OrdersUrl({
|
|
522
|
+
protoPath: "/v1/orders/search",
|
|
523
|
+
data: payload,
|
|
524
|
+
host
|
|
525
|
+
}),
|
|
526
|
+
data: payload,
|
|
527
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
528
|
+
{
|
|
529
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
530
|
+
paths: [
|
|
531
|
+
{ path: "orders.createdDate" },
|
|
532
|
+
{ path: "orders.updatedDate" },
|
|
533
|
+
{ path: "orders.purchasedDate" },
|
|
534
|
+
{ path: "orders.lineItems.image.urlExpirationDate" },
|
|
535
|
+
{ path: "orders.lineItems.digitalFile.expirationDate" },
|
|
536
|
+
{
|
|
537
|
+
path: "orders.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
538
|
+
},
|
|
539
|
+
{ path: "orders.shippingInfo.logistics.deliverByDate" },
|
|
540
|
+
{ path: "orders.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
541
|
+
{ path: "orders.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
542
|
+
{ path: "orders.activities.createdDate" }
|
|
543
|
+
]
|
|
544
|
+
},
|
|
545
|
+
{
|
|
546
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
547
|
+
paths: [
|
|
548
|
+
{ path: "orders.lineItems.image.focalPoint.x" },
|
|
549
|
+
{ path: "orders.lineItems.image.focalPoint.y" },
|
|
550
|
+
{ path: "orders.lineItems.physicalProperties.weight" },
|
|
551
|
+
{ path: "orders.billingInfo.address.geocode.latitude" },
|
|
552
|
+
{ path: "orders.billingInfo.address.geocode.longitude" },
|
|
553
|
+
{
|
|
554
|
+
path: "orders.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
555
|
+
},
|
|
556
|
+
{
|
|
557
|
+
path: "orders.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
path: "orders.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
561
|
+
},
|
|
562
|
+
{
|
|
563
|
+
path: "orders.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
564
|
+
},
|
|
565
|
+
{ path: "orders.recipientInfo.address.geocode.latitude" },
|
|
566
|
+
{ path: "orders.recipientInfo.address.geocode.longitude" }
|
|
567
|
+
]
|
|
568
|
+
}
|
|
569
|
+
])
|
|
570
|
+
};
|
|
571
|
+
return metadata;
|
|
572
|
+
}
|
|
573
|
+
return __searchOrders;
|
|
574
|
+
}
|
|
575
|
+
function createOrder(payload) {
|
|
576
|
+
function __createOrder({ host }) {
|
|
577
|
+
const serializedData = transformPaths(payload, [
|
|
578
|
+
{
|
|
579
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
580
|
+
paths: [
|
|
581
|
+
{ path: "order.createdDate" },
|
|
582
|
+
{ path: "order.updatedDate" },
|
|
583
|
+
{ path: "order.purchasedDate" },
|
|
584
|
+
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
585
|
+
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
586
|
+
{
|
|
587
|
+
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
588
|
+
},
|
|
589
|
+
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
590
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
591
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
592
|
+
{ path: "order.activities.createdDate" }
|
|
593
|
+
]
|
|
594
|
+
},
|
|
595
|
+
{
|
|
596
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
597
|
+
paths: [
|
|
598
|
+
{ path: "order.lineItems.image.focalPoint.x" },
|
|
599
|
+
{ path: "order.lineItems.image.focalPoint.y" },
|
|
600
|
+
{ path: "order.lineItems.physicalProperties.weight" },
|
|
601
|
+
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
602
|
+
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
603
|
+
{
|
|
604
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
605
|
+
},
|
|
606
|
+
{
|
|
607
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
608
|
+
},
|
|
609
|
+
{
|
|
610
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
614
|
+
},
|
|
615
|
+
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
616
|
+
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
617
|
+
]
|
|
618
|
+
}
|
|
619
|
+
]);
|
|
620
|
+
const metadata = {
|
|
621
|
+
entityFqdn: "wix.ecom.v1.order",
|
|
622
|
+
method: "POST",
|
|
623
|
+
methodFqn: "com.wix.ecom.orders.v1.Orders.CreateOrder",
|
|
624
|
+
packageName: PACKAGE_NAME,
|
|
625
|
+
url: resolveComWixEcomOrdersV1OrdersUrl({
|
|
626
|
+
protoPath: "/v1/orders",
|
|
627
|
+
data: serializedData,
|
|
628
|
+
host
|
|
629
|
+
}),
|
|
630
|
+
data: serializedData,
|
|
631
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
632
|
+
{
|
|
633
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
634
|
+
paths: [
|
|
635
|
+
{ path: "order.createdDate" },
|
|
636
|
+
{ path: "order.updatedDate" },
|
|
637
|
+
{ path: "order.purchasedDate" },
|
|
638
|
+
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
639
|
+
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
640
|
+
{
|
|
641
|
+
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
642
|
+
},
|
|
643
|
+
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
644
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
645
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
646
|
+
{ path: "order.activities.createdDate" }
|
|
647
|
+
]
|
|
648
|
+
},
|
|
649
|
+
{
|
|
650
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
651
|
+
paths: [
|
|
652
|
+
{ path: "order.lineItems.image.focalPoint.x" },
|
|
653
|
+
{ path: "order.lineItems.image.focalPoint.y" },
|
|
654
|
+
{ path: "order.lineItems.physicalProperties.weight" },
|
|
655
|
+
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
656
|
+
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
657
|
+
{
|
|
658
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
659
|
+
},
|
|
660
|
+
{
|
|
661
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
662
|
+
},
|
|
663
|
+
{
|
|
664
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
665
|
+
},
|
|
666
|
+
{
|
|
667
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
668
|
+
},
|
|
669
|
+
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
670
|
+
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
671
|
+
]
|
|
672
|
+
}
|
|
673
|
+
])
|
|
674
|
+
};
|
|
675
|
+
return metadata;
|
|
676
|
+
}
|
|
677
|
+
return __createOrder;
|
|
678
|
+
}
|
|
679
|
+
function updateOrder(payload) {
|
|
680
|
+
function __updateOrder({ host }) {
|
|
681
|
+
const serializedData = transformPaths(payload, [
|
|
682
|
+
{
|
|
683
|
+
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
684
|
+
paths: [{ path: "fieldMask" }]
|
|
685
|
+
},
|
|
686
|
+
{
|
|
687
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
688
|
+
paths: [
|
|
689
|
+
{ path: "order.createdDate" },
|
|
690
|
+
{ path: "order.updatedDate" },
|
|
691
|
+
{ path: "order.purchasedDate" },
|
|
692
|
+
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
693
|
+
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
694
|
+
{
|
|
695
|
+
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
696
|
+
},
|
|
697
|
+
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
698
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
699
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
700
|
+
{ path: "order.activities.createdDate" }
|
|
701
|
+
]
|
|
702
|
+
},
|
|
703
|
+
{
|
|
704
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
705
|
+
paths: [
|
|
706
|
+
{ path: "order.lineItems.image.focalPoint.x" },
|
|
707
|
+
{ path: "order.lineItems.image.focalPoint.y" },
|
|
708
|
+
{ path: "order.lineItems.physicalProperties.weight" },
|
|
709
|
+
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
710
|
+
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
711
|
+
{
|
|
712
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
713
|
+
},
|
|
714
|
+
{
|
|
715
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
716
|
+
},
|
|
717
|
+
{
|
|
718
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
719
|
+
},
|
|
720
|
+
{
|
|
721
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
722
|
+
},
|
|
723
|
+
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
724
|
+
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
725
|
+
]
|
|
726
|
+
}
|
|
727
|
+
]);
|
|
728
|
+
const metadata = {
|
|
729
|
+
entityFqdn: "wix.ecom.v1.order",
|
|
730
|
+
method: "PATCH",
|
|
731
|
+
methodFqn: "com.wix.ecom.orders.v1.Orders.UpdateOrder",
|
|
732
|
+
packageName: PACKAGE_NAME,
|
|
733
|
+
url: resolveComWixEcomOrdersV1OrdersUrl({
|
|
734
|
+
protoPath: "/v1/orders/{order.id}",
|
|
735
|
+
data: serializedData,
|
|
736
|
+
host
|
|
737
|
+
}),
|
|
738
|
+
data: serializedData,
|
|
739
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
740
|
+
{
|
|
741
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
742
|
+
paths: [
|
|
743
|
+
{ path: "order.createdDate" },
|
|
744
|
+
{ path: "order.updatedDate" },
|
|
745
|
+
{ path: "order.purchasedDate" },
|
|
746
|
+
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
747
|
+
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
748
|
+
{
|
|
749
|
+
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
750
|
+
},
|
|
751
|
+
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
752
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
753
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
754
|
+
{ path: "order.activities.createdDate" }
|
|
755
|
+
]
|
|
756
|
+
},
|
|
757
|
+
{
|
|
758
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
759
|
+
paths: [
|
|
760
|
+
{ path: "order.lineItems.image.focalPoint.x" },
|
|
761
|
+
{ path: "order.lineItems.image.focalPoint.y" },
|
|
762
|
+
{ path: "order.lineItems.physicalProperties.weight" },
|
|
763
|
+
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
764
|
+
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
765
|
+
{
|
|
766
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
767
|
+
},
|
|
768
|
+
{
|
|
769
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
770
|
+
},
|
|
771
|
+
{
|
|
772
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
773
|
+
},
|
|
774
|
+
{
|
|
775
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
776
|
+
},
|
|
777
|
+
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
778
|
+
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
779
|
+
]
|
|
780
|
+
}
|
|
781
|
+
])
|
|
782
|
+
};
|
|
783
|
+
return metadata;
|
|
784
|
+
}
|
|
785
|
+
return __updateOrder;
|
|
786
|
+
}
|
|
787
|
+
function bulkUpdateOrders(payload) {
|
|
788
|
+
function __bulkUpdateOrders({ host }) {
|
|
789
|
+
const serializedData = transformPaths(payload, [
|
|
790
|
+
{
|
|
791
|
+
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
792
|
+
paths: [{ path: "orders.fieldMask" }]
|
|
793
|
+
},
|
|
794
|
+
{
|
|
795
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
796
|
+
paths: [
|
|
797
|
+
{ path: "orders.order.createdDate" },
|
|
798
|
+
{ path: "orders.order.updatedDate" },
|
|
799
|
+
{ path: "orders.order.purchasedDate" },
|
|
800
|
+
{ path: "orders.order.lineItems.image.urlExpirationDate" },
|
|
801
|
+
{ path: "orders.order.lineItems.digitalFile.expirationDate" },
|
|
802
|
+
{
|
|
803
|
+
path: "orders.order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
804
|
+
},
|
|
805
|
+
{ path: "orders.order.shippingInfo.logistics.deliverByDate" },
|
|
806
|
+
{ path: "orders.order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
807
|
+
{ path: "orders.order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
808
|
+
{ path: "orders.order.activities.createdDate" }
|
|
809
|
+
]
|
|
810
|
+
},
|
|
811
|
+
{
|
|
812
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
813
|
+
paths: [
|
|
814
|
+
{ path: "orders.order.lineItems.image.focalPoint.x" },
|
|
815
|
+
{ path: "orders.order.lineItems.image.focalPoint.y" },
|
|
816
|
+
{ path: "orders.order.lineItems.physicalProperties.weight" },
|
|
817
|
+
{ path: "orders.order.billingInfo.address.geocode.latitude" },
|
|
818
|
+
{ path: "orders.order.billingInfo.address.geocode.longitude" },
|
|
819
|
+
{
|
|
820
|
+
path: "orders.order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
821
|
+
},
|
|
822
|
+
{
|
|
823
|
+
path: "orders.order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
824
|
+
},
|
|
825
|
+
{
|
|
826
|
+
path: "orders.order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
827
|
+
},
|
|
828
|
+
{
|
|
829
|
+
path: "orders.order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
830
|
+
},
|
|
831
|
+
{ path: "orders.order.recipientInfo.address.geocode.latitude" },
|
|
832
|
+
{ path: "orders.order.recipientInfo.address.geocode.longitude" }
|
|
833
|
+
]
|
|
834
|
+
}
|
|
835
|
+
]);
|
|
836
|
+
const metadata = {
|
|
837
|
+
entityFqdn: "wix.ecom.v1.order",
|
|
838
|
+
method: "POST",
|
|
839
|
+
methodFqn: "com.wix.ecom.orders.v1.Orders.BulkUpdateOrders",
|
|
840
|
+
packageName: PACKAGE_NAME,
|
|
841
|
+
url: resolveComWixEcomOrdersV1OrdersUrl({
|
|
842
|
+
protoPath: "/v1/bulk/orders/update",
|
|
843
|
+
data: serializedData,
|
|
844
|
+
host
|
|
845
|
+
}),
|
|
846
|
+
data: serializedData,
|
|
847
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
848
|
+
{
|
|
849
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
850
|
+
paths: [
|
|
851
|
+
{ path: "results.item.createdDate" },
|
|
852
|
+
{ path: "results.item.updatedDate" },
|
|
853
|
+
{ path: "results.item.purchasedDate" },
|
|
854
|
+
{ path: "results.item.lineItems.image.urlExpirationDate" },
|
|
855
|
+
{ path: "results.item.lineItems.digitalFile.expirationDate" },
|
|
856
|
+
{
|
|
857
|
+
path: "results.item.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
858
|
+
},
|
|
859
|
+
{ path: "results.item.shippingInfo.logistics.deliverByDate" },
|
|
860
|
+
{
|
|
861
|
+
path: "results.item.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
862
|
+
},
|
|
863
|
+
{
|
|
864
|
+
path: "results.item.shippingInfo.logistics.deliveryTimeSlot.to"
|
|
865
|
+
},
|
|
866
|
+
{ path: "results.item.activities.createdDate" }
|
|
867
|
+
]
|
|
868
|
+
},
|
|
869
|
+
{
|
|
870
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
871
|
+
paths: [
|
|
872
|
+
{ path: "results.item.lineItems.image.focalPoint.x" },
|
|
873
|
+
{ path: "results.item.lineItems.image.focalPoint.y" },
|
|
874
|
+
{ path: "results.item.lineItems.physicalProperties.weight" },
|
|
875
|
+
{ path: "results.item.billingInfo.address.geocode.latitude" },
|
|
876
|
+
{ path: "results.item.billingInfo.address.geocode.longitude" },
|
|
877
|
+
{
|
|
878
|
+
path: "results.item.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
879
|
+
},
|
|
880
|
+
{
|
|
881
|
+
path: "results.item.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
882
|
+
},
|
|
883
|
+
{
|
|
884
|
+
path: "results.item.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
885
|
+
},
|
|
886
|
+
{
|
|
887
|
+
path: "results.item.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
888
|
+
},
|
|
889
|
+
{ path: "results.item.recipientInfo.address.geocode.latitude" },
|
|
890
|
+
{ path: "results.item.recipientInfo.address.geocode.longitude" }
|
|
891
|
+
]
|
|
892
|
+
}
|
|
893
|
+
])
|
|
894
|
+
};
|
|
895
|
+
return metadata;
|
|
896
|
+
}
|
|
897
|
+
return __bulkUpdateOrders;
|
|
898
|
+
}
|
|
899
|
+
function commitDeltas(payload) {
|
|
900
|
+
function __commitDeltas({ host }) {
|
|
901
|
+
const serializedData = transformPaths(payload, [
|
|
902
|
+
{
|
|
903
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
904
|
+
paths: [
|
|
905
|
+
{ path: "changes.changedShippingInfo.logistics.deliverByDate" },
|
|
906
|
+
{
|
|
907
|
+
path: "changes.changedShippingInfo.logistics.deliveryTimeSlot.from"
|
|
908
|
+
},
|
|
909
|
+
{ path: "changes.changedShippingInfo.logistics.deliveryTimeSlot.to" },
|
|
910
|
+
{ path: "changes.lineItems.lineItem.image.urlExpirationDate" },
|
|
911
|
+
{ path: "changes.lineItems.lineItem.digitalFile.expirationDate" },
|
|
912
|
+
{
|
|
913
|
+
path: "changes.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
|
|
914
|
+
}
|
|
915
|
+
]
|
|
916
|
+
},
|
|
917
|
+
{
|
|
918
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
919
|
+
paths: [
|
|
920
|
+
{
|
|
921
|
+
path: "changes.changedShippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
922
|
+
},
|
|
923
|
+
{
|
|
924
|
+
path: "changes.changedShippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
925
|
+
},
|
|
926
|
+
{
|
|
927
|
+
path: "changes.changedShippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
928
|
+
},
|
|
929
|
+
{
|
|
930
|
+
path: "changes.changedShippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
931
|
+
},
|
|
932
|
+
{ path: "changes.changedBillingInfo.address.geocode.latitude" },
|
|
933
|
+
{ path: "changes.changedBillingInfo.address.geocode.longitude" },
|
|
934
|
+
{ path: "changes.changedRecipientInfo.address.geocode.latitude" },
|
|
935
|
+
{ path: "changes.changedRecipientInfo.address.geocode.longitude" },
|
|
936
|
+
{ path: "changes.lineItems.lineItem.physicalProperties.weight" },
|
|
937
|
+
{ path: "changes.lineItems.lineItem.image.focalPoint.x" },
|
|
938
|
+
{ path: "changes.lineItems.lineItem.image.focalPoint.y" }
|
|
939
|
+
]
|
|
940
|
+
}
|
|
941
|
+
]);
|
|
942
|
+
const metadata = {
|
|
943
|
+
entityFqdn: "wix.ecom.v1.order",
|
|
944
|
+
method: "POST",
|
|
945
|
+
methodFqn: "com.wix.ecom.orders.v1.Orders.CommitDeltas",
|
|
946
|
+
packageName: PACKAGE_NAME,
|
|
947
|
+
url: resolveComWixEcomOrdersV1OrdersUrl({
|
|
948
|
+
protoPath: "/v1/orders/{id}/commit-deltas",
|
|
949
|
+
data: serializedData,
|
|
950
|
+
host
|
|
951
|
+
}),
|
|
952
|
+
data: serializedData,
|
|
953
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
954
|
+
{
|
|
955
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
956
|
+
paths: [
|
|
957
|
+
{ path: "order.createdDate" },
|
|
958
|
+
{ path: "order.updatedDate" },
|
|
959
|
+
{ path: "order.purchasedDate" },
|
|
960
|
+
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
961
|
+
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
962
|
+
{
|
|
963
|
+
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
964
|
+
},
|
|
965
|
+
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
966
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
967
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
968
|
+
{ path: "order.activities.createdDate" }
|
|
969
|
+
]
|
|
970
|
+
},
|
|
971
|
+
{
|
|
972
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
973
|
+
paths: [
|
|
974
|
+
{ path: "order.lineItems.image.focalPoint.x" },
|
|
975
|
+
{ path: "order.lineItems.image.focalPoint.y" },
|
|
976
|
+
{ path: "order.lineItems.physicalProperties.weight" },
|
|
977
|
+
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
978
|
+
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
979
|
+
{
|
|
980
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
981
|
+
},
|
|
982
|
+
{
|
|
983
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
984
|
+
},
|
|
985
|
+
{
|
|
986
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
987
|
+
},
|
|
988
|
+
{
|
|
989
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
990
|
+
},
|
|
991
|
+
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
992
|
+
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
993
|
+
]
|
|
994
|
+
}
|
|
995
|
+
])
|
|
996
|
+
};
|
|
997
|
+
return metadata;
|
|
998
|
+
}
|
|
999
|
+
return __commitDeltas;
|
|
1000
|
+
}
|
|
1001
|
+
function updateOrderLineItem(payload) {
|
|
1002
|
+
function __updateOrderLineItem({ host }) {
|
|
1003
|
+
const serializedData = transformPaths(payload, [
|
|
1004
|
+
{
|
|
1005
|
+
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
1006
|
+
paths: [{ path: "fieldMask" }]
|
|
1007
|
+
},
|
|
1008
|
+
{
|
|
1009
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
1010
|
+
paths: [
|
|
1011
|
+
{ path: "lineItem.image.urlExpirationDate" },
|
|
1012
|
+
{ path: "lineItem.digitalFile.expirationDate" },
|
|
1013
|
+
{ path: "lineItem.subscriptionInfo.subscriptionSettings.startDate" }
|
|
1014
|
+
]
|
|
1015
|
+
},
|
|
1016
|
+
{
|
|
1017
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
1018
|
+
paths: [
|
|
1019
|
+
{ path: "lineItem.image.focalPoint.x" },
|
|
1020
|
+
{ path: "lineItem.image.focalPoint.y" },
|
|
1021
|
+
{ path: "lineItem.physicalProperties.weight" }
|
|
1022
|
+
]
|
|
1023
|
+
}
|
|
1024
|
+
]);
|
|
1025
|
+
const metadata = {
|
|
1026
|
+
entityFqdn: "wix.ecom.v1.order",
|
|
1027
|
+
method: "PATCH",
|
|
1028
|
+
methodFqn: "com.wix.ecom.orders.v1.Orders.UpdateOrderLineItem",
|
|
1029
|
+
packageName: PACKAGE_NAME,
|
|
1030
|
+
url: resolveComWixEcomOrdersV1OrdersUrl({
|
|
1031
|
+
protoPath: "/v1/orders/{id}/line-item/{lineItem.id}",
|
|
1032
|
+
data: serializedData,
|
|
1033
|
+
host
|
|
1034
|
+
}),
|
|
1035
|
+
data: serializedData,
|
|
1036
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1037
|
+
{
|
|
1038
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1039
|
+
paths: [
|
|
1040
|
+
{ path: "order.createdDate" },
|
|
1041
|
+
{ path: "order.updatedDate" },
|
|
1042
|
+
{ path: "order.purchasedDate" },
|
|
1043
|
+
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
1044
|
+
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
1045
|
+
{
|
|
1046
|
+
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
1047
|
+
},
|
|
1048
|
+
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
1049
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
1050
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
1051
|
+
{ path: "order.activities.createdDate" }
|
|
1052
|
+
]
|
|
1053
|
+
},
|
|
1054
|
+
{
|
|
1055
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
1056
|
+
paths: [
|
|
1057
|
+
{ path: "order.lineItems.image.focalPoint.x" },
|
|
1058
|
+
{ path: "order.lineItems.image.focalPoint.y" },
|
|
1059
|
+
{ path: "order.lineItems.physicalProperties.weight" },
|
|
1060
|
+
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
1061
|
+
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
1062
|
+
{
|
|
1063
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
1064
|
+
},
|
|
1065
|
+
{
|
|
1066
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
1067
|
+
},
|
|
1068
|
+
{
|
|
1069
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
1070
|
+
},
|
|
1071
|
+
{
|
|
1072
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
1073
|
+
},
|
|
1074
|
+
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
1075
|
+
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
1076
|
+
]
|
|
1077
|
+
}
|
|
1078
|
+
])
|
|
1079
|
+
};
|
|
1080
|
+
return metadata;
|
|
1081
|
+
}
|
|
1082
|
+
return __updateOrderLineItem;
|
|
1083
|
+
}
|
|
1084
|
+
function addActivity(payload) {
|
|
1085
|
+
function __addActivity({ host }) {
|
|
1086
|
+
const metadata = {
|
|
1087
|
+
entityFqdn: "wix.ecom.v1.order",
|
|
1088
|
+
method: "POST",
|
|
1089
|
+
methodFqn: "com.wix.ecom.orders.v1.Orders.AddActivity",
|
|
1090
|
+
packageName: PACKAGE_NAME,
|
|
1091
|
+
url: resolveComWixEcomOrdersV1OrdersUrl({
|
|
1092
|
+
protoPath: "/v1/orders/{id}/activities",
|
|
1093
|
+
data: payload,
|
|
1094
|
+
host
|
|
1095
|
+
}),
|
|
1096
|
+
data: payload,
|
|
1097
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1098
|
+
{
|
|
1099
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1100
|
+
paths: [
|
|
1101
|
+
{ path: "order.createdDate" },
|
|
1102
|
+
{ path: "order.updatedDate" },
|
|
1103
|
+
{ path: "order.purchasedDate" },
|
|
1104
|
+
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
1105
|
+
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
1106
|
+
{
|
|
1107
|
+
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
1108
|
+
},
|
|
1109
|
+
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
1110
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
1111
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
1112
|
+
{ path: "order.activities.createdDate" }
|
|
1113
|
+
]
|
|
1114
|
+
},
|
|
1115
|
+
{
|
|
1116
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
1117
|
+
paths: [
|
|
1118
|
+
{ path: "order.lineItems.image.focalPoint.x" },
|
|
1119
|
+
{ path: "order.lineItems.image.focalPoint.y" },
|
|
1120
|
+
{ path: "order.lineItems.physicalProperties.weight" },
|
|
1121
|
+
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
1122
|
+
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
1123
|
+
{
|
|
1124
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
1125
|
+
},
|
|
1126
|
+
{
|
|
1127
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
1128
|
+
},
|
|
1129
|
+
{
|
|
1130
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
1131
|
+
},
|
|
1132
|
+
{
|
|
1133
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
1134
|
+
},
|
|
1135
|
+
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
1136
|
+
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
1137
|
+
]
|
|
1138
|
+
}
|
|
1139
|
+
])
|
|
1140
|
+
};
|
|
1141
|
+
return metadata;
|
|
1142
|
+
}
|
|
1143
|
+
return __addActivity;
|
|
1144
|
+
}
|
|
1145
|
+
function updateActivity(payload) {
|
|
1146
|
+
function __updateActivity({ host }) {
|
|
1147
|
+
const metadata = {
|
|
1148
|
+
entityFqdn: "wix.ecom.v1.order",
|
|
1149
|
+
method: "PATCH",
|
|
1150
|
+
methodFqn: "com.wix.ecom.orders.v1.Orders.UpdateActivity",
|
|
1151
|
+
packageName: PACKAGE_NAME,
|
|
1152
|
+
url: resolveComWixEcomOrdersV1OrdersUrl({
|
|
1153
|
+
protoPath: "/v1/orders/{id}/activities/{activityId}",
|
|
1154
|
+
data: payload,
|
|
1155
|
+
host
|
|
1156
|
+
}),
|
|
1157
|
+
data: payload,
|
|
1158
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1159
|
+
{
|
|
1160
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1161
|
+
paths: [
|
|
1162
|
+
{ path: "order.createdDate" },
|
|
1163
|
+
{ path: "order.updatedDate" },
|
|
1164
|
+
{ path: "order.purchasedDate" },
|
|
1165
|
+
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
1166
|
+
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
1167
|
+
{
|
|
1168
|
+
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
1169
|
+
},
|
|
1170
|
+
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
1171
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
1172
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
1173
|
+
{ path: "order.activities.createdDate" }
|
|
1174
|
+
]
|
|
1175
|
+
},
|
|
1176
|
+
{
|
|
1177
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
1178
|
+
paths: [
|
|
1179
|
+
{ path: "order.lineItems.image.focalPoint.x" },
|
|
1180
|
+
{ path: "order.lineItems.image.focalPoint.y" },
|
|
1181
|
+
{ path: "order.lineItems.physicalProperties.weight" },
|
|
1182
|
+
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
1183
|
+
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
1184
|
+
{
|
|
1185
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
1186
|
+
},
|
|
1187
|
+
{
|
|
1188
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
1189
|
+
},
|
|
1190
|
+
{
|
|
1191
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
1192
|
+
},
|
|
1193
|
+
{
|
|
1194
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
1195
|
+
},
|
|
1196
|
+
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
1197
|
+
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
1198
|
+
]
|
|
1199
|
+
}
|
|
1200
|
+
])
|
|
1201
|
+
};
|
|
1202
|
+
return metadata;
|
|
1203
|
+
}
|
|
1204
|
+
return __updateActivity;
|
|
1205
|
+
}
|
|
1206
|
+
function deleteActivity(payload) {
|
|
1207
|
+
function __deleteActivity({ host }) {
|
|
1208
|
+
const metadata = {
|
|
1209
|
+
entityFqdn: "wix.ecom.v1.order",
|
|
1210
|
+
method: "DELETE",
|
|
1211
|
+
methodFqn: "com.wix.ecom.orders.v1.Orders.DeleteActivity",
|
|
1212
|
+
packageName: PACKAGE_NAME,
|
|
1213
|
+
url: resolveComWixEcomOrdersV1OrdersUrl({
|
|
1214
|
+
protoPath: "/v1/orders/{id}/activities/{activityId}",
|
|
1215
|
+
data: payload,
|
|
1216
|
+
host
|
|
1217
|
+
}),
|
|
1218
|
+
params: toURLSearchParams(payload),
|
|
1219
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1220
|
+
{
|
|
1221
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1222
|
+
paths: [
|
|
1223
|
+
{ path: "order.createdDate" },
|
|
1224
|
+
{ path: "order.updatedDate" },
|
|
1225
|
+
{ path: "order.purchasedDate" },
|
|
1226
|
+
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
1227
|
+
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
1228
|
+
{
|
|
1229
|
+
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
1230
|
+
},
|
|
1231
|
+
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
1232
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
1233
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
1234
|
+
{ path: "order.activities.createdDate" }
|
|
1235
|
+
]
|
|
1236
|
+
},
|
|
1237
|
+
{
|
|
1238
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
1239
|
+
paths: [
|
|
1240
|
+
{ path: "order.lineItems.image.focalPoint.x" },
|
|
1241
|
+
{ path: "order.lineItems.image.focalPoint.y" },
|
|
1242
|
+
{ path: "order.lineItems.physicalProperties.weight" },
|
|
1243
|
+
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
1244
|
+
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
1245
|
+
{
|
|
1246
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
1247
|
+
},
|
|
1248
|
+
{
|
|
1249
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
1250
|
+
},
|
|
1251
|
+
{
|
|
1252
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
1253
|
+
},
|
|
1254
|
+
{
|
|
1255
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
1256
|
+
},
|
|
1257
|
+
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
1258
|
+
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
1259
|
+
]
|
|
1260
|
+
}
|
|
1261
|
+
])
|
|
1262
|
+
};
|
|
1263
|
+
return metadata;
|
|
1264
|
+
}
|
|
1265
|
+
return __deleteActivity;
|
|
1266
|
+
}
|
|
1267
|
+
function cancelOrder(payload) {
|
|
1268
|
+
function __cancelOrder({ host }) {
|
|
1269
|
+
const metadata = {
|
|
1270
|
+
entityFqdn: "wix.ecom.v1.order",
|
|
1271
|
+
method: "POST",
|
|
1272
|
+
methodFqn: "com.wix.ecom.orders.v1.Orders.CancelOrder",
|
|
1273
|
+
packageName: PACKAGE_NAME,
|
|
1274
|
+
url: resolveComWixEcomOrdersV1OrdersUrl({
|
|
1275
|
+
protoPath: "/v1/orders/{id}/cancel",
|
|
1276
|
+
data: payload,
|
|
1277
|
+
host
|
|
1278
|
+
}),
|
|
1279
|
+
data: payload,
|
|
1280
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1281
|
+
{
|
|
1282
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1283
|
+
paths: [
|
|
1284
|
+
{ path: "order.createdDate" },
|
|
1285
|
+
{ path: "order.updatedDate" },
|
|
1286
|
+
{ path: "order.purchasedDate" },
|
|
1287
|
+
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
1288
|
+
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
1289
|
+
{
|
|
1290
|
+
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
1291
|
+
},
|
|
1292
|
+
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
1293
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
1294
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
1295
|
+
{ path: "order.activities.createdDate" }
|
|
1296
|
+
]
|
|
1297
|
+
},
|
|
1298
|
+
{
|
|
1299
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
1300
|
+
paths: [
|
|
1301
|
+
{ path: "order.lineItems.image.focalPoint.x" },
|
|
1302
|
+
{ path: "order.lineItems.image.focalPoint.y" },
|
|
1303
|
+
{ path: "order.lineItems.physicalProperties.weight" },
|
|
1304
|
+
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
1305
|
+
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
1306
|
+
{
|
|
1307
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
1308
|
+
},
|
|
1309
|
+
{
|
|
1310
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
1311
|
+
},
|
|
1312
|
+
{
|
|
1313
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
1314
|
+
},
|
|
1315
|
+
{
|
|
1316
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
1317
|
+
},
|
|
1318
|
+
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
1319
|
+
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
1320
|
+
]
|
|
1321
|
+
}
|
|
1322
|
+
])
|
|
1323
|
+
};
|
|
1324
|
+
return metadata;
|
|
1325
|
+
}
|
|
1326
|
+
return __cancelOrder;
|
|
1327
|
+
}
|
|
1328
|
+
function updateOrderStatus(payload) {
|
|
1329
|
+
function __updateOrderStatus({ host }) {
|
|
1330
|
+
const metadata = {
|
|
1331
|
+
entityFqdn: "wix.ecom.v1.order",
|
|
1332
|
+
method: "POST",
|
|
1333
|
+
methodFqn: "com.wix.ecom.orders.v1.Orders.UpdateOrderStatus",
|
|
1334
|
+
packageName: PACKAGE_NAME,
|
|
1335
|
+
url: resolveComWixEcomOrdersV1OrdersUrl({
|
|
1336
|
+
protoPath: "/v1/orders/{orderId}/update-status",
|
|
1337
|
+
data: payload,
|
|
1338
|
+
host
|
|
1339
|
+
}),
|
|
1340
|
+
data: payload,
|
|
1341
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1342
|
+
{
|
|
1343
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1344
|
+
paths: [
|
|
1345
|
+
{ path: "order.createdDate" },
|
|
1346
|
+
{ path: "order.updatedDate" },
|
|
1347
|
+
{ path: "order.purchasedDate" },
|
|
1348
|
+
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
1349
|
+
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
1350
|
+
{
|
|
1351
|
+
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
1352
|
+
},
|
|
1353
|
+
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
1354
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
1355
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
1356
|
+
{ path: "order.activities.createdDate" }
|
|
1357
|
+
]
|
|
1358
|
+
},
|
|
1359
|
+
{
|
|
1360
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
1361
|
+
paths: [
|
|
1362
|
+
{ path: "order.lineItems.image.focalPoint.x" },
|
|
1363
|
+
{ path: "order.lineItems.image.focalPoint.y" },
|
|
1364
|
+
{ path: "order.lineItems.physicalProperties.weight" },
|
|
1365
|
+
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
1366
|
+
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
1367
|
+
{
|
|
1368
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
1369
|
+
},
|
|
1370
|
+
{
|
|
1371
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
1372
|
+
},
|
|
1373
|
+
{
|
|
1374
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
1375
|
+
},
|
|
1376
|
+
{
|
|
1377
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
1378
|
+
},
|
|
1379
|
+
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
1380
|
+
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
1381
|
+
]
|
|
1382
|
+
}
|
|
1383
|
+
])
|
|
1384
|
+
};
|
|
1385
|
+
return metadata;
|
|
1386
|
+
}
|
|
1387
|
+
return __updateOrderStatus;
|
|
1388
|
+
}
|
|
1389
|
+
function aggregateOrders(payload) {
|
|
1390
|
+
function __aggregateOrders({ host }) {
|
|
1391
|
+
const metadata = {
|
|
1392
|
+
entityFqdn: "wix.ecom.v1.order",
|
|
1393
|
+
method: "POST",
|
|
1394
|
+
methodFqn: "com.wix.ecom.orders.v1.Orders.AggregateOrders",
|
|
1395
|
+
packageName: PACKAGE_NAME,
|
|
1396
|
+
url: resolveComWixEcomOrdersV1OrdersUrl({
|
|
1397
|
+
protoPath: "/v1/orders/aggregate",
|
|
1398
|
+
data: payload,
|
|
1399
|
+
host
|
|
1400
|
+
}),
|
|
1401
|
+
data: payload
|
|
1402
|
+
};
|
|
1403
|
+
return metadata;
|
|
1404
|
+
}
|
|
1405
|
+
return __aggregateOrders;
|
|
1406
|
+
}
|
|
1407
|
+
function bulkUpdateOrderTags(payload) {
|
|
1408
|
+
function __bulkUpdateOrderTags({ host }) {
|
|
1409
|
+
const metadata = {
|
|
1410
|
+
entityFqdn: "wix.ecom.v1.order",
|
|
1411
|
+
method: "POST",
|
|
1412
|
+
methodFqn: "com.wix.ecom.orders.v1.Orders.BulkUpdateOrderTags",
|
|
1413
|
+
packageName: PACKAGE_NAME,
|
|
1414
|
+
url: resolveComWixEcomOrdersV1OrdersUrl({
|
|
1415
|
+
protoPath: "/v1/bulk/orders/update-tags",
|
|
1416
|
+
data: payload,
|
|
1417
|
+
host
|
|
1418
|
+
}),
|
|
1419
|
+
data: payload
|
|
1420
|
+
};
|
|
1421
|
+
return metadata;
|
|
1422
|
+
}
|
|
1423
|
+
return __bulkUpdateOrderTags;
|
|
1424
|
+
}
|
|
1425
|
+
|
|
1426
|
+
// src/ecom-v1-order-orders.universal.ts
|
|
1427
|
+
import { transformSDKAddressToRESTAddress } from "@wix/sdk-runtime/transformations/address";
|
|
1428
|
+
import { transformRESTAddressToSDKAddress } from "@wix/sdk-runtime/transformations/address";
|
|
1429
|
+
import { transformSDKImageToRESTImage } from "@wix/sdk-runtime/transformations/image";
|
|
1430
|
+
import { transformRESTImageToSDKImage } from "@wix/sdk-runtime/transformations/image";
|
|
1431
|
+
import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
1432
|
+
var DescriptionLineType = /* @__PURE__ */ ((DescriptionLineType2) => {
|
|
1433
|
+
DescriptionLineType2["UNRECOGNISED"] = "UNRECOGNISED";
|
|
1434
|
+
DescriptionLineType2["PLAIN_TEXT"] = "PLAIN_TEXT";
|
|
1435
|
+
DescriptionLineType2["COLOR"] = "COLOR";
|
|
1436
|
+
return DescriptionLineType2;
|
|
1437
|
+
})(DescriptionLineType || {});
|
|
1438
|
+
var ItemTypeItemType = /* @__PURE__ */ ((ItemTypeItemType2) => {
|
|
1439
|
+
ItemTypeItemType2["UNRECOGNISED"] = "UNRECOGNISED";
|
|
1440
|
+
ItemTypeItemType2["PHYSICAL"] = "PHYSICAL";
|
|
1441
|
+
ItemTypeItemType2["DIGITAL"] = "DIGITAL";
|
|
1442
|
+
ItemTypeItemType2["GIFT_CARD"] = "GIFT_CARD";
|
|
1443
|
+
ItemTypeItemType2["SERVICE"] = "SERVICE";
|
|
1444
|
+
return ItemTypeItemType2;
|
|
1445
|
+
})(ItemTypeItemType || {});
|
|
1446
|
+
var PaymentOptionType = /* @__PURE__ */ ((PaymentOptionType2) => {
|
|
1447
|
+
PaymentOptionType2["FULL_PAYMENT_ONLINE"] = "FULL_PAYMENT_ONLINE";
|
|
1448
|
+
PaymentOptionType2["FULL_PAYMENT_OFFLINE"] = "FULL_PAYMENT_OFFLINE";
|
|
1449
|
+
PaymentOptionType2["MEMBERSHIP"] = "MEMBERSHIP";
|
|
1450
|
+
PaymentOptionType2["DEPOSIT_ONLINE"] = "DEPOSIT_ONLINE";
|
|
1451
|
+
PaymentOptionType2["MEMBERSHIP_OFFLINE"] = "MEMBERSHIP_OFFLINE";
|
|
1452
|
+
return PaymentOptionType2;
|
|
1453
|
+
})(PaymentOptionType || {});
|
|
1454
|
+
var JurisdictionType = /* @__PURE__ */ ((JurisdictionType2) => {
|
|
1455
|
+
JurisdictionType2["UNDEFINED"] = "UNDEFINED";
|
|
1456
|
+
JurisdictionType2["COUNTRY"] = "COUNTRY";
|
|
1457
|
+
JurisdictionType2["STATE"] = "STATE";
|
|
1458
|
+
JurisdictionType2["COUNTY"] = "COUNTY";
|
|
1459
|
+
JurisdictionType2["CITY"] = "CITY";
|
|
1460
|
+
JurisdictionType2["SPECIAL"] = "SPECIAL";
|
|
1461
|
+
return JurisdictionType2;
|
|
1462
|
+
})(JurisdictionType || {});
|
|
1463
|
+
var SubscriptionFrequency = /* @__PURE__ */ ((SubscriptionFrequency2) => {
|
|
1464
|
+
SubscriptionFrequency2["UNDEFINED"] = "UNDEFINED";
|
|
1465
|
+
SubscriptionFrequency2["DAY"] = "DAY";
|
|
1466
|
+
SubscriptionFrequency2["WEEK"] = "WEEK";
|
|
1467
|
+
SubscriptionFrequency2["MONTH"] = "MONTH";
|
|
1468
|
+
SubscriptionFrequency2["YEAR"] = "YEAR";
|
|
1469
|
+
return SubscriptionFrequency2;
|
|
1470
|
+
})(SubscriptionFrequency || {});
|
|
1471
|
+
var AdjustmentType = /* @__PURE__ */ ((AdjustmentType2) => {
|
|
1472
|
+
AdjustmentType2["UNKNOWN_ADJUSTMENT_TYPE"] = "UNKNOWN_ADJUSTMENT_TYPE";
|
|
1473
|
+
AdjustmentType2["EXTRA_CHARGE"] = "EXTRA_CHARGE";
|
|
1474
|
+
AdjustmentType2["CREDIT"] = "CREDIT";
|
|
1475
|
+
return AdjustmentType2;
|
|
1476
|
+
})(AdjustmentType || {});
|
|
1477
|
+
var TaxableAddressType = /* @__PURE__ */ ((TaxableAddressType2) => {
|
|
1478
|
+
TaxableAddressType2["UNKNOWN_TAXABLE_ADDRESS"] = "UNKNOWN_TAXABLE_ADDRESS";
|
|
1479
|
+
TaxableAddressType2["BUSINESS"] = "BUSINESS";
|
|
1480
|
+
TaxableAddressType2["BILLING"] = "BILLING";
|
|
1481
|
+
TaxableAddressType2["SHIPPING"] = "SHIPPING";
|
|
1482
|
+
return TaxableAddressType2;
|
|
1483
|
+
})(TaxableAddressType || {});
|
|
1484
|
+
var PaymentStatus = /* @__PURE__ */ ((PaymentStatus2) => {
|
|
1485
|
+
PaymentStatus2["UNSPECIFIED"] = "UNSPECIFIED";
|
|
1486
|
+
PaymentStatus2["NOT_PAID"] = "NOT_PAID";
|
|
1487
|
+
PaymentStatus2["PAID"] = "PAID";
|
|
1488
|
+
PaymentStatus2["PARTIALLY_REFUNDED"] = "PARTIALLY_REFUNDED";
|
|
1489
|
+
PaymentStatus2["FULLY_REFUNDED"] = "FULLY_REFUNDED";
|
|
1490
|
+
PaymentStatus2["PENDING"] = "PENDING";
|
|
1491
|
+
PaymentStatus2["PARTIALLY_PAID"] = "PARTIALLY_PAID";
|
|
1492
|
+
PaymentStatus2["PENDING_MERCHANT"] = "PENDING_MERCHANT";
|
|
1493
|
+
PaymentStatus2["CANCELED"] = "CANCELED";
|
|
1494
|
+
PaymentStatus2["DECLINED"] = "DECLINED";
|
|
1495
|
+
return PaymentStatus2;
|
|
1496
|
+
})(PaymentStatus || {});
|
|
1497
|
+
var FulfillmentStatus = /* @__PURE__ */ ((FulfillmentStatus2) => {
|
|
1498
|
+
FulfillmentStatus2["NOT_FULFILLED"] = "NOT_FULFILLED";
|
|
1499
|
+
FulfillmentStatus2["FULFILLED"] = "FULFILLED";
|
|
1500
|
+
FulfillmentStatus2["PARTIALLY_FULFILLED"] = "PARTIALLY_FULFILLED";
|
|
1501
|
+
return FulfillmentStatus2;
|
|
1502
|
+
})(FulfillmentStatus || {});
|
|
1503
|
+
var WeightUnit = /* @__PURE__ */ ((WeightUnit2) => {
|
|
1504
|
+
WeightUnit2["UNSPECIFIED_WEIGHT_UNIT"] = "UNSPECIFIED_WEIGHT_UNIT";
|
|
1505
|
+
WeightUnit2["KG"] = "KG";
|
|
1506
|
+
WeightUnit2["LB"] = "LB";
|
|
1507
|
+
return WeightUnit2;
|
|
1508
|
+
})(WeightUnit || {});
|
|
1509
|
+
var VatType = /* @__PURE__ */ ((VatType2) => {
|
|
1510
|
+
VatType2["UNSPECIFIED"] = "UNSPECIFIED";
|
|
1511
|
+
VatType2["CPF"] = "CPF";
|
|
1512
|
+
VatType2["CNPJ"] = "CNPJ";
|
|
1513
|
+
return VatType2;
|
|
1514
|
+
})(VatType || {});
|
|
1515
|
+
var PickupMethod = /* @__PURE__ */ ((PickupMethod2) => {
|
|
1516
|
+
PickupMethod2["UNKNOWN_METHOD"] = "UNKNOWN_METHOD";
|
|
1517
|
+
PickupMethod2["STORE_PICKUP"] = "STORE_PICKUP";
|
|
1518
|
+
PickupMethod2["PICKUP_POINT"] = "PICKUP_POINT";
|
|
1519
|
+
return PickupMethod2;
|
|
1520
|
+
})(PickupMethod || {});
|
|
1521
|
+
var OrderStatus = /* @__PURE__ */ ((OrderStatus2) => {
|
|
1522
|
+
OrderStatus2["INITIALIZED"] = "INITIALIZED";
|
|
1523
|
+
OrderStatus2["APPROVED"] = "APPROVED";
|
|
1524
|
+
OrderStatus2["CANCELED"] = "CANCELED";
|
|
1525
|
+
OrderStatus2["PENDING"] = "PENDING";
|
|
1526
|
+
OrderStatus2["REJECTED"] = "REJECTED";
|
|
1527
|
+
return OrderStatus2;
|
|
1528
|
+
})(OrderStatus || {});
|
|
1529
|
+
var DiscountType = /* @__PURE__ */ ((DiscountType2) => {
|
|
1530
|
+
DiscountType2["GLOBAL"] = "GLOBAL";
|
|
1531
|
+
DiscountType2["SPECIFIC_ITEMS"] = "SPECIFIC_ITEMS";
|
|
1532
|
+
DiscountType2["SHIPPING"] = "SHIPPING";
|
|
1533
|
+
return DiscountType2;
|
|
1534
|
+
})(DiscountType || {});
|
|
1535
|
+
var DiscountReason = /* @__PURE__ */ ((DiscountReason2) => {
|
|
1536
|
+
DiscountReason2["UNSPECIFIED"] = "UNSPECIFIED";
|
|
1537
|
+
DiscountReason2["EXCHANGED_ITEMS"] = "EXCHANGED_ITEMS";
|
|
1538
|
+
DiscountReason2["BILLING_ADJUSTMENT"] = "BILLING_ADJUSTMENT";
|
|
1539
|
+
return DiscountReason2;
|
|
1540
|
+
})(DiscountReason || {});
|
|
1541
|
+
var LineItemQuantityChangeType = /* @__PURE__ */ ((LineItemQuantityChangeType2) => {
|
|
1542
|
+
LineItemQuantityChangeType2["QUANTITY_INCREASED"] = "QUANTITY_INCREASED";
|
|
1543
|
+
LineItemQuantityChangeType2["QUANTITY_DECREASED"] = "QUANTITY_DECREASED";
|
|
1544
|
+
return LineItemQuantityChangeType2;
|
|
1545
|
+
})(LineItemQuantityChangeType || {});
|
|
1546
|
+
var ActivityType = /* @__PURE__ */ ((ActivityType2) => {
|
|
1547
|
+
ActivityType2["ORDER_REFUNDED"] = "ORDER_REFUNDED";
|
|
1548
|
+
ActivityType2["ORDER_PLACED"] = "ORDER_PLACED";
|
|
1549
|
+
ActivityType2["ORDER_PAID"] = "ORDER_PAID";
|
|
1550
|
+
ActivityType2["ORDER_FULFILLED"] = "ORDER_FULFILLED";
|
|
1551
|
+
ActivityType2["ORDER_NOT_FULFILLED"] = "ORDER_NOT_FULFILLED";
|
|
1552
|
+
ActivityType2["ORDER_CANCELED"] = "ORDER_CANCELED";
|
|
1553
|
+
ActivityType2["DOWNLOAD_LINK_SENT"] = "DOWNLOAD_LINK_SENT";
|
|
1554
|
+
ActivityType2["TRACKING_NUMBER_ADDED"] = "TRACKING_NUMBER_ADDED";
|
|
1555
|
+
ActivityType2["TRACKING_NUMBER_EDITED"] = "TRACKING_NUMBER_EDITED";
|
|
1556
|
+
ActivityType2["TRACKING_LINK_ADDED"] = "TRACKING_LINK_ADDED";
|
|
1557
|
+
ActivityType2["SHIPPING_CONFIRMATION_EMAIL_SENT"] = "SHIPPING_CONFIRMATION_EMAIL_SENT";
|
|
1558
|
+
ActivityType2["INVOICE_ADDED"] = "INVOICE_ADDED";
|
|
1559
|
+
ActivityType2["INVOICE_REMOVED"] = "INVOICE_REMOVED";
|
|
1560
|
+
ActivityType2["INVOICE_SENT"] = "INVOICE_SENT";
|
|
1561
|
+
ActivityType2["FULFILLER_EMAIL_SENT"] = "FULFILLER_EMAIL_SENT";
|
|
1562
|
+
ActivityType2["SHIPPING_ADDRESS_EDITED"] = "SHIPPING_ADDRESS_EDITED";
|
|
1563
|
+
ActivityType2["EMAIL_EDITED"] = "EMAIL_EDITED";
|
|
1564
|
+
ActivityType2["PICKUP_READY_EMAIL_SENT"] = "PICKUP_READY_EMAIL_SENT";
|
|
1565
|
+
ActivityType2["CUSTOM_ACTIVITY"] = "CUSTOM_ACTIVITY";
|
|
1566
|
+
ActivityType2["MERCHANT_COMMENT"] = "MERCHANT_COMMENT";
|
|
1567
|
+
ActivityType2["ORDER_CREATED_FROM_EXCHANGE"] = "ORDER_CREATED_FROM_EXCHANGE";
|
|
1568
|
+
ActivityType2["NEW_EXCHANGE_ORDER_CREATED"] = "NEW_EXCHANGE_ORDER_CREATED";
|
|
1569
|
+
ActivityType2["ORDER_PARTIALLY_PAID"] = "ORDER_PARTIALLY_PAID";
|
|
1570
|
+
ActivityType2["DRAFT_ORDER_CHANGES_APPLIED"] = "DRAFT_ORDER_CHANGES_APPLIED";
|
|
1571
|
+
ActivityType2["SAVED_PAYMENT_METHOD"] = "SAVED_PAYMENT_METHOD";
|
|
1572
|
+
ActivityType2["PAYMENT_PENDING"] = "PAYMENT_PENDING";
|
|
1573
|
+
ActivityType2["PAYMENT_CANCELED"] = "PAYMENT_CANCELED";
|
|
1574
|
+
ActivityType2["PAYMENT_DECLINED"] = "PAYMENT_DECLINED";
|
|
1575
|
+
ActivityType2["ORDER_PENDING"] = "ORDER_PENDING";
|
|
1576
|
+
ActivityType2["ORDER_REJECTED"] = "ORDER_REJECTED";
|
|
1577
|
+
return ActivityType2;
|
|
1578
|
+
})(ActivityType || {});
|
|
1579
|
+
var AttributionSource = /* @__PURE__ */ ((AttributionSource2) => {
|
|
1580
|
+
AttributionSource2["UNSPECIFIED"] = "UNSPECIFIED";
|
|
1581
|
+
AttributionSource2["FACEBOOK_ADS"] = "FACEBOOK_ADS";
|
|
1582
|
+
return AttributionSource2;
|
|
1583
|
+
})(AttributionSource || {});
|
|
1584
|
+
var ChannelType = /* @__PURE__ */ ((ChannelType2) => {
|
|
1585
|
+
ChannelType2["UNSPECIFIED"] = "UNSPECIFIED";
|
|
1586
|
+
ChannelType2["WEB"] = "WEB";
|
|
1587
|
+
ChannelType2["POS"] = "POS";
|
|
1588
|
+
ChannelType2["EBAY"] = "EBAY";
|
|
1589
|
+
ChannelType2["AMAZON"] = "AMAZON";
|
|
1590
|
+
ChannelType2["OTHER_PLATFORM"] = "OTHER_PLATFORM";
|
|
1591
|
+
ChannelType2["WIX_APP_STORE"] = "WIX_APP_STORE";
|
|
1592
|
+
ChannelType2["WIX_INVOICES"] = "WIX_INVOICES";
|
|
1593
|
+
ChannelType2["BACKOFFICE_MERCHANT"] = "BACKOFFICE_MERCHANT";
|
|
1594
|
+
ChannelType2["WISH"] = "WISH";
|
|
1595
|
+
ChannelType2["CLASS_PASS"] = "CLASS_PASS";
|
|
1596
|
+
ChannelType2["GLOBAL_E"] = "GLOBAL_E";
|
|
1597
|
+
ChannelType2["FACEBOOK"] = "FACEBOOK";
|
|
1598
|
+
ChannelType2["ETSY"] = "ETSY";
|
|
1599
|
+
ChannelType2["TIKTOK"] = "TIKTOK";
|
|
1600
|
+
ChannelType2["FAIRE_COM"] = "FAIRE_COM";
|
|
1601
|
+
return ChannelType2;
|
|
1602
|
+
})(ChannelType || {});
|
|
1603
|
+
var ScheduledAction = /* @__PURE__ */ ((ScheduledAction2) => {
|
|
1604
|
+
ScheduledAction2["UNSPECIFIED"] = "UNSPECIFIED";
|
|
1605
|
+
ScheduledAction2["VOID"] = "VOID";
|
|
1606
|
+
ScheduledAction2["CAPTURE"] = "CAPTURE";
|
|
1607
|
+
return ScheduledAction2;
|
|
1608
|
+
})(ScheduledAction || {});
|
|
1609
|
+
var DurationUnit = /* @__PURE__ */ ((DurationUnit2) => {
|
|
1610
|
+
DurationUnit2["UNKNOWN_DURATION_UNIT"] = "UNKNOWN_DURATION_UNIT";
|
|
1611
|
+
DurationUnit2["MINUTES"] = "MINUTES";
|
|
1612
|
+
DurationUnit2["HOURS"] = "HOURS";
|
|
1613
|
+
DurationUnit2["DAYS"] = "DAYS";
|
|
1614
|
+
return DurationUnit2;
|
|
1615
|
+
})(DurationUnit || {});
|
|
1616
|
+
var PaymentCollectabilityStatus = /* @__PURE__ */ ((PaymentCollectabilityStatus2) => {
|
|
1617
|
+
PaymentCollectabilityStatus2["UNKNOWN"] = "UNKNOWN";
|
|
1618
|
+
PaymentCollectabilityStatus2["COLLECTABLE"] = "COLLECTABLE";
|
|
1619
|
+
PaymentCollectabilityStatus2["NONCOLLECTABLE_ORDER_IS_CANCELLED"] = "NONCOLLECTABLE_ORDER_IS_CANCELLED";
|
|
1620
|
+
PaymentCollectabilityStatus2["NONCOLLECTABLE_ORDER_IS_PAID"] = "NONCOLLECTABLE_ORDER_IS_PAID";
|
|
1621
|
+
PaymentCollectabilityStatus2["NONCOLLECTABLE_MISSING_PAYMENT_METHOD"] = "NONCOLLECTABLE_MISSING_PAYMENT_METHOD";
|
|
1622
|
+
PaymentCollectabilityStatus2["NONCOLLECTABLE_ORDER_IS_PENDING"] = "NONCOLLECTABLE_ORDER_IS_PENDING";
|
|
1623
|
+
PaymentCollectabilityStatus2["NONCOLLECTABLE_ORDER_IS_REJECTED"] = "NONCOLLECTABLE_ORDER_IS_REJECTED";
|
|
1624
|
+
PaymentCollectabilityStatus2["NONCOLLECTABLE_ORDER_HAS_SUBSCRIPTIONS"] = "NONCOLLECTABLE_ORDER_HAS_SUBSCRIPTIONS";
|
|
1625
|
+
return PaymentCollectabilityStatus2;
|
|
1626
|
+
})(PaymentCollectabilityStatus || {});
|
|
1627
|
+
var RefundableStatus = /* @__PURE__ */ ((RefundableStatus2) => {
|
|
1628
|
+
RefundableStatus2["NOT_REFUNDABLE"] = "NOT_REFUNDABLE";
|
|
1629
|
+
RefundableStatus2["MANUAL"] = "MANUAL";
|
|
1630
|
+
RefundableStatus2["REFUNDABLE"] = "REFUNDABLE";
|
|
1631
|
+
return RefundableStatus2;
|
|
1632
|
+
})(RefundableStatus || {});
|
|
1633
|
+
var NonRefundableReason = /* @__PURE__ */ ((NonRefundableReason2) => {
|
|
1634
|
+
NonRefundableReason2["NONE"] = "NONE";
|
|
1635
|
+
NonRefundableReason2["ALREADY_REFUNDED"] = "ALREADY_REFUNDED";
|
|
1636
|
+
NonRefundableReason2["PROVIDER_IS_DOWN"] = "PROVIDER_IS_DOWN";
|
|
1637
|
+
NonRefundableReason2["INTERNAL_ERROR"] = "INTERNAL_ERROR";
|
|
1638
|
+
NonRefundableReason2["NOT_PAID"] = "NOT_PAID";
|
|
1639
|
+
NonRefundableReason2["ACCESS_DENIED"] = "ACCESS_DENIED";
|
|
1640
|
+
NonRefundableReason2["ZERO_PRICE"] = "ZERO_PRICE";
|
|
1641
|
+
NonRefundableReason2["DISABLED_BY_PROVIDER"] = "DISABLED_BY_PROVIDER";
|
|
1642
|
+
NonRefundableReason2["PENDING_REFUND"] = "PENDING_REFUND";
|
|
1643
|
+
NonRefundableReason2["FORBIDDEN"] = "FORBIDDEN";
|
|
1644
|
+
NonRefundableReason2["TRANSACTION_NOT_FOUND"] = "TRANSACTION_NOT_FOUND";
|
|
1645
|
+
NonRefundableReason2["ORDER_IS_PENDING"] = "ORDER_IS_PENDING";
|
|
1646
|
+
NonRefundableReason2["ORDER_IS_REJECTED"] = "ORDER_IS_REJECTED";
|
|
1647
|
+
return NonRefundableReason2;
|
|
1648
|
+
})(NonRefundableReason || {});
|
|
1649
|
+
var ManuallyRefundableReason = /* @__PURE__ */ ((ManuallyRefundableReason2) => {
|
|
1650
|
+
ManuallyRefundableReason2["EXPIRED"] = "EXPIRED";
|
|
1651
|
+
ManuallyRefundableReason2["NOT_SUPPORTED"] = "NOT_SUPPORTED";
|
|
1652
|
+
ManuallyRefundableReason2["OFFLINE"] = "OFFLINE";
|
|
1653
|
+
ManuallyRefundableReason2["REQUIRES_CARD_READER"] = "REQUIRES_CARD_READER";
|
|
1654
|
+
return ManuallyRefundableReason2;
|
|
1655
|
+
})(ManuallyRefundableReason || {});
|
|
1656
|
+
var RestockType = /* @__PURE__ */ ((RestockType2) => {
|
|
1657
|
+
RestockType2["NO_ITEMS"] = "NO_ITEMS";
|
|
1658
|
+
RestockType2["ALL_ITEMS"] = "ALL_ITEMS";
|
|
1659
|
+
RestockType2["SOME_ITEMS"] = "SOME_ITEMS";
|
|
1660
|
+
return RestockType2;
|
|
1661
|
+
})(RestockType || {});
|
|
1662
|
+
var TransactionStatus = /* @__PURE__ */ ((TransactionStatus2) => {
|
|
1663
|
+
TransactionStatus2["UNDEFINED"] = "UNDEFINED";
|
|
1664
|
+
TransactionStatus2["APPROVED"] = "APPROVED";
|
|
1665
|
+
TransactionStatus2["PENDING"] = "PENDING";
|
|
1666
|
+
TransactionStatus2["PENDING_MERCHANT"] = "PENDING_MERCHANT";
|
|
1667
|
+
TransactionStatus2["CANCELED"] = "CANCELED";
|
|
1668
|
+
TransactionStatus2["DECLINED"] = "DECLINED";
|
|
1669
|
+
TransactionStatus2["REFUNDED"] = "REFUNDED";
|
|
1670
|
+
TransactionStatus2["PARTIALLY_REFUNDED"] = "PARTIALLY_REFUNDED";
|
|
1671
|
+
TransactionStatus2["AUTHORIZED"] = "AUTHORIZED";
|
|
1672
|
+
TransactionStatus2["VOIDED"] = "VOIDED";
|
|
1673
|
+
return TransactionStatus2;
|
|
1674
|
+
})(TransactionStatus || {});
|
|
1675
|
+
var AuthorizationCaptureStatus = /* @__PURE__ */ ((AuthorizationCaptureStatus2) => {
|
|
1676
|
+
AuthorizationCaptureStatus2["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
|
|
1677
|
+
AuthorizationCaptureStatus2["PENDING"] = "PENDING";
|
|
1678
|
+
AuthorizationCaptureStatus2["SUCCEEDED"] = "SUCCEEDED";
|
|
1679
|
+
AuthorizationCaptureStatus2["FAILED"] = "FAILED";
|
|
1680
|
+
return AuthorizationCaptureStatus2;
|
|
1681
|
+
})(AuthorizationCaptureStatus || {});
|
|
1682
|
+
var AuthorizationVoidStatus = /* @__PURE__ */ ((AuthorizationVoidStatus2) => {
|
|
1683
|
+
AuthorizationVoidStatus2["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
|
|
1684
|
+
AuthorizationVoidStatus2["PENDING"] = "PENDING";
|
|
1685
|
+
AuthorizationVoidStatus2["SUCCEEDED"] = "SUCCEEDED";
|
|
1686
|
+
AuthorizationVoidStatus2["FAILED"] = "FAILED";
|
|
1687
|
+
return AuthorizationVoidStatus2;
|
|
1688
|
+
})(AuthorizationVoidStatus || {});
|
|
1689
|
+
var Reason = /* @__PURE__ */ ((Reason2) => {
|
|
1690
|
+
Reason2["UNKNOWN_REASON"] = "UNKNOWN_REASON";
|
|
1691
|
+
Reason2["MANUAL"] = "MANUAL";
|
|
1692
|
+
Reason2["SCHEDULED"] = "SCHEDULED";
|
|
1693
|
+
return Reason2;
|
|
1694
|
+
})(Reason || {});
|
|
1695
|
+
var ActionType = /* @__PURE__ */ ((ActionType2) => {
|
|
1696
|
+
ActionType2["UNKNOWN_ACTION_TYPE"] = "UNKNOWN_ACTION_TYPE";
|
|
1697
|
+
ActionType2["VOID"] = "VOID";
|
|
1698
|
+
ActionType2["CAPTURE"] = "CAPTURE";
|
|
1699
|
+
return ActionType2;
|
|
1700
|
+
})(ActionType || {});
|
|
1701
|
+
var MembershipPaymentStatus = /* @__PURE__ */ ((MembershipPaymentStatus2) => {
|
|
1702
|
+
MembershipPaymentStatus2["CHARGED"] = "CHARGED";
|
|
1703
|
+
MembershipPaymentStatus2["CHARGE_FAILED"] = "CHARGE_FAILED";
|
|
1704
|
+
return MembershipPaymentStatus2;
|
|
1705
|
+
})(MembershipPaymentStatus || {});
|
|
1706
|
+
var RefundStatus = /* @__PURE__ */ ((RefundStatus2) => {
|
|
1707
|
+
RefundStatus2["PENDING"] = "PENDING";
|
|
1708
|
+
RefundStatus2["SUCCEEDED"] = "SUCCEEDED";
|
|
1709
|
+
RefundStatus2["FAILED"] = "FAILED";
|
|
1710
|
+
RefundStatus2["SCHEDULED"] = "SCHEDULED";
|
|
1711
|
+
RefundStatus2["STARTED"] = "STARTED";
|
|
1712
|
+
return RefundStatus2;
|
|
1713
|
+
})(RefundStatus || {});
|
|
1714
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
1715
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
1716
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
1717
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
1718
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
1719
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
1720
|
+
return WebhookIdentityType2;
|
|
1721
|
+
})(WebhookIdentityType || {});
|
|
1722
|
+
var TextDetection = /* @__PURE__ */ ((TextDetection2) => {
|
|
1723
|
+
TextDetection2["UNKNOWN_TEXT_DETECTION"] = "UNKNOWN_TEXT_DETECTION";
|
|
1724
|
+
TextDetection2["CONTAINS_TEXT"] = "CONTAINS_TEXT";
|
|
1725
|
+
TextDetection2["NO_TEXT"] = "NO_TEXT";
|
|
1726
|
+
return TextDetection2;
|
|
1727
|
+
})(TextDetection || {});
|
|
1728
|
+
var AnimationDetection = /* @__PURE__ */ ((AnimationDetection2) => {
|
|
1729
|
+
AnimationDetection2["UNKNOWN_ANIMATION_DETECTION"] = "UNKNOWN_ANIMATION_DETECTION";
|
|
1730
|
+
AnimationDetection2["CONTAINS_ANIMATION"] = "CONTAINS_ANIMATION";
|
|
1731
|
+
AnimationDetection2["NO_ANIMATION"] = "NO_ANIMATION";
|
|
1732
|
+
return AnimationDetection2;
|
|
1733
|
+
})(AnimationDetection || {});
|
|
1734
|
+
var PreviewEmailType = /* @__PURE__ */ ((PreviewEmailType2) => {
|
|
1735
|
+
PreviewEmailType2["ORDER_PLACED"] = "ORDER_PLACED";
|
|
1736
|
+
PreviewEmailType2["DOWNLOAD_LINKS"] = "DOWNLOAD_LINKS";
|
|
1737
|
+
PreviewEmailType2["ORDER_SHIPPED"] = "ORDER_SHIPPED";
|
|
1738
|
+
PreviewEmailType2["ORDER_READY_FOR_PICKUP"] = "ORDER_READY_FOR_PICKUP";
|
|
1739
|
+
return PreviewEmailType2;
|
|
1740
|
+
})(PreviewEmailType || {});
|
|
1741
|
+
var State = /* @__PURE__ */ ((State2) => {
|
|
1742
|
+
State2["UNKNOWN"] = "UNKNOWN";
|
|
1743
|
+
State2["ENABLED"] = "ENABLED";
|
|
1744
|
+
State2["DISABLED"] = "DISABLED";
|
|
1745
|
+
State2["TEMPLATE"] = "TEMPLATE";
|
|
1746
|
+
State2["PENDING"] = "PENDING";
|
|
1747
|
+
return State2;
|
|
1748
|
+
})(State || {});
|
|
1749
|
+
var Namespace = /* @__PURE__ */ ((Namespace2) => {
|
|
1750
|
+
Namespace2["UNKNOWN_NAMESPACE"] = "UNKNOWN_NAMESPACE";
|
|
1751
|
+
Namespace2["WIX"] = "WIX";
|
|
1752
|
+
Namespace2["SHOUT_OUT"] = "SHOUT_OUT";
|
|
1753
|
+
Namespace2["ALBUMS"] = "ALBUMS";
|
|
1754
|
+
Namespace2["WIX_STORES_TEST_DRIVE"] = "WIX_STORES_TEST_DRIVE";
|
|
1755
|
+
Namespace2["HOTELS"] = "HOTELS";
|
|
1756
|
+
Namespace2["CLUBS"] = "CLUBS";
|
|
1757
|
+
Namespace2["ONBOARDING_DRAFT"] = "ONBOARDING_DRAFT";
|
|
1758
|
+
Namespace2["DEV_SITE"] = "DEV_SITE";
|
|
1759
|
+
Namespace2["LOGOS"] = "LOGOS";
|
|
1760
|
+
Namespace2["VIDEO_MAKER"] = "VIDEO_MAKER";
|
|
1761
|
+
Namespace2["PARTNER_DASHBOARD"] = "PARTNER_DASHBOARD";
|
|
1762
|
+
Namespace2["DEV_CENTER_COMPANY"] = "DEV_CENTER_COMPANY";
|
|
1763
|
+
Namespace2["HTML_DRAFT"] = "HTML_DRAFT";
|
|
1764
|
+
Namespace2["SITELESS_BUSINESS"] = "SITELESS_BUSINESS";
|
|
1765
|
+
Namespace2["CREATOR_ECONOMY"] = "CREATOR_ECONOMY";
|
|
1766
|
+
Namespace2["DASHBOARD_FIRST"] = "DASHBOARD_FIRST";
|
|
1767
|
+
Namespace2["ANYWHERE"] = "ANYWHERE";
|
|
1768
|
+
Namespace2["HEADLESS"] = "HEADLESS";
|
|
1769
|
+
Namespace2["ACCOUNT_MASTER_CMS"] = "ACCOUNT_MASTER_CMS";
|
|
1770
|
+
Namespace2["RISE"] = "RISE";
|
|
1771
|
+
Namespace2["BRANDED_FIRST"] = "BRANDED_FIRST";
|
|
1772
|
+
Namespace2["NOWNIA"] = "NOWNIA";
|
|
1773
|
+
Namespace2["UGC_TEMPLATE"] = "UGC_TEMPLATE";
|
|
1774
|
+
Namespace2["CODUX"] = "CODUX";
|
|
1775
|
+
Namespace2["MEDIA_DESIGN_CREATOR"] = "MEDIA_DESIGN_CREATOR";
|
|
1776
|
+
Namespace2["SHARED_BLOG_ENTERPRISE"] = "SHARED_BLOG_ENTERPRISE";
|
|
1777
|
+
Namespace2["STANDALONE_FORMS"] = "STANDALONE_FORMS";
|
|
1778
|
+
Namespace2["STANDALONE_EVENTS"] = "STANDALONE_EVENTS";
|
|
1779
|
+
Namespace2["MIMIR"] = "MIMIR";
|
|
1780
|
+
return Namespace2;
|
|
1781
|
+
})(Namespace || {});
|
|
1782
|
+
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
1783
|
+
SortOrder2["ASC"] = "ASC";
|
|
1784
|
+
SortOrder2["DESC"] = "DESC";
|
|
1785
|
+
return SortOrder2;
|
|
1786
|
+
})(SortOrder || {});
|
|
1787
|
+
var VersioningMode = /* @__PURE__ */ ((VersioningMode2) => {
|
|
1788
|
+
VersioningMode2["DEFAULT"] = "DEFAULT";
|
|
1789
|
+
VersioningMode2["GREATER_THAN"] = "GREATER_THAN";
|
|
1790
|
+
VersioningMode2["GREATER_OR_EQUAL"] = "GREATER_OR_EQUAL";
|
|
1791
|
+
return VersioningMode2;
|
|
1792
|
+
})(VersioningMode || {});
|
|
1793
|
+
var OrderApprovalStrategy = /* @__PURE__ */ ((OrderApprovalStrategy2) => {
|
|
1794
|
+
OrderApprovalStrategy2["DEFAULT"] = "DEFAULT";
|
|
1795
|
+
OrderApprovalStrategy2["PAYMENT_RECEIVED"] = "PAYMENT_RECEIVED";
|
|
1796
|
+
OrderApprovalStrategy2["PAYMENT_METHOD_SAVED"] = "PAYMENT_METHOD_SAVED";
|
|
1797
|
+
return OrderApprovalStrategy2;
|
|
1798
|
+
})(OrderApprovalStrategy || {});
|
|
1799
|
+
var DeltaPaymentOptionType = /* @__PURE__ */ ((DeltaPaymentOptionType2) => {
|
|
1800
|
+
DeltaPaymentOptionType2["UNKNOWN_PAYMENT_OPTION"] = "UNKNOWN_PAYMENT_OPTION";
|
|
1801
|
+
DeltaPaymentOptionType2["FULL_PAYMENT_OFFLINE"] = "FULL_PAYMENT_OFFLINE";
|
|
1802
|
+
DeltaPaymentOptionType2["MEMBERSHIP_OFFLINE"] = "MEMBERSHIP_OFFLINE";
|
|
1803
|
+
return DeltaPaymentOptionType2;
|
|
1804
|
+
})(DeltaPaymentOptionType || {});
|
|
1805
|
+
var InventoryAction = /* @__PURE__ */ ((InventoryAction2) => {
|
|
1806
|
+
InventoryAction2["RESTOCK"] = "RESTOCK";
|
|
1807
|
+
InventoryAction2["DECREASE"] = "DECREASE";
|
|
1808
|
+
return InventoryAction2;
|
|
1809
|
+
})(InventoryAction || {});
|
|
1810
|
+
var Placement = /* @__PURE__ */ ((Placement2) => {
|
|
1811
|
+
Placement2["Unknown"] = "Unknown";
|
|
1812
|
+
Placement2["Replace"] = "Replace";
|
|
1813
|
+
Placement2["Before"] = "Before";
|
|
1814
|
+
Placement2["After"] = "After";
|
|
1815
|
+
return Placement2;
|
|
1816
|
+
})(Placement || {});
|
|
1817
|
+
var SubdivisionType = /* @__PURE__ */ ((SubdivisionType2) => {
|
|
1818
|
+
SubdivisionType2["UNKNOWN_SUBDIVISION_TYPE"] = "UNKNOWN_SUBDIVISION_TYPE";
|
|
1819
|
+
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_1"] = "ADMINISTRATIVE_AREA_LEVEL_1";
|
|
1820
|
+
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_2"] = "ADMINISTRATIVE_AREA_LEVEL_2";
|
|
1821
|
+
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_3"] = "ADMINISTRATIVE_AREA_LEVEL_3";
|
|
1822
|
+
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_4"] = "ADMINISTRATIVE_AREA_LEVEL_4";
|
|
1823
|
+
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_5"] = "ADMINISTRATIVE_AREA_LEVEL_5";
|
|
1824
|
+
SubdivisionType2["COUNTRY"] = "COUNTRY";
|
|
1825
|
+
return SubdivisionType2;
|
|
1826
|
+
})(SubdivisionType || {});
|
|
1827
|
+
var SourceType = /* @__PURE__ */ ((SourceType2) => {
|
|
1828
|
+
SourceType2["UNKNOWN_SOURCE_TYPE"] = "UNKNOWN_SOURCE_TYPE";
|
|
1829
|
+
SourceType2["WIX_APP"] = "WIX_APP";
|
|
1830
|
+
SourceType2["EXTERNAL"] = "EXTERNAL";
|
|
1831
|
+
SourceType2["ADMIN"] = "ADMIN";
|
|
1832
|
+
SourceType2["OTHER"] = "OTHER";
|
|
1833
|
+
return SourceType2;
|
|
1834
|
+
})(SourceType || {});
|
|
1835
|
+
var CustomFieldGroup = /* @__PURE__ */ ((CustomFieldGroup2) => {
|
|
1836
|
+
CustomFieldGroup2["UNKNOWN_CUSTOM_FIELD_GROUP"] = "UNKNOWN_CUSTOM_FIELD_GROUP";
|
|
1837
|
+
CustomFieldGroup2["BUSINESS_DETAILS"] = "BUSINESS_DETAILS";
|
|
1838
|
+
CustomFieldGroup2["CUSTOMER_DETAILS"] = "CUSTOMER_DETAILS";
|
|
1839
|
+
CustomFieldGroup2["DOCUMENT"] = "DOCUMENT";
|
|
1840
|
+
CustomFieldGroup2["FOOTER"] = "FOOTER";
|
|
1841
|
+
CustomFieldGroup2["OTHER"] = "OTHER";
|
|
1842
|
+
return CustomFieldGroup2;
|
|
1843
|
+
})(CustomFieldGroup || {});
|
|
1844
|
+
var ValueType = /* @__PURE__ */ ((ValueType2) => {
|
|
1845
|
+
ValueType2["UNKNOWN_VALUE_TYPE"] = "UNKNOWN_VALUE_TYPE";
|
|
1846
|
+
ValueType2["STRING"] = "STRING";
|
|
1847
|
+
ValueType2["DATE"] = "DATE";
|
|
1848
|
+
ValueType2["BOOLEAN"] = "BOOLEAN";
|
|
1849
|
+
ValueType2["NUMBER"] = "NUMBER";
|
|
1850
|
+
return ValueType2;
|
|
1851
|
+
})(ValueType || {});
|
|
1852
|
+
var DepositType = /* @__PURE__ */ ((DepositType2) => {
|
|
1853
|
+
DepositType2["UNKNOWN"] = "UNKNOWN";
|
|
1854
|
+
DepositType2["FLAT"] = "FLAT";
|
|
1855
|
+
DepositType2["PERCENTAGE"] = "PERCENTAGE";
|
|
1856
|
+
return DepositType2;
|
|
1857
|
+
})(DepositType || {});
|
|
1858
|
+
var InvoiceStatus = /* @__PURE__ */ ((InvoiceStatus2) => {
|
|
1859
|
+
InvoiceStatus2["Draft"] = "Draft";
|
|
1860
|
+
InvoiceStatus2["Sent"] = "Sent";
|
|
1861
|
+
InvoiceStatus2["Processing"] = "Processing";
|
|
1862
|
+
InvoiceStatus2["Paid"] = "Paid";
|
|
1863
|
+
InvoiceStatus2["Overdue"] = "Overdue";
|
|
1864
|
+
InvoiceStatus2["Void"] = "Void";
|
|
1865
|
+
InvoiceStatus2["Deleted"] = "Deleted";
|
|
1866
|
+
InvoiceStatus2["PartiallyPaid"] = "PartiallyPaid";
|
|
1867
|
+
InvoiceStatus2["PartialAndOverdue"] = "PartialAndOverdue";
|
|
1868
|
+
return InvoiceStatus2;
|
|
1869
|
+
})(InvoiceStatus || {});
|
|
1870
|
+
async function preparePaymentCollection2(ecomOrderId, amount, options) {
|
|
1871
|
+
const { httpClient, sideEffects } = arguments[3];
|
|
1872
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1873
|
+
ecomOrderId,
|
|
1874
|
+
amount,
|
|
1875
|
+
paymentGatewayOrderId: options?.paymentGatewayOrderId,
|
|
1876
|
+
delayedCapture: options?.delayedCapture,
|
|
1877
|
+
delayedCaptureSettings: options?.delayedCaptureSettings
|
|
1878
|
+
});
|
|
1879
|
+
const reqOpts = preparePaymentCollection(payload);
|
|
1880
|
+
sideEffects?.onSiteCall?.();
|
|
1881
|
+
try {
|
|
1882
|
+
const result = await httpClient.request(reqOpts);
|
|
1883
|
+
sideEffects?.onSuccess?.(result);
|
|
1884
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1885
|
+
} catch (err) {
|
|
1886
|
+
const transformedError = sdkTransformError(
|
|
1887
|
+
err,
|
|
1888
|
+
{
|
|
1889
|
+
spreadPathsToArguments: {},
|
|
1890
|
+
explicitPathsToArguments: {
|
|
1891
|
+
ecomOrderId: "$[0]",
|
|
1892
|
+
amount: "$[1]",
|
|
1893
|
+
paymentGatewayOrderId: "$[2].paymentGatewayOrderId",
|
|
1894
|
+
delayedCapture: "$[2].delayedCapture",
|
|
1895
|
+
delayedCaptureSettings: "$[2].delayedCaptureSettings"
|
|
1896
|
+
},
|
|
1897
|
+
singleArgumentUnchanged: false
|
|
1898
|
+
},
|
|
1899
|
+
["ecomOrderId", "amount", "options"]
|
|
1900
|
+
);
|
|
1901
|
+
sideEffects?.onError?.(err);
|
|
1902
|
+
throw transformedError;
|
|
1903
|
+
}
|
|
1904
|
+
}
|
|
1905
|
+
async function getPaymentCollectabilityStatus2(ecomOrderId) {
|
|
1906
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1907
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1908
|
+
ecomOrderId
|
|
1909
|
+
});
|
|
1910
|
+
const reqOpts = getPaymentCollectabilityStatus(payload);
|
|
1911
|
+
sideEffects?.onSiteCall?.();
|
|
1912
|
+
try {
|
|
1913
|
+
const result = await httpClient.request(reqOpts);
|
|
1914
|
+
sideEffects?.onSuccess?.(result);
|
|
1915
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1916
|
+
} catch (err) {
|
|
1917
|
+
const transformedError = sdkTransformError(
|
|
1918
|
+
err,
|
|
1919
|
+
{
|
|
1920
|
+
spreadPathsToArguments: {},
|
|
1921
|
+
explicitPathsToArguments: { ecomOrderId: "$[0]" },
|
|
1922
|
+
singleArgumentUnchanged: false
|
|
1923
|
+
},
|
|
1924
|
+
["ecomOrderId"]
|
|
1925
|
+
);
|
|
1926
|
+
sideEffects?.onError?.(err);
|
|
1927
|
+
throw transformedError;
|
|
1928
|
+
}
|
|
1929
|
+
}
|
|
1930
|
+
async function recordManuallyCollectedPayment2(orderId, amount) {
|
|
1931
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1932
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1933
|
+
orderId,
|
|
1934
|
+
amount
|
|
1935
|
+
});
|
|
1936
|
+
const reqOpts = recordManuallyCollectedPayment(payload);
|
|
1937
|
+
sideEffects?.onSiteCall?.();
|
|
1938
|
+
try {
|
|
1939
|
+
const result = await httpClient.request(reqOpts);
|
|
1940
|
+
sideEffects?.onSuccess?.(result);
|
|
1941
|
+
} catch (err) {
|
|
1942
|
+
const transformedError = sdkTransformError(
|
|
1943
|
+
err,
|
|
1944
|
+
{
|
|
1945
|
+
spreadPathsToArguments: {},
|
|
1946
|
+
explicitPathsToArguments: { orderId: "$[0]", amount: "$[1]" },
|
|
1947
|
+
singleArgumentUnchanged: false
|
|
1948
|
+
},
|
|
1949
|
+
["orderId", "amount"]
|
|
1950
|
+
);
|
|
1951
|
+
sideEffects?.onError?.(err);
|
|
1952
|
+
throw transformedError;
|
|
1953
|
+
}
|
|
1954
|
+
}
|
|
1955
|
+
async function paymentCollectionMarkOrderAsPaid2(ecomOrderId) {
|
|
1956
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1957
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1958
|
+
ecomOrderId
|
|
1959
|
+
});
|
|
1960
|
+
const reqOpts = paymentCollectionMarkOrderAsPaid(payload);
|
|
1961
|
+
sideEffects?.onSiteCall?.();
|
|
1962
|
+
try {
|
|
1963
|
+
const result = await httpClient.request(reqOpts);
|
|
1964
|
+
sideEffects?.onSuccess?.(result);
|
|
1965
|
+
return renameKeysFromRESTResponseToSDKResponse(
|
|
1966
|
+
transformPaths2(result.data, [
|
|
1967
|
+
{
|
|
1968
|
+
transformFn: transformRESTImageToSDKImage,
|
|
1969
|
+
paths: [{ path: "order.lineItems.image" }]
|
|
1970
|
+
},
|
|
1971
|
+
{
|
|
1972
|
+
transformFn: transformRESTAddressToSDKAddress,
|
|
1973
|
+
paths: [
|
|
1974
|
+
{ path: "order.billingInfo.address" },
|
|
1975
|
+
{
|
|
1976
|
+
path: "order.shippingInfo.logistics.shippingDestination.address"
|
|
1977
|
+
},
|
|
1978
|
+
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
1979
|
+
{ path: "order.recipientInfo.address" }
|
|
1980
|
+
]
|
|
1981
|
+
}
|
|
1982
|
+
])
|
|
1983
|
+
);
|
|
1984
|
+
} catch (err) {
|
|
1985
|
+
const transformedError = sdkTransformError(
|
|
1986
|
+
err,
|
|
1987
|
+
{
|
|
1988
|
+
spreadPathsToArguments: {},
|
|
1989
|
+
explicitPathsToArguments: { ecomOrderId: "$[0]" },
|
|
1990
|
+
singleArgumentUnchanged: false
|
|
1991
|
+
},
|
|
1992
|
+
["ecomOrderId"]
|
|
1993
|
+
);
|
|
1994
|
+
sideEffects?.onError?.(err);
|
|
1995
|
+
throw transformedError;
|
|
1996
|
+
}
|
|
1997
|
+
}
|
|
1998
|
+
async function paymentCollectionBulkMarkOrdersAsPaid2(ecomOrderIds) {
|
|
1999
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
2000
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2001
|
+
ecomOrderIds
|
|
2002
|
+
});
|
|
2003
|
+
const reqOpts = paymentCollectionBulkMarkOrdersAsPaid(payload);
|
|
2004
|
+
sideEffects?.onSiteCall?.();
|
|
2005
|
+
try {
|
|
2006
|
+
const result = await httpClient.request(reqOpts);
|
|
2007
|
+
sideEffects?.onSuccess?.(result);
|
|
2008
|
+
return renameKeysFromRESTResponseToSDKResponse(
|
|
2009
|
+
transformPaths2(result.data, [
|
|
2010
|
+
{
|
|
2011
|
+
transformFn: transformRESTImageToSDKImage,
|
|
2012
|
+
paths: [{ path: "results.item.lineItems.image" }]
|
|
2013
|
+
},
|
|
2014
|
+
{
|
|
2015
|
+
transformFn: transformRESTAddressToSDKAddress,
|
|
2016
|
+
paths: [
|
|
2017
|
+
{ path: "results.item.billingInfo.address" },
|
|
2018
|
+
{
|
|
2019
|
+
path: "results.item.shippingInfo.logistics.shippingDestination.address"
|
|
2020
|
+
},
|
|
2021
|
+
{
|
|
2022
|
+
path: "results.item.shippingInfo.logistics.pickupDetails.address"
|
|
2023
|
+
},
|
|
2024
|
+
{ path: "results.item.recipientInfo.address" }
|
|
2025
|
+
]
|
|
2026
|
+
}
|
|
2027
|
+
])
|
|
2028
|
+
);
|
|
2029
|
+
} catch (err) {
|
|
2030
|
+
const transformedError = sdkTransformError(
|
|
2031
|
+
err,
|
|
2032
|
+
{
|
|
2033
|
+
spreadPathsToArguments: {},
|
|
2034
|
+
explicitPathsToArguments: { ecomOrderIds: "$[0]" },
|
|
2035
|
+
singleArgumentUnchanged: false
|
|
2036
|
+
},
|
|
2037
|
+
["ecomOrderIds"]
|
|
2038
|
+
);
|
|
2039
|
+
sideEffects?.onError?.(err);
|
|
2040
|
+
throw transformedError;
|
|
2041
|
+
}
|
|
2042
|
+
}
|
|
2043
|
+
async function getRefundabilityStatus2(ecomOrderId) {
|
|
2044
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
2045
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2046
|
+
ecomOrderId
|
|
2047
|
+
});
|
|
2048
|
+
const reqOpts = getRefundabilityStatus(payload);
|
|
2049
|
+
sideEffects?.onSiteCall?.();
|
|
2050
|
+
try {
|
|
2051
|
+
const result = await httpClient.request(reqOpts);
|
|
2052
|
+
sideEffects?.onSuccess?.(result);
|
|
2053
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
2054
|
+
} catch (err) {
|
|
2055
|
+
const transformedError = sdkTransformError(
|
|
2056
|
+
err,
|
|
2057
|
+
{
|
|
2058
|
+
spreadPathsToArguments: {},
|
|
2059
|
+
explicitPathsToArguments: { ecomOrderId: "$[0]" },
|
|
2060
|
+
singleArgumentUnchanged: false
|
|
2061
|
+
},
|
|
2062
|
+
["ecomOrderId"]
|
|
2063
|
+
);
|
|
2064
|
+
sideEffects?.onError?.(err);
|
|
2065
|
+
throw transformedError;
|
|
2066
|
+
}
|
|
2067
|
+
}
|
|
2068
|
+
async function paymentCollectionCreatePaymentGatewayOrder2(ecomOrderId, options) {
|
|
2069
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2070
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2071
|
+
ecomOrderId,
|
|
2072
|
+
chargedBy: options?.chargedBy
|
|
2073
|
+
});
|
|
2074
|
+
const reqOpts = paymentCollectionCreatePaymentGatewayOrder(
|
|
2075
|
+
payload
|
|
2076
|
+
);
|
|
2077
|
+
sideEffects?.onSiteCall?.();
|
|
2078
|
+
try {
|
|
2079
|
+
const result = await httpClient.request(reqOpts);
|
|
2080
|
+
sideEffects?.onSuccess?.(result);
|
|
2081
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
2082
|
+
} catch (err) {
|
|
2083
|
+
const transformedError = sdkTransformError(
|
|
2084
|
+
err,
|
|
2085
|
+
{
|
|
2086
|
+
spreadPathsToArguments: {},
|
|
2087
|
+
explicitPathsToArguments: {
|
|
2088
|
+
ecomOrderId: "$[0]",
|
|
2089
|
+
chargedBy: "$[1].chargedBy"
|
|
2090
|
+
},
|
|
2091
|
+
singleArgumentUnchanged: false
|
|
2092
|
+
},
|
|
2093
|
+
["ecomOrderId", "options"]
|
|
2094
|
+
);
|
|
2095
|
+
sideEffects?.onError?.(err);
|
|
2096
|
+
throw transformedError;
|
|
2097
|
+
}
|
|
2098
|
+
}
|
|
2099
|
+
async function chargeMemberships2(ecomOrderId, memberId, options) {
|
|
2100
|
+
const { httpClient, sideEffects } = arguments[3];
|
|
2101
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2102
|
+
ecomOrderId,
|
|
2103
|
+
memberId,
|
|
2104
|
+
membershipCharges: options?.membershipCharges
|
|
2105
|
+
});
|
|
2106
|
+
const reqOpts = chargeMemberships(payload);
|
|
2107
|
+
sideEffects?.onSiteCall?.();
|
|
2108
|
+
try {
|
|
2109
|
+
const result = await httpClient.request(reqOpts);
|
|
2110
|
+
sideEffects?.onSuccess?.(result);
|
|
2111
|
+
} catch (err) {
|
|
2112
|
+
const transformedError = sdkTransformError(
|
|
2113
|
+
err,
|
|
2114
|
+
{
|
|
2115
|
+
spreadPathsToArguments: {},
|
|
2116
|
+
explicitPathsToArguments: {
|
|
2117
|
+
ecomOrderId: "$[0]",
|
|
2118
|
+
memberId: "$[1]",
|
|
2119
|
+
membershipCharges: "$[2].membershipCharges"
|
|
2120
|
+
},
|
|
2121
|
+
singleArgumentUnchanged: false
|
|
2122
|
+
},
|
|
2123
|
+
["ecomOrderId", "memberId", "options"]
|
|
2124
|
+
);
|
|
2125
|
+
sideEffects?.onError?.(err);
|
|
2126
|
+
throw transformedError;
|
|
2127
|
+
}
|
|
2128
|
+
}
|
|
2129
|
+
async function triggerRefund2(ecomOrderId, payments, options) {
|
|
2130
|
+
const { httpClient, sideEffects } = arguments[3];
|
|
2131
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2132
|
+
ecomOrderId,
|
|
2133
|
+
payments,
|
|
2134
|
+
details: options?.details,
|
|
2135
|
+
sideEffects: options?.sideEffects
|
|
2136
|
+
});
|
|
2137
|
+
const reqOpts = triggerRefund(payload);
|
|
2138
|
+
sideEffects?.onSiteCall?.();
|
|
2139
|
+
try {
|
|
2140
|
+
const result = await httpClient.request(reqOpts);
|
|
2141
|
+
sideEffects?.onSuccess?.(result);
|
|
2142
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
2143
|
+
} catch (err) {
|
|
2144
|
+
const transformedError = sdkTransformError(
|
|
2145
|
+
err,
|
|
2146
|
+
{
|
|
2147
|
+
spreadPathsToArguments: {},
|
|
2148
|
+
explicitPathsToArguments: {
|
|
2149
|
+
ecomOrderId: "$[0]",
|
|
2150
|
+
payments: "$[1]",
|
|
2151
|
+
details: "$[2].details",
|
|
2152
|
+
sideEffects: "$[2].sideEffects"
|
|
2153
|
+
},
|
|
2154
|
+
singleArgumentUnchanged: false
|
|
2155
|
+
},
|
|
2156
|
+
["ecomOrderId", "payments", "options"]
|
|
2157
|
+
);
|
|
2158
|
+
sideEffects?.onError?.(err);
|
|
2159
|
+
throw transformedError;
|
|
2160
|
+
}
|
|
2161
|
+
}
|
|
2162
|
+
async function voidAuthorizedPayments2(ecomOrderId, paymentIds) {
|
|
2163
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2164
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2165
|
+
ecomOrderId,
|
|
2166
|
+
paymentIds
|
|
2167
|
+
});
|
|
2168
|
+
const reqOpts = voidAuthorizedPayments(payload);
|
|
2169
|
+
sideEffects?.onSiteCall?.();
|
|
2170
|
+
try {
|
|
2171
|
+
const result = await httpClient.request(reqOpts);
|
|
2172
|
+
sideEffects?.onSuccess?.(result);
|
|
2173
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
2174
|
+
} catch (err) {
|
|
2175
|
+
const transformedError = sdkTransformError(
|
|
2176
|
+
err,
|
|
2177
|
+
{
|
|
2178
|
+
spreadPathsToArguments: {},
|
|
2179
|
+
explicitPathsToArguments: { ecomOrderId: "$[0]", paymentIds: "$[1]" },
|
|
2180
|
+
singleArgumentUnchanged: false
|
|
2181
|
+
},
|
|
2182
|
+
["ecomOrderId", "paymentIds"]
|
|
2183
|
+
);
|
|
2184
|
+
sideEffects?.onError?.(err);
|
|
2185
|
+
throw transformedError;
|
|
2186
|
+
}
|
|
2187
|
+
}
|
|
2188
|
+
async function captureAuthorizedPayments2(ecomOrderId, payments) {
|
|
2189
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2190
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2191
|
+
ecomOrderId,
|
|
2192
|
+
payments
|
|
2193
|
+
});
|
|
2194
|
+
const reqOpts = captureAuthorizedPayments(payload);
|
|
2195
|
+
sideEffects?.onSiteCall?.();
|
|
2196
|
+
try {
|
|
2197
|
+
const result = await httpClient.request(reqOpts);
|
|
2198
|
+
sideEffects?.onSuccess?.(result);
|
|
2199
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
2200
|
+
} catch (err) {
|
|
2201
|
+
const transformedError = sdkTransformError(
|
|
2202
|
+
err,
|
|
2203
|
+
{
|
|
2204
|
+
spreadPathsToArguments: {},
|
|
2205
|
+
explicitPathsToArguments: { ecomOrderId: "$[0]", payments: "$[1]" },
|
|
2206
|
+
singleArgumentUnchanged: false
|
|
2207
|
+
},
|
|
2208
|
+
["ecomOrderId", "payments"]
|
|
2209
|
+
);
|
|
2210
|
+
sideEffects?.onError?.(err);
|
|
2211
|
+
throw transformedError;
|
|
2212
|
+
}
|
|
2213
|
+
}
|
|
2214
|
+
async function getOrder2(_id) {
|
|
2215
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
2216
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({ id: _id });
|
|
2217
|
+
const reqOpts = getOrder(payload);
|
|
2218
|
+
sideEffects?.onSiteCall?.();
|
|
2219
|
+
try {
|
|
2220
|
+
const result = await httpClient.request(reqOpts);
|
|
2221
|
+
sideEffects?.onSuccess?.(result);
|
|
2222
|
+
return renameKeysFromRESTResponseToSDKResponse(
|
|
2223
|
+
transformPaths2(result.data, [
|
|
2224
|
+
{
|
|
2225
|
+
transformFn: transformRESTImageToSDKImage,
|
|
2226
|
+
paths: [{ path: "order.lineItems.image" }]
|
|
2227
|
+
},
|
|
2228
|
+
{
|
|
2229
|
+
transformFn: transformRESTAddressToSDKAddress,
|
|
2230
|
+
paths: [
|
|
2231
|
+
{ path: "order.billingInfo.address" },
|
|
2232
|
+
{
|
|
2233
|
+
path: "order.shippingInfo.logistics.shippingDestination.address"
|
|
2234
|
+
},
|
|
2235
|
+
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
2236
|
+
{ path: "order.recipientInfo.address" }
|
|
2237
|
+
]
|
|
2238
|
+
}
|
|
2239
|
+
])
|
|
2240
|
+
)?.order;
|
|
2241
|
+
} catch (err) {
|
|
2242
|
+
const transformedError = sdkTransformError(
|
|
2243
|
+
err,
|
|
2244
|
+
{
|
|
2245
|
+
spreadPathsToArguments: {},
|
|
2246
|
+
explicitPathsToArguments: { id: "$[0]" },
|
|
2247
|
+
singleArgumentUnchanged: false
|
|
2248
|
+
},
|
|
2249
|
+
["_id"]
|
|
2250
|
+
);
|
|
2251
|
+
sideEffects?.onError?.(err);
|
|
2252
|
+
throw transformedError;
|
|
2253
|
+
}
|
|
2254
|
+
}
|
|
2255
|
+
async function searchOrders2(search) {
|
|
2256
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
2257
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({ search });
|
|
2258
|
+
const reqOpts = searchOrders(payload);
|
|
2259
|
+
sideEffects?.onSiteCall?.();
|
|
2260
|
+
try {
|
|
2261
|
+
const result = await httpClient.request(reqOpts);
|
|
2262
|
+
sideEffects?.onSuccess?.(result);
|
|
2263
|
+
return renameKeysFromRESTResponseToSDKResponse(
|
|
2264
|
+
transformPaths2(result.data, [
|
|
2265
|
+
{
|
|
2266
|
+
transformFn: transformRESTImageToSDKImage,
|
|
2267
|
+
paths: [{ path: "orders.lineItems.image" }]
|
|
2268
|
+
},
|
|
2269
|
+
{
|
|
2270
|
+
transformFn: transformRESTAddressToSDKAddress,
|
|
2271
|
+
paths: [
|
|
2272
|
+
{ path: "orders.billingInfo.address" },
|
|
2273
|
+
{
|
|
2274
|
+
path: "orders.shippingInfo.logistics.shippingDestination.address"
|
|
2275
|
+
},
|
|
2276
|
+
{ path: "orders.shippingInfo.logistics.pickupDetails.address" },
|
|
2277
|
+
{ path: "orders.recipientInfo.address" }
|
|
2278
|
+
]
|
|
2279
|
+
}
|
|
2280
|
+
])
|
|
2281
|
+
);
|
|
2282
|
+
} catch (err) {
|
|
2283
|
+
const transformedError = sdkTransformError(
|
|
2284
|
+
err,
|
|
2285
|
+
{
|
|
2286
|
+
spreadPathsToArguments: {},
|
|
2287
|
+
explicitPathsToArguments: { search: "$[0]" },
|
|
2288
|
+
singleArgumentUnchanged: false
|
|
2289
|
+
},
|
|
2290
|
+
["search"]
|
|
2291
|
+
);
|
|
2292
|
+
sideEffects?.onError?.(err);
|
|
2293
|
+
throw transformedError;
|
|
2294
|
+
}
|
|
2295
|
+
}
|
|
2296
|
+
async function createOrder2(order, options) {
|
|
2297
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2298
|
+
const payload = transformPaths2(
|
|
2299
|
+
renameKeysFromSDKRequestToRESTRequest({
|
|
2300
|
+
order,
|
|
2301
|
+
settings: options?.settings
|
|
2302
|
+
}),
|
|
2303
|
+
[
|
|
2304
|
+
{
|
|
2305
|
+
transformFn: transformSDKImageToRESTImage,
|
|
2306
|
+
paths: [{ path: "order.lineItems.image" }]
|
|
2307
|
+
},
|
|
2308
|
+
{
|
|
2309
|
+
transformFn: transformSDKAddressToRESTAddress,
|
|
2310
|
+
paths: [
|
|
2311
|
+
{ path: "order.billingInfo.address" },
|
|
2312
|
+
{ path: "order.shippingInfo.logistics.shippingDestination.address" },
|
|
2313
|
+
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
2314
|
+
{ path: "order.recipientInfo.address" }
|
|
2315
|
+
]
|
|
2316
|
+
}
|
|
2317
|
+
]
|
|
2318
|
+
);
|
|
2319
|
+
const reqOpts = createOrder(payload);
|
|
2320
|
+
sideEffects?.onSiteCall?.();
|
|
2321
|
+
try {
|
|
2322
|
+
const result = await httpClient.request(reqOpts);
|
|
2323
|
+
sideEffects?.onSuccess?.(result);
|
|
2324
|
+
return renameKeysFromRESTResponseToSDKResponse(
|
|
2325
|
+
transformPaths2(result.data, [
|
|
2326
|
+
{
|
|
2327
|
+
transformFn: transformRESTImageToSDKImage,
|
|
2328
|
+
paths: [{ path: "order.lineItems.image" }]
|
|
2329
|
+
},
|
|
2330
|
+
{
|
|
2331
|
+
transformFn: transformRESTAddressToSDKAddress,
|
|
2332
|
+
paths: [
|
|
2333
|
+
{ path: "order.billingInfo.address" },
|
|
2334
|
+
{
|
|
2335
|
+
path: "order.shippingInfo.logistics.shippingDestination.address"
|
|
2336
|
+
},
|
|
2337
|
+
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
2338
|
+
{ path: "order.recipientInfo.address" }
|
|
2339
|
+
]
|
|
2340
|
+
}
|
|
2341
|
+
])
|
|
2342
|
+
)?.order;
|
|
2343
|
+
} catch (err) {
|
|
2344
|
+
const transformedError = sdkTransformError(
|
|
2345
|
+
err,
|
|
2346
|
+
{
|
|
2347
|
+
spreadPathsToArguments: {},
|
|
2348
|
+
explicitPathsToArguments: { order: "$[0]", settings: "$[1].settings" },
|
|
2349
|
+
singleArgumentUnchanged: false
|
|
2350
|
+
},
|
|
2351
|
+
["order", "options"]
|
|
2352
|
+
);
|
|
2353
|
+
sideEffects?.onError?.(err);
|
|
2354
|
+
throw transformedError;
|
|
2355
|
+
}
|
|
2356
|
+
}
|
|
2357
|
+
async function updateOrder2(_id, order) {
|
|
2358
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2359
|
+
const payload = transformPaths2(
|
|
2360
|
+
renameKeysFromSDKRequestToRESTRequest({ order: { ...order, id: _id } }),
|
|
2361
|
+
[
|
|
2362
|
+
{
|
|
2363
|
+
transformFn: transformSDKImageToRESTImage,
|
|
2364
|
+
paths: [{ path: "order.lineItems.image" }]
|
|
2365
|
+
},
|
|
2366
|
+
{
|
|
2367
|
+
transformFn: transformSDKAddressToRESTAddress,
|
|
2368
|
+
paths: [
|
|
2369
|
+
{ path: "order.billingInfo.address" },
|
|
2370
|
+
{ path: "order.shippingInfo.logistics.shippingDestination.address" },
|
|
2371
|
+
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
2372
|
+
{ path: "order.recipientInfo.address" }
|
|
2373
|
+
]
|
|
2374
|
+
}
|
|
2375
|
+
]
|
|
2376
|
+
);
|
|
2377
|
+
const reqOpts = updateOrder(payload);
|
|
2378
|
+
sideEffects?.onSiteCall?.();
|
|
2379
|
+
try {
|
|
2380
|
+
const result = await httpClient.request(reqOpts);
|
|
2381
|
+
sideEffects?.onSuccess?.(result);
|
|
2382
|
+
return renameKeysFromRESTResponseToSDKResponse(
|
|
2383
|
+
transformPaths2(result.data, [
|
|
2384
|
+
{
|
|
2385
|
+
transformFn: transformRESTImageToSDKImage,
|
|
2386
|
+
paths: [{ path: "order.lineItems.image" }]
|
|
2387
|
+
},
|
|
2388
|
+
{
|
|
2389
|
+
transformFn: transformRESTAddressToSDKAddress,
|
|
2390
|
+
paths: [
|
|
2391
|
+
{ path: "order.billingInfo.address" },
|
|
2392
|
+
{
|
|
2393
|
+
path: "order.shippingInfo.logistics.shippingDestination.address"
|
|
2394
|
+
},
|
|
2395
|
+
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
2396
|
+
{ path: "order.recipientInfo.address" }
|
|
2397
|
+
]
|
|
2398
|
+
}
|
|
2399
|
+
])
|
|
2400
|
+
)?.order;
|
|
2401
|
+
} catch (err) {
|
|
2402
|
+
const transformedError = sdkTransformError(
|
|
2403
|
+
err,
|
|
2404
|
+
{
|
|
2405
|
+
spreadPathsToArguments: { order: "$[1]" },
|
|
2406
|
+
explicitPathsToArguments: { "order.id": "$[0]" },
|
|
2407
|
+
singleArgumentUnchanged: false
|
|
2408
|
+
},
|
|
2409
|
+
["_id", "order"]
|
|
2410
|
+
);
|
|
2411
|
+
sideEffects?.onError?.(err);
|
|
2412
|
+
throw transformedError;
|
|
2413
|
+
}
|
|
2414
|
+
}
|
|
2415
|
+
async function bulkUpdateOrders2(orders, options) {
|
|
2416
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2417
|
+
const payload = transformPaths2(
|
|
2418
|
+
renameKeysFromSDKRequestToRESTRequest({
|
|
2419
|
+
orders,
|
|
2420
|
+
returnEntity: options?.returnEntity
|
|
2421
|
+
}),
|
|
2422
|
+
[
|
|
2423
|
+
{
|
|
2424
|
+
transformFn: transformSDKImageToRESTImage,
|
|
2425
|
+
paths: [{ path: "orders.order.lineItems.image" }]
|
|
2426
|
+
},
|
|
2427
|
+
{
|
|
2428
|
+
transformFn: transformSDKAddressToRESTAddress,
|
|
2429
|
+
paths: [
|
|
2430
|
+
{ path: "orders.order.billingInfo.address" },
|
|
2431
|
+
{
|
|
2432
|
+
path: "orders.order.shippingInfo.logistics.shippingDestination.address"
|
|
2433
|
+
},
|
|
2434
|
+
{ path: "orders.order.shippingInfo.logistics.pickupDetails.address" },
|
|
2435
|
+
{ path: "orders.order.recipientInfo.address" }
|
|
2436
|
+
]
|
|
2437
|
+
}
|
|
2438
|
+
]
|
|
2439
|
+
);
|
|
2440
|
+
const reqOpts = bulkUpdateOrders(payload);
|
|
2441
|
+
sideEffects?.onSiteCall?.();
|
|
2442
|
+
try {
|
|
2443
|
+
const result = await httpClient.request(reqOpts);
|
|
2444
|
+
sideEffects?.onSuccess?.(result);
|
|
2445
|
+
return renameKeysFromRESTResponseToSDKResponse(
|
|
2446
|
+
transformPaths2(result.data, [
|
|
2447
|
+
{
|
|
2448
|
+
transformFn: transformRESTImageToSDKImage,
|
|
2449
|
+
paths: [{ path: "results.item.lineItems.image" }]
|
|
2450
|
+
},
|
|
2451
|
+
{
|
|
2452
|
+
transformFn: transformRESTAddressToSDKAddress,
|
|
2453
|
+
paths: [
|
|
2454
|
+
{ path: "results.item.billingInfo.address" },
|
|
2455
|
+
{
|
|
2456
|
+
path: "results.item.shippingInfo.logistics.shippingDestination.address"
|
|
2457
|
+
},
|
|
2458
|
+
{
|
|
2459
|
+
path: "results.item.shippingInfo.logistics.pickupDetails.address"
|
|
2460
|
+
},
|
|
2461
|
+
{ path: "results.item.recipientInfo.address" }
|
|
2462
|
+
]
|
|
2463
|
+
}
|
|
2464
|
+
])
|
|
2465
|
+
);
|
|
2466
|
+
} catch (err) {
|
|
2467
|
+
const transformedError = sdkTransformError(
|
|
2468
|
+
err,
|
|
2469
|
+
{
|
|
2470
|
+
spreadPathsToArguments: {},
|
|
2471
|
+
explicitPathsToArguments: {
|
|
2472
|
+
orders: "$[0]",
|
|
2473
|
+
returnEntity: "$[1].returnEntity"
|
|
2474
|
+
},
|
|
2475
|
+
singleArgumentUnchanged: false
|
|
2476
|
+
},
|
|
2477
|
+
["orders", "options"]
|
|
2478
|
+
);
|
|
2479
|
+
sideEffects?.onError?.(err);
|
|
2480
|
+
throw transformedError;
|
|
2481
|
+
}
|
|
2482
|
+
}
|
|
2483
|
+
async function commitDeltas2(_id, options) {
|
|
2484
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2485
|
+
const payload = transformPaths2(
|
|
2486
|
+
renameKeysFromSDKRequestToRESTRequest({
|
|
2487
|
+
id: _id,
|
|
2488
|
+
draftOrderId: options?.draftOrderId,
|
|
2489
|
+
changes: options?.changes,
|
|
2490
|
+
commitSettings: options?.commitSettings,
|
|
2491
|
+
reason: options?.reason
|
|
2492
|
+
}),
|
|
2493
|
+
[
|
|
2494
|
+
{
|
|
2495
|
+
transformFn: transformSDKAddressToRESTAddress,
|
|
2496
|
+
paths: [
|
|
2497
|
+
{
|
|
2498
|
+
path: "changes.changedShippingInfo.logistics.shippingDestination.address"
|
|
2499
|
+
},
|
|
2500
|
+
{
|
|
2501
|
+
path: "changes.changedShippingInfo.logistics.pickupDetails.address"
|
|
2502
|
+
},
|
|
2503
|
+
{ path: "changes.changedBillingInfo.address" },
|
|
2504
|
+
{ path: "changes.changedRecipientInfo.address" }
|
|
2505
|
+
]
|
|
2506
|
+
},
|
|
2507
|
+
{
|
|
2508
|
+
transformFn: transformSDKImageToRESTImage,
|
|
2509
|
+
paths: [{ path: "changes.lineItems.lineItem.image" }]
|
|
2510
|
+
}
|
|
2511
|
+
]
|
|
2512
|
+
);
|
|
2513
|
+
const reqOpts = commitDeltas(payload);
|
|
2514
|
+
sideEffects?.onSiteCall?.();
|
|
2515
|
+
try {
|
|
2516
|
+
const result = await httpClient.request(reqOpts);
|
|
2517
|
+
sideEffects?.onSuccess?.(result);
|
|
2518
|
+
return renameKeysFromRESTResponseToSDKResponse(
|
|
2519
|
+
transformPaths2(result.data, [
|
|
2520
|
+
{
|
|
2521
|
+
transformFn: transformRESTImageToSDKImage,
|
|
2522
|
+
paths: [{ path: "order.lineItems.image" }]
|
|
2523
|
+
},
|
|
2524
|
+
{
|
|
2525
|
+
transformFn: transformRESTAddressToSDKAddress,
|
|
2526
|
+
paths: [
|
|
2527
|
+
{ path: "order.billingInfo.address" },
|
|
2528
|
+
{
|
|
2529
|
+
path: "order.shippingInfo.logistics.shippingDestination.address"
|
|
2530
|
+
},
|
|
2531
|
+
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
2532
|
+
{ path: "order.recipientInfo.address" }
|
|
2533
|
+
]
|
|
2534
|
+
}
|
|
2535
|
+
])
|
|
2536
|
+
);
|
|
2537
|
+
} catch (err) {
|
|
2538
|
+
const transformedError = sdkTransformError(
|
|
2539
|
+
err,
|
|
2540
|
+
{
|
|
2541
|
+
spreadPathsToArguments: {},
|
|
2542
|
+
explicitPathsToArguments: {
|
|
2543
|
+
id: "$[0]",
|
|
2544
|
+
draftOrderId: "$[1].draftOrderId",
|
|
2545
|
+
changes: "$[1].changes",
|
|
2546
|
+
commitSettings: "$[1].commitSettings",
|
|
2547
|
+
reason: "$[1].reason"
|
|
2548
|
+
},
|
|
2549
|
+
singleArgumentUnchanged: false
|
|
2550
|
+
},
|
|
2551
|
+
["_id", "options"]
|
|
2552
|
+
);
|
|
2553
|
+
sideEffects?.onError?.(err);
|
|
2554
|
+
throw transformedError;
|
|
2555
|
+
}
|
|
2556
|
+
}
|
|
2557
|
+
async function updateOrderLineItem2(identifiers, lineItem) {
|
|
2558
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2559
|
+
const payload = transformPaths2(
|
|
2560
|
+
renameKeysFromSDKRequestToRESTRequest({
|
|
2561
|
+
id: identifiers?._id,
|
|
2562
|
+
lineItem: { ...lineItem, id: identifiers?.lineItemId }
|
|
2563
|
+
}),
|
|
2564
|
+
[
|
|
2565
|
+
{
|
|
2566
|
+
transformFn: transformSDKImageToRESTImage,
|
|
2567
|
+
paths: [{ path: "lineItem.image" }]
|
|
2568
|
+
}
|
|
2569
|
+
]
|
|
2570
|
+
);
|
|
2571
|
+
const reqOpts = updateOrderLineItem(payload);
|
|
2572
|
+
sideEffects?.onSiteCall?.();
|
|
2573
|
+
try {
|
|
2574
|
+
const result = await httpClient.request(reqOpts);
|
|
2575
|
+
sideEffects?.onSuccess?.(result);
|
|
2576
|
+
return renameKeysFromRESTResponseToSDKResponse(
|
|
2577
|
+
transformPaths2(result.data, [
|
|
2578
|
+
{
|
|
2579
|
+
transformFn: transformRESTImageToSDKImage,
|
|
2580
|
+
paths: [{ path: "order.lineItems.image" }]
|
|
2581
|
+
},
|
|
2582
|
+
{
|
|
2583
|
+
transformFn: transformRESTAddressToSDKAddress,
|
|
2584
|
+
paths: [
|
|
2585
|
+
{ path: "order.billingInfo.address" },
|
|
2586
|
+
{
|
|
2587
|
+
path: "order.shippingInfo.logistics.shippingDestination.address"
|
|
2588
|
+
},
|
|
2589
|
+
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
2590
|
+
{ path: "order.recipientInfo.address" }
|
|
2591
|
+
]
|
|
2592
|
+
}
|
|
2593
|
+
])
|
|
2594
|
+
);
|
|
2595
|
+
} catch (err) {
|
|
2596
|
+
const transformedError = sdkTransformError(
|
|
2597
|
+
err,
|
|
2598
|
+
{
|
|
2599
|
+
spreadPathsToArguments: { lineItem: "$[1]" },
|
|
2600
|
+
explicitPathsToArguments: {
|
|
2601
|
+
id: "$[0]._id",
|
|
2602
|
+
"lineItem.id": "$[0].lineItemId"
|
|
2603
|
+
},
|
|
2604
|
+
singleArgumentUnchanged: false
|
|
2605
|
+
},
|
|
2606
|
+
["identifiers", "lineItem"]
|
|
2607
|
+
);
|
|
2608
|
+
sideEffects?.onError?.(err);
|
|
2609
|
+
throw transformedError;
|
|
2610
|
+
}
|
|
2611
|
+
}
|
|
2612
|
+
async function addActivity2(_id, activity) {
|
|
2613
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2614
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2615
|
+
id: _id,
|
|
2616
|
+
activity
|
|
2617
|
+
});
|
|
2618
|
+
const reqOpts = addActivity(payload);
|
|
2619
|
+
sideEffects?.onSiteCall?.();
|
|
2620
|
+
try {
|
|
2621
|
+
const result = await httpClient.request(reqOpts);
|
|
2622
|
+
sideEffects?.onSuccess?.(result);
|
|
2623
|
+
return renameKeysFromRESTResponseToSDKResponse(
|
|
2624
|
+
transformPaths2(result.data, [
|
|
2625
|
+
{
|
|
2626
|
+
transformFn: transformRESTImageToSDKImage,
|
|
2627
|
+
paths: [{ path: "order.lineItems.image" }]
|
|
2628
|
+
},
|
|
2629
|
+
{
|
|
2630
|
+
transformFn: transformRESTAddressToSDKAddress,
|
|
2631
|
+
paths: [
|
|
2632
|
+
{ path: "order.billingInfo.address" },
|
|
2633
|
+
{
|
|
2634
|
+
path: "order.shippingInfo.logistics.shippingDestination.address"
|
|
2635
|
+
},
|
|
2636
|
+
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
2637
|
+
{ path: "order.recipientInfo.address" }
|
|
2638
|
+
]
|
|
2639
|
+
}
|
|
2640
|
+
])
|
|
2641
|
+
);
|
|
2642
|
+
} catch (err) {
|
|
2643
|
+
const transformedError = sdkTransformError(
|
|
2644
|
+
err,
|
|
2645
|
+
{
|
|
2646
|
+
spreadPathsToArguments: {},
|
|
2647
|
+
explicitPathsToArguments: { id: "$[0]", activity: "$[1]" },
|
|
2648
|
+
singleArgumentUnchanged: false
|
|
2649
|
+
},
|
|
2650
|
+
["_id", "activity"]
|
|
2651
|
+
);
|
|
2652
|
+
sideEffects?.onError?.(err);
|
|
2653
|
+
throw transformedError;
|
|
2654
|
+
}
|
|
2655
|
+
}
|
|
2656
|
+
async function updateActivity2(identifiers, activity) {
|
|
2657
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2658
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2659
|
+
id: identifiers?._id,
|
|
2660
|
+
activityId: identifiers?.activityId,
|
|
2661
|
+
activity
|
|
2662
|
+
});
|
|
2663
|
+
const reqOpts = updateActivity(payload);
|
|
2664
|
+
sideEffects?.onSiteCall?.();
|
|
2665
|
+
try {
|
|
2666
|
+
const result = await httpClient.request(reqOpts);
|
|
2667
|
+
sideEffects?.onSuccess?.(result);
|
|
2668
|
+
return renameKeysFromRESTResponseToSDKResponse(
|
|
2669
|
+
transformPaths2(result.data, [
|
|
2670
|
+
{
|
|
2671
|
+
transformFn: transformRESTImageToSDKImage,
|
|
2672
|
+
paths: [{ path: "order.lineItems.image" }]
|
|
2673
|
+
},
|
|
2674
|
+
{
|
|
2675
|
+
transformFn: transformRESTAddressToSDKAddress,
|
|
2676
|
+
paths: [
|
|
2677
|
+
{ path: "order.billingInfo.address" },
|
|
2678
|
+
{
|
|
2679
|
+
path: "order.shippingInfo.logistics.shippingDestination.address"
|
|
2680
|
+
},
|
|
2681
|
+
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
2682
|
+
{ path: "order.recipientInfo.address" }
|
|
2683
|
+
]
|
|
2684
|
+
}
|
|
2685
|
+
])
|
|
2686
|
+
);
|
|
2687
|
+
} catch (err) {
|
|
2688
|
+
const transformedError = sdkTransformError(
|
|
2689
|
+
err,
|
|
2690
|
+
{
|
|
2691
|
+
spreadPathsToArguments: {},
|
|
2692
|
+
explicitPathsToArguments: {
|
|
2693
|
+
id: "$[0]._id",
|
|
2694
|
+
activityId: "$[0].activityId",
|
|
2695
|
+
activity: "$[1]"
|
|
2696
|
+
},
|
|
2697
|
+
singleArgumentUnchanged: false
|
|
2698
|
+
},
|
|
2699
|
+
["identifiers", "activity"]
|
|
2700
|
+
);
|
|
2701
|
+
sideEffects?.onError?.(err);
|
|
2702
|
+
throw transformedError;
|
|
2703
|
+
}
|
|
2704
|
+
}
|
|
2705
|
+
async function deleteActivity2(identifiers) {
|
|
2706
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
2707
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2708
|
+
id: identifiers?._id,
|
|
2709
|
+
activityId: identifiers?.activityId
|
|
2710
|
+
});
|
|
2711
|
+
const reqOpts = deleteActivity(payload);
|
|
2712
|
+
sideEffects?.onSiteCall?.();
|
|
2713
|
+
try {
|
|
2714
|
+
const result = await httpClient.request(reqOpts);
|
|
2715
|
+
sideEffects?.onSuccess?.(result);
|
|
2716
|
+
return renameKeysFromRESTResponseToSDKResponse(
|
|
2717
|
+
transformPaths2(result.data, [
|
|
2718
|
+
{
|
|
2719
|
+
transformFn: transformRESTImageToSDKImage,
|
|
2720
|
+
paths: [{ path: "order.lineItems.image" }]
|
|
2721
|
+
},
|
|
2722
|
+
{
|
|
2723
|
+
transformFn: transformRESTAddressToSDKAddress,
|
|
2724
|
+
paths: [
|
|
2725
|
+
{ path: "order.billingInfo.address" },
|
|
2726
|
+
{
|
|
2727
|
+
path: "order.shippingInfo.logistics.shippingDestination.address"
|
|
2728
|
+
},
|
|
2729
|
+
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
2730
|
+
{ path: "order.recipientInfo.address" }
|
|
2731
|
+
]
|
|
2732
|
+
}
|
|
2733
|
+
])
|
|
2734
|
+
);
|
|
2735
|
+
} catch (err) {
|
|
2736
|
+
const transformedError = sdkTransformError(
|
|
2737
|
+
err,
|
|
2738
|
+
{
|
|
2739
|
+
spreadPathsToArguments: {},
|
|
2740
|
+
explicitPathsToArguments: {
|
|
2741
|
+
id: "$[0]._id",
|
|
2742
|
+
activityId: "$[0].activityId"
|
|
2743
|
+
},
|
|
2744
|
+
singleArgumentUnchanged: false
|
|
2745
|
+
},
|
|
2746
|
+
["identifiers"]
|
|
2747
|
+
);
|
|
2748
|
+
sideEffects?.onError?.(err);
|
|
2749
|
+
throw transformedError;
|
|
2750
|
+
}
|
|
2751
|
+
}
|
|
2752
|
+
async function cancelOrder2(_id, options) {
|
|
2753
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2754
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2755
|
+
id: _id,
|
|
2756
|
+
sendOrderCanceledEmail: options?.sendOrderCanceledEmail,
|
|
2757
|
+
customMessage: options?.customMessage,
|
|
2758
|
+
restockAllItems: options?.restockAllItems
|
|
2759
|
+
});
|
|
2760
|
+
const reqOpts = cancelOrder(payload);
|
|
2761
|
+
sideEffects?.onSiteCall?.();
|
|
2762
|
+
try {
|
|
2763
|
+
const result = await httpClient.request(reqOpts);
|
|
2764
|
+
sideEffects?.onSuccess?.(result);
|
|
2765
|
+
return renameKeysFromRESTResponseToSDKResponse(
|
|
2766
|
+
transformPaths2(result.data, [
|
|
2767
|
+
{
|
|
2768
|
+
transformFn: transformRESTImageToSDKImage,
|
|
2769
|
+
paths: [{ path: "order.lineItems.image" }]
|
|
2770
|
+
},
|
|
2771
|
+
{
|
|
2772
|
+
transformFn: transformRESTAddressToSDKAddress,
|
|
2773
|
+
paths: [
|
|
2774
|
+
{ path: "order.billingInfo.address" },
|
|
2775
|
+
{
|
|
2776
|
+
path: "order.shippingInfo.logistics.shippingDestination.address"
|
|
2777
|
+
},
|
|
2778
|
+
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
2779
|
+
{ path: "order.recipientInfo.address" }
|
|
2780
|
+
]
|
|
2781
|
+
}
|
|
2782
|
+
])
|
|
2783
|
+
);
|
|
2784
|
+
} catch (err) {
|
|
2785
|
+
const transformedError = sdkTransformError(
|
|
2786
|
+
err,
|
|
2787
|
+
{
|
|
2788
|
+
spreadPathsToArguments: {},
|
|
2789
|
+
explicitPathsToArguments: {
|
|
2790
|
+
id: "$[0]",
|
|
2791
|
+
sendOrderCanceledEmail: "$[1].sendOrderCanceledEmail",
|
|
2792
|
+
customMessage: "$[1].customMessage",
|
|
2793
|
+
restockAllItems: "$[1].restockAllItems"
|
|
2794
|
+
},
|
|
2795
|
+
singleArgumentUnchanged: false
|
|
2796
|
+
},
|
|
2797
|
+
["_id", "options"]
|
|
2798
|
+
);
|
|
2799
|
+
sideEffects?.onError?.(err);
|
|
2800
|
+
throw transformedError;
|
|
2801
|
+
}
|
|
2802
|
+
}
|
|
2803
|
+
async function updateOrderStatus2(orderId, status) {
|
|
2804
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2805
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2806
|
+
orderId,
|
|
2807
|
+
status
|
|
2808
|
+
});
|
|
2809
|
+
const reqOpts = updateOrderStatus(payload);
|
|
2810
|
+
sideEffects?.onSiteCall?.();
|
|
2811
|
+
try {
|
|
2812
|
+
const result = await httpClient.request(reqOpts);
|
|
2813
|
+
sideEffects?.onSuccess?.(result);
|
|
2814
|
+
return renameKeysFromRESTResponseToSDKResponse(
|
|
2815
|
+
transformPaths2(result.data, [
|
|
2816
|
+
{
|
|
2817
|
+
transformFn: transformRESTImageToSDKImage,
|
|
2818
|
+
paths: [{ path: "order.lineItems.image" }]
|
|
2819
|
+
},
|
|
2820
|
+
{
|
|
2821
|
+
transformFn: transformRESTAddressToSDKAddress,
|
|
2822
|
+
paths: [
|
|
2823
|
+
{ path: "order.billingInfo.address" },
|
|
2824
|
+
{
|
|
2825
|
+
path: "order.shippingInfo.logistics.shippingDestination.address"
|
|
2826
|
+
},
|
|
2827
|
+
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
2828
|
+
{ path: "order.recipientInfo.address" }
|
|
2829
|
+
]
|
|
2830
|
+
}
|
|
2831
|
+
])
|
|
2832
|
+
);
|
|
2833
|
+
} catch (err) {
|
|
2834
|
+
const transformedError = sdkTransformError(
|
|
2835
|
+
err,
|
|
2836
|
+
{
|
|
2837
|
+
spreadPathsToArguments: {},
|
|
2838
|
+
explicitPathsToArguments: { orderId: "$[0]", status: "$[1]" },
|
|
2839
|
+
singleArgumentUnchanged: false
|
|
2840
|
+
},
|
|
2841
|
+
["orderId", "status"]
|
|
2842
|
+
);
|
|
2843
|
+
sideEffects?.onError?.(err);
|
|
2844
|
+
throw transformedError;
|
|
2845
|
+
}
|
|
2846
|
+
}
|
|
2847
|
+
async function aggregateOrders2(options) {
|
|
2848
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
2849
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2850
|
+
filter: options?.filter,
|
|
2851
|
+
aggregation: options?.aggregation,
|
|
2852
|
+
hierarchySeparatorOverride: options?.hierarchySeparatorOverride
|
|
2853
|
+
});
|
|
2854
|
+
const reqOpts = aggregateOrders(payload);
|
|
2855
|
+
sideEffects?.onSiteCall?.();
|
|
2856
|
+
try {
|
|
2857
|
+
const result = await httpClient.request(reqOpts);
|
|
2858
|
+
sideEffects?.onSuccess?.(result);
|
|
2859
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
2860
|
+
} catch (err) {
|
|
2861
|
+
const transformedError = sdkTransformError(
|
|
2862
|
+
err,
|
|
2863
|
+
{
|
|
2864
|
+
spreadPathsToArguments: {},
|
|
2865
|
+
explicitPathsToArguments: {
|
|
2866
|
+
filter: "$[0].filter",
|
|
2867
|
+
aggregation: "$[0].aggregation",
|
|
2868
|
+
hierarchySeparatorOverride: "$[0].hierarchySeparatorOverride"
|
|
2869
|
+
},
|
|
2870
|
+
singleArgumentUnchanged: false
|
|
2871
|
+
},
|
|
2872
|
+
["options"]
|
|
2873
|
+
);
|
|
2874
|
+
sideEffects?.onError?.(err);
|
|
2875
|
+
throw transformedError;
|
|
2876
|
+
}
|
|
2877
|
+
}
|
|
2878
|
+
async function bulkUpdateOrderTags2(orderIds, options) {
|
|
2879
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2880
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2881
|
+
orderIds,
|
|
2882
|
+
assignTags: options?.assignTags,
|
|
2883
|
+
unassignTags: options?.unassignTags
|
|
2884
|
+
});
|
|
2885
|
+
const reqOpts = bulkUpdateOrderTags(payload);
|
|
2886
|
+
sideEffects?.onSiteCall?.();
|
|
2887
|
+
try {
|
|
2888
|
+
const result = await httpClient.request(reqOpts);
|
|
2889
|
+
sideEffects?.onSuccess?.(result);
|
|
2890
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
2891
|
+
} catch (err) {
|
|
2892
|
+
const transformedError = sdkTransformError(
|
|
2893
|
+
err,
|
|
2894
|
+
{
|
|
2895
|
+
spreadPathsToArguments: {},
|
|
2896
|
+
explicitPathsToArguments: {
|
|
2897
|
+
orderIds: "$[0]",
|
|
2898
|
+
assignTags: "$[1].assignTags",
|
|
2899
|
+
unassignTags: "$[1].unassignTags"
|
|
2900
|
+
},
|
|
2901
|
+
singleArgumentUnchanged: false
|
|
2902
|
+
},
|
|
2903
|
+
["orderIds", "options"]
|
|
2904
|
+
);
|
|
2905
|
+
sideEffects?.onError?.(err);
|
|
2906
|
+
throw transformedError;
|
|
2907
|
+
}
|
|
2908
|
+
}
|
|
2909
|
+
|
|
2910
|
+
// src/ecom-v1-order-orders.public.ts
|
|
2911
|
+
function preparePaymentCollection3(httpClient) {
|
|
2912
|
+
return (ecomOrderId, amount, options) => preparePaymentCollection2(
|
|
2913
|
+
ecomOrderId,
|
|
2914
|
+
amount,
|
|
2915
|
+
options,
|
|
2916
|
+
// @ts-ignore
|
|
2917
|
+
{ httpClient }
|
|
2918
|
+
);
|
|
2919
|
+
}
|
|
2920
|
+
function getPaymentCollectabilityStatus3(httpClient) {
|
|
2921
|
+
return (ecomOrderId) => getPaymentCollectabilityStatus2(
|
|
2922
|
+
ecomOrderId,
|
|
2923
|
+
// @ts-ignore
|
|
2924
|
+
{ httpClient }
|
|
2925
|
+
);
|
|
2926
|
+
}
|
|
2927
|
+
function recordManuallyCollectedPayment3(httpClient) {
|
|
2928
|
+
return (orderId, amount) => recordManuallyCollectedPayment2(
|
|
2929
|
+
orderId,
|
|
2930
|
+
amount,
|
|
2931
|
+
// @ts-ignore
|
|
2932
|
+
{ httpClient }
|
|
2933
|
+
);
|
|
2934
|
+
}
|
|
2935
|
+
function paymentCollectionMarkOrderAsPaid3(httpClient) {
|
|
2936
|
+
return (ecomOrderId) => paymentCollectionMarkOrderAsPaid2(
|
|
2937
|
+
ecomOrderId,
|
|
2938
|
+
// @ts-ignore
|
|
2939
|
+
{ httpClient }
|
|
2940
|
+
);
|
|
2941
|
+
}
|
|
2942
|
+
function paymentCollectionBulkMarkOrdersAsPaid3(httpClient) {
|
|
2943
|
+
return (ecomOrderIds) => paymentCollectionBulkMarkOrdersAsPaid2(
|
|
2944
|
+
ecomOrderIds,
|
|
2945
|
+
// @ts-ignore
|
|
2946
|
+
{ httpClient }
|
|
2947
|
+
);
|
|
2948
|
+
}
|
|
2949
|
+
function getRefundabilityStatus3(httpClient) {
|
|
2950
|
+
return (ecomOrderId) => getRefundabilityStatus2(
|
|
2951
|
+
ecomOrderId,
|
|
2952
|
+
// @ts-ignore
|
|
2953
|
+
{ httpClient }
|
|
2954
|
+
);
|
|
2955
|
+
}
|
|
2956
|
+
function paymentCollectionCreatePaymentGatewayOrder3(httpClient) {
|
|
2957
|
+
return (ecomOrderId, options) => paymentCollectionCreatePaymentGatewayOrder2(
|
|
2958
|
+
ecomOrderId,
|
|
2959
|
+
options,
|
|
2960
|
+
// @ts-ignore
|
|
2961
|
+
{ httpClient }
|
|
2962
|
+
);
|
|
2963
|
+
}
|
|
2964
|
+
function chargeMemberships3(httpClient) {
|
|
2965
|
+
return (ecomOrderId, memberId, options) => chargeMemberships2(
|
|
2966
|
+
ecomOrderId,
|
|
2967
|
+
memberId,
|
|
2968
|
+
options,
|
|
2969
|
+
// @ts-ignore
|
|
2970
|
+
{ httpClient }
|
|
2971
|
+
);
|
|
2972
|
+
}
|
|
2973
|
+
function triggerRefund3(httpClient) {
|
|
2974
|
+
return (ecomOrderId, payments, options) => triggerRefund2(
|
|
2975
|
+
ecomOrderId,
|
|
2976
|
+
payments,
|
|
2977
|
+
options,
|
|
2978
|
+
// @ts-ignore
|
|
2979
|
+
{ httpClient }
|
|
2980
|
+
);
|
|
2981
|
+
}
|
|
2982
|
+
function voidAuthorizedPayments3(httpClient) {
|
|
2983
|
+
return (ecomOrderId, paymentIds) => voidAuthorizedPayments2(
|
|
2984
|
+
ecomOrderId,
|
|
2985
|
+
paymentIds,
|
|
2986
|
+
// @ts-ignore
|
|
2987
|
+
{ httpClient }
|
|
2988
|
+
);
|
|
2989
|
+
}
|
|
2990
|
+
function captureAuthorizedPayments3(httpClient) {
|
|
2991
|
+
return (ecomOrderId, payments) => captureAuthorizedPayments2(
|
|
2992
|
+
ecomOrderId,
|
|
2993
|
+
payments,
|
|
2994
|
+
// @ts-ignore
|
|
2995
|
+
{ httpClient }
|
|
2996
|
+
);
|
|
2997
|
+
}
|
|
2998
|
+
function getOrder3(httpClient) {
|
|
2999
|
+
return (_id) => getOrder2(
|
|
3000
|
+
_id,
|
|
3001
|
+
// @ts-ignore
|
|
3002
|
+
{ httpClient }
|
|
3003
|
+
);
|
|
3004
|
+
}
|
|
3005
|
+
function searchOrders3(httpClient) {
|
|
3006
|
+
return (search) => searchOrders2(
|
|
3007
|
+
search,
|
|
3008
|
+
// @ts-ignore
|
|
3009
|
+
{ httpClient }
|
|
3010
|
+
);
|
|
3011
|
+
}
|
|
3012
|
+
function createOrder3(httpClient) {
|
|
3013
|
+
return (order, options) => createOrder2(
|
|
3014
|
+
order,
|
|
3015
|
+
options,
|
|
3016
|
+
// @ts-ignore
|
|
3017
|
+
{ httpClient }
|
|
3018
|
+
);
|
|
3019
|
+
}
|
|
3020
|
+
function updateOrder3(httpClient) {
|
|
3021
|
+
return (_id, order) => updateOrder2(
|
|
3022
|
+
_id,
|
|
3023
|
+
order,
|
|
3024
|
+
// @ts-ignore
|
|
3025
|
+
{ httpClient }
|
|
3026
|
+
);
|
|
3027
|
+
}
|
|
3028
|
+
function bulkUpdateOrders3(httpClient) {
|
|
3029
|
+
return (orders, options) => bulkUpdateOrders2(
|
|
3030
|
+
orders,
|
|
3031
|
+
options,
|
|
3032
|
+
// @ts-ignore
|
|
3033
|
+
{ httpClient }
|
|
3034
|
+
);
|
|
3035
|
+
}
|
|
3036
|
+
function commitDeltas3(httpClient) {
|
|
3037
|
+
return (_id, options) => commitDeltas2(
|
|
3038
|
+
_id,
|
|
3039
|
+
options,
|
|
3040
|
+
// @ts-ignore
|
|
3041
|
+
{ httpClient }
|
|
3042
|
+
);
|
|
3043
|
+
}
|
|
3044
|
+
function updateOrderLineItem3(httpClient) {
|
|
3045
|
+
return (identifiers, lineItem) => updateOrderLineItem2(
|
|
3046
|
+
identifiers,
|
|
3047
|
+
lineItem,
|
|
3048
|
+
// @ts-ignore
|
|
3049
|
+
{ httpClient }
|
|
3050
|
+
);
|
|
3051
|
+
}
|
|
3052
|
+
function addActivity3(httpClient) {
|
|
3053
|
+
return (_id, activity) => addActivity2(
|
|
3054
|
+
_id,
|
|
3055
|
+
activity,
|
|
3056
|
+
// @ts-ignore
|
|
3057
|
+
{ httpClient }
|
|
3058
|
+
);
|
|
3059
|
+
}
|
|
3060
|
+
function updateActivity3(httpClient) {
|
|
3061
|
+
return (identifiers, activity) => updateActivity2(
|
|
3062
|
+
identifiers,
|
|
3063
|
+
activity,
|
|
3064
|
+
// @ts-ignore
|
|
3065
|
+
{ httpClient }
|
|
3066
|
+
);
|
|
3067
|
+
}
|
|
3068
|
+
function deleteActivity3(httpClient) {
|
|
3069
|
+
return (identifiers) => deleteActivity2(
|
|
3070
|
+
identifiers,
|
|
3071
|
+
// @ts-ignore
|
|
3072
|
+
{ httpClient }
|
|
3073
|
+
);
|
|
3074
|
+
}
|
|
3075
|
+
function cancelOrder3(httpClient) {
|
|
3076
|
+
return (_id, options) => cancelOrder2(
|
|
3077
|
+
_id,
|
|
3078
|
+
options,
|
|
3079
|
+
// @ts-ignore
|
|
3080
|
+
{ httpClient }
|
|
3081
|
+
);
|
|
3082
|
+
}
|
|
3083
|
+
function updateOrderStatus3(httpClient) {
|
|
3084
|
+
return (orderId, status) => updateOrderStatus2(
|
|
3085
|
+
orderId,
|
|
3086
|
+
status,
|
|
3087
|
+
// @ts-ignore
|
|
3088
|
+
{ httpClient }
|
|
3089
|
+
);
|
|
3090
|
+
}
|
|
3091
|
+
function aggregateOrders3(httpClient) {
|
|
3092
|
+
return (options) => aggregateOrders2(
|
|
3093
|
+
options,
|
|
3094
|
+
// @ts-ignore
|
|
3095
|
+
{ httpClient }
|
|
3096
|
+
);
|
|
3097
|
+
}
|
|
3098
|
+
function bulkUpdateOrderTags3(httpClient) {
|
|
3099
|
+
return (orderIds, options) => bulkUpdateOrderTags2(
|
|
3100
|
+
orderIds,
|
|
3101
|
+
options,
|
|
3102
|
+
// @ts-ignore
|
|
3103
|
+
{ httpClient }
|
|
3104
|
+
);
|
|
3105
|
+
}
|
|
3106
|
+
var onOrderApproved = EventDefinition(
|
|
3107
|
+
"wix.ecom.v1.order_approved",
|
|
3108
|
+
true,
|
|
3109
|
+
(event) => renameKeysFromRESTResponseToSDKResponse2(
|
|
3110
|
+
transformPaths3(event, [
|
|
3111
|
+
{
|
|
3112
|
+
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
3113
|
+
paths: [
|
|
3114
|
+
{ path: "data.order.createdDate" },
|
|
3115
|
+
{ path: "data.order.updatedDate" },
|
|
3116
|
+
{ path: "data.order.purchasedDate" },
|
|
3117
|
+
{ path: "data.order.lineItems.digitalFile.expirationDate" },
|
|
3118
|
+
{
|
|
3119
|
+
path: "data.order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
3120
|
+
},
|
|
3121
|
+
{ path: "data.order.shippingInfo.logistics.deliverByDate" },
|
|
3122
|
+
{ path: "data.order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
3123
|
+
{ path: "data.order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
3124
|
+
{ path: "data.order.activities.createdDate" },
|
|
3125
|
+
{ path: "metadata.eventTime" }
|
|
3126
|
+
]
|
|
3127
|
+
},
|
|
3128
|
+
{
|
|
3129
|
+
transformFn: transformRESTImageToSDKImage2,
|
|
3130
|
+
paths: [{ path: "data.order.lineItems.image" }]
|
|
3131
|
+
},
|
|
3132
|
+
{
|
|
3133
|
+
transformFn: transformRESTFloatToSDKFloat2,
|
|
3134
|
+
paths: [{ path: "data.order.lineItems.physicalProperties.weight" }]
|
|
3135
|
+
},
|
|
3136
|
+
{
|
|
3137
|
+
transformFn: transformRESTAddressToSDKAddress2,
|
|
3138
|
+
paths: [
|
|
3139
|
+
{ path: "data.order.billingInfo.address" },
|
|
3140
|
+
{
|
|
3141
|
+
path: "data.order.shippingInfo.logistics.shippingDestination.address"
|
|
3142
|
+
},
|
|
3143
|
+
{ path: "data.order.shippingInfo.logistics.pickupDetails.address" },
|
|
3144
|
+
{ path: "data.order.recipientInfo.address" }
|
|
3145
|
+
]
|
|
3146
|
+
}
|
|
3147
|
+
])
|
|
3148
|
+
)
|
|
3149
|
+
)();
|
|
3150
|
+
var onOrderUpdated = EventDefinition(
|
|
3151
|
+
"wix.ecom.v1.order_updated",
|
|
3152
|
+
true,
|
|
3153
|
+
(event) => renameKeysFromRESTResponseToSDKResponse2(
|
|
3154
|
+
transformPaths3(event, [
|
|
3155
|
+
{
|
|
3156
|
+
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
3157
|
+
paths: [
|
|
3158
|
+
{ path: "entity.createdDate" },
|
|
3159
|
+
{ path: "entity.updatedDate" },
|
|
3160
|
+
{ path: "entity.purchasedDate" },
|
|
3161
|
+
{ path: "entity.lineItems.digitalFile.expirationDate" },
|
|
3162
|
+
{
|
|
3163
|
+
path: "entity.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
3164
|
+
},
|
|
3165
|
+
{ path: "entity.shippingInfo.logistics.deliverByDate" },
|
|
3166
|
+
{ path: "entity.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
3167
|
+
{ path: "entity.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
3168
|
+
{ path: "entity.activities.createdDate" },
|
|
3169
|
+
{ path: "metadata.eventTime" }
|
|
3170
|
+
]
|
|
3171
|
+
},
|
|
3172
|
+
{
|
|
3173
|
+
transformFn: transformRESTImageToSDKImage2,
|
|
3174
|
+
paths: [{ path: "entity.lineItems.image" }]
|
|
3175
|
+
},
|
|
3176
|
+
{
|
|
3177
|
+
transformFn: transformRESTFloatToSDKFloat2,
|
|
3178
|
+
paths: [{ path: "entity.lineItems.physicalProperties.weight" }]
|
|
3179
|
+
},
|
|
3180
|
+
{
|
|
3181
|
+
transformFn: transformRESTAddressToSDKAddress2,
|
|
3182
|
+
paths: [
|
|
3183
|
+
{ path: "entity.billingInfo.address" },
|
|
3184
|
+
{
|
|
3185
|
+
path: "entity.shippingInfo.logistics.shippingDestination.address"
|
|
3186
|
+
},
|
|
3187
|
+
{ path: "entity.shippingInfo.logistics.pickupDetails.address" },
|
|
3188
|
+
{ path: "entity.recipientInfo.address" }
|
|
3189
|
+
]
|
|
3190
|
+
}
|
|
3191
|
+
])
|
|
3192
|
+
)
|
|
3193
|
+
)();
|
|
3194
|
+
var onOrderCanceled = EventDefinition(
|
|
3195
|
+
"wix.ecom.v1.order_canceled",
|
|
3196
|
+
true,
|
|
3197
|
+
(event) => renameKeysFromRESTResponseToSDKResponse2(
|
|
3198
|
+
transformPaths3(event, [
|
|
3199
|
+
{
|
|
3200
|
+
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
3201
|
+
paths: [
|
|
3202
|
+
{ path: "data.order.createdDate" },
|
|
3203
|
+
{ path: "data.order.updatedDate" },
|
|
3204
|
+
{ path: "data.order.purchasedDate" },
|
|
3205
|
+
{ path: "data.order.lineItems.digitalFile.expirationDate" },
|
|
3206
|
+
{
|
|
3207
|
+
path: "data.order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
3208
|
+
},
|
|
3209
|
+
{ path: "data.order.shippingInfo.logistics.deliverByDate" },
|
|
3210
|
+
{ path: "data.order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
3211
|
+
{ path: "data.order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
3212
|
+
{ path: "data.order.activities.createdDate" },
|
|
3213
|
+
{ path: "metadata.eventTime" }
|
|
3214
|
+
]
|
|
3215
|
+
},
|
|
3216
|
+
{
|
|
3217
|
+
transformFn: transformRESTImageToSDKImage2,
|
|
3218
|
+
paths: [{ path: "data.order.lineItems.image" }]
|
|
3219
|
+
},
|
|
3220
|
+
{
|
|
3221
|
+
transformFn: transformRESTFloatToSDKFloat2,
|
|
3222
|
+
paths: [{ path: "data.order.lineItems.physicalProperties.weight" }]
|
|
3223
|
+
},
|
|
3224
|
+
{
|
|
3225
|
+
transformFn: transformRESTAddressToSDKAddress2,
|
|
3226
|
+
paths: [
|
|
3227
|
+
{ path: "data.order.billingInfo.address" },
|
|
3228
|
+
{
|
|
3229
|
+
path: "data.order.shippingInfo.logistics.shippingDestination.address"
|
|
3230
|
+
},
|
|
3231
|
+
{ path: "data.order.shippingInfo.logistics.pickupDetails.address" },
|
|
3232
|
+
{ path: "data.order.recipientInfo.address" }
|
|
3233
|
+
]
|
|
3234
|
+
}
|
|
3235
|
+
])
|
|
3236
|
+
)
|
|
3237
|
+
)();
|
|
3238
|
+
var onOrderCreated = EventDefinition(
|
|
3239
|
+
"wix.ecom.v1.order_created",
|
|
3240
|
+
true,
|
|
3241
|
+
(event) => renameKeysFromRESTResponseToSDKResponse2(
|
|
3242
|
+
transformPaths3(event, [
|
|
3243
|
+
{
|
|
3244
|
+
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
3245
|
+
paths: [
|
|
3246
|
+
{ path: "entity.createdDate" },
|
|
3247
|
+
{ path: "entity.updatedDate" },
|
|
3248
|
+
{ path: "entity.purchasedDate" },
|
|
3249
|
+
{ path: "entity.lineItems.digitalFile.expirationDate" },
|
|
3250
|
+
{
|
|
3251
|
+
path: "entity.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
3252
|
+
},
|
|
3253
|
+
{ path: "entity.shippingInfo.logistics.deliverByDate" },
|
|
3254
|
+
{ path: "entity.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
3255
|
+
{ path: "entity.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
3256
|
+
{ path: "entity.activities.createdDate" },
|
|
3257
|
+
{ path: "metadata.eventTime" }
|
|
3258
|
+
]
|
|
3259
|
+
},
|
|
3260
|
+
{
|
|
3261
|
+
transformFn: transformRESTImageToSDKImage2,
|
|
3262
|
+
paths: [{ path: "entity.lineItems.image" }]
|
|
3263
|
+
},
|
|
3264
|
+
{
|
|
3265
|
+
transformFn: transformRESTFloatToSDKFloat2,
|
|
3266
|
+
paths: [{ path: "entity.lineItems.physicalProperties.weight" }]
|
|
3267
|
+
},
|
|
3268
|
+
{
|
|
3269
|
+
transformFn: transformRESTAddressToSDKAddress2,
|
|
3270
|
+
paths: [
|
|
3271
|
+
{ path: "entity.billingInfo.address" },
|
|
3272
|
+
{
|
|
3273
|
+
path: "entity.shippingInfo.logistics.shippingDestination.address"
|
|
3274
|
+
},
|
|
3275
|
+
{ path: "entity.shippingInfo.logistics.pickupDetails.address" },
|
|
3276
|
+
{ path: "entity.recipientInfo.address" }
|
|
3277
|
+
]
|
|
3278
|
+
}
|
|
3279
|
+
])
|
|
3280
|
+
)
|
|
3281
|
+
)();
|
|
3282
|
+
|
|
3283
|
+
// src/ecom-v1-order-orders.context.ts
|
|
3284
|
+
import { createRESTModule } from "@wix/sdk-runtime/rest-modules";
|
|
3285
|
+
import { createEventModule } from "@wix/sdk-runtime/event-definition-modules";
|
|
3286
|
+
var preparePaymentCollection4 = /* @__PURE__ */ createRESTModule(preparePaymentCollection3);
|
|
3287
|
+
var getPaymentCollectabilityStatus4 = /* @__PURE__ */ createRESTModule(getPaymentCollectabilityStatus3);
|
|
3288
|
+
var recordManuallyCollectedPayment4 = /* @__PURE__ */ createRESTModule(recordManuallyCollectedPayment3);
|
|
3289
|
+
var paymentCollectionMarkOrderAsPaid4 = /* @__PURE__ */ createRESTModule(paymentCollectionMarkOrderAsPaid3);
|
|
3290
|
+
var paymentCollectionBulkMarkOrdersAsPaid4 = /* @__PURE__ */ createRESTModule(paymentCollectionBulkMarkOrdersAsPaid3);
|
|
3291
|
+
var getRefundabilityStatus4 = /* @__PURE__ */ createRESTModule(getRefundabilityStatus3);
|
|
3292
|
+
var paymentCollectionCreatePaymentGatewayOrder4 = /* @__PURE__ */ createRESTModule(
|
|
3293
|
+
paymentCollectionCreatePaymentGatewayOrder3
|
|
3294
|
+
);
|
|
3295
|
+
var chargeMemberships4 = /* @__PURE__ */ createRESTModule(chargeMemberships3);
|
|
3296
|
+
var triggerRefund4 = /* @__PURE__ */ createRESTModule(triggerRefund3);
|
|
3297
|
+
var voidAuthorizedPayments4 = /* @__PURE__ */ createRESTModule(voidAuthorizedPayments3);
|
|
3298
|
+
var captureAuthorizedPayments4 = /* @__PURE__ */ createRESTModule(captureAuthorizedPayments3);
|
|
3299
|
+
var getOrder4 = /* @__PURE__ */ createRESTModule(getOrder3);
|
|
3300
|
+
var searchOrders4 = /* @__PURE__ */ createRESTModule(searchOrders3);
|
|
3301
|
+
var createOrder4 = /* @__PURE__ */ createRESTModule(createOrder3);
|
|
3302
|
+
var updateOrder4 = /* @__PURE__ */ createRESTModule(updateOrder3);
|
|
3303
|
+
var bulkUpdateOrders4 = /* @__PURE__ */ createRESTModule(bulkUpdateOrders3);
|
|
3304
|
+
var commitDeltas4 = /* @__PURE__ */ createRESTModule(commitDeltas3);
|
|
3305
|
+
var updateOrderLineItem4 = /* @__PURE__ */ createRESTModule(updateOrderLineItem3);
|
|
3306
|
+
var addActivity4 = /* @__PURE__ */ createRESTModule(addActivity3);
|
|
3307
|
+
var updateActivity4 = /* @__PURE__ */ createRESTModule(updateActivity3);
|
|
3308
|
+
var deleteActivity4 = /* @__PURE__ */ createRESTModule(deleteActivity3);
|
|
3309
|
+
var cancelOrder4 = /* @__PURE__ */ createRESTModule(cancelOrder3);
|
|
3310
|
+
var updateOrderStatus4 = /* @__PURE__ */ createRESTModule(updateOrderStatus3);
|
|
3311
|
+
var aggregateOrders4 = /* @__PURE__ */ createRESTModule(aggregateOrders3);
|
|
3312
|
+
var bulkUpdateOrderTags4 = /* @__PURE__ */ createRESTModule(bulkUpdateOrderTags3);
|
|
3313
|
+
var onOrderApproved2 = createEventModule(onOrderApproved);
|
|
3314
|
+
var onOrderUpdated2 = createEventModule(onOrderUpdated);
|
|
3315
|
+
var onOrderCanceled2 = createEventModule(onOrderCanceled);
|
|
3316
|
+
var onOrderCreated2 = createEventModule(onOrderCreated);
|
|
3317
|
+
export {
|
|
3318
|
+
ActionType,
|
|
3319
|
+
ActivityType,
|
|
3320
|
+
AdjustmentType,
|
|
3321
|
+
AnimationDetection,
|
|
3322
|
+
AttributionSource,
|
|
3323
|
+
AuthorizationCaptureStatus,
|
|
3324
|
+
AuthorizationVoidStatus,
|
|
3325
|
+
ChannelType,
|
|
3326
|
+
CustomFieldGroup,
|
|
3327
|
+
DeltaPaymentOptionType,
|
|
3328
|
+
DepositType,
|
|
3329
|
+
DescriptionLineType,
|
|
3330
|
+
DiscountReason,
|
|
3331
|
+
DiscountType,
|
|
3332
|
+
DurationUnit,
|
|
3333
|
+
FulfillmentStatus,
|
|
3334
|
+
InventoryAction,
|
|
3335
|
+
InvoiceStatus,
|
|
3336
|
+
ItemTypeItemType,
|
|
3337
|
+
JurisdictionType,
|
|
3338
|
+
LineItemQuantityChangeType,
|
|
3339
|
+
ManuallyRefundableReason,
|
|
3340
|
+
MembershipPaymentStatus,
|
|
3341
|
+
Namespace,
|
|
3342
|
+
NonRefundableReason,
|
|
3343
|
+
OrderApprovalStrategy,
|
|
3344
|
+
OrderStatus,
|
|
3345
|
+
PaymentCollectabilityStatus,
|
|
3346
|
+
PaymentOptionType,
|
|
3347
|
+
PaymentStatus,
|
|
3348
|
+
PickupMethod,
|
|
3349
|
+
Placement,
|
|
3350
|
+
PreviewEmailType,
|
|
3351
|
+
Reason,
|
|
3352
|
+
RefundStatus,
|
|
3353
|
+
RefundableStatus,
|
|
3354
|
+
RestockType,
|
|
3355
|
+
ScheduledAction,
|
|
3356
|
+
SortOrder,
|
|
3357
|
+
SourceType,
|
|
3358
|
+
State,
|
|
3359
|
+
SubdivisionType,
|
|
3360
|
+
SubscriptionFrequency,
|
|
3361
|
+
TaxableAddressType,
|
|
3362
|
+
TextDetection,
|
|
3363
|
+
TransactionStatus,
|
|
3364
|
+
ValueType,
|
|
3365
|
+
VatType,
|
|
3366
|
+
VersioningMode,
|
|
3367
|
+
WebhookIdentityType,
|
|
3368
|
+
WeightUnit,
|
|
3369
|
+
addActivity4 as addActivity,
|
|
3370
|
+
aggregateOrders4 as aggregateOrders,
|
|
3371
|
+
bulkUpdateOrderTags4 as bulkUpdateOrderTags,
|
|
3372
|
+
bulkUpdateOrders4 as bulkUpdateOrders,
|
|
3373
|
+
cancelOrder4 as cancelOrder,
|
|
3374
|
+
captureAuthorizedPayments4 as captureAuthorizedPayments,
|
|
3375
|
+
chargeMemberships4 as chargeMemberships,
|
|
3376
|
+
commitDeltas4 as commitDeltas,
|
|
3377
|
+
createOrder4 as createOrder,
|
|
3378
|
+
deleteActivity4 as deleteActivity,
|
|
3379
|
+
getOrder4 as getOrder,
|
|
3380
|
+
getPaymentCollectabilityStatus4 as getPaymentCollectabilityStatus,
|
|
3381
|
+
getRefundabilityStatus4 as getRefundabilityStatus,
|
|
3382
|
+
onOrderApproved2 as onOrderApproved,
|
|
3383
|
+
onOrderCanceled2 as onOrderCanceled,
|
|
3384
|
+
onOrderCreated2 as onOrderCreated,
|
|
3385
|
+
onOrderUpdated2 as onOrderUpdated,
|
|
3386
|
+
paymentCollectionBulkMarkOrdersAsPaid4 as paymentCollectionBulkMarkOrdersAsPaid,
|
|
3387
|
+
paymentCollectionCreatePaymentGatewayOrder4 as paymentCollectionCreatePaymentGatewayOrder,
|
|
3388
|
+
paymentCollectionMarkOrderAsPaid4 as paymentCollectionMarkOrderAsPaid,
|
|
3389
|
+
preparePaymentCollection4 as preparePaymentCollection,
|
|
3390
|
+
recordManuallyCollectedPayment4 as recordManuallyCollectedPayment,
|
|
3391
|
+
searchOrders4 as searchOrders,
|
|
3392
|
+
triggerRefund4 as triggerRefund,
|
|
3393
|
+
updateActivity4 as updateActivity,
|
|
3394
|
+
updateOrder4 as updateOrder,
|
|
3395
|
+
updateOrderLineItem4 as updateOrderLineItem,
|
|
3396
|
+
updateOrderStatus4 as updateOrderStatus,
|
|
3397
|
+
voidAuthorizedPayments4 as voidAuthorizedPayments
|
|
3398
|
+
};
|
|
3399
|
+
//# sourceMappingURL=index.mjs.map
|