Debian Codegraph @

stripe/params/tax/_settings_update_params.py

raw
1 # -*- coding: utf-8 -*-
2 # File generated from our OpenAPI spec
3 from typing import List
4 from typing_extensions import Literal, NotRequired, TypedDict
5
6
7 class SettingsUpdateParams(TypedDict):
8 defaults: NotRequired["SettingsUpdateParamsDefaults"]
9 """
10 Default configuration to be used on Stripe Tax calculations.
11 """
12 expand: NotRequired[List[str]]
13 """
14 Specifies which fields in the response should be expanded.
15 """
16 head_office: NotRequired["SettingsUpdateParamsHeadOffice"]
17 """
18 The place where your business is located.
19 """
20
21
22 class SettingsUpdateParamsDefaults(TypedDict):
23 tax_behavior: NotRequired[
24 Literal["exclusive", "inclusive", "inferred_by_currency"]
25 ]
26 """
27 Specifies the default [tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#tax-behavior) to be used when the item's price has unspecified tax behavior. One of inclusive, exclusive, or inferred_by_currency. Once specified, it cannot be changed back to null.
28 """
29 tax_code: NotRequired[str]
30 """
31 A [tax code](https://docs.stripe.com/tax/tax-categories) ID.
32 """
33
34
35 class SettingsUpdateParamsHeadOffice(TypedDict):
36 address: "SettingsUpdateParamsHeadOfficeAddress"
37 """
38 The location of the business for tax purposes.
39 """
40
41
42 class SettingsUpdateParamsHeadOfficeAddress(TypedDict):
43 city: NotRequired[str]
44 """
45 City, district, suburb, town, or village.
46 """
47 country: NotRequired[str]
48 """
49 Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
50 """
51 line1: NotRequired[str]
52 """
53 Address line 1, such as the street, PO Box, or company name.
54 """
55 line2: NotRequired[str]
56 """
57 Address line 2, such as the apartment, suite, unit, or building.
58 """
59 postal_code: NotRequired[str]
60 """
61 ZIP or postal code.
62 """
63 state: NotRequired[str]
64 """
65 State/province as an [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) subdivision code, without country prefix, such as "NY" or "TX".
66 """