@wix/auto_sdk_events_orders 1.0.16 → 1.0.18

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 (133) hide show
  1. package/build/{internal/cjs/src/events-v1-order-orders.universal.d.ts → events-v1-order-orders.universal-C56YAmFe.d.mts} +393 -759
  2. package/build/{internal/es/src/events-v1-order-orders.universal.d.ts → events-v1-order-orders.universal-C56YAmFe.d.ts} +393 -759
  3. package/build/index.d.mts +234 -0
  4. package/build/index.d.ts +234 -0
  5. package/build/index.js +2769 -0
  6. package/build/index.js.map +1 -0
  7. package/build/index.mjs +2706 -0
  8. package/build/index.mjs.map +1 -0
  9. package/build/{cjs/src/events-v1-order-orders.universal.d.ts → internal/events-v1-order-orders.universal-C56YAmFe.d.mts} +393 -759
  10. package/build/{es/src/events-v1-order-orders.universal.d.ts → internal/events-v1-order-orders.universal-C56YAmFe.d.ts} +393 -759
  11. package/build/internal/index.d.mts +234 -0
  12. package/build/internal/index.d.ts +234 -0
  13. package/build/internal/index.js +2769 -0
  14. package/build/internal/index.js.map +1 -0
  15. package/build/internal/index.mjs +2706 -0
  16. package/build/internal/index.mjs.map +1 -0
  17. package/build/internal/meta.d.mts +1372 -0
  18. package/build/internal/meta.d.ts +1372 -0
  19. package/build/internal/meta.js +1907 -0
  20. package/build/internal/meta.js.map +1 -0
  21. package/build/internal/meta.mjs +1864 -0
  22. package/build/internal/meta.mjs.map +1 -0
  23. package/build/meta.d.mts +1372 -0
  24. package/build/meta.d.ts +1372 -0
  25. package/build/meta.js +1907 -0
  26. package/build/meta.js.map +1 -0
  27. package/build/meta.mjs +1864 -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 -1
  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/events-v1-order-orders.context.d.ts +0 -42
  40. package/build/cjs/src/events-v1-order-orders.context.js +0 -62
  41. package/build/cjs/src/events-v1-order-orders.context.js.map +0 -1
  42. package/build/cjs/src/events-v1-order-orders.http.d.ts +0 -97
  43. package/build/cjs/src/events-v1-order-orders.http.js +0 -1635
  44. package/build/cjs/src/events-v1-order-orders.http.js.map +0 -1
  45. package/build/cjs/src/events-v1-order-orders.meta.d.ts +0 -49
  46. package/build/cjs/src/events-v1-order-orders.meta.js +0 -351
  47. package/build/cjs/src/events-v1-order-orders.meta.js.map +0 -1
  48. package/build/cjs/src/events-v1-order-orders.public.d.ts +0 -202
  49. package/build/cjs/src/events-v1-order-orders.public.js +0 -248
  50. package/build/cjs/src/events-v1-order-orders.public.js.map +0 -1
  51. package/build/cjs/src/events-v1-order-orders.types.d.ts +0 -2078
  52. package/build/cjs/src/events-v1-order-orders.types.js +0 -178
  53. package/build/cjs/src/events-v1-order-orders.types.js.map +0 -1
  54. package/build/cjs/src/events-v1-order-orders.universal.js +0 -1180
  55. package/build/cjs/src/events-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 -1
  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/src/events-v1-order-orders.context.d.ts +0 -42
  66. package/build/es/src/events-v1-order-orders.context.js +0 -42
  67. package/build/es/src/events-v1-order-orders.context.js.map +0 -1
  68. package/build/es/src/events-v1-order-orders.http.d.ts +0 -97
  69. package/build/es/src/events-v1-order-orders.http.js +0 -1615
  70. package/build/es/src/events-v1-order-orders.http.js.map +0 -1
  71. package/build/es/src/events-v1-order-orders.meta.d.ts +0 -49
  72. package/build/es/src/events-v1-order-orders.meta.js +0 -308
  73. package/build/es/src/events-v1-order-orders.meta.js.map +0 -1
  74. package/build/es/src/events-v1-order-orders.public.d.ts +0 -202
  75. package/build/es/src/events-v1-order-orders.public.js +0 -211
  76. package/build/es/src/events-v1-order-orders.public.js.map +0 -1
  77. package/build/es/src/events-v1-order-orders.types.d.ts +0 -2078
  78. package/build/es/src/events-v1-order-orders.types.js +0 -175
  79. package/build/es/src/events-v1-order-orders.types.js.map +0 -1
  80. package/build/es/src/events-v1-order-orders.universal.js +0 -1137
  81. package/build/es/src/events-v1-order-orders.universal.js.map +0 -1
  82. package/build/internal/cjs/index.d.ts +0 -1
  83. package/build/internal/cjs/index.js +0 -18
  84. package/build/internal/cjs/index.js.map +0 -1
  85. package/build/internal/cjs/index.typings.d.ts +0 -1
  86. package/build/internal/cjs/index.typings.js +0 -18
  87. package/build/internal/cjs/index.typings.js.map +0 -1
  88. package/build/internal/cjs/meta.d.ts +0 -1
  89. package/build/internal/cjs/meta.js +0 -18
  90. package/build/internal/cjs/meta.js.map +0 -1
  91. package/build/internal/cjs/src/events-v1-order-orders.context.d.ts +0 -42
  92. package/build/internal/cjs/src/events-v1-order-orders.context.js +0 -62
  93. package/build/internal/cjs/src/events-v1-order-orders.context.js.map +0 -1
  94. package/build/internal/cjs/src/events-v1-order-orders.http.d.ts +0 -97
  95. package/build/internal/cjs/src/events-v1-order-orders.http.js +0 -1635
  96. package/build/internal/cjs/src/events-v1-order-orders.http.js.map +0 -1
  97. package/build/internal/cjs/src/events-v1-order-orders.meta.d.ts +0 -49
  98. package/build/internal/cjs/src/events-v1-order-orders.meta.js +0 -351
  99. package/build/internal/cjs/src/events-v1-order-orders.meta.js.map +0 -1
  100. package/build/internal/cjs/src/events-v1-order-orders.public.d.ts +0 -202
  101. package/build/internal/cjs/src/events-v1-order-orders.public.js +0 -248
  102. package/build/internal/cjs/src/events-v1-order-orders.public.js.map +0 -1
  103. package/build/internal/cjs/src/events-v1-order-orders.types.d.ts +0 -2078
  104. package/build/internal/cjs/src/events-v1-order-orders.types.js +0 -178
  105. package/build/internal/cjs/src/events-v1-order-orders.types.js.map +0 -1
  106. package/build/internal/cjs/src/events-v1-order-orders.universal.js +0 -1180
  107. package/build/internal/cjs/src/events-v1-order-orders.universal.js.map +0 -1
  108. package/build/internal/es/index.d.ts +0 -1
  109. package/build/internal/es/index.js +0 -2
  110. package/build/internal/es/index.js.map +0 -1
  111. package/build/internal/es/index.typings.d.ts +0 -1
  112. package/build/internal/es/index.typings.js +0 -2
  113. package/build/internal/es/index.typings.js.map +0 -1
  114. package/build/internal/es/meta.d.ts +0 -1
  115. package/build/internal/es/meta.js +0 -2
  116. package/build/internal/es/meta.js.map +0 -1
  117. package/build/internal/es/src/events-v1-order-orders.context.d.ts +0 -42
  118. package/build/internal/es/src/events-v1-order-orders.context.js +0 -42
  119. package/build/internal/es/src/events-v1-order-orders.context.js.map +0 -1
  120. package/build/internal/es/src/events-v1-order-orders.http.d.ts +0 -97
  121. package/build/internal/es/src/events-v1-order-orders.http.js +0 -1615
  122. package/build/internal/es/src/events-v1-order-orders.http.js.map +0 -1
  123. package/build/internal/es/src/events-v1-order-orders.meta.d.ts +0 -49
  124. package/build/internal/es/src/events-v1-order-orders.meta.js +0 -308
  125. package/build/internal/es/src/events-v1-order-orders.meta.js.map +0 -1
  126. package/build/internal/es/src/events-v1-order-orders.public.d.ts +0 -202
  127. package/build/internal/es/src/events-v1-order-orders.public.js +0 -211
  128. package/build/internal/es/src/events-v1-order-orders.public.js.map +0 -1
  129. package/build/internal/es/src/events-v1-order-orders.types.d.ts +0 -2078
  130. package/build/internal/es/src/events-v1-order-orders.types.js +0 -175
  131. package/build/internal/es/src/events-v1-order-orders.types.js.map +0 -1
  132. package/build/internal/es/src/events-v1-order-orders.universal.js +0 -1137
  133. package/build/internal/es/src/events-v1-order-orders.universal.js.map +0 -1
