@wix/auto_sdk_pricing-plans_orders 1.0.121 → 1.0.122

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 (49) hide show
  1. package/build/cjs/index.d.ts +129 -129
  2. package/build/cjs/index.js +706 -588
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +766 -766
  5. package/build/cjs/index.typings.js +548 -434
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +484 -484
  8. package/build/cjs/meta.js +483 -369
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/schemas.d.ts +199 -199
  11. package/build/cjs/schemas.js +891 -891
  12. package/build/cjs/schemas.js.map +1 -1
  13. package/build/es/index.d.mts +129 -129
  14. package/build/es/index.mjs +706 -588
  15. package/build/es/index.mjs.map +1 -1
  16. package/build/es/index.typings.d.mts +766 -766
  17. package/build/es/index.typings.mjs +548 -434
  18. package/build/es/index.typings.mjs.map +1 -1
  19. package/build/es/meta.d.mts +484 -484
  20. package/build/es/meta.mjs +483 -369
  21. package/build/es/meta.mjs.map +1 -1
  22. package/build/es/schemas.d.mts +199 -199
  23. package/build/es/schemas.mjs +891 -891
  24. package/build/es/schemas.mjs.map +1 -1
  25. package/build/internal/cjs/index.d.ts +129 -129
  26. package/build/internal/cjs/index.js +706 -588
  27. package/build/internal/cjs/index.js.map +1 -1
  28. package/build/internal/cjs/index.typings.d.ts +794 -794
  29. package/build/internal/cjs/index.typings.js +548 -434
  30. package/build/internal/cjs/index.typings.js.map +1 -1
  31. package/build/internal/cjs/meta.d.ts +500 -500
  32. package/build/internal/cjs/meta.js +483 -369
  33. package/build/internal/cjs/meta.js.map +1 -1
  34. package/build/internal/cjs/schemas.d.ts +199 -199
  35. package/build/internal/cjs/schemas.js +891 -891
  36. package/build/internal/cjs/schemas.js.map +1 -1
  37. package/build/internal/es/index.d.mts +129 -129
  38. package/build/internal/es/index.mjs +706 -588
  39. package/build/internal/es/index.mjs.map +1 -1
  40. package/build/internal/es/index.typings.d.mts +794 -794
  41. package/build/internal/es/index.typings.mjs +548 -434
  42. package/build/internal/es/index.typings.mjs.map +1 -1
  43. package/build/internal/es/meta.d.mts +500 -500
  44. package/build/internal/es/meta.mjs +483 -369
  45. package/build/internal/es/meta.mjs.map +1 -1
  46. package/build/internal/es/schemas.d.mts +199 -199
  47. package/build/internal/es/schemas.mjs +891 -891
  48. package/build/internal/es/schemas.mjs.map +1 -1
  49. package/package.json +2 -2
@@ -85,150 +85,183 @@ function resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl(opts)
85
85
  destPath: "/v2/member/orders"
86
86
  }
87
87
  ],
88
+ "editor.wixapps.net": [
89
+ {
90
+ srcPath: "/_api/pricing-plans/v2/member/orders",
91
+ destPath: "/v2/member/orders"
92
+ }
93
+ ],
94
+ "manage._base_domain_": [
95
+ {
96
+ srcPath: "/_api/pricing-plans/v2/member/orders",
97
+ destPath: "/v2/member/orders"
98
+ }
99
+ ],
100
+ "www._base_domain_": [
101
+ {
102
+ srcPath: "/_api/pricing-plans/v2/member/orders",
103
+ destPath: "/v2/member/orders"
104
+ }
105
+ ],
106
+ "www.wixapis.com": [
107
+ {
108
+ srcPath: "/pricing-plans/v2/member/orders",
109
+ destPath: "/v2/member/orders"
110
+ }
111
+ ],
88
112
  _: [
89
113
  {
90
114
  srcPath: "/_api/pricing-plans/v2/member/orders",
91
115
  destPath: "/v2/member/orders"
92
116
  }
93
117
  ],
