@wix/auto_sdk_pricing-plans_orders 1.0.111 → 1.0.113

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/build/cjs/index.d.ts +155 -155
  2. package/build/cjs/index.js +466 -466
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +489 -489
  5. package/build/cjs/index.typings.js +339 -339
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +259 -259
  8. package/build/cjs/meta.js +344 -344
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/schemas.d.ts +30 -30
  11. package/build/cjs/schemas.js +59 -59
  12. package/build/cjs/schemas.js.map +1 -1
  13. package/build/es/index.d.mts +155 -155
  14. package/build/es/index.mjs +466 -466
  15. package/build/es/index.mjs.map +1 -1
  16. package/build/es/index.typings.d.mts +489 -489
  17. package/build/es/index.typings.mjs +339 -339
  18. package/build/es/index.typings.mjs.map +1 -1
  19. package/build/es/meta.d.mts +259 -259
  20. package/build/es/meta.mjs +344 -344
  21. package/build/es/meta.mjs.map +1 -1
  22. package/build/es/schemas.d.mts +30 -30
  23. package/build/es/schemas.mjs +59 -59
  24. package/build/es/schemas.mjs.map +1 -1
  25. package/build/internal/cjs/index.d.ts +155 -155
  26. package/build/internal/cjs/index.js +466 -466
  27. package/build/internal/cjs/index.js.map +1 -1
  28. package/build/internal/cjs/index.typings.d.ts +489 -489
  29. package/build/internal/cjs/index.typings.js +339 -339
  30. package/build/internal/cjs/index.typings.js.map +1 -1
  31. package/build/internal/cjs/meta.d.ts +259 -259
  32. package/build/internal/cjs/meta.js +344 -344
  33. package/build/internal/cjs/meta.js.map +1 -1
  34. package/build/internal/cjs/schemas.d.ts +30 -30
  35. package/build/internal/cjs/schemas.js +59 -59
  36. package/build/internal/cjs/schemas.js.map +1 -1
  37. package/build/internal/es/index.d.mts +155 -155
  38. package/build/internal/es/index.mjs +466 -466
  39. package/build/internal/es/index.mjs.map +1 -1
  40. package/build/internal/es/index.typings.d.mts +489 -489
  41. package/build/internal/es/index.typings.mjs +339 -339
  42. package/build/internal/es/index.typings.mjs.map +1 -1
  43. package/build/internal/es/meta.d.mts +259 -259
  44. package/build/internal/es/meta.mjs +344 -344
  45. package/build/internal/es/meta.mjs.map +1 -1
  46. package/build/internal/es/schemas.d.mts +30 -30
  47. package/build/internal/es/schemas.mjs +59 -59
  48. package/build/internal/es/schemas.mjs.map +1 -1
  49. package/package.json +2 -2
@@ -4,100 +4,62 @@ import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transform
4
4
  import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
5
5
  import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
6
6
  import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
7
- function resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl(opts) {
7
+ function resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl(opts) {
8
8
  const domainToMappings = {
9
9
  "api._api_base_domain_": [
10
10
  {
11
- srcPath: "/order-management-service-proxy",
11
+ srcPath: "/member-orders-service-proxy",
12
12
  destPath: ""
13
13
  }
14
14
  ],
15
15
  "*.dev.wix-code.com": [
16
16
  {
17
- srcPath: "/_api/paid-plans/v2/orders",
18
- destPath: "/v2/orders"
17
+ srcPath: "/_api/pricing-plans-member-orders/v2/member/orders",
18
+ destPath: "/v2/member/orders"
19
+ },
20
+ {
21
+ srcPath: "/_api/pricing-plans/v2/member/orders",
22
+ destPath: "/v2/member/orders"
19
23
  }
20
24
  ],
21
25
  "*.pub.wix-code.com": [
22
26
  {
23
- srcPath: "/_api/paid-plans/v2/orders",
24
- destPath: "/v2/orders"
25
- }
26
- ],
27
- "*.wixapps.net": [
27
+ srcPath: "/_api/pricing-plans-member-orders/v2/member/orders",
28
+ destPath: "/v2/member/orders"
29
+ },
28
30
  {
29
- srcPath: "/_api/paid-plans/v2/orders",
30
- destPath: "/v2/orders"
31
+ srcPath: "/_api/pricing-plans/v2/member/orders",
32
+ destPath: "/v2/member/orders"
31
33
  }
32
34
  ],
33
35
  _: [
34
36
  {
35
- srcPath: "/_api/paid-plans/v2/orders",
36
- destPath: "/v2/orders"
37
- }
38
- ],
39
- "editor-flow.wixapps.net": [
40
- {
41
- srcPath: "/_api/paid-plans/v2/orders",
42
- destPath: "/v2/orders"
43
- }
44
- ],
45
- "editor._base_domain_": [
46
- {
47
- srcPath: "/_api/paid-plans/v2/orders",
48
- destPath: "/v2/orders"
49
- }
50
- ],
51
- "blocks._base_domain_": [
52
- {
53
- srcPath: "/_api/paid-plans/v2/orders",
54
- destPath: "/v2/orders"
55
- }
56
- ],
57
- "create.editorx": [
58
- {
59
- srcPath: "/_api/paid-plans/v2/orders",
60
- destPath: "/v2/orders"
37
+ srcPath: "/_api/pricing-plans/v2/member/orders",
38
+ destPath: "/v2/member/orders"
61
39
  }
62
40
  ],
63
41
  "editor.wixapps.net": [
64
42
  {
65
- srcPath: "/_api/paid-plans/v2/orders",
66
- destPath: "/v2/orders"
67
- }
68
- ],
69
- "forums._base_domain_": [
70
- {
71
- srcPath: "/_api/paid-plans/v2/orders",
72
- destPath: "/v2/orders"
73
- }
74
- ],
75
- "forums.wixapps.net": [
76
- {
77
- srcPath: "/_api/paid-plans/v2/orders",
78
- destPath: "/v2/orders"
43
+ srcPath: "/_api/pricing-plans/v2/member/orders",
44
+ destPath: "/v2/member/orders"
79
45
  }
80
46
  ],
81
47
  "manage._base_domain_": [
82
48
  {
83
- srcPath: "/_api/pricing-plans/v2/orders",
84
- destPath: "/v2/orders"
85
- },
86
- {
87
- srcPath: "/_api/paid-plans/v2/orders",
88
- destPath: "/v2/orders"
49
+ srcPath: "/_api/pricing-plans/v2/member/orders",
50
+ destPath: "/v2/member/orders"
89
51
  }
90
52
  ],
91
53
  "www._base_domain_": [
92
54
  {
93
- srcPath: "/_api/paid-plans/v2/orders",
94
- destPath: "/v2/orders"
55
+ srcPath: "/_api/pricing-plans/v2/member/orders",
56
+ destPath: "/v2/member/orders"
95
57
  }
96
58
  ],
97
59
  "www.wixapis.com": [
98
60
  {
99
- srcPath: "/pricing-plans/v2/orders",
100
- destPath: "/v2/orders"
61
+ srcPath: "/pricing-plans/v2/member/orders",
62
+ destPath: "/v2/member/orders"
101
63
  }
102
64
  ]
103
65
  };
@@ -214,80 +176,118 @@ function resolveComWixpressMembershipV2OrdersCheckoutServiceUrl(opts) {
214
176
  };
215
177
  return resolveUrl(Object.assign(opts, { domainToMappings }));
216
178
  }
