@wix/auto_sdk_pricing-plans_orders 1.0.119 → 1.0.120

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 +489 -470
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +509 -498
  5. package/build/cjs/index.typings.js +361 -342
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +261 -250
  8. package/build/cjs/meta.js +361 -342
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/schemas.d.ts +38 -30
  11. package/build/cjs/schemas.js +73 -61
  12. package/build/cjs/schemas.js.map +1 -1
  13. package/build/es/index.d.mts +155 -155
  14. package/build/es/index.mjs +489 -470
  15. package/build/es/index.mjs.map +1 -1
  16. package/build/es/index.typings.d.mts +509 -498
  17. package/build/es/index.typings.mjs +361 -342
  18. package/build/es/index.typings.mjs.map +1 -1
  19. package/build/es/meta.d.mts +261 -250
  20. package/build/es/meta.mjs +361 -342
  21. package/build/es/meta.mjs.map +1 -1
  22. package/build/es/schemas.d.mts +38 -30
  23. package/build/es/schemas.mjs +73 -61
  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 +489 -470
  27. package/build/internal/cjs/index.js.map +1 -1
  28. package/build/internal/cjs/index.typings.d.ts +509 -498
  29. package/build/internal/cjs/index.typings.js +361 -342
  30. package/build/internal/cjs/index.typings.js.map +1 -1
  31. package/build/internal/cjs/meta.d.ts +261 -250
  32. package/build/internal/cjs/meta.js +361 -342
  33. package/build/internal/cjs/meta.js.map +1 -1
  34. package/build/internal/cjs/schemas.d.ts +38 -30
  35. package/build/internal/cjs/schemas.js +73 -61
  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 +489 -470
  39. package/build/internal/es/index.mjs.map +1 -1
  40. package/build/internal/es/index.typings.d.mts +509 -498
  41. package/build/internal/es/index.typings.mjs +361 -342
  42. package/build/internal/es/index.typings.mjs.map +1 -1
  43. package/build/internal/es/meta.d.mts +261 -250
  44. package/build/internal/es/meta.mjs +361 -342
  45. package/build/internal/es/meta.mjs.map +1 -1
  46. package/build/internal/es/schemas.d.mts +38 -30
  47. package/build/internal/es/schemas.mjs +73 -61
  48. package/build/internal/es/schemas.mjs.map +1 -1
  49. package/package.json +2 -2
@@ -1,103 +1,66 @@
1
1
  // src/pricing-plans-v2-order-orders.http.ts
2
2
  import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
3
+ import { transformSDKFloatToRESTFloat } from "@wix/sdk-runtime/transformations/float";
3
4
  import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
4
5
  import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
5
6
  import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
6
7
  import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
7
- function resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl(opts) {
8
+ function resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl(opts) {
8
9
  const domainToMappings = {
9
10
  "api._api_base_domain_": [
10
11
  {
11
- srcPath: "/order-management-service-proxy",
12
+ srcPath: "/member-orders-service-proxy",
12
13
  destPath: ""
13
14
  }
14
15
  ],
15
16
  "*.dev.wix-code.com": [
16
17
  {
17
- srcPath: "/_api/paid-plans/v2/orders",
18
- destPath: "/v2/orders"
18
+ srcPath: "/_api/pricing-plans-member-orders/v2/member/orders",
19
+ destPath: "/v2/member/orders"
20
+ },
21
+ {
22
+ srcPath: "/_api/pricing-plans/v2/member/orders",
23
+ destPath: "/v2/member/orders"
19
24
  }
20
25
  ],
21
26
  "*.pub.wix-code.com": [
22
27
  {
23
- srcPath: "/_api/paid-plans/v2/orders",
24
- destPath: "/v2/orders"
25
- }
26
- ],
27
- "*.wixapps.net": [
28
+ srcPath: "/_api/pricing-plans-member-orders/v2/member/orders",
29
+ destPath: "/v2/member/orders"
30
+ },
28
31
  {
29
- srcPath: "/_api/paid-plans/v2/orders",
30
- destPath: "/v2/orders"
32
+ srcPath: "/_api/pricing-plans/v2/member/orders",
33
+ destPath: "/v2/member/orders"
31
34
  }
32
35
  ],
33
36
  _: [
34
37
  {
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"
38
+ srcPath: "/_api/pricing-plans/v2/member/orders",
39
+ destPath: "/v2/member/orders"
61
40
  }
62
41
  ],
63
42
  "editor.wixapps.net": [
64
43
  {
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"
44
+ srcPath: "/_api/pricing-plans/v2/member/orders",
45
+ destPath: "/v2/member/orders"
79
46
  }
80
47
  ],
81
48
  "manage._base_domain_": [
82
49
  {
83
- srcPath: "/_api/pricing-plans/v2/orders",
84
- destPath: "/v2/orders"
85
- },
86
- {
87
- srcPath: "/_api/paid-plans/v2/orders",
88
- destPath: "/v2/orders"
50
+ srcPath: "/_api/pricing-plans/v2/member/orders",
51
+ destPath: "/v2/member/orders"
89
52
  }
90
53
  ],
91
54
  "www._base_domain_": [
92
55
  {
93
- srcPath: "/_api/paid-plans/v2/orders",
94
- destPath: "/v2/orders"
56
+ srcPath: "/_api/pricing-plans/v2/member/orders",
57
+ destPath: "/v2/member/orders"
95
58
  }
96
59
  ],
97
60
  "www.wixapis.com": [
98
61
  {
99
- srcPath: "/pricing-plans/v2/orders",
100
- destPath: "/v2/orders"
62
+ srcPath: "/pricing-plans/v2/member/orders",
63
+ destPath: "/v2/member/orders"
101
64
  }
102
65
  ]
103
66
  };
@@ -214,80 +177,118 @@ function resolveComWixpressMembershipV2OrdersCheckoutServiceUrl(opts) {
214
177
  };
215
178
  return resolveUrl(Object.assign(opts, { domainToMappings }));
216
179
  }
