bandwidth-sdk 16.2.2 → 17.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +9 -9
  3. data/README.md +31 -10
  4. data/bandwidth.yml +629 -299
  5. data/coverage/.last_run.json +1 -1
  6. data/coverage/.resultset.json +241 -119
  7. data/coverage/index.html +2752 -1364
  8. data/docs/AsyncLookupRequest.md +18 -0
  9. data/docs/{LookupRequest.md → CompletedLookupStatusEnum.md} +2 -5
  10. data/docs/CreateAsyncBulkLookupResponse.md +22 -0
  11. data/docs/{CreateLookupResponse.md → CreateAsyncBulkLookupResponseData.md} +4 -4
  12. data/docs/CreateSyncLookupResponse.md +22 -0
  13. data/docs/CreateSyncLookupResponseData.md +22 -0
  14. data/docs/DeactivationEventEnum.md +15 -0
  15. data/docs/GetAsyncBulkLookupResponse.md +22 -0
  16. data/docs/GetAsyncBulkLookupResponseData.md +22 -0
  17. data/docs/InProgressLookupStatusEnum.md +15 -0
  18. data/docs/LatestMessageDeliveryStatusEnum.md +15 -0
  19. data/docs/{LookupStatusEnum.md → LineTypeEnum.md} +2 -2
  20. data/docs/LinkSchema.md +22 -0
  21. data/docs/LookupErrorResponse.md +22 -0
  22. data/docs/LookupErrorSchema.md +24 -0
  23. data/docs/LookupErrorSchemaMeta.md +22 -0
  24. data/docs/LookupResult.md +22 -18
  25. data/docs/MultiChannelAction.md +32 -81
  26. data/docs/MultiChannelApi.md +1 -1
  27. data/docs/{MultiChannelChannelListObject.md → MultiChannelChannelListMMSObject.md} +3 -3
  28. data/docs/{MultiChannelMessageResponseDataChannelListInner.md → MultiChannelChannelListMMSResponseObject.md} +3 -3
  29. data/docs/MultiChannelChannelListObjectBase.md +22 -0
  30. data/docs/MultiChannelChannelListOwnerObject.md +18 -0
  31. data/docs/MultiChannelChannelListRBMObject.md +24 -0
  32. data/docs/{MultiChannelChannelListObjectContent.md → MultiChannelChannelListRBMObjectAllOfContent.md} +6 -10
  33. data/docs/MultiChannelChannelListRBMResponseObject.md +26 -0
  34. data/docs/MultiChannelChannelListRequestObject.md +24 -0
  35. data/docs/MultiChannelChannelListResponseObject.md +26 -0
  36. data/docs/MultiChannelChannelListSMSObject.md +24 -0
  37. data/docs/MultiChannelChannelListSMSResponseObject.md +26 -0
  38. data/docs/MultiChannelMessageRequest.md +1 -1
  39. data/docs/MultiChannelMessageResponseData.md +1 -1
  40. data/docs/PhoneNumberLookupApi.md +111 -38
  41. data/docs/RbmActionBase.md +1 -1
  42. data/docs/RbmSuggestionResponse.md +1 -1
  43. data/docs/SyncLookupRequest.md +18 -0
  44. data/lib/bandwidth-sdk/api/phone_number_lookup_api.rb +117 -47
  45. data/lib/bandwidth-sdk/configuration.rb +10 -4
  46. data/lib/bandwidth-sdk/models/async_lookup_request.rb +232 -0
  47. data/lib/bandwidth-sdk/models/completed_lookup_status_enum.rb +41 -0
  48. data/lib/bandwidth-sdk/models/create_async_bulk_lookup_response.rb +235 -0
  49. data/lib/bandwidth-sdk/models/{create_lookup_response.rb → create_async_bulk_lookup_response_data.rb} +5 -5
  50. data/lib/bandwidth-sdk/models/create_sync_lookup_response.rb +234 -0
  51. data/lib/bandwidth-sdk/models/{lookup_status.rb → create_sync_lookup_response_data.rb} +15 -27
  52. data/lib/bandwidth-sdk/models/deactivation_event_enum.rb +39 -0
  53. data/lib/bandwidth-sdk/models/get_async_bulk_lookup_response.rb +234 -0
  54. data/lib/bandwidth-sdk/models/get_async_bulk_lookup_response_data.rb +257 -0
  55. data/lib/bandwidth-sdk/models/{lookup_status_enum.rb → in_progress_lookup_status_enum.rb} +3 -3
  56. data/lib/bandwidth-sdk/models/latest_message_delivery_status_enum.rb +41 -0
  57. data/lib/bandwidth-sdk/models/line_type_enum.rb +42 -0
  58. data/lib/bandwidth-sdk/models/{tn_lookup_request_error.rb → link_schema.rb} +31 -11
  59. data/lib/bandwidth-sdk/models/lookup_error_response.rb +235 -0
  60. data/lib/bandwidth-sdk/models/lookup_error_schema.rb +242 -0
  61. data/lib/bandwidth-sdk/models/lookup_error_schema_meta.rb +234 -0
  62. data/lib/bandwidth-sdk/models/lookup_result.rb +102 -63
  63. data/lib/bandwidth-sdk/models/multi_channel_action.rb +71 -26
  64. data/lib/bandwidth-sdk/models/{multi_channel_channel_list_object.rb → multi_channel_channel_list_mms_object.rb} +11 -4
  65. data/lib/bandwidth-sdk/models/{multi_channel_message_response_data_channel_list_inner.rb → multi_channel_channel_list_mms_response_object.rb} +6 -5
  66. data/lib/bandwidth-sdk/models/multi_channel_channel_list_object_base.rb +275 -0
  67. data/lib/bandwidth-sdk/models/{lookup_request.rb → multi_channel_channel_list_owner_object.rb} +15 -17
  68. data/lib/bandwidth-sdk/models/multi_channel_channel_list_rbm_object.rb +298 -0
  69. data/lib/bandwidth-sdk/models/{multi_channel_channel_list_object_content.rb → multi_channel_channel_list_rbm_object_all_of_content.rb} +2 -4
  70. data/lib/bandwidth-sdk/models/multi_channel_channel_list_rbm_response_object.rb +316 -0
  71. data/lib/bandwidth-sdk/models/multi_channel_channel_list_request_object.rb +104 -0
  72. data/lib/bandwidth-sdk/models/multi_channel_channel_list_response_object.rb +104 -0
  73. data/lib/bandwidth-sdk/models/multi_channel_channel_list_sms_object.rb +298 -0
  74. data/lib/bandwidth-sdk/models/multi_channel_channel_list_sms_response_object.rb +316 -0
  75. data/lib/bandwidth-sdk/models/multi_channel_message_request.rb +1 -1
  76. data/lib/bandwidth-sdk/models/multi_channel_message_response_data.rb +1 -1
  77. data/lib/bandwidth-sdk/models/sync_lookup_request.rb +232 -0
  78. data/lib/bandwidth-sdk/version.rb +1 -1
  79. data/lib/bandwidth-sdk.rb +28 -8
  80. data/spec/smoke/multi_channel_api_spec.rb +125 -24
  81. data/spec/smoke/phone_number_lookup_api_spec.rb +65 -70
  82. data/spec/unit/api/multi_channel_api_spec.rb +13 -2
  83. data/spec/unit/api/phone_number_lookup_api_spec.rb +71 -56
  84. metadata +58 -18
  85. data/docs/LookupStatus.md +0 -24
  86. data/docs/TnLookupRequestError.md +0 -18
