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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bandwidth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion custom_templates/README.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -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 |

Expand Down
4 changes: 2 additions & 2 deletions docs/FailureWebhook.md
Original file line number Diff line number Diff line change
Expand Up @@ -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] |

Expand All @@ -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
)
Expand Down
14 changes: 7 additions & 7 deletions lib/bandwidth-sdk/models/failure_webhook.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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'
}
Expand All @@ -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<String>',
:'internal_ticket_number' => :'String'
}
Expand Down Expand Up @@ -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')
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
35 changes: 17 additions & 18 deletions spec/smoke/multi_channel_api_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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