From c86c1f96c6c56e80a2ba02c550f8bb4e20bf5f31 Mon Sep 17 00:00:00 2001 From: DX-Bandwidth Date: Tue, 7 Apr 2026 14:37:17 +0000 Subject: [PATCH 1/4] Generate SDK with OpenAPI Generator Version --- .openapi-generator/FILES | 2 - Bandwidth.Standard.sln | 10 +- README.md | 1 - api/openapi.yaml | 136 +++++++++++++----- bandwidth.yml | 76 +++++----- docs/BusinessEntityTypeEnum.md | 2 +- docs/BusinessRegistrationTypeEnum.md | 2 +- docs/MediaApi.md | 2 +- docs/MmsMessageContentFile.md | 2 +- docs/TfvSubmissionInfo.md | 4 +- docs/VerificationRequest.md | 4 +- docs/VerificationUpdateRequest.md | 4 +- src/Bandwidth.Standard/Api/MediaApi.cs | 16 +-- .../Model/BusinessEntityTypeEnum.cs | 4 +- .../Model/BusinessRegistrationTypeEnum.cs | 4 +- .../Model/MmsMessageContentFile.cs | 6 +- src/Bandwidth.Standard/Model/RbmActionBase.cs | 2 +- .../Model/RbmSuggestionResponse.cs | 2 +- .../Model/TfvSubmissionInfo.cs | 24 ++-- .../Model/VerificationRequest.cs | 24 ++-- .../Model/VerificationUpdateRequest.cs | 24 ++-- 21 files changed, 209 insertions(+), 142 deletions(-) diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index a109e36c..9fa5c7fe 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -11,7 +11,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 @@ -231,7 +230,6 @@ src/Bandwidth.Standard/Model/BlockedWebhook.cs src/Bandwidth.Standard/Model/BridgeCompleteCallback.cs src/Bandwidth.Standard/Model/BridgeTargetCompleteCallback.cs src/Bandwidth.Standard/Model/BusinessEntityTypeEnum.cs -src/Bandwidth.Standard/Model/BusinessRegistrationIssuingCountryEnum.cs src/Bandwidth.Standard/Model/BusinessRegistrationTypeEnum.cs src/Bandwidth.Standard/Model/CallDirectionEnum.cs src/Bandwidth.Standard/Model/CallRecordingMetadata.cs diff --git a/Bandwidth.Standard.sln b/Bandwidth.Standard.sln index 149e9429..049204ad 100644 --- a/Bandwidth.Standard.sln +++ b/Bandwidth.Standard.sln @@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 14 VisualStudioVersion = 14.0.25420.1 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bandwidth.Standard", "src\Bandwidth.Standard\Bandwidth.Standard.csproj", "{91F6B73E-F556-4AD3-B5B8-29505E8F6758}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bandwidth.Standard", "src\Bandwidth.Standard\Bandwidth.Standard.csproj", "{5EFE889A-C3DA-4D5A-AD9B-AFA38EF89736}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bandwidth.Standard.Test", "src\Bandwidth.Standard.Test\Bandwidth.Standard.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}" EndProject @@ -12,10 +12,10 @@ Global Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {91F6B73E-F556-4AD3-B5B8-29505E8F6758}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {91F6B73E-F556-4AD3-B5B8-29505E8F6758}.Debug|Any CPU.Build.0 = Debug|Any CPU - {91F6B73E-F556-4AD3-B5B8-29505E8F6758}.Release|Any CPU.ActiveCfg = Release|Any CPU - {91F6B73E-F556-4AD3-B5B8-29505E8F6758}.Release|Any CPU.Build.0 = Release|Any CPU + {5EFE889A-C3DA-4D5A-AD9B-AFA38EF89736}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {5EFE889A-C3DA-4D5A-AD9B-AFA38EF89736}.Debug|Any CPU.Build.0 = Debug|Any CPU + {5EFE889A-C3DA-4D5A-AD9B-AFA38EF89736}.Release|Any CPU.ActiveCfg = Release|Any CPU + {5EFE889A-C3DA-4D5A-AD9B-AFA38EF89736}.Release|Any CPU.Build.0 = Release|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU diff --git a/README.md b/README.md index 57fff0af..63e41ead 100644 --- a/README.md +++ b/README.md @@ -177,7 +177,6 @@ Class | Method | HTTP request | Description - [Model.BridgeCompleteCallback](docs/BridgeCompleteCallback.md) - [Model.BridgeTargetCompleteCallback](docs/BridgeTargetCompleteCallback.md) - [Model.BusinessEntityTypeEnum](docs/BusinessEntityTypeEnum.md) - - [Model.BusinessRegistrationIssuingCountryEnum](docs/BusinessRegistrationIssuingCountryEnum.md) - [Model.BusinessRegistrationTypeEnum](docs/BusinessRegistrationTypeEnum.md) - [Model.CallDirectionEnum](docs/CallDirectionEnum.md) - [Model.CallRecordingMetadata](docs/CallRecordingMetadata.md) diff --git a/api/openapi.yaml b/api/openapi.yaml index b2215203..8503ab12 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -288,7 +288,7 @@ paths: 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-). + 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 parameters: - description: Your Bandwidth Account ID. @@ -8831,7 +8831,7 @@ components: 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. + 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. example: https://dev.bandwidth.com/images/bandwidth-logo.png format: uri maxLength: 1000 @@ -13707,7 +13707,7 @@ components: 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. + **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.** example: 12-3456789 maxLength: 500 nullable: true @@ -13715,6 +13715,8 @@ components: businessRegistrationTypeEnum: 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 @@ -13737,11 +13739,11 @@ components: example: EIN nullable: true type: string - businessRegistrationIssuingCountryEnum: + businessRegistrationIssuingCountry: 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. + The country issuing the business registration in ISO-3166-1 alpha-3 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 | |----------------------|------------------------------------| @@ -13763,30 +13765,17 @@ components: | CNPJ | BRA | | 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 type: string businessEntityTypeEnum: - description: | - The type of registered business. + description: "The type of registered business.\n\n**Note: As of October 19th,\ + \ 2026 submissions using a value other than `SOLE_PROPRIETOR` must provide\ + \ a value for `businessRegistrationNumber`, `businessRegistrationType`, and\ + \ `businessRegistrationIssuingCountry`. \nSubmissions using `SOLE_PROPRIETOR`\ + \ must _omit_ `businessRegistrationNumber`, `businessRegistrationType`, and\ + \ `businessRegistrationIssuingCountry`. Failure to adhere to these constraints\ + \ will result in a 400 Bad Request rejection.**\n" enum: - SOLE_PROPRIETOR - PRIVATE_PROFIT @@ -13919,7 +13908,7 @@ components: 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. + **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.** example: 12-3456789 maxLength: 500 nullable: true @@ -13927,7 +13916,34 @@ components: businessRegistrationType: $ref: '#/components/schemas/businessRegistrationTypeEnum' businessRegistrationIssuingCountry: - $ref: '#/components/schemas/businessRegistrationIssuingCountryEnum' + description: |- + The country issuing the business registration in ISO-3166-1 alpha-3 format. Alpha-2 format is accepted by the API, but alpha-3 is highly encouraged. + + **Note: As of October 19th, 2026 this field will be required when `businessRegistrationNumber` is provided.** + + | 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 | + example: USA + nullable: true + type: string businessEntityType: $ref: '#/components/schemas/businessEntityTypeEnum' helpMessageResponse: @@ -14029,7 +14045,7 @@ components: 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. + **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.** example: 12-3456789 maxLength: 500 nullable: true @@ -14039,7 +14055,34 @@ components: businessEntityType: $ref: '#/components/schemas/businessEntityTypeEnum' businessRegistrationIssuingCountry: - $ref: '#/components/schemas/businessRegistrationIssuingCountryEnum' + description: |- + The country issuing the business registration in ISO-3166-1 alpha-3 format. Alpha-2 format is accepted by the API, but alpha-3 is highly encouraged. + + **Note: As of October 19th, 2026 this field will be required when `businessRegistrationNumber` is provided.** + + | 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 | + example: USA + nullable: true + type: string helpMessageResponse: description: A message that gets sent to users requesting help. example: Please contact support for assistance. @@ -14883,7 +14926,7 @@ components: 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. + **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.** example: 12-3456789 maxLength: 500 nullable: true @@ -14891,7 +14934,34 @@ components: businessRegistrationType: $ref: '#/components/schemas/businessRegistrationTypeEnum' businessRegistrationIssuingCountry: - $ref: '#/components/schemas/businessRegistrationIssuingCountryEnum' + description: |- + The country issuing the business registration in ISO-3166-1 alpha-3 format. Alpha-2 format is accepted by the API, but alpha-3 is highly encouraged. + + **Note: As of October 19th, 2026 this field will be required when `businessRegistrationNumber` is provided.** + + | 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 | + example: USA + nullable: true + type: string businessEntityType: $ref: '#/components/schemas/businessEntityTypeEnum' type: object diff --git a/bandwidth.yml b/bandwidth.yml index d3f8539c..835ec5a9 100644 --- a/bandwidth.yml +++ b/bandwidth.yml @@ -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 @@ -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 @@ -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 @@ -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 | @@ -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 @@ -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: @@ -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: @@ -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: diff --git a/docs/BusinessEntityTypeEnum.md b/docs/BusinessEntityTypeEnum.md index 834666da..19035ef4 100644 --- a/docs/BusinessEntityTypeEnum.md +++ b/docs/BusinessEntityTypeEnum.md @@ -1,5 +1,5 @@ # Bandwidth.Standard.Model.BusinessEntityTypeEnum -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.** ## Properties diff --git a/docs/BusinessRegistrationTypeEnum.md b/docs/BusinessRegistrationTypeEnum.md index 5ed6239d..0f5669e3 100644 --- a/docs/BusinessRegistrationTypeEnum.md +++ b/docs/BusinessRegistrationTypeEnum.md @@ -1,5 +1,5 @@ # Bandwidth.Standard.Model.BusinessRegistrationTypeEnum -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.** ## Properties diff --git a/docs/MediaApi.md b/docs/MediaApi.md index dc2862f5..59946c0e 100644 --- a/docs/MediaApi.md +++ b/docs/MediaApi.md @@ -332,7 +332,7 @@ catch (ApiException e) 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). ### Example ```csharp diff --git a/docs/MmsMessageContentFile.md b/docs/MmsMessageContentFile.md index 35beae55..6fcd84f0 100644 --- a/docs/MmsMessageContentFile.md +++ b/docs/MmsMessageContentFile.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**FileUrl** | **string** | 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. | +**FileUrl** | **string** | 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. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/TfvSubmissionInfo.md b/docs/TfvSubmissionInfo.md index 01bf7519..9ebf1cce 100644 --- a/docs/TfvSubmissionInfo.md +++ b/docs/TfvSubmissionInfo.md @@ -16,9 +16,9 @@ Name | Type | Description | Notes **PrivacyPolicyUrl** | **string** | The Toll-Free Verification request privacy policy URL. | [optional] **TermsAndConditionsUrl** | **string** | The Toll-Free Verification request terms and conditions policy URL. | [optional] **BusinessDba** | **string** | The company 'Doing Business As'. | [optional] -**BusinessRegistrationNumber** | **string** | 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. | [optional] +**BusinessRegistrationNumber** | **string** | Government-issued business identifying number. **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.** | [optional] **BusinessRegistrationType** | **BusinessRegistrationTypeEnum** | | [optional] -**BusinessRegistrationIssuingCountry** | **BusinessRegistrationIssuingCountryEnum** | | [optional] +**BusinessRegistrationIssuingCountry** | **string** | The country issuing the business registration in ISO-3166-1 alpha-3 format. Alpha-2 format is accepted by the API, but alpha-3 is highly encouraged. **Note: As of October 19th, 2026 this field will be required when `businessRegistrationNumber` is provided.** | 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 | | [optional] **BusinessEntityType** | **BusinessEntityTypeEnum** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/VerificationRequest.md b/docs/VerificationRequest.md index 14225f68..18c8a2a7 100644 --- a/docs/VerificationRequest.md +++ b/docs/VerificationRequest.md @@ -17,9 +17,9 @@ Name | Type | Description | Notes **PrivacyPolicyUrl** | **string** | The Toll-Free Verification request privacy policy URL. | [optional] **TermsAndConditionsUrl** | **string** | The Toll-Free Verification request terms and conditions policy URL. | [optional] **BusinessDba** | **string** | The company 'Doing Business As'. | [optional] -**BusinessRegistrationNumber** | **string** | 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. | [optional] +**BusinessRegistrationNumber** | **string** | Government-issued business identifying number. **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.** | [optional] **BusinessRegistrationType** | **BusinessRegistrationTypeEnum** | | [optional] -**BusinessRegistrationIssuingCountry** | **BusinessRegistrationIssuingCountryEnum** | | [optional] +**BusinessRegistrationIssuingCountry** | **string** | The country issuing the business registration in ISO-3166-1 alpha-3 format. Alpha-2 format is accepted by the API, but alpha-3 is highly encouraged. **Note: As of October 19th, 2026 this field will be required when `businessRegistrationNumber` is provided.** | 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 | | [optional] **BusinessEntityType** | **BusinessEntityTypeEnum** | | **HelpMessageResponse** | **string** | A message that gets sent to users requesting help. | [optional] **AgeGatedContent** | **bool** | Indicates whether the content is age-gated. | [optional] diff --git a/docs/VerificationUpdateRequest.md b/docs/VerificationUpdateRequest.md index b5d9914e..77744768 100644 --- a/docs/VerificationUpdateRequest.md +++ b/docs/VerificationUpdateRequest.md @@ -16,10 +16,10 @@ Name | Type | Description | Notes **PrivacyPolicyUrl** | **string** | The Toll-Free Verification request privacy policy URL. | [optional] **TermsAndConditionsUrl** | **string** | The Toll-Free Verification request terms and conditions policy URL. | [optional] **BusinessDba** | **string** | The company 'Doing Business As'. | [optional] -**BusinessRegistrationNumber** | **string** | 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. | [optional] +**BusinessRegistrationNumber** | **string** | Government-issued business identifying number. **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.** | [optional] **BusinessRegistrationType** | **BusinessRegistrationTypeEnum** | | [optional] **BusinessEntityType** | **BusinessEntityTypeEnum** | | [optional] -**BusinessRegistrationIssuingCountry** | **BusinessRegistrationIssuingCountryEnum** | | [optional] +**BusinessRegistrationIssuingCountry** | **string** | The country issuing the business registration in ISO-3166-1 alpha-3 format. Alpha-2 format is accepted by the API, but alpha-3 is highly encouraged. **Note: As of October 19th, 2026 this field will be required when `businessRegistrationNumber` is provided.** | 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 | | [optional] **HelpMessageResponse** | **string** | A message that gets sent to users requesting help. | [optional] **AgeGatedContent** | **bool** | Indicates whether the content is age-gated. | [optional] **CvToken** | **string** | The token provided by Campaign Verify to validate your political use case. Only required for 527 political organizations. If you are not a 527 political organization, this field should be omitted. Supplying an empty string will likely result in rejection. | [optional] diff --git a/src/Bandwidth.Standard/Api/MediaApi.cs b/src/Bandwidth.Standard/Api/MediaApi.cs index 5ffa2cba..8660d6db 100644 --- a/src/Bandwidth.Standard/Api/MediaApi.cs +++ b/src/Bandwidth.Standard/Api/MediaApi.cs @@ -107,7 +107,7 @@ public interface IMediaApiSync : IApiAccessor /// 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). /// /// Thrown when fails to make API call /// Your Bandwidth Account ID. @@ -123,7 +123,7 @@ public interface IMediaApiSync : IApiAccessor /// 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). /// /// Thrown when fails to make API call /// Your Bandwidth Account ID. @@ -228,7 +228,7 @@ public interface IMediaApiAsync : IApiAccessor /// 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). /// /// Thrown when fails to make API call /// Your Bandwidth Account ID. @@ -245,7 +245,7 @@ public interface IMediaApiAsync : IApiAccessor /// 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). /// /// Thrown when fails to make API call /// Your Bandwidth Account ID. @@ -990,7 +990,7 @@ public System.IO.Stream GetMedia(string accountId, string mediaId, int operation } /// - /// 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 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 at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported). /// /// Thrown when fails to make API call /// Your Bandwidth Account ID. @@ -1006,7 +1006,7 @@ public System.IO.Stream GetMedia(string accountId, string mediaId, int operation } /// - /// 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 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 at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported). /// /// Thrown when fails to make API call /// Your Bandwidth Account ID. @@ -1159,7 +1159,7 @@ public System.IO.Stream GetMedia(string accountId, string mediaId, int operation } /// - /// 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 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 at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported). /// /// Thrown when fails to make API call /// Your Bandwidth Account ID. @@ -1176,7 +1176,7 @@ public System.IO.Stream GetMedia(string accountId, string mediaId, int operation } /// - /// 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 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 at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported). /// /// Thrown when fails to make API call /// Your Bandwidth Account ID. diff --git a/src/Bandwidth.Standard/Model/BusinessEntityTypeEnum.cs b/src/Bandwidth.Standard/Model/BusinessEntityTypeEnum.cs index 094c7170..9c00a363 100644 --- a/src/Bandwidth.Standard/Model/BusinessEntityTypeEnum.cs +++ b/src/Bandwidth.Standard/Model/BusinessEntityTypeEnum.cs @@ -27,9 +27,9 @@ namespace Bandwidth.Standard.Model { /// - /// 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.** /// - /// 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.** [JsonConverter(typeof(StringEnumConverter))] public enum BusinessEntityTypeEnum { diff --git a/src/Bandwidth.Standard/Model/BusinessRegistrationTypeEnum.cs b/src/Bandwidth.Standard/Model/BusinessRegistrationTypeEnum.cs index de298200..6662fe3c 100644 --- a/src/Bandwidth.Standard/Model/BusinessRegistrationTypeEnum.cs +++ b/src/Bandwidth.Standard/Model/BusinessRegistrationTypeEnum.cs @@ -27,9 +27,9 @@ namespace Bandwidth.Standard.Model { /// - /// 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.** /// - /// 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.** [JsonConverter(typeof(StringEnumConverter))] public enum BusinessRegistrationTypeEnum { diff --git a/src/Bandwidth.Standard/Model/MmsMessageContentFile.cs b/src/Bandwidth.Standard/Model/MmsMessageContentFile.cs index 2f2febe0..b5033ba7 100644 --- a/src/Bandwidth.Standard/Model/MmsMessageContentFile.cs +++ b/src/Bandwidth.Standard/Model/MmsMessageContentFile.cs @@ -40,7 +40,7 @@ protected MmsMessageContentFile() { } /// /// Initializes a new instance of the class. /// - /// 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. (required). + /// 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. (required). public MmsMessageContentFile(string fileUrl = default(string)) { // to ensure "fileUrl" is required (not null) @@ -52,9 +52,9 @@ protected MmsMessageContentFile() { } } /// - /// 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. + /// 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. /// - /// 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. + /// 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. /// https://dev.bandwidth.com/images/bandwidth-logo.png [DataMember(Name = "fileUrl", IsRequired = true, EmitDefaultValue = true)] public string FileUrl { get; set; } diff --git a/src/Bandwidth.Standard/Model/RbmActionBase.cs b/src/Bandwidth.Standard/Model/RbmActionBase.cs index 7be8919e..f5088316 100644 --- a/src/Bandwidth.Standard/Model/RbmActionBase.cs +++ b/src/Bandwidth.Standard/Model/RbmActionBase.cs @@ -78,7 +78,7 @@ protected RbmActionBase() { } /// Base64 payload the customer receives when the reply is clicked. /// /// Base64 payload the customer receives when the reply is clicked. - /// [B@2ef1fc8a + /// [B@4745bcc6 [DataMember(Name = "postbackData", IsRequired = true, EmitDefaultValue = true)] public byte[] PostbackData { get; set; } diff --git a/src/Bandwidth.Standard/Model/RbmSuggestionResponse.cs b/src/Bandwidth.Standard/Model/RbmSuggestionResponse.cs index 8b658ab7..d345d48b 100644 --- a/src/Bandwidth.Standard/Model/RbmSuggestionResponse.cs +++ b/src/Bandwidth.Standard/Model/RbmSuggestionResponse.cs @@ -55,7 +55,7 @@ public partial class RbmSuggestionResponse : IValidatableObject /// Base64 payload the customer receives when the reply is clicked. /// /// Base64 payload the customer receives when the reply is clicked. - /// [B@2ef1fc8a + /// [B@4745bcc6 [DataMember(Name = "postbackData", EmitDefaultValue = false)] public byte[] PostbackData { get; set; } diff --git a/src/Bandwidth.Standard/Model/TfvSubmissionInfo.cs b/src/Bandwidth.Standard/Model/TfvSubmissionInfo.cs index 260b4da2..7c8c38dc 100644 --- a/src/Bandwidth.Standard/Model/TfvSubmissionInfo.cs +++ b/src/Bandwidth.Standard/Model/TfvSubmissionInfo.cs @@ -39,12 +39,6 @@ public partial class TfvSubmissionInfo : IValidatableObject [DataMember(Name = "businessRegistrationType", EmitDefaultValue = true)] public BusinessRegistrationTypeEnum? BusinessRegistrationType { get; set; } - /// - /// Gets or Sets BusinessRegistrationIssuingCountry - /// - [DataMember(Name = "businessRegistrationIssuingCountry", EmitDefaultValue = false)] - public BusinessRegistrationIssuingCountryEnum? BusinessRegistrationIssuingCountry { get; set; } - /// /// Gets or Sets BusinessEntityType /// @@ -65,11 +59,11 @@ public partial class TfvSubmissionInfo : IValidatableObject /// The Toll-Free Verification request privacy policy URL.. /// The Toll-Free Verification request terms and conditions policy URL.. /// The company 'Doing Business As'.. - /// 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. . + /// Government-issued business identifying number. **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.** . /// businessRegistrationType. - /// businessRegistrationIssuingCountry. + /// The country issuing the business registration in ISO-3166-1 alpha-3 format. Alpha-2 format is accepted by the API, but alpha-3 is highly encouraged. **Note: As of October 19th, 2026 this field will be required when `businessRegistrationNumber` is provided.** | 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 |. /// businessEntityType. - public TfvSubmissionInfo(Address businessAddress = default(Address), Contact businessContact = default(Contact), int messageVolume = default(int), string useCase = default(string), string useCaseSummary = default(string), string productionMessageContent = default(string), OptInWorkflow optInWorkflow = default(OptInWorkflow), string additionalInformation = default(string), string isvReseller = default(string), string privacyPolicyUrl = default(string), string termsAndConditionsUrl = default(string), string businessDba = default(string), string businessRegistrationNumber = default(string), BusinessRegistrationTypeEnum? businessRegistrationType = default(BusinessRegistrationTypeEnum?), BusinessRegistrationIssuingCountryEnum? businessRegistrationIssuingCountry = default(BusinessRegistrationIssuingCountryEnum?), BusinessEntityTypeEnum? businessEntityType = default(BusinessEntityTypeEnum?)) + public TfvSubmissionInfo(Address businessAddress = default(Address), Contact businessContact = default(Contact), int messageVolume = default(int), string useCase = default(string), string useCaseSummary = default(string), string productionMessageContent = default(string), OptInWorkflow optInWorkflow = default(OptInWorkflow), string additionalInformation = default(string), string isvReseller = default(string), string privacyPolicyUrl = default(string), string termsAndConditionsUrl = default(string), string businessDba = default(string), string businessRegistrationNumber = default(string), BusinessRegistrationTypeEnum? businessRegistrationType = default(BusinessRegistrationTypeEnum?), string businessRegistrationIssuingCountry = default(string), BusinessEntityTypeEnum? businessEntityType = default(BusinessEntityTypeEnum?)) { this.BusinessAddress = businessAddress; this.BusinessContact = businessContact; @@ -180,13 +174,21 @@ public partial class TfvSubmissionInfo : IValidatableObject public string BusinessDba { get; set; } /// - /// 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. + /// Government-issued business identifying number. **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.** /// - /// 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. + /// Government-issued business identifying number. **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.** /// 12-3456789 [DataMember(Name = "businessRegistrationNumber", EmitDefaultValue = true)] public string BusinessRegistrationNumber { get; set; } + /// + /// The country issuing the business registration in ISO-3166-1 alpha-3 format. Alpha-2 format is accepted by the API, but alpha-3 is highly encouraged. **Note: As of October 19th, 2026 this field will be required when `businessRegistrationNumber` is provided.** | 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 | + /// + /// The country issuing the business registration in ISO-3166-1 alpha-3 format. Alpha-2 format is accepted by the API, but alpha-3 is highly encouraged. **Note: As of October 19th, 2026 this field will be required when `businessRegistrationNumber` is provided.** | 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 | + /// USA + [DataMember(Name = "businessRegistrationIssuingCountry", EmitDefaultValue = true)] + public string BusinessRegistrationIssuingCountry { get; set; } + /// /// Returns the string presentation of the object /// diff --git a/src/Bandwidth.Standard/Model/VerificationRequest.cs b/src/Bandwidth.Standard/Model/VerificationRequest.cs index d71fb687..161fb962 100644 --- a/src/Bandwidth.Standard/Model/VerificationRequest.cs +++ b/src/Bandwidth.Standard/Model/VerificationRequest.cs @@ -39,12 +39,6 @@ public partial class VerificationRequest : IValidatableObject [DataMember(Name = "businessRegistrationType", EmitDefaultValue = true)] public BusinessRegistrationTypeEnum? BusinessRegistrationType { get; set; } - /// - /// Gets or Sets BusinessRegistrationIssuingCountry - /// - [DataMember(Name = "businessRegistrationIssuingCountry", EmitDefaultValue = false)] - public BusinessRegistrationIssuingCountryEnum? BusinessRegistrationIssuingCountry { get; set; } - /// /// Gets or Sets BusinessEntityType /// @@ -71,14 +65,14 @@ protected VerificationRequest() { } /// The Toll-Free Verification request privacy policy URL.. /// The Toll-Free Verification request terms and conditions policy URL.. /// The company 'Doing Business As'.. - /// 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. . + /// Government-issued business identifying number. **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.** . /// businessRegistrationType. - /// businessRegistrationIssuingCountry. + /// The country issuing the business registration in ISO-3166-1 alpha-3 format. Alpha-2 format is accepted by the API, but alpha-3 is highly encouraged. **Note: As of October 19th, 2026 this field will be required when `businessRegistrationNumber` is provided.** | 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 |. /// businessEntityType (required). /// A message that gets sent to users requesting help.. /// Indicates whether the content is age-gated.. /// The token provided by Campaign Verify to validate your political use case. Only required for 527 political organizations. If you are not a 527 political organization, this field should be omitted. Supplying an empty string will likely result in rejection.. - public VerificationRequest(Address businessAddress = default(Address), Contact businessContact = default(Contact), int messageVolume = default(int), List phoneNumbers = default(List), string useCase = default(string), string useCaseSummary = default(string), string productionMessageContent = default(string), OptInWorkflow optInWorkflow = default(OptInWorkflow), string additionalInformation = default(string), string isvReseller = default(string), string privacyPolicyUrl = default(string), string termsAndConditionsUrl = default(string), string businessDba = default(string), string businessRegistrationNumber = default(string), BusinessRegistrationTypeEnum? businessRegistrationType = default(BusinessRegistrationTypeEnum?), BusinessRegistrationIssuingCountryEnum? businessRegistrationIssuingCountry = default(BusinessRegistrationIssuingCountryEnum?), BusinessEntityTypeEnum businessEntityType = default(BusinessEntityTypeEnum), string helpMessageResponse = default(string), bool ageGatedContent = default(bool), string cvToken = default(string)) + public VerificationRequest(Address businessAddress = default(Address), Contact businessContact = default(Contact), int messageVolume = default(int), List phoneNumbers = default(List), string useCase = default(string), string useCaseSummary = default(string), string productionMessageContent = default(string), OptInWorkflow optInWorkflow = default(OptInWorkflow), string additionalInformation = default(string), string isvReseller = default(string), string privacyPolicyUrl = default(string), string termsAndConditionsUrl = default(string), string businessDba = default(string), string businessRegistrationNumber = default(string), BusinessRegistrationTypeEnum? businessRegistrationType = default(BusinessRegistrationTypeEnum?), string businessRegistrationIssuingCountry = default(string), BusinessEntityTypeEnum businessEntityType = default(BusinessEntityTypeEnum), string helpMessageResponse = default(string), bool ageGatedContent = default(bool), string cvToken = default(string)) { // to ensure "businessAddress" is required (not null) if (businessAddress == null) @@ -234,13 +228,21 @@ protected VerificationRequest() { } public string BusinessDba { get; set; } /// - /// 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. + /// Government-issued business identifying number. **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.** /// - /// 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. + /// Government-issued business identifying number. **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.** /// 12-3456789 [DataMember(Name = "businessRegistrationNumber", EmitDefaultValue = true)] public string BusinessRegistrationNumber { get; set; } + /// + /// The country issuing the business registration in ISO-3166-1 alpha-3 format. Alpha-2 format is accepted by the API, but alpha-3 is highly encouraged. **Note: As of October 19th, 2026 this field will be required when `businessRegistrationNumber` is provided.** | 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 | + /// + /// The country issuing the business registration in ISO-3166-1 alpha-3 format. Alpha-2 format is accepted by the API, but alpha-3 is highly encouraged. **Note: As of October 19th, 2026 this field will be required when `businessRegistrationNumber` is provided.** | 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 | + /// USA + [DataMember(Name = "businessRegistrationIssuingCountry", EmitDefaultValue = true)] + public string BusinessRegistrationIssuingCountry { get; set; } + /// /// A message that gets sent to users requesting help. /// diff --git a/src/Bandwidth.Standard/Model/VerificationUpdateRequest.cs b/src/Bandwidth.Standard/Model/VerificationUpdateRequest.cs index eb31767e..e9d5387e 100644 --- a/src/Bandwidth.Standard/Model/VerificationUpdateRequest.cs +++ b/src/Bandwidth.Standard/Model/VerificationUpdateRequest.cs @@ -44,12 +44,6 @@ public partial class VerificationUpdateRequest : IValidatableObject /// [DataMember(Name = "businessEntityType", EmitDefaultValue = false)] public BusinessEntityTypeEnum? BusinessEntityType { get; set; } - - /// - /// Gets or Sets BusinessRegistrationIssuingCountry - /// - [DataMember(Name = "businessRegistrationIssuingCountry", EmitDefaultValue = false)] - public BusinessRegistrationIssuingCountryEnum? BusinessRegistrationIssuingCountry { get; set; } /// /// Initializes a new instance of the class. /// @@ -70,14 +64,14 @@ protected VerificationUpdateRequest() { } /// The Toll-Free Verification request privacy policy URL.. /// The Toll-Free Verification request terms and conditions policy URL.. /// The company 'Doing Business As'.. - /// 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. . + /// Government-issued business identifying number. **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.** . /// businessRegistrationType. /// businessEntityType. - /// businessRegistrationIssuingCountry. + /// The country issuing the business registration in ISO-3166-1 alpha-3 format. Alpha-2 format is accepted by the API, but alpha-3 is highly encouraged. **Note: As of October 19th, 2026 this field will be required when `businessRegistrationNumber` is provided.** | 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 |. /// A message that gets sent to users requesting help.. /// Indicates whether the content is age-gated.. /// The token provided by Campaign Verify to validate your political use case. Only required for 527 political organizations. If you are not a 527 political organization, this field should be omitted. Supplying an empty string will likely result in rejection.. - public VerificationUpdateRequest(Address businessAddress = default(Address), Contact businessContact = default(Contact), int messageVolume = default(int), string useCase = default(string), string useCaseSummary = default(string), string productionMessageContent = default(string), OptInWorkflow optInWorkflow = default(OptInWorkflow), string additionalInformation = default(string), string isvReseller = default(string), string privacyPolicyUrl = default(string), string termsAndConditionsUrl = default(string), string businessDba = default(string), string businessRegistrationNumber = default(string), BusinessRegistrationTypeEnum? businessRegistrationType = default(BusinessRegistrationTypeEnum?), BusinessEntityTypeEnum? businessEntityType = default(BusinessEntityTypeEnum?), BusinessRegistrationIssuingCountryEnum? businessRegistrationIssuingCountry = default(BusinessRegistrationIssuingCountryEnum?), string helpMessageResponse = default(string), bool ageGatedContent = default(bool), string cvToken = default(string)) + public VerificationUpdateRequest(Address businessAddress = default(Address), Contact businessContact = default(Contact), int messageVolume = default(int), string useCase = default(string), string useCaseSummary = default(string), string productionMessageContent = default(string), OptInWorkflow optInWorkflow = default(OptInWorkflow), string additionalInformation = default(string), string isvReseller = default(string), string privacyPolicyUrl = default(string), string termsAndConditionsUrl = default(string), string businessDba = default(string), string businessRegistrationNumber = default(string), BusinessRegistrationTypeEnum? businessRegistrationType = default(BusinessRegistrationTypeEnum?), BusinessEntityTypeEnum? businessEntityType = default(BusinessEntityTypeEnum?), string businessRegistrationIssuingCountry = default(string), string helpMessageResponse = default(string), bool ageGatedContent = default(bool), string cvToken = default(string)) { // to ensure "businessAddress" is required (not null) if (businessAddress == null) @@ -221,13 +215,21 @@ protected VerificationUpdateRequest() { } public string BusinessDba { get; set; } /// - /// 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. + /// Government-issued business identifying number. **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.** /// - /// 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. + /// Government-issued business identifying number. **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.** /// 12-3456789 [DataMember(Name = "businessRegistrationNumber", EmitDefaultValue = true)] public string BusinessRegistrationNumber { get; set; } + /// + /// The country issuing the business registration in ISO-3166-1 alpha-3 format. Alpha-2 format is accepted by the API, but alpha-3 is highly encouraged. **Note: As of October 19th, 2026 this field will be required when `businessRegistrationNumber` is provided.** | 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 | + /// + /// The country issuing the business registration in ISO-3166-1 alpha-3 format. Alpha-2 format is accepted by the API, but alpha-3 is highly encouraged. **Note: As of October 19th, 2026 this field will be required when `businessRegistrationNumber` is provided.** | 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 | + /// USA + [DataMember(Name = "businessRegistrationIssuingCountry", EmitDefaultValue = true)] + public string BusinessRegistrationIssuingCountry { get; set; } + /// /// A message that gets sent to users requesting help. /// From 048fa174fa0c0ad1fd23da92354b050aabd23327 Mon Sep 17 00:00:00 2001 From: ckoegel Date: Tue, 7 Apr 2026 15:25:49 -0400 Subject: [PATCH 2/4] remove old model --- .../BusinessRegistrationIssuingCountryEnum.md | 10 ---- ...nessRegistrationIssuingCountryEnumTests.cs | 53 ------------------- 2 files changed, 63 deletions(-) delete mode 100644 docs/BusinessRegistrationIssuingCountryEnum.md delete mode 100644 src/Bandwidth.Standard.Test/Unit/Model/BusinessRegistrationIssuingCountryEnumTests.cs diff --git a/docs/BusinessRegistrationIssuingCountryEnum.md b/docs/BusinessRegistrationIssuingCountryEnum.md deleted file mode 100644 index 8a9f0a18..00000000 --- a/docs/BusinessRegistrationIssuingCountryEnum.md +++ /dev/null @@ -1,10 +0,0 @@ -# Bandwidth.Standard.Model.BusinessRegistrationIssuingCountryEnum -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 | - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/src/Bandwidth.Standard.Test/Unit/Model/BusinessRegistrationIssuingCountryEnumTests.cs b/src/Bandwidth.Standard.Test/Unit/Model/BusinessRegistrationIssuingCountryEnumTests.cs deleted file mode 100644 index 9c669034..00000000 --- a/src/Bandwidth.Standard.Test/Unit/Model/BusinessRegistrationIssuingCountryEnumTests.cs +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Bandwidth - * - * Bandwidth's Communication APIs - * - * The version of the OpenAPI document: 1.0.0 - * Contact: letstalk@bandwidth.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using Xunit; - -using System; -using System.Linq; -using System.IO; -using System.Collections.Generic; -using Bandwidth.Standard.Model; -using Bandwidth.Standard.Client; -using System.Reflection; -using Newtonsoft.Json; - -namespace Bandwidth.Standard.Test.Unit.Model -{ - /// - /// Class for testing BusinessRegistrationIssuingCountryEnum - /// - public class BusinessRegistrationIssuingCountryEnumTests : IDisposable - { - private BusinessRegistrationIssuingCountryEnum instance; - - public BusinessRegistrationIssuingCountryEnumTests() - { - instance = new BusinessRegistrationIssuingCountryEnum(); - } - - public void Dispose() - { - // Cleanup when everything is done. - } - - /// - /// Test an instance of BusinessRegistrationIssuingCountryEnum - /// - [Fact] - public void BusinessRegistrationIssuingCountryEnumInstanceTest() - { - Assert.IsType(instance); - } - - } - -} From 52f7072ef336a1910ee469a55b6d3b212b894e32 Mon Sep 17 00:00:00 2001 From: ckoegel Date: Tue, 7 Apr 2026 15:25:52 -0400 Subject: [PATCH 3/4] update tests --- .../Unit/Model/TfvSubmissionInfoTests.cs | 6 +++--- .../Unit/Model/VerificationRequestTests.cs | 6 +++--- .../Unit/Model/VerificationUpdateRequestTests.cs | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/Bandwidth.Standard.Test/Unit/Model/TfvSubmissionInfoTests.cs b/src/Bandwidth.Standard.Test/Unit/Model/TfvSubmissionInfoTests.cs index 5c4c2549..76fa977c 100644 --- a/src/Bandwidth.Standard.Test/Unit/Model/TfvSubmissionInfoTests.cs +++ b/src/Bandwidth.Standard.Test/Unit/Model/TfvSubmissionInfoTests.cs @@ -72,7 +72,7 @@ public TfvSubmissionInfoTests() businessDba: "test", businessRegistrationNumber: "test", businessRegistrationType: BusinessRegistrationTypeEnum.EIN, - businessRegistrationIssuingCountry: BusinessRegistrationIssuingCountryEnum.USA, + businessRegistrationIssuingCountry: "USA", businessEntityType: BusinessEntityTypeEnum.SOLEPROPRIETOR ); } @@ -237,8 +237,8 @@ public void BusinessRegistrationTypeTest() [Fact] public void BusinessRegistrationIssuingCountryTest() { - Assert.IsType(instance.BusinessRegistrationIssuingCountry); - Assert.Equal(BusinessRegistrationIssuingCountryEnum.USA, instance.BusinessRegistrationIssuingCountry); + Assert.IsType(instance.BusinessRegistrationIssuingCountry); + Assert.Equal("USA", instance.BusinessRegistrationIssuingCountry); } /// diff --git a/src/Bandwidth.Standard.Test/Unit/Model/VerificationRequestTests.cs b/src/Bandwidth.Standard.Test/Unit/Model/VerificationRequestTests.cs index 9c7aada9..0d909b45 100644 --- a/src/Bandwidth.Standard.Test/Unit/Model/VerificationRequestTests.cs +++ b/src/Bandwidth.Standard.Test/Unit/Model/VerificationRequestTests.cs @@ -64,7 +64,7 @@ public VerificationRequestTests() businessDba: "test", businessRegistrationNumber: "test", businessRegistrationType: BusinessRegistrationTypeEnum.EIN, - businessRegistrationIssuingCountry: BusinessRegistrationIssuingCountryEnum.USA, + businessRegistrationIssuingCountry: "USA", businessEntityType: BusinessEntityTypeEnum.SOLEPROPRIETOR, helpMessageResponse: "test", ageGatedContent: false, @@ -239,8 +239,8 @@ public void BusinessRegistrationTypeTest() [Fact] public void BusinessRegistrationIssuingCountryTest() { - Assert.IsType(instance.BusinessRegistrationIssuingCountry); - Assert.Equal(BusinessRegistrationIssuingCountryEnum.USA, instance.BusinessRegistrationIssuingCountry); + Assert.IsType(instance.BusinessRegistrationIssuingCountry); + Assert.Equal("USA", instance.BusinessRegistrationIssuingCountry); } /// diff --git a/src/Bandwidth.Standard.Test/Unit/Model/VerificationUpdateRequestTests.cs b/src/Bandwidth.Standard.Test/Unit/Model/VerificationUpdateRequestTests.cs index a127f801..2bfad3eb 100644 --- a/src/Bandwidth.Standard.Test/Unit/Model/VerificationUpdateRequestTests.cs +++ b/src/Bandwidth.Standard.Test/Unit/Model/VerificationUpdateRequestTests.cs @@ -63,7 +63,7 @@ public VerificationUpdateRequestTests() businessDba: "test", businessRegistrationNumber: "test", businessRegistrationType: BusinessRegistrationTypeEnum.EIN, - businessRegistrationIssuingCountry: BusinessRegistrationIssuingCountryEnum.USA, + businessRegistrationIssuingCountry: "USA", businessEntityType: BusinessEntityTypeEnum.SOLEPROPRIETOR, helpMessageResponse: "test", ageGatedContent: false, @@ -228,8 +228,8 @@ public void BusinessRegistrationTypeTest() [Fact] public void BusinessRegistrationIssuingCountryTest() { - Assert.IsType(instance.BusinessRegistrationIssuingCountry); - Assert.Equal(BusinessRegistrationIssuingCountryEnum.USA, instance.BusinessRegistrationIssuingCountry); + Assert.IsType(instance.BusinessRegistrationIssuingCountry); + Assert.Equal("USA", instance.BusinessRegistrationIssuingCountry); } /// From 6d883e6790a31570949579f6115867db328de56d Mon Sep 17 00:00:00 2001 From: ckoegel Date: Tue, 7 Apr 2026 15:31:28 -0400 Subject: [PATCH 4/4] remove model --- .../BusinessRegistrationIssuingCountryEnum.cs | 139 ------------------ 1 file changed, 139 deletions(-) delete mode 100644 src/Bandwidth.Standard/Model/BusinessRegistrationIssuingCountryEnum.cs diff --git a/src/Bandwidth.Standard/Model/BusinessRegistrationIssuingCountryEnum.cs b/src/Bandwidth.Standard/Model/BusinessRegistrationIssuingCountryEnum.cs deleted file mode 100644 index da4d72f9..00000000 --- a/src/Bandwidth.Standard/Model/BusinessRegistrationIssuingCountryEnum.cs +++ /dev/null @@ -1,139 +0,0 @@ -/* - * Bandwidth - * - * Bandwidth's Communication APIs - * - * The version of the OpenAPI document: 1.0.0 - * Contact: letstalk@bandwidth.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.IO; -using System.Runtime.Serialization; -using System.Text; -using System.Text.RegularExpressions; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Bandwidth.Standard.Client.OpenAPIDateConverter; - -namespace Bandwidth.Standard.Model -{ - /// - /// 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 | - /// - /// 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 | - [JsonConverter(typeof(StringEnumConverter))] - public enum BusinessRegistrationIssuingCountryEnum - { - /// - /// Enum USA for value: USA - /// - [EnumMember(Value = "USA")] - USA = 1, - - /// - /// Enum CAN for value: CAN - /// - [EnumMember(Value = "CAN")] - CAN = 2, - - /// - /// Enum HKG for value: HKG - /// - [EnumMember(Value = "HKG")] - HKG = 3, - - /// - /// Enum GBR for value: GBR - /// - [EnumMember(Value = "GBR")] - GBR = 4, - - /// - /// Enum IRL for value: IRL - /// - [EnumMember(Value = "IRL")] - IRL = 5, - - /// - /// Enum BRA for value: BRA - /// - [EnumMember(Value = "BRA")] - BRA = 6, - - /// - /// Enum NLD for value: NLD - /// - [EnumMember(Value = "NLD")] - NLD = 7, - - /// - /// Enum AUS for value: AUS - /// - [EnumMember(Value = "AUS")] - AUS = 8, - - /// - /// Enum FRA for value: FRA - /// - [EnumMember(Value = "FRA")] - FRA = 9, - - /// - /// Enum NZL for value: NZL - /// - [EnumMember(Value = "NZL")] - NZL = 10, - - /// - /// Enum DEU for value: DEU - /// - [EnumMember(Value = "DEU")] - DEU = 11, - - /// - /// Enum ESP for value: ESP - /// - [EnumMember(Value = "ESP")] - ESP = 12, - - /// - /// Enum CHE for value: CHE - /// - [EnumMember(Value = "CHE")] - CHE = 13, - - /// - /// Enum CYP for value: CYP - /// - [EnumMember(Value = "CYP")] - CYP = 14, - - /// - /// Enum IND for value: IND - /// - [EnumMember(Value = "IND")] - IND = 15, - - /// - /// Enum CHN for value: CHN - /// - [EnumMember(Value = "CHN")] - CHN = 16, - - /// - /// Enum BGR for value: BGR - /// - [EnumMember(Value = "BGR")] - BGR = 17 - } - -}