@@ -0,0 +1,18 @@
1
+ # Bandwidth::AsyncLookupRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **phone_numbers** | **Array<String>** | Telephone numbers in E.164 format. | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'bandwidth-sdk'
13
+
14
+ instance = Bandwidth::AsyncLookupRequest.new(
15
+ phone_numbers: null
16
+ )
17
+ ```
18
+
@@ -1,18 +1,15 @@
1
- # Bandwidth::LookupRequest
1
+ # Bandwidth::CompletedLookupStatusEnum
2
2
 
3
3
  ## Properties
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **tns** | **Array<String>** | | |
8
7
 
9
8
  ## Example
10
9
 
11
10
  ```ruby
12
11
  require 'bandwidth-sdk'
13
12
 
14
- instance = Bandwidth::LookupRequest.new(
15
- tns: null
16
- )
13
+ instance = Bandwidth::CompletedLookupStatusEnum.new()
17
14
  ```
18
15
 
@@ -0,0 +1,22 @@
1
+ # Bandwidth::CreateAsyncBulkLookupResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **links** | [**Array<LinkSchema>**](LinkSchema.md) | Links for pagination (if applicable) | [optional] |
8
+ | **data** | [**CreateAsyncBulkLookupResponseData**](CreateAsyncBulkLookupResponseData.md) | | [optional] |
9
+ | **errors** | [**Array<LookupErrorSchema>**](LookupErrorSchema.md) | | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'bandwidth-sdk'
15
+
16
+ instance = Bandwidth::CreateAsyncBulkLookupResponse.new(
17
+ links: null,
18
+ data: null,
19
+ errors: null
20
+ )
21
+ ```
22
+
@@ -1,19 +1,19 @@
1
- # Bandwidth::CreateLookupResponse
1
+ # Bandwidth::CreateAsyncBulkLookupResponseData
2
2
 
