Skip to content

Commit b285074

Browse files
committed
ron: adding strip_customer_id to python sdk to support entitlements
1 parent cab11e9 commit b285074

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

workos/organizations.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ def update_organization(
105105
organization (str): Organization's unique identifier.
106106
name (str): A descriptive name for the organization. (Optional)
107107
domain_data (Sequence[DomainDataInput]): List of domains that belong to the organization. (Optional)
108+
stripe_customer_id (str): The ID of the Stripe customer associated with the organization. (Optional)
108109
109110
Returns:
110111
Organization: Updated Organization response from WorkOS.
@@ -206,10 +207,12 @@ def update_organization(
206207
organization_id: str,
207208
name: Optional[str] = None,
208209
domain_data: Optional[Sequence[DomainDataInput]] = None,
210+
stripe_customer_id: Optional[str] = None,
209211
) -> Organization:
210212
json = {
211213
"name": name,
212214
"domain_data": domain_data,
215+
"stripe_customer_id": stripe_customer_id,
213216
}
214217

215218
response = self._http_client.request(
@@ -316,10 +319,12 @@ async def update_organization(
316319
organization_id: str,
317320
name: Optional[str] = None,
318321
domain_data: Optional[Sequence[DomainDataInput]] = None,
322+
stripe_customer_id: Optional[str] = None,
319323
) -> Organization:
320324
json = {
321325
"name": name,
322326
"domain_data": domain_data,
327+
"stripe_customer_id": stripe_customer_id,
323328
}
324329

325330
response = await self._http_client.request(

0 commit comments

Comments
 (0)