Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.0.32"
".": "0.0.33"
}
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 178
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/frostedinc%2Fwhopsdk-187882c4d823394e3577f9843c288f4187e4f9b38646105c40b88e4e83b27979.yml
openapi_spec_hash: 16eb1c84681dc3ad39c987b7abf1e191
config_hash: e9bda7cddca13f2b41d8f7521ad36cf5
configured_endpoints: 180
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/frostedinc%2Fwhopsdk-51fb88de05d428f3ea78a4b7ba2d5c6e04ae039816961e810f99d9d5d29bc015.yml
openapi_spec_hash: d59179d7d9a835795741673012f20d79
config_hash: a9229678a4146beeb5be82ed0ae3d4f1
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## 0.0.33 (2026-03-12)

Full Changelog: [v0.0.32...v0.0.33](https://github.com/whopio/whopsdk-python/compare/v0.0.32...v0.0.33)

### Features

* **api:** api update ([fa0be9f](https://github.com/whopio/whopsdk-python/commit/fa0be9f1a605b098278a59a92fb9cb297e19c5cc))
* **api:** manual updates ([95a8539](https://github.com/whopio/whopsdk-python/commit/95a853935639b8d520d545b5e6e647ecc8c287b5))

## 0.0.32 (2026-03-11)

Full Changelog: [v0.0.30...v0.0.32](https://github.com/whopio/whopsdk-python/compare/v0.0.30...v0.0.32)
Expand Down
21 changes: 20 additions & 1 deletion api.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ from whop_sdk.types import (
CourseLessonInteractionCompletedWebhookEvent,
PayoutMethodCreatedWebhookEvent,
VerificationSucceededWebhookEvent,
PayoutAccountStatusUpdatedWebhookEvent,
PaymentCreatedWebhookEvent,
PaymentSucceededWebhookEvent,
PaymentFailedWebhookEvent,
Expand Down Expand Up @@ -749,12 +750,18 @@ Methods:
Types:

```python
from whop_sdk.types import VerificationErrorCode, VerificationStatus, VerificationRetrieveResponse
from whop_sdk.types import (
VerificationErrorCode,
VerificationStatus,
VerificationRetrieveResponse,
VerificationListResponse,
)
```

Methods:

- <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>
- <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>

# Leads

Expand Down Expand Up @@ -901,3 +908,15 @@ Methods:

- <code title="get /resolution_center_cases/{id}">client.resolution_center_cases.<a href="./src/whop_sdk/resources/resolution_center_cases.py">retrieve</a>(id) -> <a href="./src/whop_sdk/types/resolution_center_case_retrieve_response.py">ResolutionCenterCaseRetrieveResponse</a></code>
- <code title="get /resolution_center_cases">client.resolution_center_cases.<a href="./src/whop_sdk/resources/resolution_center_cases.py">list</a>(\*\*<a href="src/whop_sdk/types/resolution_center_case_list_params.py">params</a>) -> <a href="./src/whop_sdk/types/resolution_center_case_list_response.py">SyncCursorPage[ResolutionCenterCaseListResponse]</a></code>

# PayoutAccounts

Types:

```python
from whop_sdk.types import PayoutAccountCalculatedStatuses, PayoutAccountRetrieveResponse
```

Methods:

- <code title="get /payout_accounts/{id}">client.payout_accounts.<a href="./src/whop_sdk/resources/payout_accounts.py">retrieve</a>(id) -> <a href="./src/whop_sdk/types/payout_account_retrieve_response.py">PayoutAccountRetrieveResponse</a></code>
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "whop-sdk"
version = "0.0.32"
version = "0.0.33"
description = "The official Python library for the Whop API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
44 changes: 44 additions & 0 deletions src/whop_sdk/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
course_students,
ledger_accounts,
payment_methods,
payout_accounts,
authorized_users,
support_channels,
checkout_configurations,
Expand Down Expand Up @@ -129,6 +130,7 @@
from .resources.course_students import CourseStudentsResource, AsyncCourseStudentsResource
from .resources.ledger_accounts import LedgerAccountsResource, AsyncLedgerAccountsResource
from .resources.payment_methods import PaymentMethodsResource, AsyncPaymentMethodsResource
from .resources.payout_accounts import PayoutAccountsResource, AsyncPayoutAccountsResource
from .resources.authorized_users import AuthorizedUsersResource, AsyncAuthorizedUsersResource
from .resources.support_channels import SupportChannelsResource, AsyncSupportChannelsResource
from .resources.checkout_configurations import CheckoutConfigurationsResource, AsyncCheckoutConfigurationsResource
Expand Down Expand Up @@ -522,6 +524,13 @@ def resolution_center_cases(self) -> ResolutionCenterCasesResource:

return ResolutionCenterCasesResource(self)

@cached_property
def payout_accounts(self) -> PayoutAccountsResource:
"""Payout accounts"""
from .resources.payout_accounts import PayoutAccountsResource

return PayoutAccountsResource(self)

@cached_property
def with_raw_response(self) -> WhopWithRawResponse:
return WhopWithRawResponse(self)
Expand Down Expand Up @@ -1017,6 +1026,13 @@ def resolution_center_cases(self) -> AsyncResolutionCenterCasesResource:

return AsyncResolutionCenterCasesResource(self)

@cached_property
def payout_accounts(self) -> AsyncPayoutAccountsResource:
"""Payout accounts"""
from .resources.payout_accounts import AsyncPayoutAccountsResource

return AsyncPayoutAccountsResource(self)

@cached_property
def with_raw_response(self) -> AsyncWhopWithRawResponse:
return AsyncWhopWithRawResponse(self)
Expand Down Expand Up @@ -1448,6 +1464,13 @@ def resolution_center_cases(self) -> resolution_center_cases.ResolutionCenterCas

return ResolutionCenterCasesResourceWithRawResponse(self._client.resolution_center_cases)

@cached_property
def payout_accounts(self) -> payout_accounts.PayoutAccountsResourceWithRawResponse:
"""Payout accounts"""
from .resources.payout_accounts import PayoutAccountsResourceWithRawResponse

return PayoutAccountsResourceWithRawResponse(self._client.payout_accounts)


class AsyncWhopWithRawResponse:
_client: AsyncWhop
Expand Down Expand Up @@ -1766,6 +1789,13 @@ def resolution_center_cases(self) -> resolution_center_cases.AsyncResolutionCent

return AsyncResolutionCenterCasesResourceWithRawResponse(self._client.resolution_center_cases)

@cached_property
def payout_accounts(self) -> payout_accounts.AsyncPayoutAccountsResourceWithRawResponse:
"""Payout accounts"""
from .resources.payout_accounts import AsyncPayoutAccountsResourceWithRawResponse

return AsyncPayoutAccountsResourceWithRawResponse(self._client.payout_accounts)


class WhopWithStreamedResponse:
_client: Whop
Expand Down Expand Up @@ -2084,6 +2114,13 @@ def resolution_center_cases(self) -> resolution_center_cases.ResolutionCenterCas

return ResolutionCenterCasesResourceWithStreamingResponse(self._client.resolution_center_cases)

@cached_property
def payout_accounts(self) -> payout_accounts.PayoutAccountsResourceWithStreamingResponse:
"""Payout accounts"""
from .resources.payout_accounts import PayoutAccountsResourceWithStreamingResponse

return PayoutAccountsResourceWithStreamingResponse(self._client.payout_accounts)


class AsyncWhopWithStreamedResponse:
_client: AsyncWhop
Expand Down Expand Up @@ -2406,6 +2443,13 @@ def resolution_center_cases(

return AsyncResolutionCenterCasesResourceWithStreamingResponse(self._client.resolution_center_cases)

@cached_property
def payout_accounts(self) -> payout_accounts.AsyncPayoutAccountsResourceWithStreamingResponse:
"""Payout accounts"""
from .resources.payout_accounts import AsyncPayoutAccountsResourceWithStreamingResponse

return AsyncPayoutAccountsResourceWithStreamingResponse(self._client.payout_accounts)


Client = Whop

Expand Down
2 changes: 1 addition & 1 deletion src/whop_sdk/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "whop_sdk"
__version__ = "0.0.32" # x-release-please-version
__version__ = "0.0.33" # x-release-please-version
14 changes: 14 additions & 0 deletions src/whop_sdk/resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,14 @@
PaymentMethodsResourceWithStreamingResponse,
AsyncPaymentMethodsResourceWithStreamingResponse,
)
from .payout_accounts import (
PayoutAccountsResource,
AsyncPayoutAccountsResource,
PayoutAccountsResourceWithRawResponse,
AsyncPayoutAccountsResourceWithRawResponse,
PayoutAccountsResourceWithStreamingResponse,
AsyncPayoutAccountsResourceWithStreamingResponse,
)
from .authorized_users import (
AuthorizedUsersResource,
AsyncAuthorizedUsersResource,
Expand Down Expand Up @@ -716,4 +724,10 @@
"AsyncResolutionCenterCasesResourceWithRawResponse",
"ResolutionCenterCasesResourceWithStreamingResponse",
"AsyncResolutionCenterCasesResourceWithStreamingResponse",
"PayoutAccountsResource",
"AsyncPayoutAccountsResource",
"PayoutAccountsResourceWithRawResponse",
"AsyncPayoutAccountsResourceWithRawResponse",
"PayoutAccountsResourceWithStreamingResponse",
"AsyncPayoutAccountsResourceWithStreamingResponse",
]
175 changes: 175 additions & 0 deletions src/whop_sdk/resources/payout_accounts.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,175 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from __future__ import annotations

import httpx

from .._types import Body, Query, Headers, NotGiven, not_given
from .._compat import cached_property
from .._resource import SyncAPIResource, AsyncAPIResource
from .._response import (
to_raw_response_wrapper,
to_streamed_response_wrapper,
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
from .._base_client import make_request_options
from ..types.payout_account_retrieve_response import PayoutAccountRetrieveResponse

__all__ = ["PayoutAccountsResource", "AsyncPayoutAccountsResource"]


class PayoutAccountsResource(SyncAPIResource):
"""Payout accounts"""

@cached_property
def with_raw_response(self) -> PayoutAccountsResourceWithRawResponse:
"""
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.

For more information, see https://www.github.com/whopio/whopsdk-python#accessing-raw-response-data-eg-headers
"""
return PayoutAccountsResourceWithRawResponse(self)

@cached_property
def with_streaming_response(self) -> PayoutAccountsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.

For more information, see https://www.github.com/whopio/whopsdk-python#with_streaming_response
"""
return PayoutAccountsResourceWithStreamingResponse(self)

def retrieve(
self,
id: str,
*,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
) -> PayoutAccountRetrieveResponse:
"""
Retrieves the details of an existing payout account.

Required permissions:

- `payout:account:read`

Args:
extra_headers: Send extra headers

extra_query: Add additional query parameters to the request

extra_body: Add additional JSON properties to the request

timeout: Override the client-level default timeout for this request, in seconds
"""
if not id:
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
return self._get(
f"/payout_accounts/{id}",
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
cast_to=PayoutAccountRetrieveResponse,
)


class AsyncPayoutAccountsResource(AsyncAPIResource):
"""Payout accounts"""

@cached_property
def with_raw_response(self) -> AsyncPayoutAccountsResourceWithRawResponse:
"""
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.

For more information, see https://www.github.com/whopio/whopsdk-python#accessing-raw-response-data-eg-headers
"""
return AsyncPayoutAccountsResourceWithRawResponse(self)

@cached_property
def with_streaming_response(self) -> AsyncPayoutAccountsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.

For more information, see https://www.github.com/whopio/whopsdk-python#with_streaming_response
"""
return AsyncPayoutAccountsResourceWithStreamingResponse(self)

async def retrieve(
self,
id: str,
*,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
) -> PayoutAccountRetrieveResponse:
"""
Retrieves the details of an existing payout account.

Required permissions:

- `payout:account:read`

Args:
extra_headers: Send extra headers

extra_query: Add additional query parameters to the request

extra_body: Add additional JSON properties to the request

timeout: Override the client-level default timeout for this request, in seconds
"""
if not id:
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
return await self._get(
f"/payout_accounts/{id}",
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
cast_to=PayoutAccountRetrieveResponse,
)


class PayoutAccountsResourceWithRawResponse:
def __init__(self, payout_accounts: PayoutAccountsResource) -> None:
self._payout_accounts = payout_accounts

self.retrieve = to_raw_response_wrapper(
payout_accounts.retrieve,
)


class AsyncPayoutAccountsResourceWithRawResponse:
def __init__(self, payout_accounts: AsyncPayoutAccountsResource) -> None:
self._payout_accounts = payout_accounts

self.retrieve = async_to_raw_response_wrapper(
payout_accounts.retrieve,
)


class PayoutAccountsResourceWithStreamingResponse:
def __init__(self, payout_accounts: PayoutAccountsResource) -> None:
self._payout_accounts = payout_accounts

self.retrieve = to_streamed_response_wrapper(
payout_accounts.retrieve,
)


class AsyncPayoutAccountsResourceWithStreamingResponse:
def __init__(self, payout_accounts: AsyncPayoutAccountsResource) -> None:
self._payout_accounts = payout_accounts

self.retrieve = async_to_streamed_response_wrapper(
payout_accounts.retrieve,
)
Loading