-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathbusiness_registration_issuing_country_enum.py
More file actions
53 lines (41 loc) · 2.77 KB
/
business_registration_issuing_country_enum.py
File metadata and controls
53 lines (41 loc) · 2.77 KB
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
# coding: utf-8
"""
Bandwidth
Bandwidth's Communication APIs
The version of the OpenAPI document: 1.0.0
Contact: letstalk@bandwidth.com
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
from __future__ import annotations
import json
from enum import Enum
from typing_extensions import Self
class BusinessRegistrationIssuingCountryEnum(str, Enum):
"""
The country issuing the business registration in ISO-3166-1 alpha-3 format. Alpha-2 country codes are acceptable, but the application will convert them to alpha-3 when received, so alpha-3 is encouraged. **Note:** If this field is omitted but `businessRegistrationType` is provided, the application will attempt to infer the country based on the registration type. However, if the application cannot confidently infer the country, the submission may be rejected. To ensure the highest likelihood of acceptance, it is recommended to provide both `businessRegistrationType` and `businessRegistrationIssuingCountry`. | Registration Type | Supported Countries | |----------------------|------------------------------------| | EIN | USA | | CBN | CAN | | NEQ | CAN | | PROVINCIAL_NUMBER | CAN | | CRN | GBR, HKG | | VAT | GBR, IRL, BRA, NLD | | ACN | AUS | | ABN | AUS | | BRN | HKG | | SIREN | FRA | | SIRET | FRA | | NZBN | NZL | | UST_IDNR | DEU | | CIF | ESP | | NIF | ESP | | CNPJ | BRA | | UID | CHE | | OTHER | Must Provide Country Code |
"""
"""
allowed enum values
"""
USA = 'USA'
CAN = 'CAN'
HKG = 'HKG'
GBR = 'GBR'
IRL = 'IRL'
BRA = 'BRA'
NLD = 'NLD'
AUS = 'AUS'
FRA = 'FRA'
NZL = 'NZL'
DEU = 'DEU'
ESP = 'ESP'
CHE = 'CHE'
CYP = 'CYP'
IND = 'IND'
CHN = 'CHN'
BGR = 'BGR'
@classmethod
def from_json(cls, json_str: str) -> Self:
"""Create an instance of BusinessRegistrationIssuingCountryEnum from a JSON string"""
return cls(json.loads(json_str))