Skip to content

Commit a79f036

Browse files
committed
Generate SDK with OpenAPI Generator Version
1 parent c083cc6 commit a79f036

File tree

5 files changed

+28
-29
lines changed

5 files changed

+28
-29
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
| **OS** | **Ruby** |
99
|:------------:|:------------------:|
10+
| Windows 2019 | 3.0, 3.1, 3.2, 3.3 |
1011
| Windows 2022 | 3.0, 3.1, 3.2, 3.3 |
11-
| Windows 2025 | 3.0, 3.1, 3.2, 3.3 |
1212
| Ubuntu 22.04 | 3.0, 3.1, 3.2, 3.3 |
1313
| Ubuntu 24.04 | 3.0, 3.1, 3.2, 3.3 |
1414

bandwidth.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5424,7 +5424,7 @@ components:
54245424
be interpreted as an HTTP status code in regards to the error that
54255425
was encountered.
54265426
example: '400'
5427-
errorDescription:
5427+
errorMessage:
54285428
type: string
54295429
description: A description of the error that was encountered.
54305430
example: cannot process request.

docs/FailureWebhook.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
| **account_id** | **String** | User's account ID. | [optional] |
88
| **phone_number** | **String** | Toll-free telephone number in E.164 format. | [optional] |
99
| **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] |
10-
| **error_description** | **String** | A description of the error that was encountered. | [optional] |
10+
| **error_message** | **String** | A description of the error that was encountered. | [optional] |
1111
| **errors** | **Array<String>** | Details of the errors that were encountered when processing the request. | [optional] |
1212
| **internal_ticket_number** | **String** | Unique identifier (UUID) generated by Bandwidth to assist in tracking the verification status of a toll-free number. | [optional] |
1313

@@ -20,7 +20,7 @@ instance = Bandwidth::FailureWebhook.new(
2020
account_id: 1234567,
2121
phone_number: +18005555555,
2222
error_code: 400,
23-
error_description: cannot process request.,
23+
error_message: cannot process request.,
2424
errors: null,
2525
internal_ticket_number: acde070d-8c4c-4f0d-9d8a-162843c10333
2626
)

lib/bandwidth-sdk/models/failure_webhook.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class FailureWebhook
2525
attr_accessor :error_code
2626

2727
# A description of the error that was encountered.
28-
attr_accessor :error_description
28+
attr_accessor :error_message
2929

3030
# Details of the errors that were encountered when processing the request.
3131
attr_accessor :errors
@@ -39,7 +39,7 @@ def self.attribute_map
3939
:'account_id' => :'accountId',
4040
:'phone_number' => :'phoneNumber',
4141
:'error_code' => :'errorCode',
42-
:'error_description' => :'errorDescription',
42+
:'error_message' => :'errorMessage',
4343
:'errors' => :'errors',
4444
:'internal_ticket_number' => :'internalTicketNumber'
4545
}
@@ -56,7 +56,7 @@ def self.openapi_types
5656
:'account_id' => :'String',
5757
:'phone_number' => :'String',
5858
:'error_code' => :'String',
59-
:'error_description' => :'String',
59+
:'error_message' => :'String',
6060
:'errors' => :'Array<String>',
6161
:'internal_ticket_number' => :'String'
6262
}
@@ -95,8 +95,8 @@ def initialize(attributes = {})
9595
self.error_code = attributes[:'error_code']
9696
end
9797

98-
if attributes.key?(:'error_description')
99-
self.error_description = attributes[:'error_description']
98+
if attributes.key?(:'error_message')
99+
self.error_message = attributes[:'error_message']
100100
end
101101

102102
if attributes.key?(:'errors')
@@ -172,7 +172,7 @@ def ==(o)
172172
account_id == o.account_id &&
173173
phone_number == o.phone_number &&
174174
error_code == o.error_code &&
175-
error_description == o.error_description &&
175+
error_message == o.error_message &&
176176
errors == o.errors &&
177177
internal_ticket_number == o.internal_ticket_number
178178
end
@@ -186,7 +186,7 @@ def eql?(o)
186186
# Calculates hash code according to all attributes.
187187
# @return [Integer] Hash code
188188
def hash
189-
[account_id, phone_number, error_code, error_description, errors, internal_ticket_number].hash
189+
[account_id, phone_number, error_code, error_message, errors, internal_ticket_number].hash
190190
end
191191

192192
# Builds the object from hash

spec/smoke/multi_channel_api_spec.rb

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,26 @@
1313
# Create Multi-Channel Message
1414
describe 'create_multi_channel_message' do
1515
it 'creates a multi channel message' do
16-
message_body = Bandwidth::MultiChannelChannelListObject.new(
17-
from: BW_NUMBER,
18-
application_id: BW_MESSAGING_APPLICATION_ID,
19-
channel: Bandwidth::MultiChannelMessageChannelEnum::RBM,
20-
content: Bandwidth::RbmMessageContentText.new(
21-
text: 'Hello, this is a test message.',
22-
)
23-
)
24-
multi_channel_message_request = Bandwidth::MultiChannelMessageRequest.new(
25-
to: USER_NUMBER,
26-
channel_list: [message_body],
27-
tag: 'tag',
28-
priority: 'high',
29-
expiration: @expiration_time,
16+
message_body = Bandwidth::MultiChannelChannelListObject.new(
17+
from: BW_NUMBER,
18+
application_id: BW_MESSAGING_APPLICATION_ID,
19+
channel: Bandwidth::MultiChannelMessageChannelEnum::RBM,
20+
content: Bandwidth::RbmMessageContentText.new(
21+
text: 'Hello, this is a test message.',
3022
)
23+
)
24+
multi_channel_message_request = Bandwidth::MultiChannelMessageRequest.new(
25+
to: USER_NUMBER,
26+
channel_list: [message_body],
27+
tag: 'tag',
28+
priority: 'high',
29+
expiration: @expiration_time,
30+
)
3131

32-
data, status_code = @multi_channel_api_instance.create_multi_channel_message_with_http_info(BW_ACCOUNT_ID, multi_channel_message_request)
32+
data, status_code = @multi_channel_api_instance.create_multi_channel_message_with_http_info(BW_ACCOUNT_ID, multi_channel_message_request)
3333

34-
expect(status_code).to eq(202)
35-
expect(data).to be_instance_of(Bandwidth::CreateMultiChannelMessageResponse)
34+
expect(status_code).to eq(202)
35+
expect(data).to be_instance_of(Bandwidth::CreateMultiChannelMessageResponse)
3636
end if false # skip while still in beta
37-
3837
end
3938
end

0 commit comments

Comments
 (0)