From f9c1fe62633cdbbcb85d1507777c7359d73e5780 Mon Sep 17 00:00:00 2001 From: DX-Bandwidth Date: Tue, 24 Feb 2026 16:07:31 +0000 Subject: [PATCH 1/2] Generate SDK with OpenAPI Generator Version --- .openapi-generator/FILES | 2 + README.md | 1 + bandwidth.yml | 111 ++++++++++++++---- .../BusinessRegistrationIssuingCountryEnum.md | 15 +++ docs/RbmActionBase.md | 2 +- docs/RbmSuggestionResponse.md | 2 +- docs/TfvSubmissionInfo.md | 4 +- docs/TollFreeVerificationApi.md | 2 +- docs/VerificationRequest.md | 6 +- docs/VerificationUpdateRequest.md | 4 +- lib/bandwidth-sdk.rb | 1 + ...iness_registration_issuing_country_enum.rb | 51 ++++++++ .../models/business_registration_type_enum.rb | 18 ++- .../models/tfv_submission_info.rb | 14 ++- .../models/verification_request.rb | 31 ++++- .../models/verification_update_request.rb | 14 ++- 16 files changed, 238 insertions(+), 40 deletions(-) create mode 100644 docs/BusinessRegistrationIssuingCountryEnum.md create mode 100644 lib/bandwidth-sdk/models/business_registration_issuing_country_enum.rb diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 53e9a751..3fc1f0c4 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -13,6 +13,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 @@ -217,6 +218,7 @@ lib/bandwidth-sdk/models/blocked_webhook.rb lib/bandwidth-sdk/models/bridge_complete_callback.rb lib/bandwidth-sdk/models/bridge_target_complete_callback.rb lib/bandwidth-sdk/models/business_entity_type_enum.rb +lib/bandwidth-sdk/models/business_registration_issuing_country_enum.rb lib/bandwidth-sdk/models/business_registration_type_enum.rb lib/bandwidth-sdk/models/call_direction_enum.rb lib/bandwidth-sdk/models/call_recording_metadata.rb diff --git a/README.md b/README.md index e981ea0b..352585a3 100644 --- a/README.md +++ b/README.md @@ -180,6 +180,7 @@ Class | Method | HTTP request | Description - [Bandwidth::BridgeCompleteCallback](docs/BridgeCompleteCallback.md) - [Bandwidth::BridgeTargetCompleteCallback](docs/BridgeTargetCompleteCallback.md) - [Bandwidth::BusinessEntityTypeEnum](docs/BusinessEntityTypeEnum.md) + - [Bandwidth::BusinessRegistrationIssuingCountryEnum](docs/BusinessRegistrationIssuingCountryEnum.md) - [Bandwidth::BusinessRegistrationTypeEnum](docs/BusinessRegistrationTypeEnum.md) - [Bandwidth::CallDirectionEnum](docs/CallDirectionEnum.md) - [Bandwidth::CallRecordingMetadata](docs/CallRecordingMetadata.md) 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/BusinessRegistrationIssuingCountryEnum.md b/docs/BusinessRegistrationIssuingCountryEnum.md new file mode 100644 index 00000000..0a7ba7c9 --- /dev/null +++ b/docs/BusinessRegistrationIssuingCountryEnum.md @@ -0,0 +1,15 @@ +# Bandwidth::BusinessRegistrationIssuingCountryEnum + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | + +## Example + +```ruby +require 'bandwidth-sdk' + +instance = Bandwidth::BusinessRegistrationIssuingCountryEnum.new() +``` + diff --git a/docs/RbmActionBase.md b/docs/RbmActionBase.md index a54a6cd9..892ecb09 100644 --- a/docs/RbmActionBase.md +++ b/docs/RbmActionBase.md @@ -16,7 +16,7 @@ require 'bandwidth-sdk' instance = Bandwidth::RbmActionBase.new( type: null, text: Hello world, - postback_data: [B@768d27e8 + postback_data: [B@177302d6 ) ``` diff --git a/docs/RbmSuggestionResponse.md b/docs/RbmSuggestionResponse.md index fd94f012..42e3aec9 100644 --- a/docs/RbmSuggestionResponse.md +++ b/docs/RbmSuggestionResponse.md @@ -14,7 +14,7 @@ require 'bandwidth-sdk' instance = Bandwidth::RbmSuggestionResponse.new( text: Yes, I would like to proceed, - postback_data: [B@768d27e8 + postback_data: [B@177302d6 ) ``` diff --git a/docs/TfvSubmissionInfo.md b/docs/TfvSubmissionInfo.md index 414c10da..68102a11 100644 --- a/docs/TfvSubmissionInfo.md +++ b/docs/TfvSubmissionInfo.md @@ -16,8 +16,9 @@ | **privacy_policy_url** | **String** | The Toll-Free Verification request privacy policy URL. | [optional] | | **terms_and_conditions_url** | **String** | The Toll-Free Verification request terms and conditions policy URL. | [optional] | | **business_dba** | **String** | The company 'Doing Business As'. | [optional] | -| **business_registration_number** | **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] | +| **business_registration_number** | **String** | Government-issued business identifying number. | [optional] | | **business_registration_type** | [**BusinessRegistrationTypeEnum**](BusinessRegistrationTypeEnum.md) | | [optional] | +| **business_registration_issuing_country** | [**BusinessRegistrationIssuingCountryEnum**](BusinessRegistrationIssuingCountryEnum.md) | | [optional] | | **business_entity_type** | [**BusinessEntityTypeEnum**](BusinessEntityTypeEnum.md) | | [optional] | ## Example @@ -40,6 +41,7 @@ instance = Bandwidth::TfvSubmissionInfo.new( business_dba: Another Company Name Inc., business_registration_number: 12-3456789, business_registration_type: null, + business_registration_issuing_country: null, business_entity_type: null ) ``` diff --git a/docs/TollFreeVerificationApi.md b/docs/TollFreeVerificationApi.md index c5a1bd84..9fd133a9 100644 --- a/docs/TollFreeVerificationApi.md +++ b/docs/TollFreeVerificationApi.md @@ -481,7 +481,7 @@ end api_instance = Bandwidth::TollFreeVerificationApi.new account_id = '9900000' # String | Your Bandwidth Account ID. -verification_request = Bandwidth::VerificationRequest.new({business_address: Bandwidth::Address.new({name: 'Bandwidth Inc.', addr1: '2230 Bandmate Way', city: 'Raleigh', state: 'NC', zip: '27606', url: 'https://www.example.com/path/to/resource'}), business_contact: Bandwidth::Contact.new({first_name: 'John', last_name: 'Doe', email: 'foo@bar.com', phone_number: '+19192654500'}), message_volume: 10000, phone_numbers: ['+18005555555'], use_case: '2FA', use_case_summary: 'Text summarizing the use case for the toll-free number', production_message_content: 'Production message content', opt_in_workflow: Bandwidth::OptInWorkflow.new({description: 'Opt In Flow', image_urls: ['https://www.example.com/path/to/resource']})}) # VerificationRequest | Request for verification of a toll-free phone number. +verification_request = Bandwidth::VerificationRequest.new({business_address: Bandwidth::Address.new({name: 'Bandwidth Inc.', addr1: '2230 Bandmate Way', city: 'Raleigh', state: 'NC', zip: '27606', url: 'https://www.example.com/path/to/resource'}), business_contact: Bandwidth::Contact.new({first_name: 'John', last_name: 'Doe', email: 'foo@bar.com', phone_number: '+19192654500'}), message_volume: 10000, phone_numbers: ['+18005555555'], use_case: '2FA', use_case_summary: 'Text summarizing the use case for the toll-free number', production_message_content: 'Production message content', opt_in_workflow: Bandwidth::OptInWorkflow.new({description: 'Opt In Flow', image_urls: ['https://www.example.com/path/to/resource']}), business_entity_type: Bandwidth::BusinessEntityTypeEnum::SOLE_PROPRIETOR}) # VerificationRequest | Request for verification of a toll-free phone number. begin # Request Toll-Free Verification diff --git a/docs/VerificationRequest.md b/docs/VerificationRequest.md index 2b835468..ecf497b5 100644 --- a/docs/VerificationRequest.md +++ b/docs/VerificationRequest.md @@ -17,9 +17,10 @@ | **privacy_policy_url** | **String** | The Toll-Free Verification request privacy policy URL. | [optional] | | **terms_and_conditions_url** | **String** | The Toll-Free Verification request terms and conditions policy URL. | [optional] | | **business_dba** | **String** | The company 'Doing Business As'. | [optional] | -| **business_registration_number** | **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] | +| **business_registration_number** | **String** | Government-issued business identifying number. | [optional] | | **business_registration_type** | [**BusinessRegistrationTypeEnum**](BusinessRegistrationTypeEnum.md) | | [optional] | -| **business_entity_type** | [**BusinessEntityTypeEnum**](BusinessEntityTypeEnum.md) | | [optional] | +| **business_registration_issuing_country** | [**BusinessRegistrationIssuingCountryEnum**](BusinessRegistrationIssuingCountryEnum.md) | | [optional] | +| **business_entity_type** | [**BusinessEntityTypeEnum**](BusinessEntityTypeEnum.md) | | | | **help_message_response** | **String** | A message that gets sent to users requesting help. | [optional] | | **age_gated_content** | **Boolean** | Indicates whether the content is age-gated. | [optional] | | **cv_token** | **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] | @@ -45,6 +46,7 @@ instance = Bandwidth::VerificationRequest.new( business_dba: Another Company Name Inc., business_registration_number: 12-3456789, business_registration_type: null, + business_registration_issuing_country: null, business_entity_type: null, help_message_response: Please contact support for assistance., age_gated_content: false, diff --git a/docs/VerificationUpdateRequest.md b/docs/VerificationUpdateRequest.md index a060e9b4..64c69c3d 100644 --- a/docs/VerificationUpdateRequest.md +++ b/docs/VerificationUpdateRequest.md @@ -16,9 +16,10 @@ | **privacy_policy_url** | **String** | The Toll-Free Verification request privacy policy URL. | [optional] | | **terms_and_conditions_url** | **String** | The Toll-Free Verification request terms and conditions policy URL. | [optional] | | **business_dba** | **String** | The company 'Doing Business As'. | [optional] | -| **business_registration_number** | **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] | +| **business_registration_number** | **String** | Government-issued business identifying number. | [optional] | | **business_registration_type** | [**BusinessRegistrationTypeEnum**](BusinessRegistrationTypeEnum.md) | | [optional] | | **business_entity_type** | [**BusinessEntityTypeEnum**](BusinessEntityTypeEnum.md) | | [optional] | +| **business_registration_issuing_country** | [**BusinessRegistrationIssuingCountryEnum**](BusinessRegistrationIssuingCountryEnum.md) | | [optional] | | **help_message_response** | **String** | A message that gets sent to users requesting help. | [optional] | | **age_gated_content** | **Boolean** | Indicates whether the content is age-gated. | [optional] | | **cv_token** | **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] | @@ -44,6 +45,7 @@ instance = Bandwidth::VerificationUpdateRequest.new( business_registration_number: 12-3456789, business_registration_type: null, business_entity_type: null, + business_registration_issuing_country: null, help_message_response: Please contact support for assistance., age_gated_content: false, cv_token: cv.user123|sess456|mno|tfree|read_write|X7yZ9aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVw diff --git a/lib/bandwidth-sdk.rb b/lib/bandwidth-sdk.rb index 718f3ece..07ec2ed8 100644 --- a/lib/bandwidth-sdk.rb +++ b/lib/bandwidth-sdk.rb @@ -27,6 +27,7 @@ require 'bandwidth-sdk/models/bridge_complete_callback' require 'bandwidth-sdk/models/bridge_target_complete_callback' require 'bandwidth-sdk/models/business_entity_type_enum' +require 'bandwidth-sdk/models/business_registration_issuing_country_enum' require 'bandwidth-sdk/models/business_registration_type_enum' require 'bandwidth-sdk/models/call_direction_enum' require 'bandwidth-sdk/models/call_recording_metadata' diff --git a/lib/bandwidth-sdk/models/business_registration_issuing_country_enum.rb b/lib/bandwidth-sdk/models/business_registration_issuing_country_enum.rb new file mode 100644 index 00000000..b3b695b5 --- /dev/null +++ b/lib/bandwidth-sdk/models/business_registration_issuing_country_enum.rb @@ -0,0 +1,51 @@ +=begin +#Bandwidth + +#Bandwidth's Communication APIs + +The version of the OpenAPI document: 1.0.0 +Contact: letstalk@bandwidth.com +Generated by: https://openapi-generator.tech +Generator version: 7.17.0 + +=end + +require 'date' +require 'time' + +module Bandwidth + class BusinessRegistrationIssuingCountryEnum + USA = 'USA'.freeze + CAN = 'CAN'.freeze + HKG = 'HKG'.freeze + GBR = 'GBR'.freeze + IRL = 'IRL'.freeze + BRA = 'BRA'.freeze + NLD = 'NLD'.freeze + AUS = 'AUS'.freeze + FRA = 'FRA'.freeze + NZL = 'NZL'.freeze + DEU = 'DEU'.freeze + ESP = 'ESP'.freeze + CHE = 'CHE'.freeze + + def self.all_vars + @all_vars ||= [USA, CAN, HKG, GBR, IRL, BRA, NLD, AUS, FRA, NZL, DEU, ESP, CHE].freeze + end + + # Builds the enum from string + # @param [String] The enum value in the form of the string + # @return [String] The enum value + def self.build_from_hash(value) + new.build_from_hash(value) + end + + # Builds the enum from string + # @param [String] The enum value in the form of the string + # @return [String] The enum value + def build_from_hash(value) + return value if BusinessRegistrationIssuingCountryEnum.all_vars.include?(value) + raise "Invalid ENUM value #{value} for class #BusinessRegistrationIssuingCountryEnum" + end + end +end diff --git a/lib/bandwidth-sdk/models/business_registration_type_enum.rb b/lib/bandwidth-sdk/models/business_registration_type_enum.rb index 340eddeb..b983852a 100644 --- a/lib/bandwidth-sdk/models/business_registration_type_enum.rb +++ b/lib/bandwidth-sdk/models/business_registration_type_enum.rb @@ -17,9 +17,25 @@ module Bandwidth class BusinessRegistrationTypeEnum EIN = 'EIN'.freeze CBN = 'CBN'.freeze + NEQ = 'NEQ'.freeze + PROVINCIAL_NUMBER = 'PROVINCIAL_NUMBER'.freeze + CRN = 'CRN'.freeze + VAT = 'VAT'.freeze + ACN = 'ACN'.freeze + ABN = 'ABN'.freeze + BRN = 'BRN'.freeze + SIREN = 'SIREN'.freeze + SIRET = 'SIRET'.freeze + NZBN = 'NZBN'.freeze + UST_IDNR = 'UST_IDNR'.freeze + CIF = 'CIF'.freeze + NIF = 'NIF'.freeze + CNPJ = 'CNPJ'.freeze + UID = 'UID'.freeze + OTHER = 'OTHER'.freeze def self.all_vars - @all_vars ||= [EIN, CBN].freeze + @all_vars ||= [EIN, CBN, NEQ, PROVINCIAL_NUMBER, CRN, VAT, ACN, ABN, BRN, SIREN, SIRET, NZBN, UST_IDNR, CIF, NIF, CNPJ, UID, OTHER].freeze end # Builds the enum from string diff --git a/lib/bandwidth-sdk/models/tfv_submission_info.rb b/lib/bandwidth-sdk/models/tfv_submission_info.rb index 90d3d1ba..48efd0b9 100644 --- a/lib/bandwidth-sdk/models/tfv_submission_info.rb +++ b/lib/bandwidth-sdk/models/tfv_submission_info.rb @@ -48,11 +48,13 @@ class TfvSubmissionInfo < ApiModelBase # The company 'Doing Business As'. attr_accessor :business_dba - # 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. attr_accessor :business_registration_number attr_accessor :business_registration_type + attr_accessor :business_registration_issuing_country + attr_accessor :business_entity_type class EnumAttributeValidator @@ -94,6 +96,7 @@ def self.attribute_map :'business_dba' => :'businessDba', :'business_registration_number' => :'businessRegistrationNumber', :'business_registration_type' => :'businessRegistrationType', + :'business_registration_issuing_country' => :'businessRegistrationIssuingCountry', :'business_entity_type' => :'businessEntityType' } end @@ -125,6 +128,7 @@ def self.openapi_types :'business_dba' => :'String', :'business_registration_number' => :'String', :'business_registration_type' => :'BusinessRegistrationTypeEnum', + :'business_registration_issuing_country' => :'BusinessRegistrationIssuingCountryEnum', :'business_entity_type' => :'BusinessEntityTypeEnum' } end @@ -136,7 +140,6 @@ def self.openapi_nullable :'isv_reseller', :'business_registration_number', :'business_registration_type', - :'business_entity_type' ]) end @@ -212,6 +215,10 @@ def initialize(attributes = {}) self.business_registration_type = attributes[:'business_registration_type'] end + if attributes.key?(:'business_registration_issuing_country') + self.business_registration_issuing_country = attributes[:'business_registration_issuing_country'] + end + if attributes.key?(:'business_entity_type') self.business_entity_type = attributes[:'business_entity_type'] end @@ -426,6 +433,7 @@ def ==(o) business_dba == o.business_dba && business_registration_number == o.business_registration_number && business_registration_type == o.business_registration_type && + business_registration_issuing_country == o.business_registration_issuing_country && business_entity_type == o.business_entity_type end @@ -438,7 +446,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [business_address, business_contact, message_volume, use_case, use_case_summary, production_message_content, opt_in_workflow, additional_information, isv_reseller, privacy_policy_url, terms_and_conditions_url, business_dba, business_registration_number, business_registration_type, business_entity_type].hash + [business_address, business_contact, message_volume, use_case, use_case_summary, production_message_content, opt_in_workflow, additional_information, isv_reseller, privacy_policy_url, terms_and_conditions_url, business_dba, business_registration_number, business_registration_type, business_registration_issuing_country, business_entity_type].hash end # Builds the object from hash diff --git a/lib/bandwidth-sdk/models/verification_request.rb b/lib/bandwidth-sdk/models/verification_request.rb index 8119a72d..9f90b4a9 100644 --- a/lib/bandwidth-sdk/models/verification_request.rb +++ b/lib/bandwidth-sdk/models/verification_request.rb @@ -50,11 +50,13 @@ class VerificationRequest < ApiModelBase # The company 'Doing Business As'. attr_accessor :business_dba - # 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. attr_accessor :business_registration_number attr_accessor :business_registration_type + attr_accessor :business_registration_issuing_country + attr_accessor :business_entity_type # A message that gets sent to users requesting help. @@ -106,6 +108,7 @@ def self.attribute_map :'business_dba' => :'businessDba', :'business_registration_number' => :'businessRegistrationNumber', :'business_registration_type' => :'businessRegistrationType', + :'business_registration_issuing_country' => :'businessRegistrationIssuingCountry', :'business_entity_type' => :'businessEntityType', :'help_message_response' => :'helpMessageResponse', :'age_gated_content' => :'ageGatedContent', @@ -141,6 +144,7 @@ def self.openapi_types :'business_dba' => :'String', :'business_registration_number' => :'String', :'business_registration_type' => :'BusinessRegistrationTypeEnum', + :'business_registration_issuing_country' => :'BusinessRegistrationIssuingCountryEnum', :'business_entity_type' => :'BusinessEntityTypeEnum', :'help_message_response' => :'String', :'age_gated_content' => :'Boolean', @@ -155,7 +159,6 @@ def self.openapi_nullable :'isv_reseller', :'business_registration_number', :'business_registration_type', - :'business_entity_type', :'help_message_response', :'cv_token' ]) @@ -255,8 +258,14 @@ def initialize(attributes = {}) self.business_registration_type = attributes[:'business_registration_type'] end + if attributes.key?(:'business_registration_issuing_country') + self.business_registration_issuing_country = attributes[:'business_registration_issuing_country'] + end + if attributes.key?(:'business_entity_type') self.business_entity_type = attributes[:'business_entity_type'] + else + self.business_entity_type = nil end if attributes.key?(:'help_message_response') @@ -369,6 +378,10 @@ def list_invalid_properties invalid_properties.push('invalid value for "business_registration_number", the character length must be smaller than or equal to 500.') end + if @business_entity_type.nil? + invalid_properties.push('invalid value for "business_entity_type", business_entity_type cannot be nil.') + end + if !@help_message_response.nil? && @help_message_response.to_s.length > 500 invalid_properties.push('invalid value for "help_message_response", the character length must be smaller than or equal to 500.') end @@ -411,6 +424,7 @@ def valid? return false if !@isv_reseller.nil? && @isv_reseller.to_s.length > 500 return false if !@isv_reseller.nil? && @isv_reseller.to_s.length < 0 return false if !@business_registration_number.nil? && @business_registration_number.to_s.length > 500 + return false if @business_entity_type.nil? return false if !@help_message_response.nil? && @help_message_response.to_s.length > 500 return false if !@cv_token.nil? && @cv_token.to_s.length > 500 return false if !@cv_token.nil? && @cv_token.to_s.length < 0 @@ -575,6 +589,16 @@ def business_registration_number=(business_registration_number) @business_registration_number = business_registration_number end + # Custom attribute writer method with validation + # @param [Object] business_entity_type Value to be assigned + def business_entity_type=(business_entity_type) + if business_entity_type.nil? + fail ArgumentError, 'business_entity_type cannot be nil' + end + + @business_entity_type = business_entity_type + end + # Custom attribute writer method with validation # @param [Object] help_message_response Value to be assigned def help_message_response=(help_message_response) @@ -619,6 +643,7 @@ def ==(o) business_dba == o.business_dba && business_registration_number == o.business_registration_number && business_registration_type == o.business_registration_type && + business_registration_issuing_country == o.business_registration_issuing_country && business_entity_type == o.business_entity_type && help_message_response == o.help_message_response && age_gated_content == o.age_gated_content && @@ -634,7 +659,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [business_address, business_contact, message_volume, phone_numbers, use_case, use_case_summary, production_message_content, opt_in_workflow, additional_information, isv_reseller, privacy_policy_url, terms_and_conditions_url, business_dba, business_registration_number, business_registration_type, business_entity_type, help_message_response, age_gated_content, cv_token].hash + [business_address, business_contact, message_volume, phone_numbers, use_case, use_case_summary, production_message_content, opt_in_workflow, additional_information, isv_reseller, privacy_policy_url, terms_and_conditions_url, business_dba, business_registration_number, business_registration_type, business_registration_issuing_country, business_entity_type, help_message_response, age_gated_content, cv_token].hash end # Builds the object from hash diff --git a/lib/bandwidth-sdk/models/verification_update_request.rb b/lib/bandwidth-sdk/models/verification_update_request.rb index e8602f83..65ff4197 100644 --- a/lib/bandwidth-sdk/models/verification_update_request.rb +++ b/lib/bandwidth-sdk/models/verification_update_request.rb @@ -48,13 +48,15 @@ class VerificationUpdateRequest < ApiModelBase # The company 'Doing Business As'. attr_accessor :business_dba - # 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. attr_accessor :business_registration_number attr_accessor :business_registration_type attr_accessor :business_entity_type + attr_accessor :business_registration_issuing_country + # A message that gets sent to users requesting help. attr_accessor :help_message_response @@ -104,6 +106,7 @@ def self.attribute_map :'business_registration_number' => :'businessRegistrationNumber', :'business_registration_type' => :'businessRegistrationType', :'business_entity_type' => :'businessEntityType', + :'business_registration_issuing_country' => :'businessRegistrationIssuingCountry', :'help_message_response' => :'helpMessageResponse', :'age_gated_content' => :'ageGatedContent', :'cv_token' => :'cvToken' @@ -138,6 +141,7 @@ def self.openapi_types :'business_registration_number' => :'String', :'business_registration_type' => :'BusinessRegistrationTypeEnum', :'business_entity_type' => :'BusinessEntityTypeEnum', + :'business_registration_issuing_country' => :'BusinessRegistrationIssuingCountryEnum', :'help_message_response' => :'String', :'age_gated_content' => :'Boolean', :'cv_token' => :'String' @@ -151,7 +155,6 @@ def self.openapi_nullable :'isv_reseller', :'business_registration_number', :'business_registration_type', - :'business_entity_type', :'help_message_response', :'cv_token' ]) @@ -247,6 +250,10 @@ def initialize(attributes = {}) self.business_entity_type = attributes[:'business_entity_type'] end + if attributes.key?(:'business_registration_issuing_country') + self.business_registration_issuing_country = attributes[:'business_registration_issuing_country'] + end + if attributes.key?(:'help_message_response') self.help_message_response = attributes[:'help_message_response'] end @@ -574,6 +581,7 @@ def ==(o) business_registration_number == o.business_registration_number && business_registration_type == o.business_registration_type && business_entity_type == o.business_entity_type && + business_registration_issuing_country == o.business_registration_issuing_country && help_message_response == o.help_message_response && age_gated_content == o.age_gated_content && cv_token == o.cv_token @@ -588,7 +596,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [business_address, business_contact, message_volume, use_case, use_case_summary, production_message_content, opt_in_workflow, additional_information, isv_reseller, privacy_policy_url, terms_and_conditions_url, business_dba, business_registration_number, business_registration_type, business_entity_type, help_message_response, age_gated_content, cv_token].hash + [business_address, business_contact, message_volume, use_case, use_case_summary, production_message_content, opt_in_workflow, additional_information, isv_reseller, privacy_policy_url, terms_and_conditions_url, business_dba, business_registration_number, business_registration_type, business_entity_type, business_registration_issuing_country, help_message_response, age_gated_content, cv_token].hash end # Builds the object from hash From d06352bed476b1fc93b8e7358e7d97401edafcdd Mon Sep 17 00:00:00 2001 From: ckoegel Date: Tue, 24 Feb 2026 15:56:24 -0500 Subject: [PATCH 2/2] update unit test --- spec/unit/api/toll_free_verification_api_spec.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/unit/api/toll_free_verification_api_spec.rb b/spec/unit/api/toll_free_verification_api_spec.rb index eb37d8be..0311504c 100644 --- a/spec/unit/api/toll_free_verification_api_spec.rb +++ b/spec/unit/api/toll_free_verification_api_spec.rb @@ -32,6 +32,10 @@ description: 'description', image_urls: ['https://example.com'] ), + business_entity_type: Bandwidth::BusinessEntityTypeEnum::PUBLIC_PROFIT, + business_registration_number: '123456789', + business_registration_type: Bandwidth::BusinessRegistrationTypeEnum::EIN, + business_registration_issuing_country: Bandwidth::BusinessRegistrationIssuingCountryEnum::USA, additional_information: 'additionalInformation', isv_reseller: 'isvReseller' } }