Skip to content

Commit 5137fdc

Browse files
author
stlc-bot
committed
Build SDK
Stainless-Generated-From: e9d05fd
1 parent 2334421 commit 5137fdc

46 files changed

Lines changed: 2214 additions & 951 deletions

Some content is hidden

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

‎api.md‎

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -743,11 +743,13 @@ Methods:
743743
Types:
744744

745745
```python
746-
from whop_sdk.types import SwapCreateQuoteResponse
746+
from whop_sdk.types import SwapCreateResponse, SwapRetrieveResponse, SwapCreateQuoteResponse
747747
```
748748

749749
Methods:
750750

751+
- <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>
752+
- <code title="get /swaps/{account_id}">client.swaps.<a href="./src/whop_sdk/resources/swaps.py">retrieve</a>(account_id) -> <a href="./src/whop_sdk/types/swap_retrieve_response.py">SwapRetrieveResponse</a></code>
751753
- <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>
752754

753755
# Deposits
@@ -829,19 +831,9 @@ Methods:
829831
Types:
830832

831833
```python
832-
from whop_sdk.types import (
833-
VerificationErrorCode,
834-
VerificationStatus,
835-
VerificationRetrieveResponse,
836-
VerificationListResponse,
837-
)
834+
from whop_sdk.types import VerificationErrorCode, VerificationStatus
838835
```
839836

840-
Methods:
841-
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>
844-
845837
# Leads
846838

847839
Types:
@@ -1073,7 +1065,7 @@ from whop_sdk.types import AdCampaign, AdCampaignPlatform, AdCampaignStatus, AdC
10731065