217
- function resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl(opts) {
179
+ function resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl(opts) {
218
180
  const domainToMappings = {
219
181
  "api._api_base_domain_": [
220
182
  {
221
- srcPath: "/member-orders-service-proxy",
183
+ srcPath: "/order-management-service-proxy",
222
184
  destPath: ""
223
185
  }
224
186
  ],
225
187
  "*.dev.wix-code.com": [
226
188
  {
227
- srcPath: "/_api/pricing-plans-member-orders/v2/member/orders",
228
- destPath: "/v2/member/orders"
229
- },
230
- {
231
- srcPath: "/_api/pricing-plans/v2/member/orders",
232
- destPath: "/v2/member/orders"
189
+ srcPath: "/_api/paid-plans/v2/orders",
190
+ destPath: "/v2/orders"
233
191
  }
234
192
  ],
235
193
  "*.pub.wix-code.com": [
236
194
  {
237
- srcPath: "/_api/pricing-plans-member-orders/v2/member/orders",
238
- destPath: "/v2/member/orders"
239
- },
195
+ srcPath: "/_api/paid-plans/v2/orders",
196
+ destPath: "/v2/orders"
197
+ }
198
+ ],
199
+ "*.wixapps.net": [
240
200
  {
241
- srcPath: "/_api/pricing-plans/v2/member/orders",
242
- destPath: "/v2/member/orders"
201
+ srcPath: "/_api/paid-plans/v2/orders",
202
+ destPath: "/v2/orders"
243
203
  }
244
204
  ],
245
205
  _: [
246
206
  {
247
- srcPath: "/_api/pricing-plans/v2/member/orders",
248
- destPath: "/v2/member/orders"
207
+ srcPath: "/_api/paid-plans/v2/orders",
208
+ destPath: "/v2/orders"
209
+ }
210
+ ],
211
+ "editor-flow.wixapps.net": [
212
+ {
213
+ srcPath: "/_api/paid-plans/v2/orders",
214
+ destPath: "/v2/orders"
215
+ }
216
+ ],
217
+ "editor._base_domain_": [
218
+ {
219
+ srcPath: "/_api/paid-plans/v2/orders",
220
+ destPath: "/v2/orders"
221
+ }
222
+ ],
223
+ "blocks._base_domain_": [
224
+ {
225
+ srcPath: "/_api/paid-plans/v2/orders",
226
+ destPath: "/v2/orders"
227
+ }
228
+ ],
229
+ "create.editorx": [
230
+ {
231
+ srcPath: "/_api/paid-plans/v2/orders",
232
+ destPath: "/v2/orders"
249
233
  }
250
234
  ],
251
235
  "editor.wixapps.net": [
252
236
  {
253
- srcPath: "/_api/pricing-plans/v2/member/orders",
254
- destPath: "/v2/member/orders"
237
+ srcPath: "/_api/paid-plans/v2/orders",
238
+ destPath: "/v2/orders"
239
+ }
240
+ ],
241
+ "forums._base_domain_": [
242
+ {
243
+ srcPath: "/_api/paid-plans/v2/orders",
244
+ destPath: "/v2/orders"
245
+ }
246
+ ],
247
+ "forums.wixapps.net": [
248
+ {
249
+ srcPath: "/_api/paid-plans/v2/orders",
250
+ destPath: "/v2/orders"
255
251
  }
256
252
  ],
257
253
  "manage._base_domain_": [
258
254
  {
259
- srcPath: "/_api/pricing-plans/v2/member/orders",
260
- destPath: "/v2/member/orders"
255
+ srcPath: "/_api/pricing-plans/v2/orders",
256
+ destPath: "/v2/orders"
257
+ },
258
+ {
259
+ srcPath: "/_api/paid-plans/v2/orders",
260
+ destPath: "/v2/orders"
261
261
  }
262
262
  ],
263
263
  "www._base_domain_": [
264
264
  {
265
- srcPath: "/_api/pricing-plans/v2/member/orders",
266
- destPath: "/v2/member/orders"
265
+ srcPath: "/_api/paid-plans/v2/orders",
266
+ destPath: "/v2/orders"
267
267
  }
268
268
  ],
269
269
  "www.wixapis.com": [
270
270
  {
271
- srcPath: "/pricing-plans/v2/member/orders",
272
- destPath: "/v2/member/orders"
271
+ srcPath: "/pricing-plans/v2/orders",
272
+ destPath: "/v2/orders"
273
273
  }
274
274
  ]
275
275
  };
276
276
  return resolveUrl(Object.assign(opts, { domainToMappings }));
277
277
  }
