@wix/auto_sdk_pricing-plans_orders 1.0.127 → 1.0.129

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