94
- "editor.wixapps.net": [
118
+ "editor._base_domain_": [
95
119
  {
96
120
  srcPath: "/_api/pricing-plans/v2/member/orders",
97
121
  destPath: "/v2/member/orders"
98
122
  }
99
123
  ],
100
- "manage._base_domain_": [
124
+ "blocks._base_domain_": [
101
125
  {
102
126
  srcPath: "/_api/pricing-plans/v2/member/orders",
103
127
  destPath: "/v2/member/orders"
104
128
  }
105
129
  ],
106
- "www._base_domain_": [
130
+ "create.editorx": [
107
131
  {
108
132
  srcPath: "/_api/pricing-plans/v2/member/orders",
109
133
  destPath: "/v2/member/orders"
110
134
  }
111
135
  ],
112
- "www.wixapis.com": [
136
+ "apps._base_domain_": [
113
137
  {
114
- srcPath: "/pricing-plans/v2/member/orders",
138
+ srcPath: "/_api/pricing-plans/v2/member/orders",
139
+ destPath: "/v2/member/orders"
140
+ }
141
+ ],
142
+ "dev._base_domain_": [
143
+ {
144
+ srcPath: "/_api/pricing-plans/v2/member/orders",
115
145
  destPath: "/v2/member/orders"
116
146
  }
117
147
  ]
118
148
  };
119
149
  return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
120
150
  }
121
- function resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl(opts) {
151
+ function resolveComWixpressMembershipV2OrdersCheckoutServiceUrl(opts) {
122
152
  const domainToMappings = {
123
153
  "api._api_base_domain_": [
124
154
  {
125
- srcPath: "/order-management-service-proxy",
155
+ srcPath: "/pricing-plans-checkout-proxy",
126
156
  destPath: ""
127
157
  }
128
158
  ],
129
159
  "*.dev.wix-code.com": [
130
160
  {
131
- srcPath: "/_api/paid-plans/v2/orders",
132
- destPath: "/v2/orders"
133
- }
134
- ],
135
- "*.pub.wix-code.com": [
161
+ srcPath: "/_api/paid-plans/v2/checkout",
162
+ destPath: "/v2/checkout"
163
+ },
136
164
  {
137
- srcPath: "/_api/paid-plans/v2/orders",
138
- destPath: "/v2/orders"
165
+ srcPath: "/_api/pricing-plans/v2/checkout",
166
+ destPath: "/v2/checkout"
139
167
  }
140
168
  ],
141
169
  "*.wixapps.net": [
142
170
  {
143
- srcPath: "/_api/paid-plans/v2/orders",
144
- destPath: "/v2/orders"
145
- }
146
- ],
147
- _: [
148
- {
149
- srcPath: "/_api/paid-plans/v2/orders",
150
- destPath: "/v2/orders"
171
+ srcPath: "/_api/paid-plans/v2/checkout",
172
+ destPath: "/v2/checkout"
151
173
  }
152
174
  ],
153
175
  "editor-flow.wixapps.net": [
154
176
  {
155
- srcPath: "/_api/paid-plans/v2/orders",
156
- destPath: "/v2/orders"
177
+ srcPath: "/_api/paid-plans/v2/checkout",
178
+ destPath: "/v2/checkout"
157
179
  }
158
180
  ],
159
181
  "editor._base_domain_": [
160
182
  {
161
- srcPath: "/_api/paid-plans/v2/orders",
162
- destPath: "/v2/orders"
183
+ srcPath: "/_api/paid-plans/v2/checkout",
184
+ destPath: "/v2/checkout"
185
+ },
186
+ {
187
+ srcPath: "/_api/pricing-plans/v2/checkout",
188
+ destPath: "/v2/checkout"
163
189
  }
164
190
  ],
165
191
  "blocks._base_domain_": [
166
192
  {
167
- srcPath: "/_api/paid-plans/v2/orders",
168
- destPath: "/v2/orders"
193
+ srcPath: "/_api/paid-plans/v2/checkout",
194
+ destPath: "/v2/checkout"
195
+ },
196
+ {
197
+ srcPath: "/_api/pricing-plans/v2/checkout",
198
+ destPath: "/v2/checkout"
169
199
  }
170
200
  ],
171
201
  "create.editorx": [
172
202
  {
173
- srcPath: "/_api/paid-plans/v2/orders",
174
- destPath: "/v2/orders"
203
+ srcPath: "/_api/paid-plans/v2/checkout",
204
+ destPath: "/v2/checkout"
205
+ },
206
+ {
207
+ srcPath: "/_api/pricing-plans/v2/checkout",
208
+ destPath: "/v2/checkout"
175
209
  }
176
210
  ],
177
211
  "editor.wixapps.net": [
178
212
  {
179
- srcPath: "/_api/paid-plans/v2/orders",
180
- destPath: "/v2/orders"
213
+ srcPath: "/_api/paid-plans/v2/checkout",
214
+ destPath: "/v2/checkout"
215
+ },
216
+ {
217
+ srcPath: "/_api/pricing-plans/v2/checkout",
218
+ destPath: "/v2/checkout"
181
219
  }
182
220
  ],
183
221
  "forums._base_domain_": [
184
222
  {
185
- srcPath: "/_api/paid-plans/v2/orders",
186
- destPath: "/v2/orders"
223
+ srcPath: "/_api/paid-plans/v2/checkout",
224
+ destPath: "/v2/checkout"
187
225
  }
188
226
  ],
189
227
  "forums.wixapps.net": [
190
228
  {
191
- srcPath: "/_api/paid-plans/v2/orders",
192
- destPath: "/v2/orders"
229
+ srcPath: "/_api/paid-plans/v2/checkout",
230
+ destPath: "/v2/checkout"
193
231
  }
194
232
  ],
195
233
  "manage._base_domain_": [
196
234
  {
197
- srcPath: "/_api/pricing-plans/v2/orders",
198
- destPath: "/v2/orders"
235
+ srcPath: "/_api/pricing-plans/v2/checkout",
236
+ destPath: "/v2/checkout"
199
237
  },
200
238
  {
201
- srcPath: "/_api/paid-plans/v2/orders",
202
- destPath: "/v2/orders"
203
- }
204
- ],
205
- "www._base_domain_": [
239
+ srcPath: "/_api/paid-plans/v2/checkout",
240
+ destPath: "/v2/checkout"
241
+ },
206
242
  {
207
- srcPath: "/_api/paid-plans/v2/orders",
208
- destPath: "/v2/orders"
243
+ srcPath: "/pricing-plans/v2/checkout",
244
+ destPath: "/v2/checkout"
209
245
  }
210
246
  ],
211
247
  "www.wixapis.com": [
212
248
  {
213
- srcPath: "/pricing-plans/v2/orders",
214
- destPath: "/v2/orders"
215
- }
216
- ]
217
- };
218
- return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
219
- }
220
- function resolveComWixpressMembershipV2OrdersCheckoutServiceUrl(opts) {
221
- const domainToMappings = {
222
- "api._api_base_domain_": [
223
- {
224
- srcPath: "/pricing-plans-checkout-proxy",
225
- destPath: ""
249
+ srcPath: "/pricing-plans/v2/checkout",
250
+ destPath: "/v2/checkout"
226
251
  }
227
252
  ],
228
- "*.dev.wix-code.com": [
253
+ _: [
254
+ {
255
+ srcPath: "/pricing-plans/v2/checkout",
256
+ destPath: "/v2/checkout"
257
+ },
229
258
  {
230
259
  srcPath: "/_api/paid-plans/v2/checkout",
231
260
  destPath: "/v2/checkout"
261
+ },
262
+ {
263
+ srcPath: "/_api/pricing-plans/v2/checkout",
264
+ destPath: "/v2/checkout"
232
265
  }
233
266
  ],
234
267
  "*.pub.wix-code.com": [
@@ -237,17 +270,23 @@ function resolveComWixpressMembershipV2OrdersCheckoutServiceUrl(opts) {
237
270
  destPath: "/v2/checkout"
238
271
  }
239
272
  ],
240
- "*.wixapps.net": [
273
+ "www._base_domain_": [
241
274
  {
242
275
  srcPath: "/_api/paid-plans/v2/checkout",
243
276
  destPath: "/v2/checkout"
244
277
  }
245
278
  ],
246
- _: [
279
+ "apps._base_domain_": [
247
280
  {
248
- srcPath: "/pricing-plans/v2/checkout",
281
+ srcPath: "/_api/paid-plans/v2/checkout",
249
282
  destPath: "/v2/checkout"
250
283
  },
284
+ {
285
+ srcPath: "/_api/pricing-plans/v2/checkout",
286
+ destPath: "/v2/checkout"
287
+ }
288
+ ],
289
+ "dev._base_domain_": [
251
290
  {
252
291
  srcPath: "/_api/paid-plans/v2/checkout",
253
292
  destPath: "/v2/checkout"
@@ -256,101 +295,170 @@ function resolveComWixpressMembershipV2OrdersCheckoutServiceUrl(opts) {
256
295
  srcPath: "/_api/pricing-plans/v2/checkout",
257
296
  destPath: "/v2/checkout"
258
297
  }
298
+ ]
299
+ };
300
+ return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
301
+ }
302
+ function resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl(opts) {
303
+ const domainToMappings = {
304
+ "api._api_base_domain_": [
305
+ {
306
+ srcPath: "/order-management-service-proxy",
307
+ destPath: ""
308
+ }
309
+ ],
310
+ "*.dev.wix-code.com": [
311
+ {
312
+ srcPath: "/_api/paid-plans/v2/orders",
313
+ destPath: "/v2/orders"
314
+ },
315
+ {
316
+ srcPath: "/_api/pricing-plans/v2/orders",
317
+ destPath: "/v2/orders"
318
+ }
319
+ ],
320
+ "*.wixapps.net": [
321
+ {
322
+ srcPath: "/_api/paid-plans/v2/orders",
323
+ destPath: "/v2/orders"
324
+ }
259
325
  ],
260
326
  "editor-flow.wixapps.net": [
261
327
  {
262
- srcPath: "/_api/paid-plans/v2/checkout",
263
- destPath: "/v2/checkout"
328
+ srcPath: "/_api/paid-plans/v2/orders",
329
+ destPath: "/v2/orders"
264
330
  }
265
331
  ],
266
332
  "editor._base_domain_": [
267
333
  {
268
- srcPath: "/_api/paid-plans/v2/checkout",
269
- destPath: "/v2/checkout"
334
+ srcPath: "/_api/paid-plans/v2/orders",
335
+ destPath: "/v2/orders"
336
+ },
337
+ {
338
+ srcPath: "/_api/pricing-plans/v2/orders",
339
+ destPath: "/v2/orders"
270
340
  }
271
341
  ],
272
342
  "blocks._base_domain_": [
273
343
  {
274
- srcPath: "/_api/paid-plans/v2/checkout",
275
- destPath: "/v2/checkout"
344
+ srcPath: "/_api/paid-plans/v2/orders",
345
+ destPath: "/v2/orders"
346
+ },
347
+ {
348
+ srcPath: "/_api/pricing-plans/v2/orders",
349
+ destPath: "/v2/orders"
276
350
  }
277
351
  ],
278
352
  "create.editorx": [
279
353
  {
280
- srcPath: "/_api/paid-plans/v2/checkout",
281
- destPath: "/v2/checkout"
354
+ srcPath: "/_api/paid-plans/v2/orders",
355
+ destPath: "/v2/orders"
356
+ },
357
+ {
358
+ srcPath: "/_api/pricing-plans/v2/orders",
359
+ destPath: "/v2/orders"
282
360
  }
283
361
  ],
284
362
  "editor.wixapps.net": [
285
363
  {
286
- srcPath: "/_api/paid-plans/v2/checkout",
287
- destPath: "/v2/checkout"
364
+ srcPath: "/_api/paid-plans/v2/orders",
365
+ destPath: "/v2/orders"
366
+ },
367
+ {
368
+ srcPath: "/_api/pricing-plans/v2/orders",
369
+ destPath: "/v2/orders"
288
370
  }
289
371
  ],
290
372
  "forums._base_domain_": [
291
373
  {
292
- srcPath: "/_api/paid-plans/v2/checkout",
293
- destPath: "/v2/checkout"
374
+ srcPath: "/_api/paid-plans/v2/orders",
375
+ destPath: "/v2/orders"
294
376
  }
295
377
  ],
296
378
  "forums.wixapps.net": [
297
379
  {
298
- srcPath: "/_api/paid-plans/v2/checkout",
299
- destPath: "/v2/checkout"
380
+ srcPath: "/_api/paid-plans/v2/orders",
381
+ destPath: "/v2/orders"
300
382
  }
301
383
  ],
302
384
  "manage._base_domain_": [
303
385
  {
304
- srcPath: "/_api/pricing-plans/v2/checkout",
305
- destPath: "/v2/checkout"
306
- },
307
- {
308
- srcPath: "/_api/paid-plans/v2/checkout",
309
- destPath: "/v2/checkout"
386
+ srcPath: "/_api/pricing-plans/v2/orders",
387
+ destPath: "/v2/orders"
310
388
  },
311
389
  {
312
- srcPath: "/pricing-plans/v2/checkout",
313
- destPath: "/v2/checkout"
390
+ srcPath: "/_api/paid-plans/v2/orders",
391
+ destPath: "/v2/orders"
314
392
  }
315
393
  ],
316
- "www._base_domain_": [
394
+ "www.wixapis.com": [
317
395
  {
318
- srcPath: "/_api/paid-plans/v2/checkout",
319
- destPath: "/v2/checkout"
396
+ srcPath: "/pricing-plans/v2/orders",
397
+ destPath: "/v2/orders"
320
398
  }
321
399
  ],
322
- "www.wixapis.com": [
400
+ _: [
323
401
  {
324
- srcPath: "/pricing-plans/v2/checkout",
325
- destPath: "/v2/checkout"
326
- }
327
- ]
328
- };
329
- return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
330
- }
331
- var PACKAGE_NAME = "@wix/auto_sdk_pricing-plans_orders";
332
- function createOnlineOrder(payload) {
333
- function __createOnlineOrder({ host }) {
334
- const serializedData = (0, import_transform_paths.transformPaths)(payload, [
402
+ srcPath: "/_api/paid-plans/v2/orders",
403
+ destPath: "/v2/orders"
404
+ },
335
405
  {
336
- transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
337
- paths: [{ path: "startDate" }]
406
+ srcPath: "/_api/pricing-plans/v2/orders",
407
+ destPath: "/v2/orders"
338
408
  }
339
- ]);
409
+ ],
410
+ "*.pub.wix-code.com": [
411
+ {
412
+ srcPath: "/_api/paid-plans/v2/orders",
413
+ destPath: "/v2/orders"
414
+ }
415
+ ],
416
+ "www._base_domain_": [
417
+ {
418
+ srcPath: "/_api/paid-plans/v2/orders",
419
+ destPath: "/v2/orders"
420
+ }
421
+ ],
422
+ "apps._base_domain_": [
423
+ {
424
+ srcPath: "/_api/paid-plans/v2/orders",
425
+ destPath: "/v2/orders"
426
+ },
427
+ {
428
+ srcPath: "/_api/pricing-plans/v2/orders",
429
+ destPath: "/v2/orders"
430
+ }
431
+ ],
432
+ "dev._base_domain_": [
433
+ {
434
+ srcPath: "/_api/paid-plans/v2/orders",
435
+ destPath: "/v2/orders"
436
+ },
437
+ {
438
+ srcPath: "/_api/pricing-plans/v2/orders",
439
+ destPath: "/v2/orders"
440
+ }
441
+ ]
442
+ };
443
+ return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
444
+ }
445
+ var PACKAGE_NAME = "@wix/auto_sdk_pricing-plans_orders";
446
+ function managementGetOrder(payload) {
447
+ function __managementGetOrder({ host }) {
340
448
  const metadata = {
341
449
  entityFqdn: "wix.pricing_plans.v2.order",
342
- method: "POST",
343
- methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.CreateOnlineOrder",
450
+ method: "GET",
451
+ methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.GetOrder",
344
452
  packageName: PACKAGE_NAME,
345
453
  migrationOptions: {
346
454
  optInTransformResponse: true
347
455
  },
348
- url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
349
- protoPath: "/v2/checkout/orders/online",
350
- data: serializedData,
456
+ url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
457
+ protoPath: "/v2/orders/{id}",
458
+ data: payload,
351
459
  host
352
460
  }),
353
- data: serializedData,
461
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
354
462
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
355
463
  {
356
464
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
@@ -373,158 +481,117 @@ function createOnlineOrder(payload) {
373
481
  };
374
482
  return metadata;
375
483
  }
376
- return __createOnlineOrder;
484
+ return __managementGetOrder;
377
485
  }
378
- function createOfflineOrder(payload) {
379
- function __createOfflineOrder({ host }) {
486
+ function managementListOrders(payload) {
487
+ function __managementListOrders({ host }) {
380
488
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
381
489
  {
382
- transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
383
- paths: [{ path: "startDate" }]
490
+ transformFn: import_float.transformSDKFloatToRESTFloat,
491
+ paths: [
492
+ { path: "sorting.origin.latitude" },
493
+ { path: "sorting.origin.longitude" }
494
+ ]
384
495
  }
385
496
  ]);
386
497
  const metadata = {
387
498
  entityFqdn: "wix.pricing_plans.v2.order",
388
- method: "POST",
389
- methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.CreateOfflineOrder",
499
+ method: "GET",
500
+ methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.ListOrders",
390
501
  packageName: PACKAGE_NAME,
391
502
  migrationOptions: {
392
503
  optInTransformResponse: true
393
504
  },
394
- url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
395
- protoPath: "/v2/checkout/orders/offline",
505
+ url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
506
+ protoPath: "/v2/orders",
396
507
  data: serializedData,
397
508
  host
398
509
  }),
399
- data: serializedData,
510
+ params: (0, import_rest_modules.toURLSearchParams)(serializedData, true),
400
511
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
401
512
  {
402
513
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
403
514
  paths: [
404
- { path: "order.startDate" },
405
- { path: "order.endDate" },
406
- { path: "order.earliestEndDate" },
407
- { path: "order.createdDate" },
408
- { path: "order.updatedDate" },
409
- { path: "order.cancellation.requestedDate" },
410
- { path: "order.pausePeriods.pauseDate" },
411
- { path: "order.pausePeriods.resumeDate" },
412
- { path: "order.currentCycle.startedDate" },
413
- { path: "order.currentCycle.endedDate" },
414
- { path: "order.cycles.startedDate" },
415
- { path: "order.cycles.endedDate" }
515
+ { path: "orders.startDate" },
516
+ { path: "orders.endDate" },
517
+ { path: "orders.earliestEndDate" },
518
+ { path: "orders.createdDate" },
519
+ { path: "orders.updatedDate" },
520
+ { path: "orders.cancellation.requestedDate" },
521
+ { path: "orders.pausePeriods.pauseDate" },
522
+ { path: "orders.pausePeriods.resumeDate" },
523
+ { path: "orders.currentCycle.startedDate" },
524
+ { path: "orders.currentCycle.endedDate" },
525
+ { path: "orders.cycles.startedDate" },
526
+ { path: "orders.cycles.endedDate" }
416
527
  ]
417
528
  }
418
529
  ])
419
530
  };
420
531
  return metadata;
421
532
  }
422
- return __createOfflineOrder;
533
+ return __managementListOrders;
423
534
  }
424
- function getOnlineOrderPreview(payload) {
425
- function __getOnlineOrderPreview({ host }) {
535
+ function postponeEndDate(payload) {
536
+ function __postponeEndDate({ host }) {
426
537
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
427
538
  {
428
539
  transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
429
- paths: [{ path: "startDate" }]
540
+ paths: [{ path: "endDate" }]
430
541
  }
431
542
  ]);
432
543
  const metadata = {
433
544
  entityFqdn: "wix.pricing_plans.v2.order",
434
- method: "POST",
435
- methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.GetOnlineOrderPreview",
545
+ method: "PATCH",
546
+ methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PostponeEndDate",
436
547
  packageName: PACKAGE_NAME,
437
548
  migrationOptions: {
438
549
  optInTransformResponse: true
439
550
  },
440
- url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
441
- protoPath: "/v2/checkout/orders/preview-online",
551
+ url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
552
+ protoPath: "/v2/orders/{id}",
442
553
  data: serializedData,
443
554
  host
444
555
  }),
445
- data: serializedData,
446
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
447
- {
448
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
449
- paths: [
450
- { path: "order.startDate" },
451
- { path: "order.endDate" },
452
- { path: "order.earliestEndDate" },
453
- { path: "order.createdDate" },
454
- { path: "order.updatedDate" },
455
- { path: "order.cancellation.requestedDate" },
456
- { path: "order.pausePeriods.pauseDate" },
457
- { path: "order.pausePeriods.resumeDate" },
458
- { path: "order.currentCycle.startedDate" },
459
- { path: "order.currentCycle.endedDate" },
460
- { path: "order.cycles.startedDate" },
461
- { path: "order.cycles.endedDate" }
462
- ]
463
- }
464
- ])
556
+ data: serializedData
465
557
  };