278
278
  var PACKAGE_NAME = "@wix/auto_sdk_pricing-plans_orders";
279
- function memberGetOrder(payload) {
280
- function __memberGetOrder({ host }) {
279
+ function managementGetOrder(payload) {
280
+ function __managementGetOrder({ host }) {
281
281
  const metadata = {
282
282
  entityFqdn: "wix.pricing_plans.v2.order",
283
283
  method: "GET",
284
- methodFqn: "com.wixpress.membership.v2.orders.member.MemberOrdersService.GetOrder",
284
+ methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.GetOrder",
285
285
  packageName: PACKAGE_NAME,
286
286
  migrationOptions: {
287
287
  optInTransformResponse: true
288
288
  },
289
- url: resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl({
290
- protoPath: "/v2/member/orders/{id}",
289
+ url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
290
+ protoPath: "/v2/orders/{id}",
291
291
  data: payload,
292
292
  host
293
293
  }),
@@ -314,20 +314,20 @@ function memberGetOrder(payload) {
314
314
  };
315
315
  return metadata;
316
316
  }
317
- return __memberGetOrder;
317
+ return __managementGetOrder;
318
318
  }
319
- function memberListOrders(payload) {
320
- function __memberListOrders({ host }) {
319
+ function managementListOrders(payload) {
320
+ function __managementListOrders({ host }) {
321
321
  const metadata = {
322
322
  entityFqdn: "wix.pricing_plans.v2.order",
323
323
  method: "GET",
324
- methodFqn: "com.wixpress.membership.v2.orders.member.MemberOrdersService.ListOrders",
324
+ methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.ListOrders",
325
325
  packageName: PACKAGE_NAME,
326
326
  migrationOptions: {
327
327
  optInTransformResponse: true
328
328
  },
329
- url: resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl({
330
- protoPath: "/v2/member/orders",
329
+ url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
330
+ protoPath: "/v2/orders",
331
331
  data: payload,
332
332
  host
333
333
  }),
@@ -354,20 +354,47 @@ function memberListOrders(payload) {
354
354
  };
355
355
  return metadata;
356
356
  }
357
- return __memberListOrders;
357
+ return __managementListOrders;
358
358
  }
359
- function requestCancellation(payload) {
360
- function __requestCancellation({ host }) {
359
+ function postponeEndDate(payload) {
360
+ function __postponeEndDate({ host }) {
361
+ const serializedData = transformPaths(payload, [
362
+ {
363
+ transformFn: transformSDKTimestampToRESTTimestamp,
364
+ paths: [{ path: "endDate" }]
365
+ }
366
+ ]);
367
+ const metadata = {
368
+ entityFqdn: "wix.pricing_plans.v2.order",
369
+ method: "PATCH",
370
+ methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PostponeEndDate",
371
+ packageName: PACKAGE_NAME,
372
+ migrationOptions: {
373
+ optInTransformResponse: true
374
+ },
375
+ url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
376
+ protoPath: "/v2/orders/{id}",
377
+ data: serializedData,
378
+ host
379
+ }),
380
+ data: serializedData
381
+ };
382
+ return metadata;
383
+ }
384
+ return __postponeEndDate;
385
+ }
386
+ function cancelOrder(payload) {
387
+ function __cancelOrder({ host }) {
361
388
  const metadata = {
362
389
  entityFqdn: "wix.pricing_plans.v2.order",
363
390
  method: "POST",
364
- methodFqn: "com.wixpress.membership.v2.orders.member.MemberOrdersService.RequestCancellation",
391
+ methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.CancelOrder",
365
392
  packageName: PACKAGE_NAME,
366
393
  migrationOptions: {
367
394
  optInTransformResponse: true
368
395
  },
369
- url: resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl({
370
- protoPath: "/v2/member/orders/{id}/cancel",
396
+ url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
397
+ protoPath: "/v2/orders/{id}/cancel",
371
398
  data: payload,
372
399
  host
373
400
  }),
@@ -375,7 +402,70 @@ function requestCancellation(payload) {
375
402
  };
376
403
  return metadata;
377
404
  }
378
- return __requestCancellation;
405
+ return __cancelOrder;
406
+ }
407
+ function markAsPaid(payload) {
408
+ function __markAsPaid({ host }) {
409
+ const metadata = {
410
+ entityFqdn: "wix.pricing_plans.v2.order",
411
+ method: "POST",
412
+ methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.MarkAsPaid",
413
+ packageName: PACKAGE_NAME,
414
+ migrationOptions: {
415
+ optInTransformResponse: true
416
+ },
417
+ url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
418
+ protoPath: "/v2/orders/{id}/mark-as-paid",
419
+ data: payload,
420
+ host
421
+ }),
422
+ data: payload
423
+ };
424
+ return metadata;
425
+ }
426
+ return __markAsPaid;
427
+ }
428
+ function pauseOrder(payload) {
429
+ function __pauseOrder({ host }) {
430
+ const metadata = {
431
+ entityFqdn: "wix.pricing_plans.v2.order",
432
+ method: "POST",
433
+ methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PauseOrder",
434
+ packageName: PACKAGE_NAME,
435
+ migrationOptions: {
436
+ optInTransformResponse: true
437
+ },
438
+ url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
439
+ protoPath: "/v2/orders/{id}/pause",
440
+ data: payload,
441
+ host
442
+ }),
443
+ data: payload
444
+ };
445
+ return metadata;
446
+ }
447
+ return __pauseOrder;
448
+ }
449
+ function resumeOrder(payload) {
450
+ function __resumeOrder({ host }) {
451
+ const metadata = {
452
+ entityFqdn: "wix.pricing_plans.v2.order",
453
+ method: "POST",
454
+ methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.ResumeOrder",
455
+ packageName: PACKAGE_NAME,
456
+ migrationOptions: {
457
+ optInTransformResponse: true
458
+ },
459
+ url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
460
+ protoPath: "/v2/orders/{id}/resume",
461
+ data: payload,
462
+ host
463
+ }),
464
+ data: payload
465
+ };
466
+ return metadata;
467
+ }
468
+ return __resumeOrder;
379
469
  }
380
470
  function createOnlineOrder(payload) {
381
471
  function __createOnlineOrder({ host }) {
@@ -546,161 +636,33 @@ function getOfflineOrderPreview(payload) {
546
636
  { path: "order.earliestEndDate" },
547
637
  { path: "order.createdDate" },
548
638
  { path: "order.updatedDate" },
549
- { path: "order.cancellation.requestedDate" },
550
- { path: "order.pausePeriods.pauseDate" },
551
- { path: "order.pausePeriods.resumeDate" },
552
- { path: "order.currentCycle.startedDate" },
553
- { path: "order.currentCycle.endedDate" },
554
- { path: "order.cycles.startedDate" },
555
- { path: "order.cycles.endedDate" }
556
- ]
557
- }
558
- ])
559
- };
560
- return metadata;
561
- }
562
- return __getOfflineOrderPreview;
563
- }
564
- function getPricePreview(payload) {
565
- function __getPricePreview({ host }) {
566
- const metadata = {
567
- entityFqdn: "wix.pricing_plans.v2.order",
568
- method: "POST",
569
- methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.GetPricePreview",
570
- packageName: PACKAGE_NAME,
571
- migrationOptions: {
572
- optInTransformResponse: true
573
- },
574
- url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
575
- protoPath: "/v2/checkout/orders/price-preview",
576
- data: payload,
577
- host
578
- }),
579
- data: payload
580
- };
581
- return metadata;
582
- }
583
- return __getPricePreview;
584
- }
585
- function managementGetOrder(payload) {
586
- function __managementGetOrder({ host }) {
587
- const metadata = {
588
- entityFqdn: "wix.pricing_plans.v2.order",
589
- method: "GET",
590
- methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.GetOrder",
591
- packageName: PACKAGE_NAME,
592
- migrationOptions: {
593
- optInTransformResponse: true
594
- },
595
- url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
596
- protoPath: "/v2/orders/{id}",
597
- data: payload,
598
- host
599
- }),
600
- params: toURLSearchParams(payload),
601
- transformResponse: (payload2) => transformPaths(payload2, [
602
- {
603
- transformFn: transformRESTTimestampToSDKTimestamp,
604
- paths: [
605
- { path: "order.startDate" },
606
- { path: "order.endDate" },
607
- { path: "order.earliestEndDate" },
608
- { path: "order.createdDate" },
609
- { path: "order.updatedDate" },
610
- { path: "order.cancellation.requestedDate" },
611
- { path: "order.pausePeriods.pauseDate" },
612
- { path: "order.pausePeriods.resumeDate" },
613
- { path: "order.currentCycle.startedDate" },
614
- { path: "order.currentCycle.endedDate" },
615
- { path: "order.cycles.startedDate" },
616
- { path: "order.cycles.endedDate" }
617
- ]
618
- }
619
- ])
620
- };
621
- return metadata;
622
- }
623
- return __managementGetOrder;
624
- }
625
- function managementListOrders(payload) {
626
- function __managementListOrders({ host }) {
627
- const metadata = {
628
- entityFqdn: "wix.pricing_plans.v2.order",
629
- method: "GET",
630
- methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.ListOrders",
631
- packageName: PACKAGE_NAME,
632
- migrationOptions: {
633
- optInTransformResponse: true
634
- },
635
- url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
636
- protoPath: "/v2/orders",
637
- data: payload,
638
- host
639
- }),
640
- params: toURLSearchParams(payload, true),
641
- transformResponse: (payload2) => transformPaths(payload2, [
642
- {
643
- transformFn: transformRESTTimestampToSDKTimestamp,
644
- paths: [
645
- { path: "orders.startDate" },
646
- { path: "orders.endDate" },
647
- { path: "orders.earliestEndDate" },
648
- { path: "orders.createdDate" },
649
- { path: "orders.updatedDate" },
650
- { path: "orders.cancellation.requestedDate" },
651
- { path: "orders.pausePeriods.pauseDate" },
652
- { path: "orders.pausePeriods.resumeDate" },
653
- { path: "orders.currentCycle.startedDate" },
654
- { path: "orders.currentCycle.endedDate" },
655
- { path: "orders.cycles.startedDate" },
656
- { path: "orders.cycles.endedDate" }
657
- ]
658
- }
659
- ])
660
- };
661
- return metadata;
662
- }
663
- return __managementListOrders;
664
- }
665
- function postponeEndDate(payload) {
666
- function __postponeEndDate({ host }) {
667
- const serializedData = transformPaths(payload, [
668
- {
669
- transformFn: transformSDKTimestampToRESTTimestamp,
670
- paths: [{ path: "endDate" }]
671
- }
672
- ]);
673
- const metadata = {
674
- entityFqdn: "wix.pricing_plans.v2.order",
675
- method: "PATCH",
676
- methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PostponeEndDate",
677
- packageName: PACKAGE_NAME,
678
- migrationOptions: {
679
- optInTransformResponse: true
680
- },
681
- url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
682
- protoPath: "/v2/orders/{id}",
683
- data: serializedData,
684
- host
685
- }),
686
- data: serializedData
639
+ { path: "order.cancellation.requestedDate" },
640
+ { path: "order.pausePeriods.pauseDate" },
641
+ { path: "order.pausePeriods.resumeDate" },
642
+ { path: "order.currentCycle.startedDate" },
643
+ { path: "order.currentCycle.endedDate" },
644
+ { path: "order.cycles.startedDate" },
645
+ { path: "order.cycles.endedDate" }
646
+ ]
647
+ }
648
+ ])
687
649
  };
