Skip to content

Commit 673aacd

Browse files
band-swi-release-engineering[bot]DX-Bandwidthckoegel
authored
SWI-8413 Update SDK Based on Recent Spec Changes (#180)
* Generate SDK with OpenAPI Generator Version * update spec helper * unit tests for new list message item fields * add to smoke test --------- Co-authored-by: DX-Bandwidth <[email protected]> Co-authored-by: ckoegel <[email protected]>
1 parent 98f4586 commit 673aacd

16 files changed

+338
-12
lines changed

.openapi-generator/FILES

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ docs/OptInWorkflow.md
100100
docs/PageInfo.md
101101
docs/PhoneNumberLookupApi.md
102102
docs/PriorityEnum.md
103+
docs/ProductTypeEnum.md
103104
docs/RbmActionBase.md
104105
docs/RbmActionDial.md
105106
docs/RbmActionOpenUrl.md
@@ -271,6 +272,7 @@ lib/bandwidth-sdk/models/multi_channel_message_response_data_channel_list_inner.
271272
lib/bandwidth-sdk/models/opt_in_workflow.rb
272273
lib/bandwidth-sdk/models/page_info.rb
273274
lib/bandwidth-sdk/models/priority_enum.rb
275+
lib/bandwidth-sdk/models/product_type_enum.rb
274276
lib/bandwidth-sdk/models/rbm_action_base.rb
275277
lib/bandwidth-sdk/models/rbm_action_dial.rb
276278
lib/bandwidth-sdk/models/rbm_action_open_url.rb

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ Class | Method | HTTP request | Description
249249
- [Bandwidth::OptInWorkflow](docs/OptInWorkflow.md)
250250
- [Bandwidth::PageInfo](docs/PageInfo.md)
251251
- [Bandwidth::PriorityEnum](docs/PriorityEnum.md)
252+
- [Bandwidth::ProductTypeEnum](docs/ProductTypeEnum.md)
252253
- [Bandwidth::RbmActionBase](docs/RbmActionBase.md)
253254
- [Bandwidth::RbmActionDial](docs/RbmActionDial.md)
254255
- [Bandwidth::RbmActionOpenUrl](docs/RbmActionOpenUrl.md)

bandwidth.yml

Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,16 @@ paths:
179179
- $ref: '#/components/parameters/fromDateTime'
180180
- $ref: '#/components/parameters/toDateTime'
181181
- $ref: '#/components/parameters/campaignId'
182+
- $ref: '#/components/parameters/fromBwLatency'
183+
- $ref: '#/components/parameters/bwQueued'
184+
- $ref: '#/components/parameters/product'
185+
- $ref: '#/components/parameters/location'
186+
- $ref: '#/components/parameters/callingNumberCountryA3'
187+
- $ref: '#/components/parameters/calledNumberCountryA3'
188+
- $ref: '#/components/parameters/fromSegmentCount'
189+
- $ref: '#/components/parameters/toSegmentCount'
190+
- $ref: '#/components/parameters/fromMessageSize'
191+
- $ref: '#/components/parameters/toMessageSize'
182192
- $ref: '#/components/parameters/sort'
183193
- $ref: '#/components/parameters/pageToken'
184194
- $ref: '#/components/parameters/limit'
@@ -1716,7 +1726,22 @@ components:
17161726
enum:
17171727
- sms
17181728
- mms
1729+
- rcs
17191730
example: sms
1731+
productTypeEnum:
1732+
type: string
1733+
description: The type of product associated with the message.
1734+
enum:
1735+
- LOCAL_A2P
1736+
- P2P
1737+
- SHORT_CODE_REACH
1738+
- TOLL_FREE
1739+
- HOSTED_SHORT_CODE
1740+
- ALPHA_NUMERIC
1741+
- RBM_MEDIA
1742+
- RBM_RICH
1743+
- RBM_CONVERSATIONAL
1744+
example: P2P
17201745
fieldError:
17211746
type: object
17221747
properties:
@@ -1819,6 +1844,33 @@ components:
18191844
description: The campaign ID of the message if it has one.
18201845
nullable: true
18211846
example: CJEUMDK
1847+
bwLatency:
1848+
type: integer
1849+
description: >-
1850+
The Bandwidth latency of the message in seconds. Only available for
1851+
accounts with the Advanced Quality Metrics feature enabled.
1852+
nullable: true
1853+
example: 20
1854+
callingNumberCountryA3:
1855+
type: string
1856+
description: The A3 country code of the calling number.
1857+
nullable: true
1858+
example: USA
1859+
calledNumberCountryA3:
1860+
type: string
1861+
description: The A3 country code of the called number.
1862+
nullable: true
1863+
example: USA
1864+
product:
1865+
type: string
1866+
description: The messaging product associated with the message.
1867+
nullable: true
1868+
example: P2P
1869+
location:
1870+
type: string
1871+
description: The location ID associated with this message.
1872+
nullable: true
1873+
example: 123ID
18221874
pageInfo:
18231875
title: PageInfo
18241876
type: object
@@ -6940,6 +6992,90 @@ components:
69406992
example: CJEUMDK
69416993
schema:
69426994
type: string
6995+
fromBwLatency:
6996+
in: query
6997+
name: fromBwLatency
6998+
required: false
6999+
description: >-
7000+
The minimum Bandwidth latency of the message in seconds. Only available
7001+
for accounts with the Advanced Quality Metrics feature enabled.
7002+
example: 5
7003+
schema:
7004+
type: integer
7005+
bwQueued:
7006+
in: query
7007+
name: bwQueued
7008+
required: false
7009+
description: >-
7010+
A boolean value indicating whether the message is queued in the
7011+
Bandwidth network.
7012+
example: true
7013+
schema:
7014+
type: boolean
7015+
product:
7016+
in: query
7017+
name: product
7018+
required: false
7019+
description: Messaging product associated with the message.
7020+
example: P2P
7021+
schema:
7022+
$ref: '#/components/schemas/productTypeEnum'
7023+
location:
7024+
in: query
7025+
name: location
7026+
required: false
7027+
description: Location Id associated with the message.
7028+
example: 123ABC
7029+
schema:
7030+
type: string
7031+
callingNumberCountryA3:
7032+
in: query
7033+
name: callingNumberCountryA3
7034+
required: false
7035+
description: Calling number country in A3 format.
7036+
example: USA
7037+
schema:
7038+
type: string
7039+
calledNumberCountryA3:
7040+
in: query
7041+
name: calledNumberCountryA3
7042+
required: false
7043+
description: Called number country in A3 format.
7044+
example: USA
7045+
schema:
7046+
type: string
7047+
fromSegmentCount:
7048+
in: query
7049+
name: fromSegmentCount
7050+
required: false
7051+
description: Segment count (start range).
7052+
example: 1
7053+
schema:
7054+
type: integer
7055+
toSegmentCount:
7056+
in: query
7057+
name: toSegmentCount
7058+
required: false
7059+
description: Segment count (end range).
7060+
example: 3
7061+
schema:
7062+
type: integer
7063+
fromMessageSize:
7064+
in: query
7065+
name: fromMessageSize
7066+
required: false
7067+
description: Message size (start range).
7068+
example: 100
7069+
schema:
7070+
type: integer
7071+
toMessageSize:
7072+
in: query
7073+
name: toMessageSize
7074+
required: false
7075+
description: Message size (end range).
7076+
example: 120
7077+
schema:
7078+
type: integer
69437079
sort:
69447080
in: query
69457081
name: sort

docs/ListMessageItem.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@
2121
| **recipient_count** | **Integer** | The number of recipients the message has. | [optional] |
2222
| **campaign_class** | **String** | The campaign class of the message if it has one. | [optional] |
2323
| **campaign_id** | **String** | The campaign ID of the message if it has one. | [optional] |
24+
| **bw_latency** | **Integer** | The Bandwidth latency of the message in seconds. Only available for accounts with the Advanced Quality Metrics feature enabled. | [optional] |
25+
| **calling_number_country_a3** | **String** | The A3 country code of the calling number. | [optional] |
26+
| **called_number_country_a3** | **String** | The A3 country code of the called number. | [optional] |
27+
| **product** | **String** | The messaging product associated with the message. | [optional] |
28+
| **location** | **String** | The location ID associated with this message. | [optional] |
2429

2530
## Example
2631

@@ -44,7 +49,12 @@ instance = Bandwidth::ListMessageItem.new(
4449
attachment_count: 1,
4550
recipient_count: 1,
4651
campaign_class: T,
47-
campaign_id: CJEUMDK
52+
campaign_id: CJEUMDK,
53+
bw_latency: 20,
54+
calling_number_country_a3: USA,
55+
called_number_country_a3: USA,
56+
product: P2P,
57+
location: 123ID
4858
)
4959
```
5060

docs/MessagesApi.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,16 @@ opts = {
114114
from_date_time: '2022-09-14T18:20:16.000Z', # String | The start of the date range to search in ISO 8601 format. Uses the message receive time. The date range to search in is currently 14 days.
115115
to_date_time: '2022-09-14T18:20:16.000Z', # String | The end of the date range to search in ISO 8601 format. Uses the message receive time. The date range to search in is currently 14 days.
116116
campaign_id: 'CJEUMDK', # String | The campaign ID of the message.
117+
from_bw_latency: 5, # Integer | The minimum Bandwidth latency of the message in seconds. Only available for accounts with the Advanced Quality Metrics feature enabled.
118+
bw_queued: true, # Boolean | A boolean value indicating whether the message is queued in the Bandwidth network.
119+
product: Bandwidth::ProductTypeEnum::LOCAL_A2_P, # ProductTypeEnum | Messaging product associated with the message.
120+
location: '123ABC', # String | Location Id associated with the message.
121+
calling_number_country_a3: 'USA', # String | Calling number country in A3 format.
122+
called_number_country_a3: 'USA', # String | Called number country in A3 format.
123+
from_segment_count: 1, # Integer | Segment count (start range).
124+
to_segment_count: 3, # Integer | Segment count (end range).
125+
from_message_size: 100, # Integer | Message size (start range).
126+
to_message_size: 120, # Integer | Message size (end range).
117127
sort: 'sourceTn:desc', # String | The field and direction to sort by combined with a colon. Direction is either asc or desc.
118128
page_token: 'gdEewhcJLQRB5', # String | A base64 encoded value used for pagination of results.
119129
limit: 50, # Integer | The maximum records requested in search result. Default 100. The sum of limit and after cannot be more than 10000.
@@ -163,6 +173,16 @@ end
163173
| **from_date_time** | **String** | The start of the date range to search in ISO 8601 format. Uses the message receive time. The date range to search in is currently 14 days. | [optional] |
164174
| **to_date_time** | **String** | The end of the date range to search in ISO 8601 format. Uses the message receive time. The date range to search in is currently 14 days. | [optional] |
165175
| **campaign_id** | **String** | The campaign ID of the message. | [optional] |
176+
| **from_bw_latency** | **Integer** | The minimum Bandwidth latency of the message in seconds. Only available for accounts with the Advanced Quality Metrics feature enabled. | [optional] |
177+
| **bw_queued** | **Boolean** | A boolean value indicating whether the message is queued in the Bandwidth network. | [optional] |
178+
| **product** | [**ProductTypeEnum**](.md) | Messaging product associated with the message. | [optional] |
179+
| **location** | **String** | Location Id associated with the message. | [optional] |
180+
| **calling_number_country_a3** | **String** | Calling number country in A3 format. | [optional] |
181+
| **called_number_country_a3** | **String** | Called number country in A3 format. | [optional] |
182+
| **from_segment_count** | **Integer** | Segment count (start range). | [optional] |
183+
| **to_segment_count** | **Integer** | Segment count (end range). | [optional] |
184+
| **from_message_size** | **Integer** | Message size (start range). | [optional] |
185+
| **to_message_size** | **Integer** | Message size (end range). | [optional] |
166186
| **sort** | **String** | The field and direction to sort by combined with a colon. Direction is either asc or desc. | [optional] |
167187
| **page_token** | **String** | A base64 encoded value used for pagination of results. | [optional] |
168188
| **limit** | **Integer** | The maximum records requested in search result. Default 100. The sum of limit and after cannot be more than 10000. | [optional] |

docs/ProductTypeEnum.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Bandwidth::ProductTypeEnum
2+
3+
## Properties
4+
5+
| Name | Type | Description | Notes |
6+
| ---- | ---- | ----------- | ----- |
7+
8+
## Example
9+
10+
```ruby
11+
require 'bandwidth-sdk'
12+
13+
instance = Bandwidth::ProductTypeEnum.new()
14+
```
15+

docs/RbmActionBase.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ require 'bandwidth-sdk'
1616
instance = Bandwidth::RbmActionBase.new(
1717
type: null,
1818
text: Hello world,
19-
postback_data: [B@2c6aa46c
19+
postback_data: [B@12ebfb2d
2020
)
2121
```
2222

docs/RbmSuggestionResponse.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ require 'bandwidth-sdk'
1414

1515
instance = Bandwidth::RbmSuggestionResponse.new(
1616
text: Yes, I would like to proceed,
17-
postback_data: [B@2c6aa46c
17+
postback_data: [B@12ebfb2d
1818
)
1919
```
2020

lib/bandwidth-sdk.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@
106106
require 'bandwidth-sdk/models/opt_in_workflow'
107107
require 'bandwidth-sdk/models/page_info'
108108
require 'bandwidth-sdk/models/priority_enum'
109+
require 'bandwidth-sdk/models/product_type_enum'
109110
require 'bandwidth-sdk/models/rbm_action_base'
110111
require 'bandwidth-sdk/models/rbm_action_dial'
111112
require 'bandwidth-sdk/models/rbm_action_open_url'

lib/bandwidth-sdk/api/messages_api.rb

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,16 @@ def create_message_with_http_info(account_id, message_request, opts = {})
108108
# @option opts [String] :from_date_time The start of the date range to search in ISO 8601 format. Uses the message receive time. The date range to search in is currently 14 days.
109109
# @option opts [String] :to_date_time The end of the date range to search in ISO 8601 format. Uses the message receive time. The date range to search in is currently 14 days.
110110
# @option opts [String] :campaign_id The campaign ID of the message.
111+
# @option opts [Integer] :from_bw_latency The minimum Bandwidth latency of the message in seconds. Only available for accounts with the Advanced Quality Metrics feature enabled.
112+
# @option opts [Boolean] :bw_queued A boolean value indicating whether the message is queued in the Bandwidth network.
113+
# @option opts [ProductTypeEnum] :product Messaging product associated with the message.
114+
# @option opts [String] :location Location Id associated with the message.
115+
# @option opts [String] :calling_number_country_a3 Calling number country in A3 format.
116+
# @option opts [String] :called_number_country_a3 Called number country in A3 format.
117+
# @option opts [Integer] :from_segment_count Segment count (start range).
118+
# @option opts [Integer] :to_segment_count Segment count (end range).
119+
# @option opts [Integer] :from_message_size Message size (start range).
120+
# @option opts [Integer] :to_message_size Message size (end range).
111121
# @option opts [String] :sort The field and direction to sort by combined with a colon. Direction is either asc or desc.
112122
# @option opts [String] :page_token A base64 encoded value used for pagination of results.
113123
# @option opts [Integer] :limit The maximum records requested in search result. Default 100. The sum of limit and after cannot be more than 10000.
@@ -133,6 +143,16 @@ def list_messages(account_id, opts = {})
133143
# @option opts [String] :from_date_time The start of the date range to search in ISO 8601 format. Uses the message receive time. The date range to search in is currently 14 days.
134144
# @option opts [String] :to_date_time The end of the date range to search in ISO 8601 format. Uses the message receive time. The date range to search in is currently 14 days.
135145
# @option opts [String] :campaign_id The campaign ID of the message.
146+
# @option opts [Integer] :from_bw_latency The minimum Bandwidth latency of the message in seconds. Only available for accounts with the Advanced Quality Metrics feature enabled.
147+
# @option opts [Boolean] :bw_queued A boolean value indicating whether the message is queued in the Bandwidth network.
148+
# @option opts [ProductTypeEnum] :product Messaging product associated with the message.
149+
# @option opts [String] :location Location Id associated with the message.
150+
# @option opts [String] :calling_number_country_a3 Calling number country in A3 format.
151+
# @option opts [String] :called_number_country_a3 Called number country in A3 format.
152+
# @option opts [Integer] :from_segment_count Segment count (start range).
153+
# @option opts [Integer] :to_segment_count Segment count (end range).
154+
# @option opts [Integer] :from_message_size Message size (start range).
155+
# @option opts [Integer] :to_message_size Message size (end range).
136156
# @option opts [String] :sort The field and direction to sort by combined with a colon. Direction is either asc or desc.
137157
# @option opts [String] :page_token A base64 encoded value used for pagination of results.
138158
# @option opts [Integer] :limit The maximum records requested in search result. Default 100. The sum of limit and after cannot be more than 10000.
@@ -162,6 +182,16 @@ def list_messages_with_http_info(account_id, opts = {})
162182
query_params[:'fromDateTime'] = opts[:'from_date_time'] if !opts[:'from_date_time'].nil?
163183
query_params[:'toDateTime'] = opts[:'to_date_time'] if !opts[:'to_date_time'].nil?
164184
query_params[:'campaignId'] = opts[:'campaign_id'] if !opts[:'campaign_id'].nil?
185+
query_params[:'fromBwLatency'] = opts[:'from_bw_latency'] if !opts[:'from_bw_latency'].nil?
186+
query_params[:'bwQueued'] = opts[:'bw_queued'] if !opts[:'bw_queued'].nil?
187+
query_params[:'product'] = opts[:'product'] if !opts[:'product'].nil?
188+
query_params[:'location'] = opts[:'location'] if !opts[:'location'].nil?
189+
query_params[:'callingNumberCountryA3'] = opts[:'calling_number_country_a3'] if !opts[:'calling_number_country_a3'].nil?
190+
query_params[:'calledNumberCountryA3'] = opts[:'called_number_country_a3'] if !opts[:'called_number_country_a3'].nil?
191+
query_params[:'fromSegmentCount'] = opts[:'from_segment_count'] if !opts[:'from_segment_count'].nil?
192+
query_params[:'toSegmentCount'] = opts[:'to_segment_count'] if !opts[:'to_segment_count'].nil?
193+
query_params[:'fromMessageSize'] = opts[:'from_message_size'] if !opts[:'from_message_size'].nil?
194+
query_params[:'toMessageSize'] = opts[:'to_message_size'] if !opts[:'to_message_size'].nil?
165195
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
166196
query_params[:'pageToken'] = opts[:'page_token'] if !opts[:'page_token'].nil?
167197
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?

0 commit comments

Comments
 (0)