466
558
  return metadata;
467
559
  }
468
- return __getOnlineOrderPreview;
560
+ return __postponeEndDate;
469
561
  }
470
- function getOfflineOrderPreview(payload) {
471
- function __getOfflineOrderPreview({ host }) {
472
- const serializedData = (0, import_transform_paths.transformPaths)(payload, [
473
- {
474
- transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
475
- paths: [{ path: "startDate" }]
476
- }
477
- ]);
562
+ function cancelOrder(payload) {
563
+ function __cancelOrder({ host }) {
478
564
  const metadata = {
479
565
  entityFqdn: "wix.pricing_plans.v2.order",
480
566
  method: "POST",
481
- methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.GetOfflineOrderPreview",
567
+ methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.CancelOrder",
482
568
  packageName: PACKAGE_NAME,
483
569
  migrationOptions: {
484
570
  optInTransformResponse: true
485
571
  },
486
- url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
487
- protoPath: "/v2/checkout/orders/preview-offline",
488
- data: serializedData,
572
+ url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
573
+ protoPath: "/v2/orders/{id}/cancel",
574
+ data: payload,
489
575
  host
490
576
  }),
491
- data: serializedData,
492
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
493
- {
494
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
495
- paths: [
496
- { path: "order.startDate" },
497
- { path: "order.endDate" },
498
- { path: "order.earliestEndDate" },
499
- { path: "order.createdDate" },
500
- { path: "order.updatedDate" },
501
- { path: "order.cancellation.requestedDate" },
502
- { path: "order.pausePeriods.pauseDate" },
503
- { path: "order.pausePeriods.resumeDate" },
504
- { path: "order.currentCycle.startedDate" },
505
- { path: "order.currentCycle.endedDate" },
506
- { path: "order.cycles.startedDate" },
507
- { path: "order.cycles.endedDate" }
508
- ]
509
- }
510
- ])
577
+ data: payload
511
578
  };
