Skip to content

Commit 0f5fabb

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): api update (#450)
1 parent 0de91b3 commit 0f5fabb

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 97
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-e9785c0b77f4a91dd668d12d707abdaa63cc527029c9d62a92ac24ec40500d18.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-77e2e50c9fb438b08736da759f722f9d062ed3fad3183fb951eb1eee93fa93f5.yml

src/orb/resources/invoices.py

+10
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,11 @@ def list(
243243
cursor: Cursor for pagination. This can be populated by the `next_cursor` value returned
244244
from the initial request.
245245
246+
due_date_window: Filters invoices by their due dates within a specific time range in the past.
247+
Specify the range as a number followed by 'd' (days) or 'm' (months). For
248+
example, '7d' filters invoices due in the last 7 days, and '2m' filters those
249+
due in the last 2 months.
250+
246251
limit: The number of items to fetch. Defaults to 20.
247252
248253
extra_headers: Send extra headers
@@ -773,6 +778,11 @@ def list(
773778
cursor: Cursor for pagination. This can be populated by the `next_cursor` value returned
774779
from the initial request.
775780
781+
due_date_window: Filters invoices by their due dates within a specific time range in the past.
782+
Specify the range as a number followed by 'd' (days) or 'm' (months). For
783+
example, '7d' filters invoices due in the last 7 days, and '2m' filters those
784+
due in the last 2 months.
785+
776786
limit: The number of items to fetch. Defaults to 20.
777787
778788
extra_headers: Send extra headers

src/orb/types/invoice_list_params.py

+6
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ class InvoiceListParams(TypedDict, total=False):
3232
due_date: Annotated[Union[str, date, None], PropertyInfo(format="iso8601")]
3333

3434
due_date_window: Optional[str]
35+
"""Filters invoices by their due dates within a specific time range in the past.
36+
37+
Specify the range as a number followed by 'd' (days) or 'm' (months). For
38+
example, '7d' filters invoices due in the last 7 days, and '2m' filters those
39+
due in the last 2 months.
40+
"""
3541

3642
due_date_gt: Annotated[Union[str, date, None], PropertyInfo(alias="due_date[gt]", format="iso8601")]
3743

0 commit comments

Comments
 (0)