@wix/pricing-plans 1.0.73 → 1.0.75

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.
@@ -44,7 +44,7 @@ interface Order {
44
44
  * @readonly
45
45
  * @deprecated __Deprecated.__ Use `pricing` instead. This property will be removed on September 30, 2022.
46
46
  * @replacedBy pricing
47
- * @removalDate 2022-10-01
47
+ * @targetRemovalDate 2022-10-01
48
48
  */
49
49
  priceDetails?: PriceDetails;
50
50
  /**
@@ -960,7 +960,7 @@ interface GetPricePreviewResponse {
960
960
  * @internal
961
961
  * @deprecated __Deprecated.__ Use `prices` instead. This property will be removed on September 30, 2022.
962
962
  * @replacedBy prices
963
- * @removalDate 2022-10-01
963
+ * @targetRemovalDate 2022-10-01
964
964
  */
965
965
  price?: PriceDetails;
966
966
  /** Pricing details. */
@@ -1229,573 +1229,119 @@ interface BulkResumeOrderResponse {
1229
1229
  results?: BulkOrderResult[];
1230
1230
  bulkActionMetadata?: BulkActionMetadata$1;
1231
1231
  }
1232
+ interface BuyerNonNullableFields {
1233
+ memberId: string;
1234
+ contactId: string;
1235
+ }
1236
+ interface DurationNonNullableFields$1 {
1237
+ unit: PeriodUnit$1;
1238
+ }
1239
+ interface RecurrenceNonNullableFields$1 {
1240
+ cycleDuration?: DurationNonNullableFields$1;
1241
+ }
1242
+ interface TaxNonNullableFields {
1243
+ name: string;
1244
+ includedInPrice: boolean;
1245
+ rate: string;
1246
+ amount: string;
1247
+ }
1248
+ interface CouponNonNullableFields {
1249
+ code: string;
1250
+ amount: string;
1251
+ _id: string;
1252
+ }
1253
+ interface PriceDetailsNonNullableFields {
1254
+ subscription?: RecurrenceNonNullableFields$1;
1255
+ singlePaymentForDuration?: DurationNonNullableFields$1;
1256
+ subtotal: string;
1257
+ discount: string;
1258
+ tax?: TaxNonNullableFields;
1259
+ total: string;
1260
+ planPrice: string;
1261
+ currency: string;
1262
+ coupon?: CouponNonNullableFields;
1263
+ }
1264
+ interface PriceDurationNonNullableFields {
1265
+ cycleFrom: number;
1266
+ }
1267
+ interface FeeNonNullableFields$1 {
1268
+ name: string;
1269
+ amount: string;
1270
+ }
1271
+ interface PriceNonNullableFields {
1272
+ subtotal: string;
1273
+ coupon?: CouponNonNullableFields;
1274
+ discount: string;
1275
+ tax?: TaxNonNullableFields;
1276
+ total: string;
1277
+ currency: string;
1278
+ fees: FeeNonNullableFields$1[];
1279
+ proration: string;
1280
+ }
1281
+ interface SpannedPriceNonNullableFields {
1282
+ duration?: PriceDurationNonNullableFields;
1283
+ price?: PriceNonNullableFields;
1284
+ }
1285
+ interface PricingDetailsNonNullableFields {
1286
+ subscription?: RecurrenceNonNullableFields$1;
1287
+ singlePaymentForDuration?: DurationNonNullableFields$1;
1288
+ prices: SpannedPriceNonNullableFields[];
1289
+ }
1290
+ interface CancellationNonNullableFields {
1291
+ cause: CancellationCause;
1292
+ effectiveAt: CancellationEffectiveAt;
1293
+ }
1294
+ interface PausePeriodNonNullableFields {
1295
+ status: Status;
1296
+ }
1297
+ interface CurrentCycleNonNullableFields {
1298
+ index: number;
1299
+ }
1300
+ interface OrderCycleNonNullableFields {
1301
+ index: number;
1302
+ }
1303
+ interface OrderNonNullableFields {
1304
+ _id: string;
1305
+ planId: string;
1306
+ subscriptionId: string;
1307
+ buyer?: BuyerNonNullableFields;
1308
+ priceDetails?: PriceDetailsNonNullableFields;
1309
+ pricing?: PricingDetailsNonNullableFields;
1310
+ type: OrderType;
1311
+ orderMethod: OrderMethod;
1312
+ status: OrderStatus;
1313
+ cancellation?: CancellationNonNullableFields;
1314
+ lastPaymentStatus: PaymentStatus;
1315
+ pausePeriods: PausePeriodNonNullableFields[];
1316
+ currentCycle?: CurrentCycleNonNullableFields;
1317
+ cycles: OrderCycleNonNullableFields[];
1318
+ planName: string;
1319
+ planDescription: string;
1320
+ planPrice: string;
1321
+ statusNew: OrderStatus;
1322
+ }
1232
1323
  interface MemberGetOrderResponseNonNullableFields {
1233
- order?: {
1234
- _id: string;
1235
- planId: string;
1236
- subscriptionId: string;
1237
- buyer?: {
1238
- memberId: string;
1239
- contactId: string;
1240
- };
1241
- priceDetails?: {
1242
- subscription?: {
1243
- cycleDuration?: {
1244
- unit: PeriodUnit$1;
1245
- };
1246
- };
1247
- singlePaymentForDuration?: {
1248
- unit: PeriodUnit$1;
1249
- };
1250
- subtotal: string;
1251
- discount: string;
1252
- tax?: {
1253
- name: string;
1254
- includedInPrice: boolean;
1255
- rate: string;
1256
- amount: string;
1257
- };
1258
- total: string;
1259
- planPrice: string;
1260
- currency: string;
1261
- coupon?: {
1262
- code: string;
1263
- amount: string;
1264
- _id: string;
1265
- };
1266
- };
1267
- pricing?: {
1268
- subscription?: {
1269
- cycleDuration?: {
1270
- unit: PeriodUnit$1;
1271
- };
1272
- };
1273
- singlePaymentForDuration?: {
1274
- unit: PeriodUnit$1;
1275
- };
1276
- prices: {
1277
- duration?: {
1278
- cycleFrom: number;
1279
- };
1280
- price?: {
1281
- subtotal: string;
1282
- coupon?: {
1283
- code: string;
1284
- amount: string;
1285
- _id: string;
1286
- };
1287
- discount: string;
1288
- tax?: {
1289
- name: string;
1290
- includedInPrice: boolean;
1291
- rate: string;
1292
- amount: string;
1293
- };
1294
- total: string;
1295
- currency: string;
1296
- proration: string;
1297
- };
1298
- }[];
1299
- };
1300
- type: OrderType;
1301
- status: OrderStatus;
1302
- cancellation?: {
1303
- cause: CancellationCause;
1304
- effectiveAt: CancellationEffectiveAt;
1305
- };
1306
- lastPaymentStatus: PaymentStatus;
1307
- pausePeriods: {
1308
- status: Status;
1309
- }[];
1310
- currentCycle?: {
1311
- index: number;
1312
- };
1313
- planName: string;
1314
- planDescription: string;
1315
- planPrice: string;
1316
- };
1324
+ order?: OrderNonNullableFields;
1317
1325
  }
1318
1326
  interface MemberListOrdersResponseNonNullableFields {
1319
- orders: {
1320
- _id: string;
1321
- planId: string;
1322
- subscriptionId: string;
1323
- buyer?: {
1324
- memberId: string;
1325
- contactId: string;
1326
- };
1327
- priceDetails?: {
1328
- subscription?: {
1329
- cycleDuration?: {
1330
- unit: PeriodUnit$1;
1331
- };
1332
- };
1333
- singlePaymentForDuration?: {
1334
- unit: PeriodUnit$1;
1335
- };
1336
- subtotal: string;
1337
- discount: string;
1338
- tax?: {
1339
- name: string;
1340
- includedInPrice: boolean;
1341
- rate: string;
1342
- amount: string;
1343
- };
1344
- total: string;
1345
- planPrice: string;
1346
- currency: string;
1347
- coupon?: {
1348
- code: string;
1349
- amount: string;
1350
- _id: string;
1351
- };
1352
- };
1353
- pricing?: {
1354
- subscription?: {
1355
- cycleDuration?: {
1356
- unit: PeriodUnit$1;
1357
- };
1358
- };
1359
- singlePaymentForDuration?: {
1360
- unit: PeriodUnit$1;
1361
- };
1362
- prices: {
1363
- duration?: {
1364
- cycleFrom: number;
1365
- };
1366
- price?: {
1367
- subtotal: string;
1368
- coupon?: {
1369
- code: string;
1370
- amount: string;
1371
- _id: string;
1372
- };
1373
- discount: string;
1374
- tax?: {
1375
- name: string;
1376
- includedInPrice: boolean;
1377
- rate: string;
1378
- amount: string;
1379
- };
1380
- total: string;
1381
- currency: string;
1382
- proration: string;
1383
- };
1384
- }[];
1385
- };
1386
- type: OrderType;
1387
- status: OrderStatus;
1388
- cancellation?: {
1389
- cause: CancellationCause;
1390
- effectiveAt: CancellationEffectiveAt;
1391
- };
1392
- lastPaymentStatus: PaymentStatus;
1393
- pausePeriods: {
1394
- status: Status;
1395
- }[];
1396
- currentCycle?: {
1397
- index: number;
1398
- };
1399
- planName: string;
1400
- planDescription: string;
1401
- planPrice: string;
1402
- }[];
1327
+ orders: OrderNonNullableFields[];
1403
1328
  }
1404
1329
  interface CreateOfflineOrderResponseNonNullableFields {
1405
- order?: {
1406
- _id: string;
1407
- planId: string;
1408
- subscriptionId: string;
1409
- buyer?: {
1410
- memberId: string;
1411
- contactId: string;
1412
- };
1413
- priceDetails?: {
1414
- subscription?: {
1415
- cycleDuration?: {
1416
- unit: PeriodUnit$1;
1417
- };
1418
- };
1419
- singlePaymentForDuration?: {
1420
- unit: PeriodUnit$1;
1421
- };
1422
- subtotal: string;
1423
- discount: string;
1424
- tax?: {
1425
- name: string;
1426
- includedInPrice: boolean;
1427
- rate: string;
1428
- amount: string;
1429
- };
1430
- total: string;
1431
- planPrice: string;
1432
- currency: string;
1433
- coupon?: {
1434
- code: string;
1435
- amount: string;
1436
- _id: string;
1437
- };
1438
- };
1439
- pricing?: {
1440
- subscription?: {
1441
- cycleDuration?: {
1442
- unit: PeriodUnit$1;
1443
- };
1444
- };
1445
- singlePaymentForDuration?: {
1446
- unit: PeriodUnit$1;
1447
- };
1448
- prices: {
1449
- duration?: {
1450
- cycleFrom: number;
1451
- };
1452
- price?: {
1453
- subtotal: string;
1454
- coupon?: {
1455
- code: string;
1456
- amount: string;
1457
- _id: string;
1458
- };
1459
- discount: string;
1460
- tax?: {
1461
- name: string;
1462
- includedInPrice: boolean;
1463
- rate: string;
1464
- amount: string;
1465
- };
1466
- total: string;
1467
- currency: string;
1468
- proration: string;
1469
- };
1470
- }[];
1471
- };
1472
- type: OrderType;
1473
- status: OrderStatus;
1474
- cancellation?: {
1475
- cause: CancellationCause;
1476
- effectiveAt: CancellationEffectiveAt;
1477
- };
1478
- lastPaymentStatus: PaymentStatus;
1479
- pausePeriods: {
1480
- status: Status;
1481
- }[];
1482
- currentCycle?: {
1483
- index: number;
1484
- };
1485
- planName: string;
1486
- planDescription: string;
1487
- planPrice: string;
1488
- };
1330
+ order?: OrderNonNullableFields;
1489
1331
  }
1490
1332
  interface GetOfflineOrderPreviewResponseNonNullableFields {
1491
- order?: {
1492
- _id: string;
1493
- planId: string;
1494
- subscriptionId: string;
1495
- buyer?: {
1496
- memberId: string;
1497
- contactId: string;
1498
- };
1499
- priceDetails?: {
1500
- subscription?: {
1501
- cycleDuration?: {
1502
- unit: PeriodUnit$1;
1503
- };
1504
- };
1505
- singlePaymentForDuration?: {
1506
- unit: PeriodUnit$1;
1507
- };
1508
- subtotal: string;
1509
- discount: string;
1510
- tax?: {
1511
- name: string;
1512
- includedInPrice: boolean;
1513
- rate: string;
1514
- amount: string;
1515
- };
1516
- total: string;
1517
- planPrice: string;
1518
- currency: string;
1519
- coupon?: {
1520
- code: string;
1521
- amount: string;
1522
- _id: string;
1523
- };
1524
- };
1525
- pricing?: {
1526
- subscription?: {
1527
- cycleDuration?: {
1528
- unit: PeriodUnit$1;
1529
- };
1530
- };
1531
- singlePaymentForDuration?: {
1532
- unit: PeriodUnit$1;
1533
- };
1534
- prices: {
1535
- duration?: {
1536
- cycleFrom: number;
1537
- };
1538
- price?: {
1539
- subtotal: string;
1540
- coupon?: {
1541
- code: string;
1542
- amount: string;
1543
- _id: string;
1544
- };
1545
- discount: string;
1546
- tax?: {
1547
- name: string;
1548
- includedInPrice: boolean;
1549
- rate: string;
1550
- amount: string;
1551
- };
1552
- total: string;
1553
- currency: string;
1554
- proration: string;
1555
- };
1556
- }[];
1557
- };
1558
- type: OrderType;
1559
- status: OrderStatus;
1560
- cancellation?: {
1561
- cause: CancellationCause;
1562
- effectiveAt: CancellationEffectiveAt;
1563
- };
1564
- lastPaymentStatus: PaymentStatus;
1565
- pausePeriods: {
1566
- status: Status;
1567
- }[];
1568
- currentCycle?: {
1569
- index: number;
1570
- };
1571
- planName: string;
1572
- planDescription: string;
1573
- planPrice: string;
1574
- };
1333
+ order?: OrderNonNullableFields;
1575
1334
  purchaseLimitExceeded: boolean;
1576
1335
  }
1577
1336
  interface GetPricePreviewResponseNonNullableFields {
1578
- price?: {
1579
- subscription?: {
1580
- cycleDuration?: {
1581
- unit: PeriodUnit$1;
1582
- };
1583
- };
1584
- singlePaymentForDuration?: {
1585
- unit: PeriodUnit$1;
1586
- };
1587
- subtotal: string;
1588
- discount: string;
1589
- tax?: {
1590
- name: string;
1591
- includedInPrice: boolean;
1592
- rate: string;
1593
- amount: string;
1594
- };
1595
- total: string;
1596
- planPrice: string;
1597
- currency: string;
1598
- coupon?: {
1599
- code: string;
1600
- amount: string;
1601
- _id: string;
1602
- };
1603
- };
1604
- prices: {
1605
- duration?: {
1606
- cycleFrom: number;
1607
- };
1608
- price?: {
1609
- subtotal: string;
1610
- coupon?: {
1611
- code: string;
1612
- amount: string;
1613
- _id: string;
1614
- };
1615
- discount: string;
1616
- tax?: {
1617
- name: string;
1618
- includedInPrice: boolean;
1619
- rate: string;
1620
- amount: string;
1621
- };
1622
- total: string;
1623
- currency: string;
1624
- proration: string;
1625
- };
1626
- }[];
1337
+ price?: PriceDetailsNonNullableFields;
1338
+ prices: SpannedPriceNonNullableFields[];
1627
1339
  }
1628
1340
  interface GetOrderResponseNonNullableFields {
1629
- order?: {
1630
- _id: string;
1631
- planId: string;
1632
- subscriptionId: string;
1633
- buyer?: {
1634
- memberId: string;
1635
- contactId: string;
1636
- };
1637
- priceDetails?: {
1638
- subscription?: {
1639
- cycleDuration?: {
1640
- unit: PeriodUnit$1;
1641
- };
1642
- };
1643
- singlePaymentForDuration?: {
1644
- unit: PeriodUnit$1;
1645
- };
1646
- subtotal: string;
1647
- discount: string;
1648
- tax?: {
1649
- name: string;
1650
- includedInPrice: boolean;
1651
- rate: string;
1652
- amount: string;
1653
- };
1654
- total: string;
1655
- planPrice: string;
1656
- currency: string;
1657
- coupon?: {
1658
- code: string;
1659
- amount: string;
1660
- _id: string;
1661
- };
1662
- };
1663
- pricing?: {
1664
- subscription?: {
1665
- cycleDuration?: {
1666
- unit: PeriodUnit$1;
1667
- };
1668
- };
1669
- singlePaymentForDuration?: {
1670
- unit: PeriodUnit$1;
1671
- };
1672
- prices: {
1673
- duration?: {
1674
- cycleFrom: number;
1675
- };
1676
- price?: {
1677
- subtotal: string;
1678
- coupon?: {
1679
- code: string;
1680
- amount: string;
1681
- _id: string;
1682
- };
1683
- discount: string;
1684
- tax?: {
1685
- name: string;
1686
- includedInPrice: boolean;
1687
- rate: string;
1688
- amount: string;
1689
- };
1690
- total: string;
1691
- currency: string;
1692
- proration: string;
1693
- };
1694
- }[];
1695
- };
1696
- type: OrderType;
1697
- status: OrderStatus;
1698
- cancellation?: {
1699
- cause: CancellationCause;
1700
- effectiveAt: CancellationEffectiveAt;
1701
- };
1702
- lastPaymentStatus: PaymentStatus;
1703
- pausePeriods: {
1704
- status: Status;
1705
- }[];
1706
- currentCycle?: {
1707
- index: number;
1708
- };
1709
- planName: string;
1710
- planDescription: string;
1711
- planPrice: string;
1712
- };
1341
+ order?: OrderNonNullableFields;
1713
1342
  }
1714
1343
  interface ListOrdersResponseNonNullableFields {
1715
- orders: {
1716
- _id: string;
1717
- planId: string;
1718
- subscriptionId: string;
1719
- buyer?: {
1720
- memberId: string;
1721
- contactId: string;
1722
- };
1723
- priceDetails?: {
1724
- subscription?: {
1725
- cycleDuration?: {
1726
- unit: PeriodUnit$1;
1727
- };
1728
- };
1729
- singlePaymentForDuration?: {
1730
- unit: PeriodUnit$1;
1731
- };
1732
- subtotal: string;
1733
- discount: string;
1734
- tax?: {
1735
- name: string;
1736
- includedInPrice: boolean;
1737
- rate: string;
1738
- amount: string;
1739
- };
1740
- total: string;
1741
- planPrice: string;
1742
- currency: string;
1743
- coupon?: {
1744
- code: string;
1745
- amount: string;
1746
- _id: string;
1747
- };
1748
- };
1749
- pricing?: {
1750
- subscription?: {
1751
- cycleDuration?: {
1752
- unit: PeriodUnit$1;
1753
- };
1754
- };
1755
- singlePaymentForDuration?: {
1756
- unit: PeriodUnit$1;
1757
- };
1758
- prices: {
1759
- duration?: {
1760
- cycleFrom: number;
1761
- };
1762
- price?: {
1763
- subtotal: string;
1764
- coupon?: {
1765
- code: string;
1766
- amount: string;
1767
- _id: string;
1768
- };
1769
- discount: string;
1770
- tax?: {
1771
- name: string;
1772
- includedInPrice: boolean;
1773
- rate: string;
1774
- amount: string;
1775
- };
1776
- total: string;
1777
- currency: string;
1778
- proration: string;
1779
- };
1780
- }[];
1781
- };
1782
- type: OrderType;
1783
- status: OrderStatus;
1784
- cancellation?: {
1785
- cause: CancellationCause;
1786
- effectiveAt: CancellationEffectiveAt;
1787
- };
1788
- lastPaymentStatus: PaymentStatus;
1789
- pausePeriods: {
1790
- status: Status;
1791
- }[];
1792
- currentCycle?: {
1793
- index: number;
1794
- };
1795
- planName: string;
1796
- planDescription: string;
1797
- planPrice: string;
1798
- }[];
1344
+ orders: OrderNonNullableFields[];
1799
1345
  }
1800
1346
  interface BaseEventMetadata$1 {
1801
1347
  /** App instance ID. */
@@ -2043,149 +1589,80 @@ interface ManagementListOrdersOptions {
2043
1589
  fieldSet?: Set;
2044
1590
  }
2045
1591
 
2046
- interface HttpClient$1 {
2047
- request<TResponse, TData = any>(req: RequestOptionsFactory$1<TResponse, TData>): Promise<HttpResponse$1<TResponse>>;
1592
+ type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
1593
+ interface HttpClient {
1594
+ request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
1595
+ fetchWithAuth: typeof fetch;
1596
+ wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
2048
1597
  }
2049
- type RequestOptionsFactory$1<TResponse = any, TData = any> = (context: any) => RequestOptions$1<TResponse, TData>;
2050
- type HttpResponse$1<T = any> = {
1598
+ type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
1599
+ type HttpResponse<T = any> = {
2051
1600
  data: T;
2052
1601
  status: number;
2053
1602
  statusText: string;
2054
1603
  headers: any;
2055
1604
  request?: any;
2056
1605
  };
2057
- type RequestOptions$1<_TResponse = any, Data = any> = {
1606
+ type RequestOptions<_TResponse = any, Data = any> = {
2058
1607
  method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
2059
1608
  url: string;
2060
1609
  data?: Data;
2061
1610
  params?: URLSearchParams;
2062
- } & APIMetadata$1;
2063
- type APIMetadata$1 = {
1611
+ } & APIMetadata;
1612
+ type APIMetadata = {
2064
1613
  methodFqn?: string;
2065
1614
  entityFqdn?: string;
2066
1615
  packageName?: string;
2067
1616
  };
2068
- type EventDefinition$1<Payload = unknown, Type extends string = string> = {
1617
+ type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
1618
+ type EventDefinition<Payload = unknown, Type extends string = string> = {
2069
1619
  __type: 'event-definition';
2070
1620
  type: Type;
2071
1621
  isDomainEvent?: boolean;
2072
- transformations?: unknown;
1622
+ transformations?: (envelope: unknown) => Payload;
2073
1623
  __payload: Payload;
2074
1624
  };
2075
- declare function EventDefinition$1<Type extends string>(type: Type, isDomainEvent?: boolean, _transformations?: unknown): <Payload = unknown>() => EventDefinition$1<Payload, Type>;
1625
+ declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
1626
+ type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
1627
+ type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
2076
1628
 
2077
- declare const __metadata$1: {
2078
- PACKAGE_NAME: string;
2079
- };
2080
- declare function memberGetOrder(httpClient: HttpClient$1): (_id: string, options?: MemberGetOrderOptions) => Promise<Order & {
2081
- _id: string;
2082
- planId: string;
2083
- subscriptionId: string;
2084
- buyer?: {
2085
- memberId: string;
2086
- contactId: string;
2087
- } | undefined;
2088
- priceDetails?: {
2089
- subscription?: {
2090
- cycleDuration?: {
2091
- unit: PeriodUnit$1;
2092
- } | undefined;
2093
- } | undefined;
2094
- singlePaymentForDuration?: {
2095
- unit: PeriodUnit$1;
2096
- } | undefined;
2097
- subtotal: string;
2098
- discount: string;
2099
- tax?: {
2100
- name: string;
2101
- includedInPrice: boolean;
2102
- rate: string;
2103
- amount: string;
2104
- } | undefined;
2105
- total: string;
2106
- planPrice: string;
2107
- currency: string;
2108
- coupon?: {
2109
- code: string;
2110
- amount: string;
2111
- _id: string;
2112
- } | undefined;
2113
- } | undefined;
2114
- pricing?: {
2115
- subscription?: {
2116
- cycleDuration?: {
2117
- unit: PeriodUnit$1;
2118
- } | undefined;
2119
- } | undefined;
2120
- singlePaymentForDuration?: {
2121
- unit: PeriodUnit$1;
2122
- } | undefined;
2123
- prices: {
2124
- duration?: {
2125
- cycleFrom: number;
2126
- } | undefined;
2127
- price?: {
2128
- subtotal: string;
2129
- coupon?: {
2130
- code: string;
2131
- amount: string;
2132
- _id: string;
2133
- } | undefined;
2134
- discount: string;
2135
- tax?: {
2136
- name: string;
2137
- includedInPrice: boolean;
2138
- rate: string;
2139
- amount: string;
2140
- } | undefined;
2141
- total: string;
2142
- currency: string;
2143
- proration: string;
2144
- } | undefined;
2145
- }[];
2146
- } | undefined;
2147
- type: OrderType;
2148
- status: OrderStatus;
2149
- cancellation?: {
2150
- cause: CancellationCause;
2151
- effectiveAt: CancellationEffectiveAt;
2152
- } | undefined;
2153
- lastPaymentStatus: PaymentStatus;
2154
- pausePeriods: {
2155
- status: Status;
2156
- }[];
2157
- currentCycle?: {
2158
- index: number;
2159
- } | undefined;
2160
- planName: string;
2161
- planDescription: string;
2162
- planPrice: string;
2163
- }>;
2164
- declare function memberListOrders(httpClient: HttpClient$1): (options?: MemberListOrdersOptions) => Promise<MemberListOrdersResponse & MemberListOrdersResponseNonNullableFields>;
2165
- declare function requestCancellation(httpClient: HttpClient$1): (_id: string, effectiveAt: CancellationEffectiveAt) => Promise<void>;
2166
- declare function createOfflineOrder(httpClient: HttpClient$1): (planId: string, memberId: string, options?: CreateOfflineOrderOptions) => Promise<CreateOfflineOrderResponse & CreateOfflineOrderResponseNonNullableFields>;
2167
- declare function getOfflineOrderPreview(httpClient: HttpClient$1): (planId: string, memberId: string, options?: GetOfflineOrderPreviewOptions) => Promise<GetOfflineOrderPreviewResponse & GetOfflineOrderPreviewResponseNonNullableFields>;
2168
- declare function getPricePreview(httpClient: HttpClient$1): (planId: string, options?: GetPricePreviewOptions) => Promise<GetPricePreviewResponse & GetPricePreviewResponseNonNullableFields>;
2169
- declare function managementGetOrder(httpClient: HttpClient$1): (_id: string, options?: ManagementGetOrderOptions) => Promise<GetOrderResponse & GetOrderResponseNonNullableFields>;
2170
- declare function managementListOrders(httpClient: HttpClient$1): (options?: ManagementListOrdersOptions) => Promise<ListOrdersResponse & ListOrdersResponseNonNullableFields>;
2171
- declare function postponeEndDate(httpClient: HttpClient$1): (_id: string, endDate: Date) => Promise<void>;
2172
- declare function cancelOrder(httpClient: HttpClient$1): (_id: string, effectiveAt: CancellationEffectiveAt) => Promise<void>;
2173
- declare function markAsPaid(httpClient: HttpClient$1): (_id: string) => Promise<void>;
2174
- declare function pauseOrder(httpClient: HttpClient$1): (_id: string) => Promise<void>;
2175
- declare function resumeOrder(httpClient: HttpClient$1): (_id: string) => Promise<void>;
2176
- declare const onOrderCanceled: EventDefinition$1<OrderCanceledEnvelope, "wix.pricing_plans.v2.order_canceled">;
2177
- declare const onOrderCreated: EventDefinition$1<OrderCreatedEnvelope, "wix.pricing_plans.v2.order_created">;
2178
- declare const onOrderUpdated: EventDefinition$1<OrderUpdatedEnvelope, "wix.pricing_plans.v2.order_updated">;
2179
- declare const onOrderStartDateChanged: EventDefinition$1<OrderStartDateChangedEnvelope, "wix.pricing_plans.v2.order_start_date_changed">;
2180
- declare const onOrderPurchased: EventDefinition$1<OrderPurchasedEnvelope, "wix.pricing_plans.v2.order_purchased">;
2181
- declare const onOrderStarted: EventDefinition$1<OrderStartedEnvelope, "wix.pricing_plans.v2.order_started">;
2182
- declare const onOrderCycleStarted: EventDefinition$1<OrderCycleStartedEnvelope, "wix.pricing_plans.v2.order_cycle_started">;
2183
- declare const onOrderAutoRenewCanceled: EventDefinition$1<OrderAutoRenewCanceledEnvelope, "wix.pricing_plans.v2.order_auto_renew_canceled">;
2184
- declare const onOrderEnded: EventDefinition$1<OrderEndedEnvelope, "wix.pricing_plans.v2.order_ended">;
2185
- declare const onOrderEndDatePostponed: EventDefinition$1<OrderEndDatePostponedEnvelope, "wix.pricing_plans.v2.order_end_date_postponed">;
2186
- declare const onOrderMarkedAsPaid: EventDefinition$1<OrderMarkedAsPaidEnvelope, "wix.pricing_plans.v2.order_marked_as_paid">;
2187
- declare const onOrderPaused: EventDefinition$1<OrderPausedEnvelope, "wix.pricing_plans.v2.order_paused">;
2188
- declare const onOrderResumed: EventDefinition$1<OrderResumedEnvelope, "wix.pricing_plans.v2.order_resumed">;
1629
+ declare global {
1630
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
1631
+ interface SymbolConstructor {
1632
+ readonly observable: symbol;
1633
+ }
1634
+ }
1635
+
1636
+ declare function createRESTModule$1<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
1637
+
1638
+ declare function createEventModule$1<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
1639
+
1640
+ declare const memberGetOrder: ReturnType<typeof createRESTModule$1<typeof publicMemberGetOrder>>;
1641
+ declare const memberListOrders: ReturnType<typeof createRESTModule$1<typeof publicMemberListOrders>>;
1642
+ declare const requestCancellation: ReturnType<typeof createRESTModule$1<typeof publicRequestCancellation>>;
1643
+ declare const createOfflineOrder: ReturnType<typeof createRESTModule$1<typeof publicCreateOfflineOrder>>;
1644
+ declare const getOfflineOrderPreview: ReturnType<typeof createRESTModule$1<typeof publicGetOfflineOrderPreview>>;
1645
+ declare const getPricePreview: ReturnType<typeof createRESTModule$1<typeof publicGetPricePreview>>;
1646
+ declare const managementGetOrder: ReturnType<typeof createRESTModule$1<typeof publicManagementGetOrder>>;
1647
+ declare const managementListOrders: ReturnType<typeof createRESTModule$1<typeof publicManagementListOrders>>;
1648
+ declare const postponeEndDate: ReturnType<typeof createRESTModule$1<typeof publicPostponeEndDate>>;
1649
+ declare const cancelOrder: ReturnType<typeof createRESTModule$1<typeof publicCancelOrder>>;
1650
+ declare const markAsPaid: ReturnType<typeof createRESTModule$1<typeof publicMarkAsPaid>>;
1651
+ declare const pauseOrder: ReturnType<typeof createRESTModule$1<typeof publicPauseOrder>>;
1652
+ declare const resumeOrder: ReturnType<typeof createRESTModule$1<typeof publicResumeOrder>>;
1653
+ declare const onOrderCanceled: ReturnType<typeof createEventModule$1<typeof publicOnOrderCanceled>>;
1654
+ declare const onOrderCreated: ReturnType<typeof createEventModule$1<typeof publicOnOrderCreated>>;
1655
+ declare const onOrderUpdated: ReturnType<typeof createEventModule$1<typeof publicOnOrderUpdated>>;
1656
+ declare const onOrderStartDateChanged: ReturnType<typeof createEventModule$1<typeof publicOnOrderStartDateChanged>>;
1657
+ declare const onOrderPurchased: ReturnType<typeof createEventModule$1<typeof publicOnOrderPurchased>>;
1658
+ declare const onOrderStarted: ReturnType<typeof createEventModule$1<typeof publicOnOrderStarted>>;
1659
+ declare const onOrderCycleStarted: ReturnType<typeof createEventModule$1<typeof publicOnOrderCycleStarted>>;
1660
+ declare const onOrderAutoRenewCanceled: ReturnType<typeof createEventModule$1<typeof publicOnOrderAutoRenewCanceled>>;
1661
+ declare const onOrderEnded: ReturnType<typeof createEventModule$1<typeof publicOnOrderEnded>>;
1662
+ declare const onOrderEndDatePostponed: ReturnType<typeof createEventModule$1<typeof publicOnOrderEndDatePostponed>>;
1663
+ declare const onOrderMarkedAsPaid: ReturnType<typeof createEventModule$1<typeof publicOnOrderMarkedAsPaid>>;
1664
+ declare const onOrderPaused: ReturnType<typeof createEventModule$1<typeof publicOnOrderPaused>>;
1665
+ declare const onOrderResumed: ReturnType<typeof createEventModule$1<typeof publicOnOrderResumed>>;
2189
1666
 
2190
1667
  type index_d$1_ApplyCouponRequest = ApplyCouponRequest;
2191
1668
  type index_d$1_ApplyCouponResponse = ApplyCouponResponse;
@@ -2274,6 +1751,7 @@ type index_d$1_OrderMarkedAsPaid = OrderMarkedAsPaid;
2274
1751
  type index_d$1_OrderMarkedAsPaidEnvelope = OrderMarkedAsPaidEnvelope;
2275
1752
  type index_d$1_OrderMethod = OrderMethod;
2276
1753
  declare const index_d$1_OrderMethod: typeof OrderMethod;
1754
+ type index_d$1_OrderNonNullableFields = OrderNonNullableFields;
2277
1755
  type index_d$1_OrderPaused = OrderPaused;
2278
1756
  type index_d$1_OrderPausedEnvelope = OrderPausedEnvelope;
2279
1757
  type index_d$1_OrderPurchased = OrderPurchased;
@@ -2348,7 +1826,7 @@ declare const index_d$1_postponeEndDate: typeof postponeEndDate;
2348
1826
  declare const index_d$1_requestCancellation: typeof requestCancellation;
2349
1827
  declare const index_d$1_resumeOrder: typeof resumeOrder;
2350
1828
  declare namespace index_d$1 {
2351
- export { type ActionEvent$1 as ActionEvent, type ApplicationError$1 as ApplicationError, type index_d$1_ApplyCouponRequest as ApplyCouponRequest, type index_d$1_ApplyCouponResponse as ApplyCouponResponse, type BaseEventMetadata$1 as BaseEventMetadata, type BulkActionMetadata$1 as BulkActionMetadata, type index_d$1_BulkOrderResult as BulkOrderResult, type index_d$1_BulkPauseOrderRequest as BulkPauseOrderRequest, type index_d$1_BulkPauseOrderResponse as BulkPauseOrderResponse, type index_d$1_BulkResumeOrderRequest as BulkResumeOrderRequest, type index_d$1_BulkResumeOrderResponse as BulkResumeOrderResponse, type index_d$1_Buyer as Buyer, type index_d$1_CancelOrderRequest as CancelOrderRequest, type index_d$1_CancelOrderResponse as CancelOrderResponse, type index_d$1_Cancellation as Cancellation, index_d$1_CancellationCause as CancellationCause, index_d$1_CancellationEffectiveAt as CancellationEffectiveAt, type index_d$1_Captcha as Captcha, type index_d$1_ChangeStartDateRequest as ChangeStartDateRequest, type index_d$1_ChangeStartDateResponse as ChangeStartDateResponse, type index_d$1_Coupon as Coupon, type index_d$1_CouponsError as CouponsError, type index_d$1_CreateExternalOrderRequest as CreateExternalOrderRequest, type index_d$1_CreateExternalOrderResponse as CreateExternalOrderResponse, type index_d$1_CreateGuestOnlineOrderRequest as CreateGuestOnlineOrderRequest, type index_d$1_CreateGuestOnlineOrderResponse as CreateGuestOnlineOrderResponse, type index_d$1_CreateOfflineOrderOptions as CreateOfflineOrderOptions, type index_d$1_CreateOfflineOrderRequest as CreateOfflineOrderRequest, type index_d$1_CreateOfflineOrderResponse as CreateOfflineOrderResponse, type index_d$1_CreateOfflineOrderResponseNonNullableFields as CreateOfflineOrderResponseNonNullableFields, type index_d$1_CreateOnlineOrderRequest as CreateOnlineOrderRequest, type index_d$1_CreateOnlineOrderResponse as CreateOnlineOrderResponse, type index_d$1_CurrentCycle as CurrentCycle, type index_d$1_CursorPaging as CursorPaging, type Cursors$1 as Cursors, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type Duration$1 as Duration, type index_d$1_Empty as Empty, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type EventMetadata$1 as EventMetadata, type Fee$1 as Fee, type index_d$1_FormData as FormData, type index_d$1_GetAvailableOrderActionsRequest as GetAvailableOrderActionsRequest, type index_d$1_GetAvailableOrderActionsResponse as GetAvailableOrderActionsResponse, type index_d$1_GetGuestOnlineOrderPreviewRequest as GetGuestOnlineOrderPreviewRequest, type index_d$1_GetGuestOnlineOrderPreviewResponse as GetGuestOnlineOrderPreviewResponse, type index_d$1_GetOfflineOrderPreviewOptions as GetOfflineOrderPreviewOptions, type index_d$1_GetOfflineOrderPreviewRequest as GetOfflineOrderPreviewRequest, type index_d$1_GetOfflineOrderPreviewResponse as GetOfflineOrderPreviewResponse, type index_d$1_GetOfflineOrderPreviewResponseNonNullableFields as GetOfflineOrderPreviewResponseNonNullableFields, type index_d$1_GetOnlineOrderPreviewRequest as GetOnlineOrderPreviewRequest, type index_d$1_GetOnlineOrderPreviewResponse as GetOnlineOrderPreviewResponse, type index_d$1_GetOrderRequest as GetOrderRequest, type index_d$1_GetOrderResponse as GetOrderResponse, type index_d$1_GetOrderResponseNonNullableFields as GetOrderResponseNonNullableFields, type index_d$1_GetOrdersStatsRequest as GetOrdersStatsRequest, type index_d$1_GetOrdersStatsResponse as GetOrdersStatsResponse, type index_d$1_GetPricePreviewOptions as GetPricePreviewOptions, type index_d$1_GetPricePreviewRequest as GetPricePreviewRequest, type index_d$1_GetPricePreviewResponse as GetPricePreviewResponse, type index_d$1_GetPricePreviewResponseNonNullableFields as GetPricePreviewResponseNonNullableFields, type index_d$1_Guest as Guest, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type ItemMetadata$1 as ItemMetadata, type index_d$1_ListOrdersRequest as ListOrdersRequest, type index_d$1_ListOrdersResponse as ListOrdersResponse, type index_d$1_ListOrdersResponseNonNullableFields as ListOrdersResponseNonNullableFields, type index_d$1_ManagementGetOrderOptions as ManagementGetOrderOptions, type index_d$1_ManagementListOrdersOptions as ManagementListOrdersOptions, type index_d$1_MarkAsPaidRequest as MarkAsPaidRequest, type index_d$1_MarkAsPaidResponse as MarkAsPaidResponse, type index_d$1_MemberGetOrderOptions as MemberGetOrderOptions, type index_d$1_MemberGetOrderRequest as MemberGetOrderRequest, type index_d$1_MemberGetOrderResponse as MemberGetOrderResponse, type index_d$1_MemberGetOrderResponseNonNullableFields as MemberGetOrderResponseNonNullableFields, type index_d$1_MemberListOrdersOptions as MemberListOrdersOptions, type index_d$1_MemberListOrdersRequest as MemberListOrdersRequest, type index_d$1_MemberListOrdersResponse as MemberListOrdersResponse, type index_d$1_MemberListOrdersResponseNonNullableFields as MemberListOrdersResponseNonNullableFields, type MessageEnvelope$1 as MessageEnvelope, type index_d$1_OnBehalf as OnBehalf, type index_d$1_Order as Order, type index_d$1_OrderAutoRenewCanceled as OrderAutoRenewCanceled, type index_d$1_OrderAutoRenewCanceledEnvelope as OrderAutoRenewCanceledEnvelope, type index_d$1_OrderCanceled as OrderCanceled, type index_d$1_OrderCanceledEnvelope as OrderCanceledEnvelope, type index_d$1_OrderCreatedEnvelope as OrderCreatedEnvelope, type index_d$1_OrderCycle as OrderCycle, type index_d$1_OrderCycleStarted as OrderCycleStarted, type index_d$1_OrderCycleStartedEnvelope as OrderCycleStartedEnvelope, type index_d$1_OrderEndDatePostponed as OrderEndDatePostponed, type index_d$1_OrderEndDatePostponedEnvelope as OrderEndDatePostponedEnvelope, type index_d$1_OrderEnded as OrderEnded, type index_d$1_OrderEndedEnvelope as OrderEndedEnvelope, type index_d$1_OrderMarkedAsPaid as OrderMarkedAsPaid, type index_d$1_OrderMarkedAsPaidEnvelope as OrderMarkedAsPaidEnvelope, index_d$1_OrderMethod as OrderMethod, type index_d$1_OrderPaused as OrderPaused, type index_d$1_OrderPausedEnvelope as OrderPausedEnvelope, type index_d$1_OrderPurchased as OrderPurchased, type index_d$1_OrderPurchasedEnvelope as OrderPurchasedEnvelope, type index_d$1_OrderResumed as OrderResumed, type index_d$1_OrderResumedEnvelope as OrderResumedEnvelope, type index_d$1_OrderStartDateChanged as OrderStartDateChanged, type index_d$1_OrderStartDateChangedEnvelope as OrderStartDateChangedEnvelope, type index_d$1_OrderStarted as OrderStarted, type index_d$1_OrderStartedEnvelope as OrderStartedEnvelope, index_d$1_OrderStatus as OrderStatus, index_d$1_OrderType as OrderType, type index_d$1_OrderUpdatedEnvelope as OrderUpdatedEnvelope, type index_d$1_OrdersQueryOrdersRequest as OrdersQueryOrdersRequest, type index_d$1_OrdersQueryOrdersResponse as OrdersQueryOrdersResponse, type Paging$1 as Paging, type PagingMetadataV2$1 as PagingMetadataV2, type index_d$1_PauseOrderRequest as PauseOrderRequest, type index_d$1_PauseOrderResponse as PauseOrderResponse, type index_d$1_PausePeriod as PausePeriod, index_d$1_PaymentStatus as PaymentStatus, PeriodUnit$1 as PeriodUnit, type index_d$1_PostponeEndDateRequest as PostponeEndDateRequest, type index_d$1_PostponeEndDateResponse as PostponeEndDateResponse, type index_d$1_Price as Price, type index_d$1_PriceDetails as PriceDetails, type index_d$1_PriceDetailsPricingModelOneOf as PriceDetailsPricingModelOneOf, type index_d$1_PriceDuration as PriceDuration, type index_d$1_PricingDetails as PricingDetails, type index_d$1_PricingDetailsPricingModelOneOf as PricingDetailsPricingModelOneOf, type index_d$1_QueryOrdersRequest as QueryOrdersRequest, type index_d$1_QueryOrdersResponse as QueryOrdersResponse, type QueryV2$1 as QueryV2, type index_d$1_QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOf, index_d$1_ReasonNotSuspendable as ReasonNotSuspendable, type Recurrence$1 as Recurrence, type index_d$1_RequestCancellationRequest as RequestCancellationRequest, type index_d$1_RequestCancellationResponse as RequestCancellationResponse, type index_d$1_ResumeOrderRequest as ResumeOrderRequest, type index_d$1_ResumeOrderResponse as ResumeOrderResponse, index_d$1_Set as Set, type index_d$1_SetSubmissionRequest as SetSubmissionRequest, type index_d$1_SetSubmissionResponse as SetSubmissionResponse, SortOrder$1 as SortOrder, type Sorting$1 as Sorting, type index_d$1_SpannedPrice as SpannedPrice, index_d$1_Status as Status, type index_d$1_Tax as Tax, WebhookIdentityType$1 as WebhookIdentityType, __metadata$1 as __metadata, index_d$1_cancelOrder as cancelOrder, index_d$1_createOfflineOrder as createOfflineOrder, index_d$1_getOfflineOrderPreview as getOfflineOrderPreview, index_d$1_getPricePreview as getPricePreview, index_d$1_managementGetOrder as managementGetOrder, index_d$1_managementListOrders as managementListOrders, index_d$1_markAsPaid as markAsPaid, index_d$1_memberGetOrder as memberGetOrder, index_d$1_memberListOrders as memberListOrders, index_d$1_onOrderAutoRenewCanceled as onOrderAutoRenewCanceled, index_d$1_onOrderCanceled as onOrderCanceled, index_d$1_onOrderCreated as onOrderCreated, index_d$1_onOrderCycleStarted as onOrderCycleStarted, index_d$1_onOrderEndDatePostponed as onOrderEndDatePostponed, index_d$1_onOrderEnded as onOrderEnded, index_d$1_onOrderMarkedAsPaid as onOrderMarkedAsPaid, index_d$1_onOrderPaused as onOrderPaused, index_d$1_onOrderPurchased as onOrderPurchased, index_d$1_onOrderResumed as onOrderResumed, index_d$1_onOrderStartDateChanged as onOrderStartDateChanged, index_d$1_onOrderStarted as onOrderStarted, index_d$1_onOrderUpdated as onOrderUpdated, index_d$1_pauseOrder as pauseOrder, index_d$1_postponeEndDate as postponeEndDate, index_d$1_requestCancellation as requestCancellation, index_d$1_resumeOrder as resumeOrder };
1829
+ export { type ActionEvent$1 as ActionEvent, type ApplicationError$1 as ApplicationError, type index_d$1_ApplyCouponRequest as ApplyCouponRequest, type index_d$1_ApplyCouponResponse as ApplyCouponResponse, type BaseEventMetadata$1 as BaseEventMetadata, type BulkActionMetadata$1 as BulkActionMetadata, type index_d$1_BulkOrderResult as BulkOrderResult, type index_d$1_BulkPauseOrderRequest as BulkPauseOrderRequest, type index_d$1_BulkPauseOrderResponse as BulkPauseOrderResponse, type index_d$1_BulkResumeOrderRequest as BulkResumeOrderRequest, type index_d$1_BulkResumeOrderResponse as BulkResumeOrderResponse, type index_d$1_Buyer as Buyer, type index_d$1_CancelOrderRequest as CancelOrderRequest, type index_d$1_CancelOrderResponse as CancelOrderResponse, type index_d$1_Cancellation as Cancellation, index_d$1_CancellationCause as CancellationCause, index_d$1_CancellationEffectiveAt as CancellationEffectiveAt, type index_d$1_Captcha as Captcha, type index_d$1_ChangeStartDateRequest as ChangeStartDateRequest, type index_d$1_ChangeStartDateResponse as ChangeStartDateResponse, type index_d$1_Coupon as Coupon, type index_d$1_CouponsError as CouponsError, type index_d$1_CreateExternalOrderRequest as CreateExternalOrderRequest, type index_d$1_CreateExternalOrderResponse as CreateExternalOrderResponse, type index_d$1_CreateGuestOnlineOrderRequest as CreateGuestOnlineOrderRequest, type index_d$1_CreateGuestOnlineOrderResponse as CreateGuestOnlineOrderResponse, type index_d$1_CreateOfflineOrderOptions as CreateOfflineOrderOptions, type index_d$1_CreateOfflineOrderRequest as CreateOfflineOrderRequest, type index_d$1_CreateOfflineOrderResponse as CreateOfflineOrderResponse, type index_d$1_CreateOfflineOrderResponseNonNullableFields as CreateOfflineOrderResponseNonNullableFields, type index_d$1_CreateOnlineOrderRequest as CreateOnlineOrderRequest, type index_d$1_CreateOnlineOrderResponse as CreateOnlineOrderResponse, type index_d$1_CurrentCycle as CurrentCycle, type index_d$1_CursorPaging as CursorPaging, type Cursors$1 as Cursors, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type Duration$1 as Duration, type index_d$1_Empty as Empty, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type EventMetadata$1 as EventMetadata, type Fee$1 as Fee, type index_d$1_FormData as FormData, type index_d$1_GetAvailableOrderActionsRequest as GetAvailableOrderActionsRequest, type index_d$1_GetAvailableOrderActionsResponse as GetAvailableOrderActionsResponse, type index_d$1_GetGuestOnlineOrderPreviewRequest as GetGuestOnlineOrderPreviewRequest, type index_d$1_GetGuestOnlineOrderPreviewResponse as GetGuestOnlineOrderPreviewResponse, type index_d$1_GetOfflineOrderPreviewOptions as GetOfflineOrderPreviewOptions, type index_d$1_GetOfflineOrderPreviewRequest as GetOfflineOrderPreviewRequest, type index_d$1_GetOfflineOrderPreviewResponse as GetOfflineOrderPreviewResponse, type index_d$1_GetOfflineOrderPreviewResponseNonNullableFields as GetOfflineOrderPreviewResponseNonNullableFields, type index_d$1_GetOnlineOrderPreviewRequest as GetOnlineOrderPreviewRequest, type index_d$1_GetOnlineOrderPreviewResponse as GetOnlineOrderPreviewResponse, type index_d$1_GetOrderRequest as GetOrderRequest, type index_d$1_GetOrderResponse as GetOrderResponse, type index_d$1_GetOrderResponseNonNullableFields as GetOrderResponseNonNullableFields, type index_d$1_GetOrdersStatsRequest as GetOrdersStatsRequest, type index_d$1_GetOrdersStatsResponse as GetOrdersStatsResponse, type index_d$1_GetPricePreviewOptions as GetPricePreviewOptions, type index_d$1_GetPricePreviewRequest as GetPricePreviewRequest, type index_d$1_GetPricePreviewResponse as GetPricePreviewResponse, type index_d$1_GetPricePreviewResponseNonNullableFields as GetPricePreviewResponseNonNullableFields, type index_d$1_Guest as Guest, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type ItemMetadata$1 as ItemMetadata, type index_d$1_ListOrdersRequest as ListOrdersRequest, type index_d$1_ListOrdersResponse as ListOrdersResponse, type index_d$1_ListOrdersResponseNonNullableFields as ListOrdersResponseNonNullableFields, type index_d$1_ManagementGetOrderOptions as ManagementGetOrderOptions, type index_d$1_ManagementListOrdersOptions as ManagementListOrdersOptions, type index_d$1_MarkAsPaidRequest as MarkAsPaidRequest, type index_d$1_MarkAsPaidResponse as MarkAsPaidResponse, type index_d$1_MemberGetOrderOptions as MemberGetOrderOptions, type index_d$1_MemberGetOrderRequest as MemberGetOrderRequest, type index_d$1_MemberGetOrderResponse as MemberGetOrderResponse, type index_d$1_MemberGetOrderResponseNonNullableFields as MemberGetOrderResponseNonNullableFields, type index_d$1_MemberListOrdersOptions as MemberListOrdersOptions, type index_d$1_MemberListOrdersRequest as MemberListOrdersRequest, type index_d$1_MemberListOrdersResponse as MemberListOrdersResponse, type index_d$1_MemberListOrdersResponseNonNullableFields as MemberListOrdersResponseNonNullableFields, type MessageEnvelope$1 as MessageEnvelope, type index_d$1_OnBehalf as OnBehalf, type index_d$1_Order as Order, type index_d$1_OrderAutoRenewCanceled as OrderAutoRenewCanceled, type index_d$1_OrderAutoRenewCanceledEnvelope as OrderAutoRenewCanceledEnvelope, type index_d$1_OrderCanceled as OrderCanceled, type index_d$1_OrderCanceledEnvelope as OrderCanceledEnvelope, type index_d$1_OrderCreatedEnvelope as OrderCreatedEnvelope, type index_d$1_OrderCycle as OrderCycle, type index_d$1_OrderCycleStarted as OrderCycleStarted, type index_d$1_OrderCycleStartedEnvelope as OrderCycleStartedEnvelope, type index_d$1_OrderEndDatePostponed as OrderEndDatePostponed, type index_d$1_OrderEndDatePostponedEnvelope as OrderEndDatePostponedEnvelope, type index_d$1_OrderEnded as OrderEnded, type index_d$1_OrderEndedEnvelope as OrderEndedEnvelope, type index_d$1_OrderMarkedAsPaid as OrderMarkedAsPaid, type index_d$1_OrderMarkedAsPaidEnvelope as OrderMarkedAsPaidEnvelope, index_d$1_OrderMethod as OrderMethod, type index_d$1_OrderNonNullableFields as OrderNonNullableFields, type index_d$1_OrderPaused as OrderPaused, type index_d$1_OrderPausedEnvelope as OrderPausedEnvelope, type index_d$1_OrderPurchased as OrderPurchased, type index_d$1_OrderPurchasedEnvelope as OrderPurchasedEnvelope, type index_d$1_OrderResumed as OrderResumed, type index_d$1_OrderResumedEnvelope as OrderResumedEnvelope, type index_d$1_OrderStartDateChanged as OrderStartDateChanged, type index_d$1_OrderStartDateChangedEnvelope as OrderStartDateChangedEnvelope, type index_d$1_OrderStarted as OrderStarted, type index_d$1_OrderStartedEnvelope as OrderStartedEnvelope, index_d$1_OrderStatus as OrderStatus, index_d$1_OrderType as OrderType, type index_d$1_OrderUpdatedEnvelope as OrderUpdatedEnvelope, type index_d$1_OrdersQueryOrdersRequest as OrdersQueryOrdersRequest, type index_d$1_OrdersQueryOrdersResponse as OrdersQueryOrdersResponse, type Paging$1 as Paging, type PagingMetadataV2$1 as PagingMetadataV2, type index_d$1_PauseOrderRequest as PauseOrderRequest, type index_d$1_PauseOrderResponse as PauseOrderResponse, type index_d$1_PausePeriod as PausePeriod, index_d$1_PaymentStatus as PaymentStatus, PeriodUnit$1 as PeriodUnit, type index_d$1_PostponeEndDateRequest as PostponeEndDateRequest, type index_d$1_PostponeEndDateResponse as PostponeEndDateResponse, type index_d$1_Price as Price, type index_d$1_PriceDetails as PriceDetails, type index_d$1_PriceDetailsPricingModelOneOf as PriceDetailsPricingModelOneOf, type index_d$1_PriceDuration as PriceDuration, type index_d$1_PricingDetails as PricingDetails, type index_d$1_PricingDetailsPricingModelOneOf as PricingDetailsPricingModelOneOf, type index_d$1_QueryOrdersRequest as QueryOrdersRequest, type index_d$1_QueryOrdersResponse as QueryOrdersResponse, type QueryV2$1 as QueryV2, type index_d$1_QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOf, index_d$1_ReasonNotSuspendable as ReasonNotSuspendable, type Recurrence$1 as Recurrence, type index_d$1_RequestCancellationRequest as RequestCancellationRequest, type index_d$1_RequestCancellationResponse as RequestCancellationResponse, type index_d$1_ResumeOrderRequest as ResumeOrderRequest, type index_d$1_ResumeOrderResponse as ResumeOrderResponse, index_d$1_Set as Set, type index_d$1_SetSubmissionRequest as SetSubmissionRequest, type index_d$1_SetSubmissionResponse as SetSubmissionResponse, SortOrder$1 as SortOrder, type Sorting$1 as Sorting, type index_d$1_SpannedPrice as SpannedPrice, index_d$1_Status as Status, type index_d$1_Tax as Tax, WebhookIdentityType$1 as WebhookIdentityType, index_d$1_cancelOrder as cancelOrder, index_d$1_createOfflineOrder as createOfflineOrder, index_d$1_getOfflineOrderPreview as getOfflineOrderPreview, index_d$1_getPricePreview as getPricePreview, index_d$1_managementGetOrder as managementGetOrder, index_d$1_managementListOrders as managementListOrders, index_d$1_markAsPaid as markAsPaid, index_d$1_memberGetOrder as memberGetOrder, index_d$1_memberListOrders as memberListOrders, index_d$1_onOrderAutoRenewCanceled as onOrderAutoRenewCanceled, index_d$1_onOrderCanceled as onOrderCanceled, index_d$1_onOrderCreated as onOrderCreated, index_d$1_onOrderCycleStarted as onOrderCycleStarted, index_d$1_onOrderEndDatePostponed as onOrderEndDatePostponed, index_d$1_onOrderEnded as onOrderEnded, index_d$1_onOrderMarkedAsPaid as onOrderMarkedAsPaid, index_d$1_onOrderPaused as onOrderPaused, index_d$1_onOrderPurchased as onOrderPurchased, index_d$1_onOrderResumed as onOrderResumed, index_d$1_onOrderStartDateChanged as onOrderStartDateChanged, index_d$1_onOrderStarted as onOrderStarted, index_d$1_onOrderUpdated as onOrderUpdated, index_d$1_pauseOrder as pauseOrder, index_d$1_postponeEndDate as postponeEndDate, index_d$1_requestCancellation as requestCancellation, index_d$1_resumeOrder as resumeOrder };
2352
1830
  }
2353
1831
 
2354
1832
  /** Information about the pricing plan. */
@@ -2883,229 +2361,76 @@ declare enum WebhookIdentityType {
2883
2361
  WIX_USER = "WIX_USER",
2884
2362
  APP = "APP"
2885
2363
  }
2364
+ interface StringListNonNullableFields {
2365
+ values: string[];
2366
+ }
2367
+ interface DurationNonNullableFields {
2368
+ unit: PeriodUnit;
2369
+ }
2370
+ interface RecurrenceNonNullableFields {
2371
+ cycleDuration?: DurationNonNullableFields;
2372
+ }
2373
+ interface MoneyNonNullableFields {
2374
+ value: string;
2375
+ currency: string;
2376
+ }
2377
+ interface FeeNonNullableFields {
2378
+ name: string;
2379
+ amount: string;
2380
+ }
2381
+ interface FeeConfigNonNullableFields {
2382
+ fee?: FeeNonNullableFields;
2383
+ appliedAt: AppliedAt;
2384
+ }
2385
+ interface PricingNonNullableFields {
2386
+ subscription?: RecurrenceNonNullableFields;
2387
+ singlePaymentForDuration?: DurationNonNullableFields;
2388
+ price?: MoneyNonNullableFields;
2389
+ feeConfigs: FeeConfigNonNullableFields[];
2390
+ }
2391
+ interface PublicPlanNonNullableFields {
2392
+ _id: string;
2393
+ perks?: StringListNonNullableFields;
2394
+ pricing?: PricingNonNullableFields;
2395
+ primary: boolean;
2396
+ }
2886
2397
  interface ListPublicPlansResponseNonNullableFields {
2887
- plans: {
2888
- _id: string;
2889
- perks?: {
2890
- values: string[];
2891
- };
2892
- pricing?: {
2893
- subscription?: {
2894
- cycleDuration?: {
2895
- unit: PeriodUnit;
2896
- };
2897
- };
2898
- singlePaymentForDuration?: {
2899
- unit: PeriodUnit;
2900
- };
2901
- price?: {
2902
- value: string;
2903
- currency: string;
2904
- };
2905
- };
2906
- primary: boolean;
2907
- }[];
2398
+ plans: PublicPlanNonNullableFields[];
2908
2399
  }
2909
2400
  interface QueryPublicPlansResponseNonNullableFields {
2910
- plans: {
2911
- _id: string;
2912
- perks?: {
2913
- values: string[];
2914
- };
2915
- pricing?: {
2916
- subscription?: {
2917
- cycleDuration?: {
2918
- unit: PeriodUnit;
2919
- };
2920
- };
2921
- singlePaymentForDuration?: {
2922
- unit: PeriodUnit;
2923
- };
2924
- price?: {
2925
- value: string;
2926
- currency: string;
2927
- };
2928
- };
2929
- primary: boolean;
2930
- }[];
2401
+ plans: PublicPlanNonNullableFields[];
2402
+ }
2403
+ interface PlanNonNullableFields {
2404
+ _id: string;
2405
+ perks?: StringListNonNullableFields;
2406
+ pricing?: PricingNonNullableFields;
2407
+ archived: boolean;
2408
+ primary: boolean;
2409
+ hasOrders: boolean;
2931
2410
  }
2932
2411
  interface GetPlanResponseNonNullableFields {
2933
- plan?: {
2934
- _id: string;
2935
- perks?: {
2936
- values: string[];
2937
- };
2938
- pricing?: {
2939
- subscription?: {
2940
- cycleDuration?: {
2941
- unit: PeriodUnit;
2942
- };
2943
- };
2944
- singlePaymentForDuration?: {
2945
- unit: PeriodUnit;
2946
- };
2947
- price?: {
2948
- value: string;
2949
- currency: string;
2950
- };
2951
- };
2952
- archived: boolean;
2953
- primary: boolean;
2954
- hasOrders: boolean;
2955
- };
2412
+ plan?: PlanNonNullableFields;
2956
2413
  }
2957
2414
  interface ListPlansResponseNonNullableFields {
2958
- plans: {
2959
- _id: string;
2960
- perks?: {
2961
- values: string[];
2962
- };
2963
- pricing?: {
2964
- subscription?: {
2965
- cycleDuration?: {
2966
- unit: PeriodUnit;
2967
- };
2968
- };
2969
- singlePaymentForDuration?: {
2970
- unit: PeriodUnit;
2971
- };
2972
- price?: {
2973
- value: string;
2974
- currency: string;
2975
- };
2976
- };
2977
- archived: boolean;
2978
- primary: boolean;
2979
- hasOrders: boolean;
2980
- }[];
2415
+ plans: PlanNonNullableFields[];
2981
2416
  }
2982
2417
  interface GetPlanStatsResponseNonNullableFields {
2983
2418
  totalPlans: number;
2984
2419
  }
2985
2420
  interface CreatePlanResponseNonNullableFields {
2986
- plan?: {
2987
- _id: string;
2988
- perks?: {
2989
- values: string[];
2990
- };
2991
- pricing?: {
2992
- subscription?: {
2993
- cycleDuration?: {
2994
- unit: PeriodUnit;
2995
- };
2996
- };
2997
- singlePaymentForDuration?: {
2998
- unit: PeriodUnit;
2999
- };
3000
- price?: {
3001
- value: string;
3002
- currency: string;
3003
- };
3004
- };
3005
- archived: boolean;
3006
- primary: boolean;
3007
- hasOrders: boolean;
3008
- };
2421
+ plan?: PlanNonNullableFields;
3009
2422
  }
3010
2423
  interface UpdatePlanResponseNonNullableFields {
3011
- plan?: {
3012
- _id: string;
3013
- perks?: {
3014
- values: string[];
3015
- };
3016
- pricing?: {
3017
- subscription?: {
3018
- cycleDuration?: {
3019
- unit: PeriodUnit;
3020
- };
3021
- };
3022
- singlePaymentForDuration?: {
3023
- unit: PeriodUnit;
3024
- };
3025
- price?: {
3026
- value: string;
3027
- currency: string;
3028
- };
3029
- };
3030
- archived: boolean;
3031
- primary: boolean;
3032
- hasOrders: boolean;
3033
- };
2424
+ plan?: PlanNonNullableFields;
3034
2425
  }
3035
2426
  interface SetPlanVisibilityResponseNonNullableFields {
3036
- plan?: {
3037
- _id: string;
3038
- perks?: {
3039
- values: string[];
3040
- };
3041
- pricing?: {
3042
- subscription?: {
3043
- cycleDuration?: {
3044
- unit: PeriodUnit;
3045
- };
3046
- };
3047
- singlePaymentForDuration?: {
3048
- unit: PeriodUnit;
3049
- };
3050
- price?: {
3051
- value: string;
3052
- currency: string;
3053
- };
3054
- };
3055
- archived: boolean;
3056
- primary: boolean;
3057
- hasOrders: boolean;
3058
- };
2427
+ plan?: PlanNonNullableFields;
3059
2428
  }
3060
2429
  interface MakePlanPrimaryResponseNonNullableFields {
3061
- plan?: {
3062
- _id: string;
3063
- perks?: {
3064
- values: string[];
3065
- };
3066
- pricing?: {
3067
- subscription?: {
3068
- cycleDuration?: {
3069
- unit: PeriodUnit;
3070
- };
3071
- };
3072
- singlePaymentForDuration?: {
3073
- unit: PeriodUnit;
3074
- };
3075
- price?: {
3076
- value: string;
3077
- currency: string;
3078
- };
3079
- };
3080
- archived: boolean;
3081
- primary: boolean;
3082
- hasOrders: boolean;
3083
- };
2430
+ plan?: PlanNonNullableFields;
3084
2431
  }
3085
2432
  interface ArchivePlanResponseNonNullableFields {
3086
- plan?: {
3087
- _id: string;
3088
- perks?: {
3089
- values: string[];
3090
- };
3091
- pricing?: {
3092
- subscription?: {
3093
- cycleDuration?: {
3094
- unit: PeriodUnit;
3095
- };
3096
- };
3097
- singlePaymentForDuration?: {
3098
- unit: PeriodUnit;
3099
- };
3100
- price?: {
3101
- value: string;
3102
- currency: string;
3103
- };
3104
- };
3105
- archived: boolean;
3106
- primary: boolean;
3107
- hasOrders: boolean;
3108
- };
2433
+ plan?: PlanNonNullableFields;
3109
2434
  }
3110
2435
  interface BaseEventMetadata {
3111
2436
  /** App instance ID. */
@@ -3352,122 +2677,26 @@ interface UpdatePlan {
3352
2677
  formId?: string | null;
3353
2678
  }
3354
2679
 
3355
- interface HttpClient {
3356
- request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
3357
- }
3358
- type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
3359
- type HttpResponse<T = any> = {
3360
- data: T;
3361
- status: number;
3362
- statusText: string;
3363
- headers: any;
3364
- request?: any;
3365
- };
3366
- type RequestOptions<_TResponse = any, Data = any> = {
3367
- method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
3368
- url: string;
3369
- data?: Data;
3370
- params?: URLSearchParams;
3371
- } & APIMetadata;
3372
- type APIMetadata = {
3373
- methodFqn?: string;
3374
- entityFqdn?: string;
3375
- packageName?: string;
3376
- };
3377
- type EventDefinition<Payload = unknown, Type extends string = string> = {
3378
- __type: 'event-definition';
3379
- type: Type;
3380
- isDomainEvent?: boolean;
3381
- transformations?: unknown;
3382
- __payload: Payload;
3383
- };
3384
- declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, _transformations?: unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
2680
+ declare function createRESTModule<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
3385
2681
 
3386
- declare const __metadata: {
3387
- PACKAGE_NAME: string;
3388
- };
3389
- declare function listPublicPlans(httpClient: HttpClient): (options?: ListPublicPlansOptions) => Promise<ListPublicPlansResponse & ListPublicPlansResponseNonNullableFields>;
3390
- declare function queryPublicPlans(httpClient: HttpClient): () => PlansQueryBuilder;
3391
- declare function getPlan(httpClient: HttpClient): (_id: string) => Promise<Plan & {
3392
- _id: string;
3393
- perks?: {
3394
- values: string[];
3395
- } | undefined;
3396
- pricing?: {
3397
- subscription?: {
3398
- cycleDuration?: {
3399
- unit: PeriodUnit;
3400
- } | undefined;
3401
- } | undefined;
3402
- singlePaymentForDuration?: {
3403
- unit: PeriodUnit;
3404
- } | undefined;
3405
- price?: {
3406
- value: string;
3407
- currency: string;
3408
- } | undefined;
3409
- } | undefined;
3410
- archived: boolean;
3411
- primary: boolean;
3412
- hasOrders: boolean;
3413
- }>;
3414
- declare function listPlans(httpClient: HttpClient): (options?: ListPlansOptions) => Promise<ListPlansResponse & ListPlansResponseNonNullableFields>;
3415
- declare function getPlanStats(httpClient: HttpClient): () => Promise<GetPlanStatsResponse & GetPlanStatsResponseNonNullableFields>;
3416
- declare function createPlan(httpClient: HttpClient): (plan: Plan) => Promise<Plan & {
3417
- _id: string;
3418
- perks?: {
3419
- values: string[];
3420
- } | undefined;
3421
- pricing?: {
3422
- subscription?: {
3423
- cycleDuration?: {
3424
- unit: PeriodUnit;
3425
- } | undefined;
3426
- } | undefined;
3427
- singlePaymentForDuration?: {
3428
- unit: PeriodUnit;
3429
- } | undefined;
3430
- price?: {
3431
- value: string;
3432
- currency: string;
3433
- } | undefined;
3434
- } | undefined;
3435
- archived: boolean;
3436
- primary: boolean;
3437
- hasOrders: boolean;
3438
- }>;
3439
- declare function updatePlan(httpClient: HttpClient): (_id: string, plan: UpdatePlan) => Promise<Plan & {
3440
- _id: string;
3441
- perks?: {
3442
- values: string[];
3443
- } | undefined;
3444
- pricing?: {
3445
- subscription?: {
3446
- cycleDuration?: {
3447
- unit: PeriodUnit;
3448
- } | undefined;
3449
- } | undefined;
3450
- singlePaymentForDuration?: {
3451
- unit: PeriodUnit;
3452
- } | undefined;
3453
- price?: {
3454
- value: string;
3455
- currency: string;
3456
- } | undefined;
3457
- } | undefined;
3458
- archived: boolean;
3459
- primary: boolean;
3460
- hasOrders: boolean;
3461
- }>;
3462
- declare function setPlanVisibility(httpClient: HttpClient): (_id: string, visible: boolean) => Promise<SetPlanVisibilityResponse & SetPlanVisibilityResponseNonNullableFields>;
3463
- declare function makePlanPrimary(httpClient: HttpClient): (_id: string) => Promise<MakePlanPrimaryResponse & MakePlanPrimaryResponseNonNullableFields>;
3464
- declare function clearPrimary(httpClient: HttpClient): () => Promise<void>;
3465
- declare function archivePlan(httpClient: HttpClient): (_id: string) => Promise<ArchivePlanResponse & ArchivePlanResponseNonNullableFields>;
3466
- declare function arrangePlans(httpClient: HttpClient): (ids: string[]) => Promise<void>;
3467
- declare const onPlanUpdated: EventDefinition<PlanUpdatedEnvelope, "wix.pricing_plans.plan_updated">;
3468
- declare const onPlanCreated: EventDefinition<PlanCreatedEnvelope, "wix.pricing_plans.plan_created">;
3469
- declare const onPlanBuyerCanCancelUpdated: EventDefinition<PlanBuyerCanCancelUpdatedEnvelope, "wix.pricing_plans.plan_buyer_can_cancel_updated">;
3470
- declare const onPlanArchived: EventDefinition<PlanArchivedEnvelope, "wix.pricing_plans.plan_plan_archived">;
2682
+ declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
2683
+
2684
+ declare const listPublicPlans: ReturnType<typeof createRESTModule<typeof publicListPublicPlans>>;
2685
+ declare const queryPublicPlans: ReturnType<typeof createRESTModule<typeof publicQueryPublicPlans>>;
2686
+ declare const getPlan: ReturnType<typeof createRESTModule<typeof publicGetPlan>>;
2687
+ declare const listPlans: ReturnType<typeof createRESTModule<typeof publicListPlans>>;
2688
+ declare const getPlanStats: ReturnType<typeof createRESTModule<typeof publicGetPlanStats>>;
2689
+ declare const createPlan: ReturnType<typeof createRESTModule<typeof publicCreatePlan>>;
2690
+ declare const updatePlan: ReturnType<typeof createRESTModule<typeof publicUpdatePlan>>;
2691
+ declare const setPlanVisibility: ReturnType<typeof createRESTModule<typeof publicSetPlanVisibility>>;
2692
+ declare const makePlanPrimary: ReturnType<typeof createRESTModule<typeof publicMakePlanPrimary>>;
2693
+ declare const clearPrimary: ReturnType<typeof createRESTModule<typeof publicClearPrimary>>;
2694
+ declare const archivePlan: ReturnType<typeof createRESTModule<typeof publicArchivePlan>>;
2695
+ declare const arrangePlans: ReturnType<typeof createRESTModule<typeof publicArrangePlans>>;
2696
+ declare const onPlanUpdated: ReturnType<typeof createEventModule<typeof publicOnPlanUpdated>>;
2697
+ declare const onPlanCreated: ReturnType<typeof createEventModule<typeof publicOnPlanCreated>>;
2698
+ declare const onPlanBuyerCanCancelUpdated: ReturnType<typeof createEventModule<typeof publicOnPlanBuyerCanCancelUpdated>>;
2699
+ declare const onPlanArchived: ReturnType<typeof createEventModule<typeof publicOnPlanArchived>>;
3471
2700
 
3472
2701
  type index_d_ActionEvent = ActionEvent;
3473
2702
  type index_d_ApplicationError = ApplicationError;
@@ -3532,6 +2761,7 @@ type index_d_PlanArchived = PlanArchived;
3532
2761
  type index_d_PlanArchivedEnvelope = PlanArchivedEnvelope;
3533
2762
  type index_d_PlanBuyerCanCancelUpdatedEnvelope = PlanBuyerCanCancelUpdatedEnvelope;
3534
2763
  type index_d_PlanCreatedEnvelope = PlanCreatedEnvelope;
2764
+ type index_d_PlanNonNullableFields = PlanNonNullableFields;
3535
2765
  type index_d_PlanUpdatedEnvelope = PlanUpdatedEnvelope;
3536
2766
  type index_d_PlansQueryBuilder = PlansQueryBuilder;
3537
2767
  type index_d_PlansQueryResult = PlansQueryResult;
@@ -3558,7 +2788,6 @@ type index_d_UpdatePlanResponse = UpdatePlanResponse;
3558
2788
  type index_d_UpdatePlanResponseNonNullableFields = UpdatePlanResponseNonNullableFields;
3559
2789
  type index_d_WebhookIdentityType = WebhookIdentityType;
3560
2790
  declare const index_d_WebhookIdentityType: typeof WebhookIdentityType;
3561
- declare const index_d___metadata: typeof __metadata;
3562
2791
  declare const index_d_archivePlan: typeof archivePlan;
3563
2792
  declare const index_d_arrangePlans: typeof arrangePlans;
3564
2793
  declare const index_d_clearPrimary: typeof clearPrimary;
@@ -3576,7 +2805,7 @@ declare const index_d_queryPublicPlans: typeof queryPublicPlans;
3576
2805
  declare const index_d_setPlanVisibility: typeof setPlanVisibility;
3577
2806
  declare const index_d_updatePlan: typeof updatePlan;
3578
2807
  declare namespace index_d {
3579
- export { type index_d_ActionEvent as ActionEvent, type index_d_ApplicationError as ApplicationError, index_d_AppliedAt as AppliedAt, type index_d_ArchivePlanRequest as ArchivePlanRequest, type index_d_ArchivePlanResponse as ArchivePlanResponse, type index_d_ArchivePlanResponseNonNullableFields as ArchivePlanResponseNonNullableFields, index_d_ArchivedFilter as ArchivedFilter, type index_d_ArrangePlansRequest as ArrangePlansRequest, type index_d_ArrangePlansResponse as ArrangePlansResponse, type index_d_BaseEventMetadata as BaseEventMetadata, type index_d_BulkActionMetadata as BulkActionMetadata, type index_d_BulkArchivePlanRequest as BulkArchivePlanRequest, type index_d_BulkArchivePlanResponse as BulkArchivePlanResponse, type index_d_BulkPlanResult as BulkPlanResult, type index_d_BuyerCanCancelUpdated as BuyerCanCancelUpdated, type index_d_ClearPrimaryRequest as ClearPrimaryRequest, type index_d_ClearPrimaryResponse as ClearPrimaryResponse, type index_d_CreatePlanRequest as CreatePlanRequest, type index_d_CreatePlanResponse as CreatePlanResponse, type index_d_CreatePlanResponseNonNullableFields as CreatePlanResponseNonNullableFields, type index_d_Cursors as Cursors, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_Duration as Duration, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_EventMetadata as EventMetadata, type index_d_Fee as Fee, type index_d_FeeConfig as FeeConfig, type index_d_GetPlanRequest as GetPlanRequest, type index_d_GetPlanResponse as GetPlanResponse, type index_d_GetPlanResponseNonNullableFields as GetPlanResponseNonNullableFields, type index_d_GetPlanStatsRequest as GetPlanStatsRequest, type index_d_GetPlanStatsResponse as GetPlanStatsResponse, type index_d_GetPlanStatsResponseNonNullableFields as GetPlanStatsResponseNonNullableFields, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d_ItemMetadata as ItemMetadata, type index_d_ListPlansOptions as ListPlansOptions, type index_d_ListPlansRequest as ListPlansRequest, type index_d_ListPlansResponse as ListPlansResponse, type index_d_ListPlansResponseNonNullableFields as ListPlansResponseNonNullableFields, type index_d_ListPublicPlansOptions as ListPublicPlansOptions, type index_d_ListPublicPlansRequest as ListPublicPlansRequest, type index_d_ListPublicPlansResponse as ListPublicPlansResponse, type index_d_ListPublicPlansResponseNonNullableFields as ListPublicPlansResponseNonNullableFields, type index_d_MakePlanPrimaryRequest as MakePlanPrimaryRequest, type index_d_MakePlanPrimaryResponse as MakePlanPrimaryResponse, type index_d_MakePlanPrimaryResponseNonNullableFields as MakePlanPrimaryResponseNonNullableFields, type index_d_MessageEnvelope as MessageEnvelope, type index_d_Money as Money, type index_d_Paging as Paging, type index_d_PagingMetadataV2 as PagingMetadataV2, index_d_PeriodUnit as PeriodUnit, type index_d_Plan as Plan, type index_d_PlanArchived as PlanArchived, type index_d_PlanArchivedEnvelope as PlanArchivedEnvelope, type index_d_PlanBuyerCanCancelUpdatedEnvelope as PlanBuyerCanCancelUpdatedEnvelope, type index_d_PlanCreatedEnvelope as PlanCreatedEnvelope, type index_d_PlanUpdatedEnvelope as PlanUpdatedEnvelope, type index_d_PlansQueryBuilder as PlansQueryBuilder, type index_d_PlansQueryResult as PlansQueryResult, type index_d_Pricing as Pricing, type index_d_PricingPricingModelOneOf as PricingPricingModelOneOf, index_d_PublicFilter as PublicFilter, type index_d_PublicPlan as PublicPlan, type index_d_QueryPublicPlansRequest as QueryPublicPlansRequest, type index_d_QueryPublicPlansResponse as QueryPublicPlansResponse, type index_d_QueryPublicPlansResponseNonNullableFields as QueryPublicPlansResponseNonNullableFields, type index_d_QueryV2 as QueryV2, type index_d_Recurrence as Recurrence, type index_d_SetPlanVisibilityRequest as SetPlanVisibilityRequest, type index_d_SetPlanVisibilityResponse as SetPlanVisibilityResponse, type index_d_SetPlanVisibilityResponseNonNullableFields as SetPlanVisibilityResponseNonNullableFields, index_d_SortOrder as SortOrder, type index_d_Sorting as Sorting, type index_d_StringList as StringList, type index_d_UpdatePlan as UpdatePlan, type index_d_UpdatePlanRequest as UpdatePlanRequest, type index_d_UpdatePlanResponse as UpdatePlanResponse, type index_d_UpdatePlanResponseNonNullableFields as UpdatePlanResponseNonNullableFields, index_d_WebhookIdentityType as WebhookIdentityType, index_d___metadata as __metadata, index_d_archivePlan as archivePlan, index_d_arrangePlans as arrangePlans, index_d_clearPrimary as clearPrimary, index_d_createPlan as createPlan, index_d_getPlan as getPlan, index_d_getPlanStats as getPlanStats, index_d_listPlans as listPlans, index_d_listPublicPlans as listPublicPlans, index_d_makePlanPrimary as makePlanPrimary, index_d_onPlanArchived as onPlanArchived, index_d_onPlanBuyerCanCancelUpdated as onPlanBuyerCanCancelUpdated, index_d_onPlanCreated as onPlanCreated, index_d_onPlanUpdated as onPlanUpdated, index_d_queryPublicPlans as queryPublicPlans, index_d_setPlanVisibility as setPlanVisibility, index_d_updatePlan as updatePlan };
2808
+ export { type index_d_ActionEvent as ActionEvent, type index_d_ApplicationError as ApplicationError, index_d_AppliedAt as AppliedAt, type index_d_ArchivePlanRequest as ArchivePlanRequest, type index_d_ArchivePlanResponse as ArchivePlanResponse, type index_d_ArchivePlanResponseNonNullableFields as ArchivePlanResponseNonNullableFields, index_d_ArchivedFilter as ArchivedFilter, type index_d_ArrangePlansRequest as ArrangePlansRequest, type index_d_ArrangePlansResponse as ArrangePlansResponse, type index_d_BaseEventMetadata as BaseEventMetadata, type index_d_BulkActionMetadata as BulkActionMetadata, type index_d_BulkArchivePlanRequest as BulkArchivePlanRequest, type index_d_BulkArchivePlanResponse as BulkArchivePlanResponse, type index_d_BulkPlanResult as BulkPlanResult, type index_d_BuyerCanCancelUpdated as BuyerCanCancelUpdated, type index_d_ClearPrimaryRequest as ClearPrimaryRequest, type index_d_ClearPrimaryResponse as ClearPrimaryResponse, type index_d_CreatePlanRequest as CreatePlanRequest, type index_d_CreatePlanResponse as CreatePlanResponse, type index_d_CreatePlanResponseNonNullableFields as CreatePlanResponseNonNullableFields, type index_d_Cursors as Cursors, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_Duration as Duration, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_EventMetadata as EventMetadata, type index_d_Fee as Fee, type index_d_FeeConfig as FeeConfig, type index_d_GetPlanRequest as GetPlanRequest, type index_d_GetPlanResponse as GetPlanResponse, type index_d_GetPlanResponseNonNullableFields as GetPlanResponseNonNullableFields, type index_d_GetPlanStatsRequest as GetPlanStatsRequest, type index_d_GetPlanStatsResponse as GetPlanStatsResponse, type index_d_GetPlanStatsResponseNonNullableFields as GetPlanStatsResponseNonNullableFields, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d_ItemMetadata as ItemMetadata, type index_d_ListPlansOptions as ListPlansOptions, type index_d_ListPlansRequest as ListPlansRequest, type index_d_ListPlansResponse as ListPlansResponse, type index_d_ListPlansResponseNonNullableFields as ListPlansResponseNonNullableFields, type index_d_ListPublicPlansOptions as ListPublicPlansOptions, type index_d_ListPublicPlansRequest as ListPublicPlansRequest, type index_d_ListPublicPlansResponse as ListPublicPlansResponse, type index_d_ListPublicPlansResponseNonNullableFields as ListPublicPlansResponseNonNullableFields, type index_d_MakePlanPrimaryRequest as MakePlanPrimaryRequest, type index_d_MakePlanPrimaryResponse as MakePlanPrimaryResponse, type index_d_MakePlanPrimaryResponseNonNullableFields as MakePlanPrimaryResponseNonNullableFields, type index_d_MessageEnvelope as MessageEnvelope, type index_d_Money as Money, type index_d_Paging as Paging, type index_d_PagingMetadataV2 as PagingMetadataV2, index_d_PeriodUnit as PeriodUnit, type index_d_Plan as Plan, type index_d_PlanArchived as PlanArchived, type index_d_PlanArchivedEnvelope as PlanArchivedEnvelope, type index_d_PlanBuyerCanCancelUpdatedEnvelope as PlanBuyerCanCancelUpdatedEnvelope, type index_d_PlanCreatedEnvelope as PlanCreatedEnvelope, type index_d_PlanNonNullableFields as PlanNonNullableFields, type index_d_PlanUpdatedEnvelope as PlanUpdatedEnvelope, type index_d_PlansQueryBuilder as PlansQueryBuilder, type index_d_PlansQueryResult as PlansQueryResult, type index_d_Pricing as Pricing, type index_d_PricingPricingModelOneOf as PricingPricingModelOneOf, index_d_PublicFilter as PublicFilter, type index_d_PublicPlan as PublicPlan, type index_d_QueryPublicPlansRequest as QueryPublicPlansRequest, type index_d_QueryPublicPlansResponse as QueryPublicPlansResponse, type index_d_QueryPublicPlansResponseNonNullableFields as QueryPublicPlansResponseNonNullableFields, type index_d_QueryV2 as QueryV2, type index_d_Recurrence as Recurrence, type index_d_SetPlanVisibilityRequest as SetPlanVisibilityRequest, type index_d_SetPlanVisibilityResponse as SetPlanVisibilityResponse, type index_d_SetPlanVisibilityResponseNonNullableFields as SetPlanVisibilityResponseNonNullableFields, index_d_SortOrder as SortOrder, type index_d_Sorting as Sorting, type index_d_StringList as StringList, type index_d_UpdatePlan as UpdatePlan, type index_d_UpdatePlanRequest as UpdatePlanRequest, type index_d_UpdatePlanResponse as UpdatePlanResponse, type index_d_UpdatePlanResponseNonNullableFields as UpdatePlanResponseNonNullableFields, index_d_WebhookIdentityType as WebhookIdentityType, index_d_archivePlan as archivePlan, index_d_arrangePlans as arrangePlans, index_d_clearPrimary as clearPrimary, index_d_createPlan as createPlan, index_d_getPlan as getPlan, index_d_getPlanStats as getPlanStats, index_d_listPlans as listPlans, index_d_listPublicPlans as listPublicPlans, index_d_makePlanPrimary as makePlanPrimary, index_d_onPlanArchived as onPlanArchived, index_d_onPlanBuyerCanCancelUpdated as onPlanBuyerCanCancelUpdated, index_d_onPlanCreated as onPlanCreated, index_d_onPlanUpdated as onPlanUpdated, index_d_queryPublicPlans as queryPublicPlans, index_d_setPlanVisibility as setPlanVisibility, index_d_updatePlan as updatePlan };
3580
2809
  }
3581
2810
 
3582
2811
  export { index_d$1 as orders, index_d as plans };