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