688
650
  return metadata;
689
651
  }
690
- return __postponeEndDate;
652
+ return __getOfflineOrderPreview;
691
653
  }
692
- function cancelOrder(payload) {
693
- function __cancelOrder({ host }) {
654
+ function getPricePreview(payload) {
655
+ function __getPricePreview({ host }) {
694
656
  const metadata = {
695
657
  entityFqdn: "wix.pricing_plans.v2.order",
696
658
  method: "POST",
697
- methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.CancelOrder",
659
+ methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.GetPricePreview",
698
660
  packageName: PACKAGE_NAME,
699
661
  migrationOptions: {
700
662
  optInTransformResponse: true
701
663
  },
702
- url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
703
- protoPath: "/v2/orders/{id}/cancel",
664
+ url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
665
+ protoPath: "/v2/checkout/orders/price-preview",
704
666
  data: payload,
705
667
  host
706
668
  }),
@@ -708,62 +670,100 @@ function cancelOrder(payload) {
708
670
  };
709
671
  return metadata;
710
672
  }
711
- return __cancelOrder;
673
+ return __getPricePreview;
712
674
  }
713
- function markAsPaid(payload) {
714
- function __markAsPaid({ host }) {
675
+ function memberGetOrder(payload) {
676
+ function __memberGetOrder({ host }) {
715
677
  const metadata = {
716
678
  entityFqdn: "wix.pricing_plans.v2.order",
717
- method: "POST",
718
- methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.MarkAsPaid",
679
+ method: "GET",
680
+ methodFqn: "com.wixpress.membership.v2.orders.member.MemberOrdersService.GetOrder",
719
681
  packageName: PACKAGE_NAME,
720
682
  migrationOptions: {
721
683
  optInTransformResponse: true
722
684
  },
723
- url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
724
- protoPath: "/v2/orders/{id}/mark-as-paid",
685
+ url: resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl({
686
+ protoPath: "/v2/member/orders/{id}",
725
687
  data: payload,
726
688
  host
727
689
  }),
728
- data: payload
690
+ params: toURLSearchParams(payload),
691
+ transformResponse: (payload2) => transformPaths(payload2, [
692
+ {
693
+ transformFn: transformRESTTimestampToSDKTimestamp,
694
+ paths: [
695
+ { path: "order.startDate" },
696
+ { path: "order.endDate" },
697
+ { path: "order.earliestEndDate" },
698
+ { path: "order.createdDate" },
699
+ { path: "order.updatedDate" },
700
+ { path: "order.cancellation.requestedDate" },
701
+ { path: "order.pausePeriods.pauseDate" },
702
+ { path: "order.pausePeriods.resumeDate" },
703
+ { path: "order.currentCycle.startedDate" },
704
+ { path: "order.currentCycle.endedDate" },
705
+ { path: "order.cycles.startedDate" },
706
+ { path: "order.cycles.endedDate" }
707
+ ]
708
+ }
709
+ ])
729
710
  };
730
711
  return metadata;
731
712
  }
732
- return __markAsPaid;
713
+ return __memberGetOrder;
733
714
  }
734
- function pauseOrder(payload) {
735
- function __pauseOrder({ host }) {
715
+ function memberListOrders(payload) {
716
+ function __memberListOrders({ host }) {
736
717
  const metadata = {
737
718
  entityFqdn: "wix.pricing_plans.v2.order",
738
- method: "POST",
739
- methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PauseOrder",
719
+ method: "GET",
720
+ methodFqn: "com.wixpress.membership.v2.orders.member.MemberOrdersService.ListOrders",
740
721
  packageName: PACKAGE_NAME,
741
722
  migrationOptions: {
742
723
  optInTransformResponse: true
743
724
  },
744
- url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
745
- protoPath: "/v2/orders/{id}/pause",
725
+ url: resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl({
726
+ protoPath: "/v2/member/orders",
746
727
  data: payload,
747
728
  host
748
729
  }),
749
- data: payload
730
+ params: toURLSearchParams(payload, true),
731
+ transformResponse: (payload2) => transformPaths(payload2, [
732
+ {
733
+ transformFn: transformRESTTimestampToSDKTimestamp,
734
+ paths: [
735
+ { path: "orders.startDate" },
736
+ { path: "orders.endDate" },
737
+ { path: "orders.earliestEndDate" },
738
+ { path: "orders.createdDate" },
739
+ { path: "orders.updatedDate" },
740
+ { path: "orders.cancellation.requestedDate" },
741
+ { path: "orders.pausePeriods.pauseDate" },
742
+ { path: "orders.pausePeriods.resumeDate" },
743
+ { path: "orders.currentCycle.startedDate" },
744
+ { path: "orders.currentCycle.endedDate" },
745
+ { path: "orders.cycles.startedDate" },
746
+ { path: "orders.cycles.endedDate" }
747
+ ]
748
+ }
749
+ ])
750
750
  };
751
751
  return metadata;
752
752
  }
753
- return __pauseOrder;
753
+ return __memberListOrders;
754
754
  }
755
- function resumeOrder(payload) {
756
- function __resumeOrder({ host }) {
755
+ function requestCancellation(payload) {
756
+ function __requestCancellation({ host }) {
757
757
  const metadata = {
758
758
  entityFqdn: "wix.pricing_plans.v2.order",
759
759
  method: "POST",
760
- methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.ResumeOrder",
760
+ methodFqn: "com.wixpress.membership.v2.orders.member.MemberOrdersService.RequestCancellation",
761
761
  packageName: PACKAGE_NAME,
762
762
  migrationOptions: {
763
763
  optInTransformResponse: true
764
764
  },
765
- url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
766
- protoPath: "/v2/orders/{id}/resume",
765
+ url: resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl({
766
+ protoPath: "/v2/member/orders/{id}/cancel",
767
767
  data: payload,
768
768
  host
769
769
  }),
@@ -771,7 +771,7 @@ function resumeOrder(payload) {
771
771
  };
772
772
  return metadata;
773
773
  }
774
- return __resumeOrder;
774
+ return __requestCancellation;
775
775
  }
776
776
 
777
777
  // src/pricing-plans-v2-order-orders.types.ts
@@ -848,14 +848,6 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
848
848
  SortOrder2["DESC"] = "DESC";
849
849
  return SortOrder2;
850
850
  })(SortOrder || {});
851
- var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
852
- WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
853
- WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
854
- WebhookIdentityType2["MEMBER"] = "MEMBER";
855
- WebhookIdentityType2["WIX_USER"] = "WIX_USER";
856
- WebhookIdentityType2["APP"] = "APP";
857
- return WebhookIdentityType2;
858
- })(WebhookIdentityType || {});
859
851
  var ReasonNotSuspendable = /* @__PURE__ */ ((ReasonNotSuspendable2) => {
860
852
  ReasonNotSuspendable2["UNDEFINED"] = "UNDEFINED";
861
853
  ReasonNotSuspendable2["PENDING"] = "PENDING";
@@ -867,11 +859,19 @@ var ReasonNotSuspendable = /* @__PURE__ */ ((ReasonNotSuspendable2) => {
867
859
  ReasonNotSuspendable2["OLD_STRIPE"] = "OLD_STRIPE";
868
860
  return ReasonNotSuspendable2;
869
861
  })(ReasonNotSuspendable || {});
862
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
863
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
864
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
865
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
866
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
867
+ WebhookIdentityType2["APP"] = "APP";
868
+ return WebhookIdentityType2;
869
+ })(WebhookIdentityType || {});
870
870
 
871
871
  // src/pricing-plans-v2-order-orders.meta.ts
872
- function memberGetOrder2() {
872
+ function managementGetOrder2() {
873
873
  const payload = { id: ":id" };
874
- const getRequestOptions = memberGetOrder(payload);
874
+ const getRequestOptions = managementGetOrder(payload);
875
875
  const getUrl = (context) => {
876
876
  const { url } = getRequestOptions(context);
877
877
  return url;
@@ -879,7 +879,7 @@ function memberGetOrder2() {
879
879
  return {
880
880
  getUrl,
881
881
  httpMethod: "GET",
882
- path: "/v2/member/orders/{id}",
882
+ path: "/v2/orders/{id}",
883
883
  pathParams: { id: "id" },
884
884
  __requestType: null,
885
885
  __originalRequestType: null,
@@ -887,9 +887,9 @@ function memberGetOrder2() {
887
887
  __originalResponseType: null
888
888
  };
889
889
  }
890
- function memberListOrders2() {
890
+ function managementListOrders2() {
891
891
  const payload = {};
892
- const getRequestOptions = memberListOrders(payload);
892
+ const getRequestOptions = managementListOrders(payload);
893
893
  const getUrl = (context) => {
894
894
  const { url } = getRequestOptions(context);
895
895
  return url;
@@ -897,7 +897,7 @@ function memberListOrders2() {
897
897
  return {
898
898
  getUrl,
899
899
  httpMethod: "GET",
900
- path: "/v2/member/orders",
900
+ path: "/v2/orders",
901
901
  pathParams: {},
902
902
  __requestType: null,
903
903
  __originalRequestType: null,
@@ -905,17 +905,17 @@ function memberListOrders2() {
905
905
  __originalResponseType: null
906
906
  };
907
907
  }
908
- function requestCancellation2() {
908
+ function postponeEndDate2() {
909
909
  const payload = { id: ":id" };
910
- const getRequestOptions = requestCancellation(payload);
910
+ const getRequestOptions = postponeEndDate(payload);
911
911
  const getUrl = (context) => {
912
912
  const { url } = getRequestOptions(context);
913
913
  return url;
914
914
  };
915
915
  return {
916
916
  getUrl,
917
- httpMethod: "POST",
918
- path: "/v2/member/orders/{id}/cancel",
917
+ httpMethod: "PATCH",
918
+ path: "/v2/orders/{id}",
919
919
  pathParams: { id: "id" },
920
920
  __requestType: null,
921
921
  __originalRequestType: null,
@@ -923,9 +923,9 @@ function requestCancellation2() {
923
923
  __originalResponseType: null
924
924
  };
925
925
  }
926
- function createOnlineOrder2() {
927
- const payload = {};
928
- const getRequestOptions = createOnlineOrder(payload);
926
+ function cancelOrder2() {
927
+ const payload = { id: ":id" };
928
+ const getRequestOptions = cancelOrder(payload);
929
929
  const getUrl = (context) => {
930
930
  const { url } = getRequestOptions(context);
931
931
  return url;
@@ -933,17 +933,17 @@ function createOnlineOrder2() {
933
933
  return {
934
934
  getUrl,
935
935
  httpMethod: "POST",
936
- path: "/v2/checkout/orders/online",
937
- pathParams: {},
936
+ path: "/v2/orders/{id}/cancel",
937
+ pathParams: { id: "id" },
938
938
  __requestType: null,
939
939
  __originalRequestType: null,
940
940
  __responseType: null,
941
941
  __originalResponseType: null
942
942
  };
943
943
  }
944
- function createOfflineOrder2() {
945
- const payload = {};
946
- const getRequestOptions = createOfflineOrder(payload);
944
+ function markAsPaid2() {
945
+ const payload = { id: ":id" };
946
+ const getRequestOptions = markAsPaid(payload);
947
947
  const getUrl = (context) => {
948
948
  const { url } = getRequestOptions(context);
949
949
  return url;
@@ -951,17 +951,17 @@ function createOfflineOrder2() {
951
951
  return {
952
952
  getUrl,
953
953
  httpMethod: "POST",
954
- path: "/v2/checkout/orders/offline",
955
- pathParams: {},
954
+ path: "/v2/orders/{id}/mark-as-paid",
955
+ pathParams: { id: "id" },
956
956
  __requestType: null,
957
957
  __originalRequestType: null,
958
958
  __responseType: null,
959
959
  __originalResponseType: null
960
960
  };
961
961
  }
962
- function getOnlineOrderPreview2() {
963
- const payload = {};
964
- const getRequestOptions = getOnlineOrderPreview(payload);
962
+ function pauseOrder2() {
963
+ const payload = { id: ":id" };
964
+ const getRequestOptions = pauseOrder(payload);
965
965
  const getUrl = (context) => {
966
966
  const { url } = getRequestOptions(context);
967
967
  return url;
@@ -969,17 +969,17 @@ function getOnlineOrderPreview2() {
969
969
  return {
970
970
  getUrl,
971
971
  httpMethod: "POST",
972
- path: "/v2/checkout/orders/preview-online",
973
- pathParams: {},
972
+ path: "/v2/orders/{id}/pause",
973
+ pathParams: { id: "id" },
974
974
  __requestType: null,
975
975
  __originalRequestType: null,
976
976
  __responseType: null,
977
977
  __originalResponseType: null
978
978
  };
979
979
  }
980
- function getOfflineOrderPreview2() {
981
- const payload = {};
982
- const getRequestOptions = getOfflineOrderPreview(payload);
980
+ function resumeOrder2() {
981
+ const payload = { id: ":id" };
982
+ const getRequestOptions = resumeOrder(payload);
983
983
  const getUrl = (context) => {
984
984
  const { url } = getRequestOptions(context);
985
985
  return url;
@@ -987,17 +987,17 @@ function getOfflineOrderPreview2() {
987
987
  return {
988
988
  getUrl,
989
989
  httpMethod: "POST",
990
- path: "/v2/checkout/orders/preview-offline",
991
- pathParams: {},
990
+ path: "/v2/orders/{id}/resume",
991
+ pathParams: { id: "id" },
992
992
  __requestType: null,
993
993
  __originalRequestType: null,
994
994
  __responseType: null,
995
995
  __originalResponseType: null
996
996
  };
997
997
  }
998
- function getPricePreview2() {
998
+ function createOnlineOrder2() {
999
999
  const payload = {};
1000
- const getRequestOptions = getPricePreview(payload);
1000
+ const getRequestOptions = createOnlineOrder(payload);
1001
1001
  const getUrl = (context) => {
1002
1002
  const { url } = getRequestOptions(context);
1003
1003
  return url;
@@ -1005,7 +1005,7 @@ function getPricePreview2() {
1005
1005
  return {
1006
1006
  getUrl,
1007
1007
  httpMethod: "POST",
1008
- path: "/v2/checkout/orders/price-preview",
1008
+ path: "/v2/checkout/orders/online",
1009
1009
  pathParams: {},
1010
1010
  __requestType: null,
1011
1011
  __originalRequestType: null,
@@ -1013,35 +1013,35 @@ function getPricePreview2() {
1013
1013
  __originalResponseType: null
1014
1014
  };
1015
1015
  }
1016
- function managementGetOrder2() {
1017
- const payload = { id: ":id" };
1018
- const getRequestOptions = managementGetOrder(payload);
1016
+ function createOfflineOrder2() {
1017
+ const payload = {};
1018
+ const getRequestOptions = createOfflineOrder(payload);
1019
1019
  const getUrl = (context) => {
1020
1020
  const { url } = getRequestOptions(context);
1021
1021
  return url;
1022
1022
  };
1023
1023
  return {
1024
1024
  getUrl,
1025
- httpMethod: "GET",
1026
- path: "/v2/orders/{id}",
1027
- pathParams: { id: "id" },
1025
+ httpMethod: "POST",
1026
+ path: "/v2/checkout/orders/offline",
1027
+ pathParams: {},
1028
1028
  __requestType: null,
1029
1029
  __originalRequestType: null,
1030
1030
  __responseType: null,
1031
1031
  __originalResponseType: null
1032
1032
  };
1033
1033
  }
1034
- function managementListOrders2() {
1034
+ function getOnlineOrderPreview2() {
1035
1035
  const payload = {};
1036
- const getRequestOptions = managementListOrders(payload);
1036
+ const getRequestOptions = getOnlineOrderPreview(payload);
1037
1037
  const getUrl = (context) => {
1038
1038
  const { url } = getRequestOptions(context);
1039
1039
  return url;
1040
1040
  };
1041
1041
  return {
1042
1042
  getUrl,
1043
- httpMethod: "GET",
1044
- path: "/v2/orders",
1043
+ httpMethod: "POST",
1044
+ path: "/v2/checkout/orders/preview-online",
1045
1045
  pathParams: {},
1046
1046
  __requestType: null,
1047
1047
  __originalRequestType: null,
@@ -1049,27 +1049,27 @@ function managementListOrders2() {
1049
1049
  __originalResponseType: null
1050
1050
  };
1051
1051
  }
1052
- function postponeEndDate2() {
1053
- const payload = { id: ":id" };
1054
- const getRequestOptions = postponeEndDate(payload);
1052
+ function getOfflineOrderPreview2() {
1053
+ const payload = {};
1054
+ const getRequestOptions = getOfflineOrderPreview(payload);
1055
1055
  const getUrl = (context) => {
1056
1056
  const { url } = getRequestOptions(context);
1057
1057
  return url;
1058
1058
  };
1059
1059
  return {
1060
1060
  getUrl,
1061
- httpMethod: "PATCH",
1062
- path: "/v2/orders/{id}",
1063
- pathParams: { id: "id" },
1061
+ httpMethod: "POST",
1062
+ path: "/v2/checkout/orders/preview-offline",
1063
+ pathParams: {},
1064
1064
  __requestType: null,
1065
1065
  __originalRequestType: null,
1066
1066
  __responseType: null,
1067
1067
  __originalResponseType: null
1068
1068
  };
1069
1069
  }
1070
- function cancelOrder2() {
1071
- const payload = { id: ":id" };
1072
- const getRequestOptions = cancelOrder(payload);
1070
+ function getPricePreview2() {
1071
+ const payload = {};
1072
+ const getRequestOptions = getPricePreview(payload);
1073
1073
  const getUrl = (context) => {
1074
1074
  const { url } = getRequestOptions(context);
1075
1075
  return url;
@@ -1077,25 +1077,25 @@ function cancelOrder2() {
1077
1077
  return {
1078
1078
  getUrl,
1079
1079
  httpMethod: "POST",
1080
- path: "/v2/orders/{id}/cancel",
1081
- pathParams: { id: "id" },
1080
+ path: "/v2/checkout/orders/price-preview",
1081
+ pathParams: {},
1082
1082
  __requestType: null,
1083
1083
  __originalRequestType: null,
1084
1084
  __responseType: null,
1085
1085
  __originalResponseType: null
1086
1086
  };
1087
1087
  }
1088
- function markAsPaid2() {
1088
+ function memberGetOrder2() {
1089
1089
  const payload = { id: ":id" };
1090
- const getRequestOptions = markAsPaid(payload);
1090
+ const getRequestOptions = memberGetOrder(payload);
1091
1091
  const getUrl = (context) => {
1092
1092
  const { url } = getRequestOptions(context);
1093
1093
  return url;
1094
1094
  };
1095
1095
  return {
1096
1096
  getUrl,
1097
- httpMethod: "POST",
1098
- path: "/v2/orders/{id}/mark-as-paid",
1097
+ httpMethod: "GET",
1098
+ path: "/v2/member/orders/{id}",
1099
1099
  pathParams: { id: "id" },
1100
1100
  __requestType: null,
1101
1101
  __originalRequestType: null,
@@ -1103,27 +1103,27 @@ function markAsPaid2() {
1103
1103
  __originalResponseType: null
1104
1104
  };
1105
1105
  }
1106
- function pauseOrder2() {
1107
- const payload = { id: ":id" };
1108
- const getRequestOptions = pauseOrder(payload);
1106
+ function memberListOrders2() {
1107
+ const payload = {};
1108
+ const getRequestOptions = memberListOrders(payload);
1109
1109
  const getUrl = (context) => {
1110
1110
  const { url } = getRequestOptions(context);
1111
1111
  return url;
1112
1112
  };
1113
1113
  return {
1114
1114
  getUrl,
1115
- httpMethod: "POST",
1116
- path: "/v2/orders/{id}/pause",
1117
- pathParams: { id: "id" },
1115
+ httpMethod: "GET",
1116
+ path: "/v2/member/orders",
1117
+ pathParams: {},
1118
1118
  __requestType: null,
1119
1119
  __originalRequestType: null,
1120
1120
  __responseType: null,
1121
1121
  __originalResponseType: null
1122
1122
  };
1123
1123
  }
1124
- function resumeOrder2() {
1124
+ function requestCancellation2() {
1125
1125
  const payload = { id: ":id" };
1126
- const getRequestOptions = resumeOrder(payload);
1126
+ const getRequestOptions = requestCancellation(payload);
1127
1127
  const getUrl = (context) => {
1128
1128
  const { url } = getRequestOptions(context);
1129
1129
  return url;
@@ -1131,7 +1131,7 @@ function resumeOrder2() {
1131
1131
  return {
1132
1132
  getUrl,
1133
1133
  httpMethod: "POST",
1134
- path: "/v2/orders/{id}/resume",
1134
+ path: "/v2/member/orders/{id}/cancel",
1135
1135
  pathParams: { id: "id" },
1136
1136
  __requestType: null,
1137
1137
  __originalRequestType: null,