Skip to content

Commit 0eb0d2e

Browse files
authored
SWI-9209 Update RBM (#190)
* SWI-9209 Update RBM * rename for typo
1 parent f867c69 commit 0eb0d2e

File tree

13 files changed

+186
-8
lines changed

13 files changed

+186
-8
lines changed

.openapi-generator/FILES

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,10 @@ docs/RbmMessageContentFile.md
137137
docs/RbmMessageContentRichCard.md
138138
docs/RbmMessageContentText.md
139139
docs/RbmMessageMedia.md
140+
docs/RbmOpenUrlEnum.md
140141
docs/RbmStandaloneCard.md
141142
docs/RbmSuggestionResponse.md
143+
docs/RbmWebViewEnum.md
142144
docs/RecordingAvailableCallback.md
143145
docs/RecordingCompleteCallback.md
144146
docs/RecordingStateEnum.md
@@ -332,8 +334,10 @@ lib/bandwidth-sdk/models/rbm_message_content_file.rb
332334
lib/bandwidth-sdk/models/rbm_message_content_rich_card.rb
333335
lib/bandwidth-sdk/models/rbm_message_content_text.rb
334336
lib/bandwidth-sdk/models/rbm_message_media.rb
337+
lib/bandwidth-sdk/models/rbm_open_url_enum.rb
335338
lib/bandwidth-sdk/models/rbm_standalone_card.rb
336339
lib/bandwidth-sdk/models/rbm_suggestion_response.rb
340+
lib/bandwidth-sdk/models/rbm_web_view_enum.rb
337341
lib/bandwidth-sdk/models/recording_available_callback.rb
338342
lib/bandwidth-sdk/models/recording_complete_callback.rb
339343
lib/bandwidth-sdk/models/recording_state_enum.rb

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,8 +297,10 @@ Class | Method | HTTP request | Description
297297
- [Bandwidth::RbmMessageContentRichCard](docs/RbmMessageContentRichCard.md)
298298
- [Bandwidth::RbmMessageContentText](docs/RbmMessageContentText.md)
299299
- [Bandwidth::RbmMessageMedia](docs/RbmMessageMedia.md)
300+
- [Bandwidth::RbmOpenUrlEnum](docs/RbmOpenUrlEnum.md)
300301
- [Bandwidth::RbmStandaloneCard](docs/RbmStandaloneCard.md)
301302
- [Bandwidth::RbmSuggestionResponse](docs/RbmSuggestionResponse.md)
303+
- [Bandwidth::RbmWebViewEnum](docs/RbmWebViewEnum.md)
302304
- [Bandwidth::RecordingAvailableCallback](docs/RecordingAvailableCallback.md)
303305
- [Bandwidth::RecordingCompleteCallback](docs/RecordingCompleteCallback.md)
304306
- [Bandwidth::RecordingStateEnum](docs/RecordingStateEnum.md)

bandwidth.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2378,6 +2378,35 @@ components:
23782378
- OPEN_URL
23792379
- REQUEST_LOCATION
23802380
example: REPLY
2381+
rbmOpenUrlEnum:
2382+
type: string
2383+
description: >-
2384+
Specifies how the URL should be opened on a mobile device.
2385+
2386+
- `BROWSER` Opens the URL in the device's default browser. If
2387+
application is not set or the device doesn’t support WebView, this
2388+
option is used by default.
2389+
2390+
- `WEBVIEW` Opens the URL in an in-app WebView.
2391+
enum:
2392+
- BROWSER
2393+
- WEBVIEW
2394+
example: WEBVIEW
2395+
rbmWebViewEnum:
2396+
type: string
2397+
description: >-
2398+
Defines the layout of the WebView on a mobile device. It must be defined
2399+
when application is set to `WEBVIEW`
2400+
2401+
- `FULL` WebView takes the full screen.
2402+
2403+
- `HALF` WebView takes half of the screen.
2404+
2405+
- `TALL` WebView takes three-quarters of the screen.
2406+
enum:
2407+
- FULL
2408+
- HALF
2409+
- TALL
23812410
rbmActionText:
23822411
title: Text
23832412
type: string
@@ -2482,6 +2511,10 @@ components:
24822511
description: The URL to open in browser.
24832512
example: https://dev.bandwidth.com
24842513
maxLength: 2048
2514+
application:
2515+
$ref: '#/components/schemas/rbmOpenUrlEnum'
2516+
webviewViewMode:
2517+
$ref: '#/components/schemas/rbmWebViewEnum'
24852518
required:
24862519
- url
24872520
multiChannelFullActions:

docs/MultiChannelAction.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
| **end_time** | **Time** | The end time of the event. | |
1717
| **description** | **String** | The description of the event. | [optional] |
1818
| **url** | **String** | The URL to open in browser. | |
19+
| **application** | [**RbmOpenUrlEnum**](RbmOpenUrlEnum.md) | | [optional] |
20+
| **webview_view_mode** | [**RbmWebViewEnum**](RbmWebViewEnum.md) | | [optional] |
1921

2022
## Example
2123

@@ -34,7 +36,9 @@ instance = Bandwidth::MultiChannelAction.new(
3436
start_time: 2022-09-14T18:20:16Z,
3537
end_time: 2022-09-14T18:20:16Z,
3638
description: Discuss the new project,
37-
url: https://dev.bandwidth.com
39+
url: https://dev.bandwidth.com,
40+
application: null,
41+
webview_view_mode: null
3842
)
3943
```
4044

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@7d5d77a6
19+
postback_data: [B@13866865
2020
)
2121
```
2222

docs/RbmActionOpenUrl.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
| **text** | **String** | Displayed text for user to click | |
99
| **postback_data** | **String** | Base64 payload the customer receives when the reply is clicked. | |
1010
| **url** | **String** | The URL to open in browser. | |
11+
| **application** | [**RbmOpenUrlEnum**](RbmOpenUrlEnum.md) | | [optional] |
12+
| **webview_view_mode** | [**RbmWebViewEnum**](RbmWebViewEnum.md) | | [optional] |
1113

1214
## Example
1315

@@ -18,7 +20,9 @@ instance = Bandwidth::RbmActionOpenUrl.new(
1820
type: null,
1921
text: Hello world,
2022
postback_data: U0dWc2JHOGdkMjl5YkdRPQ==,
21-
url: https://dev.bandwidth.com
23+
url: https://dev.bandwidth.com,
24+
application: null,
25+
webview_view_mode: null
2226
)
2327
```
2428

docs/RbmOpenUrlEnum.md

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

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@7d5d77a6
17+
postback_data: [B@13866865
1818
)
1919
```
2020

docs/RbmWebViewEnum.md

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

lib/bandwidth-sdk.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,10 @@
144144
require 'bandwidth-sdk/models/rbm_message_content_rich_card'
145145
require 'bandwidth-sdk/models/rbm_message_content_text'
146146
require 'bandwidth-sdk/models/rbm_message_media'
147+
require 'bandwidth-sdk/models/rbm_open_url_enum'
147148
require 'bandwidth-sdk/models/rbm_standalone_card'
148149
require 'bandwidth-sdk/models/rbm_suggestion_response'
150+
require 'bandwidth-sdk/models/rbm_web_view_enum'
149151
require 'bandwidth-sdk/models/recording_available_callback'
150152
require 'bandwidth-sdk/models/recording_complete_callback'
151153
require 'bandwidth-sdk/models/recording_state_enum'

0 commit comments

Comments
 (0)