@wix/auto_sdk_pricing-plans_orders 1.0.130 → 1.0.132

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