Skip to content

Commit 3703b95

Browse files
authored
SWI-4010 Update SDK Based on Recent Spec Changes (#118)
* Generate SDK with OpenAPI Generator Version 7.0.0 * Clean SDK using Rubocop
1 parent 23f60eb commit 3703b95

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

bandwidth.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1547,8 +1547,14 @@ components:
15471547
from:
15481548
type: string
15491549
description: >-
1550-
One of your telephone numbers the message should come from in E164
1551-
format.
1550+
Either an alphanumeric sender ID or the sender's Bandwidth phone
1551+
number in E.164 format, which must be hosted within Bandwidth and
1552+
linked to the account that is generating the message.
1553+
1554+
Alphanumeric Sender IDs can contain up to 11 characters, upper-case
1555+
letters A-Z, lower-case letters a-z, numbers 0-9, space, hyphen -,
1556+
plus +, underscore _ and ampersand &. Alphanumeric Sender IDs must
1557+
contain at least one letter.
15521558
example: '+15551113333'
15531559
text:
15541560
type: string

docs/MessageRequest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
| ---- | ---- | ----------- | ----- |
77
| **application_id** | **String** | The ID of the Application your from number is associated with in the Bandwidth Phone Number Dashboard. | |
88
| **to** | **Array<String>** | The phone number(s) the message should be sent to in E164 format. | |
9-
| **from** | **String** | One of your telephone numbers the message should come from in E164 format. | |
9+
| **from** | **String** | Either an alphanumeric sender ID or the sender's Bandwidth phone number in E.164 format, which must be hosted within Bandwidth and linked to the account that is generating the message. Alphanumeric Sender IDs can contain up to 11 characters, upper-case letters A-Z, lower-case letters a-z, numbers 0-9, space, hyphen -, plus +, underscore _ and ampersand &. Alphanumeric Sender IDs must contain at least one letter. | |
1010
| **text** | **String** | The contents of the text message. Must be 2048 characters or less. | [optional] |
1111
| **media** | **Array<String>** | A list of URLs to include as media attachments as part of the message. Each URL can be at most 4096 characters. | [optional] |
1212
| **tag** | **String** | A custom string that will be included in callback events of the message. Max 1024 characters. | [optional] |

lib/bandwidth-sdk/models/message_request.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class MessageRequest
2121
# The phone number(s) the message should be sent to in E164 format.
2222
attr_accessor :to
2323

24-
# One of your telephone numbers the message should come from in E164 format.
24+
# Either an alphanumeric sender ID or the sender's Bandwidth phone number in E.164 format, which must be hosted within Bandwidth and linked to the account that is generating the message. Alphanumeric Sender IDs can contain up to 11 characters, upper-case letters A-Z, lower-case letters a-z, numbers 0-9, space, hyphen -, plus +, underscore _ and ampersand &. Alphanumeric Sender IDs must contain at least one letter.
2525
attr_accessor :from
2626

2727
# The contents of the text message. Must be 2048 characters or less.

0 commit comments

Comments
 (0)