@wix/auto_sdk_ecom_orders 1.0.52 → 1.0.54

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.
Files changed (134) hide show
  1. package/build/{cjs/src/ecom-v1-order-orders.universal.d.ts → ecom-v1-order-orders.universal-CO-UuLIK.d.mts} +642 -1081
  2. package/build/{es/src/ecom-v1-order-orders.universal.d.ts → ecom-v1-order-orders.universal-CO-UuLIK.d.ts} +642 -1081
  3. package/build/index.d.mts +216 -0
  4. package/build/index.d.ts +216 -0
  5. package/build/index.js +3502 -0
  6. package/build/index.js.map +1 -0
  7. package/build/index.mjs +3399 -0
  8. package/build/index.mjs.map +1 -0
  9. package/build/internal/{cjs/src/ecom-v1-order-orders.universal.d.ts → ecom-v1-order-orders.universal-DrkwwhMV.d.mts} +642 -1448
  10. package/build/internal/{es/src/ecom-v1-order-orders.universal.d.ts → ecom-v1-order-orders.universal-DrkwwhMV.d.ts} +642 -1448
  11. package/build/internal/index.d.mts +395 -0
  12. package/build/internal/index.d.ts +395 -0
  13. package/build/internal/index.js +3502 -0
  14. package/build/internal/index.js.map +1 -0
  15. package/build/internal/index.mjs +3399 -0
  16. package/build/internal/index.mjs.map +1 -0
  17. package/build/internal/meta.d.mts +3302 -0
  18. package/build/internal/meta.d.ts +3302 -0
  19. package/build/internal/meta.js +1941 -0
  20. package/build/internal/meta.js.map +1 -0
  21. package/build/internal/meta.mjs +1890 -0
  22. package/build/internal/meta.mjs.map +1 -0
  23. package/build/meta.d.mts +3302 -0
  24. package/build/meta.d.ts +3302 -0
  25. package/build/meta.js +1941 -0
  26. package/build/meta.js.map +1 -0
  27. package/build/meta.mjs +1890 -0
  28. package/build/meta.mjs.map +1 -0
  29. package/package.json +12 -11
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -43
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/ecom-v1-order-orders.context.d.ts +0 -34
  40. package/build/cjs/src/ecom-v1-order-orders.context.js +0 -117
  41. package/build/cjs/src/ecom-v1-order-orders.context.js.map +0 -1
  42. package/build/cjs/src/ecom-v1-order-orders.http.d.ts +0 -200
  43. package/build/cjs/src/ecom-v1-order-orders.http.js +0 -1610
  44. package/build/cjs/src/ecom-v1-order-orders.http.js.map +0 -1
  45. package/build/cjs/src/ecom-v1-order-orders.meta.d.ts +0 -78
  46. package/build/cjs/src/ecom-v1-order-orders.meta.js +0 -503
  47. package/build/cjs/src/ecom-v1-order-orders.meta.js.map +0 -1
  48. package/build/cjs/src/ecom-v1-order-orders.public.d.ts +0 -190
  49. package/build/cjs/src/ecom-v1-order-orders.public.js +0 -382
  50. package/build/cjs/src/ecom-v1-order-orders.public.js.map +0 -1
  51. package/build/cjs/src/ecom-v1-order-orders.types.d.ts +0 -6317
  52. package/build/cjs/src/ecom-v1-order-orders.types.js +0 -652
  53. package/build/cjs/src/ecom-v1-order-orders.types.js.map +0 -1
  54. package/build/cjs/src/ecom-v1-order-orders.universal.js +0 -2337
  55. package/build/cjs/src/ecom-v1-order-orders.universal.js.map +0 -1
  56. package/build/es/index.d.ts +0 -1
  57. package/build/es/index.js +0 -2
  58. package/build/es/index.js.map +0 -1
  59. package/build/es/index.typings.d.ts +0 -43
  60. package/build/es/index.typings.js +0 -2
  61. package/build/es/index.typings.js.map +0 -1
  62. package/build/es/meta.d.ts +0 -1
  63. package/build/es/meta.js +0 -2
  64. package/build/es/meta.js.map +0 -1
  65. package/build/es/package.json +0 -3
  66. package/build/es/src/ecom-v1-order-orders.context.d.ts +0 -34
  67. package/build/es/src/ecom-v1-order-orders.context.js +0 -62
  68. package/build/es/src/ecom-v1-order-orders.context.js.map +0 -1
  69. package/build/es/src/ecom-v1-order-orders.http.d.ts +0 -200
  70. package/build/es/src/ecom-v1-order-orders.http.js +0 -1582
  71. package/build/es/src/ecom-v1-order-orders.http.js.map +0 -1
  72. package/build/es/src/ecom-v1-order-orders.meta.d.ts +0 -78
  73. package/build/es/src/ecom-v1-order-orders.meta.js +0 -452
  74. package/build/es/src/ecom-v1-order-orders.meta.js.map +0 -1
  75. package/build/es/src/ecom-v1-order-orders.public.d.ts +0 -190
  76. package/build/es/src/ecom-v1-order-orders.public.js +0 -302
  77. package/build/es/src/ecom-v1-order-orders.public.js.map +0 -1
  78. package/build/es/src/ecom-v1-order-orders.types.d.ts +0 -6317
  79. package/build/es/src/ecom-v1-order-orders.types.js +0 -648
  80. package/build/es/src/ecom-v1-order-orders.types.js.map +0 -1
  81. package/build/es/src/ecom-v1-order-orders.universal.js +0 -2285
  82. package/build/es/src/ecom-v1-order-orders.universal.js.map +0 -1
  83. package/build/internal/cjs/index.d.ts +0 -1
  84. package/build/internal/cjs/index.js +0 -18
  85. package/build/internal/cjs/index.js.map +0 -1
  86. package/build/internal/cjs/index.typings.d.ts +0 -43
  87. package/build/internal/cjs/index.typings.js +0 -18
  88. package/build/internal/cjs/index.typings.js.map +0 -1
  89. package/build/internal/cjs/meta.d.ts +0 -1
  90. package/build/internal/cjs/meta.js +0 -18
  91. package/build/internal/cjs/meta.js.map +0 -1
  92. package/build/internal/cjs/src/ecom-v1-order-orders.context.d.ts +0 -62
  93. package/build/internal/cjs/src/ecom-v1-order-orders.context.js +0 -117
  94. package/build/internal/cjs/src/ecom-v1-order-orders.context.js.map +0 -1
  95. package/build/internal/cjs/src/ecom-v1-order-orders.http.d.ts +0 -200
  96. package/build/internal/cjs/src/ecom-v1-order-orders.http.js +0 -1610
  97. package/build/internal/cjs/src/ecom-v1-order-orders.http.js.map +0 -1
  98. package/build/internal/cjs/src/ecom-v1-order-orders.meta.d.ts +0 -78
  99. package/build/internal/cjs/src/ecom-v1-order-orders.meta.js +0 -503
  100. package/build/internal/cjs/src/ecom-v1-order-orders.meta.js.map +0 -1
  101. package/build/internal/cjs/src/ecom-v1-order-orders.public.d.ts +0 -341
  102. package/build/internal/cjs/src/ecom-v1-order-orders.public.js +0 -382
  103. package/build/internal/cjs/src/ecom-v1-order-orders.public.js.map +0 -1
  104. package/build/internal/cjs/src/ecom-v1-order-orders.types.d.ts +0 -6317
  105. package/build/internal/cjs/src/ecom-v1-order-orders.types.js +0 -652
  106. package/build/internal/cjs/src/ecom-v1-order-orders.types.js.map +0 -1
  107. package/build/internal/cjs/src/ecom-v1-order-orders.universal.js +0 -2337
  108. package/build/internal/cjs/src/ecom-v1-order-orders.universal.js.map +0 -1
  109. package/build/internal/es/index.d.ts +0 -1
  110. package/build/internal/es/index.js +0 -2
  111. package/build/internal/es/index.js.map +0 -1
  112. package/build/internal/es/index.typings.d.ts +0 -43
  113. package/build/internal/es/index.typings.js +0 -2
  114. package/build/internal/es/index.typings.js.map +0 -1
  115. package/build/internal/es/meta.d.ts +0 -1
  116. package/build/internal/es/meta.js +0 -2
  117. package/build/internal/es/meta.js.map +0 -1
  118. package/build/internal/es/src/ecom-v1-order-orders.context.d.ts +0 -62
  119. package/build/internal/es/src/ecom-v1-order-orders.context.js +0 -62
  120. package/build/internal/es/src/ecom-v1-order-orders.context.js.map +0 -1
  121. package/build/internal/es/src/ecom-v1-order-orders.http.d.ts +0 -200
  122. package/build/internal/es/src/ecom-v1-order-orders.http.js +0 -1582
  123. package/build/internal/es/src/ecom-v1-order-orders.http.js.map +0 -1
  124. package/build/internal/es/src/ecom-v1-order-orders.meta.d.ts +0 -78
  125. package/build/internal/es/src/ecom-v1-order-orders.meta.js +0 -452
  126. package/build/internal/es/src/ecom-v1-order-orders.meta.js.map +0 -1
  127. package/build/internal/es/src/ecom-v1-order-orders.public.d.ts +0 -341
  128. package/build/internal/es/src/ecom-v1-order-orders.public.js +0 -302
  129. package/build/internal/es/src/ecom-v1-order-orders.public.js.map +0 -1
  130. package/build/internal/es/src/ecom-v1-order-orders.types.d.ts +0 -6317
  131. package/build/internal/es/src/ecom-v1-order-orders.types.js +0 -648
  132. package/build/internal/es/src/ecom-v1-order-orders.types.js.map +0 -1
  133. package/build/internal/es/src/ecom-v1-order-orders.universal.js +0 -2285
  134. package/build/internal/es/src/ecom-v1-order-orders.universal.js.map +0 -1
