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
@@ -1,4 +1,4 @@
1
- # Bandwidth::MultiChannelChannelListObjectContent
1
+ # Bandwidth::MultiChannelChannelListRBMObjectAllOfContent
2
2
 
3
3
  ## Class instance methods
4
4
 
@@ -11,14 +11,12 @@ Returns the list of classes defined in oneOf.
11
11
  ```ruby
12
12
  require 'bandwidth-sdk'
13
13
 
14
- Bandwidth::MultiChannelChannelListObjectContent.openapi_one_of
14
+ Bandwidth::MultiChannelChannelListRBMObjectAllOfContent.openapi_one_of
15
15
  # =>
16
16
  # [
17
- # :'MmsMessageContent',
18
17
  # :'RbmMessageContentRichCard',
19
18
  # :'RbmMessageContentText',
20
- # :'RbmMessageMedia',
21
- # :'SmsMessageContent'
19
+ # :'RbmMessageMedia'
22
20
  # ]
23
21
  ```
24
22
 
@@ -31,10 +29,10 @@ Find the appropriate object from the `openapi_one_of` list and casts the data in
31
29
  ```ruby
32
30
  require 'bandwidth-sdk'
33
31
 
34
- Bandwidth::MultiChannelChannelListObjectContent.build(data)
35
- # => #<MmsMessageContent:0x00007fdd4aab02a0>
32
+ Bandwidth::MultiChannelChannelListRBMObjectAllOfContent.build(data)
33
+ # => #<RbmMessageContentRichCard:0x00007fdd4aab02a0>
36
34
 
37
- Bandwidth::MultiChannelChannelListObjectContent.build(data_that_doesnt_match)
35
+ Bandwidth::MultiChannelChannelListRBMObjectAllOfContent.build(data_that_doesnt_match)
38
36
  # => nil
39
37
  ```
40
38
 
@@ -46,10 +44,8 @@ Bandwidth::MultiChannelChannelListObjectContent.build(data_that_doesnt_match)
46
44
 
47
45
  #### Return type
48
46
 
49
- - `MmsMessageContent`
50
47
  - `RbmMessageContentRichCard`
51
48
  - `RbmMessageContentText`
52
49
  - `RbmMessageMedia`
53
- - `SmsMessageContent`
54
50
  - `nil` (if no type matches)
55
51
 
