Debian Codegraph @

stripe/params/tax/_settings_modify_params.py

raw
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 SettingsModifyParams(RequestOptions):
9 defaults: NotRequired["SettingsModifyParamsDefaults"]
10 """
11 Default configuration to be used on Stripe Tax calculations.
12 """
13 expand: NotRequired[List[str]]
14 """
15 Specifies which fields in the response should be expanded.
16 """
17 head_office: NotRequired["SettingsModifyParamsHeadOffice"]
18 """
19 The place where your business is located.
20 """
21
22
23 class SettingsModifyParamsDefaults(TypedDict):
24 tax_behavior: NotRequired[
25 Literal["exclusive", "inclusive", "inferred_by_currency"]
26 ]
27 """
28 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.
29 """
30 tax_code: NotRequired[str]
31 """
32 A [tax code](https://docs.stripe.com/tax/tax-categories) ID.
33 """
34
35
36 class SettingsModifyParamsHeadOffice(TypedDict):
37 address: "SettingsModifyParamsHeadOfficeAddress"
38 """
39 The location of the business for tax purposes.
40 """
41
42
43 class SettingsModifyParamsHeadOfficeAddress(TypedDict):
44 city: NotRequired[str]
45 """
46 City, district, suburb, town, or village.
47 """
48 country: NotRequired[str]
49 """
50 Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
51 """
52 line1: NotRequired[str]
53 """
54 Address line 1, such as the street, PO Box, or company name.
55 """
56 line2: NotRequired[str]
57 """
58 Address line 2, such as the apartment, suite, unit, or building.
59 """
60 postal_code: NotRequired[str]
61 """
62 ZIP or postal code.
63 """
64 state: NotRequired[str]
65 """
66 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".
67 """