updates
This commit is contained in:
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,299 @@
|
||||
# -*- 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 CalculationCreateParams(RequestOptions):
|
||||
currency: str
|
||||
"""
|
||||
Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
||||
"""
|
||||
customer: NotRequired[str]
|
||||
"""
|
||||
The ID of an existing customer to use for this calculation. If provided, the customer's address and tax IDs are copied to `customer_details`.
|
||||
"""
|
||||
customer_details: NotRequired["CalculationCreateParamsCustomerDetails"]
|
||||
"""
|
||||
Details about the customer, including address and tax IDs.
|
||||
"""
|
||||
expand: NotRequired[List[str]]
|
||||
"""
|
||||
Specifies which fields in the response should be expanded.
|
||||
"""
|
||||
line_items: List["CalculationCreateParamsLineItem"]
|
||||
"""
|
||||
A list of items the customer is purchasing.
|
||||
"""
|
||||
ship_from_details: NotRequired["CalculationCreateParamsShipFromDetails"]
|
||||
"""
|
||||
Details about the address from which the goods are being shipped.
|
||||
"""
|
||||
shipping_cost: NotRequired["CalculationCreateParamsShippingCost"]
|
||||
"""
|
||||
Shipping cost details to be used for the calculation.
|
||||
"""
|
||||
tax_date: NotRequired[int]
|
||||
"""
|
||||
Timestamp of date at which the tax rules and rates in effect applies for the calculation. Measured in seconds since the Unix epoch. Can be up to 48 hours in the past, and up to 48 hours in the future.
|
||||
"""
|
||||
|
||||
|
||||
class CalculationCreateParamsCustomerDetails(TypedDict):
|
||||
address: NotRequired["CalculationCreateParamsCustomerDetailsAddress"]
|
||||
"""
|
||||
The customer's postal address (for example, home or business location).
|
||||
"""
|
||||
address_source: NotRequired[Literal["billing", "shipping"]]
|
||||
"""
|
||||
The type of customer address provided.
|
||||
"""
|
||||
ip_address: NotRequired[str]
|
||||
"""
|
||||
The customer's IP address (IPv4 or IPv6).
|
||||
"""
|
||||
tax_ids: NotRequired[List["CalculationCreateParamsCustomerDetailsTaxId"]]
|
||||
"""
|
||||
The customer's tax IDs. Stripe Tax might consider a transaction with applicable tax IDs to be B2B, which might affect the tax calculation result. Stripe Tax doesn't validate tax IDs for correctness.
|
||||
"""
|
||||
taxability_override: NotRequired[
|
||||
Literal["customer_exempt", "none", "reverse_charge"]
|
||||
]
|
||||
"""
|
||||
Overrides the tax calculation result to allow you to not collect tax from your customer. Use this if you've manually checked your customer's tax exemptions. Prefer providing the customer's `tax_ids` where possible, which automatically determines whether `reverse_charge` applies.
|
||||
"""
|
||||
|
||||
|
||||
class CalculationCreateParamsCustomerDetailsAddress(TypedDict):
|
||||
city: NotRequired["Literal['']|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["Literal['']|str"]
|
||||
"""
|
||||
Address line 1, such as the street, PO Box, or company name.
|
||||
"""
|
||||
line2: NotRequired["Literal['']|str"]
|
||||
"""
|
||||
Address line 2, such as the apartment, suite, unit, or building.
|
||||
"""
|
||||
postal_code: NotRequired["Literal['']|str"]
|
||||
"""
|
||||
ZIP or postal code.
|
||||
"""
|
||||
state: NotRequired["Literal['']|str"]
|
||||
"""
|
||||
State, county, province, or region. We recommend sending [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) subdivision code value when possible.
|
||||
"""
|
||||
|
||||
|
||||
class CalculationCreateParamsCustomerDetailsTaxId(TypedDict):
|
||||
type: Literal[
|
||||
"ad_nrt",
|
||||
"ae_trn",
|
||||
"al_tin",
|
||||
"am_tin",
|
||||
"ao_tin",
|
||||
"ar_cuit",
|
||||
"au_abn",
|
||||
"au_arn",
|
||||
"aw_tin",
|
||||
"az_tin",
|
||||
"ba_tin",
|
||||
"bb_tin",
|
||||
"bd_bin",
|
||||
"bf_ifu",
|
||||
"bg_uic",
|
||||
"bh_vat",
|
||||
"bj_ifu",
|
||||
"bo_tin",
|
||||
"br_cnpj",
|
||||
"br_cpf",
|
||||
"bs_tin",
|
||||
"by_tin",
|
||||
"ca_bn",
|
||||
"ca_gst_hst",
|
||||
"ca_pst_bc",
|
||||
"ca_pst_mb",
|
||||
"ca_pst_sk",
|
||||
"ca_qst",
|
||||
"cd_nif",
|
||||
"ch_uid",
|
||||
"ch_vat",
|
||||
"cl_tin",
|
||||
"cm_niu",
|
||||
"cn_tin",
|
||||
"co_nit",
|
||||
"cr_tin",
|
||||
"cv_nif",
|
||||
"de_stn",
|
||||
"do_rcn",
|
||||
"ec_ruc",
|
||||
"eg_tin",
|
||||
"es_cif",
|
||||
"et_tin",
|
||||
"eu_oss_vat",
|
||||
"eu_vat",
|
||||
"gb_vat",
|
||||
"ge_vat",
|
||||
"gn_nif",
|
||||
"hk_br",
|
||||
"hr_oib",
|
||||
"hu_tin",
|
||||
"id_npwp",
|
||||
"il_vat",
|
||||
"in_gst",
|
||||
"is_vat",
|
||||
"jp_cn",
|
||||
"jp_rn",
|
||||
"jp_trn",
|
||||
"ke_pin",
|
||||
"kg_tin",
|
||||
"kh_tin",
|
||||
"kr_brn",
|
||||
"kz_bin",
|
||||
"la_tin",
|
||||
"li_uid",
|
||||
"li_vat",
|
||||
"ma_vat",
|
||||
"md_vat",
|
||||
"me_pib",
|
||||
"mk_vat",
|
||||
"mr_nif",
|
||||
"mx_rfc",
|
||||
"my_frp",
|
||||
"my_itn",
|
||||
"my_sst",
|
||||
"ng_tin",
|
||||
"no_vat",
|
||||
"no_voec",
|
||||
"np_pan",
|
||||
"nz_gst",
|
||||
"om_vat",
|
||||
"pe_ruc",
|
||||
"ph_tin",
|
||||
"ro_tin",
|
||||
"rs_pib",
|
||||
"ru_inn",
|
||||
"ru_kpp",
|
||||
"sa_vat",
|
||||
"sg_gst",
|
||||
"sg_uen",
|
||||
"si_tin",
|
||||
"sn_ninea",
|
||||
"sr_fin",
|
||||
"sv_nit",
|
||||
"th_vat",
|
||||
"tj_tin",
|
||||
"tr_tin",
|
||||
"tw_vat",
|
||||
"tz_vat",
|
||||
"ua_vat",
|
||||
"ug_tin",
|
||||
"us_ein",
|
||||
"uy_ruc",
|
||||
"uz_tin",
|
||||
"uz_vat",
|
||||
"ve_rif",
|
||||
"vn_tin",
|
||||
"za_vat",
|
||||
"zm_tin",
|
||||
"zw_tin",
|
||||
]
|
||||
"""
|
||||
Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`
|
||||
"""
|
||||
value: str
|
||||
"""
|
||||
Value of the tax ID.
|
||||
"""
|
||||
|
||||
|
||||
class CalculationCreateParamsLineItem(TypedDict):
|
||||
amount: int
|
||||
"""
|
||||
A positive integer representing the line item's total price in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal).
|
||||
If `tax_behavior=inclusive`, then this amount includes taxes. Otherwise, taxes are calculated on top of this amount.
|
||||
"""
|
||||
metadata: NotRequired[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.
|
||||
"""
|
||||
product: NotRequired[str]
|
||||
"""
|
||||
If provided, the product's `tax_code` will be used as the line item's `tax_code`.
|
||||
"""
|
||||
quantity: NotRequired[int]
|
||||
"""
|
||||
The number of units of the item being purchased. Used to calculate the per-unit price from the total `amount` for the line. For example, if `amount=100` and `quantity=4`, the calculated unit price is 25.
|
||||
"""
|
||||
reference: NotRequired[str]
|
||||
"""
|
||||
A custom identifier for this line item, which must be unique across the line items in the calculation. The reference helps identify each line item in exported [tax reports](https://stripe.com/docs/tax/reports).
|
||||
"""
|
||||
tax_behavior: NotRequired[Literal["exclusive", "inclusive"]]
|
||||
"""
|
||||
Specifies whether the `amount` includes taxes. Defaults to `exclusive`.
|
||||
"""
|
||||
tax_code: NotRequired[str]
|
||||
"""
|
||||
A [tax code](https://stripe.com/docs/tax/tax-categories) ID to use for this line item. If not provided, we will use the tax code from the provided `product` param. If neither `tax_code` nor `product` is provided, we will use the default tax code from your Tax Settings.
|
||||
"""
|
||||
|
||||
|
||||
class CalculationCreateParamsShipFromDetails(TypedDict):
|
||||
address: "CalculationCreateParamsShipFromDetailsAddress"
|
||||
"""
|
||||
The address from which the goods are being shipped from.
|
||||
"""
|
||||
|
||||
|
||||
class CalculationCreateParamsShipFromDetailsAddress(TypedDict):
|
||||
city: NotRequired["Literal['']|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["Literal['']|str"]
|
||||
"""
|
||||
Address line 1, such as the street, PO Box, or company name.
|
||||
"""
|
||||
line2: NotRequired["Literal['']|str"]
|
||||
"""
|
||||
Address line 2, such as the apartment, suite, unit, or building.
|
||||
"""
|
||||
postal_code: NotRequired["Literal['']|str"]
|
||||
"""
|
||||
ZIP or postal code.
|
||||
"""
|
||||
state: NotRequired["Literal['']|str"]
|
||||
"""
|
||||
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".
|
||||
"""
|
||||
|
||||
|
||||
class CalculationCreateParamsShippingCost(TypedDict):
|
||||
amount: NotRequired[int]
|
||||
"""
|
||||
A positive integer in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) representing the shipping charge. If `tax_behavior=inclusive`, then this amount includes taxes. Otherwise, taxes are calculated on top of this amount.
|
||||
"""
|
||||
shipping_rate: NotRequired[str]
|
||||
"""
|
||||
If provided, the [shipping rate](https://stripe.com/docs/api/shipping_rates/object)'s `amount`, `tax_code` and `tax_behavior` are used. If you provide a shipping rate, then you cannot pass the `amount`, `tax_code`, or `tax_behavior` parameters.
|
||||
"""
|
||||
tax_behavior: NotRequired[Literal["exclusive", "inclusive"]]
|
||||
"""
|
||||
Specifies whether the `amount` includes taxes. If `tax_behavior=inclusive`, then the amount includes taxes. Defaults to `exclusive`.
|
||||
"""
|
||||
tax_code: NotRequired[str]
|
||||
"""
|
||||
The [tax code](https://stripe.com/docs/tax/tax-categories) used to calculate tax on shipping. If not provided, the default shipping tax code from your [Tax Settings](https://dashboard.stripe.com/settings/tax) is used.
|
||||
"""
|
||||
@@ -0,0 +1,23 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# File generated from our OpenAPI spec
|
||||
from typing import List
|
||||
from typing_extensions import NotRequired, TypedDict
|
||||
|
||||
|
||||
class CalculationLineItemListParams(TypedDict):
|
||||
ending_before: NotRequired[str]
|
||||
"""
|
||||
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.
|
||||
"""
|
||||
expand: NotRequired[List[str]]
|
||||
"""
|
||||
Specifies which fields in the response should be expanded.
|
||||
"""
|
||||
limit: NotRequired[int]
|
||||
"""
|
||||
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
|
||||
"""
|
||||
starting_after: NotRequired[str]
|
||||
"""
|
||||
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.
|
||||
"""
|
||||
@@ -0,0 +1,24 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# File generated from our OpenAPI spec
|
||||
from stripe._request_options import RequestOptions
|
||||
from typing import List
|
||||
from typing_extensions import NotRequired
|
||||
|
||||
|
||||
class CalculationListLineItemsParams(RequestOptions):
|
||||
ending_before: NotRequired[str]
|
||||
"""
|
||||
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.
|
||||
"""
|
||||
expand: NotRequired[List[str]]
|
||||
"""
|
||||
Specifies which fields in the response should be expanded.
|
||||
"""
|
||||
limit: NotRequired[int]
|
||||
"""
|
||||
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
|
||||
"""
|
||||
starting_after: NotRequired[str]
|
||||
"""
|
||||
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.
|
||||
"""
|
||||
@@ -0,0 +1,12 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# File generated from our OpenAPI spec
|
||||
from stripe._request_options import RequestOptions
|
||||
from typing import List
|
||||
from typing_extensions import NotRequired
|
||||
|
||||
|
||||
class CalculationRetrieveParams(RequestOptions):
|
||||
expand: NotRequired[List[str]]
|
||||
"""
|
||||
Specifies which fields in the response should be expanded.
|
||||
"""
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,28 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# File generated from our OpenAPI spec
|
||||
from stripe._request_options import RequestOptions
|
||||
from typing import List
|
||||
from typing_extensions import Literal, NotRequired
|
||||
|
||||
|
||||
class RegistrationListParams(RequestOptions):
|
||||
ending_before: NotRequired[str]
|
||||
"""
|
||||
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.
|
||||
"""
|
||||
expand: NotRequired[List[str]]
|
||||
"""
|
||||
Specifies which fields in the response should be expanded.
|
||||
"""
|
||||
limit: NotRequired[int]
|
||||
"""
|
||||
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
|
||||
"""
|
||||
starting_after: NotRequired[str]
|
||||
"""
|
||||
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.
|
||||
"""
|
||||
status: NotRequired[Literal["active", "all", "expired", "scheduled"]]
|
||||
"""
|
||||
The status of the Tax Registration.
|
||||
"""
|
||||
@@ -0,0 +1,20 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# File generated from our OpenAPI spec
|
||||
from stripe._request_options import RequestOptions
|
||||
from typing import List
|
||||
from typing_extensions import Literal, NotRequired
|
||||
|
||||
|
||||
class RegistrationModifyParams(RequestOptions):
|
||||
active_from: NotRequired["Literal['now']|int"]
|
||||
"""
|
||||
Time at which the registration becomes active. It can be either `now` to indicate the current time, or a timestamp measured in seconds since the Unix epoch.
|
||||
"""
|
||||
expand: NotRequired[List[str]]
|
||||
"""
|
||||
Specifies which fields in the response should be expanded.
|
||||
"""
|
||||
expires_at: NotRequired["Literal['']|Literal['now']|int"]
|
||||
"""
|
||||
If set, the registration stops being active at this time. If not set, the registration will be active indefinitely. It can be either `now` to indicate the current time, or a timestamp measured in seconds since the Unix epoch.
|
||||
"""
|
||||
@@ -0,0 +1,12 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# File generated from our OpenAPI spec
|
||||
from stripe._request_options import RequestOptions
|
||||
from typing import List
|
||||
from typing_extensions import NotRequired
|
||||
|
||||
|
||||
class RegistrationRetrieveParams(RequestOptions):
|
||||
expand: NotRequired[List[str]]
|
||||
"""
|
||||
Specifies which fields in the response should be expanded.
|
||||
"""
|
||||
@@ -0,0 +1,19 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# File generated from our OpenAPI spec
|
||||
from typing import List
|
||||
from typing_extensions import Literal, NotRequired, TypedDict
|
||||
|
||||
|
||||
class RegistrationUpdateParams(TypedDict):
|
||||
active_from: NotRequired["Literal['now']|int"]
|
||||
"""
|
||||
Time at which the registration becomes active. It can be either `now` to indicate the current time, or a timestamp measured in seconds since the Unix epoch.
|
||||
"""
|
||||
expand: NotRequired[List[str]]
|
||||
"""
|
||||
Specifies which fields in the response should be expanded.
|
||||
"""
|
||||
expires_at: NotRequired["Literal['']|Literal['now']|int"]
|
||||
"""
|
||||
If set, the registration stops being active at this time. If not set, the registration will be active indefinitely. It can be either `now` to indicate the current time, or a timestamp measured in seconds since the Unix epoch.
|
||||
"""
|
||||
@@ -0,0 +1,67 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# File generated from our OpenAPI spec
|
||||
from stripe._request_options import RequestOptions
|
||||
from typing import List
|
||||
from typing_extensions import Literal, NotRequired, TypedDict
|
||||
|
||||
|
||||
class SettingsModifyParams(RequestOptions):
|
||||
defaults: NotRequired["SettingsModifyParamsDefaults"]
|
||||
"""
|
||||
Default configuration to be used on Stripe Tax calculations.
|
||||
"""
|
||||
expand: NotRequired[List[str]]
|
||||
"""
|
||||
Specifies which fields in the response should be expanded.
|
||||
"""
|
||||
head_office: NotRequired["SettingsModifyParamsHeadOffice"]
|
||||
"""
|
||||
The place where your business is located.
|
||||
"""
|
||||
|
||||
|
||||
class SettingsModifyParamsDefaults(TypedDict):
|
||||
tax_behavior: NotRequired[
|
||||
Literal["exclusive", "inclusive", "inferred_by_currency"]
|
||||
]
|
||||
"""
|
||||
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.
|
||||
"""
|
||||
tax_code: NotRequired[str]
|
||||
"""
|
||||
A [tax code](https://stripe.com/docs/tax/tax-categories) ID.
|
||||
"""
|
||||
|
||||
|
||||
class SettingsModifyParamsHeadOffice(TypedDict):
|
||||
address: "SettingsModifyParamsHeadOfficeAddress"
|
||||
"""
|
||||
The location of the business for tax purposes.
|
||||
"""
|
||||
|
||||
|
||||
class SettingsModifyParamsHeadOfficeAddress(TypedDict):
|
||||
city: NotRequired[str]
|
||||
"""
|
||||
City, district, suburb, town, or village.
|
||||
"""
|
||||
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]
|
||||
"""
|
||||
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/province as an [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) subdivision code, without country prefix, such as "NY" or "TX".
|
||||
"""
|
||||
@@ -0,0 +1,12 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# File generated from our OpenAPI spec
|
||||
from stripe._request_options import RequestOptions
|
||||
from typing import List
|
||||
from typing_extensions import NotRequired
|
||||
|
||||
|
||||
class SettingsRetrieveParams(RequestOptions):
|
||||
expand: NotRequired[List[str]]
|
||||
"""
|
||||
Specifies which fields in the response should be expanded.
|
||||
"""
|
||||
@@ -0,0 +1,66 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# File generated from our OpenAPI spec
|
||||
from typing import List
|
||||
from typing_extensions import Literal, NotRequired, TypedDict
|
||||
|
||||
|
||||
class SettingsUpdateParams(TypedDict):
|
||||
defaults: NotRequired["SettingsUpdateParamsDefaults"]
|
||||
"""
|
||||
Default configuration to be used on Stripe Tax calculations.
|
||||
"""
|
||||
expand: NotRequired[List[str]]
|
||||
"""
|
||||
Specifies which fields in the response should be expanded.
|
||||
"""
|
||||
head_office: NotRequired["SettingsUpdateParamsHeadOffice"]
|
||||
"""
|
||||
The place where your business is located.
|
||||
"""
|
||||
|
||||
|
||||
class SettingsUpdateParamsDefaults(TypedDict):
|
||||
tax_behavior: NotRequired[
|
||||
Literal["exclusive", "inclusive", "inferred_by_currency"]
|
||||
]
|
||||
"""
|
||||
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.
|
||||
"""
|
||||
tax_code: NotRequired[str]
|
||||
"""
|
||||
A [tax code](https://stripe.com/docs/tax/tax-categories) ID.
|
||||
"""
|
||||
|
||||
|
||||
class SettingsUpdateParamsHeadOffice(TypedDict):
|
||||
address: "SettingsUpdateParamsHeadOfficeAddress"
|
||||
"""
|
||||
The location of the business for tax purposes.
|
||||
"""
|
||||
|
||||
|
||||
class SettingsUpdateParamsHeadOfficeAddress(TypedDict):
|
||||
city: NotRequired[str]
|
||||
"""
|
||||
City, district, suburb, town, or village.
|
||||
"""
|
||||
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]
|
||||
"""
|
||||
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/province as an [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) subdivision code, without country prefix, such as "NY" or "TX".
|
||||
"""
|
||||
@@ -0,0 +1,28 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# File generated from our OpenAPI spec
|
||||
from stripe._request_options import RequestOptions
|
||||
from typing import Dict, List
|
||||
from typing_extensions import NotRequired
|
||||
|
||||
|
||||
class TransactionCreateFromCalculationParams(RequestOptions):
|
||||
calculation: str
|
||||
"""
|
||||
Tax Calculation ID to be used as input when creating the transaction.
|
||||
"""
|
||||
expand: NotRequired[List[str]]
|
||||
"""
|
||||
Specifies which fields in the response should be expanded.
|
||||
"""
|
||||
metadata: NotRequired[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`.
|
||||
"""
|
||||
posted_at: NotRequired[int]
|
||||
"""
|
||||
The Unix timestamp representing when the tax liability is assumed or reduced, which determines the liability posting period and handling in tax liability reports. The timestamp must fall within the `tax_date` and the current time, unless the `tax_date` is scheduled in advance. Defaults to the current time.
|
||||
"""
|
||||
reference: str
|
||||
"""
|
||||
A custom order or sale identifier, such as 'myOrder_123'. Must be unique across all transactions, including reversals.
|
||||
"""
|
||||
@@ -0,0 +1,78 @@
|
||||
# -*- 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 TransactionCreateReversalParams(RequestOptions):
|
||||
expand: NotRequired[List[str]]
|
||||
"""
|
||||
Specifies which fields in the response should be expanded.
|
||||
"""
|
||||
flat_amount: NotRequired[int]
|
||||
"""
|
||||
A flat amount to reverse across the entire transaction, in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) in negative. This value represents the total amount to refund from the transaction, including taxes.
|
||||
"""
|
||||
line_items: NotRequired[List["TransactionCreateReversalParamsLineItem"]]
|
||||
"""
|
||||
The line item amounts to reverse.
|
||||
"""
|
||||
metadata: NotRequired[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`.
|
||||
"""
|
||||
mode: Literal["full", "partial"]
|
||||
"""
|
||||
If `partial`, the provided line item or shipping cost amounts are reversed. If `full`, the original transaction is fully reversed.
|
||||
"""
|
||||
original_transaction: str
|
||||
"""
|
||||
The ID of the Transaction to partially or fully reverse.
|
||||
"""
|
||||
reference: str
|
||||
"""
|
||||
A custom identifier for this reversal, such as `myOrder_123-refund_1`, which must be unique across all transactions. The reference helps identify this reversal transaction in exported [tax reports](https://stripe.com/docs/tax/reports).
|
||||
"""
|
||||
shipping_cost: NotRequired["TransactionCreateReversalParamsShippingCost"]
|
||||
"""
|
||||
The shipping cost to reverse.
|
||||
"""
|
||||
|
||||
|
||||
class TransactionCreateReversalParamsLineItem(TypedDict):
|
||||
amount: int
|
||||
"""
|
||||
The amount to reverse, in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) in negative.
|
||||
"""
|
||||
amount_tax: int
|
||||
"""
|
||||
The amount of tax to reverse, in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) in negative.
|
||||
"""
|
||||
metadata: NotRequired[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.
|
||||
"""
|
||||
original_line_item: str
|
||||
"""
|
||||
The `id` of the line item to reverse in the original transaction.
|
||||
"""
|
||||
quantity: NotRequired[int]
|
||||
"""
|
||||
The quantity reversed. Appears in [tax exports](https://stripe.com/docs/tax/reports), but does not affect the amount of tax reversed.
|
||||
"""
|
||||
reference: str
|
||||
"""
|
||||
A custom identifier for this line item in the reversal transaction, such as 'L1-refund'.
|
||||
"""
|
||||
|
||||
|
||||
class TransactionCreateReversalParamsShippingCost(TypedDict):
|
||||
amount: int
|
||||
"""
|
||||
The amount to reverse, in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) in negative.
|
||||
"""
|
||||
amount_tax: int
|
||||
"""
|
||||
The amount of tax to reverse, in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) in negative.
|
||||
"""
|
||||
@@ -0,0 +1,23 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# File generated from our OpenAPI spec
|
||||
from typing import List
|
||||
from typing_extensions import NotRequired, TypedDict
|
||||
|
||||
|
||||
class TransactionLineItemListParams(TypedDict):
|
||||
ending_before: NotRequired[str]
|
||||
"""
|
||||
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.
|
||||
"""
|
||||
expand: NotRequired[List[str]]
|
||||
"""
|
||||
Specifies which fields in the response should be expanded.
|
||||
"""
|
||||
limit: NotRequired[int]
|
||||
"""
|
||||
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
|
||||
"""
|
||||
starting_after: NotRequired[str]
|
||||
"""
|
||||
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.
|
||||
"""
|
||||
@@ -0,0 +1,24 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# File generated from our OpenAPI spec
|
||||
from stripe._request_options import RequestOptions
|
||||
from typing import List
|
||||
from typing_extensions import NotRequired
|
||||
|
||||
|
||||
class TransactionListLineItemsParams(RequestOptions):
|
||||
ending_before: NotRequired[str]
|
||||
"""
|
||||
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.
|
||||
"""
|
||||
expand: NotRequired[List[str]]
|
||||
"""
|
||||
Specifies which fields in the response should be expanded.
|
||||
"""
|
||||
limit: NotRequired[int]
|
||||
"""
|
||||
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
|
||||
"""
|
||||
starting_after: NotRequired[str]
|
||||
"""
|
||||
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.
|
||||
"""
|
||||
@@ -0,0 +1,12 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# File generated from our OpenAPI spec
|
||||
from stripe._request_options import RequestOptions
|
||||
from typing import List
|
||||
from typing_extensions import NotRequired
|
||||
|
||||
|
||||
class TransactionRetrieveParams(RequestOptions):
|
||||
expand: NotRequired[List[str]]
|
||||
"""
|
||||
Specifies which fields in the response should be expanded.
|
||||
"""
|
||||
Reference in New Issue
Block a user