Skip to content

Commit 6d69509

Browse files
author
stlc-bot
committed
Build SDK
Stainless-Generated-From: 25bb723
1 parent 2334421 commit 6d69509

62 files changed

Lines changed: 3924 additions & 572 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: 231

‎api.md‎

Lines changed: 27 additions & 9 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
@@ -832,15 +846,19 @@ Types:
832846
from whop_sdk.types import (
833847
VerificationErrorCode,
834848
VerificationStatus,
849+
VerificationCreateResponse,
835850
VerificationRetrieveResponse,
836-
VerificationListResponse,
851+
VerificationUpdateResponse,
852+
VerificationDeleteResponse,
837853
)
838854
```
839855

840856
Methods:
841857

842-
- <code title="get /verifications/{id}">client.verifications.<a href="./src/whop_sdk/resources/verifications.py">retrieve</a>(id) -> <a href="./src/whop_sdk/types/verification_retrieve_response.py">VerificationRetrieveResponse</a></code>
843-
- <code title="get /verifications">client.verifications.<a href="./src/whop_sdk/resources/verifications.py">list</a>(\*\*<a href="src/whop_sdk/types/verification_list_params.py">params</a>) -> <a href="./src/whop_sdk/types/verification_list_response.py">SyncCursorPage[VerificationListResponse]</a></code>
858+
- <code title="post /verifications">client.verifications.<a href="./src/whop_sdk/resources/verifications.py">create</a>(\*\*<a href="src/whop_sdk/types/verification_create_params.py">params</a>) -> <a href="./src/whop_sdk/types/verification_create_response.py">VerificationCreateResponse</a></code>
859+
- <code title="get /verifications/{verification_id}">client.verifications.<a href="./src/whop_sdk/resources/verifications.py">retrieve</a>(verification_id) -> <a href="./src/whop_sdk/types/verification_retrieve_response.py">VerificationRetrieveResponse</a></code>
860+
- <code title="patch /verifications/{verification_id}">client.verifications.<a href="./src/whop_sdk/resources/verifications.py">update</a>(verification_id, \*\*<a href="src/whop_sdk/types/verification_update_params.py">params</a>) -> <a href="./src/whop_sdk/types/verification_update_response.py">VerificationUpdateResponse</a></code>
861+
- <code title="delete /verifications/{verification_id}">client.verifications.<a href="./src/whop_sdk/resources/verifications.py">delete</a>(verification_id) -> <a href="./src/whop_sdk/types/verification_delete_response.py">VerificationDeleteResponse</a></code>
844862

845863
# Leads
846864

@@ -1073,7 +1091,7 @@ from whop_sdk.types import AdCampaign, AdCampaignPlatform, AdCampaignStatus, AdC
10731091

10741092
Methods:
10751093

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>
1094+
- <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>
10771095
- <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>
10781096
- <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>
10791097
- <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 +1113,7 @@ from whop_sdk.types import (
10951113

10961114
Methods:
10971115

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>
1116+
- <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>
10991117
- <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>
11001118
- <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>
11011119
- <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 +1130,7 @@ from whop_sdk.types import Ad, ExternalAdStatus, AdListResponse
11121130

11131131
Methods:
11141132

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>
1133+
- <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>
11161134
- <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>
11171135
- <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>
11181136
- <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)