diff --git a/bandwidth.yml b/bandwidth.yml index 825be19f..03769645 100644 --- a/bandwidth.yml +++ b/bandwidth.yml @@ -5424,7 +5424,7 @@ components: be interpreted as an HTTP status code in regards to the error that was encountered. example: '400' - errorDescription: + errorMessage: type: string description: A description of the error that was encountered. example: cannot process request. diff --git a/custom_templates/README.mustache b/custom_templates/README.mustache index 5a1391b9..38fec2ba 100644 --- a/custom_templates/README.mustache +++ b/custom_templates/README.mustache @@ -7,8 +7,8 @@ | **OS** | **Ruby** | |:------------:|:------------------:| -| Windows 2019 | 3.0, 3.1, 3.2, 3.3 | | Windows 2022 | 3.0, 3.1, 3.2, 3.3 | +| Windows 2025 | 3.0, 3.1, 3.2, 3.3 | | Ubuntu 22.04 | 3.0, 3.1, 3.2, 3.3 | | Ubuntu 24.04 | 3.0, 3.1, 3.2, 3.3 | diff --git a/docs/FailureWebhook.md b/docs/FailureWebhook.md index db61fa74..5a7987c1 100644 --- a/docs/FailureWebhook.md +++ b/docs/FailureWebhook.md @@ -7,7 +7,7 @@ | **account_id** | **String** | User's account ID. | [optional] | | **phone_number** | **String** | Toll-free telephone number in E.164 format. | [optional] | | **error_code** | **String** | An error code indicating what error was encountered. This code can be interpreted as an HTTP status code in regards to the error that was encountered. | [optional] | -| **error_description** | **String** | A description of the error that was encountered. | [optional] | +| **error_message** | **String** | A description of the error that was encountered. | [optional] | | **errors** | **Array<String>** | Details of the errors that were encountered when processing the request. | [optional] | | **internal_ticket_number** | **String** | Unique identifier (UUID) generated by Bandwidth to assist in tracking the verification status of a toll-free number. | [optional] | @@ -20,7 +20,7 @@ instance = Bandwidth::FailureWebhook.new( account_id: 1234567, phone_number: +18005555555, error_code: 400, - error_description: cannot process request., + error_message: cannot process request., errors: null, internal_ticket_number: acde070d-8c4c-4f0d-9d8a-162843c10333 ) diff --git a/lib/bandwidth-sdk/models/failure_webhook.rb b/lib/bandwidth-sdk/models/failure_webhook.rb index 5e4333b6..2b84ef8c 100644 --- a/lib/bandwidth-sdk/models/failure_webhook.rb +++ b/lib/bandwidth-sdk/models/failure_webhook.rb @@ -25,7 +25,7 @@ class FailureWebhook attr_accessor :error_code # A description of the error that was encountered. - attr_accessor :error_description + attr_accessor :error_message # Details of the errors that were encountered when processing the request. attr_accessor :errors @@ -39,7 +39,7 @@ def self.attribute_map :'account_id' => :'accountId', :'phone_number' => :'phoneNumber', :'error_code' => :'errorCode', - :'error_description' => :'errorDescription', + :'error_message' => :'errorMessage', :'errors' => :'errors', :'internal_ticket_number' => :'internalTicketNumber' } @@ -56,7 +56,7 @@ def self.openapi_types :'account_id' => :'String', :'phone_number' => :'String', :'error_code' => :'String', - :'error_description' => :'String', + :'error_message' => :'String', :'errors' => :'Array', :'internal_ticket_number' => :'String' } @@ -95,8 +95,8 @@ def initialize(attributes = {}) self.error_code = attributes[:'error_code'] end - if attributes.key?(:'error_description') - self.error_description = attributes[:'error_description'] + if attributes.key?(:'error_message') + self.error_message = attributes[:'error_message'] end if attributes.key?(:'errors') @@ -172,7 +172,7 @@ def ==(o) account_id == o.account_id && phone_number == o.phone_number && error_code == o.error_code && - error_description == o.error_description && + error_message == o.error_message && errors == o.errors && internal_ticket_number == o.internal_ticket_number end @@ -186,7 +186,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [account_id, phone_number, error_code, error_description, errors, internal_ticket_number].hash + [account_id, phone_number, error_code, error_message, errors, internal_ticket_number].hash end # Builds the object from hash diff --git a/spec/smoke/multi_channel_api_spec.rb b/spec/smoke/multi_channel_api_spec.rb index bb52104d..350252e3 100644 --- a/spec/smoke/multi_channel_api_spec.rb +++ b/spec/smoke/multi_channel_api_spec.rb @@ -13,27 +13,26 @@ # Create Multi-Channel Message describe 'create_multi_channel_message' do it 'creates a multi channel message' do - message_body = Bandwidth::MultiChannelChannelListObject.new( - from: BW_NUMBER, - application_id: BW_MESSAGING_APPLICATION_ID, - channel: Bandwidth::MultiChannelMessageChannelEnum::RBM, - content: Bandwidth::RbmMessageContentText.new( - text: 'Hello, this is a test message.', - ) - ) - multi_channel_message_request = Bandwidth::MultiChannelMessageRequest.new( - to: USER_NUMBER, - channel_list: [message_body], - tag: 'tag', - priority: 'high', - expiration: @expiration_time, + message_body = Bandwidth::MultiChannelChannelListObject.new( + from: BW_NUMBER, + application_id: BW_MESSAGING_APPLICATION_ID, + channel: Bandwidth::MultiChannelMessageChannelEnum::RBM, + content: Bandwidth::RbmMessageContentText.new( + text: 'Hello, this is a test message.', ) + ) + multi_channel_message_request = Bandwidth::MultiChannelMessageRequest.new( + to: USER_NUMBER, + channel_list: [message_body], + tag: 'tag', + priority: 'high', + expiration: @expiration_time, + ) - data, status_code = @multi_channel_api_instance.create_multi_channel_message_with_http_info(BW_ACCOUNT_ID, multi_channel_message_request) + data, status_code = @multi_channel_api_instance.create_multi_channel_message_with_http_info(BW_ACCOUNT_ID, multi_channel_message_request) - expect(status_code).to eq(202) - expect(data).to be_instance_of(Bandwidth::CreateMultiChannelMessageResponse) + expect(status_code).to eq(202) + expect(data).to be_instance_of(Bandwidth::CreateMultiChannelMessageResponse) end if false # skip while still in beta - end end