@@ -0,0 +1,1941 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // meta.ts
21
+ var meta_exports = {};
22
+ __export(meta_exports, {
23
+ addActivity: () => addActivity2,
24
+ aggregateOrders: () => aggregateOrders2,
25
+ bulkUpdateOrderTags: () => bulkUpdateOrderTags2,
26
+ bulkUpdateOrders: () => bulkUpdateOrders2,
27
+ cancelOrder: () => cancelOrder2,
28
+ captureAuthorizedPayments: () => captureAuthorizedPayments2,
29
+ chargeMemberships: () => chargeMemberships2,
30
+ commitDeltas: () => commitDeltas2,
31
+ createOrder: () => createOrder2,
32
+ deleteActivity: () => deleteActivity2,
33
+ getOrder: () => getOrder2,
34
+ getPaymentCollectabilityStatus: () => getPaymentCollectabilityStatus2,
35
+ getRefundabilityStatus: () => getRefundabilityStatus2,
36
+ paymentCollectionBulkMarkOrdersAsPaid: () => paymentCollectionBulkMarkOrdersAsPaid2,
37
+ paymentCollectionCreatePaymentGatewayOrder: () => paymentCollectionCreatePaymentGatewayOrder2,
38
+ paymentCollectionMarkOrderAsPaid: () => paymentCollectionMarkOrderAsPaid2,
39
+ preparePaymentCollection: () => preparePaymentCollection2,
40
+ recordManuallyCollectedPayment: () => recordManuallyCollectedPayment2,
41
+ searchOrders: () => searchOrders2,
42
+ triggerRefund: () => triggerRefund2,
43
+ updateActivity: () => updateActivity2,
44
+ updateOrder: () => updateOrder2,
45
+ updateOrderLineItem: () => updateOrderLineItem2,
46
+ updateOrderStatus: () => updateOrderStatus2,
47
+ voidAuthorizedPayments: () => voidAuthorizedPayments2
48
+ });
49
+ module.exports = __toCommonJS(meta_exports);
50
+
51
+ // src/ecom-v1-order-orders.http.ts
52
+ var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
53
+ var import_float = require("@wix/sdk-runtime/transformations/float");
54
+ var import_float2 = require("@wix/sdk-runtime/transformations/float");
55
+ var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
56
+ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
57
+ var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
58
+ var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
59
+ var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
60
+ function resolveComWixEcomOrdersV1OrdersUrl(opts) {
61
+ const domainToMappings = {
62
+ _: [
63
+ {
64
+ srcPath: "/_api/ecom-orders",
65
+ destPath: ""
66
+ },
67
+ {
68
+ srcPath: "/_api/orders",
69
+ destPath: ""
70
+ }
71
+ ],
72
+ "manage._base_domain_": [
73
+ {
74
+ srcPath: "/_api/ecom-orders",
75
+ destPath: ""
76
+ }
77
+ ],
78
+ "www.wixapis.com": [
79
+ {
80
+ srcPath: "/ecom/v1/bulk/orders",
81
+ destPath: "/v1/bulk/orders"
82
+ },
83
+ {
84
+ srcPath: "/ecom/v1/orders",
85
+ destPath: "/v1/orders"
86
+ }
87
+ ]
88
+ };
89
+ return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
90
+ }
91
+ function resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl(opts) {
92
+ const domainToMappings = {
93
+ "api._api_base_domain_": [
94
+ {
95
+ srcPath: "/payments-collector",
96
+ destPath: ""
97
+ }
98
+ ],
99
+ "www.wixapis.com": [
100
+ {
101
+ srcPath: "/ecom/v1/payments-collector",
102
+ destPath: "/v1/payments-collector"
103
+ }
104
+ ],
105
+ "manage._base_domain_": [
106
+ {
107
+ srcPath: "/ecom/v1/payments-collector",
108
+ destPath: "/v1/payments-collector"
109
+ },
110
+ {
111
+ srcPath: "/_api/v1/payments-collector",
112
+ destPath: "/v1/payments-collector"
113
+ },
114
+ {
115
+ srcPath: "/v1/payments-collector",
116
+ destPath: "/v1/payments-collector"
117
+ },
118
+ {
119
+ srcPath: "/_api/payments-collector",
120
+ destPath: "/v1/payments-collector"
121
+ }
122
+ ]
123
+ };
124
+ return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
125
+ }
126
+ var PACKAGE_NAME = "@wix/auto_sdk_ecom_orders";
127
+ function preparePaymentCollection(payload) {
128
+ function __preparePaymentCollection({ host }) {
129
+ const metadata = {
130
+ entityFqdn: "wix.ecom.v1.order",
131
+ method: "POST",
132
+ methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.PreparePaymentCollection",
133
+ packageName: PACKAGE_NAME,
134
+ url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
135
+ protoPath: "/v1/payments-collector/orders/{ecomOrderId}/prepare-payment-collection",
136
+ data: payload,
137
+ host
138
+ }),
139
+ data: payload
140
+ };
141
+ return metadata;
142
+ }
143
+ return __preparePaymentCollection;
144
+ }
145
+ function getPaymentCollectabilityStatus(payload) {
146
+ function __getPaymentCollectabilityStatus({ host }) {
147
+ const metadata = {
148
+ entityFqdn: "wix.ecom.v1.order",
149
+ method: "GET",
150
+ methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.GetPaymentCollectabilityStatus",
151
+ packageName: PACKAGE_NAME,
152
+ url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
153
+ protoPath: "/v1/payments-collector/orders/{ecomOrderId}/payment-collectability-status",
154
+ data: payload,
155
+ host
156
+ }),
157
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
158
+ };
159
+ return metadata;
160
+ }
161
+ return __getPaymentCollectabilityStatus;
162
+ }
163
+ function recordManuallyCollectedPayment(payload) {
164
+ function __recordManuallyCollectedPayment({ host }) {
165
+ const metadata = {
166
+ entityFqdn: "wix.ecom.v1.order",
167
+ method: "POST",
168
+ methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.RecordManuallyCollectedPayment",
169
+ packageName: PACKAGE_NAME,
170
+ url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
171
+ protoPath: "/v1/payments-collector/orders/{orderId}/manual-payment",
172
+ data: payload,
173
+ host
174
+ }),
175
+ data: payload
176
+ };
177
+ return metadata;
178
+ }
179
+ return __recordManuallyCollectedPayment;
180
+ }
181
+ function paymentCollectionMarkOrderAsPaid(payload) {
182
+ function __paymentCollectionMarkOrderAsPaid({ host }) {
183
+ const metadata = {
184
+ entityFqdn: "wix.ecom.v1.order",
185
+ method: "POST",
186
+ methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.MarkOrderAsPaid",
187
+ packageName: PACKAGE_NAME,
188
+ url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
189
+ protoPath: "/v1/payments-collector/orders/{ecomOrderId}/mark-as-paid",
190
+ data: payload,
191
+ host
192
+ }),
193
+ data: payload,
194
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
195
+ {
196
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
197
+ paths: [
198
+ { path: "order.createdDate" },
199
+ { path: "order.updatedDate" },
200
+ { path: "order.purchasedDate" },
201
+ { path: "order.lineItems.image.urlExpirationDate" },
202
+ { path: "order.lineItems.digitalFile.expirationDate" },
203
+ {
204
+ path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
205
+ },
206
+ { path: "order.shippingInfo.logistics.deliverByDate" },
207
+ { path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
208
+ { path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
209
+ { path: "order.activities.createdDate" }
210
+ ]
211
+ },
212
+ {
213
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
214
+ paths: [
215
+ { path: "order.lineItems.image.focalPoint.x" },
216
+ { path: "order.lineItems.image.focalPoint.y" },
217
+ { path: "order.lineItems.physicalProperties.weight" },
218
+ { path: "order.billingInfo.address.geocode.latitude" },
219
+ { path: "order.billingInfo.address.geocode.longitude" },
220
+ {
221
+ path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
222
+ },
223
+ {
224
+ path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
225
+ },
226
+ {
227
+ path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
228
+ },
229
+ {
230
+ path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
231
+ },
232
+ { path: "order.recipientInfo.address.geocode.latitude" },
233
+ { path: "order.recipientInfo.address.geocode.longitude" }
234
+ ]
235
+ }
236
+ ])
237
+ };
238
+ return metadata;
239
+ }
240
+ return __paymentCollectionMarkOrderAsPaid;
241
+ }
242
+ function paymentCollectionBulkMarkOrdersAsPaid(payload) {
243
+ function __paymentCollectionBulkMarkOrdersAsPaid({ host }) {
244
+ const metadata = {
245
+ entityFqdn: "wix.ecom.v1.order",
246
+ method: "POST",
247
+ methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.BulkMarkOrdersAsPaid",
248
+ packageName: PACKAGE_NAME,
249
+ url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
250
+ protoPath: "/v1/bulk/payments-collector/mark-as-paid",
251
+ data: payload,
252
+ host
253
+ }),
254
+ data: payload,
255
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
256
+ {
257
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
258
+ paths: [
259
+ { path: "results.item.createdDate" },
260
+ { path: "results.item.updatedDate" },
261
+ { path: "results.item.purchasedDate" },
262
+ { path: "results.item.lineItems.image.urlExpirationDate" },
263
+ { path: "results.item.lineItems.digitalFile.expirationDate" },
264
+ {
265
+ path: "results.item.lineItems.subscriptionInfo.subscriptionSettings.startDate"
266
+ },
267
+ { path: "results.item.shippingInfo.logistics.deliverByDate" },
268
+ {
269
+ path: "results.item.shippingInfo.logistics.deliveryTimeSlot.from"
270
+ },
271
+ {
272
+ path: "results.item.shippingInfo.logistics.deliveryTimeSlot.to"
273
+ },
274
+ { path: "results.item.activities.createdDate" }
275
+ ]
276
+ },
277
+ {
278
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
279
+ paths: [
280
+ { path: "results.item.lineItems.image.focalPoint.x" },
281
+ { path: "results.item.lineItems.image.focalPoint.y" },
282
+ { path: "results.item.lineItems.physicalProperties.weight" },
283
+ { path: "results.item.billingInfo.address.geocode.latitude" },
284
+ { path: "results.item.billingInfo.address.geocode.longitude" },
285
+ {
286
+ path: "results.item.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
287
+ },
288
+ {
289
+ path: "results.item.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
290
+ },
291
+ {
292
+ path: "results.item.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
293
+ },
294
+ {
295
+ path: "results.item.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
296
+ },
297
+ { path: "results.item.recipientInfo.address.geocode.latitude" },
298
+ { path: "results.item.recipientInfo.address.geocode.longitude" }
299
+ ]
300
+ }
301
+ ])
302
+ };
303
+ return metadata;
304
+ }
305
+ return __paymentCollectionBulkMarkOrdersAsPaid;
306
+ }
307
+ function getRefundabilityStatus(payload) {
308
+ function __getRefundabilityStatus({ host }) {
309
+ const metadata = {
310
+ entityFqdn: "wix.ecom.v1.order",
311
+ method: "GET",
312
+ methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.GetRefundabilityStatus",
313
+ packageName: PACKAGE_NAME,
314
+ url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
315
+ protoPath: "/v1/payments-collector/orders/{ecomOrderId}/refundability",
316
+ data: payload,
317
+ host
318
+ }),
319
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
320
+ };
321
+ return metadata;
322
+ }
323
+ return __getRefundabilityStatus;
324
+ }
325
+ function paymentCollectionCreatePaymentGatewayOrder(payload) {
326
+ function __paymentCollectionCreatePaymentGatewayOrder({ host }) {
327
+ const metadata = {
328
+ entityFqdn: "wix.ecom.v1.order",
329
+ method: "POST",
330
+ methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.CreatePaymentGatewayOrder",
331
+ packageName: PACKAGE_NAME,
332
+ url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
333
+ protoPath: "/v1/payments-collector/orders/{ecomOrderId}/create-payment-gateway-order",
334
+ data: payload,
335
+ host
336
+ }),
337
+ data: payload
338
+ };
339
+ return metadata;
340
+ }
341
+ return __paymentCollectionCreatePaymentGatewayOrder;
342
+ }
343
+ function chargeMemberships(payload) {
344
+ function __chargeMemberships({ host }) {
345
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
346
+ {
347
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
348
+ paths: [{ path: "membershipCharges.serviceProperties.scheduledDate" }]
349
+ }
350
+ ]);
351
+ const metadata = {
352
+ entityFqdn: "wix.ecom.v1.order",
353
+ method: "POST",
354
+ methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.ChargeMemberships",
355
+ packageName: PACKAGE_NAME,
356
+ url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
357
+ protoPath: "/v1/payments-collector/orders/{ecomOrderId}/charge-membership",
358
+ data: serializedData,
359
+ host
360
+ }),
361
+ data: serializedData
362
+ };
363
+ return metadata;
364
+ }
365
+ return __chargeMemberships;
366
+ }
367
+ function triggerRefund(payload) {
368
+ function __triggerRefund({ host }) {
369
+ const metadata = {
370
+ entityFqdn: "wix.ecom.v1.order",
371
+ method: "POST",
372
+ methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.TriggerRefund",
373
+ packageName: PACKAGE_NAME,
374
+ url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
375
+ protoPath: "/v1/payments-collector/orders/{ecomOrderId}/trigger-refund",
376
+ data: payload,
377
+ host
378
+ }),
379
+ data: payload,
380
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
381
+ {
382
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
383
+ paths: [
384
+ { path: "orderTransactions.payments.createdDate" },
385
+ { path: "orderTransactions.payments.updatedDate" },
386
+ {
387
+ path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
388
+ },
389
+ {
390
+ path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
391
+ },
392
+ {
393
+ path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
394
+ },
395
+ {
396
+ path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
397
+ },
398
+ { path: "orderTransactions.refunds.createdDate" }
399
+ ]
400
+ }
401
+ ])
402
+ };
403
+ return metadata;
404
+ }
405
+ return __triggerRefund;
406
+ }
407
+ function voidAuthorizedPayments(payload) {
408
+ function __voidAuthorizedPayments({ host }) {
409
+ const metadata = {
410
+ entityFqdn: "wix.ecom.v1.order",
411
+ method: "POST",
412
+ methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.VoidAuthorizedPayments",
413
+ packageName: PACKAGE_NAME,
414
+ url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
415
+ protoPath: "/v1/payments-collector/orders/{ecomOrderId}/void-authorized-payments",
416
+ data: payload,
417
+ host
418
+ }),
419
+ data: payload,
420
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
421
+ {
422
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
423
+ paths: [
424
+ { path: "orderTransactions.payments.createdDate" },
425
+ { path: "orderTransactions.payments.updatedDate" },
426
+ {
427
+ path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
428
+ },
429
+ {
430
+ path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
431
+ },
432
+ {
433
+ path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
434
+ },
435
+ {
436
+ path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
437
+ },
438
+ { path: "orderTransactions.refunds.createdDate" }
439
+ ]
440
+ }
441
+ ])
442
+ };
443
+ return metadata;
444
+ }
445
+ return __voidAuthorizedPayments;
446
+ }
447
+ function captureAuthorizedPayments(payload) {
448
+ function __captureAuthorizedPayments({ host }) {
449
+ const metadata = {
450
+ entityFqdn: "wix.ecom.v1.order",
451
+ method: "POST",
452
+ methodFqn: "com.wix.ecom.orders.payments_collector.v1.PaymentsCollector.CaptureAuthorizedPayments",
453
+ packageName: PACKAGE_NAME,
454
+ url: resolveComWixEcomOrdersPaymentsCollectorV1PaymentsCollectorUrl({
455
+ protoPath: "/v1/payments-collector/orders/{ecomOrderId}/capture-authorized-payments",
456
+ data: payload,
457
+ host
458
+ }),
459
+ data: payload,
460
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
461
+ {
462
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
463
+ paths: [
464
+ { path: "orderTransactions.payments.createdDate" },
465
+ { path: "orderTransactions.payments.updatedDate" },
466
+ {
467
+ path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
468
+ },
469
+ {
470
+ path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
471
+ },
472
+ {
473
+ path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
474
+ },
475
+ {
476
+ path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
477
+ },
478
+ { path: "orderTransactions.refunds.createdDate" }
479
+ ]
480
+ }
481
+ ])
482
+ };
483
+ return metadata;
484
+ }
485
+ return __captureAuthorizedPayments;
486
+ }
487
+ function getOrder(payload) {
488
+ function __getOrder({ host }) {
489
+ const metadata = {
490
+ entityFqdn: "wix.ecom.v1.order",
491
+ method: "GET",
492
+ methodFqn: "com.wix.ecom.orders.v1.Orders.GetOrder",
493
+ packageName: PACKAGE_NAME,
494
+ url: resolveComWixEcomOrdersV1OrdersUrl({
495
+ protoPath: "/v1/orders/{id}",
496
+ data: payload,
497
+ host
498
+ }),
499
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
500
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
501
+ {
502
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
503
+ paths: [
504
+ { path: "order.createdDate" },
505
+ { path: "order.updatedDate" },
506
+ { path: "order.purchasedDate" },
507
+ { path: "order.lineItems.image.urlExpirationDate" },
508
+ { path: "order.lineItems.digitalFile.expirationDate" },
509
+ {
510
+ path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
511
+ },
512
+ { path: "order.shippingInfo.logistics.deliverByDate" },
513
+ { path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
514
+ { path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
515
+ { path: "order.activities.createdDate" }
516
+ ]
517
+ },
518
+ {
519
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
520
+ paths: [
521
+ { path: "order.lineItems.image.focalPoint.x" },
522
+ { path: "order.lineItems.image.focalPoint.y" },
523
+ { path: "order.lineItems.physicalProperties.weight" },
524
+ { path: "order.billingInfo.address.geocode.latitude" },
525
+ { path: "order.billingInfo.address.geocode.longitude" },
526
+ {
527
+ path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
528
+ },
529
+ {
530
+ path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
531
+ },
532
+ {
533
+ path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
534
+ },
535
+ {
536
+ path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
537
+ },
538
+ { path: "order.recipientInfo.address.geocode.latitude" },
539
+ { path: "order.recipientInfo.address.geocode.longitude" }
540
+ ]
541
+ }
542
+ ])
543
+ };
544
+ return metadata;
545
+ }
546
+ return __getOrder;
547
+ }
548
+ function searchOrders(payload) {
549
+ function __searchOrders({ host }) {
550
+ const metadata = {
551
+ entityFqdn: "wix.ecom.v1.order",
552
+ method: "POST",
553
+ methodFqn: "com.wix.ecom.orders.v1.Orders.SearchOrders",
554
+ packageName: PACKAGE_NAME,
555
+ url: resolveComWixEcomOrdersV1OrdersUrl({
556
+ protoPath: "/v1/orders/search",
557
+ data: payload,
558
+ host
559
+ }),
560
+ data: payload,
561
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
562
+ {
563
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
564
+ paths: [
565
+ { path: "orders.createdDate" },
566
+ { path: "orders.updatedDate" },
567
+ { path: "orders.purchasedDate" },
568
+ { path: "orders.lineItems.image.urlExpirationDate" },
569
+ { path: "orders.lineItems.digitalFile.expirationDate" },
570
+ {
571
+ path: "orders.lineItems.subscriptionInfo.subscriptionSettings.startDate"
572
+ },
573
+ { path: "orders.shippingInfo.logistics.deliverByDate" },
574
+ { path: "orders.shippingInfo.logistics.deliveryTimeSlot.from" },
575
+ { path: "orders.shippingInfo.logistics.deliveryTimeSlot.to" },
576
+ { path: "orders.activities.createdDate" }
577
+ ]
578
+ },
579
+ {
580
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
581
+ paths: [
582
+ { path: "orders.lineItems.image.focalPoint.x" },
583
+ { path: "orders.lineItems.image.focalPoint.y" },
584
+ { path: "orders.lineItems.physicalProperties.weight" },
585
+ { path: "orders.billingInfo.address.geocode.latitude" },
586
+ { path: "orders.billingInfo.address.geocode.longitude" },
587
+ {
588
+ path: "orders.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
589
+ },
590
+ {
591
+ path: "orders.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
592
+ },
593
+ {
594
+ path: "orders.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
595
+ },
596
+ {
597
+ path: "orders.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
598
+ },
599
+ { path: "orders.recipientInfo.address.geocode.latitude" },
600
+ { path: "orders.recipientInfo.address.geocode.longitude" }
601
+ ]
602
+ }
603
+ ])
604
+ };
605
+ return metadata;
606
+ }
607
+ return __searchOrders;
608
+ }
609
+ function createOrder(payload) {
610
+ function __createOrder({ host }) {
611
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
612
+ {
613
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
614
+ paths: [
615
+ { path: "order.createdDate" },
616
+ { path: "order.updatedDate" },
617
+ { path: "order.purchasedDate" },
618
+ { path: "order.lineItems.image.urlExpirationDate" },
619
+ { path: "order.lineItems.digitalFile.expirationDate" },
620
+ {
621
+ path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
622
+ },
623
+ { path: "order.shippingInfo.logistics.deliverByDate" },
624
+ { path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
625
+ { path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
626
+ { path: "order.activities.createdDate" }
627
+ ]
628
+ },
629
+ {
630
+ transformFn: import_float.transformSDKFloatToRESTFloat,
631
+ paths: [
632
+ { path: "order.lineItems.image.focalPoint.x" },
633
+ { path: "order.lineItems.image.focalPoint.y" },
634
+ { path: "order.lineItems.physicalProperties.weight" },
635
+ { path: "order.billingInfo.address.geocode.latitude" },
636
+ { path: "order.billingInfo.address.geocode.longitude" },
637
+ {
638
+ path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
639
+ },
640
+ {
641
+ path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
642
+ },
643
+ {
644
+ path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
645
+ },
646
+ {
647
+ path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
648
+ },
649
+ { path: "order.recipientInfo.address.geocode.latitude" },
650
+ { path: "order.recipientInfo.address.geocode.longitude" }
651
+ ]
652
+ }
653
+ ]);
654
+ const metadata = {
655
+ entityFqdn: "wix.ecom.v1.order",
656
+ method: "POST",
657
+ methodFqn: "com.wix.ecom.orders.v1.Orders.CreateOrder",
658
+ packageName: PACKAGE_NAME,
659
+ url: resolveComWixEcomOrdersV1OrdersUrl({
660
+ protoPath: "/v1/orders",
661
+ data: serializedData,
662
+ host
663
+ }),
664
+ data: serializedData,
665
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
666
+ {
667
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
668
+ paths: [
669
+ { path: "order.createdDate" },
670
+ { path: "order.updatedDate" },
671
+ { path: "order.purchasedDate" },
672
+ { path: "order.lineItems.image.urlExpirationDate" },
673
+ { path: "order.lineItems.digitalFile.expirationDate" },
674
+ {
675
+ path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
676
+ },
677
+ { path: "order.shippingInfo.logistics.deliverByDate" },
678
+ { path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
679
+ { path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
680
+ { path: "order.activities.createdDate" }
681
+ ]
682
+ },
683
+ {
684
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
685
+ paths: [
686
+ { path: "order.lineItems.image.focalPoint.x" },
687
+ { path: "order.lineItems.image.focalPoint.y" },
688
+ { path: "order.lineItems.physicalProperties.weight" },
689
+ { path: "order.billingInfo.address.geocode.latitude" },
690
+ { path: "order.billingInfo.address.geocode.longitude" },
691
+ {
692
+ path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
693
+ },
694
+ {
695
+ path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
696
+ },
697
+ {
698
+ path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
699
+ },
700
+ {
701
+ path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
702
+ },
703
+ { path: "order.recipientInfo.address.geocode.latitude" },
704
+ { path: "order.recipientInfo.address.geocode.longitude" }
705
+ ]
706
+ }
707
+ ])
708
+ };
709
+ return metadata;
710
+ }
711
+ return __createOrder;
712
+ }
713
+ function updateOrder(payload) {
714
+ function __updateOrder({ host }) {
715
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
716
+ {
717
+ transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
718
+ paths: [{ path: "fieldMask" }]
719
+ },
720
+ {
721
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
722
+ paths: [
723
+ { path: "order.createdDate" },
724
+ { path: "order.updatedDate" },
725
+ { path: "order.purchasedDate" },
726
+ { path: "order.lineItems.image.urlExpirationDate" },
727
+ { path: "order.lineItems.digitalFile.expirationDate" },
728
+ {
729
+ path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
730
+ },
731
+ { path: "order.shippingInfo.logistics.deliverByDate" },
732
+ { path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
733
+ { path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
734
+ { path: "order.activities.createdDate" }
735
+ ]
736
+ },
737
+ {
738
+ transformFn: import_float.transformSDKFloatToRESTFloat,
739
+ paths: [
740
+ { path: "order.lineItems.image.focalPoint.x" },
741
+ { path: "order.lineItems.image.focalPoint.y" },
742
+ { path: "order.lineItems.physicalProperties.weight" },
743
+ { path: "order.billingInfo.address.geocode.latitude" },
744
+ { path: "order.billingInfo.address.geocode.longitude" },
745
+ {
746
+ path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
747
+ },
748
+ {
749
+ path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
750
+ },
751
+ {
752
+ path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
753
+ },
754
+ {
755
+ path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
756
+ },
757
+ { path: "order.recipientInfo.address.geocode.latitude" },
758
+ { path: "order.recipientInfo.address.geocode.longitude" }
759
+ ]
760
+ }
761
+ ]);
762
+ const metadata = {
763
+ entityFqdn: "wix.ecom.v1.order",
764
+ method: "PATCH",
765
+ methodFqn: "com.wix.ecom.orders.v1.Orders.UpdateOrder",
766
+ packageName: PACKAGE_NAME,
767
+ url: resolveComWixEcomOrdersV1OrdersUrl({
768
+ protoPath: "/v1/orders/{order.id}",
769
+ data: serializedData,
770
+ host
771
+ }),
772
+ data: serializedData,
773
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
774
+ {
775
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
776
+ paths: [
777
+ { path: "order.createdDate" },
778
+ { path: "order.updatedDate" },
779
+ { path: "order.purchasedDate" },
780
+ { path: "order.lineItems.image.urlExpirationDate" },
781
+ { path: "order.lineItems.digitalFile.expirationDate" },
782
+ {
783
+ path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
784
+ },
785
+ { path: "order.shippingInfo.logistics.deliverByDate" },
786
+ { path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
787
+ { path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
788
+ { path: "order.activities.createdDate" }
789
+ ]
790
+ },
791
+ {
792
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
793
+ paths: [
794
+ { path: "order.lineItems.image.focalPoint.x" },
795
+ { path: "order.lineItems.image.focalPoint.y" },
796
+ { path: "order.lineItems.physicalProperties.weight" },
797
+ { path: "order.billingInfo.address.geocode.latitude" },
798
+ { path: "order.billingInfo.address.geocode.longitude" },
799
+ {
800
+ path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
801
+ },
802
+ {
803
+ path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
804
+ },
805
+ {
806
+ path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
807
+ },
808
+ {
809
+ path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
810
+ },
811
+ { path: "order.recipientInfo.address.geocode.latitude" },
812
+ { path: "order.recipientInfo.address.geocode.longitude" }
813
+ ]
814
+ }
815
+ ])
816
+ };
817
+ return metadata;
818
+ }
819
+ return __updateOrder;
820
+ }
821
+ function bulkUpdateOrders(payload) {
822
+ function __bulkUpdateOrders({ host }) {
823
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
824
+ {
825
+ transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
826
+ paths: [{ path: "orders.fieldMask" }]
827
+ },
828
+ {
829
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
830
+ paths: [
831
+ { path: "orders.order.createdDate" },
832
+ { path: "orders.order.updatedDate" },
833
+ { path: "orders.order.purchasedDate" },
834
+ { path: "orders.order.lineItems.image.urlExpirationDate" },
835
+ { path: "orders.order.lineItems.digitalFile.expirationDate" },
836
+ {
837
+ path: "orders.order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
838
+ },
839
+ { path: "orders.order.shippingInfo.logistics.deliverByDate" },
840
+ { path: "orders.order.shippingInfo.logistics.deliveryTimeSlot.from" },
841
+ { path: "orders.order.shippingInfo.logistics.deliveryTimeSlot.to" },
842
+ { path: "orders.order.activities.createdDate" }
843
+ ]
844
+ },
845
+ {
846
+ transformFn: import_float.transformSDKFloatToRESTFloat,
847
+ paths: [
848
+ { path: "orders.order.lineItems.image.focalPoint.x" },
849
+ { path: "orders.order.lineItems.image.focalPoint.y" },
850
+ { path: "orders.order.lineItems.physicalProperties.weight" },
851
+ { path: "orders.order.billingInfo.address.geocode.latitude" },
852
+ { path: "orders.order.billingInfo.address.geocode.longitude" },
853
+ {
854
+ path: "orders.order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
855
+ },
856
+ {
857
+ path: "orders.order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
858
+ },
859
+ {
860
+ path: "orders.order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
861
+ },
862
+ {
863
+ path: "orders.order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
864
+ },
865
+ { path: "orders.order.recipientInfo.address.geocode.latitude" },
866
+ { path: "orders.order.recipientInfo.address.geocode.longitude" }
867
+ ]
868
+ }
869
+ ]);
870
+ const metadata = {
871
+ entityFqdn: "wix.ecom.v1.order",
872
+ method: "POST",
873
+ methodFqn: "com.wix.ecom.orders.v1.Orders.BulkUpdateOrders",
874
+ packageName: PACKAGE_NAME,
875
+ url: resolveComWixEcomOrdersV1OrdersUrl({
876
+ protoPath: "/v1/bulk/orders/update",
877
+ data: serializedData,
878
+ host
879
+ }),
880
+ data: serializedData,
881
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
882
+ {
883
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
884
+ paths: [
885
+ { path: "results.item.createdDate" },
886
+ { path: "results.item.updatedDate" },
887
+ { path: "results.item.purchasedDate" },
888
+ { path: "results.item.lineItems.image.urlExpirationDate" },
889
+ { path: "results.item.lineItems.digitalFile.expirationDate" },
890
+ {
891
+ path: "results.item.lineItems.subscriptionInfo.subscriptionSettings.startDate"
892
+ },
893
+ { path: "results.item.shippingInfo.logistics.deliverByDate" },
894
+ {
895
+ path: "results.item.shippingInfo.logistics.deliveryTimeSlot.from"
896
+ },
897
+ {
898
+ path: "results.item.shippingInfo.logistics.deliveryTimeSlot.to"
899
+ },
900
+ { path: "results.item.activities.createdDate" }
901
+ ]
902
+ },
903
+ {
904
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
905
+ paths: [
906
+ { path: "results.item.lineItems.image.focalPoint.x" },
907
+ { path: "results.item.lineItems.image.focalPoint.y" },
908
+ { path: "results.item.lineItems.physicalProperties.weight" },
909
+ { path: "results.item.billingInfo.address.geocode.latitude" },
910
+ { path: "results.item.billingInfo.address.geocode.longitude" },
911
+ {
912
+ path: "results.item.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
913
+ },
914
+ {
915
+ path: "results.item.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
916
+ },
917
+ {
918
+ path: "results.item.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
919
+ },
920
+ {
921
+ path: "results.item.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
922
+ },
923
+ { path: "results.item.recipientInfo.address.geocode.latitude" },
924
+ { path: "results.item.recipientInfo.address.geocode.longitude" }
925
+ ]
926
+ }
927
+ ])
928
+ };
929
+ return metadata;
930
+ }
931
+ return __bulkUpdateOrders;
932
+ }
933
+ function commitDeltas(payload) {
934
+ function __commitDeltas({ host }) {
935
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
936
+ {
937
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
938
+ paths: [
939
+ { path: "changes.changedShippingInfo.logistics.deliverByDate" },
940
+ {
941
+ path: "changes.changedShippingInfo.logistics.deliveryTimeSlot.from"
942
+ },
943
+ { path: "changes.changedShippingInfo.logistics.deliveryTimeSlot.to" },
944
+ { path: "changes.lineItems.lineItem.image.urlExpirationDate" },
945
+ { path: "changes.lineItems.lineItem.digitalFile.expirationDate" },
946
+ {
947
+ path: "changes.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
948
+ }
949
+ ]
950
+ },
951
+ {
952
+ transformFn: import_float.transformSDKFloatToRESTFloat,
953
+ paths: [
954
+ {
955
+ path: "changes.changedShippingInfo.logistics.shippingDestination.address.geocode.latitude"
956
+ },
957
+ {
958
+ path: "changes.changedShippingInfo.logistics.shippingDestination.address.geocode.longitude"
959
+ },
960
+ {
961
+ path: "changes.changedShippingInfo.logistics.pickupDetails.address.geocode.latitude"
962
+ },
963
+ {
964
+ path: "changes.changedShippingInfo.logistics.pickupDetails.address.geocode.longitude"
965
+ },
966
+ { path: "changes.changedBillingInfo.address.geocode.latitude" },
967
+ { path: "changes.changedBillingInfo.address.geocode.longitude" },
968
+ { path: "changes.changedRecipientInfo.address.geocode.latitude" },
969
+ { path: "changes.changedRecipientInfo.address.geocode.longitude" },
970
+ { path: "changes.lineItems.lineItem.physicalProperties.weight" },
971
+ { path: "changes.lineItems.lineItem.image.focalPoint.x" },
972
+ { path: "changes.lineItems.lineItem.image.focalPoint.y" }
973
+ ]
974
+ }
975
+ ]);
976
+ const metadata = {
977
+ entityFqdn: "wix.ecom.v1.order",
978
+ method: "POST",
979
+ methodFqn: "com.wix.ecom.orders.v1.Orders.CommitDeltas",
980
+ packageName: PACKAGE_NAME,
981
+ url: resolveComWixEcomOrdersV1OrdersUrl({
982
+ protoPath: "/v1/orders/{id}/commit-deltas",
983
+ data: serializedData,
984
+ host
985
+ }),
986
+ data: serializedData,
987
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
988
+ {
989
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
990
+ paths: [
991
+ { path: "order.createdDate" },
992
+ { path: "order.updatedDate" },
993
+ { path: "order.purchasedDate" },
994
+ { path: "order.lineItems.image.urlExpirationDate" },
995
+ { path: "order.lineItems.digitalFile.expirationDate" },
996
+ {
997
+ path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
998
+ },
999
+ { path: "order.shippingInfo.logistics.deliverByDate" },
1000
+ { path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
1001
+ { path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
1002
+ { path: "order.activities.createdDate" }
1003
+ ]
1004
+ },
1005
+ {
1006
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
1007
+ paths: [
1008
+ { path: "order.lineItems.image.focalPoint.x" },
1009
+ { path: "order.lineItems.image.focalPoint.y" },
1010
+ { path: "order.lineItems.physicalProperties.weight" },
1011
+ { path: "order.billingInfo.address.geocode.latitude" },
1012
+ { path: "order.billingInfo.address.geocode.longitude" },
1013
+ {
1014
+ path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
1015
+ },
1016
+ {
1017
+ path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
1018
+ },
1019
+ {
1020
+ path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
1021
+ },
1022
+ {
1023
+ path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
1024
+ },
1025
+ { path: "order.recipientInfo.address.geocode.latitude" },
1026
+ { path: "order.recipientInfo.address.geocode.longitude" }
1027
+ ]
1028
+ }
1029
+ ])
1030
+ };
1031
+ return metadata;
1032
+ }
1033
+ return __commitDeltas;
1034
+ }
1035
+ function updateOrderLineItem(payload) {
1036
+ function __updateOrderLineItem({ host }) {
1037
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
1038
+ {
1039
+ transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
1040
+ paths: [{ path: "fieldMask" }]
1041
+ },
1042
+ {
1043
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
1044
+ paths: [
1045
+ { path: "lineItem.image.urlExpirationDate" },
1046
+ { path: "lineItem.digitalFile.expirationDate" },
1047
+ { path: "lineItem.subscriptionInfo.subscriptionSettings.startDate" }
1048
+ ]
1049
+ },
1050
+ {
1051
+ transformFn: import_float.transformSDKFloatToRESTFloat,
1052
+ paths: [
1053
+ { path: "lineItem.image.focalPoint.x" },
1054
+ { path: "lineItem.image.focalPoint.y" },
1055
+ { path: "lineItem.physicalProperties.weight" }
1056
+ ]
1057
+ }
1058
+ ]);
1059
+ const metadata = {
1060
+ entityFqdn: "wix.ecom.v1.order",
1061
+ method: "PATCH",
1062
+ methodFqn: "com.wix.ecom.orders.v1.Orders.UpdateOrderLineItem",
1063
+ packageName: PACKAGE_NAME,
1064
+ url: resolveComWixEcomOrdersV1OrdersUrl({
1065
+ protoPath: "/v1/orders/{id}/line-item/{lineItem.id}",
1066
+ data: serializedData,
1067
+ host
1068
+ }),
1069
+ data: serializedData,
1070
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
1071
+ {
1072
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
1073
+ paths: [
1074
+ { path: "order.createdDate" },
1075
+ { path: "order.updatedDate" },
1076
+ { path: "order.purchasedDate" },
1077
+ { path: "order.lineItems.image.urlExpirationDate" },
1078
+ { path: "order.lineItems.digitalFile.expirationDate" },
1079
+ {
1080
+ path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
1081
+ },
1082
+ { path: "order.shippingInfo.logistics.deliverByDate" },
1083
+ { path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
1084
+ { path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
1085
+ { path: "order.activities.createdDate" }
1086
+ ]
1087
+ },
1088
+ {
1089
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
1090
+ paths: [
1091
+ { path: "order.lineItems.image.focalPoint.x" },
1092
+ { path: "order.lineItems.image.focalPoint.y" },
1093
+ { path: "order.lineItems.physicalProperties.weight" },
1094
+ { path: "order.billingInfo.address.geocode.latitude" },
1095
+ { path: "order.billingInfo.address.geocode.longitude" },
1096
+ {
1097
+ path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
1098
+ },
1099
+ {
1100
+ path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
1101
+ },
1102
+ {
1103
+ path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
1104
+ },
1105
+ {
1106
+ path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
1107
+ },
1108
+ { path: "order.recipientInfo.address.geocode.latitude" },
1109
+ { path: "order.recipientInfo.address.geocode.longitude" }
1110
+ ]
1111
+ }
1112
+ ])
1113
+ };
1114
+ return metadata;
1115
+ }
1116
+ return __updateOrderLineItem;
1117
+ }
1118
+ function addActivity(payload) {
1119
+ function __addActivity({ host }) {
1120
+ const metadata = {
1121
+ entityFqdn: "wix.ecom.v1.order",
1122
+ method: "POST",
1123
+ methodFqn: "com.wix.ecom.orders.v1.Orders.AddActivity",
1124
+ packageName: PACKAGE_NAME,
1125
+ url: resolveComWixEcomOrdersV1OrdersUrl({
1126
+ protoPath: "/v1/orders/{id}/activities",
1127
+ data: payload,
1128
+ host
1129
+ }),
1130
+ data: payload,
1131
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
1132
+ {
1133
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
1134
+ paths: [
1135
+ { path: "order.createdDate" },
1136
+ { path: "order.updatedDate" },
1137
+ { path: "order.purchasedDate" },
1138
+ { path: "order.lineItems.image.urlExpirationDate" },
1139
+ { path: "order.lineItems.digitalFile.expirationDate" },
1140
+ {
1141
+ path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
1142
+ },
1143
+ { path: "order.shippingInfo.logistics.deliverByDate" },
1144
+ { path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
1145
+ { path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
1146
+ { path: "order.activities.createdDate" }
1147
+ ]
1148
+ },
1149
+ {
1150
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
1151
+ paths: [
1152
+ { path: "order.lineItems.image.focalPoint.x" },
1153
+ { path: "order.lineItems.image.focalPoint.y" },
1154
+ { path: "order.lineItems.physicalProperties.weight" },
1155
+ { path: "order.billingInfo.address.geocode.latitude" },
1156
+ { path: "order.billingInfo.address.geocode.longitude" },
1157
+ {
1158
+ path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
1159
+ },
1160
+ {
1161
+ path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
1162
+ },
1163
+ {
1164
+ path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
1165
+ },
1166
+ {
1167
+ path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
1168
+ },
1169
+ { path: "order.recipientInfo.address.geocode.latitude" },
1170
+ { path: "order.recipientInfo.address.geocode.longitude" }
1171
+ ]
1172
+ }
1173
+ ])
1174
+ };
1175
+ return metadata;
1176
+ }
1177
+ return __addActivity;
1178
+ }
1179
+ function updateActivity(payload) {
1180
+ function __updateActivity({ host }) {
1181
+ const metadata = {
1182
+ entityFqdn: "wix.ecom.v1.order",
1183
+ method: "PATCH",
1184
+ methodFqn: "com.wix.ecom.orders.v1.Orders.UpdateActivity",
1185
+ packageName: PACKAGE_NAME,
1186
+ url: resolveComWixEcomOrdersV1OrdersUrl({
1187
+ protoPath: "/v1/orders/{id}/activities/{activityId}",
1188
+ data: payload,
1189
+ host
1190
+ }),
1191
+ data: payload,
1192
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
1193
+ {
1194
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
1195
+ paths: [
1196
+ { path: "order.createdDate" },
1197
+ { path: "order.updatedDate" },
1198
+ { path: "order.purchasedDate" },
1199
+ { path: "order.lineItems.image.urlExpirationDate" },
1200
+ { path: "order.lineItems.digitalFile.expirationDate" },
1201
+ {
1202
+ path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
1203
+ },
1204
+ { path: "order.shippingInfo.logistics.deliverByDate" },
1205
+ { path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
1206
+ { path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
1207
+ { path: "order.activities.createdDate" }
1208
+ ]
1209
+ },
1210
+ {
1211
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
1212
+ paths: [
1213
+ { path: "order.lineItems.image.focalPoint.x" },
1214
+ { path: "order.lineItems.image.focalPoint.y" },
1215
+ { path: "order.lineItems.physicalProperties.weight" },
1216
+ { path: "order.billingInfo.address.geocode.latitude" },
1217
+ { path: "order.billingInfo.address.geocode.longitude" },
1218
+ {
1219
+ path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
1220
+ },
1221
+ {
1222
+ path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
1223
+ },
1224
+ {
1225
+ path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
1226
+ },
1227
+ {
1228
+ path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
1229
+ },
1230
+ { path: "order.recipientInfo.address.geocode.latitude" },
1231
+ { path: "order.recipientInfo.address.geocode.longitude" }
1232
+ ]
1233
+ }
1234
+ ])
1235
+ };
1236
+ return metadata;
1237
+ }
1238
+ return __updateActivity;
1239
+ }
1240
+ function deleteActivity(payload) {
1241
+ function __deleteActivity({ host }) {
1242
+ const metadata = {
1243
+ entityFqdn: "wix.ecom.v1.order",
1244
+ method: "DELETE",
1245
+ methodFqn: "com.wix.ecom.orders.v1.Orders.DeleteActivity",
1246
+ packageName: PACKAGE_NAME,
1247
+ url: resolveComWixEcomOrdersV1OrdersUrl({
1248
+ protoPath: "/v1/orders/{id}/activities/{activityId}",
1249
+ data: payload,
1250
+ host
1251
+ }),
1252
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
1253
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
1254
+ {
1255
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
1256
+ paths: [
1257
+ { path: "order.createdDate" },
1258
+ { path: "order.updatedDate" },
1259
+ { path: "order.purchasedDate" },
1260
+ { path: "order.lineItems.image.urlExpirationDate" },
1261
+ { path: "order.lineItems.digitalFile.expirationDate" },
1262
+ {
1263
+ path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
1264
+ },
1265
+ { path: "order.shippingInfo.logistics.deliverByDate" },
1266
+ { path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
1267
+ { path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
1268
+ { path: "order.activities.createdDate" }
1269
+ ]
1270
+ },
1271
+ {
1272
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
1273
+ paths: [
1274
+ { path: "order.lineItems.image.focalPoint.x" },
1275
+ { path: "order.lineItems.image.focalPoint.y" },
1276
+ { path: "order.lineItems.physicalProperties.weight" },
1277
+ { path: "order.billingInfo.address.geocode.latitude" },
1278
+ { path: "order.billingInfo.address.geocode.longitude" },
1279
+ {
1280
+ path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
1281
+ },
1282
+ {
1283
+ path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
1284
+ },
1285
+ {
1286
+ path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
1287
+ },
1288
+ {
1289
+ path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
1290
+ },
1291
+ { path: "order.recipientInfo.address.geocode.latitude" },
1292
+ { path: "order.recipientInfo.address.geocode.longitude" }
1293
+ ]
1294
+ }
1295
+ ])
1296
+ };
1297
+ return metadata;
1298
+ }
1299
+ return __deleteActivity;
1300
+ }
1301
+ function cancelOrder(payload) {
1302
+ function __cancelOrder({ host }) {
1303
+ const metadata = {
1304
+ entityFqdn: "wix.ecom.v1.order",
1305
+ method: "POST",
1306
+ methodFqn: "com.wix.ecom.orders.v1.Orders.CancelOrder",
1307
+ packageName: PACKAGE_NAME,
1308
+ url: resolveComWixEcomOrdersV1OrdersUrl({
1309
+ protoPath: "/v1/orders/{id}/cancel",
1310
+ data: payload,
1311
+ host
1312
+ }),
1313
+ data: payload,
1314
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
1315
+ {
1316
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
1317
+ paths: [
1318
+ { path: "order.createdDate" },
1319
+ { path: "order.updatedDate" },
1320
+ { path: "order.purchasedDate" },
1321
+ { path: "order.lineItems.image.urlExpirationDate" },
1322
+ { path: "order.lineItems.digitalFile.expirationDate" },
1323
+ {
1324
+ path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
1325
+ },
1326
+ { path: "order.shippingInfo.logistics.deliverByDate" },
1327
+ { path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
1328
+ { path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
1329
+ { path: "order.activities.createdDate" }
1330
+ ]
1331
+ },
1332
+ {
1333
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
1334
+ paths: [
1335
+ { path: "order.lineItems.image.focalPoint.x" },
1336
+ { path: "order.lineItems.image.focalPoint.y" },
1337
+ { path: "order.lineItems.physicalProperties.weight" },
1338
+ { path: "order.billingInfo.address.geocode.latitude" },
1339
+ { path: "order.billingInfo.address.geocode.longitude" },
1340
+ {
1341
+ path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
1342
+ },
1343
+ {
1344
+ path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
1345
+ },
1346
+ {
1347
+ path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
1348
+ },
1349
+ {
1350
+ path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
1351
+ },
1352
+ { path: "order.recipientInfo.address.geocode.latitude" },
1353
+ { path: "order.recipientInfo.address.geocode.longitude" }
1354
+ ]
1355
+ }
1356
+ ])
1357
+ };
1358
+ return metadata;
1359
+ }
1360
+ return __cancelOrder;
1361
+ }
1362
+ function updateOrderStatus(payload) {
1363
+ function __updateOrderStatus({ host }) {
1364
+ const metadata = {
1365
+ entityFqdn: "wix.ecom.v1.order",
1366
+ method: "POST",
1367
+ methodFqn: "com.wix.ecom.orders.v1.Orders.UpdateOrderStatus",
1368
+ packageName: PACKAGE_NAME,
1369
+ url: resolveComWixEcomOrdersV1OrdersUrl({
1370
+ protoPath: "/v1/orders/{orderId}/update-status",
1371
+ data: payload,
1372
+ host
1373
+ }),
1374
+ data: payload,
1375
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
1376
+ {
1377
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
1378
+ paths: [
1379
+ { path: "order.createdDate" },
1380
+ { path: "order.updatedDate" },
1381
+ { path: "order.purchasedDate" },
1382
+ { path: "order.lineItems.image.urlExpirationDate" },
1383
+ { path: "order.lineItems.digitalFile.expirationDate" },
1384
+ {
1385
+ path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
1386
+ },
1387
+ { path: "order.shippingInfo.logistics.deliverByDate" },
1388
+ { path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
1389
+ { path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
1390
+ { path: "order.activities.createdDate" }
1391
+ ]
1392
+ },
1393
+ {
1394
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
1395
+ paths: [
1396
+ { path: "order.lineItems.image.focalPoint.x" },
1397
+ { path: "order.lineItems.image.focalPoint.y" },
1398
+ { path: "order.lineItems.physicalProperties.weight" },
1399
+ { path: "order.billingInfo.address.geocode.latitude" },
1400
+ { path: "order.billingInfo.address.geocode.longitude" },
1401
+ {
1402
+ path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
1403
+ },
1404
+ {
1405
+ path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
1406
+ },
1407
+ {
1408
+ path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
1409
+ },
1410
+ {
1411
+ path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
1412
+ },
1413
+ { path: "order.recipientInfo.address.geocode.latitude" },
1414
+ { path: "order.recipientInfo.address.geocode.longitude" }
1415
+ ]
1416
+ }
1417
+ ])
1418
+ };
1419
+ return metadata;
1420
+ }
1421
+ return __updateOrderStatus;
1422
+ }
1423
+ function aggregateOrders(payload) {
1424
+ function __aggregateOrders({ host }) {
1425
+ const metadata = {
1426
+ entityFqdn: "wix.ecom.v1.order",
1427
+ method: "POST",
1428
+ methodFqn: "com.wix.ecom.orders.v1.Orders.AggregateOrders",
1429
+ packageName: PACKAGE_NAME,
1430
+ url: resolveComWixEcomOrdersV1OrdersUrl({
1431
+ protoPath: "/v1/orders/aggregate",
1432
+ data: payload,
1433
+ host
1434
+ }),
1435
+ data: payload
1436
+ };
1437
+ return metadata;
1438
+ }
1439
+ return __aggregateOrders;
1440
+ }
1441
+ function bulkUpdateOrderTags(payload) {
1442
+ function __bulkUpdateOrderTags({ host }) {
1443
+ const metadata = {
1444
+ entityFqdn: "wix.ecom.v1.order",
1445
+ method: "POST",
1446
+ methodFqn: "com.wix.ecom.orders.v1.Orders.BulkUpdateOrderTags",
1447
+ packageName: PACKAGE_NAME,
1448
+ url: resolveComWixEcomOrdersV1OrdersUrl({
1449
+ protoPath: "/v1/bulk/orders/update-tags",
1450
+ data: payload,
1451
+ host
1452
+ }),
1453
+ data: payload
1454
+ };
1455
+ return metadata;
1456
+ }
1457
+ return __bulkUpdateOrderTags;
1458
+ }
1459
+
1460
+ // src/ecom-v1-order-orders.meta.ts
1461
+ function preparePaymentCollection2() {
1462
+ const payload = { ecomOrderId: ":ecomOrderId" };
1463
+ const getRequestOptions = preparePaymentCollection(payload);
1464
+ const getUrl = (context) => {
1465
+ const { url } = getRequestOptions(context);
1466
+ return url;
1467
+ };
1468
+ return {
1469
+ getUrl,
1470
+ httpMethod: "POST",
1471
+ path: "/v1/payments-collector/orders/{ecomOrderId}/prepare-payment-collection",
1472
+ pathParams: { ecomOrderId: "ecomOrderId" },
1473
+ __requestType: null,
1474
+ __originalRequestType: null,
1475
+ __responseType: null,
1476
+ __originalResponseType: null
1477
+ };
1478
+ }
1479
+ function getPaymentCollectabilityStatus2() {
1480
+ const payload = { ecomOrderId: ":ecomOrderId" };
1481
+ const getRequestOptions = getPaymentCollectabilityStatus(payload);
1482
+ const getUrl = (context) => {
1483
+ const { url } = getRequestOptions(context);
1484
+ return url;
1485
+ };
1486
+ return {
1487
+ getUrl,
1488
+ httpMethod: "GET",
1489
+ path: "/v1/payments-collector/orders/{ecomOrderId}/payment-collectability-status",
1490
+ pathParams: { ecomOrderId: "ecomOrderId" },
1491
+ __requestType: null,
1492
+ __originalRequestType: null,
1493
+ __responseType: null,
1494
+ __originalResponseType: null
1495
+ };
1496
+ }
1497
+ function recordManuallyCollectedPayment2() {
1498
+ const payload = { orderId: ":orderId" };
1499
+ const getRequestOptions = recordManuallyCollectedPayment(payload);
1500
+ const getUrl = (context) => {
1501
+ const { url } = getRequestOptions(context);
1502
+ return url;
1503
+ };
1504
+ return {
1505
+ getUrl,
1506
+ httpMethod: "POST",
1507
+ path: "/v1/payments-collector/orders/{orderId}/manual-payment",
1508
+ pathParams: { orderId: "orderId" },
1509
+ __requestType: null,
1510
+ __originalRequestType: null,
1511
+ __responseType: null,
1512
+ __originalResponseType: null
1513
+ };
1514
+ }
1515
+ function paymentCollectionMarkOrderAsPaid2() {
1516
+ const payload = { ecomOrderId: ":ecomOrderId" };
1517
+ const getRequestOptions = paymentCollectionMarkOrderAsPaid(payload);
1518
+ const getUrl = (context) => {
1519
+ const { url } = getRequestOptions(context);
1520
+ return url;
1521
+ };
1522
+ return {
1523
+ getUrl,
1524
+ httpMethod: "POST",
1525
+ path: "/v1/payments-collector/orders/{ecomOrderId}/mark-as-paid",
1526
+ pathParams: { ecomOrderId: "ecomOrderId" },
1527
+ __requestType: null,
1528
+ __originalRequestType: null,
1529
+ __responseType: null,
1530
+ __originalResponseType: null
1531
+ };
1532
+ }
1533
+ function paymentCollectionBulkMarkOrdersAsPaid2() {
1534
+ const payload = {};
1535
+ const getRequestOptions = paymentCollectionBulkMarkOrdersAsPaid(payload);
1536
+ const getUrl = (context) => {
1537
+ const { url } = getRequestOptions(context);
1538
+ return url;
1539
+ };
1540
+ return {
1541
+ getUrl,
1542
+ httpMethod: "POST",
1543
+ path: "/v1/bulk/payments-collector/mark-as-paid",
1544
+ pathParams: {},
1545
+ __requestType: null,
1546
+ __originalRequestType: null,
1547
+ __responseType: null,
1548
+ __originalResponseType: null
1549
+ };
1550
+ }
1551
+ function getRefundabilityStatus2() {
1552
+ const payload = { ecomOrderId: ":ecomOrderId" };
1553
+ const getRequestOptions = getRefundabilityStatus(payload);
1554
+ const getUrl = (context) => {
1555
+ const { url } = getRequestOptions(context);
1556
+ return url;
1557
+ };
1558
+ return {
1559
+ getUrl,
1560
+ httpMethod: "GET",
1561
+ path: "/v1/payments-collector/orders/{ecomOrderId}/refundability",
1562
+ pathParams: { ecomOrderId: "ecomOrderId" },
1563
+ __requestType: null,
1564
+ __originalRequestType: null,
1565
+ __responseType: null,
1566
+ __originalResponseType: null
1567
+ };
1568
+ }
1569
+ function paymentCollectionCreatePaymentGatewayOrder2() {
1570
+ const payload = { ecomOrderId: ":ecomOrderId" };
1571
+ const getRequestOptions = paymentCollectionCreatePaymentGatewayOrder(
1572
+ payload
1573
+ );
1574
+ const getUrl = (context) => {
1575
+ const { url } = getRequestOptions(context);
1576
+ return url;
1577
+ };
1578
+ return {
1579
+ getUrl,
1580
+ httpMethod: "POST",
1581
+ path: "/v1/payments-collector/orders/{ecomOrderId}/create-payment-gateway-order",
1582
+ pathParams: { ecomOrderId: "ecomOrderId" },
1583
+ __requestType: null,
1584
+ __originalRequestType: null,
1585
+ __responseType: null,
1586
+ __originalResponseType: null
1587
+ };
1588
+ }
1589
+ function chargeMemberships2() {
1590
+ const payload = { ecomOrderId: ":ecomOrderId" };
1591
+ const getRequestOptions = chargeMemberships(payload);
1592
+ const getUrl = (context) => {
1593
+ const { url } = getRequestOptions(context);
1594
+ return url;
1595
+ };
1596
+ return {
1597
+ getUrl,
1598
+ httpMethod: "POST",
1599
+ path: "/v1/payments-collector/orders/{ecomOrderId}/charge-membership",
1600
+ pathParams: { ecomOrderId: "ecomOrderId" },
1601
+ __requestType: null,
1602
+ __originalRequestType: null,
1603
+ __responseType: null,
1604
+ __originalResponseType: null
1605
+ };
1606
+ }
1607
+ function triggerRefund2() {
1608
+ const payload = { ecomOrderId: ":ecomOrderId" };
1609
+ const getRequestOptions = triggerRefund(payload);
1610
+ const getUrl = (context) => {
1611
+ const { url } = getRequestOptions(context);
1612
+ return url;
1613
+ };
1614
+ return {
1615
+ getUrl,
1616
+ httpMethod: "POST",
1617
+ path: "/v1/payments-collector/orders/{ecomOrderId}/trigger-refund",
1618
+ pathParams: { ecomOrderId: "ecomOrderId" },
1619
+ __requestType: null,
1620
+ __originalRequestType: null,
1621
+ __responseType: null,
1622
+ __originalResponseType: null
1623
+ };
1624
+ }
1625
+ function voidAuthorizedPayments2() {
1626
+ const payload = { ecomOrderId: ":ecomOrderId" };
1627
+ const getRequestOptions = voidAuthorizedPayments(payload);
1628
+ const getUrl = (context) => {
1629
+ const { url } = getRequestOptions(context);
1630
+ return url;
1631
+ };
1632
+ return {
1633
+ getUrl,
1634
+ httpMethod: "POST",
1635
+ path: "/v1/payments-collector/orders/{ecomOrderId}/void-authorized-payments",
1636
+ pathParams: { ecomOrderId: "ecomOrderId" },
1637
+ __requestType: null,
1638
+ __originalRequestType: null,
1639
+ __responseType: null,
1640
+ __originalResponseType: null
1641
+ };
1642
+ }
1643
+ function captureAuthorizedPayments2() {
1644
+ const payload = { ecomOrderId: ":ecomOrderId" };
1645
+ const getRequestOptions = captureAuthorizedPayments(payload);
1646
+ const getUrl = (context) => {
1647
+ const { url } = getRequestOptions(context);
1648
+ return url;
1649
+ };
1650
+ return {
1651
+ getUrl,
1652
+ httpMethod: "POST",
1653
+ path: "/v1/payments-collector/orders/{ecomOrderId}/capture-authorized-payments",
1654
+ pathParams: { ecomOrderId: "ecomOrderId" },
1655
+ __requestType: null,
1656
+ __originalRequestType: null,
1657
+ __responseType: null,
1658
+ __originalResponseType: null
1659
+ };
1660
+ }
1661
+ function getOrder2() {
1662
+ const payload = { id: ":id" };
1663
+ const getRequestOptions = getOrder(payload);
1664
+ const getUrl = (context) => {
1665
+ const { url } = getRequestOptions(context);
1666
+ return url;
1667
+ };
1668
+ return {
1669
+ getUrl,
1670
+ httpMethod: "GET",
1671
+ path: "/v1/orders/{id}",
1672
+ pathParams: { id: "id" },
1673
+ __requestType: null,
1674
+ __originalRequestType: null,
1675
+ __responseType: null,
1676
+ __originalResponseType: null
1677
+ };
1678
+ }
1679
+ function searchOrders2() {
1680
+ const payload = {};
1681
+ const getRequestOptions = searchOrders(payload);
1682
+ const getUrl = (context) => {
1683
+ const { url } = getRequestOptions(context);
1684
+ return url;
1685
+ };
1686
+ return {
1687
+ getUrl,
1688
+ httpMethod: "POST",
1689
+ path: "/v1/orders/search",
1690
+ pathParams: {},
1691
+ __requestType: null,
1692
+ __originalRequestType: null,
1693
+ __responseType: null,
1694
+ __originalResponseType: null
1695
+ };
1696
+ }
1697
+ function createOrder2() {
1698
+ const payload = {};
1699
+ const getRequestOptions = createOrder(payload);
1700
+ const getUrl = (context) => {
1701
+ const { url } = getRequestOptions(context);
1702
+ return url;
1703
+ };
1704
+ return {
1705
+ getUrl,
1706
+ httpMethod: "POST",
1707
+ path: "/v1/orders",
1708
+ pathParams: {},
1709
+ __requestType: null,
1710
+ __originalRequestType: null,
1711
+ __responseType: null,
1712
+ __originalResponseType: null
1713
+ };
1714
+ }
1715
+ function updateOrder2() {
1716
+ const payload = { order: { id: ":orderId" } };
1717
+ const getRequestOptions = updateOrder(payload);
1718
+ const getUrl = (context) => {
1719
+ const { url } = getRequestOptions(context);
1720
+ return url;
1721
+ };
1722
+ return {
1723
+ getUrl,
1724
+ httpMethod: "PATCH",
1725
+ path: "/v1/orders/{order.id}",
1726
+ pathParams: { orderId: "orderId" },
1727
+ __requestType: null,
1728
+ __originalRequestType: null,
1729
+ __responseType: null,
1730
+ __originalResponseType: null
1731
+ };
1732
+ }
1733
+ function bulkUpdateOrders2() {
1734
+ const payload = {};
1735
+ const getRequestOptions = bulkUpdateOrders(payload);
1736
+ const getUrl = (context) => {
1737
+ const { url } = getRequestOptions(context);
1738
+ return url;
1739
+ };
1740
+ return {
1741
+ getUrl,
1742
+ httpMethod: "POST",
1743
+ path: "/v1/bulk/orders/update",
1744
+ pathParams: {},
1745
+ __requestType: null,
1746
+ __originalRequestType: null,
1747
+ __responseType: null,
1748
+ __originalResponseType: null
1749
+ };
1750
+ }
1751
+ function commitDeltas2() {
1752
+ const payload = { id: ":id" };
1753
+ const getRequestOptions = commitDeltas(payload);
1754
+ const getUrl = (context) => {
1755
+ const { url } = getRequestOptions(context);
1756
+ return url;
1757
+ };
1758
+ return {
1759
+ getUrl,
1760
+ httpMethod: "POST",
1761
+ path: "/v1/orders/{id}/commit-deltas",
1762
+ pathParams: { id: "id" },
1763
+ __requestType: null,
1764
+ __originalRequestType: null,
1765
+ __responseType: null,
1766
+ __originalResponseType: null
1767
+ };
1768
+ }
1769
+ function updateOrderLineItem2() {
1770
+ const payload = { id: ":id", lineItem: { id: ":lineItemId" } };
1771
+ const getRequestOptions = updateOrderLineItem(payload);
1772
+ const getUrl = (context) => {
1773
+ const { url } = getRequestOptions(context);
1774
+ return url;
1775
+ };
1776
+ return {
1777
+ getUrl,
1778
+ httpMethod: "PATCH",
1779
+ path: "/v1/orders/{id}/line-item/{lineItem.id}",
1780
+ pathParams: { id: "id", lineItemId: "lineItemId" },
1781
+ __requestType: null,
1782
+ __originalRequestType: null,
1783
+ __responseType: null,
1784
+ __originalResponseType: null
1785
+ };
1786
+ }
1787
+ function addActivity2() {
1788
+ const payload = { id: ":id" };
1789
+ const getRequestOptions = addActivity(payload);
1790
+ const getUrl = (context) => {
1791
+ const { url } = getRequestOptions(context);
1792
+ return url;
1793
+ };
1794
+ return {
1795
+ getUrl,
1796
+ httpMethod: "POST",
1797
+ path: "/v1/orders/{id}/activities",
1798
+ pathParams: { id: "id" },
1799
+ __requestType: null,
1800
+ __originalRequestType: null,
1801
+ __responseType: null,
1802
+ __originalResponseType: null
1803
+ };
1804
+ }
1805
+ function updateActivity2() {
1806
+ const payload = { id: ":id", activityId: ":activityId" };
1807
+ const getRequestOptions = updateActivity(payload);
1808
+ const getUrl = (context) => {
1809
+ const { url } = getRequestOptions(context);
1810
+ return url;
1811
+ };
1812
+ return {
1813
+ getUrl,
1814
+ httpMethod: "PATCH",
1815
+ path: "/v1/orders/{id}/activities/{activityId}",
1816
+ pathParams: { id: "id", activityId: "activityId" },
1817
+ __requestType: null,
1818
+ __originalRequestType: null,
1819
+ __responseType: null,
1820
+ __originalResponseType: null
1821
+ };
1822
+ }
1823
+ function deleteActivity2() {
1824
+ const payload = { id: ":id", activityId: ":activityId" };
1825
+ const getRequestOptions = deleteActivity(payload);
1826
+ const getUrl = (context) => {
1827
+ const { url } = getRequestOptions(context);
1828
+ return url;
1829
+ };
1830
+ return {
1831
+ getUrl,
1832
+ httpMethod: "DELETE",
1833
+ path: "/v1/orders/{id}/activities/{activityId}",
1834
+ pathParams: { id: "id", activityId: "activityId" },
1835
+ __requestType: null,
1836
+ __originalRequestType: null,
1837
+ __responseType: null,
1838
+ __originalResponseType: null
1839
+ };
1840
+ }
1841
+ function cancelOrder2() {
1842
+ const payload = { id: ":id" };
1843
+ const getRequestOptions = cancelOrder(payload);
1844
+ const getUrl = (context) => {
1845
+ const { url } = getRequestOptions(context);
1846
+ return url;
1847
+ };
1848
+ return {
1849
+ getUrl,
1850
+ httpMethod: "POST",
1851
+ path: "/v1/orders/{id}/cancel",
1852
+ pathParams: { id: "id" },
1853
+ __requestType: null,
1854
+ __originalRequestType: null,
1855
+ __responseType: null,
1856
+ __originalResponseType: null
1857
+ };
1858
+ }
1859
+ function updateOrderStatus2() {
1860
+ const payload = { orderId: ":orderId" };
1861
+ const getRequestOptions = updateOrderStatus(payload);
1862
+ const getUrl = (context) => {
1863
+ const { url } = getRequestOptions(context);
1864
+ return url;
1865
+ };
1866
+ return {
1867
+ getUrl,
1868
+ httpMethod: "POST",
1869
+ path: "/v1/orders/{orderId}/update-status",
1870
+ pathParams: { orderId: "orderId" },
1871
+ __requestType: null,
1872
+ __originalRequestType: null,
1873
+ __responseType: null,
1874
+ __originalResponseType: null
1875
+ };
1876
+ }
1877
+ function aggregateOrders2() {
1878
+ const payload = {};
1879
+ const getRequestOptions = aggregateOrders(payload);
1880
+ const getUrl = (context) => {
1881
+ const { url } = getRequestOptions(context);
1882
+ return url;
1883
+ };
1884
+ return {
1885
+ getUrl,
1886
+ httpMethod: "POST",
1887
+ path: "/v1/orders/aggregate",
1888
+ pathParams: {},
1889
+ __requestType: null,
1890
+ __originalRequestType: null,
1891
+ __responseType: null,
1892
+ __originalResponseType: null
1893
+ };
1894
+ }
1895
+ function bulkUpdateOrderTags2() {
1896
+ const payload = {};
1897
+ const getRequestOptions = bulkUpdateOrderTags(payload);
1898
+ const getUrl = (context) => {
1899
+ const { url } = getRequestOptions(context);
1900
+ return url;
1901
+ };
1902
+ return {
1903
+ getUrl,
1904
+ httpMethod: "POST",
1905
+ path: "/v1/bulk/orders/update-tags",
1906
+ pathParams: {},
1907
+ __requestType: null,
1908
+ __originalRequestType: null,
1909
+ __responseType: null,
1910
+ __originalResponseType: null
1911
+ };
1912
+ }
1913
+ // Annotate the CommonJS export names for ESM import in node:
1914
+ 0 && (module.exports = {
1915
+ addActivity,
1916
+ aggregateOrders,
1917
+ bulkUpdateOrderTags,
1918
+ bulkUpdateOrders,
1919
+ cancelOrder,
1920
+ captureAuthorizedPayments,
1921
+ chargeMemberships,
1922
+ commitDeltas,
1923
+ createOrder,
1924
+ deleteActivity,
1925
+ getOrder,
1926
+ getPaymentCollectabilityStatus,
1927
+ getRefundabilityStatus,
1928
+ paymentCollectionBulkMarkOrdersAsPaid,
1929
+ paymentCollectionCreatePaymentGatewayOrder,
1930
+ paymentCollectionMarkOrderAsPaid,
1931
+ preparePaymentCollection,
1932
+ recordManuallyCollectedPayment,
1933
+ searchOrders,
1934
+ triggerRefund,
1935
+ updateActivity,
1936
+ updateOrder,
1937
+ updateOrderLineItem,
1938
+ updateOrderStatus,
1939
+ voidAuthorizedPayments
1940
+ });
1941
+ //# sourceMappingURL=meta.js.map