bandwidth-sdk 17.3.2 → 18.0.0
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +4 -4
- data/README.md +0 -1
- data/bandwidth.yml +35 -41
- data/coverage/.last_run.json +1 -1
- data/coverage/.resultset.json +4 -5
- data/coverage/index.html +259 -271
- data/docs/MediaApi.md +1 -1
- data/docs/MmsMessageContentFile.md +1 -1
- data/docs/RbmActionBase.md +1 -1
- data/docs/RbmSuggestionResponse.md +1 -1
- data/docs/TfvSubmissionInfo.md +3 -3
- data/docs/VerificationRequest.md +3 -3
- data/docs/VerificationUpdateRequest.md +3 -3
- data/lib/bandwidth-sdk/api/media_api.rb +2 -2
- data/lib/bandwidth-sdk/models/mms_message_content_file.rb +1 -1
- data/lib/bandwidth-sdk/models/tfv_submission_info.rb +4 -2
- data/lib/bandwidth-sdk/models/verification_request.rb +4 -2
- data/lib/bandwidth-sdk/models/verification_update_request.rb +4 -2
- data/lib/bandwidth-sdk/version.rb +1 -1
- data/lib/bandwidth-sdk.rb +0 -1
- data/spec/smoke/phone_number_lookup_api_spec.rb +1 -9
- data/spec/unit/api/toll_free_verification_api_spec.rb +1 -1
- metadata +2 -4
- data/docs/BusinessRegistrationIssuingCountryEnum.md +0 -15
- data/lib/bandwidth-sdk/models/business_registration_issuing_country_enum.rb +0 -55
data/docs/MediaApi.md
CHANGED
|
@@ -242,7 +242,7 @@ end
|
|
|
242
242
|
|
|
243
243
|
Upload Media
|
|
244
244
|
|
|
245
|
-
Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found [
|
|
245
|
+
Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported).
|
|
246
246
|
|
|
247
247
|
### Examples
|
|
248
248
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **file_url** | **String** | The URL of a media attachment. For MMS, the API limits file size to 3.5MB. Specific carriers and channels may have a smaller limit that could cause a large file to fail, see [
|
|
7
|
+
| **file_url** | **String** | The URL of a media attachment. For MMS, the API limits file size to 3.5MB. Specific carriers and channels may have a smaller limit that could cause a large file to fail, see more at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823216-what-are-the-mms-file-size-limits) for more details. | |
|
|
8
8
|
|
|
9
9
|
## Example
|
|
10
10
|
|
data/docs/RbmActionBase.md
CHANGED
data/docs/TfvSubmissionInfo.md
CHANGED
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
| **privacy_policy_url** | **String** | The Toll-Free Verification request privacy policy URL. | [optional] |
|
|
17
17
|
| **terms_and_conditions_url** | **String** | The Toll-Free Verification request terms and conditions policy URL. | [optional] |
|
|
18
18
|
| **business_dba** | **String** | The company 'Doing Business As'. | [optional] |
|
|
19
|
-
| **business_registration_number** | **String** | Government-issued business identifying number. **Note
|
|
19
|
+
| **business_registration_number** | **String** | Government-issued business identifying number. **Note: As of October 19th, 2026 this field will be required when `businessEntityType` is _not_ `SOLE_PROPRIETOR`. If this field is provided, `businessRegistrationType` and `businessRegistrationIssuingCountry` are also required.** | [optional] |
|
|
20
20
|
| **business_registration_type** | [**BusinessRegistrationTypeEnum**](BusinessRegistrationTypeEnum.md) | | [optional] |
|
|
21
|
-
| **business_registration_issuing_country** |
|
|
21
|
+
| **business_registration_issuing_country** | **String** | The country issuing the business registration in ISO-3166-1 alpha-3 format. Alpha-2 format is accepted by the API, but alpha-3 is highly encouraged. **Note: As of October 19th, 2026 this field will be required when `businessRegistrationNumber` is provided.** | Registration Type | Supported Countries | |----------------------|------------------------------------| | EIN | USA | | CBN | CAN | | NEQ | CAN | | PROVINCIAL_NUMBER | CAN | | CRN | GBR, HKG | | VAT | GBR, IRL, BRA, NLD | | ACN | AUS | | ABN | AUS | | BRN | HKG | | SIREN | FRA | | SIRET | FRA | | NZBN | NZL | | UST_IDNR | DEU | | CIF | ESP | | NIF | ESP | | CNPJ | BRA | | UID | CHE | | OTHER | Must Provide Country Code | | [optional] |
|
|
22
22
|
| **business_entity_type** | [**BusinessEntityTypeEnum**](BusinessEntityTypeEnum.md) | | [optional] |
|
|
23
23
|
|
|
24
24
|
## Example
|
|
@@ -41,7 +41,7 @@ instance = Bandwidth::TfvSubmissionInfo.new(
|
|
|
41
41
|
business_dba: Another Company Name Inc.,
|
|
42
42
|
business_registration_number: 12-3456789,
|
|
43
43
|
business_registration_type: null,
|
|
44
|
-
business_registration_issuing_country:
|
|
44
|
+
business_registration_issuing_country: USA,
|
|
45
45
|
business_entity_type: null
|
|
46
46
|
)
|
|
47
47
|
```
|
data/docs/VerificationRequest.md
CHANGED
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
| **privacy_policy_url** | **String** | The Toll-Free Verification request privacy policy URL. | [optional] |
|
|
18
18
|
| **terms_and_conditions_url** | **String** | The Toll-Free Verification request terms and conditions policy URL. | [optional] |
|
|
19
19
|
| **business_dba** | **String** | The company 'Doing Business As'. | [optional] |
|
|
20
|
-
| **business_registration_number** | **String** | Government-issued business identifying number. **Note
|
|
20
|
+
| **business_registration_number** | **String** | Government-issued business identifying number. **Note: As of October 19th, 2026 this field will be required when `businessEntityType` is _not_ `SOLE_PROPRIETOR`. If this field is provided, `businessRegistrationType` and `businessRegistrationIssuingCountry` are also required.** | [optional] |
|
|
21
21
|
| **business_registration_type** | [**BusinessRegistrationTypeEnum**](BusinessRegistrationTypeEnum.md) | | [optional] |
|
|
22
|
-
| **business_registration_issuing_country** |
|
|
22
|
+
| **business_registration_issuing_country** | **String** | The country issuing the business registration in ISO-3166-1 alpha-3 format. Alpha-2 format is accepted by the API, but alpha-3 is highly encouraged. **Note: As of October 19th, 2026 this field will be required when `businessRegistrationNumber` is provided.** | Registration Type | Supported Countries | |----------------------|------------------------------------| | EIN | USA | | CBN | CAN | | NEQ | CAN | | PROVINCIAL_NUMBER | CAN | | CRN | GBR, HKG | | VAT | GBR, IRL, BRA, NLD | | ACN | AUS | | ABN | AUS | | BRN | HKG | | SIREN | FRA | | SIRET | FRA | | NZBN | NZL | | UST_IDNR | DEU | | CIF | ESP | | NIF | ESP | | CNPJ | BRA | | UID | CHE | | OTHER | Must Provide Country Code | | [optional] |
|
|
23
23
|
| **business_entity_type** | [**BusinessEntityTypeEnum**](BusinessEntityTypeEnum.md) | | |
|
|
24
24
|
| **help_message_response** | **String** | A message that gets sent to users requesting help. | [optional] |
|
|
25
25
|
| **age_gated_content** | **Boolean** | Indicates whether the content is age-gated. | [optional] |
|
|
@@ -46,7 +46,7 @@ instance = Bandwidth::VerificationRequest.new(
|
|
|
46
46
|
business_dba: Another Company Name Inc.,
|
|
47
47
|
business_registration_number: 12-3456789,
|
|
48
48
|
business_registration_type: null,
|
|
49
|
-
business_registration_issuing_country:
|
|
49
|
+
business_registration_issuing_country: USA,
|
|
50
50
|
business_entity_type: null,
|
|
51
51
|
help_message_response: Please contact support for assistance.,
|
|
52
52
|
age_gated_content: false,
|
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
| **privacy_policy_url** | **String** | The Toll-Free Verification request privacy policy URL. | [optional] |
|
|
17
17
|
| **terms_and_conditions_url** | **String** | The Toll-Free Verification request terms and conditions policy URL. | [optional] |
|
|
18
18
|
| **business_dba** | **String** | The company 'Doing Business As'. | [optional] |
|
|
19
|
-
| **business_registration_number** | **String** | Government-issued business identifying number. **Note
|
|
19
|
+
| **business_registration_number** | **String** | Government-issued business identifying number. **Note: As of October 19th, 2026 this field will be required when `businessEntityType` is _not_ `SOLE_PROPRIETOR`. If this field is provided, `businessRegistrationType` and `businessRegistrationIssuingCountry` are also required.** | [optional] |
|
|
20
20
|
| **business_registration_type** | [**BusinessRegistrationTypeEnum**](BusinessRegistrationTypeEnum.md) | | [optional] |
|
|
21
21
|
| **business_entity_type** | [**BusinessEntityTypeEnum**](BusinessEntityTypeEnum.md) | | [optional] |
|
|
22
|
-
| **business_registration_issuing_country** |
|
|
22
|
+
| **business_registration_issuing_country** | **String** | The country issuing the business registration in ISO-3166-1 alpha-3 format. Alpha-2 format is accepted by the API, but alpha-3 is highly encouraged. **Note: As of October 19th, 2026 this field will be required when `businessRegistrationNumber` is provided.** | Registration Type | Supported Countries | |----------------------|------------------------------------| | EIN | USA | | CBN | CAN | | NEQ | CAN | | PROVINCIAL_NUMBER | CAN | | CRN | GBR, HKG | | VAT | GBR, IRL, BRA, NLD | | ACN | AUS | | ABN | AUS | | BRN | HKG | | SIREN | FRA | | SIRET | FRA | | NZBN | NZL | | UST_IDNR | DEU | | CIF | ESP | | NIF | ESP | | CNPJ | BRA | | UID | CHE | | OTHER | Must Provide Country Code | | [optional] |
|
|
23
23
|
| **help_message_response** | **String** | A message that gets sent to users requesting help. | [optional] |
|
|
24
24
|
| **age_gated_content** | **Boolean** | Indicates whether the content is age-gated. | [optional] |
|
|
25
25
|
| **cv_token** | **String** | The token provided by Campaign Verify to validate your political use case. Only required for 527 political organizations. If you are not a 527 political organization, this field should be omitted. Supplying an empty string will likely result in rejection. | [optional] |
|
|
@@ -45,7 +45,7 @@ instance = Bandwidth::VerificationUpdateRequest.new(
|
|
|
45
45
|
business_registration_number: 12-3456789,
|
|
46
46
|
business_registration_type: null,
|
|
47
47
|
business_entity_type: null,
|
|
48
|
-
business_registration_issuing_country:
|
|
48
|
+
business_registration_issuing_country: USA,
|
|
49
49
|
help_message_response: Please contact support for assistance.,
|
|
50
50
|
age_gated_content: false,
|
|
51
51
|
cv_token: cv.user123|sess456|mno|tfree|read_write|X7yZ9aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVw
|
|
@@ -224,7 +224,7 @@ module Bandwidth
|
|
|
224
224
|
end
|
|
225
225
|
|
|
226
226
|
# Upload Media
|
|
227
|
-
# Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found [
|
|
227
|
+
# Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported).
|
|
228
228
|
# @param account_id [String] Your Bandwidth Account ID.
|
|
229
229
|
# @param media_id [String] Media ID to retrieve.
|
|
230
230
|
# @param body [File]
|
|
@@ -238,7 +238,7 @@ module Bandwidth
|
|
|
238
238
|
end
|
|
239
239
|
|
|
240
240
|
# Upload Media
|
|
241
|
-
# Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found [
|
|
241
|
+
# Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported).
|
|
242
242
|
# @param account_id [String] Your Bandwidth Account ID.
|
|
243
243
|
# @param media_id [String] Media ID to retrieve.
|
|
244
244
|
# @param body [File]
|
|
@@ -15,7 +15,7 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module Bandwidth
|
|
17
17
|
class MmsMessageContentFile < ApiModelBase
|
|
18
|
-
# The URL of a media attachment. For MMS, the API limits file size to 3.5MB. Specific carriers and channels may have a smaller limit that could cause a large file to fail, see [
|
|
18
|
+
# The URL of a media attachment. For MMS, the API limits file size to 3.5MB. Specific carriers and channels may have a smaller limit that could cause a large file to fail, see more at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823216-what-are-the-mms-file-size-limits) for more details.
|
|
19
19
|
attr_accessor :file_url
|
|
20
20
|
|
|
21
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -48,11 +48,12 @@ module Bandwidth
|
|
|
48
48
|
# The company 'Doing Business As'.
|
|
49
49
|
attr_accessor :business_dba
|
|
50
50
|
|
|
51
|
-
# Government-issued business identifying number. **Note
|
|
51
|
+
# Government-issued business identifying number. **Note: As of October 19th, 2026 this field will be required when `businessEntityType` is _not_ `SOLE_PROPRIETOR`. If this field is provided, `businessRegistrationType` and `businessRegistrationIssuingCountry` are also required.**
|
|
52
52
|
attr_accessor :business_registration_number
|
|
53
53
|
|
|
54
54
|
attr_accessor :business_registration_type
|
|
55
55
|
|
|
56
|
+
# The country issuing the business registration in ISO-3166-1 alpha-3 format. Alpha-2 format is accepted by the API, but alpha-3 is highly encouraged. **Note: As of October 19th, 2026 this field will be required when `businessRegistrationNumber` is provided.** | Registration Type | Supported Countries | |----------------------|------------------------------------| | EIN | USA | | CBN | CAN | | NEQ | CAN | | PROVINCIAL_NUMBER | CAN | | CRN | GBR, HKG | | VAT | GBR, IRL, BRA, NLD | | ACN | AUS | | ABN | AUS | | BRN | HKG | | SIREN | FRA | | SIRET | FRA | | NZBN | NZL | | UST_IDNR | DEU | | CIF | ESP | | NIF | ESP | | CNPJ | BRA | | UID | CHE | | OTHER | Must Provide Country Code |
|
|
56
57
|
attr_accessor :business_registration_issuing_country
|
|
57
58
|
|
|
58
59
|
attr_accessor :business_entity_type
|
|
@@ -128,7 +129,7 @@ module Bandwidth
|
|
|
128
129
|
:'business_dba' => :'String',
|
|
129
130
|
:'business_registration_number' => :'String',
|
|
130
131
|
:'business_registration_type' => :'BusinessRegistrationTypeEnum',
|
|
131
|
-
:'business_registration_issuing_country' => :'
|
|
132
|
+
:'business_registration_issuing_country' => :'String',
|
|
132
133
|
:'business_entity_type' => :'BusinessEntityTypeEnum'
|
|
133
134
|
}
|
|
134
135
|
end
|
|
@@ -140,6 +141,7 @@ module Bandwidth
|
|
|
140
141
|
:'isv_reseller',
|
|
141
142
|
:'business_registration_number',
|
|
142
143
|
:'business_registration_type',
|
|
144
|
+
:'business_registration_issuing_country',
|
|
143
145
|
])
|
|
144
146
|
end
|
|
145
147
|
|
|
@@ -50,11 +50,12 @@ module Bandwidth
|
|
|
50
50
|
# The company 'Doing Business As'.
|
|
51
51
|
attr_accessor :business_dba
|
|
52
52
|
|
|
53
|
-
# Government-issued business identifying number. **Note
|
|
53
|
+
# Government-issued business identifying number. **Note: As of October 19th, 2026 this field will be required when `businessEntityType` is _not_ `SOLE_PROPRIETOR`. If this field is provided, `businessRegistrationType` and `businessRegistrationIssuingCountry` are also required.**
|
|
54
54
|
attr_accessor :business_registration_number
|
|
55
55
|
|
|
56
56
|
attr_accessor :business_registration_type
|
|
57
57
|
|
|
58
|
+
# The country issuing the business registration in ISO-3166-1 alpha-3 format. Alpha-2 format is accepted by the API, but alpha-3 is highly encouraged. **Note: As of October 19th, 2026 this field will be required when `businessRegistrationNumber` is provided.** | Registration Type | Supported Countries | |----------------------|------------------------------------| | EIN | USA | | CBN | CAN | | NEQ | CAN | | PROVINCIAL_NUMBER | CAN | | CRN | GBR, HKG | | VAT | GBR, IRL, BRA, NLD | | ACN | AUS | | ABN | AUS | | BRN | HKG | | SIREN | FRA | | SIRET | FRA | | NZBN | NZL | | UST_IDNR | DEU | | CIF | ESP | | NIF | ESP | | CNPJ | BRA | | UID | CHE | | OTHER | Must Provide Country Code |
|
|
58
59
|
attr_accessor :business_registration_issuing_country
|
|
59
60
|
|
|
60
61
|
attr_accessor :business_entity_type
|
|
@@ -144,7 +145,7 @@ module Bandwidth
|
|
|
144
145
|
:'business_dba' => :'String',
|
|
145
146
|
:'business_registration_number' => :'String',
|
|
146
147
|
:'business_registration_type' => :'BusinessRegistrationTypeEnum',
|
|
147
|
-
:'business_registration_issuing_country' => :'
|
|
148
|
+
:'business_registration_issuing_country' => :'String',
|
|
148
149
|
:'business_entity_type' => :'BusinessEntityTypeEnum',
|
|
149
150
|
:'help_message_response' => :'String',
|
|
150
151
|
:'age_gated_content' => :'Boolean',
|
|
@@ -159,6 +160,7 @@ module Bandwidth
|
|
|
159
160
|
:'isv_reseller',
|
|
160
161
|
:'business_registration_number',
|
|
161
162
|
:'business_registration_type',
|
|
163
|
+
:'business_registration_issuing_country',
|
|
162
164
|
:'help_message_response',
|
|
163
165
|
:'cv_token'
|
|
164
166
|
])
|
|
@@ -48,13 +48,14 @@ module Bandwidth
|
|
|
48
48
|
# The company 'Doing Business As'.
|
|
49
49
|
attr_accessor :business_dba
|
|
50
50
|
|
|
51
|
-
# Government-issued business identifying number. **Note
|
|
51
|
+
# Government-issued business identifying number. **Note: As of October 19th, 2026 this field will be required when `businessEntityType` is _not_ `SOLE_PROPRIETOR`. If this field is provided, `businessRegistrationType` and `businessRegistrationIssuingCountry` are also required.**
|
|
52
52
|
attr_accessor :business_registration_number
|
|
53
53
|
|
|
54
54
|
attr_accessor :business_registration_type
|
|
55
55
|
|
|
56
56
|
attr_accessor :business_entity_type
|
|
57
57
|
|
|
58
|
+
# The country issuing the business registration in ISO-3166-1 alpha-3 format. Alpha-2 format is accepted by the API, but alpha-3 is highly encouraged. **Note: As of October 19th, 2026 this field will be required when `businessRegistrationNumber` is provided.** | Registration Type | Supported Countries | |----------------------|------------------------------------| | EIN | USA | | CBN | CAN | | NEQ | CAN | | PROVINCIAL_NUMBER | CAN | | CRN | GBR, HKG | | VAT | GBR, IRL, BRA, NLD | | ACN | AUS | | ABN | AUS | | BRN | HKG | | SIREN | FRA | | SIRET | FRA | | NZBN | NZL | | UST_IDNR | DEU | | CIF | ESP | | NIF | ESP | | CNPJ | BRA | | UID | CHE | | OTHER | Must Provide Country Code |
|
|
58
59
|
attr_accessor :business_registration_issuing_country
|
|
59
60
|
|
|
60
61
|
# A message that gets sent to users requesting help.
|
|
@@ -141,7 +142,7 @@ module Bandwidth
|
|
|
141
142
|
:'business_registration_number' => :'String',
|
|
142
143
|
:'business_registration_type' => :'BusinessRegistrationTypeEnum',
|
|
143
144
|
:'business_entity_type' => :'BusinessEntityTypeEnum',
|
|
144
|
-
:'business_registration_issuing_country' => :'
|
|
145
|
+
:'business_registration_issuing_country' => :'String',
|
|
145
146
|
:'help_message_response' => :'String',
|
|
146
147
|
:'age_gated_content' => :'Boolean',
|
|
147
148
|
:'cv_token' => :'String'
|
|
@@ -155,6 +156,7 @@ module Bandwidth
|
|
|
155
156
|
:'isv_reseller',
|
|
156
157
|
:'business_registration_number',
|
|
157
158
|
:'business_registration_type',
|
|
159
|
+
:'business_registration_issuing_country',
|
|
158
160
|
:'help_message_response',
|
|
159
161
|
:'cv_token'
|
|
160
162
|
])
|
data/lib/bandwidth-sdk.rb
CHANGED
|
@@ -27,7 +27,6 @@ require 'bandwidth-sdk/models/blocked_webhook'
|
|
|
27
27
|
require 'bandwidth-sdk/models/bridge_complete_callback'
|
|
28
28
|
require 'bandwidth-sdk/models/bridge_target_complete_callback'
|
|
29
29
|
require 'bandwidth-sdk/models/business_entity_type_enum'
|
|
30
|
-
require 'bandwidth-sdk/models/business_registration_issuing_country_enum'
|
|
31
30
|
require 'bandwidth-sdk/models/business_registration_type_enum'
|
|
32
31
|
require 'bandwidth-sdk/models/call_direction_enum'
|
|
33
32
|
require 'bandwidth-sdk/models/call_recording_metadata'
|
|
@@ -38,15 +38,11 @@ describe 'PhoneNumberLookupApi' do
|
|
|
38
38
|
expect(create_data.errors).to be_instance_of(Array)
|
|
39
39
|
|
|
40
40
|
request_id = create_data.data.request_id
|
|
41
|
-
sleep(
|
|
41
|
+
sleep(60)
|
|
42
42
|
|
|
43
43
|
get_data, get_status_code = @api_instance.get_async_bulk_lookup_with_http_info(BW_ACCOUNT_ID, request_id)
|
|
44
44
|
expect(get_status_code).to equal_to(200)
|
|
45
45
|
expect(get_data).to be_instance_of(Bandwidth::GetAsyncBulkLookupResponse)
|
|
46
|
-
expect(get_data.links[0]).to be_instance_of(Bandwidth::LinkSchema)
|
|
47
|
-
expect(get_data.links[0].rel).to be_instance_of(String)
|
|
48
|
-
expect(get_data.links[0].href).to be_instance_of(String)
|
|
49
|
-
expect(get_data.links[0].method).to be_instance_of(String)
|
|
50
46
|
expect(get_data.data.request_id).to eq(request_id)
|
|
51
47
|
expect(get_data.data.status).to eq(Bandwidth::InProgressLookupStatusEnum::COMPLETE)
|
|
52
48
|
expect(get_data.data.results).to be_instance_of(Array)
|
|
@@ -69,10 +65,6 @@ describe 'PhoneNumberLookupApi' do
|
|
|
69
65
|
|
|
70
66
|
expect(status_code).to equal_to(200)
|
|
71
67
|
expect(data).to be_instance_of(Bandwidth::CreateSyncLookupResponse)
|
|
72
|
-
expect(data.links[0]).to be_instance_of(Bandwidth::LinkSchema)
|
|
73
|
-
expect(data.links[0].rel).to be_instance_of(String)
|
|
74
|
-
expect(data.links[0].href).to be_instance_of(String)
|
|
75
|
-
expect(data.links[0].method).to be_instance_of(String)
|
|
76
68
|
expect(data.data.request_id).to be_instance_of(String)
|
|
77
69
|
expect(data.data.status).to eq(Bandwidth::CompletedLookupStatusEnum::COMPLETE)
|
|
78
70
|
expect(data.data.results).to be_instance_of(Array)
|
|
@@ -35,7 +35,7 @@ describe 'TollFreeVerificationApi' do
|
|
|
35
35
|
business_entity_type: Bandwidth::BusinessEntityTypeEnum::PUBLIC_PROFIT,
|
|
36
36
|
business_registration_number: '123456789',
|
|
37
37
|
business_registration_type: Bandwidth::BusinessRegistrationTypeEnum::EIN,
|
|
38
|
-
business_registration_issuing_country:
|
|
38
|
+
business_registration_issuing_country: 'USA',
|
|
39
39
|
additional_information: 'additionalInformation',
|
|
40
40
|
isv_reseller: 'isvReseller'
|
|
41
41
|
} }
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bandwidth-sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 18.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Bandwidth
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-04-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -155,7 +155,6 @@ files:
|
|
|
155
155
|
- docs/BridgeCompleteCallback.md
|
|
156
156
|
- docs/BridgeTargetCompleteCallback.md
|
|
157
157
|
- docs/BusinessEntityTypeEnum.md
|
|
158
|
-
- docs/BusinessRegistrationIssuingCountryEnum.md
|
|
159
158
|
- docs/BusinessRegistrationTypeEnum.md
|
|
160
159
|
- docs/CallDirectionEnum.md
|
|
161
160
|
- docs/CallRecordingMetadata.md
|
|
@@ -360,7 +359,6 @@ files:
|
|
|
360
359
|
- lib/bandwidth-sdk/models/bridge_complete_callback.rb
|
|
361
360
|
- lib/bandwidth-sdk/models/bridge_target_complete_callback.rb
|
|
362
361
|
- lib/bandwidth-sdk/models/business_entity_type_enum.rb
|
|
363
|
-
- lib/bandwidth-sdk/models/business_registration_issuing_country_enum.rb
|
|
364
362
|
- lib/bandwidth-sdk/models/business_registration_type_enum.rb
|
|
365
363
|
- lib/bandwidth-sdk/models/bxml/bxml.rb
|
|
366
364
|
- lib/bandwidth-sdk/models/bxml/nestable_verb.rb
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# Bandwidth::BusinessRegistrationIssuingCountryEnum
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
|
|
8
|
-
## Example
|
|
9
|
-
|
|
10
|
-
```ruby
|
|
11
|
-
require 'bandwidth-sdk'
|
|
12
|
-
|
|
13
|
-
instance = Bandwidth::BusinessRegistrationIssuingCountryEnum.new()
|
|
14
|
-
```
|
|
15
|
-
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
=begin
|
|
2
|
-
#Bandwidth
|
|
3
|
-
|
|
4
|
-
#Bandwidth's Communication APIs
|
|
5
|
-
|
|
6
|
-
The version of the OpenAPI document: 1.0.0
|
|
7
|
-
Contact: letstalk@bandwidth.com
|
|
8
|
-
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.17.0
|
|
10
|
-
|
|
11
|
-
=end
|
|
12
|
-
|
|
13
|
-
require 'date'
|
|
14
|
-
require 'time'
|
|
15
|
-
|
|
16
|
-
module Bandwidth
|
|
17
|
-
class BusinessRegistrationIssuingCountryEnum
|
|
18
|
-
USA = 'USA'.freeze
|
|
19
|
-
CAN = 'CAN'.freeze
|
|
20
|
-
HKG = 'HKG'.freeze
|
|
21
|
-
GBR = 'GBR'.freeze
|
|
22
|
-
IRL = 'IRL'.freeze
|
|
23
|
-
BRA = 'BRA'.freeze
|
|
24
|
-
NLD = 'NLD'.freeze
|
|
25
|
-
AUS = 'AUS'.freeze
|
|
26
|
-
FRA = 'FRA'.freeze
|
|
27
|
-
NZL = 'NZL'.freeze
|
|
28
|
-
DEU = 'DEU'.freeze
|
|
29
|
-
ESP = 'ESP'.freeze
|
|
30
|
-
CHE = 'CHE'.freeze
|
|
31
|
-
CYP = 'CYP'.freeze
|
|
32
|
-
IND = 'IND'.freeze
|
|
33
|
-
CHN = 'CHN'.freeze
|
|
34
|
-
BGR = 'BGR'.freeze
|
|
35
|
-
|
|
36
|
-
def self.all_vars
|
|
37
|
-
@all_vars ||= [USA, CAN, HKG, GBR, IRL, BRA, NLD, AUS, FRA, NZL, DEU, ESP, CHE, CYP, IND, CHN, BGR].freeze
|
|
38
|
-
end
|
|
39
|
-
|
|
40
|
-
# Builds the enum from string
|
|
41
|
-
# @param [String] The enum value in the form of the string
|
|
42
|
-
# @return [String] The enum value
|
|
43
|
-
def self.build_from_hash(value)
|
|
44
|
-
new.build_from_hash(value)
|
|
45
|
-
end
|
|
46
|
-
|
|
47
|
-
# Builds the enum from string
|
|
48
|
-
# @param [String] The enum value in the form of the string
|
|
49
|
-
# @return [String] The enum value
|
|
50
|
-
def build_from_hash(value)
|
|
51
|
-
return value if BusinessRegistrationIssuingCountryEnum.all_vars.include?(value)
|
|
52
|
-
raise "Invalid ENUM value #{value} for class #BusinessRegistrationIssuingCountryEnum"
|
|
53
|
-
end
|
|
54
|
-
end
|
|
55
|
-
end
|