From 870441848c7136aa1fd17ddffb7300f8d3502932 Mon Sep 17 00:00:00 2001
From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com>
Date: Mon, 16 Nov 2026 21:48:04 +0000
Subject: [PATCH 1/2] [fern-generated] Update SDK
Generated by Fern
CLI Version: unknown
Generators:
- fernapi/fern-python-sdk: 5.39.2
---
.fern/metadata.json | 2 +-
reference.md | 16 ++++++++++++++++
src/whop_sdk/invoices/client.py | 20 ++++++++++++++++++++
src/whop_sdk/invoices/raw_client.py | 20 ++++++++++++++++++++
src/whop_sdk/types/invoice.py | 5 +++++
5 files changed, 62 insertions(+), 1 deletion(-)
diff --git a/.fern/metadata.json b/.fern/metadata.json
index 7dffd1b6a..dd935984c 100644
--- a/.fern/metadata.json
+++ b/.fern/metadata.json
@@ -15,7 +15,7 @@
"standardwebhooks": ">=1.0.1,<2"
}
},
- "originGitCommit": "b997d8e562a0cd10912f9d5375336f9c4319f488",
+ "originGitCommit": "ecad5a5d0f90b1f058f39ae980c200701e10e3e1",
"originGitCommitIsDirty": false,
"invokedBy": "ci",
"requestedVersion": "2.8.1",
diff --git a/reference.md b/reference.md
index 8c2d1d8d4..8d35a6b18 100644
--- a/reference.md
+++ b/reference.md
@@ -27534,6 +27534,14 @@ client.invoices.create(
-
+**subscription_starts_at:** `typing.Optional[datetime.datetime]` — When the first billing period of the invoice's recurring items starts, as an ISO 8601 timestamp in the future. Renewals count from this moment. `null` starts the period when the invoice is paid. Needs a recurring item. Can be updated on drafts. A start date replaces a variant's free trial, and the invoice bills the full price.
+
+
+
+
+
+-
+
**time_zone:** `typing.Optional[str]` — The IANA time zone for the dates on the invoice's email and PDF. Set it so the due date reads as the day you picked. When omitted, a new invoice uses the time zone Whop has for the user creating it, else UTC. Can be updated on drafts.
@@ -27849,6 +27857,14 @@ client.invoices.update(
-
+**subscription_starts_at:** `typing.Optional[datetime.datetime]` — When the first billing period of the invoice's recurring items starts, as an ISO 8601 timestamp in the future. Renewals count from this moment. `null` starts the period when the invoice is paid. Needs a recurring item. Can be updated on drafts. A start date replaces a variant's free trial, and the invoice bills the full price.
+
+
+
+
+
+-
+
**time_zone:** `typing.Optional[str]` — The IANA time zone for the dates on the invoice's email and PDF. Set it so the due date reads as the day you picked. When omitted, a new invoice uses the time zone Whop has for the user creating it, else UTC. Can be updated on drafts.
diff --git a/src/whop_sdk/invoices/client.py b/src/whop_sdk/invoices/client.py
index af73c949d..de70b251f 100644
--- a/src/whop_sdk/invoices/client.py
+++ b/src/whop_sdk/invoices/client.py
@@ -183,6 +183,7 @@ def create(
payment_method_configuration: typing.Optional[CreateInvoicesRequestPaymentMethodConfiguration] = OMIT,
payment_method_id: typing.Optional[str] = OMIT,
recipient_emails: typing.Optional[typing.Sequence[str]] = OMIT,
+ subscription_starts_at: typing.Optional[dt.datetime] = OMIT,
time_zone: typing.Optional[str] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> Invoice:
@@ -233,6 +234,9 @@ def create(
recipient_emails : typing.Optional[typing.Sequence[str]]
Email addresses saved for invoice delivery, independent of the billed customer. Saving them sends no email. Defaults to the customer email when omitted on create. Can be updated on draft, open, or uncollectible invoices.
+ subscription_starts_at : typing.Optional[dt.datetime]
+ When the first billing period of the invoice's recurring items starts, as an ISO 8601 timestamp in the future. Renewals count from this moment. `null` starts the period when the invoice is paid. Needs a recurring item. Can be updated on drafts. A start date replaces a variant's free trial, and the invoice bills the full price.
+
time_zone : typing.Optional[str]
The IANA time zone for the dates on the invoice's email and PDF. Set it so the due date reads as the day you picked. When omitted, a new invoice uses the time zone Whop has for the user creating it, else UTC. Can be updated on drafts.
@@ -273,6 +277,7 @@ def create(
payment_method_configuration=payment_method_configuration,
payment_method_id=payment_method_id,
recipient_emails=recipient_emails,
+ subscription_starts_at=subscription_starts_at,
time_zone=time_zone,
request_options=request_options,
)
@@ -359,6 +364,7 @@ def update(
payment_method_configuration: typing.Optional[UpdateInvoicesRequestPaymentMethodConfiguration] = OMIT,
payment_method_id: typing.Optional[str] = OMIT,
recipient_emails: typing.Optional[typing.Sequence[str]] = OMIT,
+ subscription_starts_at: typing.Optional[dt.datetime] = OMIT,
time_zone: typing.Optional[str] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> Invoice:
@@ -403,6 +409,9 @@ def update(
recipient_emails : typing.Optional[typing.Sequence[str]]
Email addresses saved for invoice delivery, independent of the billed customer. Saving them sends no email. Defaults to the customer email when omitted on create. Can be updated on draft, open, or uncollectible invoices.
+ subscription_starts_at : typing.Optional[dt.datetime]
+ When the first billing period of the invoice's recurring items starts, as an ISO 8601 timestamp in the future. Renewals count from this moment. `null` starts the period when the invoice is paid. Needs a recurring item. Can be updated on drafts. A start date replaces a variant's free trial, and the invoice bills the full price.
+
time_zone : typing.Optional[str]
The IANA time zone for the dates on the invoice's email and PDF. Set it so the due date reads as the day you picked. When omitted, a new invoice uses the time zone Whop has for the user creating it, else UTC. Can be updated on drafts.
@@ -440,6 +449,7 @@ def update(
payment_method_configuration=payment_method_configuration,
payment_method_id=payment_method_id,
recipient_emails=recipient_emails,
+ subscription_starts_at=subscription_starts_at,
time_zone=time_zone,
request_options=request_options,
)
@@ -903,6 +913,7 @@ async def create(
payment_method_configuration: typing.Optional[CreateInvoicesRequestPaymentMethodConfiguration] = OMIT,
payment_method_id: typing.Optional[str] = OMIT,
recipient_emails: typing.Optional[typing.Sequence[str]] = OMIT,
+ subscription_starts_at: typing.Optional[dt.datetime] = OMIT,
time_zone: typing.Optional[str] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> Invoice:
@@ -953,6 +964,9 @@ async def create(
recipient_emails : typing.Optional[typing.Sequence[str]]
Email addresses saved for invoice delivery, independent of the billed customer. Saving them sends no email. Defaults to the customer email when omitted on create. Can be updated on draft, open, or uncollectible invoices.
+ subscription_starts_at : typing.Optional[dt.datetime]
+ When the first billing period of the invoice's recurring items starts, as an ISO 8601 timestamp in the future. Renewals count from this moment. `null` starts the period when the invoice is paid. Needs a recurring item. Can be updated on drafts. A start date replaces a variant's free trial, and the invoice bills the full price.
+
time_zone : typing.Optional[str]
The IANA time zone for the dates on the invoice's email and PDF. Set it so the due date reads as the day you picked. When omitted, a new invoice uses the time zone Whop has for the user creating it, else UTC. Can be updated on drafts.
@@ -1001,6 +1015,7 @@ async def main() -> None:
payment_method_configuration=payment_method_configuration,
payment_method_id=payment_method_id,
recipient_emails=recipient_emails,
+ subscription_starts_at=subscription_starts_at,
time_zone=time_zone,
request_options=request_options,
)
@@ -1105,6 +1120,7 @@ async def update(
payment_method_configuration: typing.Optional[UpdateInvoicesRequestPaymentMethodConfiguration] = OMIT,
payment_method_id: typing.Optional[str] = OMIT,
recipient_emails: typing.Optional[typing.Sequence[str]] = OMIT,
+ subscription_starts_at: typing.Optional[dt.datetime] = OMIT,
time_zone: typing.Optional[str] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> Invoice:
@@ -1149,6 +1165,9 @@ async def update(
recipient_emails : typing.Optional[typing.Sequence[str]]
Email addresses saved for invoice delivery, independent of the billed customer. Saving them sends no email. Defaults to the customer email when omitted on create. Can be updated on draft, open, or uncollectible invoices.
+ subscription_starts_at : typing.Optional[dt.datetime]
+ When the first billing period of the invoice's recurring items starts, as an ISO 8601 timestamp in the future. Renewals count from this moment. `null` starts the period when the invoice is paid. Needs a recurring item. Can be updated on drafts. A start date replaces a variant's free trial, and the invoice bills the full price.
+
time_zone : typing.Optional[str]
The IANA time zone for the dates on the invoice's email and PDF. Set it so the due date reads as the day you picked. When omitted, a new invoice uses the time zone Whop has for the user creating it, else UTC. Can be updated on drafts.
@@ -1194,6 +1213,7 @@ async def main() -> None:
payment_method_configuration=payment_method_configuration,
payment_method_id=payment_method_id,
recipient_emails=recipient_emails,
+ subscription_starts_at=subscription_starts_at,
time_zone=time_zone,
request_options=request_options,
)
diff --git a/src/whop_sdk/invoices/raw_client.py b/src/whop_sdk/invoices/raw_client.py
index 329d23777..6aa62bc32 100644
--- a/src/whop_sdk/invoices/raw_client.py
+++ b/src/whop_sdk/invoices/raw_client.py
@@ -256,6 +256,7 @@ def create(
payment_method_configuration: typing.Optional[CreateInvoicesRequestPaymentMethodConfiguration] = OMIT,
payment_method_id: typing.Optional[str] = OMIT,
recipient_emails: typing.Optional[typing.Sequence[str]] = OMIT,
+ subscription_starts_at: typing.Optional[dt.datetime] = OMIT,
time_zone: typing.Optional[str] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> HttpResponse[Invoice]:
@@ -306,6 +307,9 @@ def create(
recipient_emails : typing.Optional[typing.Sequence[str]]
Email addresses saved for invoice delivery, independent of the billed customer. Saving them sends no email. Defaults to the customer email when omitted on create. Can be updated on draft, open, or uncollectible invoices.
+ subscription_starts_at : typing.Optional[dt.datetime]
+ When the first billing period of the invoice's recurring items starts, as an ISO 8601 timestamp in the future. Renewals count from this moment. `null` starts the period when the invoice is paid. Needs a recurring item. Can be updated on drafts. A start date replaces a variant's free trial, and the invoice bills the full price.
+
time_zone : typing.Optional[str]
The IANA time zone for the dates on the invoice's email and PDF. Set it so the due date reads as the day you picked. When omitted, a new invoice uses the time zone Whop has for the user creating it, else UTC. Can be updated on drafts.
@@ -346,6 +350,7 @@ def create(
),
"payment_method_id": payment_method_id,
"recipient_emails": recipient_emails,
+ "subscription_starts_at": subscription_starts_at,
"time_zone": time_zone,
},
headers={
@@ -595,6 +600,7 @@ def update(
payment_method_configuration: typing.Optional[UpdateInvoicesRequestPaymentMethodConfiguration] = OMIT,
payment_method_id: typing.Optional[str] = OMIT,
recipient_emails: typing.Optional[typing.Sequence[str]] = OMIT,
+ subscription_starts_at: typing.Optional[dt.datetime] = OMIT,
time_zone: typing.Optional[str] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> HttpResponse[Invoice]:
@@ -639,6 +645,9 @@ def update(
recipient_emails : typing.Optional[typing.Sequence[str]]
Email addresses saved for invoice delivery, independent of the billed customer. Saving them sends no email. Defaults to the customer email when omitted on create. Can be updated on draft, open, or uncollectible invoices.
+ subscription_starts_at : typing.Optional[dt.datetime]
+ When the first billing period of the invoice's recurring items starts, as an ISO 8601 timestamp in the future. Renewals count from this moment. `null` starts the period when the invoice is paid. Needs a recurring item. Can be updated on drafts. A start date replaces a variant's free trial, and the invoice bills the full price.
+
time_zone : typing.Optional[str]
The IANA time zone for the dates on the invoice's email and PDF. Set it so the due date reads as the day you picked. When omitted, a new invoice uses the time zone Whop has for the user creating it, else UTC. Can be updated on drafts.
@@ -676,6 +685,7 @@ def update(
),
"payment_method_id": payment_method_id,
"recipient_emails": recipient_emails,
+ "subscription_starts_at": subscription_starts_at,
"time_zone": time_zone,
},
headers={
@@ -1627,6 +1637,7 @@ async def create(
payment_method_configuration: typing.Optional[CreateInvoicesRequestPaymentMethodConfiguration] = OMIT,
payment_method_id: typing.Optional[str] = OMIT,
recipient_emails: typing.Optional[typing.Sequence[str]] = OMIT,
+ subscription_starts_at: typing.Optional[dt.datetime] = OMIT,
time_zone: typing.Optional[str] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> AsyncHttpResponse[Invoice]:
@@ -1677,6 +1688,9 @@ async def create(
recipient_emails : typing.Optional[typing.Sequence[str]]
Email addresses saved for invoice delivery, independent of the billed customer. Saving them sends no email. Defaults to the customer email when omitted on create. Can be updated on draft, open, or uncollectible invoices.
+ subscription_starts_at : typing.Optional[dt.datetime]
+ When the first billing period of the invoice's recurring items starts, as an ISO 8601 timestamp in the future. Renewals count from this moment. `null` starts the period when the invoice is paid. Needs a recurring item. Can be updated on drafts. A start date replaces a variant's free trial, and the invoice bills the full price.
+
time_zone : typing.Optional[str]
The IANA time zone for the dates on the invoice's email and PDF. Set it so the due date reads as the day you picked. When omitted, a new invoice uses the time zone Whop has for the user creating it, else UTC. Can be updated on drafts.
@@ -1717,6 +1731,7 @@ async def create(
),
"payment_method_id": payment_method_id,
"recipient_emails": recipient_emails,
+ "subscription_starts_at": subscription_starts_at,
"time_zone": time_zone,
},
headers={
@@ -1968,6 +1983,7 @@ async def update(
payment_method_configuration: typing.Optional[UpdateInvoicesRequestPaymentMethodConfiguration] = OMIT,
payment_method_id: typing.Optional[str] = OMIT,
recipient_emails: typing.Optional[typing.Sequence[str]] = OMIT,
+ subscription_starts_at: typing.Optional[dt.datetime] = OMIT,
time_zone: typing.Optional[str] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> AsyncHttpResponse[Invoice]:
@@ -2012,6 +2028,9 @@ async def update(
recipient_emails : typing.Optional[typing.Sequence[str]]
Email addresses saved for invoice delivery, independent of the billed customer. Saving them sends no email. Defaults to the customer email when omitted on create. Can be updated on draft, open, or uncollectible invoices.
+ subscription_starts_at : typing.Optional[dt.datetime]
+ When the first billing period of the invoice's recurring items starts, as an ISO 8601 timestamp in the future. Renewals count from this moment. `null` starts the period when the invoice is paid. Needs a recurring item. Can be updated on drafts. A start date replaces a variant's free trial, and the invoice bills the full price.
+
time_zone : typing.Optional[str]
The IANA time zone for the dates on the invoice's email and PDF. Set it so the due date reads as the day you picked. When omitted, a new invoice uses the time zone Whop has for the user creating it, else UTC. Can be updated on drafts.
@@ -2049,6 +2068,7 @@ async def update(
),
"payment_method_id": payment_method_id,
"recipient_emails": recipient_emails,
+ "subscription_starts_at": subscription_starts_at,
"time_zone": time_zone,
},
headers={
diff --git a/src/whop_sdk/types/invoice.py b/src/whop_sdk/types/invoice.py
index ef5635cef..4a80b4b20 100644
--- a/src/whop_sdk/types/invoice.py
+++ b/src/whop_sdk/types/invoice.py
@@ -80,6 +80,11 @@ class Invoice(UniversalBaseModel):
"""
status: InvoiceStatus
+ subscription_starts_at: typing.Optional[str] = pydantic.Field(default=None)
+ """
+ When the first billing period of the invoice's recurring items starts, as an ISO 8601 timestamp. Renewals count from this moment. `null` starts the period when the invoice is paid, and so does a time that has passed by then. An invoice with a start date skips its variants' free trial.
+ """
+
subtotal: Money
tax_amount: typing.Optional[Money] = None
time_zone: str = pydantic.Field()
From 68ab203a79d54a89036c00252dcd0a039789a5c8 Mon Sep 17 00:00:00 2001
From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com>
Date: Mon, 16 Nov 2026 21:48:05 +0000
Subject: [PATCH 2/2] [fern-replay] advance lockfile
---
.fern/replay.lock | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/.fern/replay.lock b/.fern/replay.lock
index 4974faee9..41ffdf9b5 100644
--- a/.fern/replay.lock
+++ b/.fern/replay.lock
@@ -5322,5 +5322,11 @@ generations:
cli_version: unknown
generator_versions:
fernapi/fern-python-sdk: 5.39.2
-current_generation: 0bf8f27156a0390a44c90b9c2d36ff9393e15cd3
+ - commit_sha: efcf914cd78fa9b854685f39988e3228e039b629
+ tree_hash: e180e24ff05eb63c46b76b70db19e43b6d5f98c3
+ timestamp: 2026-11-16T21:47:58.775Z
+ cli_version: unknown
+ generator_versions:
+ fernapi/fern-python-sdk: 5.39.2
+current_generation: efcf914cd78fa9b854685f39988e3228e039b629
patches: []