10741066
Methods:
10751067

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>
1068+
- <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>
10771069
- <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>
10781070
- <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>
10791071
- <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 +1087,7 @@ from whop_sdk.types import (
10951087

10961088
Methods:
10971089

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>
1090+
- <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>
10991091
- <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>
11001092
- <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>
11011093
- <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 +1104,7 @@ from whop_sdk.types import Ad, ExternalAdStatus, AdListResponse
11121104

11131105
Methods:
11141106

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>
1107+
- <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>
11161108
- <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>
11171109
- <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>
11181110
- <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: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@
8484
chat_channels,
8585
notifications,
8686
setup_intents,
87-
verifications,
8887
course_lessons,
8988
dispute_alerts,
9089
payout_methods,
@@ -147,7 +146,6 @@
147146
from .resources.chat_channels import ChatChannelsResource, AsyncChatChannelsResource
148147
from .resources.notifications import NotificationsResource, AsyncNotificationsResource
149148
from .resources.setup_intents import SetupIntentsResource, AsyncSetupIntentsResource
150-
from .resources.verifications import VerificationsResource, AsyncVerificationsResource
151149
from .resources.course_lessons import CourseLessonsResource, AsyncCourseLessonsResource
152150
from .resources.dispute_alerts import DisputeAlertsResource, AsyncDisputeAlertsResource
153151
from .resources.payout_methods import PayoutMethodsResource, AsyncPayoutMethodsResource
@@ -563,13 +561,6 @@ def payout_methods(self) -> PayoutMethodsResource:
563561

564562
return PayoutMethodsResource(self)
565563

566-
@cached_property
567-
def verifications(self) -> VerificationsResource:
568-
"""Verifications"""
569-
from .resources.verifications import VerificationsResource
570-
571-
return VerificationsResource(self)
572-
573564
@cached_property
574565
def leads(self) -> LeadsResource:
575566
"""Leads"""
@@ -1197,13 +1188,6 @@ def payout_methods(self) -> AsyncPayoutMethodsResource:
11971188

11981189
return AsyncPayoutMethodsResource(self)
11991190

1200-
@cached_property
1201-
def verifications(self) -> AsyncVerificationsResource:
1202-
"""Verifications"""
1203-
from .resources.verifications import AsyncVerificationsResource
1204-
1205-
return AsyncVerificationsResource(self)
1206-
12071191
@cached_property
12081192
def leads(self) -> AsyncLeadsResource:
12091193
"""Leads"""
@@ -1758,13 +1742,6 @@ def payout_methods(self) -> payout_methods.PayoutMethodsResourceWithRawResponse:
17581742

17591743
return PayoutMethodsResourceWithRawResponse(self._client.payout_methods)
17601744

1761-
@cached_property
1762-
def verifications(self) -> verifications.VerificationsResourceWithRawResponse:
1763-
"""Verifications"""
1764-
from .resources.verifications import VerificationsResourceWithRawResponse
1765-
1766-
return VerificationsResourceWithRawResponse(self._client.verifications)
1767-
17681745
@cached_property
17691746
def leads(self) -> leads.LeadsResourceWithRawResponse:
17701747
"""Leads"""
@@ -2204,13 +2181,6 @@ def payout_methods(self) -> payout_methods.AsyncPayoutMethodsResourceWithRawResp
22042181

22052182
return AsyncPayoutMethodsResourceWithRawResponse(self._client.payout_methods)
22062183

2207-
@cached_property
2208-
def verifications(self) -> verifications.AsyncVerificationsResourceWithRawResponse:
2209-
"""Verifications"""
2210-
from .resources.verifications import AsyncVerificationsResourceWithRawResponse
2211-
2212-
return AsyncVerificationsResourceWithRawResponse(self._client.verifications)
2213-
22142184
@cached_property
22152185
def leads(self) -> leads.AsyncLeadsResourceWithRawResponse:
22162186
"""Leads"""
@@ -2652,13 +2622,6 @@ def payout_methods(self) -> payout_methods.PayoutMethodsResourceWithStreamingRes
26522622

26532623
return PayoutMethodsResourceWithStreamingResponse(self._client.payout_methods)
26542624

2655-
@cached_property
2656-
def verifications(self) -> verifications.VerificationsResourceWithStreamingResponse:
2657-
"""Verifications"""
2658-
from .resources.verifications import VerificationsResourceWithStreamingResponse
2659-
2660-
return VerificationsResourceWithStreamingResponse(self._client.verifications)
2661-
26622625
@cached_property
26632626
def leads(self) -> leads.LeadsResourceWithStreamingResponse:
26642627
"""Leads"""
@@ -3102,13 +3065,6 @@ def payout_methods(self) -> payout_methods.AsyncPayoutMethodsResourceWithStreami
31023065

31033066
return AsyncPayoutMethodsResourceWithStreamingResponse(self._client.payout_methods)
31043067

3105-
@cached_property
3106-
def verifications(self) -> verifications.AsyncVerificationsResourceWithStreamingResponse:
3107-
"""Verifications"""
3108-
from .resources.verifications import AsyncVerificationsResourceWithStreamingResponse
3109-
3110-
return AsyncVerificationsResourceWithStreamingResponse(self._client.verifications)
3111-
31123068
@cached_property
31133069
def leads(self) -> leads.AsyncLeadsResourceWithStreamingResponse:
31143070
"""Leads"""

‎src/whop_sdk/resources/__init__.py‎

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -384,14 +384,6 @@
384384
SetupIntentsResourceWithStreamingResponse,
385385
AsyncSetupIntentsResourceWithStreamingResponse,
386386
)
387-
from .verifications import (
388-
VerificationsResource,
389-
AsyncVerificationsResource,
390-
VerificationsResourceWithRawResponse,
391-
AsyncVerificationsResourceWithRawResponse,
392-
VerificationsResourceWithStreamingResponse,
393-
AsyncVerificationsResourceWithStreamingResponse,
394-
)
395387
from .course_lessons import (
396388
CourseLessonsResource,
397389
AsyncCourseLessonsResource,
@@ -776,12 +768,6 @@
776768
"AsyncPayoutMethodsResourceWithRawResponse",
777769
"PayoutMethodsResourceWithStreamingResponse",
778770
"AsyncPayoutMethodsResourceWithStreamingResponse",
779-
"VerificationsResource",
780-
"AsyncVerificationsResource",
781-
"VerificationsResourceWithRawResponse",
782-
"AsyncVerificationsResourceWithRawResponse",
783-
"VerificationsResourceWithStreamingResponse",
784-
"AsyncVerificationsResourceWithStreamingResponse",
785771
"LeadsResource",
786772
"AsyncLeadsResource",
787773
"LeadsResourceWithRawResponse",

0 commit comments

Comments
 (0)