Skip to content

Commit f1d1e9f

Browse files
committed
Generate SDK with OpenAPI Generator Version
1 parent 99a14da commit f1d1e9f

15 files changed

Lines changed: 46 additions & 49 deletions

‎.openapi-generator/FILES‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ bandwidth/models/blocked_webhook.py
2828
bandwidth/models/bridge_complete_callback.py
2929
bandwidth/models/bridge_target_complete_callback.py
3030
bandwidth/models/business_entity_type_enum.py
31-
bandwidth/models/business_registration_issuing_country_enum.py
3231
bandwidth/models/business_registration_type_enum.py
3332
bandwidth/models/call_direction_enum.py
3433
bandwidth/models/call_recording_metadata.py
@@ -207,7 +206,6 @@ docs/BlockedWebhook.md
207206
docs/BridgeCompleteCallback.md
208207
docs/BridgeTargetCompleteCallback.md
209208
docs/BusinessEntityTypeEnum.md
210-
docs/BusinessRegistrationIssuingCountryEnum.md
211209
docs/BusinessRegistrationTypeEnum.md
212210
docs/CallDirectionEnum.md
213211
docs/CallRecordingMetadata.md

‎README.md‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,6 @@ Class | Method | HTTP request | Description
166166
- [BridgeCompleteCallback](docs/BridgeCompleteCallback.md)
167167
- [BridgeTargetCompleteCallback](docs/BridgeTargetCompleteCallback.md)
168168
- [BusinessEntityTypeEnum](docs/BusinessEntityTypeEnum.md)
169-
- [BusinessRegistrationIssuingCountryEnum](docs/BusinessRegistrationIssuingCountryEnum.md)
170169
- [BusinessRegistrationTypeEnum](docs/BusinessRegistrationTypeEnum.md)
171170
- [CallDirectionEnum](docs/CallDirectionEnum.md)
172171
- [CallRecordingMetadata](docs/CallRecordingMetadata.md)

‎bandwidth.yml‎

Lines changed: 30 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -5828,13 +5828,21 @@ components:
58285828
type: string
58295829
businessRegistrationNumber:
58305830
type: string
5831-
description: Government-issued business identifying number.
5831+
description: >
5832+
Government-issued business identifying number.
5833+
5834+
5835+
**Note:** If this field is provided, it is strongly recommended to also
5836+
provide `businessRegistrationType` and
5837+
`businessRegistrationIssuingCountry`. Submissions missing these fields
5838+
have a high likelihood of rejection.
58325839
nullable: true
58335840
maxLength: 500
58345841
example: 12-3456789
58355842
businessRegistrationTypeEnum:
58365843
type: string
5837-
description: The type of business registration number.
5844+
description: |
5845+
The type of business registration number.
58385846
enum:
58395847
- EIN
58405848
- CBN
@@ -5855,11 +5863,20 @@ components:
58555863
- UID
58565864
- OTHER
58575865
nullable: true
5858-
businessRegistrationIssuingCountryEnum:
5866+
businessRegistrationIssuingCountry:
58595867
type: string
58605868
description: >-
58615869
The country issuing the business registration in ISO-3166-1 alpha-3
5862-
format.
5870+
format. Alpha-2 country codes are acceptable, but the application will
5871+
convert them to alpha-3 when received, so alpha-3 is encouraged.
5872+
5873+
5874+
**Note:** If this field is omitted but `businessRegistrationType` is
5875+
provided, the application will attempt to infer the country based on the
5876+
registration type. However, if the application cannot confidently infer
5877+
the country, the submission may be rejected. To ensure the highest
5878+
likelihood of acceptance, it is recommended to provide both
5879+
`businessRegistrationType` and `businessRegistrationIssuingCountry`.
58635880
58645881
58655882
| Registration Type | Supported Countries |
@@ -5901,26 +5918,11 @@ components:
59015918
| UID | CHE |
59025919
59035920
| OTHER | Must Provide Country Code |
5904-
enum:
5905-
- USA
5906-
- CAN
5907-
- HKG
5908-
- GBR
5909-
- IRL
5910-
- BRA
5911-
- NLD
5912-
- AUS
5913-
- FRA
5914-
- NZL
5915-
- DEU
5916-
- ESP
5917-
- CHE
59185921
nullable: false
59195922
businessEntityTypeEnum:
59205923
type: string
5921-
description: >-
5922-
The type of registered business. If no option is applicable, please
5923-
provide "SOLE_PROPRIETOR" as a value.
5924+
description: |
5925+
The type of registered business.
59245926
enum:
59255927
- SOLE_PROPRIETOR
59265928
- PRIVATE_PROFIT
@@ -6028,7 +6030,7 @@ components:
60286030
businessRegistrationType:
60296031
$ref: '#/components/schemas/businessRegistrationTypeEnum'
60306032
businessRegistrationIssuingCountry:
6031-
$ref: '#/components/schemas/businessRegistrationIssuingCountryEnum'
6033+
$ref: '#/components/schemas/businessRegistrationIssuingCountry'
60326034
businessEntityType:
60336035
$ref: '#/components/schemas/businessEntityTypeEnum'
60346036
helpMessageResponse:
@@ -6083,7 +6085,7 @@ components:
60836085
businessEntityType:
60846086
$ref: '#/components/schemas/businessEntityTypeEnum'
60856087
businessRegistrationIssuingCountry:
6086-
$ref: '#/components/schemas/businessRegistrationIssuingCountryEnum'
6088+
$ref: '#/components/schemas/businessRegistrationIssuingCountry'
60876089
helpMessageResponse:
60886090
$ref: '#/components/schemas/helpMessageResponse'
60896091
ageGatedContent:
@@ -6576,10 +6578,14 @@ components:
65766578
$ref: '#/components/schemas/businessDba'
65776579
businessRegistrationNumber:
65786580
$ref: '#/components/schemas/businessRegistrationNumber'
6581+
description: Government-issued business identifying number.
65796582
businessRegistrationType:
65806583
$ref: '#/components/schemas/businessRegistrationTypeEnum'
65816584
businessRegistrationIssuingCountry:
6582-
$ref: '#/components/schemas/businessRegistrationIssuingCountryEnum'
6585+
$ref: '#/components/schemas/businessRegistrationIssuingCountry'
6586+
description: >-
6587+
The country issuing the business registration in ISO-3166-1 alpha-3
6588+
format.
65836589
businessEntityType:
65846590
$ref: '#/components/schemas/businessEntityTypeEnum'
65856591
tfvStatusEnum:

