Skip to content

Commit

Permalink
SWI-6217 Update SDK Based on Recent Spec Changes (#150)
Browse files Browse the repository at this point in the history
* Generate SDK with OpenAPI Generator Version 7.8.0

* Clean SDK using Rubocop

---------

Co-authored-by: DX-Bandwidth <dx@bandwidth.com>
  • Loading branch information
band-swi[bot] and DX-Bandwidth authored Sep 24, 2024
1 parent 15690f5 commit 3d6a2c0
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 18 deletions.
2 changes: 0 additions & 2 deletions bandwidth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1862,7 +1862,6 @@ components:
- from
- text
- media
- priority
messageDeliveredCallback:
description: Message Delivered Callback
type: object
Expand Down Expand Up @@ -2035,7 +2034,6 @@ components:
- from
- text
- tag
- priority
callbackMethodEnum:
type: string
nullable: true
Expand Down
2 changes: 1 addition & 1 deletion docs/MessageFailedCallbackMessage.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
| **text** | **String** | | |
| **tag** | **String** | | |
| **media** | **Array&lt;String&gt;** | | [optional] |
| **priority** | [**PriorityEnum**](PriorityEnum.md) | | |
| **priority** | [**PriorityEnum**](PriorityEnum.md) | | [optional] |

## Example

Expand Down
2 changes: 1 addition & 1 deletion docs/MessageSendingCallbackMessage.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
| **text** | **String** | | |
| **tag** | **String** | | [optional] |
| **media** | **Array&lt;String&gt;** | | |
| **priority** | [**PriorityEnum**](PriorityEnum.md) | | |
| **priority** | [**PriorityEnum**](PriorityEnum.md) | | [optional] |

## Example

Expand Down
7 changes: 0 additions & 7 deletions lib/bandwidth-sdk/models/message_failed_callback_message.rb
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,6 @@ def initialize(attributes = {})

if attributes.key?(:'priority')
self.priority = attributes[:'priority']
else
self.priority = nil
end
end

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

if @priority.nil?
invalid_properties.push('invalid value for "priority", priority cannot be nil.')
end

invalid_properties
end

Expand All @@ -265,7 +259,6 @@ def valid?
return false if @from.nil?
return false if @text.nil?
return false if @tag.nil?
return false if @priority.nil?
true
end

Expand Down
7 changes: 0 additions & 7 deletions lib/bandwidth-sdk/models/message_sending_callback_message.rb
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,6 @@ def initialize(attributes = {})

if attributes.key?(:'priority')
self.priority = attributes[:'priority']
else
self.priority = nil
end
end

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

if @priority.nil?
invalid_properties.push('invalid value for "priority", priority cannot be nil.')
end

invalid_properties
end

Expand All @@ -265,7 +259,6 @@ def valid?
return false if @from.nil?
return false if @text.nil?
return false if @media.nil?
return false if @priority.nil?
true
end

Expand Down

0 comments on commit 3d6a2c0

Please sign in to comment.