Skip to content

Commit 36600fb

Browse files
authored
Merge branch 'main' into brtc-python-sdk
2 parents 21e4552 + 5cb755c commit 36600fb

23 files changed

+324
-53
lines changed

.openapi-generator/FILES

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ bandwidth/models/blocked_webhook.py
2929
bandwidth/models/bridge_complete_callback.py
3030
bandwidth/models/bridge_target_complete_callback.py
3131
bandwidth/models/business_entity_type_enum.py
32+
bandwidth/models/business_registration_issuing_country_enum.py
3233
bandwidth/models/business_registration_type_enum.py
3334
bandwidth/models/call_direction_enum.py
3435
bandwidth/models/call_recording_metadata.py
@@ -226,6 +227,7 @@ docs/BlockedWebhook.md
226227
docs/BridgeCompleteCallback.md
227228
docs/BridgeTargetCompleteCallback.md
228229
docs/BusinessEntityTypeEnum.md
230+
docs/BusinessRegistrationIssuingCountryEnum.md
229231
docs/BusinessRegistrationTypeEnum.md
230232
docs/CallDirectionEnum.md
231233
docs/CallRecordingMetadata.md

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ Class | Method | HTTP request | Description
171171
- [BridgeCompleteCallback](docs/BridgeCompleteCallback.md)
172172
- [BridgeTargetCompleteCallback](docs/BridgeTargetCompleteCallback.md)
173173
- [BusinessEntityTypeEnum](docs/BusinessEntityTypeEnum.md)
174+
- [BusinessRegistrationIssuingCountryEnum](docs/BusinessRegistrationIssuingCountryEnum.md)
174175
- [BusinessRegistrationTypeEnum](docs/BusinessRegistrationTypeEnum.md)
175176
- [CallDirectionEnum](docs/CallDirectionEnum.md)
176177
- [CallRecordingMetadata](docs/CallRecordingMetadata.md)

bandwidth.yml