‎bandwidth/__init__.py‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
"BridgeCompleteCallback",
4949
"BridgeTargetCompleteCallback",
5050
"BusinessEntityTypeEnum",
51-
"BusinessRegistrationIssuingCountryEnum",
5251
"BusinessRegistrationTypeEnum",
5352
"CallDirectionEnum",
5453
"CallRecordingMetadata",
@@ -252,7 +251,6 @@
252251
from bandwidth.models.bridge_complete_callback import BridgeCompleteCallback as BridgeCompleteCallback
253252
from bandwidth.models.bridge_target_complete_callback import BridgeTargetCompleteCallback as BridgeTargetCompleteCallback
254253
from bandwidth.models.business_entity_type_enum import BusinessEntityTypeEnum as BusinessEntityTypeEnum
255-
from bandwidth.models.business_registration_issuing_country_enum import BusinessRegistrationIssuingCountryEnum as BusinessRegistrationIssuingCountryEnum
256254
from bandwidth.models.business_registration_type_enum import BusinessRegistrationTypeEnum as BusinessRegistrationTypeEnum
257255
from bandwidth.models.call_direction_enum import CallDirectionEnum as CallDirectionEnum
258256
from bandwidth.models.call_recording_metadata import CallRecordingMetadata as CallRecordingMetadata

‎bandwidth/models/__init__.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
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
2726
from bandwidth.models.business_registration_type_enum import BusinessRegistrationTypeEnum
2827
from bandwidth.models.call_direction_enum import CallDirectionEnum
2928
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.
24+
The type of registered business.
2525
"""
2626

2727
"""

‎bandwidth/models/business_registration_type_enum.py‎

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

2222
class BusinessRegistrationTypeEnum(str, Enum):
2323
"""
24-
The type of business registration number.
24+
The type of business registration number.
2525
"""
2626

