diff --git a/.fern/metadata.json b/.fern/metadata.json index 329674853..759b0e5c5 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -15,7 +15,7 @@ "standardwebhooks": ">=1.0.1,<2" } }, - "originGitCommit": "32ca9f76e87b06a7567500ae2875ff3ce3012f24", + "originGitCommit": "7f4874492ea69bebb374c4938000c7eec0c1504c", "originGitCommitIsDirty": false, "invokedBy": "ci", "requestedVersion": "2.6.0", diff --git a/.fern/replay.lock b/.fern/replay.lock index 01623bbae..1d6303b31 100644 --- a/.fern/replay.lock +++ b/.fern/replay.lock @@ -3282,5 +3282,11 @@ generations: cli_version: unknown generator_versions: fernapi/fern-python-sdk: 5.39.2 -current_generation: b0f66de11fad2d73e22a15a387c31a64a32503a8 + - commit_sha: f1ff928cdb565996b0928fafb97337b365057463 + tree_hash: db54f8a784ad6e0197c4035ed3ee0b7b3f71cc0d + timestamp: 2026-10-23T23:41:20.996Z + cli_version: unknown + generator_versions: + fernapi/fern-python-sdk: 5.39.2 +current_generation: f1ff928cdb565996b0928fafb97337b365057463 patches: [] diff --git a/reference.md b/reference.md index 934689032..71713fa35 100644 --- a/reference.md +++ b/reference.md @@ -26424,7 +26424,7 @@ client.invoices.create(
-**payment_method_id:** `typing.Optional[str]` — A saved payment method belonging to the member. +**payment_method_id:** `typing.Optional[str]` — A saved payment method belonging to the member. Issuing the invoice charges it.
@@ -26642,7 +26642,7 @@ client.invoices.update(
-**payment_method_id:** `typing.Optional[str]` — A saved payment method belonging to the member. +**payment_method_id:** `typing.Optional[str]` — A saved payment method belonging to the member. Issuing the invoice charges it.
@@ -26682,7 +26682,7 @@ client.invoices.update(
-Resolves final tax and opens a draft invoice. Issuing an open invoice again retains its totals. +Resolves final tax and opens a draft invoice. An invoice with a `payment_method_id` is then charged to it off-session, as `POST /payments` charges a saved payment method, and issuing it requires `payment:charge`. Issuing an open invoice again retains its totals and charges nothing.
diff --git a/src/whop_sdk/invoices/client.py b/src/whop_sdk/invoices/client.py index 22c031741..db077cc3d 100644 --- a/src/whop_sdk/invoices/client.py +++ b/src/whop_sdk/invoices/client.py @@ -183,7 +183,7 @@ def create( Up to 50 caller-owned string key/value pairs. payment_method_id : typing.Optional[str] - A saved payment method belonging to the member. + A saved payment method belonging to the member. Issuing the invoice charges it. 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. @@ -305,7 +305,7 @@ def update( Up to 50 caller-owned string key/value pairs. payment_method_id : typing.Optional[str] - A saved payment method belonging to the member. + A saved payment method belonging to the member. Issuing the invoice charges it. 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. @@ -348,7 +348,7 @@ def update( def issue(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> Invoice: """ - Resolves final tax and opens a draft invoice. Issuing an open invoice again retains its totals. + Resolves final tax and opens a draft invoice. An invoice with a `payment_method_id` is then charged to it off-session, as `POST /payments` charges a saved payment method, and issuing it requires `payment:charge`. Issuing an open invoice again retains its totals and charges nothing. Parameters ---------- @@ -617,7 +617,7 @@ async def create( Up to 50 caller-owned string key/value pairs. payment_method_id : typing.Optional[str] - A saved payment method belonging to the member. + A saved payment method belonging to the member. Issuing the invoice charges it. 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. @@ -755,7 +755,7 @@ async def update( Up to 50 caller-owned string key/value pairs. payment_method_id : typing.Optional[str] - A saved payment method belonging to the member. + A saved payment method belonging to the member. Issuing the invoice charges it. 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. @@ -806,7 +806,7 @@ async def main() -> None: async def issue(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> Invoice: """ - Resolves final tax and opens a draft invoice. Issuing an open invoice again retains its totals. + Resolves final tax and opens a draft invoice. An invoice with a `payment_method_id` is then charged to it off-session, as `POST /payments` charges a saved payment method, and issuing it requires `payment:charge`. Issuing an open invoice again retains its totals and charges nothing. Parameters ---------- diff --git a/src/whop_sdk/invoices/raw_client.py b/src/whop_sdk/invoices/raw_client.py index 75e80ba7e..d6352cdd1 100644 --- a/src/whop_sdk/invoices/raw_client.py +++ b/src/whop_sdk/invoices/raw_client.py @@ -258,7 +258,7 @@ def create( Up to 50 caller-owned string key/value pairs. payment_method_id : typing.Optional[str] - A saved payment method belonging to the member. + A saved payment method belonging to the member. Issuing the invoice charges it. 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. @@ -484,7 +484,7 @@ def update( Up to 50 caller-owned string key/value pairs. payment_method_id : typing.Optional[str] - A saved payment method belonging to the member. + A saved payment method belonging to the member. Issuing the invoice charges it. 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. @@ -578,7 +578,7 @@ def update( def issue(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[Invoice]: """ - Resolves final tax and opens a draft invoice. Issuing an open invoice again retains its totals. + Resolves final tax and opens a draft invoice. An invoice with a `payment_method_id` is then charged to it off-session, as `POST /payments` charges a saved payment method, and issuing it requires `payment:charge`. Issuing an open invoice again retains its totals and charges nothing. Parameters ---------- @@ -1075,7 +1075,7 @@ async def create( Up to 50 caller-owned string key/value pairs. payment_method_id : typing.Optional[str] - A saved payment method belonging to the member. + A saved payment method belonging to the member. Issuing the invoice charges it. 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. @@ -1303,7 +1303,7 @@ async def update( Up to 50 caller-owned string key/value pairs. payment_method_id : typing.Optional[str] - A saved payment method belonging to the member. + A saved payment method belonging to the member. Issuing the invoice charges it. 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. @@ -1399,7 +1399,7 @@ async def issue( self, id: str, *, request_options: typing.Optional[RequestOptions] = None ) -> AsyncHttpResponse[Invoice]: """ - Resolves final tax and opens a draft invoice. Issuing an open invoice again retains its totals. + Resolves final tax and opens a draft invoice. An invoice with a `payment_method_id` is then charged to it off-session, as `POST /payments` charges a saved payment method, and issuing it requires `payment:charge`. Issuing an open invoice again retains its totals and charges nothing. Parameters ----------