Skip to content

Commit fbc3989

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

53 files changed

Lines changed: 3244 additions & 334 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: 230

‎api.md‎

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -728,26 +728,42 @@ from whop_sdk.types import (
728728
AccountWallet,
729729
WalletListResponse,
730730
WalletBalanceResponse,
731+
WalletCreateWithdrawalResponse,
731732
WalletSendResponse,
732733
)
733734
```
734735

735736
Methods:
736737

737738
- <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>
739+
- <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>
740+
- <code title="post /wallets/withdrawals">client.wallets.<a href="./src/whop_sdk/resources/wallets.py">create_withdrawal</a>(\*\*<a href="src/whop_sdk/types/wallet_create_withdrawal_params.py">params</a>) -> <a href="./src/whop_sdk/types/wallet_create_withdrawal_response.py">WalletCreateWithdrawalResponse</a></code>
741+
- <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>
742+
743+
# FinancialActivity
744+
745+
Types:
746+
747+
```python
748+
from whop_sdk.types import FinancialActivityListResponse
749+
```
750+
751+
Methods:
752+
753+
- <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>
740754

741755
# Swaps
742756

743757
Types:
744758

745759
```python
746-
from whop_sdk.types import SwapCreateQuoteResponse
760+
from whop_sdk.types import SwapCreateResponse, SwapRetrieveResponse, SwapCreateQuoteResponse
747761
```
748762

749763
Methods:
750764

765+
- <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>
766+
- <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>
751767
- <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>
752768

753769
# Deposits
@@ -1073,7 +1089,7 @@ from whop_sdk.types import AdCampaign, AdCampaignPlatform, AdCampaignStatus, AdC
10731089

10741090
Methods:
10751091

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>
1092+
- <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>
10771093
- <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>
10781094
- <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>
10791095
- <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 +1111,7 @@ from whop_sdk.types import (
10951111

10961112
Methods:
10971113

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>
1114+
- <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>
10991115
- <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>
11001116
- <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>
11011117
- <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 +1128,7 @@ from whop_sdk.types import Ad, ExternalAdStatus, AdListResponse
11121128

11131129
Methods:
11141130

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>
1131+
- <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>
11161132
- <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>
11171133
- <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>
11181134
- <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)