512
579
  return metadata;
513
580
  }
514
- return __getOfflineOrderPreview;
581
+ return __cancelOrder;
515
582
  }
516
- function getPricePreview(payload) {
517
- function __getPricePreview({ host }) {
583
+ function markAsPaid(payload) {
584
+ function __markAsPaid({ host }) {
518
585
  const metadata = {
519
586
  entityFqdn: "wix.pricing_plans.v2.order",
520
587
  method: "POST",
521
- methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.GetPricePreview",
588
+ methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.MarkAsPaid",
522
589
  packageName: PACKAGE_NAME,
523
590
  migrationOptions: {
524
591
  optInTransformResponse: true
525
592
  },
526
- url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
527
- protoPath: "/v2/checkout/orders/price-preview",
593
+ url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
594
+ protoPath: "/v2/orders/{id}/mark-as-paid",
528
595
  data: payload,
529
596
  host
530
597
  }),
@@ -532,199 +599,246 @@ function getPricePreview(payload) {
532
599
  };
533
600
  return metadata;
534
601
  }
535
- return __getPricePreview;
602
+ return __markAsPaid;
536
603
  }
537
- function managementGetOrder(payload) {
538
- function __managementGetOrder({ host }) {
604
+ function pauseOrder(payload) {
605
+ function __pauseOrder({ host }) {
539
606
  const metadata = {
540
607
  entityFqdn: "wix.pricing_plans.v2.order",
541
- method: "GET",
542
- methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.GetOrder",
608
+ method: "POST",
609
+ methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PauseOrder",
543
610
  packageName: PACKAGE_NAME,
544
611
  migrationOptions: {
545
612
  optInTransformResponse: true
546
613
  },
547
614
  url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
548
- protoPath: "/v2/orders/{id}",
615
+ protoPath: "/v2/orders/{id}/pause",
549
616
  data: payload,
550
617
  host
551
618
  }),
552
- params: (0, import_rest_modules.toURLSearchParams)(payload),
553
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
554
- {
555
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
556
- paths: [
557
- { path: "order.startDate" },
558
- { path: "order.endDate" },
559
- { path: "order.earliestEndDate" },
560
- { path: "order.createdDate" },
561
- { path: "order.updatedDate" },
562
- { path: "order.cancellation.requestedDate" },
563
- { path: "order.pausePeriods.pauseDate" },
564
- { path: "order.pausePeriods.resumeDate" },
565
- { path: "order.currentCycle.startedDate" },
566
- { path: "order.currentCycle.endedDate" },
567
- { path: "order.cycles.startedDate" },
568
- { path: "order.cycles.endedDate" }
569
- ]
570
- }
571
- ])
619
+ data: payload
572
620
  };
573
621
  return metadata;
574
622
  }
