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 .fern/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"standardwebhooks": ">=1.0.1,<2"
}
},
"originGitCommit": "32ca9f76e87b06a7567500ae2875ff3ce3012f24",
"originGitCommit": "7f4874492ea69bebb374c4938000c7eec0c1504c",
"originGitCommitIsDirty": false,
"invokedBy": "ci",
"requestedVersion": "2.6.0",
Expand Down
8 changes: 7 additions & 1 deletion .fern/replay.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -26424,7 +26424,7 @@ client.invoices.create(
<dl>
<dd>

**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.

</dd>
</dl>
Expand Down Expand Up @@ -26642,7 +26642,7 @@ client.invoices.update(
<dl>
<dd>

**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.

</dd>
</dl>
Expand Down Expand Up @@ -26682,7 +26682,7 @@ client.invoices.update(
<dl>
<dd>

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.
</dd>
</dl>
</dd>
Expand Down
12 changes: 6 additions & 6 deletions src/whop_sdk/invoices/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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
----------
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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
----------
Expand Down
12 changes: 6 additions & 6 deletions src/whop_sdk/invoices/raw_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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
----------
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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
----------
Expand Down
Loading