| 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 PriceListParams(RequestOptions): |
| 9 |
active: NotRequired[bool] |
| 10 |
""" |
| 11 |
Only return prices that are active or inactive (e.g., pass `false` to list all inactive prices). |
| 12 |
""" |
| 13 |
created: NotRequired["PriceListParamsCreated|int"] |
| 14 |
""" |
| 15 |
A filter on the list, based on the object `created` field. The value can be a string with an integer Unix timestamp, or it can be a dictionary with a number of different query options. |
| 16 |
""" |
| 17 |
currency: NotRequired[str] |
| 18 |
""" |
| 19 |
Only return prices for the given currency. |
| 20 |
""" |
| 21 |
ending_before: NotRequired[str] |
| 22 |
""" |
| 23 |
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. |
| 24 |
""" |
| 25 |
expand: NotRequired[List[str]] |
| 26 |
""" |
| 27 |
Specifies which fields in the response should be expanded. |
| 28 |
""" |
| 29 |
limit: NotRequired[int] |
| 30 |
""" |
| 31 |
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10. |
| 32 |
""" |
| 33 |
lookup_keys: NotRequired[List[str]] |
| 34 |
""" |
| 35 |
Only return the price with these lookup_keys, if any exist. You can specify up to 10 lookup_keys. |
| 36 |
""" |
| 37 |
product: NotRequired[str] |
| 38 |
""" |
| 39 |
Only return prices for the given product. |
| 40 |
""" |
| 41 |
recurring: NotRequired["PriceListParamsRecurring"] |
| 42 |
""" |
| 43 |
Only return prices with these recurring fields. |
| 44 |
""" |
| 45 |
starting_after: NotRequired[str] |
| 46 |
""" |
| 47 |
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. |
| 48 |
""" |
| 49 |
type: NotRequired[Literal["one_time", "recurring"]] |
| 50 |
""" |
| 51 |
Only return prices of type `recurring` or `one_time`. |
| 52 |
""" |
| 53 |
|
| 54 |
|
| 55 |
class PriceListParamsCreated(TypedDict): |
| 56 |
gt: NotRequired[int] |
| 57 |
""" |
| 58 |
Minimum value to filter by (exclusive) |
| 59 |
""" |
| 60 |
gte: NotRequired[int] |
| 61 |
""" |
| 62 |
Minimum value to filter by (inclusive) |
| 63 |
""" |
| 64 |
lt: NotRequired[int] |
| 65 |
""" |
| 66 |
Maximum value to filter by (exclusive) |
| 67 |
""" |
| 68 |
lte: NotRequired[int] |
| 69 |
""" |
| 70 |
Maximum value to filter by (inclusive) |
| 71 |
""" |
| 72 |
|
| 73 |
|
| 74 |
class PriceListParamsRecurring(TypedDict): |
| 75 |
interval: NotRequired[Literal["day", "month", "week", "year"]] |
| 76 |
""" |
| 77 |
Filter by billing frequency. Either `day`, `week`, `month` or `year`. |
| 78 |
""" |
| 79 |
meter: NotRequired[str] |
| 80 |
""" |
| 81 |
Filter by the price's meter. |
| 82 |
""" |
| 83 |
usage_type: NotRequired[Literal["licensed", "metered"]] |
| 84 |
""" |
| 85 |
Filter by the usage type for this price. Can be either `metered` or `licensed`. |
| 86 |
""" |