217
- function resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl(opts) {
180
+ function resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl(opts) {
218
181
  const domainToMappings = {
219
182
  "api._api_base_domain_": [
220
183
  {
221
- srcPath: "/member-orders-service-proxy",
184
+ srcPath: "/order-management-service-proxy",
222
185
  destPath: ""
223
186
  }
224
187
  ],
225
188
  "*.dev.wix-code.com": [
226
189
  {
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"
190
+ srcPath: "/_api/paid-plans/v2/orders",
191
+ destPath: "/v2/orders"
233
192
  }
234
193
  ],
235
194
  "*.pub.wix-code.com": [
236
195
  {
237
- srcPath: "/_api/pricing-plans-member-orders/v2/member/orders",
238
- destPath: "/v2/member/orders"
239
- },
196
+ srcPath: "/_api/paid-plans/v2/orders",
197
+ destPath: "/v2/orders"
198
+ }
199
+ ],
200
+ "*.wixapps.net": [
240
201
  {
241
- srcPath: "/_api/pricing-plans/v2/member/orders",
242
- destPath: "/v2/member/orders"
202
+ srcPath: "/_api/paid-plans/v2/orders",
203
+ destPath: "/v2/orders"
243
204
  }
244
205
  ],
245
206
  _: [
246
207
  {
247
- srcPath: "/_api/pricing-plans/v2/member/orders",
248
- destPath: "/v2/member/orders"
208
+ srcPath: "/_api/paid-plans/v2/orders",
209
+ destPath: "/v2/orders"
210
+ }
211
+ ],
212
+ "editor-flow.wixapps.net": [
213
+ {
214
+ srcPath: "/_api/paid-plans/v2/orders",
215
+ destPath: "/v2/orders"
216
+ }
217
+ ],
218
+ "editor._base_domain_": [
219
+ {
220
+ srcPath: "/_api/paid-plans/v2/orders",
221
+ destPath: "/v2/orders"
222
+ }
223
+ ],
224
+ "blocks._base_domain_": [
225
+ {
226
+ srcPath: "/_api/paid-plans/v2/orders",
227
+ destPath: "/v2/orders"
228
+ }
229
+ ],
230
+ "create.editorx": [
231
+ {
232
+ srcPath: "/_api/paid-plans/v2/orders",
233
+ destPath: "/v2/orders"
249
234
  }
250
235
  ],
251
236
  "editor.wixapps.net": [
252
237
  {
253
- srcPath: "/_api/pricing-plans/v2/member/orders",
254
- destPath: "/v2/member/orders"
238
+ srcPath: "/_api/paid-plans/v2/orders",
239
+ destPath: "/v2/orders"
240
+ }
241
+ ],
242
+ "forums._base_domain_": [
243
+ {
244
+ srcPath: "/_api/paid-plans/v2/orders",
245
+ destPath: "/v2/orders"
246
+ }
247
+ ],
248
+ "forums.wixapps.net": [
249
+ {
250
+ srcPath: "/_api/paid-plans/v2/orders",
251
+ destPath: "/v2/orders"
255
252
  }
256
253
  ],
257
254
  "manage._base_domain_": [
258
255
  {
259
- srcPath: "/_api/pricing-plans/v2/member/orders",
260
- destPath: "/v2/member/orders"
256
+ srcPath: "/_api/pricing-plans/v2/orders",
257
+ destPath: "/v2/orders"
258
+ },
259
+ {
260
+ srcPath: "/_api/paid-plans/v2/orders",
261
+ destPath: "/v2/orders"
261
262
  }
262
263
  ],
263
264
  "www._base_domain_": [
264
265
  {
265
- srcPath: "/_api/pricing-plans/v2/member/orders",
266
- destPath: "/v2/member/orders"
266
+ srcPath: "/_api/paid-plans/v2/orders",
267
+ destPath: "/v2/orders"
267
268
  }
268
269
  ],
269
270
  "www.wixapis.com": [
270
271
  {
271
- srcPath: "/pricing-plans/v2/member/orders",
272
- destPath: "/v2/member/orders"
272
+ srcPath: "/pricing-plans/v2/orders",
273
+ destPath: "/v2/orders"
273
274
  }
274
275
  ]
275
276
  };
276
277
  return resolveUrl(Object.assign(opts, { domainToMappings }));
277
278
  }