Lines changed: 88 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -6003,38 +6003,106 @@ components:
60036003
type: string
60046004
businessRegistrationNumber:
60056005
type: string
6006-
description: >-
6007-
US Federal Tax ID Number (EIN) or Canada Business Number (CBN). Optional
6008-
until early 2026. If a value is provided for this field, a value must be
6009-
provided for `businessRegistrationType` and `businessEntityType`.
6010-
Available starting October 1st, 2025.
6006+
description: Government-issued business identifying number.
60116007
nullable: true
60126008
maxLength: 500
60136009
example: 12-3456789
60146010
businessRegistrationTypeEnum:
60156011
type: string
6016-
description: >-
6017-
The type of business registration number. Optional until early 2026;
6018-
required if `businessRegistrationNumber` is provided. Available starting
6019-
October 1st, 2025.
6012+
description: The type of business registration number.
60206013
enum:
60216014
- EIN
60226015
- CBN
6016+
- NEQ
6017+
- PROVINCIAL_NUMBER
6018+
- CRN
6019+
- VAT
6020+
- ACN
6021+
- ABN
6022+
- BRN
6023+
- SIREN
6024+
- SIRET
6025+
- NZBN
6026+
- UST_IDNR
6027+
- CIF
6028+
- NIF
6029+
- CNPJ
6030+
- UID
6031+
- OTHER
60236032
nullable: true
6033+
businessRegistrationIssuingCountryEnum:
6034+
type: string
6035+
description: >-
6036+
The country issuing the business registration in ISO-3166-1 alpha-3
6037+
format.
6038+
6039+
6040+
| Registration Type | Supported Countries |
6041+
6042+
|----------------------|------------------------------------|
6043+
6044+
| EIN | USA |
6045+
6046+
| CBN | CAN |
6047+
6048+
| NEQ | CAN |
6049+
6050+
| PROVINCIAL_NUMBER | CAN |
6051+
6052+
| CRN | GBR, HKG |
6053+
6054+
| VAT | GBR, IRL, BRA, NLD |
6055+
6056+
| ACN | AUS |
6057+
6058+
| ABN | AUS |
6059+
6060+
| BRN | HKG |
6061+
6062+
| SIREN | FRA |
6063+
6064+
| SIRET | FRA |
6065+
6066+
| NZBN | NZL |
6067+
6068+
| UST_IDNR | DEU |
6069+
6070+
| CIF | ESP |
6071+
6072+
| NIF | ESP |
6073+
6074+
| CNPJ | BRA |
6075+
6076+
| UID | CHE |
6077+
6078+
| OTHER | Must Provide Country Code |
6079+
enum:
6080+
- USA
6081+
- CAN
6082+
- HKG
6083+
- GBR
6084+
- IRL
6085+
- BRA
6086+
- NLD
6087+
- AUS
6088+
- FRA
6089+
- NZL
6090+
- DEU
6091+
- ESP
6092+
- CHE
6093+
nullable: false
60246094
businessEntityTypeEnum:
60256095
type: string
60266096
description: >-
60276097
The type of registered business. If no option is applicable, please
6028-
provide "SOLE_PROPRIETOR" as a value. Optional until early 2026;
6029-
required if `businessRegistrationNumber` is provided. Available starting
6030-
October 1st, 2025.
6098+
provide "SOLE_PROPRIETOR" as a value.
60316099
enum:
60326100
- SOLE_PROPRIETOR
60336101
- PRIVATE_PROFIT
60346102
- PUBLIC_PROFIT
60356103
- NON_PROFIT
60366104
- GOVERNMENT
6037-
nullable: true
6105+
nullable: false
60386106
helpMessageResponse:
60396107
type: string
60406108
description: A message that gets sent to users requesting help.
@@ -6089,6 +6157,7 @@ components:
60896157
- useCaseSummary
60906158
- productionMessageContent
60916159
- optInWorkflow
6160+
- businessEntityType
60926161
properties:
60936162
businessAddress:
60946163
$ref: '#/components/schemas/address'
@@ -6133,6 +6202,8 @@ components:
61336202
$ref: '#/components/schemas/businessRegistrationNumber'
61346203
businessRegistrationType:
61356204
$ref: '#/components/schemas/businessRegistrationTypeEnum'
6205+
businessRegistrationIssuingCountry:
6206+
$ref: '#/components/schemas/businessRegistrationIssuingCountryEnum'
61366207
businessEntityType:
61376208
$ref: '#/components/schemas/businessEntityTypeEnum'
61386209
helpMessageResponse:
@@ -6186,6 +6257,8 @@ components:
61866257
$ref: '#/components/schemas/businessRegistrationTypeEnum'
61876258
businessEntityType:
61886259
$ref: '#/components/schemas/businessEntityTypeEnum'
6260+
businessRegistrationIssuingCountry:
6261+
$ref: '#/components/schemas/businessRegistrationIssuingCountryEnum'
61896262
helpMessageResponse:
61906263
$ref: '#/components/schemas/helpMessageResponse'
61916264
ageGatedContent:
@@ -6678,20 +6751,12 @@ components:
66786751
$ref: '#/components/schemas/businessDba'
66796752
businessRegistrationNumber:
66806753
$ref: '#/components/schemas/businessRegistrationNumber'
6681-
description: >-
6682-
US Federal Tax ID Number (EIN) or Canada Business Number (CBN).
6683-
Available starting October 1st, 2025.
66846754
businessRegistrationType:
66856755
$ref: '#/components/schemas/businessRegistrationTypeEnum'
6686-
description: >-
6687-
The type of business registration number. Available starting October
6688-
1st, 2025.
6756+
businessRegistrationIssuingCountry:
6757+
$ref: '#/components/schemas/businessRegistrationIssuingCountryEnum'
66896758
businessEntityType:
66906759
$ref: '#/components/schemas/businessEntityTypeEnum'
6691-
description: >-
6692-
The type of registered business. If no option is applicable, please
6693-
provide "SOLE_PROPRIETOR" as a value. Available starting October
6694-
1st, 2025.
66956760
tfvStatusEnum:
66966761
type: string
66976762
enum:

bandwidth/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
"BridgeCompleteCallback",
5050
"BridgeTargetCompleteCallback",
5151
"BusinessEntityTypeEnum",
52+
"BusinessRegistrationIssuingCountryEnum",
5253
"BusinessRegistrationTypeEnum",
5354
"CallDirectionEnum",
5455
"CallRecordingMetadata",
@@ -272,6 +273,7 @@
272273
from bandwidth.models.bridge_complete_callback import BridgeCompleteCallback as BridgeCompleteCallback
273274
from bandwidth.models.bridge_target_complete_callback import BridgeTargetCompleteCallback as BridgeTargetCompleteCallback
274275
from bandwidth.models.business_entity_type_enum import BusinessEntityTypeEnum as BusinessEntityTypeEnum
276+
from bandwidth.models.business_registration_issuing_country_enum import BusinessRegistrationIssuingCountryEnum as BusinessRegistrationIssuingCountryEnum
275277
from bandwidth.models.business_registration_type_enum import BusinessRegistrationTypeEnum as BusinessRegistrationTypeEnum
276278
from bandwidth.models.call_direction_enum import CallDirectionEnum as CallDirectionEnum
277279
from bandwidth.models.call_recording_metadata import CallRecordingMetadata as CallRecordingMetadata

bandwidth/models/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
from bandwidth.models.bridge_complete_callback import BridgeCompleteCallback
2424
from bandwidth.models.bridge_target_complete_callback import BridgeTargetCompleteCallback
2525
from bandwidth.models.business_entity_type_enum import BusinessEntityTypeEnum
26+
from bandwidth.models.business_registration_issuing_country_enum import BusinessRegistrationIssuingCountryEnum
2627
from bandwidth.models.business_registration_type_enum import BusinessRegistrationTypeEnum
2728
from bandwidth.models.call_direction_enum import CallDirectionEnum
2829
from bandwidth.models.call_recording_metadata import CallRecordingMetadata

bandwidth/models/business_entity_type_enum.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
class BusinessEntityTypeEnum(str, Enum):
2323
"""
24-
The type of registered business. If no option is applicable, please provide \"SOLE_PROPRIETOR\" as a value. Optional until early 2026; required if `businessRegistrationNumber` is provided. Available starting October 1st, 2025.
24+
The type of registered business. If no option is applicable, please provide \"SOLE_PROPRIETOR\" as a value.
2525
"""
2626

