| 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 TaxIdListParams(RequestOptions): |
| 9 |
ending_before: NotRequired[str] |
| 10 |
""" |
| 11 |
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. |
| 12 |
""" |
| 13 |
expand: NotRequired[List[str]] |
| 14 |
""" |
| 15 |
Specifies which fields in the response should be expanded. |
| 16 |
""" |
| 17 |
limit: NotRequired[int] |
| 18 |
""" |
| 19 |
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10. |
| 20 |
""" |
| 21 |
owner: NotRequired["TaxIdListParamsOwner"] |
| 22 |
""" |
| 23 |
The account or customer the tax ID belongs to. Defaults to `owner[type]=self`. |
| 24 |
""" |
| 25 |
starting_after: NotRequired[str] |
| 26 |
""" |
| 27 |
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. |
| 28 |
""" |
| 29 |
|
| 30 |
|
| 31 |
class TaxIdListParamsOwner(TypedDict): |
| 32 |
account: NotRequired[str] |
| 33 |
""" |
| 34 |
Connected Account the tax ID belongs to. Required when `type=account` |
| 35 |
""" |
| 36 |
customer: NotRequired[str] |
| 37 |
""" |
| 38 |
Customer the tax ID belongs to. Required when `type=customer` |
| 39 |
""" |
| 40 |
customer_account: NotRequired[str] |
| 41 |
""" |
| 42 |
ID of the Account representing the customer that the tax ID belongs to. Can be used in place of `customer` when `type=customer` |
| 43 |
""" |
| 44 |
type: Literal["account", "application", "customer", "self"] |
| 45 |
""" |
| 46 |
Type of owner referenced. |
| 47 |
""" |