575
- return __managementGetOrder;
623
+ return __pauseOrder;
576
624
  }
577
- function managementListOrders(payload) {
578
- function __managementListOrders({ host }) {
579
- const serializedData = (0, import_transform_paths.transformPaths)(payload, [
580
- {
581
- transformFn: import_float.transformSDKFloatToRESTFloat,
582
- paths: [
583
- { path: "sorting.origin.latitude" },
584
- { path: "sorting.origin.longitude" }
585
- ]
586
- }
587
- ]);
625
+ function resumeOrder(payload) {
626
+ function __resumeOrder({ host }) {
588
627
  const metadata = {
589
628
  entityFqdn: "wix.pricing_plans.v2.order",
590
- method: "GET",
591
- methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.ListOrders",
629
+ method: "POST",
630
+ methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.ResumeOrder",
592
631
  packageName: PACKAGE_NAME,
593
632
  migrationOptions: {
594
633
  optInTransformResponse: true
595
634
  },
596
635
  url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
597
- protoPath: "/v2/orders",
598
- data: serializedData,
636
+ protoPath: "/v2/orders/{id}/resume",
637
+ data: payload,
599
638
  host
600
639
  }),
601
- params: (0, import_rest_modules.toURLSearchParams)(serializedData, true),
602
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
603
- {
604
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
605
- paths: [
606
- { path: "orders.startDate" },
607
- { path: "orders.endDate" },
608
- { path: "orders.earliestEndDate" },
609
- { path: "orders.createdDate" },
610
- { path: "orders.updatedDate" },
611
- { path: "orders.cancellation.requestedDate" },
612
- { path: "orders.pausePeriods.pauseDate" },
613
- { path: "orders.pausePeriods.resumeDate" },
614
- { path: "orders.currentCycle.startedDate" },
615
- { path: "orders.currentCycle.endedDate" },
616
- { path: "orders.cycles.startedDate" },
617
- { path: "orders.cycles.endedDate" }
618
- ]
619
- }
620
- ])
640
+ data: payload
621
641
  };
622
642
  return metadata;
623
643
  }
624
- return __managementListOrders;
644
+ return __resumeOrder;
625
645
  }
626
- function postponeEndDate(payload) {
627
- function __postponeEndDate({ host }) {
646
+ function createOnlineOrder(payload) {
647
+ function __createOnlineOrder({ host }) {
628
648
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
629
649
  {
630
650
  transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
631
- paths: [{ path: "endDate" }]
651
+ paths: [{ path: "startDate" }]
632
652
  }
633
653
  ]);
634
654
  const metadata = {
635
655
  entityFqdn: "wix.pricing_plans.v2.order",
636
- method: "PATCH",
637
- methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PostponeEndDate",
656
+ method: "POST",
657
+ methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.CreateOnlineOrder",
638
658
  packageName: PACKAGE_NAME,
639
659
  migrationOptions: {
640
660
  optInTransformResponse: true
641
661
  },
642
- url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
643
- protoPath: "/v2/orders/{id}",
662
+ url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
663
+ protoPath: "/v2/checkout/orders/online",
644
664
  data: serializedData,
645
665
  host
646
666
  }),
647
- data: serializedData
667
+ data: serializedData,
668
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
669
+ {
670
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
671
+ paths: [
672
+ { path: "order.startDate" },
673
+ { path: "order.endDate" },
674
+ { path: "order.earliestEndDate" },
675
+ { path: "order.createdDate" },
676
+ { path: "order.updatedDate" },
677
+ { path: "order.cancellation.requestedDate" },
678
+ { path: "order.pausePeriods.pauseDate" },
679
+ { path: "order.pausePeriods.resumeDate" },
680
+ { path: "order.currentCycle.startedDate" },
681
+ { path: "order.currentCycle.endedDate" },
682
+ { path: "order.cycles.startedDate" },
683
+ { path: "order.cycles.endedDate" }
684
+ ]
685
+ }
686
+ ])
648
687
  };
