Skip to content

Commit 3ff334f

Browse files
committed
Generate SDK with OpenAPI Generator Version
1 parent cb915a0 commit 3ff334f

15 files changed

Lines changed: 50 additions & 45 deletions

bandwidth.yml

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2436,6 +2436,7 @@ components:
24362436
- media
24372437
rbmCardContent:
24382438
type: object
2439+
description: Must contain at least one of title, description, or media to be valid.
24392440
properties:
24402441
title:
24412442
type: string
@@ -2478,7 +2479,6 @@ components:
24782479
$ref: '#/components/schemas/multiChannelFullActions'
24792480
required:
24802481
- orientation
2481-
- thumbnailImageAlignment
24822482
- cardContent
24832483
standaloneCardOrientationEnum:
24842484
type: string
@@ -2489,8 +2489,8 @@ components:
24892489
thumbnailAlignmentEnum:
24902490
type: string
24912491
description: >-
2492-
The alignment of the thumbnail image in the card. Only applicable if the
2493-
card using horizontal orientation.
2492+
The alignment of the thumbnail image in the card. Required when
2493+
orientation is HORIZONTAL.
24942494
enum:
24952495
- LEFT
24962496
- RIGHT
@@ -2505,6 +2505,7 @@ components:
25052505
type: array
25062506
items:
25072507
$ref: '#/components/schemas/rbmCardContent'
2508+
minItems: 2
25082509
maxItems: 10
25092510
suggestions:
25102511
$ref: '#/components/schemas/multiChannelFullActions'
@@ -2568,7 +2569,11 @@ components:
25682569
type: string
25692570
description: >-
25702571
Defines the layout of the WebView on a mobile device. It must be defined
2571-
when application is set to `WEBVIEW`
2572+
2573+
when application is set to `WEBVIEW` and must not be set when
2574+
application
2575+
2576+
is set to `BROWSER`.
25722577
25732578
- `FULL` WebView takes the full screen.
25742579
@@ -2626,12 +2631,16 @@ components:
26262631
latitude:
26272632
type: string
26282633
format: double
2629-
description: The latitude of the location.
2634+
description: >-
2635+
The latitude of the location. Must be in range [-90.000000,
2636+
90.000000].
26302637
example: '37.7749'
26312638
longitude:
26322639
type: string
26332640
format: double
2634-
description: The longitude of the location.
2641+
description: >-
2642+
The longitude of the location. Must be in range [-180.000000,
2643+
180.000000].
26352644
example: '-122.4194'
26362645
label:
26372646
type: string
@@ -2655,12 +2664,16 @@ components:
26552664
startTime:
26562665
type: string
26572666
format: date-time
2658-
description: The start time of the event.
2667+
description: >-
2668+
The start time of the event. Must be a valid RFC-3339 value,
2669+
e.g., 2021-03-14T01:59:26Z or 2021-03-13T20:59:26-05:00.
26592670
example: 2022-09-14T18:20:16.000Z
26602671
endTime:
26612672
type: string
26622673
format: date-time
2663-
description: The end time of the event.
2674+
description: >-
2675+
The end time of the event. Must be a valid RFC-3339 value, e.g.,
2676+
2021-03-14T01:59:26Z or 2021-03-13T20:59:26-05:00.
26642677
example: 2022-09-14T18:20:16.000Z
26652678
description:
26662679
type: string
@@ -2680,7 +2693,7 @@ components:
26802693
url:
26812694
type: string
26822695
format: uri
2683-
description: The URL to open in browser.
2696+
description: The URL to open in browser. Must use http:// or https:// scheme.
26842697
example: https://dev.bandwidth.com
26852698
maxLength: 2048
26862699
application:

docs/MultiChannelAction.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
| **text** | **String** | Displayed text for user to click | |
99
| **postback_data** | **String** | Base64 payload the customer receives when the reply is clicked. | |
1010
| **phone_number** | **String** | The phone number to dial. Must be E164 format. | |
11-
| **latitude** | **Float** | The latitude of the location. | |
12-
| **longitude** | **Float** | The longitude of the location. | |
11+
| **latitude** | **Float** | The latitude of the location. Must be in range [-90.000000, 90.000000]. | |
12+
| **longitude** | **Float** | The longitude of the location. Must be in range [-180.000000, 180.000000]. | |
1313
| **label** | **String** | The label of the location. | [optional] |
1414
| **title** | **String** | The title of the event. | |
15-
| **start_time** | **Time** | The start time of the event. | |
16-
| **end_time** | **Time** | The end time of the event. | |
15+
| **start_time** | **Time** | The start time of the event. Must be a valid RFC-3339 value, e.g., 2021-03-14T01:59:26Z or 2021-03-13T20:59:26-05:00. | |
16+
| **end_time** | **Time** | The end time of the event. Must be a valid RFC-3339 value, e.g., 2021-03-14T01:59:26Z or 2021-03-13T20:59:26-05:00. | |
1717
| **description** | **String** | The description of the event. | [optional] |
18-
| **url** | **String** | The URL to open in browser. | |
18+
| **url** | **String** | The URL to open in browser. Must use http:// or https:// scheme. | |
1919
| **application** | [**RbmOpenUrlEnum**](RbmOpenUrlEnum.md) | | [optional] |
2020
| **webview_view_mode** | [**RbmWebViewEnum**](RbmWebViewEnum.md) | | [optional] |
2121