@@ -0,0 +1,26 @@
1
+ # Bandwidth::MultiChannelChannelListRBMResponseObject
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
+ | **owner** | **String** | The Bandwidth senderId associated with the message. Identical to &#39;from&#39;. | |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'bandwidth-sdk'
17
+
18
+ instance = Bandwidth::MultiChannelChannelListRBMResponseObject.new(
19
+ from: BandwidthRBM,
20
+ application_id: 93de2206-9669-4e07-948d-329f4b722ee2,
21
+ channel: null,
22
+ content: null,
23
+ owner: null
24
+ )
25
+ ```
26
+
@@ -0,0 +1,24 @@
1
+ # Bandwidth::MultiChannelChannelListRequestObject
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** | [**MmsMessageContent**](MmsMessageContent.md) | | |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'bandwidth-sdk'
16
+
17
+ instance = Bandwidth::MultiChannelChannelListRequestObject.new(
18
+ from: BandwidthRBM,
19
+ application_id: 93de2206-9669-4e07-948d-329f4b722ee2,
20
+ channel: null,
21
+ content: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,26 @@
1
+ # Bandwidth::MultiChannelChannelListResponseObject
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** | [**MmsMessageContent**](MmsMessageContent.md) | | |
11
+ | **owner** | **String** | The Bandwidth senderId associated with the message. Identical to &#39;from&#39;. | |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'bandwidth-sdk'
17
+
18
+ instance = Bandwidth::MultiChannelChannelListResponseObject.new(
19
+ from: BandwidthRBM,
20
+ application_id: 93de2206-9669-4e07-948d-329f4b722ee2,
21
+ channel: null,
22
+ content: null,
23
+ owner: null
24
+ )
25
+ ```
26
+
@@ -0,0 +1,24 @@
1
+ # Bandwidth::MultiChannelChannelListSMSObject
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** | [**SmsMessageContent**](SmsMessageContent.md) | | |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'bandwidth-sdk'
16
+
17
+ instance = Bandwidth::MultiChannelChannelListSMSObject.new(
18
+ from: BandwidthRBM,
19
+ application_id: 93de2206-9669-4e07-948d-329f4b722ee2,
20
+ channel: null,
21
+ content: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,26 @@
1
+ # Bandwidth::MultiChannelChannelListSMSResponseObject
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** | [**SmsMessageContent**](SmsMessageContent.md) | | |
11
+ | **owner** | **String** | The Bandwidth senderId associated with the message. Identical to &#39;from&#39;. | |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'bandwidth-sdk'
17
+
18
+ instance = Bandwidth::MultiChannelChannelListSMSResponseObject.new(
19
+ from: BandwidthRBM,
20
+ application_id: 93de2206-9669-4e07-948d-329f4b722ee2,
21
+ channel: null,
22
+ content: null,
23
+ owner: null
24
+ )
25
+ ```
26
+
@@ -5,7 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **to** | **String** | The phone number the message should be sent to in E164 format. | |
8
- | **channel_list** | [**Array&lt;MultiChannelChannelListObject&gt;**](MultiChannelChannelListObject.md) | A list of message bodies. The messages will be attempted in the order they are listed. Once a message sends successfully, the others will be ignored. | |
8
+ | **channel_list** | [**Array&lt;MultiChannelChannelListRequestObject&gt;**](MultiChannelChannelListRequestObject.md) | A list of message bodies. The messages will be attempted in the order they are listed. Once a message sends successfully, the others will be ignored. | |
9
9
  | **tag** | **String** | A custom string that will be included in callback events of the message. Max 1024 characters. | [optional] |
10
10
  | **priority** | [**PriorityEnum**](PriorityEnum.md) | | [optional] |
11
11
  | **expiration** | **Time** | A string with the date/time value that the message will automatically expire by. This must be a valid RFC-3339 value, e.g., 2021-03-14T01:59:26Z or 2021-03-13T20:59:26-05:00. Must be a date-time in the future. | [optional] |
@@ -8,7 +8,7 @@
8
8
  | **time** | **Time** | The time the message was received by the Bandwidth API. | |
9
9
  | **direction** | [**MessageDirectionEnum**](MessageDirectionEnum.md) | | |
10
10
  | **to** | **Array&lt;String&gt;** | The destination phone number(s) of the message, in E164 format. | |
11
- | **channel_list** | [**Array&lt;MultiChannelMessageResponseDataChannelListInner&gt;**](MultiChannelMessageResponseDataChannelListInner.md) | A list of message bodies. The messages will be attempted in the order they are listed. Once a message sends successfully, the others will be ignored. | |
11
+ | **channel_list** | [**Array&lt;MultiChannelChannelListResponseObject&gt;**](MultiChannelChannelListResponseObject.md) | A list of message bodies. The messages will be attempted in the order they are listed. Once a message sends successfully, the others will be ignored. | |
12
12
  | **tag** | **String** | A custom string that will be included in callback events of the message. Max 1024 characters. | [optional] |
13
13
  | **priority** | [**PriorityEnum**](PriorityEnum.md) | | [optional] |
14
14
  | **expiration** | **Time** | A string with the date/time value that the message will automatically expire by. This must be a valid RFC-3339 value, e.g., 2021-03-14T01:59:26Z or 2021-03-13T20:59:26-05:00. Must be a date-time in the future. | [optional] |
@@ -4,17 +4,18 @@ All URIs are relative to *http://localhost*
4
4
 
5
5
  | Method | HTTP request | Description |
6
6
  | ------ | ------------ | ----------- |
7
- | [**create_lookup**](PhoneNumberLookupApi.md#create_lookup) | **POST** /accounts/{accountId}/tnlookup | Create Lookup |
8
- | [**get_lookup_status**](PhoneNumberLookupApi.md#get_lookup_status) | **GET** /accounts/{accountId}/tnlookup/{requestId} | Get Lookup Request Status |
7
+ | [**create_async_bulk_lookup**](PhoneNumberLookupApi.md#create_async_bulk_lookup) | **POST** /accounts/{accountId}/phoneNumberLookup/bulk | Create Asynchronous Bulk Number Lookup |
8
+ | [**create_sync_lookup**](PhoneNumberLookupApi.md#create_sync_lookup) | **POST** /accounts/{accountId}/phoneNumberLookup | Create Synchronous Number Lookup |
9
+ | [**get_async_bulk_lookup**](PhoneNumberLookupApi.md#get_async_bulk_lookup) | **GET** /accounts/{accountId}/phoneNumberLookup/bulk/{requestId} | Get Asynchronous Bulk Number Lookup |
9
10
 
10
11
 
11
- ## create_lookup
12
+ ## create_async_bulk_lookup
12
13
 
13
- > <CreateLookupResponse> create_lookup(account_id, lookup_request)
14
+ > <CreateAsyncBulkLookupResponse> create_async_bulk_lookup(account_id, async_lookup_request)
14
15
 
15
- Create Lookup
16
+ Create Asynchronous Bulk Number Lookup
16
17
 
17
- Create a Phone Number Lookup Request.
18
+ Creates an asynchronous bulk phone number lookup request. Maximum of 15,000 telephone numbers per request. Use the [Get Asynchronous Bulk Number Lookup](#tag/Phone-Number-Lookup/operation/getAsyncBulkLookup) endpoint to check the status of the request and view the results.
18
19
 
19
20
  ### Examples
20
21
 
@@ -29,33 +30,33 @@ Bandwidth.configure do |config|
29
30
  end
30
31
 
31
32
  api_instance = Bandwidth::PhoneNumberLookupApi.new
32
- account_id = '9900000' # String | Your Bandwidth Account ID.
33
- lookup_request = Bandwidth::LookupRequest.new({tns: ['tns_example']}) # LookupRequest | Phone number lookup request.
33
+ account_id = '9900000' # String |
34
+ async_lookup_request = Bandwidth::AsyncLookupRequest.new({phone_numbers: ['phone_numbers_example']}) # AsyncLookupRequest | Asynchronous bulk phone number lookup request.
34
35
 
35
36
  begin
36
- # Create Lookup
37
- result = api_instance.create_lookup(account_id, lookup_request)
37
+ # Create Asynchronous Bulk Number Lookup
38
+ result = api_instance.create_async_bulk_lookup(account_id, async_lookup_request)
38
39
  p result
39
40
  rescue Bandwidth::ApiError => e
40
- puts "Error when calling PhoneNumberLookupApi->create_lookup: #{e}"
41
+ puts "Error when calling PhoneNumberLookupApi->create_async_bulk_lookup: #{e}"
41
42
  end
42
43
  ```
43
44
 
44
- #### Using the create_lookup_with_http_info variant
45
+ #### Using the create_async_bulk_lookup_with_http_info variant
45
46
 
46
47
  This returns an Array which contains the response data, status code and headers.
47
48
 
48
- > <Array(<CreateLookupResponse>, Integer, Hash)> create_lookup_with_http_info(account_id, lookup_request)
49
+ > <Array(<CreateAsyncBulkLookupResponse>, Integer, Hash)> create_async_bulk_lookup_with_http_info(account_id, async_lookup_request)
49
50
 
50
51
  ```ruby
51
52
  begin
52
- # Create Lookup
53
- data, status_code, headers = api_instance.create_lookup_with_http_info(account_id, lookup_request)
53
+ # Create Asynchronous Bulk Number Lookup
54
+ data, status_code, headers = api_instance.create_async_bulk_lookup_with_http_info(account_id, async_lookup_request)
54
55
  p status_code # => 2xx
55
56
  p headers # => { ... }
56
- p data # => <CreateLookupResponse>
57
+ p data # => <CreateAsyncBulkLookupResponse>
57
58
  rescue Bandwidth::ApiError => e
58
- puts "Error when calling PhoneNumberLookupApi->create_lookup_with_http_info: #{e}"
59
+ puts "Error when calling PhoneNumberLookupApi->create_async_bulk_lookup_with_http_info: #{e}"
59
60
  end
60
61
  ```
61
62
 
@@ -63,12 +64,12 @@ end
63
64
 
64
65
  | Name | Type | Description | Notes |
65
66
  | ---- | ---- | ----------- | ----- |
66
- | **account_id** | **String** | Your Bandwidth Account ID. | |
67
- | **lookup_request** | [**LookupRequest**](LookupRequest.md) | Phone number lookup request. | |
67
+ | **account_id** | **String** | | |
68
+ | **async_lookup_request** | [**AsyncLookupRequest**](AsyncLookupRequest.md) | Asynchronous bulk phone number lookup request. | |
68
69
 
69
70
  ### Return type
70
71
 
71
- [**CreateLookupResponse**](CreateLookupResponse.md)
72
+ [**CreateAsyncBulkLookupResponse**](CreateAsyncBulkLookupResponse.md)
72
73
 
73
74
  ### Authorization
74
75
 
@@ -80,13 +81,13 @@ end
80
81
  - **Accept**: application/json
81
82
 
82
83
 
83
- ## get_lookup_status
84
+ ## create_sync_lookup
84
85
 
85
- > <LookupStatus> get_lookup_status(account_id, request_id)
86
+ > <CreateSyncLookupResponse> create_sync_lookup(account_id, sync_lookup_request)
86
87
 
87
- Get Lookup Request Status
88
+ Create Synchronous Number Lookup
88
89
 
89
- Get an existing Phone Number Lookup Request.
90
+ Creates a synchronous phone number lookup request. Maximum of 100 telephone numbers per request.
90
91
 
91
92
  ### Examples
92
93
 
@@ -101,33 +102,33 @@ Bandwidth.configure do |config|
101
102
  end
102
103
 
103
104
  api_instance = Bandwidth::PhoneNumberLookupApi.new
104
- account_id = '9900000' # String | Your Bandwidth Account ID.
105
- request_id = '004223a0-8b17-41b1-bf81-20732adf5590' # String | The phone number lookup request ID from Bandwidth.
105
+ account_id = '9900000' # String |
106
+ sync_lookup_request = Bandwidth::SyncLookupRequest.new({phone_numbers: ['phone_numbers_example']}) # SyncLookupRequest | Synchronous phone number lookup request.
106
107
 
107
108
  begin
108
- # Get Lookup Request Status
109
- result = api_instance.get_lookup_status(account_id, request_id)
109
+ # Create Synchronous Number Lookup
110
+ result = api_instance.create_sync_lookup(account_id, sync_lookup_request)
110
111
  p result
111
112
  rescue Bandwidth::ApiError => e
112
- puts "Error when calling PhoneNumberLookupApi->get_lookup_status: #{e}"
113
+ puts "Error when calling PhoneNumberLookupApi->create_sync_lookup: #{e}"
113
114
  end
114
115
  ```
115
116
 
116
- #### Using the get_lookup_status_with_http_info variant
117
+ #### Using the create_sync_lookup_with_http_info variant
117
118
 
118
119
  This returns an Array which contains the response data, status code and headers.
119
120
 
120
- > <Array(<LookupStatus>, Integer, Hash)> get_lookup_status_with_http_info(account_id, request_id)
121
+ > <Array(<CreateSyncLookupResponse>, Integer, Hash)> create_sync_lookup_with_http_info(account_id, sync_lookup_request)
121
122
 
122
123
  ```ruby
123
124
  begin
124
- # Get Lookup Request Status
125
- data, status_code, headers = api_instance.get_lookup_status_with_http_info(account_id, request_id)
125
+ # Create Synchronous Number Lookup
126
+ data, status_code, headers = api_instance.create_sync_lookup_with_http_info(account_id, sync_lookup_request)
126
127
  p status_code # => 2xx
127
128
  p headers # => { ... }
128
- p data # => <LookupStatus>
129
+ p data # => <CreateSyncLookupResponse>
129
130
  rescue Bandwidth::ApiError => e
130
- puts "Error when calling PhoneNumberLookupApi->get_lookup_status_with_http_info: #{e}"
131
+ puts "Error when calling PhoneNumberLookupApi->create_sync_lookup_with_http_info: #{e}"
131
132
  end
132
133
  ```
133
134
 
@@ -135,12 +136,84 @@ end
135
136
 
136
137
  | Name | Type | Description | Notes |
137
138
  | ---- | ---- | ----------- | ----- |
138
- | **account_id** | **String** | Your Bandwidth Account ID. | |
139
- | **request_id** | **String** | The phone number lookup request ID from Bandwidth. | |
139
+ | **account_id** | **String** | | |
140
+ | **sync_lookup_request** | [**SyncLookupRequest**](SyncLookupRequest.md) | Synchronous phone number lookup request. | |
140
141
 
141
142
  ### Return type
142
143
 
143
- [**LookupStatus**](LookupStatus.md)
144
+ [**CreateSyncLookupResponse**](CreateSyncLookupResponse.md)
145
+
146
+ ### Authorization
147
+
148
+ [Basic](../README.md#Basic)
149
+
150
+ ### HTTP request headers
151
+
152
+ - **Content-Type**: application/json
153
+ - **Accept**: application/json
154
+
155
+
156
+ ## get_async_bulk_lookup
157
+
158
+ > <GetAsyncBulkLookupResponse> get_async_bulk_lookup(account_id, request_id)
159
+
160
+ Get Asynchronous Bulk Number Lookup
161
+
162
+ Get an existing [Asynchronous Bulk Number Lookup](#tag/Phone-Number-Lookup/operation/createAsyncBulkLookup). Use this endpoint to check the status of the request and view the results.
163
+
164
+ ### Examples
165
+
166
+ ```ruby
167
+ require 'time'
168
+ require 'bandwidth-sdk'
169
+ # setup authorization
170
+ Bandwidth.configure do |config|
171
+ # Configure HTTP basic authorization: Basic
172
+ config.username = 'YOUR USERNAME'
173
+ config.password = 'YOUR PASSWORD'
174
+ end
175
+
176
+ api_instance = Bandwidth::PhoneNumberLookupApi.new
177
+ account_id = '9900000' # String |
178
+ request_id = '004223a0-8b17-41b1-bf81-20732adf5590' # String |
179
+
180
+ begin
181
+ # Get Asynchronous Bulk Number Lookup
182
+ result = api_instance.get_async_bulk_lookup(account_id, request_id)
183
+ p result
184
+ rescue Bandwidth::ApiError => e
185
+ puts "Error when calling PhoneNumberLookupApi->get_async_bulk_lookup: #{e}"
186
+ end
187
+ ```
188
+
189
+ #### Using the get_async_bulk_lookup_with_http_info variant
190
+
191
+ This returns an Array which contains the response data, status code and headers.
192
+
193
+ > <Array(<GetAsyncBulkLookupResponse>, Integer, Hash)> get_async_bulk_lookup_with_http_info(account_id, request_id)
194
+
195
+ ```ruby
196
+ begin
197
+ # Get Asynchronous Bulk Number Lookup
198
+ data, status_code, headers = api_instance.get_async_bulk_lookup_with_http_info(account_id, request_id)
199
+ p status_code # => 2xx
200
+ p headers # => { ... }
201
+ p data # => <GetAsyncBulkLookupResponse>
202
+ rescue Bandwidth::ApiError => e
203
+ puts "Error when calling PhoneNumberLookupApi->get_async_bulk_lookup_with_http_info: #{e}"
204
+ end
205
+ ```
206
+
207
+ ### Parameters
208
+
209
+ | Name | Type | Description | Notes |
210
+ | ---- | ---- | ----------- | ----- |
211
+ | **account_id** | **String** | | |
212
+ | **request_id** | **String** | | |
213
+
214
+ ### Return type
215
+
216
+ [**GetAsyncBulkLookupResponse**](GetAsyncBulkLookupResponse.md)
144
217
 
145
218
  ### Authorization
146
219
 
@@ -16,7 +16,7 @@ require 'bandwidth-sdk'
16
16
  instance = Bandwidth::RbmActionBase.new(
17
17
  type: null,
18
18
  text: Hello world,
19
- postback_data: [B@a93c798
19
+ postback_data: [B@7d5d77a6
20
20
  )
21
21
  ```
22
22
 
@@ -14,7 +14,7 @@ require 'bandwidth-sdk'
14
14
 
15
15
  instance = Bandwidth::RbmSuggestionResponse.new(
16
16
  text: Yes, I would like to proceed,
17
- postback_data: [B@a93c798
17
+ postback_data: [B@7d5d77a6
18
18
  )
19
19
  ```
20
20
 
@@ -0,0 +1,18 @@
1
+ # Bandwidth::SyncLookupRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **phone_numbers** | **Array&lt;String&gt;** | Telephone numbers in E.164 format. | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'bandwidth-sdk'
13
+
14
+ instance = Bandwidth::SyncLookupRequest.new(
15
+ phone_numbers: null
16
+ )
17
+ ```
18
+