2727
"""
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# coding: utf-8
2+
3+
"""
4+
Bandwidth
5+
6+
Bandwidth's Communication APIs
7+
8+
The version of the OpenAPI document: 1.0.0
9+
Contact: letstalk@bandwidth.com
10+
Generated by OpenAPI Generator (https://openapi-generator.tech)
11+
12+
Do not edit the class manually.
13+
""" # noqa: E501
14+
15+
16+
from __future__ import annotations
17+
import json
18+
from enum import Enum
19+
from typing_extensions import Self
20+
21+
22+
class BusinessRegistrationIssuingCountryEnum(str, Enum):
23+
"""
24+
The country issuing the business registration in ISO-3166-1 alpha-3 format. | 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 |
25+
"""
26+
27+
"""
28+
allowed enum values
29+
"""
30+
USA = 'USA'
31+
CAN = 'CAN'
32+
HKG = 'HKG'
33+
GBR = 'GBR'
34+
IRL = 'IRL'
35+
BRA = 'BRA'
36+
NLD = 'NLD'
37+
AUS = 'AUS'
38+
FRA = 'FRA'
39+
NZL = 'NZL'
40+
DEU = 'DEU'
41+
ESP = 'ESP'
42+
CHE = 'CHE'
43+
44+
@classmethod
45+
def from_json(cls, json_str: str) -> Self:
46+
"""Create an instance of BusinessRegistrationIssuingCountryEnum from a JSON string"""
47+
return cls(json.loads(json_str))
48+
49+

bandwidth/models/business_registration_type_enum.py

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,30 @@
2121

2222
class BusinessRegistrationTypeEnum(str, Enum):
2323
"""
24-
The type of business registration number. Optional until early 2026; required if `businessRegistrationNumber` is provided. Available starting October 1st, 2025.
24+
The type of business registration number.
2525
"""
2626

2727
"""
2828
allowed enum values
2929
"""
3030
EIN = 'EIN'
3131
CBN = 'CBN'
32+
NEQ = 'NEQ'
33+
PROVINCIAL_NUMBER = 'PROVINCIAL_NUMBER'
34+
CRN = 'CRN'
35+
VAT = 'VAT'
36+
ACN = 'ACN'
37+
ABN = 'ABN'
38+
BRN = 'BRN'
39+
SIREN = 'SIREN'
40+
SIRET = 'SIRET'
41+
NZBN = 'NZBN'
42+
UST_IDNR = 'UST_IDNR'
43+
CIF = 'CIF'
44+
NIF = 'NIF'
45+
CNPJ = 'CNPJ'
46+
UID = 'UID'
47+
OTHER = 'OTHER'
3248

3349
@classmethod
3450
def from_json(cls, json_str: str) -> Self:

bandwidth/models/tfv_submission_info.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
from typing_extensions import Annotated
2424
from bandwidth.models.address import Address
2525
from bandwidth.models.business_entity_type_enum import BusinessEntityTypeEnum
26+
from bandwidth.models.business_registration_issuing_country_enum import BusinessRegistrationIssuingCountryEnum
2627
from bandwidth.models.business_registration_type_enum import BusinessRegistrationTypeEnum
2728
from bandwidth.models.contact import Contact
2829
from bandwidth.models.opt_in_workflow import OptInWorkflow
@@ -45,11 +46,12 @@ class TfvSubmissionInfo(BaseModel):
4546
privacy_policy_url: Optional[StrictStr] = Field(default=None, description="The Toll-Free Verification request privacy policy URL.", alias="privacyPolicyUrl")
4647
terms_and_conditions_url: Optional[StrictStr] = Field(default=None, description="The Toll-Free Verification request terms and conditions policy URL.", alias="termsAndConditionsUrl")
4748
business_dba: Optional[StrictStr] = Field(default=None, description="The company 'Doing Business As'.", alias="businessDba")
48-
business_registration_number: Optional[Annotated[str, Field(strict=True, max_length=500)]] = Field(default=None, description="US Federal Tax ID Number (EIN) or Canada Business Number (CBN). Optional until early 2026. If a value is provided for this field, a value must be provided for `businessRegistrationType` and `businessEntityType`. Available starting October 1st, 2025.", alias="businessRegistrationNumber")
49+
business_registration_number: Optional[Annotated[str, Field(strict=True, max_length=500)]] = Field(default=None, description="Government-issued business identifying number.", alias="businessRegistrationNumber")
4950
business_registration_type: Optional[BusinessRegistrationTypeEnum] = Field(default=None, alias="businessRegistrationType")
51+
business_registration_issuing_country: Optional[BusinessRegistrationIssuingCountryEnum] = Field(default=None, alias="businessRegistrationIssuingCountry")
5052
business_entity_type: Optional[BusinessEntityTypeEnum] = Field(default=None, alias="businessEntityType")
5153
additional_properties: Dict[str, Any] = {}
52-
__properties: ClassVar[List[str]] = ["businessAddress", "businessContact", "messageVolume", "useCase", "useCaseSummary", "productionMessageContent", "optInWorkflow", "additionalInformation", "isvReseller", "privacyPolicyUrl", "termsAndConditionsUrl", "businessDba", "businessRegistrationNumber", "businessRegistrationType", "businessEntityType"]
54+
__properties: ClassVar[List[str]] = ["businessAddress", "businessContact", "messageVolume", "useCase", "useCaseSummary", "productionMessageContent", "optInWorkflow", "additionalInformation", "isvReseller", "privacyPolicyUrl", "termsAndConditionsUrl", "businessDba", "businessRegistrationNumber", "businessRegistrationType", "businessRegistrationIssuingCountry", "businessEntityType"]
5355

5456
model_config = ConfigDict(
5557
populate_by_name=True,
@@ -126,11 +128,6 @@ def to_dict(self) -> Dict[str, Any]:
126128
if self.business_registration_type is None and "business_registration_type" in self.model_fields_set:
127129
_dict['businessRegistrationType'] = None
128130

129-
# set to None if business_entity_type (nullable) is None
130-
# and model_fields_set contains the field
131-
if self.business_entity_type is None and "business_entity_type" in self.model_fields_set:
132-
_dict['businessEntityType'] = None
133-
134131
return _dict
135132

136133
@classmethod
@@ -157,6 +154,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
157154
"businessDba": obj.get("businessDba"),
158155
"businessRegistrationNumber": obj.get("businessRegistrationNumber"),
159156
"businessRegistrationType": obj.get("businessRegistrationType"),
157+
"businessRegistrationIssuingCountry": obj.get("businessRegistrationIssuingCountry"),
160158
"businessEntityType": obj.get("businessEntityType")
161159
})
162160
# store additional fields in additional_properties

0 commit comments

Comments
 (0)