docs/MultiChannelActionCalendarEvent.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +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
| **title** | **String** | The title of the event. | |
11-
| **start_time** | **Time** | The start time of the event. | |
12-
| **end_time** | **Time** | The end time of the event. | |
11+
| **start_time** | **Time** | The start time of the event. Must be a valid RFC-3339 value, e.g., 2021-03-14T01:59:26Z or 2021-03-13T20:59:26-05:00. | |
12+
| **end_time** | **Time** | The end time of the event. Must be a valid RFC-3339 value, e.g., 2021-03-14T01:59:26Z or 2021-03-13T20:59:26-05:00. | |
1313
| **description** | **String** | The description of the event. | [optional] |
1414

1515
## Example

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@1a99692
19+
postback_data: [B@3ecbfba1
2020
)
2121
```
2222

docs/RbmActionOpenUrl.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
| **type** | [**RbmActionTypeEnum**](RbmActionTypeEnum.md) | | |
88
| **text** | **String** | Displayed text for user to click | |
99
| **postback_data** | **String** | Base64 payload the customer receives when the reply is clicked. | |
10-
| **url** | **String** | The URL to open in browser. | |
10+
| **url** | **String** | The URL to open in browser. Must use http:// or https:// scheme. | |
1111
| **application** | [**RbmOpenUrlEnum**](RbmOpenUrlEnum.md) | | [optional] |
1212
| **webview_view_mode** | [**RbmWebViewEnum**](RbmWebViewEnum.md) | | [optional] |
1313

docs/RbmActionViewLocation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
| **type** | [**RbmActionTypeEnum**](RbmActionTypeEnum.md) | | |
88
| **text** | **String** | Displayed text for user to click | |
99
| **postback_data** | **String** | Base64 payload the customer receives when the reply is clicked. | |
10-
| **latitude** | **Float** | The latitude of the location. | |
11-
| **longitude** | **Float** | The longitude of the location. | |
10+
| **latitude** | **Float** | The latitude of the location. Must be in range [-90.000000, 90.000000]. | |
11+
| **longitude** | **Float** | The longitude of the location. Must be in range [-180.000000, 180.000000]. | |
1212
| **label** | **String** | The label of the location. | [optional] |
1313

1414
## Example

docs/RbmStandaloneCard.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
| Name | Type | Description | Notes |
66
| ---- | ---- | ----------- | ----- |
77
| **orientation** | [**StandaloneCardOrientationEnum**](StandaloneCardOrientationEnum.md) | | |
8-
| **thumbnail_image_alignment** | [**ThumbnailAlignmentEnum**](ThumbnailAlignmentEnum.md) | | |
8+
| **thumbnail_image_alignment** | [**ThumbnailAlignmentEnum**](ThumbnailAlignmentEnum.md) | | [optional] |
99
| **card_content** | [**RbmCardContent**](RbmCardContent.md) | | |
1010
| **suggestions** | [**Array<MultiChannelAction>**](MultiChannelAction.md) | An array of suggested actions for the recipient. | [optional] |
1111

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@1a99692
17+
postback_data: [B@3ecbfba1
1818
)
1919
```
2020

lib/bandwidth-sdk/configuration.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,6 @@ def initialize
217217
body = JSON.parse(response.body)
218218
@access_token = body['access_token']
219219
@access_token_expiration = Time.now + body['expires_in']
220-
@access_token
221220
}
222221

223222
yield(self) if block_given?

lib/bandwidth-sdk/models/multi_channel_action_calendar_event.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ class MultiChannelActionCalendarEvent < ApiModelBase
2626
# The title of the event.
2727
attr_accessor :title
2828

29-
# The start time of the event.
29+
# The start time of the event. Must be a valid RFC-3339 value, e.g., 2021-03-14T01:59:26Z or 2021-03-13T20:59:26-05:00.
3030
attr_accessor :start_time
3131

32-
# The end time of the event.
32+
# The end time of the event. Must be a valid RFC-3339 value, e.g., 2021-03-14T01:59:26Z or 2021-03-13T20:59:26-05:00.
3333
attr_accessor :end_time
3434

3535
# The description of the event.

0 commit comments

Comments
 (0)