278
279
  var PACKAGE_NAME = "@wix/auto_sdk_pricing-plans_orders";
279
- function memberGetOrder(payload) {
280
- function __memberGetOrder({ host }) {
280
+ function managementGetOrder(payload) {
281
+ function __managementGetOrder({ host }) {
281
282
  const metadata = {
282
283
  entityFqdn: "wix.pricing_plans.v2.order",
283
284
  method: "GET",
284
- methodFqn: "com.wixpress.membership.v2.orders.member.MemberOrdersService.GetOrder",
285
+ methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.GetOrder",
285
286
  packageName: PACKAGE_NAME,
286
287
  migrationOptions: {
287
288
  optInTransformResponse: true
288
289
  },
289
- url: resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl({
290
- protoPath: "/v2/member/orders/{id}",
290
+ url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
291
+ protoPath: "/v2/orders/{id}",
291
292
  data: payload,
292
293
  host
293
294
  }),
@@ -314,24 +315,33 @@ function memberGetOrder(payload) {
314
315
  };
315
316
  return metadata;
316
317
  }
317
- return __memberGetOrder;
318
+ return __managementGetOrder;
318
319
  }
319
- function memberListOrders(payload) {
320
- function __memberListOrders({ host }) {
320
+ function managementListOrders(payload) {
321
+ function __managementListOrders({ host }) {
322
+ const serializedData = transformPaths(payload, [
323
+ {
324
+ transformFn: transformSDKFloatToRESTFloat,
325
+ paths: [
326
+ { path: "sorting.origin.latitude" },
327
+ { path: "sorting.origin.longitude" }
328
+ ]
329
+ }
330
+ ]);
321
331
  const metadata = {
322
332
  entityFqdn: "wix.pricing_plans.v2.order",
323
333
  method: "GET",
324
- methodFqn: "com.wixpress.membership.v2.orders.member.MemberOrdersService.ListOrders",
334
+ methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.ListOrders",
325
335
  packageName: PACKAGE_NAME,
326
336
  migrationOptions: {
327
337
  optInTransformResponse: true
328
338
  },
329
- url: resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl({
330
- protoPath: "/v2/member/orders",
331
- data: payload,
339
+ url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
340
+ protoPath: "/v2/orders",
341
+ data: serializedData,
332
342
  host
333
343
  }),
334
- params: toURLSearchParams(payload, true),
344
+ params: toURLSearchParams(serializedData, true),
335
345
  transformResponse: (payload2) => transformPaths(payload2, [
336
346
  {
337
347
  transformFn: transformRESTTimestampToSDKTimestamp,
@@ -354,20 +364,47 @@ function memberListOrders(payload) {
354
364
  };
355
365
  return metadata;
356
366
  }
357
- return __memberListOrders;
367
+ return __managementListOrders;
358
368
  }
359
- function requestCancellation(payload) {
360
- function __requestCancellation({ host }) {
369
+ function postponeEndDate(payload) {
370
+ function __postponeEndDate({ host }) {
371
+ const serializedData = transformPaths(payload, [
372
+ {
373
+ transformFn: transformSDKTimestampToRESTTimestamp,
374
+ paths: [{ path: "endDate" }]
375
+ }
376
+ ]);
377
+ const metadata = {
378
+ entityFqdn: "wix.pricing_plans.v2.order",
379
+ method: "PATCH",
380
+ methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PostponeEndDate",
381
+ packageName: PACKAGE_NAME,
382
+ migrationOptions: {
383
+ optInTransformResponse: true
384
+ },
385
+ url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
386
+ protoPath: "/v2/orders/{id}",
387
+ data: serializedData,
388
+ host
389
+ }),
390
+ data: serializedData
391
+ };
392
+ return metadata;
393
+ }
394
+ return __postponeEndDate;
395
+ }
396
+ function cancelOrder(payload) {
397
+ function __cancelOrder({ host }) {
361
398
  const metadata = {
362
399
  entityFqdn: "wix.pricing_plans.v2.order",
363
400
  method: "POST",
364
- methodFqn: "com.wixpress.membership.v2.orders.member.MemberOrdersService.RequestCancellation",
401
+ methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.CancelOrder",
365
402
  packageName: PACKAGE_NAME,
366
403
  migrationOptions: {
367
404
  optInTransformResponse: true
368
405
  },
369
- url: resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl({
370
- protoPath: "/v2/member/orders/{id}/cancel",
406
+ url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
407
+ protoPath: "/v2/orders/{id}/cancel",
371
408
  data: payload,
372
409
  host
373
410
  }),
@@ -375,7 +412,70 @@ function requestCancellation(payload) {
375
412
  };
376
413
  return metadata;
377
414
  }
378
- return __requestCancellation;
415
+ return __cancelOrder;
416
+ }
417
+ function markAsPaid(payload) {
418
+ function __markAsPaid({ host }) {
419
+ const metadata = {
420
+ entityFqdn: "wix.pricing_plans.v2.order",
421
+ method: "POST",
422
+ methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.MarkAsPaid",
423
+ packageName: PACKAGE_NAME,
424
+ migrationOptions: {
425
+ optInTransformResponse: true
426
+ },
427
+ url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
428
+ protoPath: "/v2/orders/{id}/mark-as-paid",
429
+ data: payload,
430
+ host
431
+ }),
432
+ data: payload
433
+ };
434
+ return metadata;
435
+ }
436
+ return __markAsPaid;
437
+ }
438
+ function pauseOrder(payload) {
439
+ function __pauseOrder({ host }) {
440
+ const metadata = {
441
+ entityFqdn: "wix.pricing_plans.v2.order",
442
+ method: "POST",
443
+ methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PauseOrder",
444
+ packageName: PACKAGE_NAME,
445
+ migrationOptions: {
446
+ optInTransformResponse: true
447
+ },
448
+ url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
449
+ protoPath: "/v2/orders/{id}/pause",
450
+ data: payload,
451
+ host
452
+ }),
453
+ data: payload
454
+ };
455
+ return metadata;
456
+ }
457
+ return __pauseOrder;
458
+ }
459
+ function resumeOrder(payload) {
460
+ function __resumeOrder({ host }) {
461
+ const metadata = {
462
+ entityFqdn: "wix.pricing_plans.v2.order",
463
+ method: "POST",
464
+ methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.ResumeOrder",
465
+ packageName: PACKAGE_NAME,
466
+ migrationOptions: {
467
+ optInTransformResponse: true
468
+ },
469
+ url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
470
+ protoPath: "/v2/orders/{id}/resume",
471
+ data: payload,
472
+ host
473
+ }),
474
+ data: payload
475
+ };
476
+ return metadata;
477
+ }
478
+ return __resumeOrder;
379
479
  }
380
480
  function createOnlineOrder(payload) {
381
481
  function __createOnlineOrder({ host }) {
@@ -551,156 +651,28 @@ function getOfflineOrderPreview(payload) {
551
651
  { path: "order.pausePeriods.resumeDate" },
552
652
  { path: "order.currentCycle.startedDate" },
553
653
  { 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
654
+ { path: "order.cycles.startedDate" },
655
+ { path: "order.cycles.endedDate" }
656
+ ]
657
+ }
658
+ ])
687
659
  };
688
660
  return metadata;
689
661
  }
690
- return __postponeEndDate;
662
+ return __getOfflineOrderPreview;
691
663
  }
692
- function cancelOrder(payload) {
693
- function __cancelOrder({ host }) {
664
+ function getPricePreview(payload) {
665
+ function __getPricePreview({ host }) {
694
666
  const metadata = {
695
667
  entityFqdn: "wix.pricing_plans.v2.order",
696
668
  method: "POST",
697
- methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.CancelOrder",
669
+ methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.GetPricePreview",
698
670
  packageName: PACKAGE_NAME,
699
671
  migrationOptions: {
700
672
  optInTransformResponse: true
701
673
  },
702
- url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
703
- protoPath: "/v2/orders/{id}/cancel",
674
+ url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
675
+ protoPath: "/v2/checkout/orders/price-preview",
704
676
  data: payload,
705
677
  host
706
678
  }),
@@ -708,62 +680,109 @@ function cancelOrder(payload) {
708
680
  };
709
681
  return metadata;
710
682
  }
711
- return __cancelOrder;
683
+ return __getPricePreview;
712
684
  }
713
- function markAsPaid(payload) {
714
- function __markAsPaid({ host }) {
685
+ function memberGetOrder(payload) {
686
+ function __memberGetOrder({ host }) {
715
687
  const metadata = {
716
688
  entityFqdn: "wix.pricing_plans.v2.order",
717
- method: "POST",
718
- methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.MarkAsPaid",
689
+ method: "GET",
690
+ methodFqn: "com.wixpress.membership.v2.orders.member.MemberOrdersService.GetOrder",
719
691
  packageName: PACKAGE_NAME,
720
692
  migrationOptions: {
721
693
  optInTransformResponse: true
722
694
  },
723
- url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
724
- protoPath: "/v2/orders/{id}/mark-as-paid",
695
+ url: resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl({
696
+ protoPath: "/v2/member/orders/{id}",
725
697
  data: payload,
726
698
  host
727
699
  }),
728
- data: payload
700
+ params: toURLSearchParams(payload),
701
+ transformResponse: (payload2) => transformPaths(payload2, [
702
+ {
703
+ transformFn: transformRESTTimestampToSDKTimestamp,
704
+ paths: [
705
+ { path: "order.startDate" },
706
+ { path: "order.endDate" },
707
+ { path: "order.earliestEndDate" },
708
+ { path: "order.createdDate" },
709
+ { path: "order.updatedDate" },
710
+ { path: "order.cancellation.requestedDate" },
711
+ { path: "order.pausePeriods.pauseDate" },
712
+ { path: "order.pausePeriods.resumeDate" },
713
+ { path: "order.currentCycle.startedDate" },
714
+ { path: "order.currentCycle.endedDate" },
715
+ { path: "order.cycles.startedDate" },
716
+ { path: "order.cycles.endedDate" }
717
+ ]
718
+ }
719
+ ])
729
720
  };
730
721
  return metadata;
731
722
  }
732
- return __markAsPaid;
723
+ return __memberGetOrder;
733
724
  }
734
- function pauseOrder(payload) {
735
- function __pauseOrder({ host }) {
725
+ function memberListOrders(payload) {
726
+ function __memberListOrders({ host }) {
727
+ const serializedData = transformPaths(payload, [
728
+ {
729
+ transformFn: transformSDKFloatToRESTFloat,
730
+ paths: [
731
+ { path: "sorting.origin.latitude" },
732
+ { path: "sorting.origin.longitude" }
733
+ ]
734
+ }
735
+ ]);
736
736
  const metadata = {
737
737
  entityFqdn: "wix.pricing_plans.v2.order",
738
- method: "POST",
739
- methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PauseOrder",
738
+ method: "GET",
739
+ methodFqn: "com.wixpress.membership.v2.orders.member.MemberOrdersService.ListOrders",
740
740
  packageName: PACKAGE_NAME,
741
741
  migrationOptions: {
742
742
  optInTransformResponse: true
743
743
  },
744
- url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
745
- protoPath: "/v2/orders/{id}/pause",
746
- data: payload,
744
+ url: resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl({
745
+ protoPath: "/v2/member/orders",
746
+ data: serializedData,
747
747
  host
748
748
  }),
749
- data: payload
749
+ params: toURLSearchParams(serializedData, true),
750
+ transformResponse: (payload2) => transformPaths(payload2, [
751
+ {
752
+ transformFn: transformRESTTimestampToSDKTimestamp,
753
+ paths: [
754
+ { path: "orders.startDate" },
755
+ { path: "orders.endDate" },
756
+ { path: "orders.earliestEndDate" },
757
+ { path: "orders.createdDate" },
758
+ { path: "orders.updatedDate" },
759
+ { path: "orders.cancellation.requestedDate" },
760
+ { path: "orders.pausePeriods.pauseDate" },
761
+ { path: "orders.pausePeriods.resumeDate" },
762
+ { path: "orders.currentCycle.startedDate" },
763
+ { path: "orders.currentCycle.endedDate" },
764
+ { path: "orders.cycles.startedDate" },
765
+ { path: "orders.cycles.endedDate" }
766
+ ]
767
+ }
768
+ ])
750
769
  };
751
770
  return metadata;
752
771
  }
753
- return __pauseOrder;
772
+ return __memberListOrders;
754
773
  }
755
- function resumeOrder(payload) {
756
- function __resumeOrder({ host }) {
774
+ function requestCancellation(payload) {
775
+ function __requestCancellation({ host }) {
757
776
  const metadata = {
758
777
  entityFqdn: "wix.pricing_plans.v2.order",
759
778
  method: "POST",
760
- methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.ResumeOrder",
779
+ methodFqn: "com.wixpress.membership.v2.orders.member.MemberOrdersService.RequestCancellation",
761
780
  packageName: PACKAGE_NAME,
762
781
  migrationOptions: {
763
782
  optInTransformResponse: true
764
783
  },
765
- url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
766
- protoPath: "/v2/orders/{id}/resume",
784
+ url: resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl({
785
+ protoPath: "/v2/member/orders/{id}/cancel",
767
786
  data: payload,
768
787
  host
769
788
  }),
@@ -771,7 +790,7 @@ function resumeOrder(payload) {
771
790
  };
772
791
  return metadata;
773
792
  }
774
- return __resumeOrder;
793
+ return __requestCancellation;
775
794
  }
776
795
 
777
796
  // src/pricing-plans-v2-order-orders.types.ts
@@ -848,14 +867,6 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
848
867
  SortOrder2["DESC"] = "DESC";
849
868
  return SortOrder2;
850
869
  })(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
870
  var ReasonNotSuspendable = /* @__PURE__ */ ((ReasonNotSuspendable2) => {
860
871
  ReasonNotSuspendable2["UNDEFINED"] = "UNDEFINED";
861
872
  ReasonNotSuspendable2["PENDING"] = "PENDING";
@@ -867,11 +878,19 @@ var ReasonNotSuspendable = /* @__PURE__ */ ((ReasonNotSuspendable2) => {
867
878
  ReasonNotSuspendable2["OLD_STRIPE"] = "OLD_STRIPE";
868
879
  return ReasonNotSuspendable2;
869
880
  })(ReasonNotSuspendable || {});
881
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
882
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
883
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
884
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
885
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
886
+ WebhookIdentityType2["APP"] = "APP";
887
+ return WebhookIdentityType2;
888
+ })(WebhookIdentityType || {});
870
889
 
871
890
  // src/pricing-plans-v2-order-orders.meta.ts
872
- function memberGetOrder2() {
891
+ function managementGetOrder2() {
873
892
  const payload = { id: ":id" };
874
- const getRequestOptions = memberGetOrder(payload);
893
+ const getRequestOptions = managementGetOrder(payload);
875
894
  const getUrl = (context) => {
876
895
  const { url } = getRequestOptions(context);
877
896
  return url;
@@ -879,7 +898,7 @@ function memberGetOrder2() {
879
898
  return {
880
899
  getUrl,
881
900
  httpMethod: "GET",
882
- path: "/v2/member/orders/{id}",
901
+ path: "/v2/orders/{id}",
883
902
  pathParams: { id: "id" },
884
903
  __requestType: null,
885
904
  __originalRequestType: null,
@@ -887,9 +906,9 @@ function memberGetOrder2() {
887
906
  __originalResponseType: null
888
907
  };
889
908
  }
890
- function memberListOrders2() {
909
+ function managementListOrders2() {
891
910
  const payload = {};
892
- const getRequestOptions = memberListOrders(payload);
911
+ const getRequestOptions = managementListOrders(payload);
893
912
  const getUrl = (context) => {
894
913
  const { url } = getRequestOptions(context);
895
914
  return url;
@@ -897,7 +916,7 @@ function memberListOrders2() {
897
916
  return {
898
917
  getUrl,
899
918
  httpMethod: "GET",
900
- path: "/v2/member/orders",
919
+ path: "/v2/orders",
901
920
  pathParams: {},
902
921
  __requestType: null,
903
922
  __originalRequestType: null,
@@ -905,17 +924,17 @@ function memberListOrders2() {
905
924
  __originalResponseType: null
906
925
  };
907
926
  }
908
- function requestCancellation2() {
927
+ function postponeEndDate2() {
909
928
  const payload = { id: ":id" };
910
- const getRequestOptions = requestCancellation(payload);
929
+ const getRequestOptions = postponeEndDate(payload);
911
930
  const getUrl = (context) => {
912
931
  const { url } = getRequestOptions(context);
913
932
  return url;
914
933
  };
915
934
  return {
916
935
  getUrl,
917
- httpMethod: "POST",
918
- path: "/v2/member/orders/{id}/cancel",
936
+ httpMethod: "PATCH",
937
+ path: "/v2/orders/{id}",
919
938
  pathParams: { id: "id" },
920
939
  __requestType: null,
921
940
  __originalRequestType: null,
@@ -923,9 +942,9 @@ function requestCancellation2() {
923
942
  __originalResponseType: null
924
943
  };
925
944
  }
926
- function createOnlineOrder2() {
927
- const payload = {};
928
- const getRequestOptions = createOnlineOrder(payload);
945
+ function cancelOrder2() {
946
+ const payload = { id: ":id" };
947
+ const getRequestOptions = cancelOrder(payload);
929
948
  const getUrl = (context) => {
930
949
  const { url } = getRequestOptions(context);
931
950
  return url;
@@ -933,17 +952,17 @@ function createOnlineOrder2() {
933
952
  return {
934
953
  getUrl,
935
954
  httpMethod: "POST",
936
- path: "/v2/checkout/orders/online",
937
- pathParams: {},
955
+ path: "/v2/orders/{id}/cancel",
956
+ pathParams: { id: "id" },
938
957
  __requestType: null,
939
958
  __originalRequestType: null,
940
959
  __responseType: null,
941
960
  __originalResponseType: null
942
961
  };
943
962
  }
944
- function createOfflineOrder2() {
945
- const payload = {};
946
- const getRequestOptions = createOfflineOrder(payload);
963
+ function markAsPaid2() {
964
+ const payload = { id: ":id" };
965
+ const getRequestOptions = markAsPaid(payload);
947
966
  const getUrl = (context) => {
948
967
  const { url } = getRequestOptions(context);
949
968
  return url;
@@ -951,17 +970,17 @@ function createOfflineOrder2() {
951
970
  return {
952
971
  getUrl,
953
972
  httpMethod: "POST",
954
- path: "/v2/checkout/orders/offline",
955
- pathParams: {},
973
+ path: "/v2/orders/{id}/mark-as-paid",
974
+ pathParams: { id: "id" },
956
975
  __requestType: null,
957
976
  __originalRequestType: null,
958
977
  __responseType: null,
959
978
  __originalResponseType: null
960
979
  };
961
980
  }
962
- function getOnlineOrderPreview2() {
963
- const payload = {};
964
- const getRequestOptions = getOnlineOrderPreview(payload);
981
+ function pauseOrder2() {
982
+ const payload = { id: ":id" };
983
+ const getRequestOptions = pauseOrder(payload);
965
984
  const getUrl = (context) => {
966
985
  const { url } = getRequestOptions(context);
967
986
  return url;
@@ -969,17 +988,17 @@ function getOnlineOrderPreview2() {
969
988
  return {
970
989
  getUrl,
971
990
  httpMethod: "POST",
972
- path: "/v2/checkout/orders/preview-online",
973
- pathParams: {},
991
+ path: "/v2/orders/{id}/pause",
992
+ pathParams: { id: "id" },
974
993
  __requestType: null,
975
994
  __originalRequestType: null,
976
995
  __responseType: null,
977
996
  __originalResponseType: null
978
997
  };
979
998
  }
980
- function getOfflineOrderPreview2() {
981
- const payload = {};
982
- const getRequestOptions = getOfflineOrderPreview(payload);
999
+ function resumeOrder2() {
1000
+ const payload = { id: ":id" };
1001
+ const getRequestOptions = resumeOrder(payload);
983
1002
  const getUrl = (context) => {
984
1003
  const { url } = getRequestOptions(context);
985
1004
  return url;
@@ -987,17 +1006,17 @@ function getOfflineOrderPreview2() {
987
1006
  return {
988
1007
  getUrl,
989
1008
  httpMethod: "POST",
990
- path: "/v2/checkout/orders/preview-offline",
991
- pathParams: {},
1009
+ path: "/v2/orders/{id}/resume",
1010
+ pathParams: { id: "id" },
992
1011
  __requestType: null,
993
1012
  __originalRequestType: null,
994
1013
  __responseType: null,
995
1014
  __originalResponseType: null
996
1015
  };
997
1016
  }
998
- function getPricePreview2() {
1017
+ function createOnlineOrder2() {
999
1018
  const payload = {};
1000
- const getRequestOptions = getPricePreview(payload);
1019
+ const getRequestOptions = createOnlineOrder(payload);
1001
1020
  const getUrl = (context) => {
1002
1021
  const { url } = getRequestOptions(context);
1003
1022
  return url;
@@ -1005,7 +1024,7 @@ function getPricePreview2() {
1005
1024
  return {
1006
1025
  getUrl,
1007
1026
  httpMethod: "POST",
1008
- path: "/v2/checkout/orders/price-preview",
1027
+ path: "/v2/checkout/orders/online",
1009
1028
  pathParams: {},
1010
1029
  __requestType: null,
1011
1030
  __originalRequestType: null,
@@ -1013,35 +1032,35 @@ function getPricePreview2() {
1013
1032
  __originalResponseType: null
1014
1033
  };
1015
1034
  }
1016
- function managementGetOrder2() {
1017
- const payload = { id: ":id" };
1018
- const getRequestOptions = managementGetOrder(payload);
1035
+ function createOfflineOrder2() {
1036
+ const payload = {};
1037
+ const getRequestOptions = createOfflineOrder(payload);
1019
1038
  const getUrl = (context) => {
1020
1039
  const { url } = getRequestOptions(context);
1021
1040
  return url;
1022
1041
  };
1023
1042
  return {
1024
1043
  getUrl,
1025
- httpMethod: "GET",
1026
- path: "/v2/orders/{id}",
1027
- pathParams: { id: "id" },
1044
+ httpMethod: "POST",
1045
+ path: "/v2/checkout/orders/offline",
1046
+ pathParams: {},
1028
1047
  __requestType: null,
1029
1048
  __originalRequestType: null,
1030
1049
  __responseType: null,
1031
1050
  __originalResponseType: null
1032
1051
  };
1033
1052
  }
1034
- function managementListOrders2() {
1053
+ function getOnlineOrderPreview2() {
1035
1054
  const payload = {};
1036
- const getRequestOptions = managementListOrders(payload);
1055
+ const getRequestOptions = getOnlineOrderPreview(payload);
1037
1056
  const getUrl = (context) => {
1038
1057
  const { url } = getRequestOptions(context);
1039
1058
  return url;
1040
1059
  };
1041
1060
  return {
1042
1061
  getUrl,
1043
- httpMethod: "GET",
1044
- path: "/v2/orders",
1062
+ httpMethod: "POST",
1063
+ path: "/v2/checkout/orders/preview-online",
1045
1064
  pathParams: {},
1046
1065
  __requestType: null,
1047
1066
  __originalRequestType: null,
@@ -1049,27 +1068,27 @@ function managementListOrders2() {
1049
1068
  __originalResponseType: null
1050
1069
  };
1051
1070
  }
1052
- function postponeEndDate2() {
1053
- const payload = { id: ":id" };
1054
- const getRequestOptions = postponeEndDate(payload);
1071
+ function getOfflineOrderPreview2() {
1072
+ const payload = {};
1073
+ const getRequestOptions = getOfflineOrderPreview(payload);
1055
1074
  const getUrl = (context) => {
1056
1075
  const { url } = getRequestOptions(context);
1057
1076
  return url;
1058
1077
  };
1059
1078
  return {
1060
1079
  getUrl,
1061
- httpMethod: "PATCH",
1062
- path: "/v2/orders/{id}",
1063
- pathParams: { id: "id" },
1080
+ httpMethod: "POST",
1081
+ path: "/v2/checkout/orders/preview-offline",
1082
+ pathParams: {},
1064
1083
  __requestType: null,
1065
1084
  __originalRequestType: null,
1066
1085
  __responseType: null,
1067
1086
  __originalResponseType: null
1068
1087
  };
1069
1088
  }
1070
- function cancelOrder2() {
1071
- const payload = { id: ":id" };
1072
- const getRequestOptions = cancelOrder(payload);
1089
+ function getPricePreview2() {
1090
+ const payload = {};
1091
+ const getRequestOptions = getPricePreview(payload);
1073
1092
  const getUrl = (context) => {
1074
1093
  const { url } = getRequestOptions(context);
1075
1094
  return url;
@@ -1077,25 +1096,25 @@ function cancelOrder2() {
1077
1096
  return {
1078
1097
  getUrl,
1079
1098
  httpMethod: "POST",
1080
- path: "/v2/orders/{id}/cancel",
1081
- pathParams: { id: "id" },
1099
+ path: "/v2/checkout/orders/price-preview",
1100
+ pathParams: {},
1082
1101
  __requestType: null,
1083
1102
  __originalRequestType: null,
1084
1103
  __responseType: null,
1085
1104
  __originalResponseType: null
1086
1105
  };
1087
1106
  }
1088
- function markAsPaid2() {
1107
+ function memberGetOrder2() {
1089
1108
  const payload = { id: ":id" };
1090
- const getRequestOptions = markAsPaid(payload);
1109
+ const getRequestOptions = memberGetOrder(payload);
1091
1110
  const getUrl = (context) => {
1092
1111
  const { url } = getRequestOptions(context);
1093
1112
  return url;
1094
1113
  };
1095
1114
  return {
1096
1115
  getUrl,
1097
- httpMethod: "POST",
1098
- path: "/v2/orders/{id}/mark-as-paid",
1116
+ httpMethod: "GET",
1117
+ path: "/v2/member/orders/{id}",
1099
1118
  pathParams: { id: "id" },
1100
1119
  __requestType: null,
1101
1120
  __originalRequestType: null,
@@ -1103,27 +1122,27 @@ function markAsPaid2() {
1103
1122
  __originalResponseType: null
1104
1123
  };
1105
1124
  }
1106
- function pauseOrder2() {
1107
- const payload = { id: ":id" };
1108
- const getRequestOptions = pauseOrder(payload);
1125
+ function memberListOrders2() {
1126
+ const payload = {};
1127
+ const getRequestOptions = memberListOrders(payload);
1109
1128
  const getUrl = (context) => {
1110
1129
  const { url } = getRequestOptions(context);
1111
1130
  return url;
1112
1131
  };
1113
1132
  return {
1114
1133
  getUrl,
1115
- httpMethod: "POST",
1116
- path: "/v2/orders/{id}/pause",
1117
- pathParams: { id: "id" },
1134
+ httpMethod: "GET",
1135
+ path: "/v2/member/orders",
1136
+ pathParams: {},
1118
1137
  __requestType: null,
1119
1138
  __originalRequestType: null,
1120
1139
  __responseType: null,
1121
1140
  __originalResponseType: null
1122
1141
  };
1123
1142
  }
1124
- function resumeOrder2() {
1143
+ function requestCancellation2() {
1125
1144
  const payload = { id: ":id" };
1126
- const getRequestOptions = resumeOrder(payload);
1145
+ const getRequestOptions = requestCancellation(payload);
1127
1146
  const getUrl = (context) => {
1128
1147
  const { url } = getRequestOptions(context);
1129
1148
  return url;
@@ -1131,7 +1150,7 @@ function resumeOrder2() {
1131
1150
  return {
1132
1151
  getUrl,
1133
1152
  httpMethod: "POST",
1134
- path: "/v2/orders/{id}/resume",
1153
+ path: "/v2/member/orders/{id}/cancel",
1135
1154
  pathParams: { id: "id" },
1136
1155
  __requestType: null,
1137
1156
  __originalRequestType: null,