649
688
  return metadata;
650
689
  }
651
- return __postponeEndDate;
690
+ return __createOnlineOrder;
652
691
  }
653
- function cancelOrder(payload) {
654
- function __cancelOrder({ host }) {
692
+ function createOfflineOrder(payload) {
693
+ function __createOfflineOrder({ host }) {
694
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
695
+ {
696
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
697
+ paths: [{ path: "startDate" }]
698
+ }
699
+ ]);
655
700
  const metadata = {
656
701
  entityFqdn: "wix.pricing_plans.v2.order",
657
702
  method: "POST",
658
- methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.CancelOrder",
703
+ methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.CreateOfflineOrder",
659
704
  packageName: PACKAGE_NAME,
660
705
  migrationOptions: {
661
706
  optInTransformResponse: true
662
707
  },
663
- url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
664
- protoPath: "/v2/orders/{id}/cancel",
665
- data: payload,
708
+ url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
709
+ protoPath: "/v2/checkout/orders/offline",
710
+ data: serializedData,
666
711
  host
667
712
  }),
668
- data: payload
713
+ data: serializedData,
714
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
715
+ {
716
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
717
+ paths: [
718
+ { path: "order.startDate" },
719
+ { path: "order.endDate" },
720
+ { path: "order.earliestEndDate" },
721
+ { path: "order.createdDate" },
722
+ { path: "order.updatedDate" },
723
+ { path: "order.cancellation.requestedDate" },
724
+ { path: "order.pausePeriods.pauseDate" },
725
+ { path: "order.pausePeriods.resumeDate" },
726
+ { path: "order.currentCycle.startedDate" },
727
+ { path: "order.currentCycle.endedDate" },
728
+ { path: "order.cycles.startedDate" },
729
+ { path: "order.cycles.endedDate" }
730
+ ]
731
+ }
732
+ ])
669
733
  };
670
734
  return metadata;
671
735
  }
672
- return __cancelOrder;
736
+ return __createOfflineOrder;
673
737
  }
674
- function markAsPaid(payload) {
675
- function __markAsPaid({ host }) {
738
+ function getOnlineOrderPreview(payload) {
739
+ function __getOnlineOrderPreview({ host }) {
740
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
741
+ {
742
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
743
+ paths: [{ path: "startDate" }]
744
+ }
745
+ ]);
676
746
  const metadata = {
677
747
  entityFqdn: "wix.pricing_plans.v2.order",
678
748
  method: "POST",
679
- methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.MarkAsPaid",
749
+ methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.GetOnlineOrderPreview",
680
750
  packageName: PACKAGE_NAME,
681
751
  migrationOptions: {
682
752
  optInTransformResponse: true
683
753
  },
684
- url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
685
- protoPath: "/v2/orders/{id}/mark-as-paid",
686
- data: payload,
754
+ url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
755
+ protoPath: "/v2/checkout/orders/preview-online",
756
+ data: serializedData,
687
757
  host
688
758
  }),
689
- data: payload
759
+ data: serializedData,
760
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
761
+ {
762
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
763
+ paths: [
764
+ { path: "order.startDate" },
765
+ { path: "order.endDate" },
766
+ { path: "order.earliestEndDate" },
767
+ { path: "order.createdDate" },
768
+ { path: "order.updatedDate" },
769
+ { path: "order.cancellation.requestedDate" },
770
+ { path: "order.pausePeriods.pauseDate" },
771
+ { path: "order.pausePeriods.resumeDate" },
772
+ { path: "order.currentCycle.startedDate" },
773
+ { path: "order.currentCycle.endedDate" },
774
+ { path: "order.cycles.startedDate" },
775
+ { path: "order.cycles.endedDate" }
776
+ ]
777
+ }
778
+ ])
690
779
  };
691
780
  return metadata;
692
781
  }
693
- return __markAsPaid;
782
+ return __getOnlineOrderPreview;
694
783
  }
695
- function pauseOrder(payload) {
696
- function __pauseOrder({ host }) {
784
+ function getOfflineOrderPreview(payload) {
785
+ function __getOfflineOrderPreview({ host }) {
786
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
787
+ {
788
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
789
+ paths: [{ path: "startDate" }]
790
+ }
791
+ ]);
697
792
  const metadata = {
698
793
  entityFqdn: "wix.pricing_plans.v2.order",
699
794
  method: "POST",
700
- methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PauseOrder",
795
+ methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.GetOfflineOrderPreview",
701
796
  packageName: PACKAGE_NAME,
702
797
  migrationOptions: {
703
798
  optInTransformResponse: true
704
799
  },
705
- url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
706
- protoPath: "/v2/orders/{id}/pause",
707
- data: payload,
800
+ url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
801
+ protoPath: "/v2/checkout/orders/preview-offline",
802
+ data: serializedData,
708
803
  host
709
804
  }),
710
- data: payload
805
+ data: serializedData,
806
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
807
+ {
808
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
809
+ paths: [
810
+ { path: "order.startDate" },
811
+ { path: "order.endDate" },
812
+ { path: "order.earliestEndDate" },
813
+ { path: "order.createdDate" },
814
+ { path: "order.updatedDate" },
815
+ { path: "order.cancellation.requestedDate" },
816
+ { path: "order.pausePeriods.pauseDate" },
817
+ { path: "order.pausePeriods.resumeDate" },
818
+ { path: "order.currentCycle.startedDate" },
819
+ { path: "order.currentCycle.endedDate" },
820
+ { path: "order.cycles.startedDate" },
821
+ { path: "order.cycles.endedDate" }
822
+ ]
823
+ }
824
+ ])
711
825
  };
712
826
  return metadata;
713
827
  }
714
- return __pauseOrder;
828
+ return __getOfflineOrderPreview;
715
829
  }
