Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ bandwidth/models/blocked_webhook.py
bandwidth/models/bridge_complete_callback.py
bandwidth/models/bridge_target_complete_callback.py
bandwidth/models/business_entity_type_enum.py
bandwidth/models/business_registration_issuing_country_enum.py
bandwidth/models/business_registration_type_enum.py
bandwidth/models/call_direction_enum.py
bandwidth/models/call_recording_metadata.py
Expand Down Expand Up @@ -207,7 +206,6 @@ docs/BlockedWebhook.md
docs/BridgeCompleteCallback.md
docs/BridgeTargetCompleteCallback.md
docs/BusinessEntityTypeEnum.md
docs/BusinessRegistrationIssuingCountryEnum.md
docs/BusinessRegistrationTypeEnum.md
docs/CallDirectionEnum.md
docs/CallRecordingMetadata.md
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ Class | Method | HTTP request | Description
- [BridgeCompleteCallback](docs/BridgeCompleteCallback.md)
- [BridgeTargetCompleteCallback](docs/BridgeTargetCompleteCallback.md)
- [BusinessEntityTypeEnum](docs/BusinessEntityTypeEnum.md)
- [BusinessRegistrationIssuingCountryEnum](docs/BusinessRegistrationIssuingCountryEnum.md)
- [BusinessRegistrationTypeEnum](docs/BusinessRegistrationTypeEnum.md)
- [CallDirectionEnum](docs/CallDirectionEnum.md)
- [CallRecordingMetadata](docs/CallRecordingMetadata.md)
Expand Down
76 changes: 35 additions & 41 deletions bandwidth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ paths:
under this account, the previous file will be overwritten.


