| 1 |
# -*- coding: utf-8 -*- |
| 2 |
# File generated from our OpenAPI spec |
| 3 |
from stripe._request_options import RequestOptions |
| 4 |
from typing import Dict, List |
| 5 |
from typing_extensions import Literal, NotRequired, TypedDict |
| 6 |
|
| 7 |
|
| 8 |
class LocationModifyParams(RequestOptions): |
| 9 |
address: NotRequired["LocationModifyParamsAddress"] |
| 10 |
""" |
| 11 |
The full address of the location. You can't change the location's `country`. If you need to modify the `country` field, create a new `Location` object and re-register any existing readers to that location. |
| 12 |
""" |
| 13 |
address_kana: NotRequired["LocationModifyParamsAddressKana"] |
| 14 |
""" |
| 15 |
The Kana variation of the full address of the location (Japan only). |
| 16 |
""" |
| 17 |
address_kanji: NotRequired["LocationModifyParamsAddressKanji"] |
| 18 |
""" |
| 19 |
The Kanji variation of the full address of the location (Japan only). |
| 20 |
""" |
| 21 |
configuration_overrides: NotRequired["Literal['']|str"] |
| 22 |
""" |
| 23 |
The ID of a configuration that will be used to customize all readers in this location. |
| 24 |
""" |
| 25 |
display_name: NotRequired["Literal['']|str"] |
| 26 |
""" |
| 27 |
A name for the location. |
| 28 |
""" |
| 29 |
display_name_kana: NotRequired["Literal['']|str"] |
| 30 |
""" |
| 31 |
The Kana variation of the name for the location (Japan only). |
| 32 |
""" |
| 33 |
display_name_kanji: NotRequired["Literal['']|str"] |
| 34 |
""" |
| 35 |
The Kanji variation of the name for the location (Japan only). |
| 36 |
""" |
| 37 |
expand: NotRequired[List[str]] |
| 38 |
""" |
| 39 |
Specifies which fields in the response should be expanded. |
| 40 |
""" |
| 41 |
metadata: NotRequired["Literal['']|Dict[str, str]"] |
| 42 |
""" |
| 43 |
Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. |
| 44 |
""" |
| 45 |
phone: NotRequired["Literal['']|str"] |
| 46 |
""" |
| 47 |
The phone number for the location. |
| 48 |
""" |
| 49 |
|
| 50 |
|
| 51 |
class LocationModifyParamsAddress(TypedDict): |
| 52 |
city: NotRequired[str] |
| 53 |
""" |
| 54 |
City, district, suburb, town, or village. |
| 55 |
""" |
| 56 |
country: NotRequired[str] |
| 57 |
""" |
| 58 |
Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). |
| 59 |
""" |
| 60 |
line1: NotRequired[str] |
| 61 |
""" |
| 62 |
Address line 1, such as the street, PO Box, or company name. |
| 63 |
""" |
| 64 |
line2: NotRequired[str] |
| 65 |
""" |
| 66 |
Address line 2, such as the apartment, suite, unit, or building. |
| 67 |
""" |
| 68 |
postal_code: NotRequired[str] |
| 69 |
""" |
| 70 |
ZIP or postal code. |
| 71 |
""" |
| 72 |
state: NotRequired[str] |
| 73 |
""" |
| 74 |
State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)). |
| 75 |
""" |
| 76 |
|
| 77 |
|
| 78 |
class LocationModifyParamsAddressKana(TypedDict): |
| 79 |
city: NotRequired[str] |
| 80 |
""" |
| 81 |
City or ward. |
| 82 |
""" |
| 83 |
country: NotRequired[str] |
| 84 |
""" |
| 85 |
Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). |
| 86 |
""" |
| 87 |
line1: NotRequired[str] |
| 88 |
""" |
| 89 |
Block or building number. |
| 90 |
""" |
| 91 |
line2: NotRequired[str] |
| 92 |
""" |
| 93 |
Building details. |
| 94 |
""" |
| 95 |
postal_code: NotRequired[str] |
| 96 |
""" |
| 97 |
Postal code. |
| 98 |
""" |
| 99 |
state: NotRequired[str] |
| 100 |
""" |
| 101 |
Prefecture. |
| 102 |
""" |
| 103 |
town: NotRequired[str] |
| 104 |
""" |
| 105 |
Town or cho-me. |
| 106 |
""" |
| 107 |
|
| 108 |
|
| 109 |
class LocationModifyParamsAddressKanji(TypedDict): |
| 110 |
city: NotRequired[str] |
| 111 |
""" |
| 112 |
City or ward. |
| 113 |
""" |
| 114 |
country: NotRequired[str] |
| 115 |
""" |
| 116 |
Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). |
| 117 |
""" |
| 118 |
line1: NotRequired[str] |
| 119 |
""" |
| 120 |
Block or building number. |
| 121 |
""" |
| 122 |
line2: NotRequired[str] |
| 123 |
""" |
| 124 |
Building details. |
| 125 |
""" |
| 126 |
postal_code: NotRequired[str] |
| 127 |
""" |
| 128 |
Postal code. |
| 129 |
""" |
| 130 |
state: NotRequired[str] |
| 131 |
""" |
| 132 |
Prefecture. |
| 133 |
""" |
| 134 |
town: NotRequired[str] |
| 135 |
""" |
| 136 |
Town or cho-me. |
| 137 |
""" |