|
36 | 36 |
|
37 | 37 | if TYPE_CHECKING: |
38 | 38 | from .resources import ( |
| 39 | + beta, |
39 | 40 | items, |
40 | 41 | plans, |
41 | 42 | alerts, |
|
57 | 58 | from .resources.alerts import Alerts, AsyncAlerts |
58 | 59 | from .resources.metrics import Metrics, AsyncMetrics |
59 | 60 | from .resources.invoices import Invoices, AsyncInvoices |
| 61 | + from .resources.beta.beta import Beta, AsyncBeta |
60 | 62 | from .resources.top_level import TopLevel, AsyncTopLevel |
61 | 63 | from .resources.plans.plans import Plans, AsyncPlans |
62 | 64 | from .resources.credit_notes import CreditNotes, AsyncCreditNotes |
@@ -146,6 +148,12 @@ def top_level(self) -> TopLevel: |
146 | 148 |
|
147 | 149 | return TopLevel(self) |
148 | 150 |
|
| 151 | + @cached_property |
| 152 | + def beta(self) -> Beta: |
| 153 | + from .resources.beta import Beta |
| 154 | + |
| 155 | + return Beta(self) |
| 156 | + |
149 | 157 | @cached_property |
150 | 158 | def coupons(self) -> Coupons: |
151 | 159 | from .resources.coupons import Coupons |
@@ -470,6 +478,12 @@ def top_level(self) -> AsyncTopLevel: |
470 | 478 |
|
471 | 479 | return AsyncTopLevel(self) |
472 | 480 |
|
| 481 | + @cached_property |
| 482 | + def beta(self) -> AsyncBeta: |
| 483 | + from .resources.beta import AsyncBeta |
| 484 | + |
| 485 | + return AsyncBeta(self) |
| 486 | + |
473 | 487 | @cached_property |
474 | 488 | def coupons(self) -> AsyncCoupons: |
475 | 489 | from .resources.coupons import AsyncCoupons |
@@ -735,6 +749,12 @@ def top_level(self) -> top_level.TopLevelWithRawResponse: |
735 | 749 |
|
736 | 750 | return TopLevelWithRawResponse(self._client.top_level) |
737 | 751 |
|
| 752 | + @cached_property |
| 753 | + def beta(self) -> beta.BetaWithRawResponse: |
| 754 | + from .resources.beta import BetaWithRawResponse |
| 755 | + |
| 756 | + return BetaWithRawResponse(self._client.beta) |
| 757 | + |
738 | 758 | @cached_property |
739 | 759 | def coupons(self) -> coupons.CouponsWithRawResponse: |
740 | 760 | from .resources.coupons import CouponsWithRawResponse |
@@ -832,6 +852,12 @@ def top_level(self) -> top_level.AsyncTopLevelWithRawResponse: |
832 | 852 |
|
833 | 853 | return AsyncTopLevelWithRawResponse(self._client.top_level) |
834 | 854 |
|
| 855 | + @cached_property |
| 856 | + def beta(self) -> beta.AsyncBetaWithRawResponse: |
| 857 | + from .resources.beta import AsyncBetaWithRawResponse |
| 858 | + |
| 859 | + return AsyncBetaWithRawResponse(self._client.beta) |
| 860 | + |
835 | 861 | @cached_property |
836 | 862 | def coupons(self) -> coupons.AsyncCouponsWithRawResponse: |
837 | 863 | from .resources.coupons import AsyncCouponsWithRawResponse |
@@ -929,6 +955,12 @@ def top_level(self) -> top_level.TopLevelWithStreamingResponse: |
929 | 955 |
|
930 | 956 | return TopLevelWithStreamingResponse(self._client.top_level) |
931 | 957 |
|
| 958 | + @cached_property |
| 959 | + def beta(self) -> beta.BetaWithStreamingResponse: |
| 960 | + from .resources.beta import BetaWithStreamingResponse |
| 961 | + |
| 962 | + return BetaWithStreamingResponse(self._client.beta) |
| 963 | + |
932 | 964 | @cached_property |
933 | 965 | def coupons(self) -> coupons.CouponsWithStreamingResponse: |
934 | 966 | from .resources.coupons import CouponsWithStreamingResponse |
@@ -1026,6 +1058,12 @@ def top_level(self) -> top_level.AsyncTopLevelWithStreamingResponse: |
1026 | 1058 |
|
1027 | 1059 | return AsyncTopLevelWithStreamingResponse(self._client.top_level) |
1028 | 1060 |
|
| 1061 | + @cached_property |
| 1062 | + def beta(self) -> beta.AsyncBetaWithStreamingResponse: |
| 1063 | + from .resources.beta import AsyncBetaWithStreamingResponse |
| 1064 | + |
| 1065 | + return AsyncBetaWithStreamingResponse(self._client.beta) |
| 1066 | + |
1029 | 1067 | @cached_property |
1030 | 1068 | def coupons(self) -> coupons.AsyncCouponsWithStreamingResponse: |
1031 | 1069 | from .resources.coupons import AsyncCouponsWithStreamingResponse |
|
0 commit comments