diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 9fa5c7fe..a109e36c 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -11,6 +11,7 @@ docs/BlockedWebhook.md docs/BridgeCompleteCallback.md docs/BridgeTargetCompleteCallback.md docs/BusinessEntityTypeEnum.md +docs/BusinessRegistrationIssuingCountryEnum.md docs/BusinessRegistrationTypeEnum.md docs/CallDirectionEnum.md docs/CallRecordingMetadata.md @@ -230,6 +231,7 @@ 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 1600c40b..f4454717 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", "{23179747-B9CB-470D-B895-CEA0E8EA798E}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bandwidth.Standard", "src\Bandwidth.Standard\Bandwidth.Standard.csproj", "{4427A4F1-DFB3-4170-9221-1B7FCA9C424C}" 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 - {23179747-B9CB-470D-B895-CEA0E8EA798E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {23179747-B9CB-470D-B895-CEA0E8EA798E}.Debug|Any CPU.Build.0 = Debug|Any CPU - {23179747-B9CB-470D-B895-CEA0E8EA798E}.Release|Any CPU.ActiveCfg = Release|Any CPU - {23179747-B9CB-470D-B895-CEA0E8EA798E}.Release|Any CPU.Build.0 = Release|Any CPU + {4427A4F1-DFB3-4170-9221-1B7FCA9C424C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {4427A4F1-DFB3-4170-9221-1B7FCA9C424C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4427A4F1-DFB3-4170-9221-1B7FCA9C424C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {4427A4F1-DFB3-4170-9221-1B7FCA9C424C}.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 63e41ead..57fff0af 100644 --- a/README.md +++ b/README.md @@ -177,6 +177,7 @@ 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 0af4f0ac..ad1f0d9f 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -13600,35 +13600,84 @@ components: example: Another Company Name Inc. type: string businessRegistrationNumber: - description: "US Federal Tax ID Number (EIN) or Canada Business Number (CBN).\ - \ Optional until early 2026. If a value is provided for this field, a value\ - \ must be provided for `businessRegistrationType` and `businessEntityType`.\ - \ Available starting October 1st, 2025." + description: Government-issued business identifying number. example: 12-3456789 maxLength: 500 nullable: true type: string businessRegistrationTypeEnum: - description: "The type of business registration number. Optional until early\ - \ 2026; required if `businessRegistrationNumber` is provided. Available starting\ - \ October 1st, 2025." + description: The type of business registration number. enum: - EIN - CBN + - NEQ + - PROVINCIAL_NUMBER + - CRN + - VAT + - ACN + - ABN + - BRN + - SIREN + - SIRET + - NZBN + - UST_IDNR + - CIF + - NIF + - CNPJ + - UID + - OTHER nullable: true type: string + businessRegistrationIssuingCountryEnum: + description: |- + The country issuing the business registration in ISO-3166-1 alpha-3 format. + + | Registration Type | Supported Countries | + |----------------------|------------------------------------| + | EIN | USA | + | CBN | CAN | + | NEQ | CAN | + | PROVINCIAL_NUMBER | CAN | + | CRN | GBR, HKG | + | VAT | GBR, IRL, BRA, NLD | + | ACN | AUS | + | ABN | AUS | + | BRN | HKG | + | SIREN | FRA | + | SIRET | FRA | + | NZBN | NZL | + | UST_IDNR | DEU | + | CIF | ESP | + | NIF | ESP | + | CNPJ | BRA | + | UID | CHE | + | OTHER | Must Provide Country Code | + enum: + - USA + - CAN + - HKG + - GBR + - IRL + - BRA + - NLD + - AUS + - FRA + - NZL + - DEU + - ESP + - CHE + nullable: false + type: string businessEntityTypeEnum: description: "The type of registered business. If no option is applicable, please\ - \ provide \"SOLE_PROPRIETOR\" as a value. Optional until early 2026; required\ - \ if `businessRegistrationNumber` is provided. Available starting October\ - \ 1st, 2025." + \ provide \"SOLE_PROPRIETOR\" as a value." enum: - SOLE_PROPRIETOR - PRIVATE_PROFIT - PUBLIC_PROFIT - NON_PROFIT - GOVERNMENT - nullable: true + nullable: false type: string helpMessageResponse: description: A message that gets sent to users requesting help. @@ -13747,16 +13796,15 @@ components: example: Another Company Name Inc. type: string businessRegistrationNumber: - description: "US Federal Tax ID Number (EIN) or Canada Business Number (CBN).\ - \ Optional until early 2026. If a value is provided for this field, a\ - \ value must be provided for `businessRegistrationType` and `businessEntityType`.\ - \ Available starting October 1st, 2025." + description: Government-issued business identifying number. example: 12-3456789 maxLength: 500 nullable: true type: string businessRegistrationType: $ref: '#/components/schemas/businessRegistrationTypeEnum' + businessRegistrationIssuingCountry: + $ref: '#/components/schemas/businessRegistrationIssuingCountryEnum' businessEntityType: $ref: '#/components/schemas/businessEntityTypeEnum' helpMessageResponse: @@ -13782,6 +13830,7 @@ components: required: - businessAddress - businessContact + - businessEntityType - messageVolume - optInWorkflow - phoneNumbers @@ -13851,10 +13900,7 @@ components: example: Another Company Name Inc. type: string businessRegistrationNumber: - description: "US Federal Tax ID Number (EIN) or Canada Business Number (CBN).\ - \ Optional until early 2026. If a value is provided for this field, a\ - \ value must be provided for `businessRegistrationType` and `businessEntityType`.\ - \ Available starting October 1st, 2025." + description: Government-issued business identifying number. example: 12-3456789 maxLength: 500 nullable: true @@ -13863,6 +13909,8 @@ components: $ref: '#/components/schemas/businessRegistrationTypeEnum' businessEntityType: $ref: '#/components/schemas/businessEntityTypeEnum' + businessRegistrationIssuingCountry: + $ref: '#/components/schemas/businessRegistrationIssuingCountryEnum' helpMessageResponse: description: A message that gets sent to users requesting help. example: Please contact support for assistance. @@ -14530,6 +14578,7 @@ components: isvReseller: Test ISV businessRegistrationNumber: 12-3456789 productionMessageContent: Production message content + businessRegistrationIssuingCountry: USA businessAddress: zip: "27606" addr2: 2230 Bandmate Way @@ -14628,6 +14677,7 @@ components: isvReseller: Test ISV businessRegistrationNumber: 12-3456789 productionMessageContent: Production message content + businessRegistrationIssuingCountry: USA businessAddress: zip: "27606" addr2: 2230 Bandmate Way @@ -14698,16 +14748,15 @@ components: example: Another Company Name Inc. type: string businessRegistrationNumber: - description: "US Federal Tax ID Number (EIN) or Canada Business Number (CBN).\ - \ Optional until early 2026. If a value is provided for this field, a\ - \ value must be provided for `businessRegistrationType` and `businessEntityType`.\ - \ Available starting October 1st, 2025." + description: Government-issued business identifying number. example: 12-3456789 maxLength: 500 nullable: true type: string businessRegistrationType: $ref: '#/components/schemas/businessRegistrationTypeEnum' + businessRegistrationIssuingCountry: + $ref: '#/components/schemas/businessRegistrationIssuingCountryEnum' businessEntityType: $ref: '#/components/schemas/businessEntityTypeEnum' type: object diff --git a/bandwidth.yml b/bandwidth.yml index b4542b7a..2b6bdb17 100644 --- a/bandwidth.yml +++ b/bandwidth.yml @@ -5828,38 +5828,106 @@ components: type: string businessRegistrationNumber: type: string - description: >- - US Federal Tax ID Number (EIN) or Canada Business Number (CBN). Optional - until early 2026. If a value is provided for this field, a value must be - provided for `businessRegistrationType` and `businessEntityType`. - Available starting October 1st, 2025. + description: Government-issued business identifying number. nullable: true maxLength: 500 example: 12-3456789 businessRegistrationTypeEnum: type: string - description: >- - The type of business registration number. Optional until early 2026; - required if `businessRegistrationNumber` is provided. Available starting - October 1st, 2025. + description: The type of business registration number. enum: - EIN - CBN + - NEQ + - PROVINCIAL_NUMBER + - CRN + - VAT + - ACN + - ABN + - BRN + - SIREN + - SIRET + - NZBN + - UST_IDNR + - CIF + - NIF + - CNPJ + - UID + - OTHER nullable: true + businessRegistrationIssuingCountryEnum: + type: string + description: >- + The country issuing the business registration in ISO-3166-1 alpha-3 + format. + + + | Registration Type | Supported Countries | + + |----------------------|------------------------------------| + + | EIN | USA | + + | CBN | CAN | + + | NEQ | CAN | + + | PROVINCIAL_NUMBER | CAN | + + | CRN | GBR, HKG | + + | VAT | GBR, IRL, BRA, NLD | + + | ACN | AUS | + + | ABN | AUS | + + | BRN | HKG | + + | SIREN | FRA | + + | SIRET | FRA | + + | NZBN | NZL | + + | UST_IDNR | DEU | + + | CIF | ESP | + + | NIF | ESP | + + | CNPJ | BRA | + + | UID | CHE | + + | OTHER | Must Provide Country Code | + enum: + - USA + - CAN + - HKG + - GBR + - IRL + - BRA + - NLD + - AUS + - FRA + - NZL + - DEU + - ESP + - CHE + nullable: false businessEntityTypeEnum: type: string description: >- The type of registered business. If no option is applicable, please - provide "SOLE_PROPRIETOR" as a value. Optional until early 2026; - required if `businessRegistrationNumber` is provided. Available starting - October 1st, 2025. + provide "SOLE_PROPRIETOR" as a value. enum: - SOLE_PROPRIETOR - PRIVATE_PROFIT - PUBLIC_PROFIT - NON_PROFIT - GOVERNMENT - nullable: true + nullable: false helpMessageResponse: type: string description: A message that gets sent to users requesting help. @@ -5914,6 +5982,7 @@ components: - useCaseSummary - productionMessageContent - optInWorkflow + - businessEntityType properties: businessAddress: $ref: '#/components/schemas/address' @@ -5958,6 +6027,8 @@ components: $ref: '#/components/schemas/businessRegistrationNumber' businessRegistrationType: $ref: '#/components/schemas/businessRegistrationTypeEnum' + businessRegistrationIssuingCountry: + $ref: '#/components/schemas/businessRegistrationIssuingCountryEnum' businessEntityType: $ref: '#/components/schemas/businessEntityTypeEnum' helpMessageResponse: @@ -6011,6 +6082,8 @@ components: $ref: '#/components/schemas/businessRegistrationTypeEnum' businessEntityType: $ref: '#/components/schemas/businessEntityTypeEnum' + businessRegistrationIssuingCountry: + $ref: '#/components/schemas/businessRegistrationIssuingCountryEnum' helpMessageResponse: $ref: '#/components/schemas/helpMessageResponse' ageGatedContent: @@ -6503,20 +6576,12 @@ components: $ref: '#/components/schemas/businessDba' businessRegistrationNumber: $ref: '#/components/schemas/businessRegistrationNumber' - description: >- - US Federal Tax ID Number (EIN) or Canada Business Number (CBN). - Available starting October 1st, 2025. businessRegistrationType: $ref: '#/components/schemas/businessRegistrationTypeEnum' - description: >- - The type of business registration number. Available starting October - 1st, 2025. + businessRegistrationIssuingCountry: + $ref: '#/components/schemas/businessRegistrationIssuingCountryEnum' businessEntityType: $ref: '#/components/schemas/businessEntityTypeEnum' - description: >- - The type of registered business. If no option is applicable, please - provide "SOLE_PROPRIETOR" as a value. Available starting October - 1st, 2025. tfvStatusEnum: type: string enum: diff --git a/docs/BusinessEntityTypeEnum.md b/docs/BusinessEntityTypeEnum.md index 392a21f0..f1057887 100644 --- a/docs/BusinessEntityTypeEnum.md +++ b/docs/BusinessEntityTypeEnum.md @@ -1,5 +1,5 @@ # Bandwidth.Standard.Model.BusinessEntityTypeEnum -The type of registered business. If no option is applicable, please provide \"SOLE_PROPRIETOR\" as a value. Optional until early 2026; required if `businessRegistrationNumber` is provided. Available starting October 1st, 2025. +The type of registered business. If no option is applicable, please provide \"SOLE_PROPRIETOR\" as a value. ## Properties diff --git a/docs/BusinessRegistrationIssuingCountryEnum.md b/docs/BusinessRegistrationIssuingCountryEnum.md new file mode 100644 index 00000000..9d44f526 --- /dev/null +++ b/docs/BusinessRegistrationIssuingCountryEnum.md @@ -0,0 +1,10 @@ +# Bandwidth.Standard.Model.BusinessRegistrationIssuingCountryEnum +The country issuing the business registration in ISO-3166-1 alpha-3 format. | Registration Type | Supported Countries | |- -- -- -- -- -- -- -- -- -- -- -|- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -| | EIN | USA | | CBN | CAN | | NEQ | CAN | | PROVINCIAL_NUMBER | CAN | | CRN | GBR, HKG | | VAT | GBR, IRL, BRA, NLD | | ACN | AUS | | ABN | AUS | | BRN | HKG | | SIREN | FRA | | SIRET | FRA | | NZBN | NZL | | UST_IDNR | DEU | | CIF | ESP | | NIF | ESP | | CNPJ | BRA | | UID | CHE | | OTHER | Must Provide Country Code | + +## 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/docs/BusinessRegistrationTypeEnum.md b/docs/BusinessRegistrationTypeEnum.md index 75107e2d..fd52b45a 100644 --- a/docs/BusinessRegistrationTypeEnum.md +++ b/docs/BusinessRegistrationTypeEnum.md @@ -1,5 +1,5 @@ # Bandwidth.Standard.Model.BusinessRegistrationTypeEnum -The type of business registration number. Optional until early 2026; required if `businessRegistrationNumber` is provided. Available starting October 1st, 2025. +The type of business registration number. ## Properties diff --git a/docs/TfvSubmissionInfo.md b/docs/TfvSubmissionInfo.md index 12dc651d..1664f3e9 100644 --- a/docs/TfvSubmissionInfo.md +++ b/docs/TfvSubmissionInfo.md @@ -16,8 +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** | US Federal Tax ID Number (EIN) or Canada Business Number (CBN). Optional until early 2026. If a value is provided for this field, a value must be provided for `businessRegistrationType` and `businessEntityType`. Available starting October 1st, 2025. | [optional] +**BusinessRegistrationNumber** | **string** | Government-issued business identifying number. | [optional] **BusinessRegistrationType** | **BusinessRegistrationTypeEnum** | | [optional] +**BusinessRegistrationIssuingCountry** | **BusinessRegistrationIssuingCountryEnum** | | [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 e5d6063f..1a55400b 100644 --- a/docs/VerificationRequest.md +++ b/docs/VerificationRequest.md @@ -17,9 +17,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** | US Federal Tax ID Number (EIN) or Canada Business Number (CBN). Optional until early 2026. If a value is provided for this field, a value must be provided for `businessRegistrationType` and `businessEntityType`. Available starting October 1st, 2025. | [optional] +**BusinessRegistrationNumber** | **string** | Government-issued business identifying number. | [optional] **BusinessRegistrationType** | **BusinessRegistrationTypeEnum** | | [optional] -**BusinessEntityType** | **BusinessEntityTypeEnum** | | [optional] +**BusinessRegistrationIssuingCountry** | **BusinessRegistrationIssuingCountryEnum** | | [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] **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/docs/VerificationUpdateRequest.md b/docs/VerificationUpdateRequest.md index f90fd5c0..100ac9e8 100644 --- a/docs/VerificationUpdateRequest.md +++ b/docs/VerificationUpdateRequest.md @@ -16,9 +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** | US Federal Tax ID Number (EIN) or Canada Business Number (CBN). Optional until early 2026. If a value is provided for this field, a value must be provided for `businessRegistrationType` and `businessEntityType`. Available starting October 1st, 2025. | [optional] +**BusinessRegistrationNumber** | **string** | Government-issued business identifying number. | [optional] **BusinessRegistrationType** | **BusinessRegistrationTypeEnum** | | [optional] **BusinessEntityType** | **BusinessEntityTypeEnum** | | [optional] +**BusinessRegistrationIssuingCountry** | **BusinessRegistrationIssuingCountryEnum** | | [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.Test/Unit/Model/BusinessRegistrationIssuingCountryEnumTests.cs b/src/Bandwidth.Standard.Test/Unit/Model/BusinessRegistrationIssuingCountryEnumTests.cs new file mode 100644 index 00000000..9c669034 --- /dev/null +++ b/src/Bandwidth.Standard.Test/Unit/Model/BusinessRegistrationIssuingCountryEnumTests.cs @@ -0,0 +1,53 @@ +/* + * 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); + } + + } + +} diff --git a/src/Bandwidth.Standard.Test/Unit/Model/TfvSubmissionInfoTests.cs b/src/Bandwidth.Standard.Test/Unit/Model/TfvSubmissionInfoTests.cs index c0c420fc..5c4c2549 100644 --- a/src/Bandwidth.Standard.Test/Unit/Model/TfvSubmissionInfoTests.cs +++ b/src/Bandwidth.Standard.Test/Unit/Model/TfvSubmissionInfoTests.cs @@ -72,6 +72,7 @@ public TfvSubmissionInfoTests() businessDba: "test", businessRegistrationNumber: "test", businessRegistrationType: BusinessRegistrationTypeEnum.EIN, + businessRegistrationIssuingCountry: BusinessRegistrationIssuingCountryEnum.USA, businessEntityType: BusinessEntityTypeEnum.SOLEPROPRIETOR ); } @@ -230,6 +231,16 @@ public void BusinessRegistrationTypeTest() Assert.Equal(BusinessRegistrationTypeEnum.EIN, instance.BusinessRegistrationType); } + /// + /// Test the property 'BusinessRegistrationIssuingCountry' + /// + [Fact] + public void BusinessRegistrationIssuingCountryTest() + { + Assert.IsType(instance.BusinessRegistrationIssuingCountry); + Assert.Equal(BusinessRegistrationIssuingCountryEnum.USA, instance.BusinessRegistrationIssuingCountry); + } + /// /// Test the property 'BusinessEntityType' /// diff --git a/src/Bandwidth.Standard.Test/Unit/Model/VerificationRequestTests.cs b/src/Bandwidth.Standard.Test/Unit/Model/VerificationRequestTests.cs index 4f00e833..9c7aada9 100644 --- a/src/Bandwidth.Standard.Test/Unit/Model/VerificationRequestTests.cs +++ b/src/Bandwidth.Standard.Test/Unit/Model/VerificationRequestTests.cs @@ -64,6 +64,7 @@ public VerificationRequestTests() businessDba: "test", businessRegistrationNumber: "test", businessRegistrationType: BusinessRegistrationTypeEnum.EIN, + businessRegistrationIssuingCountry: BusinessRegistrationIssuingCountryEnum.USA, businessEntityType: BusinessEntityTypeEnum.SOLEPROPRIETOR, helpMessageResponse: "test", ageGatedContent: false, @@ -232,6 +233,16 @@ public void BusinessRegistrationTypeTest() Assert.Equal(BusinessRegistrationTypeEnum.EIN, instance.BusinessRegistrationType); } + /// + /// Test the property 'BusinessRegistrationIssuingCountry' + /// + [Fact] + public void BusinessRegistrationIssuingCountryTest() + { + Assert.IsType(instance.BusinessRegistrationIssuingCountry); + Assert.Equal(BusinessRegistrationIssuingCountryEnum.USA, instance.BusinessRegistrationIssuingCountry); + } + /// /// Test the property 'BusinessEntityType' /// diff --git a/src/Bandwidth.Standard.Test/Unit/Model/VerificationUpdateRequestTests.cs b/src/Bandwidth.Standard.Test/Unit/Model/VerificationUpdateRequestTests.cs index f83e27c2..a127f801 100644 --- a/src/Bandwidth.Standard.Test/Unit/Model/VerificationUpdateRequestTests.cs +++ b/src/Bandwidth.Standard.Test/Unit/Model/VerificationUpdateRequestTests.cs @@ -63,6 +63,7 @@ public VerificationUpdateRequestTests() businessDba: "test", businessRegistrationNumber: "test", businessRegistrationType: BusinessRegistrationTypeEnum.EIN, + businessRegistrationIssuingCountry: BusinessRegistrationIssuingCountryEnum.USA, businessEntityType: BusinessEntityTypeEnum.SOLEPROPRIETOR, helpMessageResponse: "test", ageGatedContent: false, @@ -221,6 +222,16 @@ public void BusinessRegistrationTypeTest() Assert.Equal(BusinessRegistrationTypeEnum.EIN, instance.BusinessRegistrationType); } + /// + /// Test the property 'BusinessRegistrationIssuingCountry' + /// + [Fact] + public void BusinessRegistrationIssuingCountryTest() + { + Assert.IsType(instance.BusinessRegistrationIssuingCountry); + Assert.Equal(BusinessRegistrationIssuingCountryEnum.USA, instance.BusinessRegistrationIssuingCountry); + } + /// /// Test the property 'BusinessEntityType' /// diff --git a/src/Bandwidth.Standard/Model/BusinessEntityTypeEnum.cs b/src/Bandwidth.Standard/Model/BusinessEntityTypeEnum.cs index 647dc400..47035675 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. If no option is applicable, please provide \"SOLE_PROPRIETOR\" as a value. Optional until early 2026; required if `businessRegistrationNumber` is provided. Available starting October 1st, 2025. + /// The type of registered business. If no option is applicable, please provide \"SOLE_PROPRIETOR\" as a value. /// - /// The type of registered business. If no option is applicable, please provide \"SOLE_PROPRIETOR\" as a value. Optional until early 2026; required if `businessRegistrationNumber` is provided. Available starting October 1st, 2025. + /// The type of registered business. If no option is applicable, please provide \"SOLE_PROPRIETOR\" as a value. [JsonConverter(typeof(StringEnumConverter))] public enum BusinessEntityTypeEnum { diff --git a/src/Bandwidth.Standard/Model/BusinessRegistrationIssuingCountryEnum.cs b/src/Bandwidth.Standard/Model/BusinessRegistrationIssuingCountryEnum.cs new file mode 100644 index 00000000..97c7dc7a --- /dev/null +++ b/src/Bandwidth.Standard/Model/BusinessRegistrationIssuingCountryEnum.cs @@ -0,0 +1,115 @@ +/* + * 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. | 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. | 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 + } + +} diff --git a/src/Bandwidth.Standard/Model/BusinessRegistrationTypeEnum.cs b/src/Bandwidth.Standard/Model/BusinessRegistrationTypeEnum.cs index 9fbc45e7..536391ac 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. Optional until early 2026; required if `businessRegistrationNumber` is provided. Available starting October 1st, 2025. + /// The type of business registration number. /// - /// The type of business registration number. Optional until early 2026; required if `businessRegistrationNumber` is provided. Available starting October 1st, 2025. + /// The type of business registration number. [JsonConverter(typeof(StringEnumConverter))] public enum BusinessRegistrationTypeEnum { @@ -43,7 +43,103 @@ public enum BusinessRegistrationTypeEnum /// Enum CBN for value: CBN /// [EnumMember(Value = "CBN")] - CBN = 2 + CBN = 2, + + /// + /// Enum NEQ for value: NEQ + /// + [EnumMember(Value = "NEQ")] + NEQ = 3, + + /// + /// Enum PROVINCIALNUMBER for value: PROVINCIAL_NUMBER + /// + [EnumMember(Value = "PROVINCIAL_NUMBER")] + PROVINCIALNUMBER = 4, + + /// + /// Enum CRN for value: CRN + /// + [EnumMember(Value = "CRN")] + CRN = 5, + + /// + /// Enum VAT for value: VAT + /// + [EnumMember(Value = "VAT")] + VAT = 6, + + /// + /// Enum ACN for value: ACN + /// + [EnumMember(Value = "ACN")] + ACN = 7, + + /// + /// Enum ABN for value: ABN + /// + [EnumMember(Value = "ABN")] + ABN = 8, + + /// + /// Enum BRN for value: BRN + /// + [EnumMember(Value = "BRN")] + BRN = 9, + + /// + /// Enum SIREN for value: SIREN + /// + [EnumMember(Value = "SIREN")] + SIREN = 10, + + /// + /// Enum SIRET for value: SIRET + /// + [EnumMember(Value = "SIRET")] + SIRET = 11, + + /// + /// Enum NZBN for value: NZBN + /// + [EnumMember(Value = "NZBN")] + NZBN = 12, + + /// + /// Enum USTIDNR for value: UST_IDNR + /// + [EnumMember(Value = "UST_IDNR")] + USTIDNR = 13, + + /// + /// Enum CIF for value: CIF + /// + [EnumMember(Value = "CIF")] + CIF = 14, + + /// + /// Enum NIF for value: NIF + /// + [EnumMember(Value = "NIF")] + NIF = 15, + + /// + /// Enum CNPJ for value: CNPJ + /// + [EnumMember(Value = "CNPJ")] + CNPJ = 16, + + /// + /// Enum UID for value: UID + /// + [EnumMember(Value = "UID")] + UID = 17, + + /// + /// Enum OTHER for value: OTHER + /// + [EnumMember(Value = "OTHER")] + OTHER = 18 } } diff --git a/src/Bandwidth.Standard/Model/RbmActionBase.cs b/src/Bandwidth.Standard/Model/RbmActionBase.cs index ce5e3d50..210d5d2d 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@8b1170f + /// [B@2b4954a4 [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 66a6983a..58d5b489 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@8b1170f + /// [B@2b4954a4 [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 9a813d2d..79d3f3ad 100644 --- a/src/Bandwidth.Standard/Model/TfvSubmissionInfo.cs +++ b/src/Bandwidth.Standard/Model/TfvSubmissionInfo.cs @@ -39,10 +39,16 @@ 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 /// - [DataMember(Name = "businessEntityType", EmitDefaultValue = true)] + [DataMember(Name = "businessEntityType", EmitDefaultValue = false)] public BusinessEntityTypeEnum? BusinessEntityType { get; set; } /// /// Initializes a new instance of the class. @@ -59,10 +65,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'.. - /// US Federal Tax ID Number (EIN) or Canada Business Number (CBN). Optional until early 2026. If a value is provided for this field, a value must be provided for `businessRegistrationType` and `businessEntityType`. Available starting October 1st, 2025.. + /// Government-issued business identifying number.. /// businessRegistrationType. + /// businessRegistrationIssuingCountry. /// 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?), 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?), BusinessRegistrationIssuingCountryEnum? businessRegistrationIssuingCountry = default(BusinessRegistrationIssuingCountryEnum?), BusinessEntityTypeEnum? businessEntityType = default(BusinessEntityTypeEnum?)) { this.BusinessAddress = businessAddress; this.BusinessContact = businessContact; @@ -78,6 +85,7 @@ public partial class TfvSubmissionInfo : IValidatableObject this.BusinessDba = businessDba; this.BusinessRegistrationNumber = businessRegistrationNumber; this.BusinessRegistrationType = businessRegistrationType; + this.BusinessRegistrationIssuingCountry = businessRegistrationIssuingCountry; this.BusinessEntityType = businessEntityType; } @@ -172,9 +180,9 @@ public partial class TfvSubmissionInfo : IValidatableObject public string BusinessDba { get; set; } /// - /// US Federal Tax ID Number (EIN) or Canada Business Number (CBN). Optional until early 2026. If a value is provided for this field, a value must be provided for `businessRegistrationType` and `businessEntityType`. Available starting October 1st, 2025. + /// Government-issued business identifying number. /// - /// US Federal Tax ID Number (EIN) or Canada Business Number (CBN). Optional until early 2026. If a value is provided for this field, a value must be provided for `businessRegistrationType` and `businessEntityType`. Available starting October 1st, 2025. + /// Government-issued business identifying number. /// 12-3456789 [DataMember(Name = "businessRegistrationNumber", EmitDefaultValue = true)] public string BusinessRegistrationNumber { get; set; } @@ -201,6 +209,7 @@ public override string ToString() sb.Append(" BusinessDba: ").Append(BusinessDba).Append("\n"); sb.Append(" BusinessRegistrationNumber: ").Append(BusinessRegistrationNumber).Append("\n"); sb.Append(" BusinessRegistrationType: ").Append(BusinessRegistrationType).Append("\n"); + sb.Append(" BusinessRegistrationIssuingCountry: ").Append(BusinessRegistrationIssuingCountry).Append("\n"); sb.Append(" BusinessEntityType: ").Append(BusinessEntityType).Append("\n"); sb.Append("}\n"); return sb.ToString(); diff --git a/src/Bandwidth.Standard/Model/VerificationRequest.cs b/src/Bandwidth.Standard/Model/VerificationRequest.cs index 7ab88fbe..f40974d3 100644 --- a/src/Bandwidth.Standard/Model/VerificationRequest.cs +++ b/src/Bandwidth.Standard/Model/VerificationRequest.cs @@ -39,11 +39,17 @@ 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 /// - [DataMember(Name = "businessEntityType", EmitDefaultValue = true)] - public BusinessEntityTypeEnum? BusinessEntityType { get; set; } + [DataMember(Name = "businessEntityType", IsRequired = true, EmitDefaultValue = true)] + public BusinessEntityTypeEnum BusinessEntityType { get; set; } /// /// Initializes a new instance of the class. /// @@ -65,13 +71,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'.. - /// US Federal Tax ID Number (EIN) or Canada Business Number (CBN). Optional until early 2026. If a value is provided for this field, a value must be provided for `businessRegistrationType` and `businessEntityType`. Available starting October 1st, 2025.. + /// Government-issued business identifying number.. /// businessRegistrationType. - /// businessEntityType. + /// businessRegistrationIssuingCountry. + /// 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?), 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?), BusinessRegistrationIssuingCountryEnum? businessRegistrationIssuingCountry = default(BusinessRegistrationIssuingCountryEnum?), 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) @@ -116,6 +123,7 @@ protected VerificationRequest() { } throw new ArgumentNullException("optInWorkflow is a required property for VerificationRequest and cannot be null"); } this.OptInWorkflow = optInWorkflow; + this.BusinessEntityType = businessEntityType; this.AdditionalInformation = additionalInformation; this.IsvReseller = isvReseller; this.PrivacyPolicyUrl = privacyPolicyUrl; @@ -123,7 +131,7 @@ protected VerificationRequest() { } this.BusinessDba = businessDba; this.BusinessRegistrationNumber = businessRegistrationNumber; this.BusinessRegistrationType = businessRegistrationType; - this.BusinessEntityType = businessEntityType; + this.BusinessRegistrationIssuingCountry = businessRegistrationIssuingCountry; this.HelpMessageResponse = helpMessageResponse; this.AgeGatedContent = ageGatedContent; this.CvToken = cvToken; @@ -226,9 +234,9 @@ protected VerificationRequest() { } public string BusinessDba { get; set; } /// - /// US Federal Tax ID Number (EIN) or Canada Business Number (CBN). Optional until early 2026. If a value is provided for this field, a value must be provided for `businessRegistrationType` and `businessEntityType`. Available starting October 1st, 2025. + /// Government-issued business identifying number. /// - /// US Federal Tax ID Number (EIN) or Canada Business Number (CBN). Optional until early 2026. If a value is provided for this field, a value must be provided for `businessRegistrationType` and `businessEntityType`. Available starting October 1st, 2025. + /// Government-issued business identifying number. /// 12-3456789 [DataMember(Name = "businessRegistrationNumber", EmitDefaultValue = true)] public string BusinessRegistrationNumber { get; set; } @@ -280,6 +288,7 @@ public override string ToString() sb.Append(" BusinessDba: ").Append(BusinessDba).Append("\n"); sb.Append(" BusinessRegistrationNumber: ").Append(BusinessRegistrationNumber).Append("\n"); sb.Append(" BusinessRegistrationType: ").Append(BusinessRegistrationType).Append("\n"); + sb.Append(" BusinessRegistrationIssuingCountry: ").Append(BusinessRegistrationIssuingCountry).Append("\n"); sb.Append(" BusinessEntityType: ").Append(BusinessEntityType).Append("\n"); sb.Append(" HelpMessageResponse: ").Append(HelpMessageResponse).Append("\n"); sb.Append(" AgeGatedContent: ").Append(AgeGatedContent).Append("\n"); diff --git a/src/Bandwidth.Standard/Model/VerificationUpdateRequest.cs b/src/Bandwidth.Standard/Model/VerificationUpdateRequest.cs index 800f4c88..227e3278 100644 --- a/src/Bandwidth.Standard/Model/VerificationUpdateRequest.cs +++ b/src/Bandwidth.Standard/Model/VerificationUpdateRequest.cs @@ -42,8 +42,14 @@ public partial class VerificationUpdateRequest : IValidatableObject /// /// Gets or Sets BusinessEntityType /// - [DataMember(Name = "businessEntityType", EmitDefaultValue = true)] + [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. /// @@ -64,13 +70,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'.. - /// US Federal Tax ID Number (EIN) or Canada Business Number (CBN). Optional until early 2026. If a value is provided for this field, a value must be provided for `businessRegistrationType` and `businessEntityType`. Available starting October 1st, 2025.. + /// Government-issued business identifying number.. /// businessRegistrationType. /// businessEntityType. + /// businessRegistrationIssuingCountry. /// 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?), 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?), BusinessRegistrationIssuingCountryEnum? businessRegistrationIssuingCountry = default(BusinessRegistrationIssuingCountryEnum?), string helpMessageResponse = default(string), bool ageGatedContent = default(bool), string cvToken = default(string)) { // to ensure "businessAddress" is required (not null) if (businessAddress == null) @@ -117,6 +124,7 @@ protected VerificationUpdateRequest() { } this.BusinessRegistrationNumber = businessRegistrationNumber; this.BusinessRegistrationType = businessRegistrationType; this.BusinessEntityType = businessEntityType; + this.BusinessRegistrationIssuingCountry = businessRegistrationIssuingCountry; this.HelpMessageResponse = helpMessageResponse; this.AgeGatedContent = ageGatedContent; this.CvToken = cvToken; @@ -213,9 +221,9 @@ protected VerificationUpdateRequest() { } public string BusinessDba { get; set; } /// - /// US Federal Tax ID Number (EIN) or Canada Business Number (CBN). Optional until early 2026. If a value is provided for this field, a value must be provided for `businessRegistrationType` and `businessEntityType`. Available starting October 1st, 2025. + /// Government-issued business identifying number. /// - /// US Federal Tax ID Number (EIN) or Canada Business Number (CBN). Optional until early 2026. If a value is provided for this field, a value must be provided for `businessRegistrationType` and `businessEntityType`. Available starting October 1st, 2025. + /// Government-issued business identifying number. /// 12-3456789 [DataMember(Name = "businessRegistrationNumber", EmitDefaultValue = true)] public string BusinessRegistrationNumber { get; set; } @@ -267,6 +275,7 @@ public override string ToString() sb.Append(" BusinessRegistrationNumber: ").Append(BusinessRegistrationNumber).Append("\n"); sb.Append(" BusinessRegistrationType: ").Append(BusinessRegistrationType).Append("\n"); sb.Append(" BusinessEntityType: ").Append(BusinessEntityType).Append("\n"); + sb.Append(" BusinessRegistrationIssuingCountry: ").Append(BusinessRegistrationIssuingCountry).Append("\n"); sb.Append(" HelpMessageResponse: ").Append(HelpMessageResponse).Append("\n"); sb.Append(" AgeGatedContent: ").Append(AgeGatedContent).Append("\n"); sb.Append(" CvToken: ").Append(CvToken).Append("\n");