716
- function resumeOrder(payload) {
717
- function __resumeOrder({ host }) {
830
+ function getPricePreview(payload) {
831
+ function __getPricePreview({ host }) {
718
832
  const metadata = {
719
833
  entityFqdn: "wix.pricing_plans.v2.order",
720
834
  method: "POST",
721
- methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.ResumeOrder",
835
+ methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.GetPricePreview",
722
836
  packageName: PACKAGE_NAME,
723
837
  migrationOptions: {
724
838
  optInTransformResponse: true
725
839
  },
726
- url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
727
- protoPath: "/v2/orders/{id}/resume",
840
+ url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
841
+ protoPath: "/v2/checkout/orders/price-preview",
728
842
  data: payload,
729
843
  host
730
844
  }),
@@ -732,7 +846,7 @@ function resumeOrder(payload) {
732
846
  };
733
847
  return metadata;
734
848
  }
735
- return __resumeOrder;
849
+ return __getPricePreview;
736
850
  }
737
851
  function memberGetOrder(payload) {
738
852
  function __memberGetOrder({ host }) {
@@ -908,14 +1022,6 @@ var Status = /* @__PURE__ */ ((Status2) => {
908
1022
  Status2["ENDED"] = "ENDED";
909
1023
  return Status2;
910
1024
  })(Status || {});
911
- var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
912
- WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
913
- WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
914
- WebhookIdentityType2["MEMBER"] = "MEMBER";
915
- WebhookIdentityType2["WIX_USER"] = "WIX_USER";
916
- WebhookIdentityType2["APP"] = "APP";
917
- return WebhookIdentityType2;
918
- })(WebhookIdentityType || {});
919
1025
  var Set = /* @__PURE__ */ ((Set2) => {
920
1026
  Set2["UNKNOWN_SET"] = "UNKNOWN_SET";
921
1027
  Set2["BASIC"] = "BASIC";
@@ -938,37 +1044,45 @@ var ReasonNotSuspendable = /* @__PURE__ */ ((ReasonNotSuspendable2) => {
938
1044
  ReasonNotSuspendable2["OLD_STRIPE"] = "OLD_STRIPE";
939
1045
  return ReasonNotSuspendable2;
940
1046
  })(ReasonNotSuspendable || {});
1047
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
1048
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
1049
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
1050
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
1051
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
1052
+ WebhookIdentityType2["APP"] = "APP";
1053
+ return WebhookIdentityType2;
1054
+ })(WebhookIdentityType || {});
941
1055
 
942
1056
  // src/pricing-plans-v2-order-orders.meta.ts
943
- function createOnlineOrder2() {
944
- const payload = {};
945
- const getRequestOptions = createOnlineOrder(payload);
1057
+ function managementGetOrder2() {
1058
+ const payload = { id: ":id" };
1059
+ const getRequestOptions = managementGetOrder(payload);
946
1060
  const getUrl = (context) => {
947
1061
  const { url } = getRequestOptions(context);
948
1062
  return url;
949
1063
  };
950
1064
  return {
951
1065
  getUrl,
952
- httpMethod: "POST",
953
- path: "/v2/checkout/orders/online",
954
- pathParams: {},
1066
+ httpMethod: "GET",
1067
+ path: "/v2/orders/{id}",
1068
+ pathParams: { id: "id" },
955
1069
  __requestType: null,
956
1070
  __originalRequestType: null,
957
1071
  __responseType: null,
958
1072
  __originalResponseType: null
959
1073
  };
960
1074
  }
961
- function createOfflineOrder2() {
1075
+ function managementListOrders2() {
962
1076
  const payload = {};
963
- const getRequestOptions = createOfflineOrder(payload);
1077
+ const getRequestOptions = managementListOrders(payload);
964
1078
  const getUrl = (context) => {
965
1079
  const { url } = getRequestOptions(context);
966
1080
  return url;
967
1081
  };
968
1082
  return {
969
1083
  getUrl,
970
- httpMethod: "POST",
971
- path: "/v2/checkout/orders/offline",
1084
+ httpMethod: "GET",
1085
+ path: "/v2/orders",
972
1086
  pathParams: {},
973
1087
  __requestType: null,
974
1088
  __originalRequestType: null,
@@ -976,27 +1090,27 @@ function createOfflineOrder2() {
976
1090
  __originalResponseType: null
977
1091
  };
978
1092
  }
979
- function getOnlineOrderPreview2() {
980
- const payload = {};
981
- const getRequestOptions = getOnlineOrderPreview(payload);
1093
+ function postponeEndDate2() {
1094
+ const payload = { id: ":id" };
1095
+ const getRequestOptions = postponeEndDate(payload);
982
1096
  const getUrl = (context) => {
983
1097
  const { url } = getRequestOptions(context);
984
1098
  return url;
985
1099
  };
986
1100
  return {
987
1101
  getUrl,
988
- httpMethod: "POST",
989
- path: "/v2/checkout/orders/preview-online",
990
- pathParams: {},
1102
+ httpMethod: "PATCH",
1103
+ path: "/v2/orders/{id}",
1104
+ pathParams: { id: "id" },
991
1105
  __requestType: null,
992
1106
  __originalRequestType: null,
993
1107
  __responseType: null,
994
1108
  __originalResponseType: null
995
1109
  };
996
1110
  }
997
- function getOfflineOrderPreview2() {
998
- const payload = {};
999
- const getRequestOptions = getOfflineOrderPreview(payload);
1111
+ function cancelOrder2() {
1112
+ const payload = { id: ":id" };
1113
+ const getRequestOptions = cancelOrder(payload);
1000
1114
  const getUrl = (context) => {
1001
1115
  const { url } = getRequestOptions(context);
1002
1116
  return url;
@@ -1004,17 +1118,17 @@ function getOfflineOrderPreview2() {
1004
1118
  return {
1005
1119
  getUrl,
1006
1120
  httpMethod: "POST",
1007
- path: "/v2/checkout/orders/preview-offline",
1008
- pathParams: {},
1121
+ path: "/v2/orders/{id}/cancel",
1122
+ pathParams: { id: "id" },
1009
1123
  __requestType: null,
1010
1124
  __originalRequestType: null,
1011
1125
  __responseType: null,
1012
1126
  __originalResponseType: null
1013
1127
  };
1014
1128
  }
1015
- function getPricePreview2() {
1016
- const payload = {};
1017
- const getRequestOptions = getPricePreview(payload);
1129
+ function markAsPaid2() {
1130
+ const payload = { id: ":id" };
1131
+ const getRequestOptions = markAsPaid(payload);
1018
1132
  const getUrl = (context) => {
1019
1133
  const { url } = getRequestOptions(context);
1020
1134
  return url;
@@ -1022,25 +1136,25 @@ function getPricePreview2() {
1022
1136
  return {
1023
1137
  getUrl,
1024
1138
  httpMethod: "POST",
1025
- path: "/v2/checkout/orders/price-preview",
1026
- pathParams: {},
1139
+ path: "/v2/orders/{id}/mark-as-paid",
1140
+ pathParams: { id: "id" },
1027
1141
  __requestType: null,
1028
1142
  __originalRequestType: null,
1029
1143
  __responseType: null,
1030
1144
  __originalResponseType: null
1031
1145
  };
1032
1146
  }
1033
- function managementGetOrder2() {
1147
+ function pauseOrder2() {
1034
1148
  const payload = { id: ":id" };
1035
- const getRequestOptions = managementGetOrder(payload);
1149
+ const getRequestOptions = pauseOrder(payload);
1036
1150
  const getUrl = (context) => {
1037
1151
  const { url } = getRequestOptions(context);
1038
1152
  return url;
1039
1153
  };
1040
1154
  return {
1041
1155
  getUrl,
1042
- httpMethod: "GET",
1043
- path: "/v2/orders/{id}",
1156
+ httpMethod: "POST",
1157
+ path: "/v2/orders/{id}/pause",
1044
1158
  pathParams: { id: "id" },
1045
1159
  __requestType: null,
1046
1160
  __originalRequestType: null,
@@ -1048,45 +1162,45 @@ function managementGetOrder2() {
1048
1162
  __originalResponseType: null
1049
1163
  };
1050
1164
  }
1051
- function managementListOrders2() {
1052
- const payload = {};
1053
- const getRequestOptions = managementListOrders(payload);
1165
+ function resumeOrder2() {
1166
+ const payload = { id: ":id" };
1167
+ const getRequestOptions = resumeOrder(payload);
1054
1168
  const getUrl = (context) => {
1055
1169
  const { url } = getRequestOptions(context);
1056
1170
  return url;
1057
1171
  };
1058
1172
  return {
1059
1173
  getUrl,
1060
- httpMethod: "GET",
1061
- path: "/v2/orders",
1062
- pathParams: {},
1174
+ httpMethod: "POST",
1175
+ path: "/v2/orders/{id}/resume",
1176
+ pathParams: { id: "id" },
1063
1177
  __requestType: null,
1064
1178
  __originalRequestType: null,
1065
1179
  __responseType: null,
1066
1180
  __originalResponseType: null
1067
1181
  };
1068
1182
  }
1069
- function postponeEndDate2() {
1070
- const payload = { id: ":id" };
1071
- const getRequestOptions = postponeEndDate(payload);
1183
+ function createOnlineOrder2() {
1184
+ const payload = {};
1185
+ const getRequestOptions = createOnlineOrder(payload);
1072
1186
  const getUrl = (context) => {
1073
1187
  const { url } = getRequestOptions(context);
1074
1188
  return url;
1075
1189
  };
1076
1190
  return {
1077
1191
  getUrl,
1078
- httpMethod: "PATCH",
1079
- path: "/v2/orders/{id}",
1080
- pathParams: { id: "id" },
1192
+ httpMethod: "POST",
1193
+ path: "/v2/checkout/orders/online",
1194
+ pathParams: {},
1081
1195
  __requestType: null,
1082
1196
  __originalRequestType: null,
1083
1197
  __responseType: null,
1084
1198
  __originalResponseType: null
1085
1199
  };
1086
1200
  }
1087
- function cancelOrder2() {
1088
- const payload = { id: ":id" };
1089
- const getRequestOptions = cancelOrder(payload);
1201
+ function createOfflineOrder2() {
1202
+ const payload = {};
1203
+ const getRequestOptions = createOfflineOrder(payload);
1090
1204
  const getUrl = (context) => {
1091
1205
  const { url } = getRequestOptions(context);
1092
1206
  return url;
@@ -1094,17 +1208,17 @@ function cancelOrder2() {
1094
1208
  return {
1095
1209
  getUrl,
1096
1210
  httpMethod: "POST",
1097
- path: "/v2/orders/{id}/cancel",
1098
- pathParams: { id: "id" },
1211
+ path: "/v2/checkout/orders/offline",
1212
+ pathParams: {},
1099
1213
  __requestType: null,
1100
1214
  __originalRequestType: null,
1101
1215
  __responseType: null,
1102
1216
  __originalResponseType: null
1103
1217
  };
1104
1218
  }
1105
- function markAsPaid2() {
1106
- const payload = { id: ":id" };
1107
- const getRequestOptions = markAsPaid(payload);
1219
+ function getOnlineOrderPreview2() {
1220
+ const payload = {};
1221
+ const getRequestOptions = getOnlineOrderPreview(payload);
1108
1222
  const getUrl = (context) => {
1109
1223
  const { url } = getRequestOptions(context);
1110
1224
  return url;
@@ -1112,17 +1226,17 @@ function markAsPaid2() {
1112
1226
  return {
1113
1227
  getUrl,
1114
1228
  httpMethod: "POST",
1115
- path: "/v2/orders/{id}/mark-as-paid",
1116
- pathParams: { id: "id" },
1229
+ path: "/v2/checkout/orders/preview-online",
1230
+ pathParams: {},
1117
1231
  __requestType: null,
1118
1232
  __originalRequestType: null,
1119
1233
  __responseType: null,
1120
1234
  __originalResponseType: null
1121
1235
  };
1122
1236
  }
1123
- function pauseOrder2() {
1124
- const payload = { id: ":id" };
1125
- const getRequestOptions = pauseOrder(payload);
1237
+ function getOfflineOrderPreview2() {
1238
+ const payload = {};
1239
+ const getRequestOptions = getOfflineOrderPreview(payload);
1126
1240
  const getUrl = (context) => {
1127
1241
  const { url } = getRequestOptions(context);
1128
1242
  return url;
@@ -1130,17 +1244,17 @@ function pauseOrder2() {
1130
1244
  return {
1131
1245
  getUrl,
1132
1246
  httpMethod: "POST",
1133
- path: "/v2/orders/{id}/pause",
1134
- pathParams: { id: "id" },
1247
+ path: "/v2/checkout/orders/preview-offline",
1248
+ pathParams: {},
1135
1249
  __requestType: null,
1136
1250
  __originalRequestType: null,
1137
1251
  __responseType: null,
1138
1252
  __originalResponseType: null
1139
1253
  };
1140
1254
  }
1141
- function resumeOrder2() {
1142
- const payload = { id: ":id" };
1143
- const getRequestOptions = resumeOrder(payload);
1255
+ function getPricePreview2() {
1256
+ const payload = {};
1257
+ const getRequestOptions = getPricePreview(payload);
1144
1258
  const getUrl = (context) => {
1145
1259
  const { url } = getRequestOptions(context);
1146
1260
  return url;
@@ -1148,8 +1262,8 @@ function resumeOrder2() {
1148
1262
  return {
1149
1263
  getUrl,
1150
1264
  httpMethod: "POST",
1151
- path: "/v2/orders/{id}/resume",
1152
- pathParams: { id: "id" },
1265
+ path: "/v2/checkout/orders/price-preview",
1266
+ pathParams: {},
1153
1267
  __requestType: null,
1154
1268
  __originalRequestType: null,
1155
1269
  __responseType: null,