2727
"""

‎bandwidth/models/tfv_submission_info.py‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
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
2726
from bandwidth.models.business_registration_type_enum import BusinessRegistrationTypeEnum
2827
from bandwidth.models.contact import Contact
2928
from bandwidth.models.opt_in_workflow import OptInWorkflow
@@ -46,9 +45,9 @@ class TfvSubmissionInfo(BaseModel):
4645
privacy_policy_url: Optional[StrictStr] = Field(default=None, description="The Toll-Free Verification request privacy policy URL.", alias="privacyPolicyUrl")
4746
terms_and_conditions_url: Optional[StrictStr] = Field(default=None, description="The Toll-Free Verification request terms and conditions policy URL.", alias="termsAndConditionsUrl")
4847
business_dba: Optional[StrictStr] = Field(default=None, description="The company 'Doing Business As'.", alias="businessDba")
49-
business_registration_number: Optional[Annotated[str, Field(strict=True, max_length=500)]] = Field(default=None, description="Government-issued business identifying number.", alias="businessRegistrationNumber")
48+
business_registration_number: Optional[Annotated[str, Field(strict=True, max_length=500)]] = Field(default=None, description="Government-issued business identifying number. **Note:** If this field is provided, it is strongly recommended to also provide `businessRegistrationType` and `businessRegistrationIssuingCountry`. Submissions missing these fields have a high likelihood of rejection. ", alias="businessRegistrationNumber")
5049
business_registration_type: Optional[BusinessRegistrationTypeEnum] = Field(default=None, alias="businessRegistrationType")
51-
business_registration_issuing_country: Optional[BusinessRegistrationIssuingCountryEnum] = Field(default=None, alias="businessRegistrationIssuingCountry")
50+
business_registration_issuing_country: Optional[StrictStr] = Field(default=None, description="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 |", alias="businessRegistrationIssuingCountry")
5251
business_entity_type: Optional[BusinessEntityTypeEnum] = Field(default=None, alias="businessEntityType")
5352
additional_properties: Dict[str, Any] = {}
5453
__properties: ClassVar[List[str]] = ["businessAddress", "businessContact", "messageVolume", "useCase", "useCaseSummary", "productionMessageContent", "optInWorkflow", "additionalInformation", "isvReseller", "privacyPolicyUrl", "termsAndConditionsUrl", "businessDba", "businessRegistrationNumber", "businessRegistrationType", "businessRegistrationIssuingCountry", "businessEntityType"]

‎bandwidth/models/verification_request.py‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
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
2726
from bandwidth.models.business_registration_type_enum import BusinessRegistrationTypeEnum
2827
from bandwidth.models.contact import Contact
2928
from bandwidth.models.opt_in_workflow import OptInWorkflow
@@ -47,9 +46,9 @@ class VerificationRequest(BaseModel):
4746
privacy_policy_url: Optional[StrictStr] = Field(default=None, description="The Toll-Free Verification request privacy policy URL.", alias="privacyPolicyUrl")
4847
terms_and_conditions_url: Optional[StrictStr] = Field(default=None, description="The Toll-Free Verification request terms and conditions policy URL.", alias="termsAndConditionsUrl")
4948
business_dba: Optional[StrictStr] = Field(default=None, description="The company 'Doing Business As'.", alias="businessDba")
50-
business_registration_number: Optional[Annotated[str, Field(strict=True, max_length=500)]] = Field(default=None, description="Government-issued business identifying number.", alias="businessRegistrationNumber")
49+
business_registration_number: Optional[Annotated[str, Field(strict=True, max_length=500)]] = Field(default=None, description="Government-issued business identifying number. **Note:** If this field is provided, it is strongly recommended to also provide `businessRegistrationType` and `businessRegistrationIssuingCountry`. Submissions missing these fields have a high likelihood of rejection. ", alias="businessRegistrationNumber")
5150
business_registration_type: Optional[BusinessRegistrationTypeEnum] = Field(default=None, alias="businessRegistrationType")
52-
business_registration_issuing_country: Optional[BusinessRegistrationIssuingCountryEnum] = Field(default=None, alias="businessRegistrationIssuingCountry")
51+
business_registration_issuing_country: Optional[StrictStr] = Field(default=None, description="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 |", alias="businessRegistrationIssuingCountry")
5352
business_entity_type: BusinessEntityTypeEnum = Field(alias="businessEntityType")
5453
help_message_response: Optional[Annotated[str, Field(strict=True, max_length=500)]] = Field(default=None, description="A message that gets sent to users requesting help.", alias="helpMessageResponse")
5554
age_gated_content: Optional[StrictBool] = Field(default=None, description="Indicates whether the content is age-gated.", alias="ageGatedContent")

0 commit comments

Comments
 (0)