| 1 |
# -*- coding: utf-8 -*- |
| 2 |
# File generated from our OpenAPI spec |
| 3 |
from stripe._request_options import RequestOptions |
| 4 |
from typing import List |
| 5 |
from typing_extensions import Literal, NotRequired, TypedDict |
| 6 |
|
| 7 |
|
| 8 |
class InvoiceListParams(RequestOptions): |
| 9 |
collection_method: NotRequired[ |
| 10 |
Literal["charge_automatically", "send_invoice"] |
| 11 |
] |
| 12 |
""" |
| 13 |
The collection method of the invoice to retrieve. Either `charge_automatically` or `send_invoice`. |
| 14 |
""" |
| 15 |
created: NotRequired["InvoiceListParamsCreated|int"] |
| 16 |
""" |
| 17 |
Only return invoices that were created during the given date interval. |
| 18 |
""" |
| 19 |
customer: NotRequired[str] |
| 20 |
""" |
| 21 |
Only return invoices for the customer specified by this customer ID. |
| 22 |
""" |
| 23 |
customer_account: NotRequired[str] |
| 24 |
""" |
| 25 |
Only return invoices for the account representing the customer specified by this account ID. |
| 26 |
""" |
| 27 |
due_date: NotRequired["InvoiceListParamsDueDate|int"] |
| 28 |
ending_before: NotRequired[str] |
| 29 |
""" |
| 30 |
A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. |
| 31 |
""" |
| 32 |
expand: NotRequired[List[str]] |
| 33 |
""" |
| 34 |
Specifies which fields in the response should be expanded. |
| 35 |
""" |
| 36 |
limit: NotRequired[int] |
| 37 |
""" |
| 38 |
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10. |
| 39 |
""" |
| 40 |
starting_after: NotRequired[str] |
| 41 |
""" |
| 42 |
A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list. |
| 43 |
""" |
| 44 |
status: NotRequired[ |
| 45 |
Literal["draft", "open", "paid", "uncollectible", "void"] |
| 46 |
] |
| 47 |
""" |
| 48 |
The status of the invoice, one of `draft`, `open`, `paid`, `uncollectible`, or `void`. [Learn more](https://docs.stripe.com/billing/invoices/workflow#workflow-overview) |
| 49 |
""" |
| 50 |
subscription: NotRequired[str] |
| 51 |
""" |
| 52 |
Only return invoices for the subscription specified by this subscription ID. |
| 53 |
""" |
| 54 |
|
| 55 |
|
| 56 |
class InvoiceListParamsCreated(TypedDict): |
| 57 |
gt: NotRequired[int] |
| 58 |
""" |
| 59 |
Minimum value to filter by (exclusive) |
| 60 |
""" |
| 61 |
gte: NotRequired[int] |
| 62 |
""" |
| 63 |
Minimum value to filter by (inclusive) |
| 64 |
""" |
| 65 |
lt: NotRequired[int] |
| 66 |
""" |
| 67 |
Maximum value to filter by (exclusive) |
| 68 |
""" |
| 69 |
lte: NotRequired[int] |
| 70 |
""" |
| 71 |
Maximum value to filter by (inclusive) |
| 72 |
""" |
| 73 |
|
| 74 |
|
| 75 |
class InvoiceListParamsDueDate(TypedDict): |
| 76 |
gt: NotRequired[int] |
| 77 |
""" |
| 78 |
Minimum value to filter by (exclusive) |
| 79 |
""" |
| 80 |
gte: NotRequired[int] |
| 81 |
""" |
| 82 |
Minimum value to filter by (inclusive) |
| 83 |
""" |
| 84 |
lt: NotRequired[int] |
| 85 |
""" |
| 86 |
Maximum value to filter by (exclusive) |
| 87 |
""" |
| 88 |
lte: NotRequired[int] |
| 89 |
""" |
| 90 |
Maximum value to filter by (inclusive) |
| 91 |
""" |