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