Skip to content

Commit d049d56

Browse files
author
stlc-bot
committed
Build SDK
Stainless-Generated-From: d16da40
1 parent 2334421 commit d049d56

53 files changed

Lines changed: 2985 additions & 347 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.stats.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
configured_endpoints: 226
1+
configured_endpoints: 229

‎api.md‎

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -735,19 +735,33 @@ from whop_sdk.types import (
735735
Methods:
736736

737737
- <code title="get /wallets">client.wallets.<a href="./src/whop_sdk/resources/wallets.py">list</a>() -> <a href="./src/whop_sdk/types/wallet_list_response.py">WalletListResponse</a></code>
738-
- <code title="get /wallets/{account_id}/balance">client.wallets.<a href="./src/whop_sdk/resources/wallets.py">balance</a>(account_id) -> <a href="./src/whop_sdk/types/wallet_balance_response.py">WalletBalanceResponse</a></code>
739-
- <code title="post /wallets/{account_id}/sends">client.wallets.<a href="./src/whop_sdk/resources/wallets.py">send</a>(account_id, \*\*<a href="src/whop_sdk/types/wallet_send_params.py">params</a>) -> <a href="./src/whop_sdk/types/wallet_send_response.py">WalletSendResponse</a></code>
738+
- <code title="get /wallets/balance">client.wallets.<a href="./src/whop_sdk/resources/wallets.py">balance</a>(\*\*<a href="src/whop_sdk/types/wallet_balance_params.py">params</a>) -> <a href="./src/whop_sdk/types/wallet_balance_response.py">WalletBalanceResponse</a></code>
739+
- <code title="post /wallets/send">client.wallets.<a href="./src/whop_sdk/resources/wallets.py">send</a>(\*\*<a href="src/whop_sdk/types/wallet_send_params.py">params</a>) -> <a href="./src/whop_sdk/types/wallet_send_response.py">WalletSendResponse</a></code>
740+
741+
# FinancialActivity
742+
743+
Types:
744+
745+
```python
746+
from whop_sdk.types import FinancialActivityListResponse
747+
```
748+
749+
Methods:
750+
751+
- <code title="get /financial-activity">client.financial_activity.<a href="./src/whop_sdk/resources/financial_activity.py">list</a>(\*\*<a href="src/whop_sdk/types/financial_activity_list_params.py">params</a>) -> <a href="./src/whop_sdk/types/financial_activity_list_response.py">FinancialActivityListResponse</a></code>
740752

741753
# Swaps
742754

743755
Types:
744756

745757
```python
746-
from whop_sdk.types import SwapCreateQuoteResponse
758+
from whop_sdk.types import SwapCreateResponse, SwapRetrieveResponse, SwapCreateQuoteResponse
747759
```
748760

749761
Methods:
750762

763+
- <code title="post /swaps">client.swaps.<a href="./src/whop_sdk/resources/swaps.py">create</a>(\*\*<a href="src/whop_sdk/types/swap_create_params.py">params</a>) -> <a href="./src/whop_sdk/types/swap_create_response.py">SwapCreateResponse</a></code>
764+
- <code title="get /swaps">client.swaps.<a href="./src/whop_sdk/resources/swaps.py">retrieve</a>(\*\*<a href="src/whop_sdk/types/swap_retrieve_params.py">params</a>) -> <a href="./src/whop_sdk/types/swap_retrieve_response.py">SwapRetrieveResponse</a></code>
751765
- <code title="post /swaps/quote">client.swaps.<a href="./src/whop_sdk/resources/swaps.py">create_quote</a>(\*\*<a href="src/whop_sdk/types/swap_create_quote_params.py">params</a>) -> <a href="./src/whop_sdk/types/swap_create_quote_response.py">SwapCreateQuoteResponse</a></code>
752766

753767
# Deposits
@@ -1073,7 +1087,7 @@ from whop_sdk.types import AdCampaign, AdCampaignPlatform, AdCampaignStatus, AdC
10731087

10741088
Methods:
10751089

1076-
- <code title="get /ad_campaigns/{id}">client.ad_campaigns.<a href="./src/whop_sdk/resources/ad_campaigns.py">retrieve</a>(id) -> <a href="./src/whop_sdk/types/ad_campaign.py">AdCampaign</a></code>
1090+
- <code title="get /ad_campaigns/{id}">client.ad_campaigns.<a href="./src/whop_sdk/resources/ad_campaigns.py">retrieve</a>(id, \*\*<a href="src/whop_sdk/types/ad_campaign_retrieve_params.py">params</a>) -> <a href="./src/whop_sdk/types/ad_campaign.py">AdCampaign</a></code>
10771091
- <code title="patch /ad_campaigns/{id}">client.ad_campaigns.<a href="./src/whop_sdk/resources/ad_campaigns.py">update</a>(id, \*\*<a href="src/whop_sdk/types/ad_campaign_update_params.py">params</a>) -> <a href="./src/whop_sdk/types/ad_campaign.py">AdCampaign</a></code>
10781092
- <code title="get /ad_campaigns">client.ad_campaigns.<a href="./src/whop_sdk/resources/ad_campaigns.py">list</a>(\*\*<a href="src/whop_sdk/types/ad_campaign_list_params.py">params</a>) -> <a href="./src/whop_sdk/types/ad_campaign_list_response.py">SyncCursorPage[AdCampaignListResponse]</a></code>
10791093
- <code title="post /ad_campaigns/{id}/pause">client.ad_campaigns.<a href="./src/whop_sdk/resources/ad_campaigns.py">pause</a>(id) -> <a href="./src/whop_sdk/types/ad_campaign.py">AdCampaign</a></code>
@@ -1095,7 +1109,7 @@ from whop_sdk.types import (
10951109

10961110
Methods:
10971111

1098-
- <code title="get /ad_groups/{id}">client.ad_groups.<a href="./src/whop_sdk/resources/ad_groups.py">retrieve</a>(id) -> <a href="./src/whop_sdk/types/ad_group.py">AdGroup</a></code>
1112+
- <code title="get /ad_groups/{id}">client.ad_groups.<a href="./src/whop_sdk/resources/ad_groups.py">retrieve</a>(id, \*\*<a href="src/whop_sdk/types/ad_group_retrieve_params.py">params</a>) -> <a href="./src/whop_sdk/types/ad_group.py">AdGroup</a></code>
10991113
- <code title="patch /ad_groups/{id}">client.ad_groups.<a href="./src/whop_sdk/resources/ad_groups.py">update</a>(id, \*\*<a href="src/whop_sdk/types/ad_group_update_params.py">params</a>) -> <a href="./src/whop_sdk/types/ad_group.py">AdGroup</a></code>
11001114
- <code title="get /ad_groups">client.ad_groups.<a href="./src/whop_sdk/resources/ad_groups.py">list</a>(\*\*<a href="src/whop_sdk/types/ad_group_list_params.py">params</a>) -> <a href="./src/whop_sdk/types/ad_group_list_response.py">SyncCursorPage[AdGroupListResponse]</a></code>
11011115
- <code title="delete /ad_groups/{id}">client.ad_groups.<a href="./src/whop_sdk/resources/ad_groups.py">delete</a>(id) -> <a href="./src/whop_sdk/types/ad_group_delete_response.py">AdGroupDeleteResponse</a></code>
@@ -1112,7 +1126,7 @@ from whop_sdk.types import Ad, ExternalAdStatus, AdListResponse
11121126

11131127
Methods:
11141128

1115-
- <code title="get /ads/{id}">client.ads.<a href="./src/whop_sdk/resources/ads.py">retrieve</a>(id) -> <a href="./src/whop_sdk/types/ad.py">Ad</a></code>
1129+
- <code title="get /ads/{id}">client.ads.<a href="./src/whop_sdk/resources/ads.py">retrieve</a>(id, \*\*<a href="src/whop_sdk/types/ad_retrieve_params.py">params</a>) -> <a href="./src/whop_sdk/types/ad.py">Ad</a></code>
11161130
- <code title="get /ads">client.ads.<a href="./src/whop_sdk/resources/ads.py">list</a>(\*\*<a href="src/whop_sdk/types/ad_list_params.py">params</a>) -> <a href="./src/whop_sdk/types/ad_list_response.py">SyncCursorPage[AdListResponse]</a></code>
11171131
- <code title="post /ads/{id}/pause">client.ads.<a href="./src/whop_sdk/resources/ads.py">pause</a>(id) -> <a href="./src/whop_sdk/types/ad.py">Ad</a></code>
11181132
- <code title="post /ads/{id}/unpause">client.ads.<a href="./src/whop_sdk/resources/ads.py">unpause</a>(id) -> <a href="./src/whop_sdk/types/ad.py">Ad</a></code>

‎src/whop_sdk/_client.py‎

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@
9595
payout_accounts,
9696
authorized_users,
9797
support_channels,
98+
financial_activity,
9899
checkout_configurations,
99100
resolution_center_cases,
100101
company_token_transactions,
@@ -158,6 +159,7 @@
158159
from .resources.payout_accounts import PayoutAccountsResource, AsyncPayoutAccountsResource
159160
from .resources.authorized_users import AuthorizedUsersResource, AsyncAuthorizedUsersResource
160161
from .resources.support_channels import SupportChannelsResource, AsyncSupportChannelsResource
162+
from .resources.financial_activity import FinancialActivityResource, AsyncFinancialActivityResource
161163
from .resources.affiliates.affiliates import AffiliatesResource, AsyncAffiliatesResource
162164
from .resources.checkout_configurations import CheckoutConfigurationsResource, AsyncCheckoutConfigurationsResource
163165
from .resources.resolution_center_cases import ResolutionCenterCasesResource, AsyncResolutionCenterCasesResource
@@ -523,6 +525,12 @@ def wallets(self) -> WalletsResource:
523525

524526
return WalletsResource(self)
525527

528+
@cached_property
529+
def financial_activity(self) -> FinancialActivityResource:
530+
from .resources.financial_activity import FinancialActivityResource
531+
532+
return FinancialActivityResource(self)
533+
526534
@cached_property
527535
def swaps(self) -> SwapsResource:
528536
from .resources.swaps import SwapsResource
@@ -1157,6 +1165,12 @@ def wallets(self) -> AsyncWalletsResource:
11571165

11581166
return AsyncWalletsResource(self)
11591167

1168+
@cached_property
1169+
def financial_activity(self) -> AsyncFinancialActivityResource:
1170+
from .resources.financial_activity import AsyncFinancialActivityResource
1171+
1172+
return AsyncFinancialActivityResource(self)
1173+
11601174
@cached_property
11611175
def swaps(self) -> AsyncSwapsResource:
11621176
from .resources.swaps import AsyncSwapsResource
@@ -1718,6 +1732,12 @@ def wallets(self) -> wallets.WalletsResourceWithRawResponse:
17181732

17191733
return WalletsResourceWithRawResponse(self._client.wallets)
17201734

1735+
@cached_property
1736+
def financial_activity(self) -> financial_activity.FinancialActivityResourceWithRawResponse:
1737+
from .resources.financial_activity import FinancialActivityResourceWithRawResponse
1738+
1739+
return FinancialActivityResourceWithRawResponse(self._client.financial_activity)
1740+
17211741
@cached_property
17221742
def swaps(self) -> swaps.SwapsResourceWithRawResponse:
17231743
from .resources.swaps import SwapsResourceWithRawResponse
@@ -2164,6 +2184,12 @@ def wallets(self) -> wallets.AsyncWalletsResourceWithRawResponse:
21642184

21652185
return AsyncWalletsResourceWithRawResponse(self._client.wallets)
21662186

2187+
@cached_property
2188+
def financial_activity(self) -> financial_activity.AsyncFinancialActivityResourceWithRawResponse:
2189+
from .resources.financial_activity import AsyncFinancialActivityResourceWithRawResponse
2190+
2191+
return AsyncFinancialActivityResourceWithRawResponse(self._client.financial_activity)
2192+
21672193
@cached_property
21682194
def swaps(self) -> swaps.AsyncSwapsResourceWithRawResponse:
21692195
from .resources.swaps import AsyncSwapsResourceWithRawResponse
@@ -2612,6 +2638,12 @@ def wallets(self) -> wallets.WalletsResourceWithStreamingResponse:
26122638

26132639
return WalletsResourceWithStreamingResponse(self._client.wallets)
26142640

2641+
@cached_property
2642+
def financial_activity(self) -> financial_activity.FinancialActivityResourceWithStreamingResponse:
2643+
from .resources.financial_activity import FinancialActivityResourceWithStreamingResponse
2644+
2645+
return FinancialActivityResourceWithStreamingResponse(self._client.financial_activity)
2646+
26152647
@cached_property
26162648
def swaps(self) -> swaps.SwapsResourceWithStreamingResponse:
26172649
from .resources.swaps import SwapsResourceWithStreamingResponse
@@ -3062,6 +3094,12 @@ def wallets(self) -> wallets.AsyncWalletsResourceWithStreamingResponse:
30623094

30633095
return AsyncWalletsResourceWithStreamingResponse(self._client.wallets)
30643096

3097+
@cached_property
3098+
def financial_activity(self) -> financial_activity.AsyncFinancialActivityResourceWithStreamingResponse:
3099+
from .resources.financial_activity import AsyncFinancialActivityResourceWithStreamingResponse
3100+
3101+
return AsyncFinancialActivityResourceWithStreamingResponse(self._client.financial_activity)
3102+
30653103
@cached_property
30663104
def swaps(self) -> swaps.AsyncSwapsResourceWithStreamingResponse:
30673105
from .resources.swaps import AsyncSwapsResourceWithStreamingResponse

‎src/whop_sdk/resources/__init__.py‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,14 @@
472472
SupportChannelsResourceWithStreamingResponse,
473473
AsyncSupportChannelsResourceWithStreamingResponse,
474474
)
475+
from .financial_activity import (
476+
FinancialActivityResource,
477+
AsyncFinancialActivityResource,
478+
FinancialActivityResourceWithRawResponse,
479+
AsyncFinancialActivityResourceWithRawResponse,
480+
FinancialActivityResourceWithStreamingResponse,
481+
AsyncFinancialActivityResourceWithStreamingResponse,
482+
)
475483
from .checkout_configurations import (
476484
CheckoutConfigurationsResource,
477485
AsyncCheckoutConfigurationsResource,
@@ -740,6 +748,12 @@
740748
"AsyncWalletsResourceWithRawResponse",
741749
"WalletsResourceWithStreamingResponse",
742750
"AsyncWalletsResourceWithStreamingResponse",
751+
"FinancialActivityResource",
752+
"AsyncFinancialActivityResource",
753+
"FinancialActivityResourceWithRawResponse",
754+
"AsyncFinancialActivityResourceWithRawResponse",
755+
"FinancialActivityResourceWithStreamingResponse",
756+
"AsyncFinancialActivityResourceWithStreamingResponse",
743757
"SwapsResource",
744758
"AsyncSwapsResource",
745759
"SwapsResourceWithRawResponse",

0 commit comments

Comments
 (0)