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.29"
".": "0.0.30"
}
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 173
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/frostedinc%2Fwhopsdk-a31feaddba91a6f9add1ab7e57c9d03f60c5aea5fd18d5cebeb180bd78853cd0.yml
openapi_spec_hash: 15788ce9abb169053dc150c176bdc2c9
config_hash: a3ec073d5f42f198e0ad21d85906c97e
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/frostedinc%2Fwhopsdk-cc6caefebc5d0c5b09a38a2ca3de9b07a8af8017a45a3a8ae4687eea30e5df93.yml
openapi_spec_hash: 384c511adb0c53319ac3ece08843f485
config_hash: 8ac153ea57fa6460b13cded3f7c9c7a6
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.0.30 (2026-02-26)

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

### Features

* **api:** api update ([8bacc15](https://github.com/whopio/whopsdk-python/commit/8bacc150c24deaf43874fc8bab9001c7eee0b707))

## 0.0.29 (2026-02-25)

Full Changelog: [v0.0.28...v0.0.29](https://github.com/whopio/whopsdk-python/compare/v0.0.28...v0.0.29)
Expand Down
4 changes: 1 addition & 3 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ from whop_sdk.types import (
AppStatuses,
AppViewType,
AuthorizedUserRoles,
BusinessTypes,
ChatChannel,
CheckoutConfiguration,
CollectionMethod,
Expand All @@ -30,7 +29,6 @@ from whop_sdk.types import (
ForumPost,
FriendlyReceiptStatus,
GlobalAffiliateStatus,
IndustryTypes,
Invoice,
InvoiceListItem,
InvoiceStatus,
Expand Down Expand Up @@ -107,7 +105,7 @@ Methods:
Types:

```python
from whop_sdk.types import IndustryGroups, ProductDeleteResponse
from whop_sdk.types import ProductDeleteResponse
```

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.29"
version = "0.0.30"
description = "The official Python library for the Whop API"
dynamic = ["readme"]
license = "Apache-2.0"
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.29" # x-release-please-version
__version__ = "0.0.30" # x-release-please-version
53 changes: 1 addition & 52 deletions src/whop_sdk/resources/companies.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import httpx

from ..types import IndustryGroups, company_list_params, company_create_params, company_update_params
from ..types import company_list_params, company_create_params, company_update_params
from .._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
from .._utils import maybe_transform, async_maybe_transform
from .._compat import cached_property
Expand All @@ -21,11 +21,8 @@
from ..pagination import SyncCursorPage, AsyncCursorPage
from .._base_client import AsyncPaginator, make_request_options
from ..types.shared.company import Company
from ..types.industry_groups import IndustryGroups
from ..types.shared.direction import Direction
from ..types.company_list_response import CompanyListResponse
from ..types.shared.business_types import BusinessTypes
from ..types.shared.industry_types import IndustryTypes

__all__ = ["CompaniesResource", "AsyncCompaniesResource"]

Expand Down Expand Up @@ -54,11 +51,8 @@ def create(
self,
*,
title: str,
business_type: Optional[BusinessTypes] | Omit = omit,
description: Optional[str] | Omit = omit,
email: Optional[str] | Omit = omit,
industry_group: Optional[IndustryGroups] | Omit = omit,
industry_type: Optional[IndustryTypes] | Omit = omit,
logo: Optional[company_create_params.Logo] | Omit = omit,
metadata: Optional[Dict[str, object]] | Omit = omit,
parent_company_id: Optional[str] | Omit = omit,
Expand All @@ -83,18 +77,12 @@ def create(
Args:
title: The display name of the company shown to customers.

business_type: The different business types a company can be.

description: A promotional pitch displayed to potential customers on the company's store
page.

email: The email address of the user who will own the connected account. Required when
parent_company_id is provided.

industry_group: The different industry groups a company can be in.

industry_type: The different industry types a company can be in.

logo: The company's logo image. Accepts PNG, JPEG, or GIF format.

metadata: A key-value JSON object of custom metadata to store on the company.
Expand All @@ -119,11 +107,8 @@ def create(
body=maybe_transform(
{
"title": title,
"business_type": business_type,
"description": description,
"email": email,
"industry_group": industry_group,
"industry_type": industry_type,
"logo": logo,
"metadata": metadata,
"parent_company_id": parent_company_id,
Expand Down Expand Up @@ -179,10 +164,7 @@ def update(
id: str,
*,
banner_image: Optional[company_update_params.BannerImage] | Omit = omit,
business_type: Optional[BusinessTypes] | Omit = omit,
description: Optional[str] | Omit = omit,
industry_group: Optional[IndustryGroups] | Omit = omit,
industry_type: Optional[IndustryTypes] | Omit = omit,
logo: Optional[company_update_params.Logo] | Omit = omit,
route: Optional[str] | Omit = omit,
send_customer_emails: Optional[bool] | Omit = omit,
Expand All @@ -206,15 +188,9 @@ def update(
Args:
banner_image: The company's banner image. Accepts PNG or JPEG format.

business_type: The different business types a company can be.

description: A promotional pitch displayed to potential customers on the company's store
page.

industry_group: The different industry groups a company can be in.

industry_type: The different industry types a company can be in.

logo: The company's logo image. Accepts PNG, JPEG, or GIF format.

route: The unique URL slug for the company's store page. Must be lowercase and can
Expand Down Expand Up @@ -244,10 +220,7 @@ def update(
body=maybe_transform(
{
"banner_image": banner_image,
"business_type": business_type,
"description": description,
"industry_group": industry_group,
"industry_type": industry_type,
"logo": logo,
"route": route,
"send_customer_emails": send_customer_emails,
Expand Down Expand Up @@ -367,11 +340,8 @@ async def create(
self,
*,
title: str,
business_type: Optional[BusinessTypes] | Omit = omit,
description: Optional[str] | Omit = omit,
email: Optional[str] | Omit = omit,
industry_group: Optional[IndustryGroups] | Omit = omit,
industry_type: Optional[IndustryTypes] | Omit = omit,
logo: Optional[company_create_params.Logo] | Omit = omit,
metadata: Optional[Dict[str, object]] | Omit = omit,
parent_company_id: Optional[str] | Omit = omit,
Expand All @@ -396,18 +366,12 @@ async def create(
Args:
title: The display name of the company shown to customers.

business_type: The different business types a company can be.

description: A promotional pitch displayed to potential customers on the company's store
page.

email: The email address of the user who will own the connected account. Required when
parent_company_id is provided.

industry_group: The different industry groups a company can be in.

industry_type: The different industry types a company can be in.

logo: The company's logo image. Accepts PNG, JPEG, or GIF format.

metadata: A key-value JSON object of custom metadata to store on the company.
Expand All @@ -432,11 +396,8 @@ async def create(
body=await async_maybe_transform(
{
"title": title,
"business_type": business_type,
"description": description,
"email": email,
"industry_group": industry_group,
"industry_type": industry_type,
"logo": logo,
"metadata": metadata,
"parent_company_id": parent_company_id,
Expand Down Expand Up @@ -492,10 +453,7 @@ async def update(
id: str,
*,
banner_image: Optional[company_update_params.BannerImage] | Omit = omit,
business_type: Optional[BusinessTypes] | Omit = omit,
description: Optional[str] | Omit = omit,
industry_group: Optional[IndustryGroups] | Omit = omit,
industry_type: Optional[IndustryTypes] | Omit = omit,
logo: Optional[company_update_params.Logo] | Omit = omit,
route: Optional[str] | Omit = omit,
send_customer_emails: Optional[bool] | Omit = omit,
Expand All @@ -519,15 +477,9 @@ async def update(
Args:
banner_image: The company's banner image. Accepts PNG or JPEG format.

business_type: The different business types a company can be.

description: A promotional pitch displayed to potential customers on the company's store
page.

industry_group: The different industry groups a company can be in.

industry_type: The different industry types a company can be in.

logo: The company's logo image. Accepts PNG, JPEG, or GIF format.

route: The unique URL slug for the company's store page. Must be lowercase and can
Expand Down Expand Up @@ -557,10 +509,7 @@ async def update(
body=await async_maybe_transform(
{
"banner_image": banner_image,
"business_type": business_type,
"description": description,
"industry_group": industry_group,
"industry_type": industry_type,
"logo": logo,
"route": route,
"send_customer_emails": send_customer_emails,
Expand Down
Loading