3
3
  ## Properties
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **request_id** | **String** | The phone number lookup request ID from Bandwidth. | [optional] |
8
- | **status** | [**LookupStatusEnum**](LookupStatusEnum.md) | | [optional] |
8
+ | **status** | [**InProgressLookupStatusEnum**](InProgressLookupStatusEnum.md) | | [optional] |
9
9
 
10
10
  ## Example
11
11
 
12
12
  ```ruby
13
13
  require 'bandwidth-sdk'
14
14
 
15
- instance = Bandwidth::CreateLookupResponse.new(
16
- request_id: null,
15
+ instance = Bandwidth::CreateAsyncBulkLookupResponseData.new(
16
+ request_id: 004223a0-8b17-41b1-bf81-20732adf5590,
17
17
  status: null
18
18
  )
19
19
  ```
@@ -0,0 +1,22 @@
1
+ # Bandwidth::CreateSyncLookupResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **links** | [**Array<LinkSchema>**](LinkSchema.md) | | [optional] |
8
+ | **data** | [**CreateSyncLookupResponseData**](CreateSyncLookupResponseData.md) | | [optional] |
9
+ | **errors** | [**Array<LookupErrorSchema>**](LookupErrorSchema.md) | | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'bandwidth-sdk'
15
+
16
+ instance = Bandwidth::CreateSyncLookupResponse.new(
17
+ links: [],
18
+ data: null,
19
+ errors: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,22 @@
1
+ # Bandwidth::CreateSyncLookupResponseData
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **request_id** | **String** | The phone number lookup request ID from Bandwidth. | [optional] |
8
+ | **status** | [**CompletedLookupStatusEnum**](CompletedLookupStatusEnum.md) | | [optional] |
9
+ | **results** | [**Array<LookupResult>**](LookupResult.md) | The carrier information results for the specified telephone numbers. | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'bandwidth-sdk'
15
+
16
+ instance = Bandwidth::CreateSyncLookupResponseData.new(
17
+ request_id: 004223a0-8b17-41b1-bf81-20732adf5590,
18
+ status: null,
19
+ results: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,15 @@
1
+ # Bandwidth::DeactivationEventEnum
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+
8
+ ## Example
9
+
10
+ ```ruby
11
+ require 'bandwidth-sdk'
12
+
13
+ instance = Bandwidth::DeactivationEventEnum.new()
14
+ ```
15
+
@@ -0,0 +1,22 @@
1
+ # Bandwidth::GetAsyncBulkLookupResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **links** | [**Array<LinkSchema>**](LinkSchema.md) | | [optional] |
8
+ | **data** | [**GetAsyncBulkLookupResponseData**](GetAsyncBulkLookupResponseData.md) | | [optional] |
9
+ | **errors** | [**Array<LookupErrorSchema>**](LookupErrorSchema.md) | | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'bandwidth-sdk'
15
+
16
+ instance = Bandwidth::GetAsyncBulkLookupResponse.new(
17
+ links: [],
18
+ data: null,
19
+ errors: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,22 @@
1
+ # Bandwidth::GetAsyncBulkLookupResponseData
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **request_id** | **String** | The phone number lookup request ID from Bandwidth. | [optional] |
8
+ | **status** | [**InProgressLookupStatusEnum**](InProgressLookupStatusEnum.md) | | [optional] |
9
+ | **results** | [**Array<LookupResult>**](LookupResult.md) | The carrier information results for the specified telephone number. | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'bandwidth-sdk'
15
+
16
+ instance = Bandwidth::GetAsyncBulkLookupResponseData.new(
17
+ request_id: 004223a0-8b17-41b1-bf81-20732adf5590,
18
+ status: null,
19
+ results: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,15 @@
1
+ # Bandwidth::InProgressLookupStatusEnum
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+
8
+ ## Example
9
+
10
+ ```ruby
11
+ require 'bandwidth-sdk'
12
+
13
+ instance = Bandwidth::InProgressLookupStatusEnum.new()
14
+ ```
15
+
@@ -0,0 +1,15 @@
1
+ # Bandwidth::LatestMessageDeliveryStatusEnum
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+
8
+ ## Example
9
+
10
+ ```ruby
11
+ require 'bandwidth-sdk'
12
+
13
+ instance = Bandwidth::LatestMessageDeliveryStatusEnum.new()
14
+ ```
15
+
@@ -1,4 +1,4 @@
1
- # Bandwidth::LookupStatusEnum
1
+ # Bandwidth::LineTypeEnum
2
2
 
3
3
  ## Properties
4
4
 
@@ -10,6 +10,6 @@
10
10
  ```ruby
11
11
  require 'bandwidth-sdk'
12
12
 
13
- instance = Bandwidth::LookupStatusEnum.new()
13
+ instance = Bandwidth::LineTypeEnum.new()
14
14
  ```
15
15
 
@@ -0,0 +1,22 @@
1
+ # Bandwidth::LinkSchema
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **href** | **String** | URI of the link. | [optional] |
8
+ | **rel** | **String** | Specifies the relationship between this link and the resource. | [optional] |
9
+ | **method** | **String** | HTTP method to be used. | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'bandwidth-sdk'
15
+
16
+ instance = Bandwidth::LinkSchema.new(
17
+ href: /relative/uri,
18
+ rel: aRelatedResource,
19
+ method: GET
20
+ )
21
+ ```
22
+
@@ -0,0 +1,22 @@
1
+ # Bandwidth::LookupErrorResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **links** | [**Array<LinkSchema>**](LinkSchema.md) | | [optional] |
8
+ | **data** | **Object** | The phone number lookup response data | [optional] |
9
+ | **errors** | [**Array<LookupErrorSchema>**](LookupErrorSchema.md) | | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'bandwidth-sdk'
15
+
16
+ instance = Bandwidth::LookupErrorResponse.new(
17
+ links: [],
18
+ data: null,
19
+ errors: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,24 @@
1
+ # Bandwidth::LookupErrorSchema
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **code** | **String** | Validation error code | [optional] |
8
+ | **description** | **String** | Description of validation error | [optional] |
9
+ | **type** | **String** | Type of validation error | [optional] |
10
+ | **meta** | [**LookupErrorSchemaMeta**](LookupErrorSchemaMeta.md) | | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'bandwidth-sdk'
16
+
17
+ instance = Bandwidth::LookupErrorSchema.new(
18
+ code: NO-MATCH,
19
+ description: Example error description,
20
+ type: NumberInventory,
21
+ meta: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,22 @@
1
+ # Bandwidth::LookupErrorSchemaMeta
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **phone_numbers** | **Array<String>** | | [optional] |
8
+ | **message** | **String** | Message describing the error | [optional] |
9
+ | **code** | **Integer** | Error code associated with the message | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'bandwidth-sdk'
15
+
16
+ instance = Bandwidth::LookupErrorSchemaMeta.new(
17
+ phone_numbers: ["+13992077164","+19196104424"],
18
+ message: Invalid TNs,
19
+ code: 1001
20
+ )
21
+ ```
22
+
data/docs/LookupResult.md CHANGED
@@ -4,15 +4,17 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **response_code** | **Integer** | Our vendor's response code. | [optional] |
8
- | **message** | **String** | Message associated with the response code. | [optional] |
9
- | **e_164_format** | **String** | The telephone number in E.164 format. | [optional] |
10
- | **formatted** | **String** | The formatted version of the telephone number. | [optional] |
11
- | **country** | **String** | The country of the telephone number. | [optional] |
12
- | **line_type** | **String** | The line type of the telephone number. | [optional] |
13
- | **line_provider** | **String** | The messaging service provider of the telephone number. | [optional] |
14
- | **mobile_country_code** | **String** | The first half of the Home Network Identity (HNI). | [optional] |
15
- | **mobile_network_code** | **String** | The second half of the HNI. | [optional] |
7
+ | **phone_number** | **String** | The telephone number in E.164 format. | [optional] |
8
+ | **line_type** | [**LineTypeEnum**](LineTypeEnum.md) | | [optional] |
9
+ | **messaging_provider** | **String** | The messaging service provider of the telephone number. | [optional] |
10
+ | **voice_provider** | **String** | The voice service provider of the telephone number. | [optional] |
11
+ | **country_code_a3** | **String** | The country code of the telephone number in ISO 3166-1 alpha-3 format. | [optional] |
12
+ | **deactivation_reporter** | **String** | [DNI-Only](#section/DNI-Only). The carrier that reported a deactivation event for this phone number. | [optional] |
13
+ | **deactivation_date** | **String** | [DNI-Only](#section/DNI-Only). The datetime the carrier reported a deactivation event. | [optional] |
14
+ | **deactivation_event** | [**DeactivationEventEnum**](DeactivationEventEnum.md) | | [optional] |
15
+ | **latest_message_delivery_status** | [**LatestMessageDeliveryStatusEnum**](LatestMessageDeliveryStatusEnum.md) | | [optional] |
16
+ | **initial_message_delivery_status_date** | **Date** | [DNI-Only](#section/DNI-Only). The date the phone number entered the status described in `latestMessageDeliveryStatus`. Think of this as the \"start time\" for that status. Value resets every time the `latestMessageDeliveryStatus` changes. | [optional] |
17
+ | **latest_message_delivery_status_date** | **Date** | [DNI-Only](#section/DNI-Only). The date bandwidth last received delivery status information for this phone number. Use this field to understand how up-to-date the `latestMessageDeliveryStatus` is. Value resets every time the `latestMessageDeliveryStatus` changes. | [optional] |
16
18
 
17
19
  ## Example
18
20
 
@@ -20,15 +22,17 @@
20
22
  require 'bandwidth-sdk'
21
23
 
22
24
  instance = Bandwidth::LookupResult.new(
23
- response_code: 0,
24
- message: NOERROR,
25
- e_164_format: +19195551234,
26
- formatted: (919) 555-1234,
27
- country: US,
28
- line_type: Mobile,
29
- line_provider: Verizon Wireless,
30
- mobile_country_code: 310,
31
- mobile_network_code: 010
25
+ phone_number: +10072904498,
26
+ line_type: null,
27
+ messaging_provider: Verizon Wireless,
28
+ voice_provider: Verizon Wireless,
29
+ country_code_a3: USA,
30
+ deactivation_reporter: null,
31
+ deactivation_date: 2025-06-20 18:35,
32
+ deactivation_event: null,
33
+ latest_message_delivery_status: null,
34
+ initial_message_delivery_status_date: Thu Jun 19 20:00:00 EDT 2025,
35
+ latest_message_delivery_status_date: Fri Jun 20 20:00:00 EDT 2025
32
36
  )
33
37
  ```
34
38
 
@@ -1,89 +1,40 @@
1
1
  # Bandwidth::MultiChannelAction
2
2
 
3
- ## Class instance methods
4
-
5
- ### `openapi_one_of`
6
-
7
- Returns the list of classes defined in oneOf.
8
-
9
- #### Example
10
-
11
- ```ruby
12
- require 'bandwidth-sdk'
13
-
14
- Bandwidth::MultiChannelAction.openapi_one_of
15
- # =>
16
- # [
17
- # :'MultiChannelActionCalendarEvent',
18
- # :'RbmActionBase',
19
- # :'RbmActionDial',
20
- # :'RbmActionOpenUrl',
21
- # :'RbmActionViewLocation'
22
- # ]
23
- ```
24
-
25
- ### `openapi_discriminator_name`
26
-
27
- Returns the discriminator's property name.
28
-
29
- #### Example
30
-
31
- ```ruby
32
- require 'bandwidth-sdk'
33
-
34
- Bandwidth::MultiChannelAction.openapi_discriminator_name
35
- # => :'type'
36
- ```
37
-
38
- ### `openapi_discriminator_name`
39
-
40
- Returns the discriminator's mapping.
41
-
42
- #### Example
43
-
44
- ```ruby
45
- require 'bandwidth-sdk'
46
-
47
- Bandwidth::MultiChannelAction.openapi_discriminator_mapping
48
- # =>
49
- # {
50
- # :'CREATE_CALENDAR_EVENT' => :'MultiChannelActionCalendarEvent',
51
- # :'DIAL_PHONE' => :'RbmActionDial',
52
- # :'OPEN_URL' => :'RbmActionOpenUrl',
53
- # :'REPLY' => :'RbmActionBase',
54
- # :'REQUEST_LOCATION' => :'RbmActionBase',
55
- # :'SHOW_LOCATION' => :'RbmActionViewLocation'
56
- # }
57
- ```
58
-
59
- ### build
60
-
61
- Find the appropriate object from the `openapi_one_of` list and casts the data into it.
62
-
63
- #### Example
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **type** | [**RbmActionTypeEnum**](RbmActionTypeEnum.md) | | |
8
+ | **text** | **String** | Displayed text for user to click | |
9
+ | **postback_data** | **String** | Base64 payload the customer receives when the reply is clicked. | |
10
+ | **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. | |
13
+ | **label** | **String** | The label of the location. | [optional] |
14
+ | **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. | |
17
+ | **description** | **String** | The description of the event. | [optional] |
18
+ | **url** | **String** | The URL to open in browser. | |
19
+
20
+ ## Example
64
21
 
65
22
  ```ruby
66
23
  require 'bandwidth-sdk'
67
24
 
68
- Bandwidth::MultiChannelAction.build(data)
69
- # => #<MultiChannelActionCalendarEvent:0x00007fdd4aab02a0>
70
-
71
- Bandwidth::MultiChannelAction.build(data_that_doesnt_match)
72
- # => nil
25
+ instance = Bandwidth::MultiChannelAction.new(
26
+ type: null,
27
+ text: Hello world,
28
+ postback_data: U0dWc2JHOGdkMjl5YkdRPQ&#x3D;&#x3D;,
29
+ phone_number: +15552223333,
30
+ latitude: 37.7749,
31
+ longitude: -122.4194,
32
+ label: San Francisco,
33
+ title: Meeting with John,
34
+ start_time: 2022-09-14T18:20:16Z,
35
+ end_time: 2022-09-14T18:20:16Z,
36
+ description: Discuss the new project,
37
+ url: https://dev.bandwidth.com
38
+ )
73
39
  ```
74
40
 
75
- #### Parameters
76
-
77
- | Name | Type | Description |
78
- | ---- | ---- | ----------- |
79
- | **data** | **Mixed** | data to be matched against the list of oneOf items |
80
-
81
- #### Return type
82
-
83
- - `MultiChannelActionCalendarEvent`
84
- - `RbmActionBase`
85
- - `RbmActionDial`
86
- - `RbmActionOpenUrl`
87
- - `RbmActionViewLocation`
88
- - `nil` (if no type matches)
89
-
@@ -29,7 +29,7 @@ end
29
29
 
30
30
  api_instance = Bandwidth::MultiChannelApi.new
31
31
  account_id = '9900000' # String | Your Bandwidth Account ID.
32
- multi_channel_message_request = Bandwidth::MultiChannelMessageRequest.new({to: '+15552223333', channel_list: [Bandwidth::MultiChannelChannelListObject.new({from: 'BandwidthRBM', application_id: '93de2206-9669-4e07-948d-329f4b722ee2', channel: Bandwidth::MultiChannelMessageChannelEnum::RBM, content: Bandwidth::MmsMessageContent.new})]}) # MultiChannelMessageRequest |
32
+ multi_channel_message_request = Bandwidth::MultiChannelMessageRequest.new({to: '+15552223333', channel_list: [Bandwidth::MultiChannelChannelListRequestObject.new({from: 'BandwidthRBM', application_id: '93de2206-9669-4e07-948d-329f4b722ee2', channel: Bandwidth::MultiChannelMessageChannelEnum::RBM, content: Bandwidth::MmsMessageContent.new})]}) # MultiChannelMessageRequest |
33
33
 
34
34
  begin
35
35
  # Create Multi-Channel Message
@@ -1,4 +1,4 @@
1
- # Bandwidth::MultiChannelChannelListObject
1
+ # Bandwidth::MultiChannelChannelListMMSObject
2
2
 
3
3
  ## Properties
4
4
 
@@ -7,14 +7,14 @@
7
7
  | **from** | **String** | The sender ID of the message. This could be an alphanumeric sender ID. | |
8
8
  | **application_id** | **String** | The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard. | |
9
9
  | **channel** | [**MultiChannelMessageChannelEnum**](MultiChannelMessageChannelEnum.md) | | |
10
- | **content** | [**MultiChannelChannelListObjectContent**](MultiChannelChannelListObjectContent.md) | | |
10
+ | **content** | [**MmsMessageContent**](MmsMessageContent.md) | | |
11
11
 
12
12
  ## Example
13
13
 
14
14
  ```ruby
15
15
  require 'bandwidth-sdk'
16
16
 
17
- instance = Bandwidth::MultiChannelChannelListObject.new(
17
+ instance = Bandwidth::MultiChannelChannelListMMSObject.new(
18
18
  from: BandwidthRBM,
19
19
  application_id: 93de2206-9669-4e07-948d-329f4b722ee2,
20
20
  channel: null,
@@ -1,4 +1,4 @@
1
- # Bandwidth::MultiChannelMessageResponseDataChannelListInner
1
+ # Bandwidth::MultiChannelChannelListMMSResponseObject
2
2
 
3
3
  ## Properties
4
4
 
@@ -7,7 +7,7 @@
7
7
  | **from** | **String** | The sender ID of the message. This could be an alphanumeric sender ID. | |
8
8
  | **application_id** | **String** | The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard. | |
9
9
  | **channel** | [**MultiChannelMessageChannelEnum**](MultiChannelMessageChannelEnum.md) | | |
10
- | **content** | [**MultiChannelChannelListObjectContent**](MultiChannelChannelListObjectContent.md) | | |
10
+ | **content** | [**MmsMessageContent**](MmsMessageContent.md) | | |
11
11
  | **owner** | **String** | The Bandwidth senderId associated with the message. Identical to &#39;from&#39;. | |
12
12
 
13
13
  ## Example
@@ -15,7 +15,7 @@
15
15
  ```ruby
16
16
  require 'bandwidth-sdk'
17
17
 
18
- instance = Bandwidth::MultiChannelMessageResponseDataChannelListInner.new(
18
+ instance = Bandwidth::MultiChannelChannelListMMSResponseObject.new(
19
19
  from: BandwidthRBM,
20
20
  application_id: 93de2206-9669-4e07-948d-329f4b722ee2,
21
21
  channel: null,
@@ -0,0 +1,22 @@
1
+ # Bandwidth::MultiChannelChannelListObjectBase
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **from** | **String** | The sender ID of the message. This could be an alphanumeric sender ID. | |
8
+ | **application_id** | **String** | The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard. | |
9
+ | **channel** | [**MultiChannelMessageChannelEnum**](MultiChannelMessageChannelEnum.md) | | |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'bandwidth-sdk'
15
+
16
+ instance = Bandwidth::MultiChannelChannelListObjectBase.new(
17
+ from: BandwidthRBM,
18
+ application_id: 93de2206-9669-4e07-948d-329f4b722ee2,
19
+ channel: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,18 @@
1
+ # Bandwidth::MultiChannelChannelListOwnerObject
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **owner** | **String** | The Bandwidth senderId associated with the message. Identical to &#39;from&#39;. | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'bandwidth-sdk'
13
+
14
+ instance = Bandwidth::MultiChannelChannelListOwnerObject.new(
15
+ owner: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,24 @@
1
+ # Bandwidth::MultiChannelChannelListRBMObject
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **from** | **String** | The sender ID of the message. This could be an alphanumeric sender ID. | |
8
+ | **application_id** | **String** | The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard. | |
9
+ | **channel** | [**MultiChannelMessageChannelEnum**](MultiChannelMessageChannelEnum.md) | | |
10
+ | **content** | [**MultiChannelChannelListRBMObjectAllOfContent**](MultiChannelChannelListRBMObjectAllOfContent.md) | | |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'bandwidth-sdk'
16
+
17
+ instance = Bandwidth::MultiChannelChannelListRBMObject.new(
18
+ from: BandwidthRBM,
19
+ application_id: 93de2206-9669-4e07-948d-329f4b722ee2,
20
+ channel: null,
21
+ content: null
22
+ )
23
+ ```
24
+