| 1 |
# -*- coding: utf-8 -*- |
| 2 |
# File generated from our OpenAPI spec |
| 3 |
from stripe._createable_api_resource import CreateableAPIResource |
| 4 |
from stripe._list_object import ListObject |
| 5 |
from stripe._listable_api_resource import ListableAPIResource |
| 6 |
from stripe._stripe_object import StripeObject |
| 7 |
from stripe._updateable_api_resource import UpdateableAPIResource |
| 8 |
from stripe._util import sanitize_id |
| 9 |
from typing import ClassVar, List, Optional, cast |
| 10 |
from typing_extensions import Literal, Unpack, TYPE_CHECKING |
| 11 |
|
| 12 |
if TYPE_CHECKING: |
| 13 |
from stripe.params.tax._registration_create_params import ( |
| 14 |
RegistrationCreateParams, |
| 15 |
) |
| 16 |
from stripe.params.tax._registration_list_params import ( |
| 17 |
RegistrationListParams, |
| 18 |
) |
| 19 |
from stripe.params.tax._registration_modify_params import ( |
| 20 |
RegistrationModifyParams, |
| 21 |
) |
| 22 |
from stripe.params.tax._registration_retrieve_params import ( |
| 23 |
RegistrationRetrieveParams, |
| 24 |
) |
| 25 |
|
| 26 |
|
| 27 |
class Registration( |
| 28 |
CreateableAPIResource["Registration"], |
| 29 |
ListableAPIResource["Registration"], |
| 30 |
UpdateableAPIResource["Registration"], |
| 31 |
): |
| 32 |
""" |
| 33 |
A Tax `Registration` lets us know that your business is registered to collect tax on payments within a region, enabling you to [automatically collect tax](https://docs.stripe.com/tax). |
| 34 |
|
| 35 |
Stripe doesn't register on your behalf with the relevant authorities when you create a Tax `Registration` object. For more information on how to register to collect tax, see [our guide](https://docs.stripe.com/tax/registering). |
| 36 |
|
| 37 |
Related guide: [Using the Registrations API](https://docs.stripe.com/tax/registrations-api) |
| 38 |
""" |
| 39 |
|
| 40 |
OBJECT_NAME: ClassVar[Literal["tax.registration"]] = "tax.registration" |
| 41 |
|
| 42 |
class CountryOptions(StripeObject): |
| 43 |
class Ae(StripeObject): |
| 44 |
class Standard(StripeObject): |
| 45 |
place_of_supply_scheme: Literal["inbound_goods", "standard"] |
| 46 |
""" |
| 47 |
Place of supply scheme used in an Default standard registration. |
| 48 |
""" |
| 49 |
|
| 50 |
standard: Optional[Standard] |
| 51 |
type: Literal["standard"] |
| 52 |
""" |
| 53 |
Type of registration in `country`. |
| 54 |
""" |
| 55 |
_inner_class_types = {"standard": Standard} |
| 56 |
|
| 57 |
class Al(StripeObject): |
| 58 |
type: Literal["standard"] |
| 59 |
""" |
| 60 |
Type of registration in `country`. |
| 61 |
""" |
| 62 |
|
| 63 |
class Am(StripeObject): |
| 64 |
type: Literal["simplified"] |
| 65 |
""" |
| 66 |
Type of registration in `country`. |
| 67 |
""" |
| 68 |
|
| 69 |
class Ao(StripeObject): |
| 70 |
type: Literal["standard"] |
| 71 |
""" |
| 72 |
Type of registration in `country`. |
| 73 |
""" |
| 74 |
|
| 75 |
class At(StripeObject): |
| 76 |
class Standard(StripeObject): |
| 77 |
place_of_supply_scheme: Literal[ |
| 78 |
"inbound_goods", "small_seller", "standard" |
| 79 |
] |
| 80 |
""" |
| 81 |
Place of supply scheme used in an EU standard registration. |
| 82 |
""" |
| 83 |
|
| 84 |
standard: Optional[Standard] |
| 85 |
type: Literal["ioss", "oss_non_union", "oss_union", "standard"] |
| 86 |
""" |
| 87 |
Type of registration in an EU country. |
| 88 |
""" |
| 89 |
_inner_class_types = {"standard": Standard} |
| 90 |
|
| 91 |
class Au(StripeObject): |
| 92 |
class Standard(StripeObject): |
| 93 |
place_of_supply_scheme: Literal["inbound_goods", "standard"] |
| 94 |
""" |
| 95 |
Place of supply scheme used in an Default standard registration. |
| 96 |
""" |
| 97 |
|
| 98 |
standard: Optional[Standard] |
| 99 |
type: Literal["standard"] |
| 100 |
""" |
| 101 |
Type of registration in `country`. |
| 102 |
""" |
| 103 |
_inner_class_types = {"standard": Standard} |
| 104 |
|
| 105 |
class Aw(StripeObject): |
| 106 |
type: Literal["standard"] |
| 107 |
""" |
| 108 |
Type of registration in `country`. |
| 109 |
""" |
| 110 |
|
| 111 |
class Az(StripeObject): |
| 112 |
type: Literal["simplified"] |
| 113 |
""" |
| 114 |
Type of registration in `country`. |
| 115 |
""" |
| 116 |
|
| 117 |
class Ba(StripeObject): |
| 118 |
type: Literal["standard"] |
| 119 |
""" |
| 120 |
Type of registration in `country`. |
| 121 |
""" |
| 122 |
|
| 123 |
class Bb(StripeObject): |
| 124 |
type: Literal["standard"] |
| 125 |
""" |
| 126 |
Type of registration in `country`. |
| 127 |
""" |
| 128 |
|
| 129 |
class Bd(StripeObject): |
| 130 |
type: Literal["standard"] |
| 131 |
""" |
| 132 |
Type of registration in `country`. |
| 133 |
""" |
| 134 |
|
| 135 |
class Be(StripeObject): |
| 136 |
class Standard(StripeObject): |
| 137 |
place_of_supply_scheme: Literal[ |
| 138 |
"inbound_goods", "small_seller", "standard" |
| 139 |
] |
| 140 |
""" |
| 141 |
Place of supply scheme used in an EU standard registration. |
| 142 |
""" |
| 143 |
|
| 144 |
standard: Optional[Standard] |
| 145 |
type: Literal["ioss", "oss_non_union", "oss_union", "standard"] |
| 146 |
""" |
| 147 |
Type of registration in an EU country. |
| 148 |
""" |
| 149 |
_inner_class_types = {"standard": Standard} |
| 150 |
|
| 151 |
class Bf(StripeObject): |
| 152 |
type: Literal["standard"] |
| 153 |
""" |
| 154 |
Type of registration in `country`. |
| 155 |
""" |
| 156 |
|
| 157 |
class Bg(StripeObject): |
| 158 |
class Standard(StripeObject): |
| 159 |
place_of_supply_scheme: Literal[ |
| 160 |
"inbound_goods", "small_seller", "standard" |
| 161 |
] |
| 162 |
""" |
| 163 |
Place of supply scheme used in an EU standard registration. |
| 164 |
""" |
| 165 |
|
| 166 |
standard: Optional[Standard] |
| 167 |
type: Literal["ioss", "oss_non_union", "oss_union", "standard"] |
| 168 |
""" |
| 169 |
Type of registration in an EU country. |
| 170 |
""" |
| 171 |
_inner_class_types = {"standard": Standard} |
| 172 |
|
| 173 |
class Bh(StripeObject): |
| 174 |
type: Literal["standard"] |
| 175 |
""" |
| 176 |
Type of registration in `country`. |
| 177 |
""" |
| 178 |
|
| 179 |
class Bj(StripeObject): |
| 180 |
type: Literal["simplified"] |
| 181 |
""" |
| 182 |
Type of registration in `country`. |
| 183 |
""" |
| 184 |
|
| 185 |
class Bs(StripeObject): |
| 186 |
type: Literal["standard"] |
| 187 |
""" |
| 188 |
Type of registration in `country`. |
| 189 |
""" |
| 190 |
|
| 191 |
class By(StripeObject): |
| 192 |
type: Literal["simplified"] |
| 193 |
""" |
| 194 |
Type of registration in `country`. |
| 195 |
""" |
| 196 |
|
| 197 |
class Ca(StripeObject): |
| 198 |
class ProvinceStandard(StripeObject): |
| 199 |
province: str |
| 200 |
""" |
| 201 |
Two-letter CA province code ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)). |
| 202 |
""" |
| 203 |
|
| 204 |
province_standard: Optional[ProvinceStandard] |
| 205 |
type: Literal["province_standard", "simplified", "standard"] |
| 206 |
""" |
| 207 |
Type of registration in Canada. |
| 208 |
""" |
| 209 |
_inner_class_types = {"province_standard": ProvinceStandard} |
| 210 |
|
| 211 |
class Cd(StripeObject): |
| 212 |
type: Literal["standard"] |
| 213 |
""" |
| 214 |
Type of registration in `country`. |
| 215 |
""" |
| 216 |
|
| 217 |
class Ch(StripeObject): |
| 218 |
class Standard(StripeObject): |
| 219 |
place_of_supply_scheme: Literal["inbound_goods", "standard"] |
| 220 |
""" |
| 221 |
Place of supply scheme used in an Default standard registration. |
| 222 |
""" |
| 223 |
|
| 224 |
standard: Optional[Standard] |
| 225 |
type: Literal["standard"] |
| 226 |
""" |
| 227 |
Type of registration in `country`. |
| 228 |
""" |
| 229 |
_inner_class_types = {"standard": Standard} |
| 230 |
|
| 231 |
class Cl(StripeObject): |
| 232 |
type: Literal["simplified"] |
| 233 |
""" |
| 234 |
Type of registration in `country`. |
| 235 |
""" |
| 236 |
|
| 237 |
class Cm(StripeObject): |
| 238 |
type: Literal["simplified"] |
| 239 |
""" |
| 240 |
Type of registration in `country`. |
| 241 |
""" |
| 242 |
|
| 243 |
class Co(StripeObject): |
| 244 |
type: Literal["simplified"] |
| 245 |
""" |
| 246 |
Type of registration in `country`. |
| 247 |
""" |
| 248 |
|
| 249 |
class Cr(StripeObject): |
| 250 |
type: Literal["simplified"] |
| 251 |
""" |
| 252 |
Type of registration in `country`. |
| 253 |
""" |
| 254 |
|
| 255 |
class Cv(StripeObject): |
| 256 |
type: Literal["simplified"] |
| 257 |
""" |
| 258 |
Type of registration in `country`. |
| 259 |
""" |
| 260 |
|
| 261 |
class Cy(StripeObject): |
| 262 |
class Standard(StripeObject): |
| 263 |
place_of_supply_scheme: Literal[ |
| 264 |
"inbound_goods", "small_seller", "standard" |
| 265 |
] |
| 266 |
""" |
| 267 |
Place of supply scheme used in an EU standard registration. |
| 268 |
""" |
| 269 |
|
| 270 |
standard: Optional[Standard] |
| 271 |
type: Literal["ioss", "oss_non_union", "oss_union", "standard"] |
| 272 |
""" |
| 273 |
Type of registration in an EU country. |
| 274 |
""" |
| 275 |
_inner_class_types = {"standard": Standard} |
| 276 |
|
| 277 |
class Cz(StripeObject): |
| 278 |
class Standard(StripeObject): |
| 279 |
place_of_supply_scheme: Literal[ |
| 280 |
"inbound_goods", "small_seller", "standard" |
| 281 |
] |
| 282 |
""" |
| 283 |
Place of supply scheme used in an EU standard registration. |
| 284 |
""" |
| 285 |
|
| 286 |
standard: Optional[Standard] |
| 287 |
type: Literal["ioss", "oss_non_union", "oss_union", "standard"] |
| 288 |
""" |
| 289 |
Type of registration in an EU country. |
| 290 |
""" |
| 291 |
_inner_class_types = {"standard": Standard} |
| 292 |
|
| 293 |
class De(StripeObject): |
| 294 |
class Standard(StripeObject): |
| 295 |
place_of_supply_scheme: Literal[ |
| 296 |
"inbound_goods", "small_seller", "standard" |
| 297 |
] |
| 298 |
""" |
| 299 |
Place of supply scheme used in an EU standard registration. |
| 300 |
""" |
| 301 |
|
| 302 |
standard: Optional[Standard] |
| 303 |
type: Literal["ioss", "oss_non_union", "oss_union", "standard"] |
| 304 |
""" |
| 305 |
Type of registration in an EU country. |
| 306 |
""" |
| 307 |
_inner_class_types = {"standard": Standard} |
| 308 |
|
| 309 |
class Dk(StripeObject): |
| 310 |
class Standard(StripeObject): |
| 311 |
place_of_supply_scheme: Literal[ |
| 312 |
"inbound_goods", "small_seller", "standard" |
| 313 |
] |
| 314 |
""" |
| 315 |
Place of supply scheme used in an EU standard registration. |
| 316 |
""" |
| 317 |
|
| 318 |
standard: Optional[Standard] |
| 319 |
type: Literal["ioss", "oss_non_union", "oss_union", "standard"] |
| 320 |
""" |
| 321 |
Type of registration in an EU country. |
| 322 |
""" |
| 323 |
_inner_class_types = {"standard": Standard} |
| 324 |
|
| 325 |
class Ec(StripeObject): |
| 326 |
type: Literal["simplified"] |
| 327 |
""" |
| 328 |
Type of registration in `country`. |
| 329 |
""" |
| 330 |
|
| 331 |
class Ee(StripeObject): |
| 332 |
class Standard(StripeObject): |
| 333 |
place_of_supply_scheme: Literal[ |
| 334 |
"inbound_goods", "small_seller", "standard" |
| 335 |
] |
| 336 |
""" |
| 337 |
Place of supply scheme used in an EU standard registration. |
| 338 |
""" |
| 339 |
|
| 340 |
standard: Optional[Standard] |
| 341 |
type: Literal["ioss", "oss_non_union", "oss_union", "standard"] |
| 342 |
""" |
| 343 |
Type of registration in an EU country. |
| 344 |
""" |
| 345 |
_inner_class_types = {"standard": Standard} |
| 346 |
|
| 347 |
class Eg(StripeObject): |
| 348 |
type: Literal["simplified"] |
| 349 |
""" |
| 350 |
Type of registration in `country`. |
| 351 |
""" |
| 352 |
|
| 353 |
class Es(StripeObject): |
| 354 |
class Standard(StripeObject): |
| 355 |
place_of_supply_scheme: Literal[ |
| 356 |
"inbound_goods", "small_seller", "standard" |
| 357 |
] |
| 358 |
""" |
| 359 |
Place of supply scheme used in an EU standard registration. |
| 360 |
""" |
| 361 |
|
| 362 |
standard: Optional[Standard] |
| 363 |
type: Literal["ioss", "oss_non_union", "oss_union", "standard"] |
| 364 |
""" |
| 365 |
Type of registration in an EU country. |
| 366 |
""" |
| 367 |
_inner_class_types = {"standard": Standard} |
| 368 |
|
| 369 |
class Et(StripeObject): |
| 370 |
type: Literal["standard"] |
| 371 |
""" |
| 372 |
Type of registration in `country`. |
| 373 |
""" |
| 374 |
|
| 375 |
class Fi(StripeObject): |
| 376 |
class Standard(StripeObject): |
| 377 |
place_of_supply_scheme: Literal[ |
| 378 |
"inbound_goods", "small_seller", "standard" |
| 379 |
] |
| 380 |
""" |
| 381 |
Place of supply scheme used in an EU standard registration. |
| 382 |
""" |
| 383 |
|
| 384 |
standard: Optional[Standard] |
| 385 |
type: Literal["ioss", "oss_non_union", "oss_union", "standard"] |
| 386 |
""" |
| 387 |
Type of registration in an EU country. |
| 388 |
""" |
| 389 |
_inner_class_types = {"standard": Standard} |
| 390 |
|
| 391 |
class Fr(StripeObject): |
| 392 |
class Standard(StripeObject): |
| 393 |
place_of_supply_scheme: Literal[ |
| 394 |
"inbound_goods", "small_seller", "standard" |
| 395 |
] |
| 396 |
""" |
| 397 |
Place of supply scheme used in an EU standard registration. |
| 398 |
""" |
| 399 |
|
| 400 |
standard: Optional[Standard] |
| 401 |
type: Literal["ioss", "oss_non_union", "oss_union", "standard"] |
| 402 |
""" |
| 403 |
Type of registration in an EU country. |
| 404 |
""" |
| 405 |
_inner_class_types = {"standard": Standard} |
| 406 |
|
| 407 |
class Gb(StripeObject): |
| 408 |
class Standard(StripeObject): |
| 409 |
place_of_supply_scheme: Literal["inbound_goods", "standard"] |
| 410 |
""" |
| 411 |
Place of supply scheme used in an Default standard registration. |
| 412 |
""" |
| 413 |
|
| 414 |
standard: Optional[Standard] |
| 415 |
type: Literal["standard"] |
| 416 |
""" |
| 417 |
Type of registration in `country`. |
| 418 |
""" |
| 419 |
_inner_class_types = {"standard": Standard} |
| 420 |
|
| 421 |
class Ge(StripeObject): |
| 422 |
type: Literal["simplified"] |
| 423 |
""" |
| 424 |
Type of registration in `country`. |
| 425 |
""" |
| 426 |
|
| 427 |
class Gn(StripeObject): |
| 428 |
type: Literal["standard"] |
| 429 |
""" |
| 430 |
Type of registration in `country`. |
| 431 |
""" |
| 432 |
|
| 433 |
class Gr(StripeObject): |
| 434 |
class Standard(StripeObject): |
| 435 |
place_of_supply_scheme: Literal[ |
| 436 |
"inbound_goods", "small_seller", "standard" |
| 437 |
] |
| 438 |
""" |
| 439 |
Place of supply scheme used in an EU standard registration. |
| 440 |
""" |
| 441 |
|
| 442 |
standard: Optional[Standard] |
| 443 |
type: Literal["ioss", "oss_non_union", "oss_union", "standard"] |
| 444 |
""" |
| 445 |
Type of registration in an EU country. |
| 446 |
""" |
| 447 |
_inner_class_types = {"standard": Standard} |
| 448 |
|
| 449 |
class Hr(StripeObject): |
| 450 |
class Standard(StripeObject): |
| 451 |
place_of_supply_scheme: Literal[ |
| 452 |
"inbound_goods", "small_seller", "standard" |
| 453 |
] |
| 454 |
""" |
| 455 |
Place of supply scheme used in an EU standard registration. |
| 456 |
""" |
| 457 |
|
| 458 |
standard: Optional[Standard] |
| 459 |
type: Literal["ioss", "oss_non_union", "oss_union", "standard"] |
| 460 |
""" |
| 461 |
Type of registration in an EU country. |
| 462 |
""" |
| 463 |
_inner_class_types = {"standard": Standard} |
| 464 |
|
| 465 |
class Hu(StripeObject): |
| 466 |
class Standard(StripeObject): |
| 467 |
place_of_supply_scheme: Literal[ |
| 468 |
"inbound_goods", "small_seller", "standard" |
| 469 |
] |
| 470 |
""" |
| 471 |
Place of supply scheme used in an EU standard registration. |
| 472 |
""" |
| 473 |
|
| 474 |
standard: Optional[Standard] |
| 475 |
type: Literal["ioss", "oss_non_union", "oss_union", "standard"] |
| 476 |
""" |
| 477 |
Type of registration in an EU country. |
| 478 |
""" |
| 479 |
_inner_class_types = {"standard": Standard} |
| 480 |
|
| 481 |
class Id(StripeObject): |
| 482 |
type: Literal["simplified"] |
| 483 |
""" |
| 484 |
Type of registration in `country`. |
| 485 |
""" |
| 486 |
|
| 487 |
class Ie(StripeObject): |
| 488 |
class Standard(StripeObject): |
| 489 |
place_of_supply_scheme: Literal[ |
| 490 |
"inbound_goods", "small_seller", "standard" |
| 491 |
] |
| 492 |
""" |
| 493 |
Place of supply scheme used in an EU standard registration. |
| 494 |
""" |
| 495 |
|
| 496 |
standard: Optional[Standard] |
| 497 |
type: Literal["ioss", "oss_non_union", "oss_union", "standard"] |
| 498 |
""" |
| 499 |
Type of registration in an EU country. |
| 500 |
""" |
| 501 |
_inner_class_types = {"standard": Standard} |
| 502 |
|
| 503 |
class In(StripeObject): |
| 504 |
type: Literal["simplified"] |
| 505 |
""" |
| 506 |
Type of registration in `country`. |
| 507 |
""" |
| 508 |
|
| 509 |
class Is(StripeObject): |
| 510 |
type: Literal["standard"] |
| 511 |
""" |
| 512 |
Type of registration in `country`. |
| 513 |
""" |
| 514 |
|
| 515 |
class It(StripeObject): |
| 516 |
class Standard(StripeObject): |
| 517 |
place_of_supply_scheme: Literal[ |
| 518 |
"inbound_goods", "small_seller", "standard" |
| 519 |
] |
| 520 |
""" |
| 521 |
Place of supply scheme used in an EU standard registration. |
| 522 |
""" |
| 523 |
|
| 524 |
standard: Optional[Standard] |
| 525 |
type: Literal["ioss", "oss_non_union", "oss_union", "standard"] |
| 526 |
""" |
| 527 |
Type of registration in an EU country. |
| 528 |
""" |
| 529 |
_inner_class_types = {"standard": Standard} |
| 530 |
|
| 531 |
class Jp(StripeObject): |
| 532 |
class Standard(StripeObject): |
| 533 |
place_of_supply_scheme: Literal["inbound_goods", "standard"] |
| 534 |
""" |
| 535 |
Place of supply scheme used in an Default standard registration. |
| 536 |
""" |
| 537 |
|
| 538 |
standard: Optional[Standard] |
| 539 |
type: Literal["standard"] |
| 540 |
""" |
| 541 |
Type of registration in `country`. |
| 542 |
""" |
| 543 |
_inner_class_types = {"standard": Standard} |
| 544 |
|
| 545 |
class Ke(StripeObject): |
| 546 |
type: Literal["simplified"] |
| 547 |
""" |
| 548 |
Type of registration in `country`. |
| 549 |
""" |
| 550 |
|
| 551 |
class Kg(StripeObject): |
| 552 |
type: Literal["simplified"] |
| 553 |
""" |
| 554 |
Type of registration in `country`. |
| 555 |
""" |
| 556 |
|
| 557 |
class Kh(StripeObject): |
| 558 |
type: Literal["simplified"] |
| 559 |
""" |
| 560 |
Type of registration in `country`. |
| 561 |
""" |
| 562 |
|
| 563 |
class Kr(StripeObject): |
| 564 |
type: Literal["simplified"] |
| 565 |
""" |
| 566 |
Type of registration in `country`. |
| 567 |
""" |
| 568 |
|
| 569 |
class Kz(StripeObject): |
| 570 |
type: Literal["simplified"] |
| 571 |
""" |
| 572 |
Type of registration in `country`. |
| 573 |
""" |
| 574 |
|
| 575 |
class La(StripeObject): |
| 576 |
type: Literal["simplified"] |
| 577 |
""" |
| 578 |
Type of registration in `country`. |
| 579 |
""" |
| 580 |
|
| 581 |
class Lk(StripeObject): |
| 582 |
type: Literal["simplified"] |
| 583 |
""" |
| 584 |
Type of registration in `country`. |
| 585 |
""" |
| 586 |
|
| 587 |
class Lt(StripeObject): |
| 588 |
class Standard(StripeObject): |
| 589 |
place_of_supply_scheme: Literal[ |
| 590 |
"inbound_goods", "small_seller", "standard" |
| 591 |
] |
| 592 |
""" |
| 593 |
Place of supply scheme used in an EU standard registration. |
| 594 |
""" |
| 595 |
|
| 596 |
standard: Optional[Standard] |
| 597 |
type: Literal["ioss", "oss_non_union", "oss_union", "standard"] |
| 598 |
""" |
| 599 |
Type of registration in an EU country. |
| 600 |
""" |
| 601 |
_inner_class_types = {"standard": Standard} |
| 602 |
|
| 603 |
class Lu(StripeObject): |
| 604 |
class Standard(StripeObject): |
| 605 |
place_of_supply_scheme: Literal[ |
| 606 |
"inbound_goods", "small_seller", "standard" |
| 607 |
] |
| 608 |
""" |
| 609 |
Place of supply scheme used in an EU standard registration. |
| 610 |
""" |
| 611 |
|
| 612 |
standard: Optional[Standard] |
| 613 |
type: Literal["ioss", "oss_non_union", "oss_union", "standard"] |
| 614 |
""" |
| 615 |
Type of registration in an EU country. |
| 616 |
""" |
| 617 |
_inner_class_types = {"standard": Standard} |
| 618 |
|
| 619 |
class Lv(StripeObject): |
| 620 |
class Standard(StripeObject): |
| 621 |
place_of_supply_scheme: Literal[ |
| 622 |
"inbound_goods", "small_seller", "standard" |
| 623 |
] |
| 624 |
""" |
| 625 |
Place of supply scheme used in an EU standard registration. |
| 626 |
""" |
| 627 |
|
| 628 |
standard: Optional[Standard] |
| 629 |
type: Literal["ioss", "oss_non_union", "oss_union", "standard"] |
| 630 |
""" |
| 631 |
Type of registration in an EU country. |
| 632 |
""" |
| 633 |
_inner_class_types = {"standard": Standard} |
| 634 |
|
| 635 |
class Ma(StripeObject): |
| 636 |
type: Literal["simplified"] |
| 637 |
""" |
| 638 |
Type of registration in `country`. |
| 639 |
""" |
| 640 |
|
| 641 |
class Md(StripeObject): |
| 642 |
type: Literal["simplified"] |
| 643 |
""" |
| 644 |
Type of registration in `country`. |
| 645 |
""" |
| 646 |
|
| 647 |
class Me(StripeObject): |
| 648 |
type: Literal["standard"] |
| 649 |
""" |
| 650 |
Type of registration in `country`. |
| 651 |
""" |
| 652 |
|
| 653 |
class Mk(StripeObject): |
| 654 |
type: Literal["standard"] |
| 655 |
""" |
| 656 |
Type of registration in `country`. |
| 657 |
""" |
| 658 |
|
| 659 |
class Mr(StripeObject): |
| 660 |
type: Literal["standard"] |
| 661 |
""" |
| 662 |
Type of registration in `country`. |
| 663 |
""" |
| 664 |
|
| 665 |
class Mt(StripeObject): |
| 666 |
class Standard(StripeObject): |
| 667 |
place_of_supply_scheme: Literal[ |
| 668 |
"inbound_goods", "small_seller", "standard" |
| 669 |
] |
| 670 |
""" |
| 671 |
Place of supply scheme used in an EU standard registration. |
| 672 |
""" |
| 673 |
|
| 674 |
standard: Optional[Standard] |
| 675 |
type: Literal["ioss", "oss_non_union", "oss_union", "standard"] |
| 676 |
""" |
| 677 |
Type of registration in an EU country. |
| 678 |
""" |
| 679 |
_inner_class_types = {"standard": Standard} |
| 680 |
|
| 681 |
class Mx(StripeObject): |
| 682 |
type: Literal["simplified"] |
| 683 |
""" |
| 684 |
Type of registration in `country`. |
| 685 |
""" |
| 686 |
|
| 687 |
class My(StripeObject): |
| 688 |
type: Literal["simplified"] |
| 689 |
""" |
| 690 |
Type of registration in `country`. |
| 691 |
""" |
| 692 |
|
| 693 |
class Ng(StripeObject): |
| 694 |
type: Literal["simplified"] |
| 695 |
""" |
| 696 |
Type of registration in `country`. |
| 697 |
""" |
| 698 |
|
| 699 |
class Nl(StripeObject): |
| 700 |
class Standard(StripeObject): |
| 701 |
place_of_supply_scheme: Literal[ |
| 702 |
"inbound_goods", "small_seller", "standard" |
| 703 |
] |
| 704 |
""" |
| 705 |
Place of supply scheme used in an EU standard registration. |
| 706 |
""" |
| 707 |
|
| 708 |
standard: Optional[Standard] |
| 709 |
type: Literal["ioss", "oss_non_union", "oss_union", "standard"] |
| 710 |
""" |
| 711 |
Type of registration in an EU country. |
| 712 |
""" |
| 713 |
_inner_class_types = {"standard": Standard} |
| 714 |
|
| 715 |
class No(StripeObject): |
| 716 |
class Standard(StripeObject): |
| 717 |
place_of_supply_scheme: Literal["inbound_goods", "standard"] |
| 718 |
""" |
| 719 |
Place of supply scheme used in an Default standard registration. |
| 720 |
""" |
| 721 |
|
| 722 |
standard: Optional[Standard] |
| 723 |
type: Literal["standard"] |
| 724 |
""" |
| 725 |
Type of registration in `country`. |
| 726 |
""" |
| 727 |
_inner_class_types = {"standard": Standard} |
| 728 |
|
| 729 |
class Np(StripeObject): |
| 730 |
type: Literal["simplified"] |
| 731 |
""" |
| 732 |
Type of registration in `country`. |
| 733 |
""" |
| 734 |
|
| 735 |
class Nz(StripeObject): |
| 736 |
class Standard(StripeObject): |
| 737 |
place_of_supply_scheme: Literal["inbound_goods", "standard"] |
| 738 |
""" |
| 739 |
Place of supply scheme used in an Default standard registration. |
| 740 |
""" |
| 741 |
|
| 742 |
standard: Optional[Standard] |
| 743 |
type: Literal["standard"] |
| 744 |
""" |
| 745 |
Type of registration in `country`. |
| 746 |
""" |
| 747 |
_inner_class_types = {"standard": Standard} |
| 748 |
|
| 749 |
class Om(StripeObject): |
| 750 |
type: Literal["standard"] |
| 751 |
""" |
| 752 |
Type of registration in `country`. |
| 753 |
""" |
| 754 |
|
| 755 |
class Pe(StripeObject): |
| 756 |
type: Literal["simplified"] |
| 757 |
""" |
| 758 |
Type of registration in `country`. |
| 759 |
""" |
| 760 |
|
| 761 |
class Ph(StripeObject): |
| 762 |
type: Literal["simplified"] |
| 763 |
""" |
| 764 |
Type of registration in `country`. |
| 765 |
""" |
| 766 |
|
| 767 |
class Pl(StripeObject): |
| 768 |
class Standard(StripeObject): |
| 769 |
place_of_supply_scheme: Literal[ |
| 770 |
"inbound_goods", "small_seller", "standard" |
| 771 |
] |
| 772 |
""" |
| 773 |
Place of supply scheme used in an EU standard registration. |
| 774 |
""" |
| 775 |
|
| 776 |
standard: Optional[Standard] |
| 777 |
type: Literal["ioss", "oss_non_union", "oss_union", "standard"] |
| 778 |
""" |
| 779 |
Type of registration in an EU country. |
| 780 |
""" |
| 781 |
_inner_class_types = {"standard": Standard} |
| 782 |
|
| 783 |
class Pt(StripeObject): |
| 784 |
class Standard(StripeObject): |
| 785 |
place_of_supply_scheme: Literal[ |
| 786 |
"inbound_goods", "small_seller", "standard" |
| 787 |
] |
| 788 |
""" |
| 789 |
Place of supply scheme used in an EU standard registration. |
| 790 |
""" |
| 791 |
|
| 792 |
standard: Optional[Standard] |
| 793 |
type: Literal["ioss", "oss_non_union", "oss_union", "standard"] |
| 794 |
""" |
| 795 |
Type of registration in an EU country. |
| 796 |
""" |
| 797 |
_inner_class_types = {"standard": Standard} |
| 798 |
|
| 799 |
class Ro(StripeObject): |
| 800 |
class Standard(StripeObject): |
| 801 |
place_of_supply_scheme: Literal[ |
| 802 |
"inbound_goods", "small_seller", "standard" |
| 803 |
] |
| 804 |
""" |
| 805 |
Place of supply scheme used in an EU standard registration. |
| 806 |
""" |
| 807 |
|
| 808 |
standard: Optional[Standard] |
| 809 |
type: Literal["ioss", "oss_non_union", "oss_union", "standard"] |
| 810 |
""" |
| 811 |
Type of registration in an EU country. |
| 812 |
""" |
| 813 |
_inner_class_types = {"standard": Standard} |
| 814 |
|
| 815 |
class Rs(StripeObject): |
| 816 |
type: Literal["standard"] |
| 817 |
""" |
| 818 |
Type of registration in `country`. |
| 819 |
""" |
| 820 |
|
| 821 |
class Ru(StripeObject): |
| 822 |
type: Literal["simplified"] |
| 823 |
""" |
| 824 |
Type of registration in `country`. |
| 825 |
""" |
| 826 |
|
| 827 |
class Sa(StripeObject): |
| 828 |
type: Literal["simplified"] |
| 829 |
""" |
| 830 |
Type of registration in `country`. |
| 831 |
""" |
| 832 |
|
| 833 |
class Se(StripeObject): |
| 834 |
class Standard(StripeObject): |
| 835 |
place_of_supply_scheme: Literal[ |
| 836 |
"inbound_goods", "small_seller", "standard" |
| 837 |
] |
| 838 |
""" |
| 839 |
Place of supply scheme used in an EU standard registration. |
| 840 |
""" |
| 841 |
|
| 842 |
standard: Optional[Standard] |
| 843 |
type: Literal["ioss", "oss_non_union", "oss_union", "standard"] |
| 844 |
""" |
| 845 |
Type of registration in an EU country. |
| 846 |
""" |
| 847 |
_inner_class_types = {"standard": Standard} |
| 848 |
|
| 849 |
class Sg(StripeObject): |
| 850 |
class Standard(StripeObject): |
| 851 |
place_of_supply_scheme: Literal["inbound_goods", "standard"] |
| 852 |
""" |
| 853 |
Place of supply scheme used in an Default standard registration. |
| 854 |
""" |
| 855 |
|
| 856 |
standard: Optional[Standard] |
| 857 |
type: Literal["standard"] |
| 858 |
""" |
| 859 |
Type of registration in `country`. |
| 860 |
""" |
| 861 |
_inner_class_types = {"standard": Standard} |
| 862 |
|
| 863 |
class Si(StripeObject): |
| 864 |
class Standard(StripeObject): |
| 865 |
place_of_supply_scheme: Literal[ |
| 866 |
"inbound_goods", "small_seller", "standard" |
| 867 |
] |
| 868 |
""" |
| 869 |
Place of supply scheme used in an EU standard registration. |
| 870 |
""" |
| 871 |
|
| 872 |
standard: Optional[Standard] |
| 873 |
type: Literal["ioss", "oss_non_union", "oss_union", "standard"] |
| 874 |
""" |
| 875 |
Type of registration in an EU country. |
| 876 |
""" |
| 877 |
_inner_class_types = {"standard": Standard} |
| 878 |
|
| 879 |
class Sk(StripeObject): |
| 880 |
class Standard(StripeObject): |
| 881 |
place_of_supply_scheme: Literal[ |
| 882 |
"inbound_goods", "small_seller", "standard" |
| 883 |
] |
| 884 |
""" |
| 885 |
Place of supply scheme used in an EU standard registration. |
| 886 |
""" |
| 887 |
|
| 888 |
standard: Optional[Standard] |
| 889 |
type: Literal["ioss", "oss_non_union", "oss_union", "standard"] |
| 890 |
""" |
| 891 |
Type of registration in an EU country. |
| 892 |
""" |
| 893 |
_inner_class_types = {"standard": Standard} |
| 894 |
|
| 895 |
class Sn(StripeObject): |
| 896 |
type: Literal["simplified"] |
| 897 |
""" |
| 898 |
Type of registration in `country`. |
| 899 |
""" |
| 900 |
|
| 901 |
class Sr(StripeObject): |
| 902 |
type: Literal["standard"] |
| 903 |
""" |
| 904 |
Type of registration in `country`. |
| 905 |
""" |
| 906 |
|
| 907 |
class Th(StripeObject): |
| 908 |
type: Literal["simplified"] |
| 909 |
""" |
| 910 |
Type of registration in `country`. |
| 911 |
""" |
| 912 |
|
| 913 |
class Tj(StripeObject): |
| 914 |
type: Literal["simplified"] |
| 915 |
""" |
| 916 |
Type of registration in `country`. |
| 917 |
""" |
| 918 |
|
| 919 |
class Tr(StripeObject): |
| 920 |
type: Literal["simplified"] |
| 921 |
""" |
| 922 |
Type of registration in `country`. |
| 923 |
""" |
| 924 |
|
| 925 |
class Tw(StripeObject): |
| 926 |
type: Literal["simplified"] |
| 927 |
""" |
| 928 |
Type of registration in `country`. |
| 929 |
""" |
| 930 |
|
| 931 |
class Tz(StripeObject): |
| 932 |
type: Literal["simplified"] |
| 933 |
""" |
| 934 |
Type of registration in `country`. |
| 935 |
""" |
| 936 |
|
| 937 |
class Ua(StripeObject): |
| 938 |
type: Literal["simplified"] |
| 939 |
""" |
| 940 |
Type of registration in `country`. |
| 941 |
""" |
| 942 |
|
| 943 |
class Ug(StripeObject): |
| 944 |
type: Literal["simplified"] |
| 945 |
""" |
| 946 |
Type of registration in `country`. |
| 947 |
""" |
| 948 |
|
| 949 |
class Us(StripeObject): |
| 950 |
class LocalAmusementTax(StripeObject): |
| 951 |
jurisdiction: str |
| 952 |
""" |
| 953 |
A [FIPS code](https://www.census.gov/library/reference/code-lists/ansi.html) representing the local jurisdiction. |
| 954 |
""" |
| 955 |
|
| 956 |
class LocalLeaseTax(StripeObject): |
| 957 |
jurisdiction: str |
| 958 |
""" |
| 959 |
A [FIPS code](https://www.census.gov/library/reference/code-lists/ansi.html) representing the local jurisdiction. |
| 960 |
""" |
| 961 |
|
| 962 |
class StateSalesTax(StripeObject): |
| 963 |
class Election(StripeObject): |
| 964 |
jurisdiction: Optional[str] |
| 965 |
""" |
| 966 |
A [FIPS code](https://www.census.gov/library/reference/code-lists/ansi.html) representing the local jurisdiction. |
| 967 |
""" |
| 968 |
type: Literal[ |
| 969 |
"local_use_tax", |
| 970 |
"simplified_sellers_use_tax", |
| 971 |
"single_local_use_tax", |
| 972 |
] |
| 973 |
""" |
| 974 |
The type of the election for the state sales tax registration. |
| 975 |
""" |
| 976 |
|
| 977 |
elections: Optional[List[Election]] |
| 978 |
""" |
| 979 |
Elections for the state sales tax registration. |
| 980 |
""" |
| 981 |
_inner_class_types = {"elections": Election} |
| 982 |
|
| 983 |
local_amusement_tax: Optional[LocalAmusementTax] |
| 984 |
local_lease_tax: Optional[LocalLeaseTax] |
| 985 |
state: str |
| 986 |
""" |
| 987 |
Two-letter US state code ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)). |
| 988 |
""" |
| 989 |
state_sales_tax: Optional[StateSalesTax] |
| 990 |
type: Literal[ |
| 991 |
"local_amusement_tax", |
| 992 |
"local_lease_tax", |
| 993 |
"state_communications_tax", |
| 994 |
"state_retail_delivery_fee", |
| 995 |
"state_sales_tax", |
| 996 |
] |
| 997 |
""" |
| 998 |
Type of registration in the US. |
| 999 |
""" |
| 1000 |
_inner_class_types = { |
| 1001 |
"local_amusement_tax": LocalAmusementTax, |
| 1002 |
"local_lease_tax": LocalLeaseTax, |
| 1003 |
"state_sales_tax": StateSalesTax, |
| 1004 |
} |
| 1005 |
|
| 1006 |
class Uy(StripeObject): |
| 1007 |
type: Literal["standard"] |
| 1008 |
""" |
| 1009 |
Type of registration in `country`. |
| 1010 |
""" |
| 1011 |
|
| 1012 |
class Uz(StripeObject): |
| 1013 |
type: Literal["simplified"] |
| 1014 |
""" |
| 1015 |
Type of registration in `country`. |
| 1016 |
""" |
| 1017 |
|
| 1018 |
class Vn(StripeObject): |
| 1019 |
type: Literal["simplified"] |
| 1020 |
""" |
| 1021 |
Type of registration in `country`. |
| 1022 |
""" |
| 1023 |
|
| 1024 |
class Za(StripeObject): |
| 1025 |
type: Literal["standard"] |
| 1026 |
""" |
| 1027 |
Type of registration in `country`. |
| 1028 |
""" |
| 1029 |
|
| 1030 |
class Zm(StripeObject): |
| 1031 |
type: Literal["simplified"] |
| 1032 |
""" |
| 1033 |
Type of registration in `country`. |
| 1034 |
""" |
| 1035 |
|
| 1036 |
class Zw(StripeObject): |
| 1037 |
type: Literal["standard"] |
| 1038 |
""" |
| 1039 |
Type of registration in `country`. |
| 1040 |
""" |
| 1041 |
|
| 1042 |
ae: Optional[Ae] |
| 1043 |
al: Optional[Al] |
| 1044 |
am: Optional[Am] |
| 1045 |
ao: Optional[Ao] |
| 1046 |
at: Optional[At] |
| 1047 |
au: Optional[Au] |
| 1048 |
aw: Optional[Aw] |
| 1049 |
az: Optional[Az] |
| 1050 |
ba: Optional[Ba] |
| 1051 |
bb: Optional[Bb] |
| 1052 |
bd: Optional[Bd] |
| 1053 |
be: Optional[Be] |
| 1054 |
bf: Optional[Bf] |
| 1055 |
bg: Optional[Bg] |
| 1056 |
bh: Optional[Bh] |
| 1057 |
bj: Optional[Bj] |
| 1058 |
bs: Optional[Bs] |
| 1059 |
by: Optional[By] |
| 1060 |
ca: Optional[Ca] |
| 1061 |
cd: Optional[Cd] |
| 1062 |
ch: Optional[Ch] |
| 1063 |
cl: Optional[Cl] |
| 1064 |
cm: Optional[Cm] |
| 1065 |
co: Optional[Co] |
| 1066 |
cr: Optional[Cr] |
| 1067 |
cv: Optional[Cv] |
| 1068 |
cy: Optional[Cy] |
| 1069 |
cz: Optional[Cz] |
| 1070 |
de: Optional[De] |
| 1071 |
dk: Optional[Dk] |
| 1072 |
ec: Optional[Ec] |
| 1073 |
ee: Optional[Ee] |
| 1074 |
eg: Optional[Eg] |
| 1075 |
es: Optional[Es] |
| 1076 |
et: Optional[Et] |
| 1077 |
fi: Optional[Fi] |
| 1078 |
fr: Optional[Fr] |
| 1079 |
gb: Optional[Gb] |
| 1080 |
ge: Optional[Ge] |
| 1081 |
gn: Optional[Gn] |
| 1082 |
gr: Optional[Gr] |
| 1083 |
hr: Optional[Hr] |
| 1084 |
hu: Optional[Hu] |
| 1085 |
id: Optional[Id] |
| 1086 |
ie: Optional[Ie] |
| 1087 |
in_: Optional[In] |
| 1088 |
is_: Optional[Is] |
| 1089 |
it: Optional[It] |
| 1090 |
jp: Optional[Jp] |
| 1091 |
ke: Optional[Ke] |
| 1092 |
kg: Optional[Kg] |
| 1093 |
kh: Optional[Kh] |
| 1094 |
kr: Optional[Kr] |
| 1095 |
kz: Optional[Kz] |
| 1096 |
la: Optional[La] |
| 1097 |
lk: Optional[Lk] |
| 1098 |
lt: Optional[Lt] |
| 1099 |
lu: Optional[Lu] |
| 1100 |
lv: Optional[Lv] |
| 1101 |
ma: Optional[Ma] |
| 1102 |
md: Optional[Md] |
| 1103 |
me: Optional[Me] |
| 1104 |
mk: Optional[Mk] |
| 1105 |
mr: Optional[Mr] |
| 1106 |
mt: Optional[Mt] |
| 1107 |
mx: Optional[Mx] |
| 1108 |
my: Optional[My] |
| 1109 |
ng: Optional[Ng] |
| 1110 |
nl: Optional[Nl] |
| 1111 |
no: Optional[No] |
| 1112 |
np: Optional[Np] |
| 1113 |
nz: Optional[Nz] |
| 1114 |
om: Optional[Om] |
| 1115 |
pe: Optional[Pe] |
| 1116 |
ph: Optional[Ph] |
| 1117 |
pl: Optional[Pl] |
| 1118 |
pt: Optional[Pt] |
| 1119 |
ro: Optional[Ro] |
| 1120 |
rs: Optional[Rs] |
| 1121 |
ru: Optional[Ru] |
| 1122 |
sa: Optional[Sa] |
| 1123 |
se: Optional[Se] |
| 1124 |
sg: Optional[Sg] |
| 1125 |
si: Optional[Si] |
| 1126 |
sk: Optional[Sk] |
| 1127 |
sn: Optional[Sn] |
| 1128 |
sr: Optional[Sr] |
| 1129 |
th: Optional[Th] |
| 1130 |
tj: Optional[Tj] |
| 1131 |
tr: Optional[Tr] |
| 1132 |
tw: Optional[Tw] |
| 1133 |
tz: Optional[Tz] |
| 1134 |
ua: Optional[Ua] |
| 1135 |
ug: Optional[Ug] |
| 1136 |
us: Optional[Us] |
| 1137 |
uy: Optional[Uy] |
| 1138 |
uz: Optional[Uz] |
| 1139 |
vn: Optional[Vn] |
| 1140 |
za: Optional[Za] |
| 1141 |
zm: Optional[Zm] |
| 1142 |
zw: Optional[Zw] |
| 1143 |
_inner_class_types = { |
| 1144 |
"ae": Ae, |
| 1145 |
"al": Al, |
| 1146 |
"am": Am, |
| 1147 |
"ao": Ao, |
| 1148 |
"at": At, |
| 1149 |
"au": Au, |
| 1150 |
"aw": Aw, |
| 1151 |
"az": Az, |
| 1152 |
"ba": Ba, |
| 1153 |
"bb": Bb, |
| 1154 |
"bd": Bd, |
| 1155 |
"be": Be, |
| 1156 |
"bf": Bf, |
| 1157 |
"bg": Bg, |
| 1158 |
"bh": Bh, |
| 1159 |
"bj": Bj, |
| 1160 |
"bs": Bs, |
| 1161 |
"by": By, |
| 1162 |
"ca": Ca, |
| 1163 |
"cd": Cd, |
| 1164 |
"ch": Ch, |
| 1165 |
"cl": Cl, |
| 1166 |
"cm": Cm, |
| 1167 |
"co": Co, |
| 1168 |
"cr": Cr, |
| 1169 |
"cv": Cv, |
| 1170 |
"cy": Cy, |
| 1171 |
"cz": Cz, |
| 1172 |
"de": De, |
| 1173 |
"dk": Dk, |
| 1174 |
"ec": Ec, |
| 1175 |
"ee": Ee, |
| 1176 |
"eg": Eg, |
| 1177 |
"es": Es, |
| 1178 |
"et": Et, |
| 1179 |
"fi": Fi, |
| 1180 |
"fr": Fr, |
| 1181 |
"gb": Gb, |
| 1182 |
"ge": Ge, |
| 1183 |
"gn": Gn, |
| 1184 |
"gr": Gr, |
| 1185 |
"hr": Hr, |
| 1186 |
"hu": Hu, |
| 1187 |
"id": Id, |
| 1188 |
"ie": Ie, |
| 1189 |
"in": In, |
| 1190 |
"is": Is, |
| 1191 |
"it": It, |
| 1192 |
"jp": Jp, |
| 1193 |
"ke": Ke, |
| 1194 |
"kg": Kg, |
| 1195 |
"kh": Kh, |
| 1196 |
"kr": Kr, |
| 1197 |
"kz": Kz, |
| 1198 |
"la": La, |
| 1199 |
"lk": Lk, |
| 1200 |
"lt": Lt, |
| 1201 |
"lu": Lu, |
| 1202 |
"lv": Lv, |
| 1203 |
"ma": Ma, |
| 1204 |
"md": Md, |
| 1205 |
"me": Me, |
| 1206 |
"mk": Mk, |
| 1207 |
"mr": Mr, |
| 1208 |
"mt": Mt, |
| 1209 |
"mx": Mx, |
| 1210 |
"my": My, |
| 1211 |
"ng": Ng, |
| 1212 |
"nl": Nl, |
| 1213 |
"no": No, |
| 1214 |
"np": Np, |
| 1215 |
"nz": Nz, |
| 1216 |
"om": Om, |
| 1217 |
"pe": Pe, |
| 1218 |
"ph": Ph, |
| 1219 |
"pl": Pl, |
| 1220 |
"pt": Pt, |
| 1221 |
"ro": Ro, |
| 1222 |
"rs": Rs, |
| 1223 |
"ru": Ru, |
| 1224 |
"sa": Sa, |
| 1225 |
"se": Se, |
| 1226 |
"sg": Sg, |
| 1227 |
"si": Si, |
| 1228 |
"sk": Sk, |
| 1229 |
"sn": Sn, |
| 1230 |
"sr": Sr, |
| 1231 |
"th": Th, |
| 1232 |
"tj": Tj, |
| 1233 |
"tr": Tr, |
| 1234 |
"tw": Tw, |
| 1235 |
"tz": Tz, |
| 1236 |
"ua": Ua, |
| 1237 |
"ug": Ug, |
| 1238 |
"us": Us, |
| 1239 |
"uy": Uy, |
| 1240 |
"uz": Uz, |
| 1241 |
"vn": Vn, |
| 1242 |
"za": Za, |
| 1243 |
"zm": Zm, |
| 1244 |
"zw": Zw, |
| 1245 |
} |
| 1246 |
_field_remappings = {"in_": "in", "is_": "is"} |
| 1247 |
|
| 1248 |
active_from: int |
| 1249 |
""" |
| 1250 |
Time at which the registration becomes active. Measured in seconds since the Unix epoch. |
| 1251 |
""" |
| 1252 |
country: str |
| 1253 |
""" |
| 1254 |
Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). |
| 1255 |
""" |
| 1256 |
country_options: CountryOptions |
| 1257 |
created: int |
| 1258 |
""" |
| 1259 |
Time at which the object was created. Measured in seconds since the Unix epoch. |
| 1260 |
""" |
| 1261 |
expires_at: Optional[int] |
| 1262 |
""" |
| 1263 |
If set, the registration stops being active at this time. If not set, the registration will be active indefinitely. Measured in seconds since the Unix epoch. |
| 1264 |
""" |
| 1265 |
id: str |
| 1266 |
""" |
| 1267 |
Unique identifier for the object. |
| 1268 |
""" |
| 1269 |
livemode: bool |
| 1270 |
""" |
| 1271 |
Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. |
| 1272 |
""" |
| 1273 |
object: Literal["tax.registration"] |
| 1274 |
""" |
| 1275 |
String representing the object's type. Objects of the same type share the same value. |
| 1276 |
""" |
| 1277 |
status: Literal["active", "expired", "scheduled"] |
| 1278 |
""" |
| 1279 |
The status of the registration. This field is present for convenience and can be deduced from `active_from` and `expires_at`. |
| 1280 |
""" |
| 1281 |
|
| 1282 |
@classmethod |
| 1283 |
def create( |
| 1284 |
cls, **params: Unpack["RegistrationCreateParams"] |
| 1285 |
) -> "Registration": |
| 1286 |
""" |
| 1287 |
Creates a new Tax Registration object. |
| 1288 |
""" |
| 1289 |
return cast( |
| 1290 |
"Registration", |
| 1291 |
cls._static_request( |
| 1292 |
"post", |
| 1293 |
cls.class_url(), |
| 1294 |
params=params, |
| 1295 |
), |
| 1296 |
) |
| 1297 |
|
| 1298 |
@classmethod |
| 1299 |
async def create_async( |
| 1300 |
cls, **params: Unpack["RegistrationCreateParams"] |
| 1301 |
) -> "Registration": |
| 1302 |
""" |
| 1303 |
Creates a new Tax Registration object. |
| 1304 |
""" |
| 1305 |
return cast( |
| 1306 |
"Registration", |
| 1307 |
await cls._static_request_async( |
| 1308 |
"post", |
| 1309 |
cls.class_url(), |
| 1310 |
params=params, |
| 1311 |
), |
| 1312 |
) |
| 1313 |
|
| 1314 |
@classmethod |
| 1315 |
def list( |
| 1316 |
cls, **params: Unpack["RegistrationListParams"] |
| 1317 |
) -> ListObject["Registration"]: |
| 1318 |
""" |
| 1319 |
Returns a list of Tax Registration objects. |
| 1320 |
""" |
| 1321 |
result = cls._static_request( |
| 1322 |
"get", |
| 1323 |
cls.class_url(), |
| 1324 |
params=params, |
| 1325 |
) |
| 1326 |
if not isinstance(result, ListObject): |
| 1327 |
raise TypeError( |
| 1328 |
"Expected list object from API, got %s" |
| 1329 |
% (type(result).__name__) |
| 1330 |
) |
| 1331 |
|
| 1332 |
return result |
| 1333 |
|
| 1334 |
@classmethod |
| 1335 |
async def list_async( |
| 1336 |
cls, **params: Unpack["RegistrationListParams"] |
| 1337 |
) -> ListObject["Registration"]: |
| 1338 |
""" |
| 1339 |
Returns a list of Tax Registration objects. |
| 1340 |
""" |
| 1341 |
result = await cls._static_request_async( |
| 1342 |
"get", |
| 1343 |
cls.class_url(), |
| 1344 |
params=params, |
| 1345 |
) |
| 1346 |
if not isinstance(result, ListObject): |
| 1347 |
raise TypeError( |
| 1348 |
"Expected list object from API, got %s" |
| 1349 |
% (type(result).__name__) |
| 1350 |
) |
| 1351 |
|
| 1352 |
return result |
| 1353 |
|
| 1354 |
@classmethod |
| 1355 |
def modify( |
| 1356 |
cls, id: str, **params: Unpack["RegistrationModifyParams"] |
| 1357 |
) -> "Registration": |
| 1358 |
""" |
| 1359 |
Updates an existing Tax Registration object. |
| 1360 |
|
| 1361 |
A registration cannot be deleted after it has been created. If you wish to end a registration you may do so by setting expires_at. |
| 1362 |
""" |
| 1363 |
url = "%s/%s" % (cls.class_url(), sanitize_id(id)) |
| 1364 |
return cast( |
| 1365 |
"Registration", |
| 1366 |
cls._static_request( |
| 1367 |
"post", |
| 1368 |
url, |
| 1369 |
params=params, |
| 1370 |
), |
| 1371 |
) |
| 1372 |
|
| 1373 |
@classmethod |
| 1374 |
async def modify_async( |
| 1375 |
cls, id: str, **params: Unpack["RegistrationModifyParams"] |
| 1376 |
) -> "Registration": |
| 1377 |
""" |
| 1378 |
Updates an existing Tax Registration object. |
| 1379 |
|
| 1380 |
A registration cannot be deleted after it has been created. If you wish to end a registration you may do so by setting expires_at. |
| 1381 |
""" |
| 1382 |
url = "%s/%s" % (cls.class_url(), sanitize_id(id)) |
| 1383 |
return cast( |
| 1384 |
"Registration", |
| 1385 |
await cls._static_request_async( |
| 1386 |
"post", |
| 1387 |
url, |
| 1388 |
params=params, |
| 1389 |
), |
| 1390 |
) |
| 1391 |
|
| 1392 |
@classmethod |
| 1393 |
def retrieve( |
| 1394 |
cls, id: str, **params: Unpack["RegistrationRetrieveParams"] |
| 1395 |
) -> "Registration": |
| 1396 |
""" |
| 1397 |
Returns a Tax Registration object. |
| 1398 |
""" |
| 1399 |
instance = cls(id, **params) |
| 1400 |
instance.refresh() |
| 1401 |
return instance |
| 1402 |
|
| 1403 |
@classmethod |
| 1404 |
async def retrieve_async( |
| 1405 |
cls, id: str, **params: Unpack["RegistrationRetrieveParams"] |
| 1406 |
) -> "Registration": |
| 1407 |
""" |
| 1408 |
Returns a Tax Registration object. |
| 1409 |
""" |
| 1410 |
instance = cls(id, **params) |
| 1411 |
await instance.refresh_async() |
| 1412 |
return instance |
| 1413 |
|
| 1414 |
_inner_class_types = {"country_options": CountryOptions} |