| 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 InvoicePaymentListParams(RequestOptions): |
| 9 |
created: NotRequired["InvoicePaymentListParamsCreated|int"] |
| 10 |
""" |
| 11 |
Only return invoice payments that were created during the given date interval. |
| 12 |
""" |
| 13 |
ending_before: NotRequired[str] |
| 14 |
""" |
| 15 |
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. |
| 16 |
""" |
| 17 |
expand: NotRequired[List[str]] |
| 18 |
""" |
| 19 |
Specifies which fields in the response should be expanded. |
| 20 |
""" |
| 21 |
invoice: NotRequired[str] |
| 22 |
""" |
| 23 |
The identifier of the invoice whose payments to return. |
| 24 |
""" |
| 25 |
limit: NotRequired[int] |
| 26 |
""" |
| 27 |
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10. |
| 28 |
""" |
| 29 |
payment: NotRequired["InvoicePaymentListParamsPayment"] |
| 30 |
""" |
| 31 |
The payment details of the invoice payments to return. |
| 32 |
""" |
| 33 |
starting_after: NotRequired[str] |
| 34 |
""" |
| 35 |
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. |
| 36 |
""" |
| 37 |
status: NotRequired[Literal["canceled", "open", "paid"]] |
| 38 |
""" |
| 39 |
The status of the invoice payments to return. |
| 40 |
""" |
| 41 |
|
| 42 |
|
| 43 |
class InvoicePaymentListParamsCreated(TypedDict): |
| 44 |
gt: NotRequired[int] |
| 45 |
""" |
| 46 |
Minimum value to filter by (exclusive) |
| 47 |
""" |
| 48 |
gte: NotRequired[int] |
| 49 |
""" |
| 50 |
Minimum value to filter by (inclusive) |
| 51 |
""" |
| 52 |
lt: NotRequired[int] |
| 53 |
""" |
| 54 |
Maximum value to filter by (exclusive) |
| 55 |
""" |
| 56 |
lte: NotRequired[int] |
| 57 |
""" |
| 58 |
Maximum value to filter by (inclusive) |
| 59 |
""" |
| 60 |
|
| 61 |
|
| 62 |
class InvoicePaymentListParamsPayment(TypedDict): |
| 63 |
payment_intent: NotRequired[str] |
| 64 |
""" |
| 65 |
Only return invoice payments associated by this payment intent ID. |
| 66 |
""" |
| 67 |
payment_record: NotRequired[str] |
| 68 |
""" |
| 69 |
Only return invoice payments associated by this payment record ID. |
| 70 |
""" |
| 71 |
type: Literal["payment_intent", "payment_record"] |
| 72 |
""" |
| 73 |
Only return invoice payments associated by this payment type. |
| 74 |
""" |