@@ -1,1635 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.posCheckout = exports.updateCheckout = exports.checkout = exports.getInvoice = exports.cancelReservation = exports.createReservation = exports.queryAvailableTickets = exports.listAvailableTickets = exports.getCheckoutOptions = exports.voidAuthorizedPayment = exports.captureAuthorizedPayment = exports.getSummary = exports.confirmOrder = exports.bulkUpdateOrders = exports.updateOrder = exports.getOrder = exports.listOrders = void 0;
4
- const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
5
- const float_1 = require("@wix/sdk-runtime/transformations/float");
6
- const float_2 = require("@wix/sdk-runtime/transformations/float");
7
- const timestamp_1 = require("@wix/sdk-runtime/transformations/timestamp");
8
- const timestamp_2 = require("@wix/sdk-runtime/transformations/timestamp");
9
- const field_mask_1 = require("@wix/sdk-runtime/transformations/field-mask");
10
- const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
11
- const rest_modules_2 = require("@wix/sdk-runtime/rest-modules");
12
- function resolveWixEventsTicketingCheckoutServiceUrl(opts) {
13
- const domainToMappings = {
14
- 'manage._base_domain_': [
15
- {
16
- srcPath: '/events/v1/ticket-definitions',
17
- destPath: '/v1/ticket-definitions',
18
- },
19
- {
20
- srcPath: '/events/v2/ticket-definitions',
21
- destPath: '/v2/ticket-definitions',
22
- },
23
- {
24
- srcPath: '/events/v1/tickets/available',
25
- destPath: '/v1/tickets/available',
26
- },
27
- {
28
- srcPath: '/events/v1/checkout',
29
- destPath: '/v1/checkout',
30
- },
31
- {
32
- srcPath: '/events/v1/pos-checkout',
33
- destPath: '/v1/pos-checkout',
34
- },
35
- {
36
- srcPath: '/_api/events/v1/ticket-definitions',
37
- destPath: '/v1/ticket-definitions',
38
- },
39
- {
40
- srcPath: '/_api/events/v2/ticket-definitions',
41
- destPath: '/v2/ticket-definitions',
42
- },
43
- {
44
- srcPath: '/_api/events/v1/tickets/available',
45
- destPath: '/v1/tickets/available',
46
- },
47
- {
48
- srcPath: '/_api/events/v1/pos-checkout',
49
- destPath: '/v1/pos-checkout',
50
- },
51
- {
52
- srcPath: '/_api/events/v1/checkout',
53
- destPath: '/v1/checkout',
54
- },
55
- {
56
- srcPath: '/_api/events-ticketing-v1-proxy',
57
- destPath: '/api',
58
- },
59
- ],
60
- 'www.wixapis.com': [
61
- {
62
- srcPath: '/events/v1/ticket-definitions',
63
- destPath: '/v1/ticket-definitions',
64
- },
65
- {
66
- srcPath: '/events/v2/ticket-definitions',
67
- destPath: '/v2/ticket-definitions',
68
- },
69
- {
70
- srcPath: '/events/v1/tickets/available',
71
- destPath: '/v1/tickets/available',
72
- },
73
- {
74
- srcPath: '/events/v1/checkout',
75
- destPath: '/v1/checkout',
76
- },
77
- {
78
- srcPath: '/events/v1/pos-checkout',
79
- destPath: '/v1/pos-checkout',
80
- },
81
- ],
82
- _: [
83
- {
84
- srcPath: '/_api/events/v1/ticket-definitions',
85
- destPath: '/v1/ticket-definitions',
86
- },
87
- {
88
- srcPath: '/_api/events/v2/ticket-definition',
89
- destPath: '/v2/ticket-definitions',
90
- },
91
- {
92
- srcPath: '/_api/events/v1/tickets/available',
93
- destPath: '/v1/tickets/available',
94
- },
95
- {
96
- srcPath: '/_api/events/v1/pos-checkout',
97
- destPath: '/v1/pos-checkout',
98
- },
99
- {
100
- srcPath: '/_api/events/v1/checkout',
101
- destPath: '/v1/checkout',
102
- },
103
- {
104
- srcPath: '/_api/events-ticketing-v1-proxy/v1',
105
- destPath: '/v1',
106
- },
107
- {
108
- srcPath: '/_api/events-ticketing-v1-proxy/v2',
109
- destPath: '/v2',
110
- },
111
- {
112
- srcPath: '/_api/wix-events-web/v1/checkout',
113
- destPath: '/v1/checkout',
114
- },
115
- {
116
- srcPath: '/_api/wix-events-web/v1/pos-checkout',
117
- destPath: '/v1/pos-checkout',
118
- },
119
- {
120
- srcPath: '/_api/wix-events-web/v1/ticket-definitions',
121
- destPath: '/v1/ticket-definitions',
122
- },
123
- {
124
- srcPath: '/_api/wix-events-web/v1/tickets/available',
125
- destPath: '/v1/tickets/available',
126
- },
127
- ],
128
- 'editor._base_domain_': [
129
- {
130
- srcPath: '/_api/events/v1/ticket-definitions',
131
- destPath: '/v1/ticket-definitions',
132
- },
133
- {
134
- srcPath: '/_api/events/v2/ticket-definitions',
135
- destPath: '/v2/ticket-definitions',
136
- },
137
- {
138
- srcPath: '/_api/events/v1/tickets/available',
139
- destPath: '/v1/tickets/available',
140
- },
141
- {
142
- srcPath: '/_api/events/v1/pos-checkout',
143
- destPath: '/v1/pos-checkout',
144
- },
145
- {
146
- srcPath: '/_api/events/v1/checkout',
147
- destPath: '/v1/checkout',
148
- },
149
- {
150
- srcPath: '/_api/wix-events-web/v1/checkout',
151
- destPath: '/v1/checkout',
152
- },
153
- {
154
- srcPath: '/_api/wix-events-web/v1/ticket-definitions',
155
- destPath: '/v1/ticket-definitions',
156
- },
157
- {
158
- srcPath: '/_api/wix-events-web/v1/tickets/available',
159
- destPath: '/v1/tickets/available',
160
- },
161
- {
162
- srcPath: '/_api/wix-events-web/v1/pos-checkout',
163
- destPath: '/v1/pos-checkout',
164
- },
165
- ],
166
- 'blocks._base_domain_': [
167
- {
168
- srcPath: '/_api/events/v1/ticket-definitions',
169
- destPath: '/v1/ticket-definitions',
170
- },
171
- {
172
- srcPath: '/_api/events/v2/ticket-definitions',
173
- destPath: '/v2/ticket-definitions',
174
- },
175
- {
176
- srcPath: '/_api/events/v1/tickets/available',
177
- destPath: '/v1/tickets/available',
178
- },
179
- {
180
- srcPath: '/_api/events/v1/pos-checkout',
181
- destPath: '/v1/pos-checkout',
182
- },
183
- {
184
- srcPath: '/_api/events/v1/checkout',
185
- destPath: '/v1/checkout',
186
- },
187
- {
188
- srcPath: '/_api/wix-events-web/v1/checkout',
189
- destPath: '/v1/checkout',
190
- },
191
- {
192
- srcPath: '/_api/wix-events-web/v1/ticket-definitions',
193
- destPath: '/v1/ticket-definitions',
194
- },
195
- {
196
- srcPath: '/_api/wix-events-web/v1/tickets/available',
197
- destPath: '/v1/tickets/available',
198
- },
199
- {
200
- srcPath: '/_api/wix-events-web/v1/pos-checkout',
201
- destPath: '/v1/pos-checkout',
202
- },
203
- ],
204
- 'create.editorx': [
205
- {
206
- srcPath: '/_api/events/v1/ticket-definitions',
207
- destPath: '/v1/ticket-definitions',
208
- },
209
- {
210
- srcPath: '/_api/events/v2/ticket-definitions',
211
- destPath: '/v2/ticket-definitions',
212
- },
213
- {
214
- srcPath: '/_api/events/v1/tickets/available',
215
- destPath: '/v1/tickets/available',
216
- },
217
- {
218
- srcPath: '/_api/events/v1/pos-checkout',
219
- destPath: '/v1/pos-checkout',
220
- },
221
- {
222
- srcPath: '/_api/events/v1/checkout',
223
- destPath: '/v1/checkout',
224
- },
225
- {
226
- srcPath: '/_api/wix-events-web/v1/checkout',
227
- destPath: '/v1/checkout',
228
- },
229
- {
230
- srcPath: '/_api/wix-events-web/v1/ticket-definitions',
231
- destPath: '/v1/ticket-definitions',
232
- },
233
- {
234
- srcPath: '/_api/wix-events-web/v1/tickets/available',
235
- destPath: '/v1/tickets/available',
236
- },
237
- {
238
- srcPath: '/_api/wix-events-web/v1/pos-checkout',
239
- destPath: '/v1/pos-checkout',
240
- },
241
- ],
242
- '*.dev.wix-code.com': [
243
- {
244
- srcPath: '/_api/wix-events-web/v1/checkout',
245
- destPath: '/v1/checkout',
246
- },
247
- {
248
- srcPath: '/_api/wix-events-web/v1/pos-checkout',
249
- destPath: '/v1/pos-checkout',
250
- },
251
- {
252
- srcPath: '/_api/wix-events-web/v1/ticket-definitions',
253
- destPath: '/v1/ticket-definitions',
254
- },
255
- {
256
- srcPath: '/_api/wix-events-web/v1/tickets/available',
257
- destPath: '/v1/tickets/available',
258
- },
259
- ],
260
- '*.pub.wix-code.com': [
261
- {
262
- srcPath: '/_api/wix-events-web/v1/checkout',
263
- destPath: '/v1/checkout',
264
- },
265
- {
266
- srcPath: '/_api/wix-events-web/v1/ticket-definitions',
267
- destPath: '/v1/ticket-definitions',
268
- },
269
- {
270
- srcPath: '/_api/wix-events-web/v1/tickets/available',
271
- destPath: '/v1/tickets/available',
272
- },
273
- {
274
- srcPath: '/_api/wix-events-web/v1/pos-checkout',
275
- destPath: '/v1/pos-checkout',
276
- },
277
- ],
278
- 'api._base_domain_': [
279
- {
280
- srcPath: '/events/v1/checkout',
281
- destPath: '/v1/checkout',
282
- },
283
- {
284
- srcPath: '/events/v1/ticket-definitions',
285
- destPath: '/v1/ticket-definitions',
286
- },
287
- {
288
- srcPath: '/events/v1/tickets/available',
289
- destPath: '/v1/tickets/available',
290
- },
291
- {
292
- srcPath: '/events/v1/pos-checkout',
293
- destPath: '/v1/pos-checkout',
294
- },
295
- ],
296
- 'editor-flow.wixapps.net': [
297
- {
298
- srcPath: '/_api/wix-events-web/v1/checkout',
299
- destPath: '/v1/checkout',
300
- },
301
- {
302
- srcPath: '/_api/wix-events-web/v1/ticket-definitions',
303
- destPath: '/v1/ticket-definitions',
304
- },
305
- {
306
- srcPath: '/_api/wix-events-web/v1/tickets/available',
307
- destPath: '/v1/tickets/available',
308
- },
309
- {
310
- srcPath: '/_api/wix-events-web/v1/pos-checkout',
311
- destPath: '/v1/pos-checkout',
312
- },
313
- ],
314
- 'editor.wixapps.net': [
315
- {
316
- srcPath: '/_api/wix-events-web/v1/checkout',
317
- destPath: '/v1/checkout',
318
- },
319
- {
320
- srcPath: '/_api/wix-events-web/v1/ticket-definitions',
321
- destPath: '/v1/ticket-definitions',
322
- },
323
- {
324
- srcPath: '/_api/wix-events-web/v1/tickets/available',
325
- destPath: '/v1/tickets/available',
326
- },
327
- {
328
- srcPath: '/_api/wix-events-web/v1/pos-checkout',
329
- destPath: '/v1/pos-checkout',
330
- },
331
- ],
332
- 'www._base_domain_': [
333
- {
334
- srcPath: '/_api/wix-events-web/v1/checkout',
335
- destPath: '/v1/checkout',
336
- },
337
- {
338
- srcPath: '/_api/wix-events-web/v1/ticket-definitions',
339
- destPath: '/v1/ticket-definitions',
340
- },
341
- {
342
- srcPath: '/_api/wix-events-web/v1/tickets/available',
343
- destPath: '/v1/tickets/available',
344
- },
345
- {
346
- srcPath: '/_api/wix-events-web/v1/pos-checkout',
347
- destPath: '/v1/pos-checkout',
348
- },
349
- ],
350
- };
351
- return (0, rest_modules_2.resolveUrl)(Object.assign(opts, { domainToMappings }));
352
- }
353
- function resolveWixEventsTicketingOrderManagementUrl(opts) {
354
- const domainToMappings = {
355
- 'events._base_domain_': [
356
- {
357
- srcPath: '',
358
- destPath: '',
359
- },
360
- {
361
- srcPath: '/_api/wix-events-web',
362
- destPath: '/api',
363
- },
364
- ],
365
- 'www.wixevents.com': [
366
- {
367
- srcPath: '/_api/wix-events-web',
368
- destPath: '/api',
369
- },
370
- {
371
- srcPath: '/api',
372
- destPath: '/api',
373
- },
374
- {
375
- srcPath: '/viewEvent',
376
- destPath: '/viewEvent',
377
- },
378
- {
379
- srcPath: '/viewRsvpDashboard',
380
- destPath: '/viewRsvpDashboard',
381
- },
382
- {
383
- srcPath: '/viewOrderDashboard',
384
- destPath: '/viewOrderDashboard',
385
- },
386
- {
387
- srcPath: '/viewSummarySubscription',
388
- destPath: '/viewSummarySubscription',
389
- },
390
- {
391
- srcPath: '/check-in',
392
- destPath: '/check-in',
393
- },
394
- {
395
- srcPath: '/v2',
396
- destPath: '/v2',
397
- },
398
- {
399
- srcPath: '/export',
400
- destPath: '/export',
401
- },
402
- {
403
- srcPath: '/tickets',
404
- destPath: '/tickets',
405
- },
406
- {
407
- srcPath: '/payment-redirect',
408
- destPath: '/payment-redirect',
409
- },
410
- {
411
- srcPath: '/admin',
412
- destPath: '/admin',
413
- },
414
- {
415
- srcPath: '/ticket',
416
- destPath: '/ticket',
417
- },
418
- {
419
- srcPath: '/media',
420
- destPath: '/media',
421
- },
422
- ],
423
- 'api._api_base_domain_': [
424
- {
425
- srcPath: '/wix-events-web',
426
- destPath: '',
427
- },
428
- ],
429
- 'events.wixapps.net': [
430
- {
431
- srcPath: '/_api/wix-events-web',
432
- destPath: '/api',
433
- },
434
- {
435
- srcPath: '/events',
436
- destPath: '',
437
- },
438
- ],
439
- 'www._base_domain_': [
440
- {
441
- srcPath: '/_api/wix-events-web',
442
- destPath: '/api',
443
- },
444
- {
445
- srcPath: '/_api/wix-events-web/v2',
446
- destPath: '/v2',
447
- },
448
- {
449
- srcPath: '/_api/wix-events-web/v1/bulk-async/categories',
450
- destPath: '/v1/bulk-async/categories',
451
- },
452
- {
453
- srcPath: '/_api/wix-events-web/v1/bulk/categories',
454
- destPath: '/v1/bulk/categories',
455
- },
456
- {
457
- srcPath: '/_api/wix-events-web/v1/categories',
458
- destPath: '/v1/categories',
459
- },
460
- {
461
- srcPath: '/_api/wix-events-web/v1/events',
462
- destPath: '/v1/events',
463
- },
464
- {
465
- srcPath: '/_api/wix-events-web/v1/orders',
466
- destPath: '/v1/orders',
467
- },
468
- {
469
- srcPath: '/_api/wix-events-web/v1/tickets',
470
- destPath: '/v1/tickets',
471
- },
472
- ],
473
- 'apps._base_domain_': [
474
- {
475
- srcPath: '/_api/wix-events-web',
476
- destPath: '/api',
477
- },
478
- {
479
- srcPath: '/events',
480
- destPath: '',
481
- },
482
- ],
483
- 'manage._base_domain_': [
484
- {
485
- srcPath: '/_api/wix-events-web',
486
- destPath: '/api',
487
- },
488
- {
489
- srcPath: '/_api/wix-events-web/v1/events',
490
- destPath: '/v1/events',
491
- },
492
- {
493
- srcPath: '/_api/wix-events-web/v1/categories',
494
- destPath: '/v1/categories',
495
- },
496
- {
497
- srcPath: '/_api/wix-events-web/v2/events',
498
- destPath: '/v2/events',
499
- },
500
- {
501
- srcPath: '/_api/wix-events-web/v1/bulk/categories',
502
- destPath: '/v1/bulk/categories',
503
- },
504
- {
505
- srcPath: '/_api/wix-events-web/v1/bulk/events',
506
- destPath: '/v1/bulk/events',
507
- },
508
- {
509
- srcPath: '/_api/wix-events-web/v1/bulk-async/categories',
510
- destPath: '/v1/bulk-async/categories',
511
- },
512
- {
513
- srcPath: '/_api/wix-events-web/v1/tickets',
514
- destPath: '/v1/tickets',
515
- },
516
- {
517
- srcPath: '/events/v1/events',
518
- destPath: '/v1/events',
519
- },
520
- {
521
- srcPath: '/events/v1/categories',
522
- destPath: '/v1/categories',
523
- },
524
- {
525
- srcPath: '/events/v1/bulk/categories',
526
- destPath: '/v1/bulk/categories',
527
- },
528
- {
529
- srcPath: '/events/v1/bulk-async/categories',
530
- destPath: '/v1/bulk-async/categories',
531
- },
532
- {
533
- srcPath: '/events/v1/bulk/events',
534
- destPath: '/v1/bulk/events',
535
- },
536
- {
537
- srcPath: '/events/v1/reports',
538
- destPath: '/v1/reports',
539
- },
540
- {
541
- srcPath: '/events/v1/tickets',
542
- destPath: '/v1/tickets',
543
- },
544
- {
545
- srcPath: '/events/v1/orders',
546
- destPath: '/v1/orders',
547
- },
548
- {
549
- srcPath: '/events/v1/web',
550
- destPath: '/v1/web',
551
- },
552
- {
553
- srcPath: '/events/v2/tickets',
554
- destPath: '/v2/tickets',
555
- },
556
- {
557
- srcPath: '/events/v2/events',
558
- destPath: '/v2/events',
559
- },
560
- ],
561
- 'www.wixapis.com': [
562
- {
563
- srcPath: '/events/v1/events',
564
- destPath: '/v1/events',
565
- },
566
- {
567
- srcPath: '/events/v1/tickets',
568
- destPath: '/v1/tickets',
569
- },
570
- {
571
- srcPath: '/events/v1/categories',
572
- destPath: '/v1/categories',
573
- },
574
- {
575
- srcPath: '/events/v1/orders',
576
- destPath: '/v1/orders',
577
- },
578
- {
579
- srcPath: '/events/v1/bulk/categories',
580
- destPath: '/v1/bulk/categories',
581
- },
582
- {
583
- srcPath: '/events/v2/events',
584
- destPath: '/v2/events',
585
- },
586
- {
587
- srcPath: '/events/v1/bulk-async/categories',
588
- destPath: '/v1/bulk-async/categories',
589
- },
590
- ],
591
- 'api._base_domain_': [
592
- {
593
- srcPath: '/events/v2',
594
- destPath: '/v2',
595
- },
596
- {
597
- srcPath: '/events/v1/bulk-async/categories',
598
- destPath: '/v1/bulk-async/categories',
599
- },
600
- {
601
- srcPath: '/events/v1/bulk/categories',
602
- destPath: '/v1/bulk/categories',
603
- },
604
- {
605
- srcPath: '/events/v1/categories',
606
- destPath: '/v1/categories',
607
- },
608
- {
609
- srcPath: '/events/v1/events',
610
- destPath: '/v1/events',
611
- },
612
- {
613
- srcPath: '/events/v1/orders',
614
- destPath: '/v1/orders',
615
- },
616
- {
617
- srcPath: '/events/v1/tickets',
618
- destPath: '/v1/tickets',
619
- },
620
- ],
621
- _: [
622
- {
623
- srcPath: '/_api/wix-events-web/v2',
624
- destPath: '/v2',
625
- },
626
- {
627
- srcPath: '/_api/wix-events-web/v1/bulk-async/categories',
628
- destPath: '/v1/bulk-async/categories',
629
- },
630
- {
631
- srcPath: '/_api/wix-events-web/v1/bulk/categories',
632
- destPath: '/v1/bulk/categories',
633
- },
634
- {
635
- srcPath: '/_api/wix-events-web/v1/categories',
636
- destPath: '/v1/categories',
637
- },
638
- {
639
- srcPath: '/_api/wix-events-web/v1/events',
640
- destPath: '/v1/events',
641
- },
642
- {
643
- srcPath: '/_api/wix-events-web/v1/orders',
644
- destPath: '/v1/orders',
645
- },
646
- {
647
- srcPath: '/_api/wix-events-web/v1/tickets',
648
- destPath: '/v1/tickets',
649
- },
650
- ],
651
- 'editor.wixapps.net': [
652
- {
653
- srcPath: '/events/v2/events',
654
- destPath: '/v2/events',
655
- },
656
- {
657
- srcPath: '/_api/wix-events-web/v1/bulk-async/categories',
658
- destPath: '/v1/bulk-async/categories',
659
- },
660
- {
661
- srcPath: '/_api/wix-events-web/v1/bulk/categories',
662
- destPath: '/v1/bulk/categories',
663
- },
664
- {
665
- srcPath: '/_api/wix-events-web/v1/categories',
666
- destPath: '/v1/categories',
667
- },
668
- {
669
- srcPath: '/_api/wix-events-web/v1/events',
670
- destPath: '/v1/events',
671
- },
672
- {
673
- srcPath: '/_api/wix-events-web/v1/orders',
674
- destPath: '/v1/orders',
675
- },
676
- {
677
- srcPath: '/_api/wix-events-web/v1/tickets',
678
- destPath: '/v1/tickets',
679
- },
680
- ],
681
- '*.dev.wix-code.com': [
682
- {
683
- srcPath: '/_api/wix-events-web/v2',
684
- destPath: '/v2',
685
- },
686
- {
687
- srcPath: '/_api/wix-events-web/v1/bulk-async/categories',
688
- destPath: '/v1/bulk-async/categories',
689
- },
690
- {
691
- srcPath: '/_api/wix-events-web/v1/bulk/categories',
692
- destPath: '/v1/bulk/categories',
693
- },
694
- {
695
- srcPath: '/_api/wix-events-web/v1/categories',
696
- destPath: '/v1/categories',
697
- },
698
- {
699
- srcPath: '/_api/wix-events-web/v1/events',
700
- destPath: '/v1/events',
701
- },
702
- {
703
- srcPath: '/_api/wix-events-web/v1/orders',
704
- destPath: '/v1/orders',
705
- },
706
- {
707
- srcPath: '/_api/wix-events-web/v1/tickets',
708
- destPath: '/v1/tickets',
709
- },
710
- ],
711
- '*.pub.wix-code.com': [
712
- {
713
- srcPath: '/_api/wix-events-web/v1/bulk-async/categories',
714
- destPath: '/v1/bulk-async/categories',
715
- },
716
- {
717
- srcPath: '/_api/wix-events-web/v1/bulk/categories',
718
- destPath: '/v1/bulk/categories',
719
- },
720
- {
721
- srcPath: '/_api/wix-events-web/v1/categories',
722
- destPath: '/v1/categories',
723
- },
724
- {
725
- srcPath: '/_api/wix-events-web/v1/events',
726
- destPath: '/v1/events',
727
- },
728
- {
729
- srcPath: '/_api/wix-events-web/v1/orders',
730
- destPath: '/v1/orders',
731
- },
732
- {
733
- srcPath: '/_api/wix-events-web/v1/tickets',
734
- destPath: '/v1/tickets',
735
- },
736
- ],
737
- 'editor-flow.wixapps.net': [
738
- {
739
- srcPath: '/_api/wix-events-web/v1/bulk-async/categories',
740
- destPath: '/v1/bulk-async/categories',
741
- },
742
- {
743
- srcPath: '/_api/wix-events-web/v1/bulk/categories',
744
- destPath: '/v1/bulk/categories',
745
- },
746
- {
747
- srcPath: '/_api/wix-events-web/v1/categories',
748
- destPath: '/v1/categories',
749
- },
750
- {
751
- srcPath: '/_api/wix-events-web/v1/events',
752
- destPath: '/v1/events',
753
- },
754
- {
755
- srcPath: '/_api/wix-events-web/v1/orders',
756
- destPath: '/v1/orders',
757
- },
758
- {
759
- srcPath: '/_api/wix-events-web/v1/tickets',
760
- destPath: '/v1/tickets',
761
- },
762
- ],
763
- 'editor._base_domain_': [
764
- {
765
- srcPath: '/_api/wix-events-web/v1/bulk-async/categories',
766
- destPath: '/v1/bulk-async/categories',
767
- },
768
- {
769
- srcPath: '/_api/wix-events-web/v1/bulk/categories',
770
- destPath: '/v1/bulk/categories',
771
- },
772
- {
773
- srcPath: '/_api/wix-events-web/v1/categories',
774
- destPath: '/v1/categories',
775
- },
776
- {
777
- srcPath: '/_api/wix-events-web/v1/events',
778
- destPath: '/v1/events',
779
- },
780
- {
781
- srcPath: '/_api/wix-events-web/v1/orders',
782
- destPath: '/v1/orders',
783
- },
784
- {
785
- srcPath: '/_api/wix-events-web/v1/tickets',
786
- destPath: '/v1/tickets',
787
- },
788
- ],
789
- 'blocks._base_domain_': [
790
- {
791
- srcPath: '/_api/wix-events-web/v1/bulk-async/categories',
792
- destPath: '/v1/bulk-async/categories',
793
- },
794
- {
795
- srcPath: '/_api/wix-events-web/v1/bulk/categories',
796
- destPath: '/v1/bulk/categories',
797
- },
798
- {
799
- srcPath: '/_api/wix-events-web/v1/categories',
800
- destPath: '/v1/categories',
801
- },
802
- {
803
- srcPath: '/_api/wix-events-web/v1/events',
804
- destPath: '/v1/events',
805
- },
806
- {
807
- srcPath: '/_api/wix-events-web/v1/orders',
808
- destPath: '/v1/orders',
809
- },
810
- {
811
- srcPath: '/_api/wix-events-web/v1/tickets',
812
- destPath: '/v1/tickets',
813
- },
814
- ],
815
- 'create.editorx': [
816
- {
817
- srcPath: '/_api/wix-events-web/v1/bulk-async/categories',
818
- destPath: '/v1/bulk-async/categories',
819
- },
820
- {
821
- srcPath: '/_api/wix-events-web/v1/bulk/categories',
822
- destPath: '/v1/bulk/categories',
823
- },
824
- {
825
- srcPath: '/_api/wix-events-web/v1/categories',
826
- destPath: '/v1/categories',
827
- },
828
- {
829
- srcPath: '/_api/wix-events-web/v1/events',
830
- destPath: '/v1/events',
831
- },
832
- {
833
- srcPath: '/_api/wix-events-web/v1/orders',
834
- destPath: '/v1/orders',
835
- },
836
- {
837
- srcPath: '/_api/wix-events-web/v1/tickets',
838
- destPath: '/v1/tickets',
839
- },
840
- ],
841
- };
842
- return (0, rest_modules_2.resolveUrl)(Object.assign(opts, { domainToMappings }));
843
- }
844
- const PACKAGE_NAME = '@wix/auto_sdk_events_orders';
845
- /** Retrieves a list of orders, including ticket data. */
846
- function listOrders(payload) {
847
- function __listOrders({ host }) {
848
- const metadata = {
849
- entityFqdn: 'wix.events.v1.order',
850
- method: 'GET',
851
- methodFqn: 'wix.events.ticketing.OrderManagement.ListOrders',
852
- packageName: PACKAGE_NAME,
853
- url: resolveWixEventsTicketingOrderManagementUrl({
854
- protoPath: '/v1/orders',
855
- data: payload,
856
- host,
857
- }),
858
- params: (0, rest_modules_1.toURLSearchParams)(payload),
859
- transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
860
- {
861
- transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
862
- paths: [
863
- { path: 'orders.created' },
864
- { path: 'orders.updated' },
865
- { path: 'orders.checkoutForm.inputValues.dateTime' },
866
- { path: 'orders.tickets.checkIn.created' },
867
- { path: 'orders.tickets.guestDetails.form.inputValues.dateTime' },
868
- {
869
- path: 'orders.paymentDetails.transaction.scheduledActionExecutionDate',
870
- },
871
- ],
872
- },
873
- {
874
- transformFn: float_2.transformRESTFloatToSDKFloat,
875
- paths: [
876
- { path: 'orders.checkoutForm.inputValues.number' },
877
- {
878
- path: 'orders.checkoutForm.inputValues.address.address.geocode.latitude',
879
- },
880
- {
881
- path: 'orders.checkoutForm.inputValues.address.address.geocode.longitude',
882
- },
883
- { path: 'orders.tickets.guestDetails.form.inputValues.number' },
884
- {
885
- path: 'orders.tickets.guestDetails.form.inputValues.address.address.geocode.latitude',
886
- },
887
- {
888
- path: 'orders.tickets.guestDetails.form.inputValues.address.address.geocode.longitude',
889
- },
890
- ],
891
- },
892
- ]),
893
- };
894
- return metadata;
895
- }
896
- return __listOrders;
897
- }
898
- exports.listOrders = listOrders;
899
- /**
900
- * Retrieves an order, including ticket data.
901
- * <!--
902
- * >The fieldsets in this function are restricted and only run if you elevate permissions using the [wix-auth.elevate()](https://www.wix.com/velo/reference/wix-auth/elevate) function.
903
- * -->
904
- */
905
- function getOrder(payload) {
906
- function __getOrder({ host }) {
907
- const metadata = {
908
- entityFqdn: 'wix.events.v1.order',
909
- method: 'GET',
910
- methodFqn: 'wix.events.ticketing.OrderManagement.GetOrder',
911
- packageName: PACKAGE_NAME,
912
- url: resolveWixEventsTicketingOrderManagementUrl({
913
- protoPath: '/v1/events/{eventId}/orders/{orderNumber}',
914
- data: payload,
915
- host,
916
- }),
917
- params: (0, rest_modules_1.toURLSearchParams)(payload),
918
- transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
919
- {
920
- transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
921
- paths: [
922
- { path: 'order.created' },
923
- { path: 'order.updated' },
924
- { path: 'order.checkoutForm.inputValues.dateTime' },
925
- { path: 'order.tickets.checkIn.created' },
926
- { path: 'order.tickets.guestDetails.form.inputValues.dateTime' },
927
- {
928
- path: 'order.paymentDetails.transaction.scheduledActionExecutionDate',
929
- },
930
- ],
931
- },
932
- {
933
- transformFn: float_2.transformRESTFloatToSDKFloat,
934
- paths: [
935
- { path: 'order.checkoutForm.inputValues.number' },
936
- {
937
- path: 'order.checkoutForm.inputValues.address.address.geocode.latitude',
938
- },
939
- {
940
- path: 'order.checkoutForm.inputValues.address.address.geocode.longitude',
941
- },
942
- { path: 'order.tickets.guestDetails.form.inputValues.number' },
943
- {
944
- path: 'order.tickets.guestDetails.form.inputValues.address.address.geocode.latitude',
945
- },
946
- {
947
- path: 'order.tickets.guestDetails.form.inputValues.address.address.geocode.longitude',
948
- },
949
- ],
950
- },
951
- ]),
952
- };
953
- return metadata;
954
- }
955
- return __getOrder;
956
- }
957
- exports.getOrder = getOrder;
958
- /** Updates an order. */
959
- function updateOrder(payload) {
960
- function __updateOrder({ host }) {
961
- const serializedData = (0, transform_paths_1.transformPaths)(payload, [
962
- {
963
- transformFn: field_mask_1.transformSDKFieldMaskToRESTFieldMask,
964
- paths: [{ path: 'fields' }],
965
- },
966
- {
967
- transformFn: timestamp_1.transformSDKTimestampToRESTTimestamp,
968
- paths: [
969
- { path: 'expires' },
970
- { path: 'checkoutForm.inputValues.dateTime' },
971
- ],
972
- },
973
- {
974
- transformFn: float_1.transformSDKFloatToRESTFloat,
975
- paths: [
976
- { path: 'checkoutForm.inputValues.number' },
977
- { path: 'checkoutForm.inputValues.address.address.geocode.latitude' },
978
- {
979
- path: 'checkoutForm.inputValues.address.address.geocode.longitude',
980
- },
981
- ],
982
- },
983
- ]);
984
- const metadata = {
985
- entityFqdn: 'wix.events.v1.order',
986
- method: 'PATCH',
987
- methodFqn: 'wix.events.ticketing.OrderManagement.UpdateOrder',
988
- packageName: PACKAGE_NAME,
989
- url: resolveWixEventsTicketingOrderManagementUrl({
990
- protoPath: '/v1/events/{eventId}/orders/{orderNumber}',
991
- data: serializedData,
992
- host,
993
- }),
994
- data: serializedData,
995
- transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
996
- {
997
- transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
998
- paths: [
999
- { path: 'order.created' },
1000
- { path: 'order.updated' },
1001
- { path: 'order.checkoutForm.inputValues.dateTime' },
1002
- { path: 'order.tickets.checkIn.created' },
1003
- { path: 'order.tickets.guestDetails.form.inputValues.dateTime' },
1004
- {
1005
- path: 'order.paymentDetails.transaction.scheduledActionExecutionDate',
1006
- },
1007
- ],
1008
- },
1009
- {
1010
- transformFn: float_2.transformRESTFloatToSDKFloat,
1011
- paths: [
1012
- { path: 'order.checkoutForm.inputValues.number' },
1013
- {
1014
- path: 'order.checkoutForm.inputValues.address.address.geocode.latitude',
1015
- },
1016
- {
1017
- path: 'order.checkoutForm.inputValues.address.address.geocode.longitude',
1018
- },
1019
- { path: 'order.tickets.guestDetails.form.inputValues.number' },
1020
- {
1021
- path: 'order.tickets.guestDetails.form.inputValues.address.address.geocode.latitude',
1022
- },
1023
- {
1024
- path: 'order.tickets.guestDetails.form.inputValues.address.address.geocode.longitude',
1025
- },
1026
- ],
1027
- },
1028
- ]),
1029
- };
1030
- return metadata;
1031
- }
1032
- return __updateOrder;
1033
- }
1034
- exports.updateOrder = updateOrder;
1035
- /** Archives multiple orders. */
1036
- function bulkUpdateOrders(payload) {
1037
- function __bulkUpdateOrders({ host }) {
1038
- const serializedData = (0, transform_paths_1.transformPaths)(payload, [
1039
- {
1040
- transformFn: field_mask_1.transformSDKFieldMaskToRESTFieldMask,
1041
- paths: [{ path: 'fields' }],
1042
- },
1043
- ]);
1044
- const metadata = {
1045
- entityFqdn: 'wix.events.v1.order',
1046
- method: 'PATCH',
1047
- methodFqn: 'wix.events.ticketing.OrderManagement.BulkUpdateOrders',
1048
- packageName: PACKAGE_NAME,
1049
- url: resolveWixEventsTicketingOrderManagementUrl({
1050
- protoPath: '/v1/events/{eventId}/orders',
1051
- data: serializedData,
1052
- host,
1053
- }),
1054
- data: serializedData,
1055
- transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
1056
- {
1057
- transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
1058
- paths: [
1059
- { path: 'orders.created' },
1060
- { path: 'orders.updated' },
1061
- { path: 'orders.checkoutForm.inputValues.dateTime' },
1062
- { path: 'orders.tickets.checkIn.created' },
1063
- { path: 'orders.tickets.guestDetails.form.inputValues.dateTime' },
1064
- {
1065
- path: 'orders.paymentDetails.transaction.scheduledActionExecutionDate',
1066
- },
1067
- ],
1068
- },
1069
- {
1070
- transformFn: float_2.transformRESTFloatToSDKFloat,
1071
- paths: [
1072
- { path: 'orders.checkoutForm.inputValues.number' },
1073
- {
1074
- path: 'orders.checkoutForm.inputValues.address.address.geocode.latitude',
1075
- },
1076
- {
1077
- path: 'orders.checkoutForm.inputValues.address.address.geocode.longitude',
1078
- },
1079
- { path: 'orders.tickets.guestDetails.form.inputValues.number' },
1080
- {
1081
- path: 'orders.tickets.guestDetails.form.inputValues.address.address.geocode.latitude',
1082
- },
1083
- {
1084
- path: 'orders.tickets.guestDetails.form.inputValues.address.address.geocode.longitude',
1085
- },
1086
- ],
1087
- },
1088
- ]),
1089
- };
1090
- return metadata;
1091
- }
1092
- return __bulkUpdateOrders;
1093
- }
1094
- exports.bulkUpdateOrders = bulkUpdateOrders;
1095
- /**
1096
- * Confirms an order.
1097
- *
1098
- *
1099
- * This function changes order status from `INITIATED`, `PENDING`, `OFFLINE_PENDING` to `PAID`.
1100
- * Confirming orders with `INITIATED` or `PENDING` status triggers an email with the tickets to the buyer (and to additional guests, if provided).
1101
- */
1102
- function confirmOrder(payload) {
1103
- function __confirmOrder({ host }) {
1104
- const metadata = {
1105
- entityFqdn: 'wix.events.v1.order',
1106
- method: 'POST',
1107
- methodFqn: 'wix.events.ticketing.OrderManagement.ConfirmOrder',
1108
- packageName: PACKAGE_NAME,
1109
- url: resolveWixEventsTicketingOrderManagementUrl({
1110
- protoPath: '/v1/events/{eventId}/orders/confirm',
1111
- data: payload,
1112
- host,
1113
- }),
1114
- data: payload,
1115
- transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
1116
- {
1117
- transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
1118
- paths: [
1119
- { path: 'orders.created' },
1120
- { path: 'orders.updated' },
1121
- { path: 'orders.checkoutForm.inputValues.dateTime' },
1122
- { path: 'orders.tickets.checkIn.created' },
1123
- { path: 'orders.tickets.guestDetails.form.inputValues.dateTime' },
1124
- {
1125
- path: 'orders.paymentDetails.transaction.scheduledActionExecutionDate',
1126
- },
1127
- ],
1128
- },
1129
- {
1130
- transformFn: float_2.transformRESTFloatToSDKFloat,
1131
- paths: [
1132
- { path: 'orders.checkoutForm.inputValues.number' },
1133
- {
1134
- path: 'orders.checkoutForm.inputValues.address.address.geocode.latitude',
1135
- },
1136
- {
1137
- path: 'orders.checkoutForm.inputValues.address.address.geocode.longitude',
1138
- },
1139
- { path: 'orders.tickets.guestDetails.form.inputValues.number' },
1140
- {
1141
- path: 'orders.tickets.guestDetails.form.inputValues.address.address.geocode.latitude',
1142
- },
1143
- {
1144
- path: 'orders.tickets.guestDetails.form.inputValues.address.address.geocode.longitude',
1145
- },
1146
- ],
1147
- },
1148
- ]),
1149
- };
1150
- return metadata;
1151
- }
1152
- return __confirmOrder;
1153
- }
1154
- exports.confirmOrder = confirmOrder;
1155
- /**
1156
- * Retrieves a summary of total ticket sales.
1157
- * <!--
1158
- * > Note: This function is restricted and only runs if you elevate permissions using the [wix-auth.elevate()](https://www.wix.com/velo/reference/wix-auth/elevate) function.
1159
- * -->
1160
- */
1161
- function getSummary(payload) {
1162
- function __getSummary({ host }) {
1163
- const metadata = {
1164
- entityFqdn: 'wix.events.v1.order',
1165
- method: 'GET',
1166
- methodFqn: 'wix.events.ticketing.OrderManagement.GetSummary',
1167
- packageName: PACKAGE_NAME,
1168
- url: resolveWixEventsTicketingOrderManagementUrl({
1169
- protoPath: '/v1/orders/summary',
1170
- data: payload,
1171
- host,
1172
- }),
1173
- params: (0, rest_modules_1.toURLSearchParams)(payload),
1174
- };
1175
- return metadata;
1176
- }
1177
- return __getSummary;
1178
- }
1179
- exports.getSummary = getSummary;
1180
- /**
1181
- * Captures authorized payment asynchronously.
1182
- * Eventually order will become paid.
1183
- * For orders with non-authorized payments request will fail.
1184
- */
1185
- function captureAuthorizedPayment(payload) {
1186
- function __captureAuthorizedPayment({ host }) {
1187
- const metadata = {
1188
- entityFqdn: 'wix.events.v1.order',
1189
- method: 'POST',
1190
- methodFqn: 'wix.events.ticketing.OrderManagement.CaptureAuthorizedPayment',
1191
- packageName: PACKAGE_NAME,
1192
- url: resolveWixEventsTicketingOrderManagementUrl({
1193
- protoPath: '/v1/events/orders/{orderNumber}/capture',
1194
- data: payload,
1195
- host,
1196
- }),
1197
- data: payload,
1198
- };
1199
- return metadata;
1200
- }
1201
- return __captureAuthorizedPayment;
1202
- }
1203
- exports.captureAuthorizedPayment = captureAuthorizedPayment;
1204
- /**
1205
- * Voids authorized payment asynchronously.
1206
- * Eventually order will become voided.
1207
- * For orders with non-authorized payments request will fail.
1208
- */
1209
- function voidAuthorizedPayment(payload) {
1210
- function __voidAuthorizedPayment({ host }) {
1211
- const metadata = {
1212
- entityFqdn: 'wix.events.v1.order',
1213
- method: 'POST',
1214
- methodFqn: 'wix.events.ticketing.OrderManagement.VoidAuthorizedPayment',
1215
- packageName: PACKAGE_NAME,
1216
- url: resolveWixEventsTicketingOrderManagementUrl({
1217
- protoPath: '/v1/events/orders/{orderNumber}/void',
1218
- data: payload,
1219
- host,
1220
- }),
1221
- data: payload,
1222
- };
1223
- return metadata;
1224
- }
1225
- return __voidAuthorizedPayment;
1226
- }
1227
- exports.voidAuthorizedPayment = voidAuthorizedPayment;
1228
- /** Retrieves checkout details. */
1229
- function getCheckoutOptions(payload) {
1230
- function __getCheckoutOptions({ host }) {
1231
- const metadata = {
1232
- entityFqdn: 'wix.events.v1.order',
1233
- method: 'GET',
1234
- methodFqn: 'wix.events.ticketing.CheckoutService.GetCheckoutOptions',
1235
- packageName: PACKAGE_NAME,
1236
- url: resolveWixEventsTicketingCheckoutServiceUrl({
1237
- protoPath: '/v1/checkout/options',
1238
- data: payload,
1239
- host,
1240
- }),
1241
- params: (0, rest_modules_1.toURLSearchParams)(payload),
1242
- };
1243
- return metadata;
1244
- }
1245
- return __getCheckoutOptions;
1246
- }
1247
- exports.getCheckoutOptions = getCheckoutOptions;
1248
- /**
1249
- * Returns tickets available to reserve.
1250
- * <!--
1251
- * > Note: This function is restricted and only runs if you elevate permissions using the [wix-auth.elevate()](https://www.wix.com/velo/reference/wix-auth/elevate) function.
1252
- * -->
1253
- */
1254
- function listAvailableTickets(payload) {
1255
- function __listAvailableTickets({ host }) {
1256
- const serializedData = (0, transform_paths_1.transformPaths)(payload, [
1257
- {
1258
- transformFn: timestamp_1.transformSDKTimestampToRESTTimestamp,
1259
- paths: [{ path: 'overrideRequestTime' }],
1260
- },
1261
- ]);
1262
- const metadata = {
1263
- entityFqdn: 'wix.events.v1.order',
1264
- method: 'GET',
1265
- methodFqn: 'wix.events.ticketing.CheckoutService.ListAvailableTickets',
1266
- packageName: PACKAGE_NAME,
1267
- url: resolveWixEventsTicketingCheckoutServiceUrl({
1268
- protoPath: '/v1/checkout/available-tickets',
1269
- data: serializedData,
1270
- host,
1271
- }),
1272
- params: (0, rest_modules_1.toURLSearchParams)(serializedData),
1273
- transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
1274
- {
1275
- transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
1276
- paths: [
1277
- { path: 'definitions.salePeriod.startDate' },
1278
- { path: 'definitions.salePeriod.endDate' },
1279
- ],
1280
- },
1281
- ]),
1282
- };
1283
- return metadata;
1284
- }
1285
- return __listAvailableTickets;
1286
- }
1287
- exports.listAvailableTickets = listAvailableTickets;
1288
- /**
1289
- * Returns tickets available to reserve.
1290
- * <!--
1291
- * > Note: The fieldsets in this function are restricted and only run if you elevate permissions using the [wix-auth.elevate()](https://www.wix.com/velo/reference/wix-auth/elevate) function.
1292
- * -->
1293
- */
1294
- function queryAvailableTickets(payload) {
1295
- function __queryAvailableTickets({ host }) {
1296
- const metadata = {
1297
- entityFqdn: 'wix.events.v1.order',
1298
- method: 'POST',
1299
- methodFqn: 'wix.events.ticketing.CheckoutService.QueryAvailableTickets',
1300
- packageName: PACKAGE_NAME,
1301
- url: resolveWixEventsTicketingCheckoutServiceUrl({
1302
- protoPath: '/v1/checkout/available-tickets/query',
1303
- data: payload,
1304
- host,
1305
- }),
1306
- data: payload,
1307
- transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
1308
- {
1309
- transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
1310
- paths: [
1311
- { path: 'definitions.salePeriod.startDate' },
1312
- { path: 'definitions.salePeriod.endDate' },
1313
- ],
1314
- },
1315
- ]),
1316
- };
1317
- return metadata;
1318
- }
1319
- return __queryAvailableTickets;
1320
- }
1321
- exports.queryAvailableTickets = queryAvailableTickets;
1322
- /**
1323
- * Reserves tickets for 20 minutes.
1324
- *
1325
- *
1326
- * Reserved tickets are deducted from ticket stock and cannot be bought by another site visitor.
1327
- * When the reservation expires, the tickets are added back to the stock.
1328
- */
1329
- function createReservation(payload) {
1330
- function __createReservation({ host }) {
1331
- const serializedData = (0, transform_paths_1.transformPaths)(payload, [
1332
- {
1333
- transformFn: timestamp_1.transformSDKTimestampToRESTTimestamp,
1334
- paths: [{ path: 'overrideRequestTime' }],
1335
- },
1336
- ]);
1337
- const metadata = {
1338
- entityFqdn: 'wix.events.v1.order',
1339
- method: 'POST',
1340
- methodFqn: 'wix.events.ticketing.CheckoutService.CreateReservation',
1341
- packageName: PACKAGE_NAME,
1342
- url: resolveWixEventsTicketingCheckoutServiceUrl({
1343
- protoPath: '/v1/checkout/reservations',
1344
- data: serializedData,
1345
- host,
1346
- }),
1347
- data: serializedData,
1348
- transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
1349
- {
1350
- transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
1351
- paths: [
1352
- { path: 'expires' },
1353
- { path: 'reservations.ticket.salePeriod.startDate' },
1354
- { path: 'reservations.ticket.salePeriod.endDate' },
1355
- ],
1356
- },
1357
- ]),
1358
- };
1359
- return metadata;
1360
- }
1361
- return __createReservation;
1362
- }
1363
- exports.createReservation = createReservation;
1364
- /**
1365
- * Cancels ticket reservation and returns tickets to stock.
1366
- * <!--
1367
- * > Note: This function is restricted and only runs if you elevate permissions using the [wix-auth.elevate()](https://www.wix.com/velo/reference/wix-auth/elevate) function.
1368
- * -->
1369
- */
1370
- function cancelReservation(payload) {
1371
- function __cancelReservation({ host }) {
1372
- const metadata = {
1373
- entityFqdn: 'wix.events.v1.order',
1374
- method: 'DELETE',
1375
- methodFqn: 'wix.events.ticketing.CheckoutService.CancelReservation',
1376
- packageName: PACKAGE_NAME,
1377
- url: resolveWixEventsTicketingCheckoutServiceUrl({
1378
- protoPath: '/v1/checkout/reservations/{id}',
1379
- data: payload,
1380
- host,
1381
- }),
1382
- params: (0, rest_modules_1.toURLSearchParams)(payload),
1383
- };
1384
- return metadata;
1385
- }
1386
- return __cancelReservation;
1387
- }
1388
- exports.cancelReservation = cancelReservation;
1389
- /** Generates a preview of an invoice, including the given coupon or pricing plan. */
1390
- function getInvoice(payload) {
1391
- function __getInvoice({ host }) {
1392
- const metadata = {
1393
- entityFqdn: 'wix.events.v1.order',
1394
- method: 'POST',
1395
- methodFqn: 'wix.events.ticketing.CheckoutService.GetInvoice',
1396
- packageName: PACKAGE_NAME,
1397
- url: resolveWixEventsTicketingCheckoutServiceUrl({
1398
- protoPath: '/v1/checkout/invoices/{reservationId}',
1399
- data: payload,
1400
- host,
1401
- }),
1402
- data: payload,
1403
- transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
1404
- {
1405
- transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
1406
- paths: [
1407
- { path: 'expires' },
1408
- { path: 'reservations.ticket.salePeriod.startDate' },
1409
- { path: 'reservations.ticket.salePeriod.endDate' },
1410
- ],
1411
- },
1412
- ]),
1413
- };
1414
- return metadata;
1415
- }
1416
- return __getInvoice;
1417
- }
1418
- exports.getInvoice = getInvoice;
1419
- /**
1420
- * Checkouts the reserved tickets.
1421
- *
1422
- *
1423
- * Creates an order and associates it with a site visitor contact.
1424
- * Guest details are received from the [Registration Form](https://www.wix.com/velo/reference/wix-events-v2/forms/introduction) input fields.
1425
- *
1426
- * There is a possibility to use a separate ready-made Wix checkout form where the user will be redirected from your non-Wix site or a custom ticket picker created with Velo.
1427
- * To build the checkout form path, get your event base URL by using the [`getEvent()`](https://www.wix.com/velo/reference/wix-events-backend/wixevents/getevent) function and add the following path:
1428
- * `/{{EVENT_PAGE_SLUG}}/{{SLUG}}/ticket-form?reservationId={{YOUR_RESERVATION_ID}}`
1429
- *
1430
- * Example: `https://johndoe.wixsite.com/weddings/event-details/doe-wedding/ticket-form?reservationId=2be6d34a-2a1e-459f-897b-b4a66e73f69a`
1431
- */
1432
- function checkout(payload) {
1433
- function __checkout({ host }) {
1434
- const serializedData = (0, transform_paths_1.transformPaths)(payload, [
1435
- {
1436
- transformFn: timestamp_1.transformSDKTimestampToRESTTimestamp,
1437
- paths: [
1438
- { path: 'overrideRequestTime' },
1439
- { path: 'guests.form.inputValues.dateTime' },
1440
- ],
1441
- },
1442
- {
1443
- transformFn: float_1.transformSDKFloatToRESTFloat,
1444
- paths: [
1445
- { path: 'guests.form.inputValues.number' },
1446
- { path: 'guests.form.inputValues.address.address.geocode.latitude' },
1447
- { path: 'guests.form.inputValues.address.address.geocode.longitude' },
1448
- ],
1449
- },
1450
- ]);
1451
- const metadata = {
1452
- entityFqdn: 'wix.events.v1.order',
1453
- method: 'POST',
1454
- methodFqn: 'wix.events.ticketing.CheckoutService.Checkout',
1455
- packageName: PACKAGE_NAME,
1456
- url: resolveWixEventsTicketingCheckoutServiceUrl({
1457
- protoPath: '/v1/checkout',
1458
- data: serializedData,
1459
- host,
1460
- }),
1461
- data: serializedData,
1462
- transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
1463
- {
1464
- transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
1465
- paths: [
1466
- { path: 'expires' },
1467
- { path: 'order.created' },
1468
- { path: 'order.updated' },
1469
- { path: 'order.checkoutForm.inputValues.dateTime' },
1470
- { path: 'order.tickets.checkIn.created' },
1471
- { path: 'order.tickets.guestDetails.form.inputValues.dateTime' },
1472
- {
1473
- path: 'order.paymentDetails.transaction.scheduledActionExecutionDate',
1474
- },
1475
- { path: 'reservations.ticket.salePeriod.startDate' },
1476
- { path: 'reservations.ticket.salePeriod.endDate' },
1477
- ],
1478
- },
1479
- {
1480
- transformFn: float_2.transformRESTFloatToSDKFloat,
1481
- paths: [
1482
- { path: 'order.checkoutForm.inputValues.number' },
1483
- {
1484
- path: 'order.checkoutForm.inputValues.address.address.geocode.latitude',
1485
- },
1486
- {
1487
- path: 'order.checkoutForm.inputValues.address.address.geocode.longitude',
1488
- },
1489
- { path: 'order.tickets.guestDetails.form.inputValues.number' },
1490
- {
1491
- path: 'order.tickets.guestDetails.form.inputValues.address.address.geocode.latitude',
1492
- },
1493
- {
1494
- path: 'order.tickets.guestDetails.form.inputValues.address.address.geocode.longitude',
1495
- },
1496
- ],
1497
- },
1498
- ]),
1499
- };
1500
- return metadata;
1501
- }
1502
- return __checkout;
1503
- }
1504
- exports.checkout = checkout;
1505
- /**
1506
- * Updates order and tickets.
1507
- *
1508
- *
1509
- * Only applicable for orders with `INITIATED`, `PENDING`, `OFFLINE_PENDING` statuses.
1510
- */
1511
- function updateCheckout(payload) {
1512
- function __updateCheckout({ host }) {
1513
- const serializedData = (0, transform_paths_1.transformPaths)(payload, [
1514
- {
1515
- transformFn: float_1.transformSDKFloatToRESTFloat,
1516
- paths: [
1517
- { path: 'guests.form.inputValues.number' },
1518
- { path: 'guests.form.inputValues.address.address.geocode.latitude' },
1519
- { path: 'guests.form.inputValues.address.address.geocode.longitude' },
1520
- ],
1521
- },
1522
- {
1523
- transformFn: timestamp_1.transformSDKTimestampToRESTTimestamp,
1524
- paths: [{ path: 'guests.form.inputValues.dateTime' }],
1525
- },
1526
- ]);
1527
- const metadata = {
1528
- entityFqdn: 'wix.events.v1.order',
1529
- method: 'PATCH',
1530
- methodFqn: 'wix.events.ticketing.CheckoutService.UpdateCheckout',
1531
- packageName: PACKAGE_NAME,
1532
- url: resolveWixEventsTicketingCheckoutServiceUrl({
1533
- protoPath: '/v1/checkout/{orderNumber}',
1534
- data: serializedData,
1535
- host,
1536
- }),
1537
- data: serializedData,
1538
- transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
1539
- {
1540
- transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
1541
- paths: [
1542
- { path: 'order.created' },
1543
- { path: 'order.updated' },
1544
- { path: 'order.checkoutForm.inputValues.dateTime' },
1545
- { path: 'order.tickets.checkIn.created' },
1546
- { path: 'order.tickets.guestDetails.form.inputValues.dateTime' },
1547
- {
1548
- path: 'order.paymentDetails.transaction.scheduledActionExecutionDate',
1549
- },
1550
- ],
1551
- },
1552
- {
1553
- transformFn: float_2.transformRESTFloatToSDKFloat,
1554
- paths: [
1555
- { path: 'order.checkoutForm.inputValues.number' },
1556
- {
1557
- path: 'order.checkoutForm.inputValues.address.address.geocode.latitude',
1558
- },
1559
- {
1560
- path: 'order.checkoutForm.inputValues.address.address.geocode.longitude',
1561
- },
1562
- { path: 'order.tickets.guestDetails.form.inputValues.number' },
1563
- {
1564
- path: 'order.tickets.guestDetails.form.inputValues.address.address.geocode.latitude',
1565
- },
1566
- {
1567
- path: 'order.tickets.guestDetails.form.inputValues.address.address.geocode.longitude',
1568
- },
1569
- ],
1570
- },
1571
- ]),
1572
- };
1573
- return metadata;
1574
- }
1575
- return __updateCheckout;
1576
- }
1577
- exports.updateCheckout = updateCheckout;
1578
- /** Creates order with payment details already initiated via Cashier Pay API. */
1579
- function posCheckout(payload) {
1580
- function __posCheckout({ host }) {
1581
- const metadata = {
1582
- entityFqdn: 'wix.events.v1.order',
1583
- method: 'POST',
1584
- methodFqn: 'wix.events.ticketing.CheckoutService.PosCheckout',
1585
- packageName: PACKAGE_NAME,
1586
- url: resolveWixEventsTicketingCheckoutServiceUrl({
1587
- protoPath: '/v1/pos-checkout',
1588
- data: payload,
1589
- host,
1590
- }),
1591
- data: payload,
1592
- transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
1593
- {
1594
- transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
1595
- paths: [
1596
- { path: 'expires' },
1597
- { path: 'order.created' },
1598
- { path: 'order.updated' },
1599
- { path: 'order.checkoutForm.inputValues.dateTime' },
1600
- { path: 'order.tickets.checkIn.created' },
1601
- { path: 'order.tickets.guestDetails.form.inputValues.dateTime' },
1602
- {
1603
- path: 'order.paymentDetails.transaction.scheduledActionExecutionDate',
1604
- },
1605
- { path: 'reservations.ticket.salePeriod.startDate' },
1606
- { path: 'reservations.ticket.salePeriod.endDate' },
1607
- ],
1608
- },
1609
- {
1610
- transformFn: float_2.transformRESTFloatToSDKFloat,
1611
- paths: [
1612
- { path: 'order.checkoutForm.inputValues.number' },
1613
- {
1614
- path: 'order.checkoutForm.inputValues.address.address.geocode.latitude',
1615
- },
1616
- {
1617
- path: 'order.checkoutForm.inputValues.address.address.geocode.longitude',
1618
- },
1619
- { path: 'order.tickets.guestDetails.form.inputValues.number' },
1620
- {
1621
- path: 'order.tickets.guestDetails.form.inputValues.address.address.geocode.latitude',
1622
- },
1623
- {
1624
- path: 'order.tickets.guestDetails.form.inputValues.address.address.geocode.longitude',
1625
- },
1626
- ],
1627
- },
1628
- ]),
1629
- };
1630
- return metadata;
1631
- }
1632
- return __posCheckout;
1633
- }
1634
- exports.posCheckout = posCheckout;
1635
- //# sourceMappingURL=events-v1-order-orders.http.js.map