Skip to content

Commit 3d6a2c0

Browse files
SWI-6217 Update SDK Based on Recent Spec Changes (#150)
* Generate SDK with OpenAPI Generator Version 7.8.0 * Clean SDK using Rubocop --------- Co-authored-by: DX-Bandwidth <[email protected]>
1 parent 15690f5 commit 3d6a2c0

File tree

5 files changed

+2
-18
lines changed

5 files changed

+2
-18
lines changed

bandwidth.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1862,7 +1862,6 @@ components:
18621862
- from
18631863
- text
18641864
- media
1865-
- priority
18661865
messageDeliveredCallback:
18671866
description: Message Delivered Callback
18681867
type: object
@@ -2035,7 +2034,6 @@ components:
20352034
- from
20362035
- text
20372036
- tag
2038-
- priority
20392037
callbackMethodEnum:
20402038
type: string
20412039
nullable: true

docs/MessageFailedCallbackMessage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
| **text** | **String** | | |
1616
| **tag** | **String** | | |
1717
| **media** | **Array&lt;String&gt;** | | [optional] |
18-
| **priority** | [**PriorityEnum**](PriorityEnum.md) | | |
18+
| **priority** | [**PriorityEnum**](PriorityEnum.md) | | [optional] |
1919

2020
## Example
2121

docs/MessageSendingCallbackMessage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
| **text** | **String** | | |
1616
| **tag** | **String** | | [optional] |
1717
| **media** | **Array&lt;String&gt;** | | |
18-
| **priority** | [**PriorityEnum**](PriorityEnum.md) | | |
18+
| **priority** | [**PriorityEnum**](PriorityEnum.md) | | [optional] |
1919

2020
## Example
2121

lib/bandwidth-sdk/models/message_failed_callback_message.rb

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,6 @@ def initialize(attributes = {})
194194

195195
if attributes.key?(:'priority')
196196
self.priority = attributes[:'priority']
197-
else
198-
self.priority = nil
199197
end
200198
end
201199

@@ -244,10 +242,6 @@ def list_invalid_properties
244242
invalid_properties.push('invalid value for "tag", tag cannot be nil.')
245243
end
246244

247-
if @priority.nil?
248-
invalid_properties.push('invalid value for "priority", priority cannot be nil.')
249-
end
250-
251245
invalid_properties
252246
end
253247

@@ -265,7 +259,6 @@ def valid?
265259
return false if @from.nil?
266260
return false if @text.nil?
267261
return false if @tag.nil?
268-
return false if @priority.nil?
269262
true
270263
end
271264

lib/bandwidth-sdk/models/message_sending_callback_message.rb

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,6 @@ def initialize(attributes = {})
194194

195195
if attributes.key?(:'priority')
196196
self.priority = attributes[:'priority']
197-
else
198-
self.priority = nil
199197
end
200198
end
201199

@@ -244,10 +242,6 @@ def list_invalid_properties
244242
invalid_properties.push('invalid value for "media", media cannot be nil.')
245243
end
246244

247-
if @priority.nil?
248-
invalid_properties.push('invalid value for "priority", priority cannot be nil.')
249-
end
250-
251245
invalid_properties
252246
end
253247

@@ -265,7 +259,6 @@ def valid?
265259
return false if @from.nil?
266260
return false if @text.nil?
267261
return false if @media.nil?
268-
return false if @priority.nil?
269262
true
270263
end
271264

0 commit comments

Comments
 (0)