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.36"
".": "0.0.37"
}
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 193
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/frostedinc%2Fwhopsdk-876b65a7e83beed2ddf0d639f3df62f98d4da76d26724730d8ae49ba87855b0e.yml
openapi_spec_hash: 0512773c97cda918c1017f3b972bff0c
config_hash: fee5c8b2e5f00cef705ad48c3f3b5b5a
configured_endpoints: 195
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/frostedinc%2Fwhopsdk-58749e1928f402cc3e236d38b53bce3b10530bfaccbe426181bba9b1bfc42498.yml
openapi_spec_hash: ecea6e6c4b93665aee5554839a26ded8
config_hash: 2ceaf6cd488db626c181a1ca9460ace6
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
# Changelog

## 0.0.37 (2026-04-10)

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

### Features

* **api:** api update ([d2693a0](https://github.com/whopio/whopsdk-python/commit/d2693a0106620b442ef9e981cd8f8cc44ef26e8f))
* **api:** api update ([1e398a6](https://github.com/whopio/whopsdk-python/commit/1e398a68ff927c66eefaef4eae88fb2aecef9581))
* **api:** api update ([d17a56f](https://github.com/whopio/whopsdk-python/commit/d17a56ff7a5e89ce7863e3d44bd06912fc3ce94c))
* **api:** api update ([b85a378](https://github.com/whopio/whopsdk-python/commit/b85a3787bb1871cb46cbdde7bb809f590cb143ef))
* **api:** manual updates ([c401009](https://github.com/whopio/whopsdk-python/commit/c40100933895bfe8f2f20d480e8348b7092b4c89))


### Bug Fixes

* **client:** preserve hardcoded query params when merging with user params ([2a7a622](https://github.com/whopio/whopsdk-python/commit/2a7a622f89f262b1b2b6df0fb6354947db0e20f9))

## 0.0.36 (2026-04-07)

Full Changelog: [v0.0.35...v0.0.36](https://github.com/whopio/whopsdk-python/compare/v0.0.35...v0.0.36)
Expand Down
5 changes: 4 additions & 1 deletion api.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ Types:
```python
from whop_sdk.types import (
TaxIdentifierType,
InvoiceDeleteResponse,
InvoiceMarkPaidResponse,
InvoiceMarkUncollectibleResponse,
InvoiceVoidResponse,
Expand All @@ -95,7 +96,9 @@ Methods:

- <code title="post /invoices">client.invoices.<a href="./src/whop_sdk/resources/invoices.py">create</a>(\*\*<a href="src/whop_sdk/types/invoice_create_params.py">params</a>) -> <a href="./src/whop_sdk/types/shared/invoice.py">Invoice</a></code>
- <code title="get /invoices/{id}">client.invoices.<a href="./src/whop_sdk/resources/invoices.py">retrieve</a>(id) -> <a href="./src/whop_sdk/types/shared/invoice.py">Invoice</a></code>
- <code title="patch /invoices/{id}">client.invoices.<a href="./src/whop_sdk/resources/invoices.py">update</a>(id, \*\*<a href="src/whop_sdk/types/invoice_update_params.py">params</a>) -> <a href="./src/whop_sdk/types/shared/invoice.py">Invoice</a></code>
- <code title="get /invoices">client.invoices.<a href="./src/whop_sdk/resources/invoices.py">list</a>(\*\*<a href="src/whop_sdk/types/invoice_list_params.py">params</a>) -> <a href="./src/whop_sdk/types/shared/invoice_list_item.py">SyncCursorPage[InvoiceListItem]</a></code>
- <code title="delete /invoices/{id}">client.invoices.<a href="./src/whop_sdk/resources/invoices.py">delete</a>(id) -> <a href="./src/whop_sdk/types/invoice_delete_response.py">InvoiceDeleteResponse</a></code>
- <code title="post /invoices/{id}/mark_paid">client.invoices.<a href="./src/whop_sdk/resources/invoices.py">mark_paid</a>(id) -> <a href="./src/whop_sdk/types/invoice_mark_paid_response.py">InvoiceMarkPaidResponse</a></code>
- <code title="post /invoices/{id}/mark_uncollectible">client.invoices.<a href="./src/whop_sdk/resources/invoices.py">mark_uncollectible</a>(id) -> <a href="./src/whop_sdk/types/invoice_mark_uncollectible_response.py">InvoiceMarkUncollectibleResponse</a></code>
- <code title="post /invoices/{id}/void">client.invoices.<a href="./src/whop_sdk/resources/invoices.py">void</a>(id) -> <a href="./src/whop_sdk/types/invoice_void_response.py">InvoiceVoidResponse</a></code>
Expand Down Expand Up @@ -200,7 +203,7 @@ Methods:
Types:

```python
from whop_sdk.types import PlanListResponse, PlanDeleteResponse
from whop_sdk.types import CheckoutFont, CheckoutShape, PlanListResponse, PlanDeleteResponse
```

Methods:
Expand Down
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.36"
version = "0.0.37"
description = "The official Python library for the Whop API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
4 changes: 4 additions & 0 deletions src/whop_sdk/_base_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,10 @@ def _build_request(
files = cast(HttpxRequestFiles, ForceMultipartDict())

prepared_url = self._prepare_url(options.url)
# preserve hard-coded query params from the url
if params and prepared_url.query:
params = {**dict(prepared_url.params.items()), **params}
prepared_url = prepared_url.copy_with(raw_path=prepared_url.raw_path.split(b"?", 1)[0])
if "_" in prepared_url.host:
# work around https://github.com/encode/httpx/discussions/2880
kwargs["extensions"] = {"sni_hostname": prepared_url.host.replace("_", "-")}
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.36" # x-release-please-version
__version__ = "0.0.37" # x-release-please-version
Loading