A list of supported media types can be found
[here](https://support.bandwidth.com/hc/en-us/articles/360014128994-What-MMS-file-types-are-supported-).
A list of supported media types can be found at [Bandwidth
Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported).
operationId: uploadMedia
tags:
- Media
Expand Down Expand Up @@ -2255,8 +2255,8 @@ components:

For MMS, the API limits file size to 3.5MB. Specific carriers and
channels may have a smaller limit that could cause a large file to
fail, see
[here](https://support.bandwidth.com/hc/en-us/articles/360014235473-What-are-the-MMS-file-size-limits)
fail, see more at [Bandwidth
Support](https://www.bandwidth.com/support/en/articles/12823216-what-are-the-mms-file-size-limits)
for more details.
example: https://dev.bandwidth.com/images/bandwidth-logo.png
maxLength: 1000
Expand Down Expand Up @@ -5887,17 +5887,21 @@ components:
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.
**Note: As of October 19th, 2026 this field will be required when
`businessEntityType` is _not_ `SOLE_PROPRIETOR`. If this field is
provided, `businessRegistrationType` and
`businessRegistrationIssuingCountry` are also required.**
nullable: true
maxLength: 500
example: 12-3456789
businessRegistrationTypeEnum:
type: string
description: |
description: >
The type of business registration number.


**Note: As of October 19th, 2026 this field will be required when
`businessRegistrationNumber` is provided.**
enum:
- EIN
- CBN
Expand All @@ -5919,20 +5923,16 @@ components:
- OTHER
example: EIN
nullable: true
businessRegistrationIssuingCountryEnum:
businessRegistrationIssuingCountry:
type: string
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.
format. Alpha-2 format is accepted by the API, but alpha-3 is highly
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`.
**Note: As of October 19th, 2026 this field will be required when
`businessRegistrationNumber` is provided.**


| Registration Type | Supported Countries |
Expand Down Expand Up @@ -5974,30 +5974,22 @@ components:
| UID | CHE |

| OTHER | Must Provide Country Code |
enum:
- USA
- CAN
- HKG
- GBR
- IRL
- BRA
- NLD
- AUS
- FRA
- NZL
- DEU
- ESP
- CHE
- CYP
- IND
- CHN
- BGR
example: USA
nullable: false
nullable: true
businessEntityTypeEnum:
type: string
description: |
description: >
The type of registered business.


**Note: As of October 19th, 2026 submissions using a value other than
`SOLE_PROPRIETOR` must provide a value for `businessRegistrationNumber`,
`businessRegistrationType`, and `businessRegistrationIssuingCountry`.

Submissions using `SOLE_PROPRIETOR` must _omit_
`businessRegistrationNumber`, `businessRegistrationType`, and
`businessRegistrationIssuingCountry`. Failure to adhere to these
constraints will result in a 400 Bad Request rejection.**
enum:
- SOLE_PROPRIETOR
- PRIVATE_PROFIT
Expand Down Expand Up @@ -6106,7 +6098,7 @@ components:
businessRegistrationType:
$ref: '#/components/schemas/businessRegistrationTypeEnum'
businessRegistrationIssuingCountry:
$ref: '#/components/schemas/businessRegistrationIssuingCountryEnum'
$ref: '#/components/schemas/businessRegistrationIssuingCountry'
businessEntityType:
$ref: '#/components/schemas/businessEntityTypeEnum'
helpMessageResponse:
Expand Down Expand Up @@ -6161,7 +6153,7 @@ components:
businessEntityType:
$ref: '#/components/schemas/businessEntityTypeEnum'
businessRegistrationIssuingCountry:
$ref: '#/components/schemas/businessRegistrationIssuingCountryEnum'
$ref: '#/components/schemas/businessRegistrationIssuingCountry'
helpMessageResponse:
$ref: '#/components/schemas/helpMessageResponse'
ageGatedContent:
Expand Down Expand Up @@ -6657,13 +6649,15 @@ components:
description: Government-issued business identifying number.
businessRegistrationType:
$ref: '#/components/schemas/businessRegistrationTypeEnum'
description: The type of business registration number.
businessRegistrationIssuingCountry:
$ref: '#/components/schemas/businessRegistrationIssuingCountryEnum'
$ref: '#/components/schemas/businessRegistrationIssuingCountry'
description: >-
The country issuing the business registration in ISO-3166-1 alpha-3
format.
businessEntityType:
$ref: '#/components/schemas/businessEntityTypeEnum'
description: The type of registered business.
tfvStatusEnum:
type: string
enum:
Expand Down
2 changes: 0 additions & 2 deletions bandwidth/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
"BridgeCompleteCallback",
"BridgeTargetCompleteCallback",
"BusinessEntityTypeEnum",
"BusinessRegistrationIssuingCountryEnum",
"BusinessRegistrationTypeEnum",
"CallDirectionEnum",
"CallRecordingMetadata",
Expand Down Expand Up @@ -252,7 +251,6 @@
from bandwidth.models.bridge_complete_callback import BridgeCompleteCallback as BridgeCompleteCallback
from bandwidth.models.bridge_target_complete_callback import BridgeTargetCompleteCallback as BridgeTargetCompleteCallback
from bandwidth.models.business_entity_type_enum import BusinessEntityTypeEnum as BusinessEntityTypeEnum
from bandwidth.models.business_registration_issuing_country_enum import BusinessRegistrationIssuingCountryEnum as BusinessRegistrationIssuingCountryEnum
from bandwidth.models.business_registration_type_enum import BusinessRegistrationTypeEnum as BusinessRegistrationTypeEnum
from bandwidth.models.call_direction_enum import CallDirectionEnum as CallDirectionEnum
from bandwidth.models.call_recording_metadata import CallRecordingMetadata as CallRecordingMetadata
Expand Down
6 changes: 3 additions & 3 deletions bandwidth/api/media_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -976,7 +976,7 @@ def upload_media(
) -> None:
"""Upload Media

Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found [here](https://support.bandwidth.com/hc/en-us/articles/360014128994-What-MMS-file-types-are-supported-).
Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported).

:param account_id: Your Bandwidth Account ID. (required)
:type account_id: str
Expand Down Expand Up @@ -1067,7 +1067,7 @@ def upload_media_with_http_info(
) -> ApiResponse[None]:
"""Upload Media

Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found [here](https://support.bandwidth.com/hc/en-us/articles/360014128994-What-MMS-file-types-are-supported-).
Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported).

:param account_id: Your Bandwidth Account ID. (required)
:type account_id: str
Expand Down Expand Up @@ -1158,7 +1158,7 @@ def upload_media_without_preload_content(
) -> RESTResponseType:
"""Upload Media

Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found [here](https://support.bandwidth.com/hc/en-us/articles/360014128994-What-MMS-file-types-are-supported-).
Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported).

:param account_id: Your Bandwidth Account ID. (required)
:type account_id: str
Expand Down
1 change: 0 additions & 1 deletion bandwidth/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
from bandwidth.models.bridge_complete_callback import BridgeCompleteCallback
from bandwidth.models.bridge_target_complete_callback import BridgeTargetCompleteCallback
from bandwidth.models.business_entity_type_enum import BusinessEntityTypeEnum
from bandwidth.models.business_registration_issuing_country_enum import BusinessRegistrationIssuingCountryEnum
from bandwidth.models.business_registration_type_enum import BusinessRegistrationTypeEnum
from bandwidth.models.call_direction_enum import CallDirectionEnum
from bandwidth.models.call_recording_metadata import CallRecordingMetadata
Expand Down
2 changes: 1 addition & 1 deletion bandwidth/models/business_entity_type_enum.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

class BusinessEntityTypeEnum(str, Enum):
"""
The type of registered business.
The type of registered business. **Note: As of October 19th, 2026 submissions using a value other than `SOLE_PROPRIETOR` must provide a value for `businessRegistrationNumber`, `businessRegistrationType`, and `businessRegistrationIssuingCountry`. Submissions using `SOLE_PROPRIETOR` must _omit_ `businessRegistrationNumber`, `businessRegistrationType`, and `businessRegistrationIssuingCountry`. Failure to adhere to these constraints will result in a 400 Bad Request rejection.**
"""

"""
Expand Down
53 changes: 0 additions & 53 deletions bandwidth/models/business_registration_issuing_country_enum.py

This file was deleted.

2 changes: 1 addition & 1 deletion bandwidth/models/business_registration_type_enum.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

class BusinessRegistrationTypeEnum(str, Enum):
"""
The type of business registration number.
The type of business registration number. **Note: As of October 19th, 2026 this field will be required when `businessRegistrationNumber` is provided.**
"""

"""
Expand Down
2 changes: 1 addition & 1 deletion bandwidth/models/mms_message_content_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class MmsMessageContentFile(BaseModel):
"""
MmsMessageContentFile
""" # noqa: E501
file_url: Annotated[str, Field(strict=True, max_length=1000)] = Field(description="The URL of a media attachment. For MMS, the API limits file size to 3.5MB. Specific carriers and channels may have a smaller limit that could cause a large file to fail, see [here](https://support.bandwidth.com/hc/en-us/articles/360014235473-What-are-the-MMS-file-size-limits) for more details.", alias="fileUrl")
file_url: Annotated[str, Field(strict=True, max_length=1000)] = Field(description="The URL of a media attachment. For MMS, the API limits file size to 3.5MB. Specific carriers and channels may have a smaller limit that could cause a large file to fail, see more at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823216-what-are-the-mms-file-size-limits) for more details.", alias="fileUrl")
additional_properties: Dict[str, Any] = {}
__properties: ClassVar[List[str]] = ["fileUrl"]

Expand Down
Loading
Loading