bandwidth-sdk 17.1.1 → 17.3.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 +1 -1
- data/Gemfile.lock +19 -15
- data/README.md +1 -0
- data/bandwidth.yml +139 -29
- data/coverage/.resultset.json +18 -9
- data/coverage/index.html +673 -573
- data/custom_templates/Gemfile.mustache +1 -1
- data/custom_templates/partial_anyof_module.mustache +135 -0
- data/docs/BusinessRegistrationIssuingCountryEnum.md +15 -0
- data/docs/LookupResult.md +2 -2
- data/docs/MessagesApi.md +1 -1
- data/docs/RbmActionBase.md +1 -1
- data/docs/RbmMessageMedia.md +1 -1
- data/docs/RbmSuggestionResponse.md +1 -1
- data/docs/TfvStatus.md +3 -1
- data/docs/TfvSubmissionInfo.md +3 -1
- data/docs/TollFreeVerificationApi.md +1 -1
- data/docs/VerificationRequest.md +7 -3
- data/docs/VerificationUpdateRequest.md +6 -2
- data/lib/bandwidth-sdk/api/messages_api.rb +2 -2
- data/lib/bandwidth-sdk/models/business_registration_issuing_country_enum.rb +51 -0
- data/lib/bandwidth-sdk/models/business_registration_type_enum.rb +17 -1
- data/lib/bandwidth-sdk/models/multi_channel_action.rb +23 -67
- data/lib/bandwidth-sdk/models/multi_channel_channel_list_request_object.rb +20 -67
- data/lib/bandwidth-sdk/models/multi_channel_channel_list_response_object.rb +20 -67
- data/lib/bandwidth-sdk/models/rbm_message_media.rb +4 -2
- data/lib/bandwidth-sdk/models/tfv_status.rb +39 -4
- data/lib/bandwidth-sdk/models/tfv_submission_info.rb +11 -3
- data/lib/bandwidth-sdk/models/verification_request.rb +66 -6
- data/lib/bandwidth-sdk/models/verification_update_request.rb +49 -6
- data/lib/bandwidth-sdk/version.rb +1 -1
- data/lib/bandwidth-sdk.rb +1 -0
- data/spec/smoke/multi_channel_api_spec.rb +236 -7
- data/spec/unit/api/toll_free_verification_api_spec.rb +8 -0
- metadata +5 -2
|
@@ -34,7 +34,6 @@ describe 'MultiChannelApi' do
|
|
|
34
34
|
data, status_code = @multi_channel_api_instance.create_multi_channel_message_with_http_info(BW_ACCOUNT_ID, multi_channel_message_request)
|
|
35
35
|
|
|
36
36
|
expect(status_code).to eq(202)
|
|
37
|
-
p data.data
|
|
38
37
|
expect(data).to be_instance_of(Bandwidth::CreateMultiChannelMessageResponse)
|
|
39
38
|
expect(data.links).to be_instance_of(Array)
|
|
40
39
|
expect(data.data).to be_instance_of(Bandwidth::MultiChannelMessageResponseData)
|
|
@@ -46,7 +45,12 @@ describe 'MultiChannelApi' do
|
|
|
46
45
|
expect(data.data.priority).to be_one_of(Bandwidth::PriorityEnum.all_vars)
|
|
47
46
|
expect(data.data.expiration).to be_instance_of(Time)
|
|
48
47
|
expect(data.data.channel_list).to be_instance_of(Array)
|
|
49
|
-
|
|
48
|
+
expect(data.data.channel_list.first).to be_instance_of(Bandwidth::MultiChannelChannelListSMSResponseObject)
|
|
49
|
+
expect(data.data.channel_list.first.from).to be_instance_of(String)
|
|
50
|
+
expect(data.data.channel_list.first.application_id).to be_instance_of(String)
|
|
51
|
+
expect(data.data.channel_list.first.channel).to eq(Bandwidth::MultiChannelMessageChannelEnum::SMS)
|
|
52
|
+
expect(data.data.channel_list.first.content).to be_instance_of(Bandwidth::SmsMessageContent)
|
|
53
|
+
expect(data.data.channel_list.first.content.text).to be_instance_of(String)
|
|
50
54
|
end
|
|
51
55
|
end
|
|
52
56
|
|
|
@@ -77,7 +81,6 @@ describe 'MultiChannelApi' do
|
|
|
77
81
|
data, status_code = @multi_channel_api_instance.create_multi_channel_message_with_http_info(BW_ACCOUNT_ID, multi_channel_message_request)
|
|
78
82
|
|
|
79
83
|
expect(status_code).to eq(202)
|
|
80
|
-
p data.data
|
|
81
84
|
expect(data).to be_instance_of(Bandwidth::CreateMultiChannelMessageResponse)
|
|
82
85
|
expect(data.links).to be_instance_of(Array)
|
|
83
86
|
expect(data.data).to be_instance_of(Bandwidth::MultiChannelMessageResponseData)
|
|
@@ -89,13 +92,21 @@ describe 'MultiChannelApi' do
|
|
|
89
92
|
expect(data.data.priority).to be_one_of(Bandwidth::PriorityEnum.all_vars)
|
|
90
93
|
expect(data.data.expiration).to be_instance_of(Time)
|
|
91
94
|
expect(data.data.channel_list).to be_instance_of(Array)
|
|
92
|
-
|
|
95
|
+
expect(data.data.channel_list.first).to be_instance_of(Bandwidth::MultiChannelChannelListMMSResponseObject)
|
|
96
|
+
expect(data.data.channel_list.first.from).to be_instance_of(String)
|
|
97
|
+
expect(data.data.channel_list.first.application_id).to be_instance_of(String)
|
|
98
|
+
expect(data.data.channel_list.first.channel).to eq(Bandwidth::MultiChannelMessageChannelEnum::MMS)
|
|
99
|
+
expect(data.data.channel_list.first.content).to be_instance_of(Bandwidth::MmsMessageContent)
|
|
100
|
+
expect(data.data.channel_list.first.content.text).to be_instance_of(String)
|
|
101
|
+
expect(data.data.channel_list.first.content.media).to be_instance_of(Array)
|
|
102
|
+
expect(data.data.channel_list.first.content.media.first).to be_instance_of(Bandwidth::MmsMessageContentFile)
|
|
103
|
+
expect(data.data.channel_list.first.content.media.first.file_url).to be_instance_of(String)
|
|
93
104
|
end
|
|
94
105
|
end
|
|
95
106
|
|
|
96
107
|
# Create Multi-Channel RBM Message
|
|
97
108
|
describe 'create_multi_channel_rbm_message' do
|
|
98
|
-
it 'creates a multi channel rbm message' do
|
|
109
|
+
it 'creates a multi channel rbm text message' do
|
|
99
110
|
message_body = Bandwidth::MultiChannelChannelListRBMObject.new(
|
|
100
111
|
from: BW_NUMBER,
|
|
101
112
|
application_id: BW_MESSAGING_APPLICATION_ID,
|
|
@@ -123,7 +134,6 @@ describe 'MultiChannelApi' do
|
|
|
123
134
|
data, status_code = @multi_channel_api_instance.create_multi_channel_message_with_http_info(BW_ACCOUNT_ID, multi_channel_message_request)
|
|
124
135
|
|
|
125
136
|
expect(status_code).to eq(202)
|
|
126
|
-
p data.data
|
|
127
137
|
expect(data).to be_instance_of(Bandwidth::CreateMultiChannelMessageResponse)
|
|
128
138
|
expect(data.links).to be_instance_of(Array)
|
|
129
139
|
expect(data.data).to be_instance_of(Bandwidth::MultiChannelMessageResponseData)
|
|
@@ -135,7 +145,226 @@ describe 'MultiChannelApi' do
|
|
|
135
145
|
expect(data.data.priority).to be_one_of(Bandwidth::PriorityEnum.all_vars)
|
|
136
146
|
expect(data.data.expiration).to be_instance_of(Time)
|
|
137
147
|
expect(data.data.channel_list).to be_instance_of(Array)
|
|
138
|
-
|
|
148
|
+
expect(data.data.channel_list.first).to be_instance_of(Bandwidth::MultiChannelChannelListRBMResponseObject)
|
|
149
|
+
expect(data.data.channel_list.first.from).to be_instance_of(String)
|
|
150
|
+
expect(data.data.channel_list.first.application_id).to be_instance_of(String)
|
|
151
|
+
expect(data.data.channel_list.first.channel).to eq(Bandwidth::MultiChannelMessageChannelEnum::RBM)
|
|
152
|
+
expect(data.data.channel_list.first.content).to be_instance_of(Bandwidth::RbmMessageContentText)
|
|
153
|
+
expect(data.data.channel_list.first.content.text).to be_instance_of(String)
|
|
154
|
+
expect(data.data.channel_list.first.content.suggestions).to be_instance_of(Array)
|
|
155
|
+
expect(data.data.channel_list.first.content.suggestions.first).to be_instance_of(Bandwidth::RbmActionDial)
|
|
156
|
+
expect(data.data.channel_list.first.content.suggestions.first.type).to eq(Bandwidth::RbmActionTypeEnum::DIAL_PHONE)
|
|
157
|
+
expect(data.data.channel_list.first.content.suggestions.first.text).to be_instance_of(String)
|
|
158
|
+
expect(data.data.channel_list.first.content.suggestions.first.postback_data).to be_instance_of(String)
|
|
159
|
+
expect(data.data.channel_list.first.content.suggestions.first.phone_number).to be_instance_of(String)
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
it 'creates a multi channel rbm media message' do
|
|
163
|
+
message_body = Bandwidth::MultiChannelChannelListRBMObject.new(
|
|
164
|
+
from: BW_NUMBER,
|
|
165
|
+
application_id: BW_MESSAGING_APPLICATION_ID,
|
|
166
|
+
channel: Bandwidth::MultiChannelMessageChannelEnum::RBM,
|
|
167
|
+
content: Bandwidth::RbmMessageMedia.new(
|
|
168
|
+
media: [
|
|
169
|
+
Bandwidth::RbmMessageContentFile.new(
|
|
170
|
+
file_url: 'https://example.com/image.jpg',
|
|
171
|
+
thumbnail_url: 'https://example.com/thumbnail.jpg'
|
|
172
|
+
)],
|
|
173
|
+
suggestions: [
|
|
174
|
+
Bandwidth::RbmActionDial.new(
|
|
175
|
+
type: Bandwidth::RbmActionTypeEnum::DIAL_PHONE,
|
|
176
|
+
text: 'Call Us',
|
|
177
|
+
postback_data: 'abcdefg12345678',
|
|
178
|
+
phone_number: BW_NUMBER
|
|
179
|
+
)
|
|
180
|
+
]
|
|
181
|
+
)
|
|
182
|
+
)
|
|
183
|
+
multi_channel_message_request = Bandwidth::MultiChannelMessageRequest.new(
|
|
184
|
+
to: USER_NUMBER,
|
|
185
|
+
channel_list: [message_body],
|
|
186
|
+
tag: 'tag',
|
|
187
|
+
priority: 'high',
|
|
188
|
+
expiration: @expiration_time,
|
|
189
|
+
)
|
|
190
|
+
|
|
191
|
+
data, status_code = @multi_channel_api_instance.create_multi_channel_message_with_http_info(BW_ACCOUNT_ID, multi_channel_message_request)
|
|
192
|
+
|
|
193
|
+
expect(status_code).to eq(202)
|
|
194
|
+
expect(data).to be_instance_of(Bandwidth::CreateMultiChannelMessageResponse)
|
|
195
|
+
expect(data.links).to be_instance_of(Array)
|
|
196
|
+
expect(data.data).to be_instance_of(Bandwidth::MultiChannelMessageResponseData)
|
|
197
|
+
expect(data.data.id).to be_instance_of(String)
|
|
198
|
+
expect(data.data.time).to be_instance_of(Time)
|
|
199
|
+
expect(data.data.direction).to be_one_of(Bandwidth::MessageDirectionEnum.all_vars)
|
|
200
|
+
expect(data.data.to).to be_instance_of(Array)
|
|
201
|
+
expect(data.data.tag).to be_instance_of(String)
|
|
202
|
+
expect(data.data.priority).to be_one_of(Bandwidth::PriorityEnum.all_vars)
|
|
203
|
+
expect(data.data.expiration).to be_instance_of(Time)
|
|
204
|
+
expect(data.data.channel_list).to be_instance_of(Array)
|
|
205
|
+
expect(data.data.channel_list.first).to be_instance_of(Bandwidth::MultiChannelChannelListRBMResponseObject)
|
|
206
|
+
expect(data.data.channel_list.first.from).to be_instance_of(String)
|
|
207
|
+
expect(data.data.channel_list.first.application_id).to be_instance_of(String)
|
|
208
|
+
expect(data.data.channel_list.first.channel).to eq(Bandwidth::MultiChannelMessageChannelEnum::RBM)
|
|
209
|
+
expect(data.data.channel_list.first.content).to be_instance_of(Bandwidth::RbmMessageMedia)
|
|
210
|
+
expect(data.data.channel_list.first.content.media).to be_instance_of(Array)
|
|
211
|
+
expect(data.data.channel_list.first.content.media.first).to be_instance_of(Bandwidth::RbmMessageContentFile)
|
|
212
|
+
expect(data.data.channel_list.first.content.media.first.file_url).to be_instance_of(String)
|
|
213
|
+
expect(data.data.channel_list.first.content.media.first.thumbnail_url).to be_instance_of(String)
|
|
214
|
+
expect(data.data.channel_list.first.content.suggestions).to be_instance_of(Array)
|
|
215
|
+
expect(data.data.channel_list.first.content.suggestions.first).to be_instance_of(Bandwidth::RbmActionDial)
|
|
216
|
+
expect(data.data.channel_list.first.content.suggestions.first.type).to eq(Bandwidth::RbmActionTypeEnum::DIAL_PHONE)
|
|
217
|
+
expect(data.data.channel_list.first.content.suggestions.first.text).to be_instance_of(String)
|
|
218
|
+
expect(data.data.channel_list.first.content.suggestions.first.postback_data).to be_instance_of(String)
|
|
219
|
+
expect(data.data.channel_list.first.content.suggestions.first.phone_number).to be_instance_of(String)
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
it 'creates a multi channel rbm standalone rich card message' do
|
|
223
|
+
message_body = Bandwidth::MultiChannelChannelListRBMObject.new(
|
|
224
|
+
from: BW_NUMBER,
|
|
225
|
+
application_id: BW_MESSAGING_APPLICATION_ID,
|
|
226
|
+
channel: Bandwidth::MultiChannelMessageChannelEnum::RBM,
|
|
227
|
+
content: Bandwidth::RbmStandaloneCard.new(
|
|
228
|
+
orientation: Bandwidth::StandaloneCardOrientationEnum::HORIZONTAL,
|
|
229
|
+
thumbnail_image_alignment: Bandwidth::ThumbnailAlignmentEnum::LEFT,
|
|
230
|
+
card_content: Bandwidth::RbmCardContent.new(
|
|
231
|
+
title: 'Welcome to our service',
|
|
232
|
+
description: 'We are glad to have you here.',
|
|
233
|
+
media: Bandwidth::RbmCardContentMedia.new(
|
|
234
|
+
file_url: 'https://image.com/image.png',
|
|
235
|
+
thumbnail_url: 'https://image.com/thumbnail.png',
|
|
236
|
+
height: Bandwidth::RbmMediaHeightEnum::TALL
|
|
237
|
+
),
|
|
238
|
+
suggestions: [
|
|
239
|
+
Bandwidth::RbmActionDial.new(
|
|
240
|
+
type: Bandwidth::RbmActionTypeEnum::DIAL_PHONE,
|
|
241
|
+
text: 'Call Us',
|
|
242
|
+
postback_data: 'abcdefg12345678',
|
|
243
|
+
phone_number: BW_NUMBER
|
|
244
|
+
)
|
|
245
|
+
]
|
|
246
|
+
)
|
|
247
|
+
)
|
|
248
|
+
)
|
|
249
|
+
multi_channel_message_request = Bandwidth::MultiChannelMessageRequest.new(
|
|
250
|
+
to: USER_NUMBER,
|
|
251
|
+
channel_list: [message_body],
|
|
252
|
+
tag: 'tag',
|
|
253
|
+
priority: 'high',
|
|
254
|
+
expiration: @expiration_time,
|
|
255
|
+
)
|
|
256
|
+
|
|
257
|
+
data, status_code = @multi_channel_api_instance.create_multi_channel_message_with_http_info(BW_ACCOUNT_ID, multi_channel_message_request)
|
|
258
|
+
|
|
259
|
+
expect(status_code).to eq(202)
|
|
260
|
+
expect(data).to be_instance_of(Bandwidth::CreateMultiChannelMessageResponse)
|
|
261
|
+
expect(data.links).to be_instance_of(Array)
|
|
262
|
+
expect(data.data).to be_instance_of(Bandwidth::MultiChannelMessageResponseData)
|
|
263
|
+
expect(data.data.id).to be_instance_of(String)
|
|
264
|
+
expect(data.data.time).to be_instance_of(Time)
|
|
265
|
+
expect(data.data.direction).to be_one_of(Bandwidth::MessageDirectionEnum.all_vars)
|
|
266
|
+
expect(data.data.to).to be_instance_of(Array)
|
|
267
|
+
expect(data.data.tag).to be_instance_of(String)
|
|
268
|
+
expect(data.data.priority).to be_one_of(Bandwidth::PriorityEnum.all_vars)
|
|
269
|
+
expect(data.data.expiration).to be_instance_of(Time)
|
|
270
|
+
expect(data.data.channel_list).to be_instance_of(Array)
|
|
271
|
+
expect(data.data.channel_list.first).to be_instance_of(Bandwidth::MultiChannelChannelListRBMResponseObject)
|
|
272
|
+
expect(data.data.channel_list.first.from).to be_instance_of(String)
|
|
273
|
+
expect(data.data.channel_list.first.application_id).to be_instance_of(String)
|
|
274
|
+
expect(data.data.channel_list.first.channel).to eq(Bandwidth::MultiChannelMessageChannelEnum::RBM)
|
|
275
|
+
expect(data.data.channel_list.first.content).to be_instance_of(Bandwidth::RbmStandaloneCard)
|
|
276
|
+
expect(data.data.channel_list.first.content.orientation).to eq(Bandwidth::StandaloneCardOrientationEnum::HORIZONTAL)
|
|
277
|
+
expect(data.data.channel_list.first.content.thumbnail_image_alignment).to eq(Bandwidth::ThumbnailAlignmentEnum::LEFT)
|
|
278
|
+
expect(data.data.channel_list.first.content.card_content).to be_instance_of(Bandwidth::RbmCardContent)
|
|
279
|
+
expect(data.data.channel_list.first.content.card_content.title).to be_instance_of(String)
|
|
280
|
+
expect(data.data.channel_list.first.content.card_content.description).to be_instance_of(String)
|
|
281
|
+
expect(data.data.channel_list.first.content.card_content.media).to be_instance_of(Bandwidth::RbmCardContentMedia)
|
|
282
|
+
expect(data.data.channel_list.first.content.card_content.media.file_url).to be_instance_of(String)
|
|
283
|
+
expect(data.data.channel_list.first.content.card_content.media.thumbnail_url).to be_instance_of(String)
|
|
284
|
+
expect(data.data.channel_list.first.content.card_content.media.height).to eq(Bandwidth::RbmMediaHeightEnum::TALL)
|
|
285
|
+
expect(data.data.channel_list.first.content.card_content.suggestions).to be_instance_of(Array)
|
|
286
|
+
expect(data.data.channel_list.first.content.card_content.suggestions.first).to be_instance_of(Bandwidth::RbmActionDial)
|
|
287
|
+
expect(data.data.channel_list.first.content.card_content.suggestions.first.type).to eq(Bandwidth::RbmActionTypeEnum::DIAL_PHONE)
|
|
288
|
+
expect(data.data.channel_list.first.content.card_content.suggestions.first.text).to be_instance_of(String)
|
|
289
|
+
expect(data.data.channel_list.first.content.card_content.suggestions.first.postback_data).to be_instance_of(String)
|
|
290
|
+
expect(data.data.channel_list.first.content.card_content.suggestions.first.phone_number).to be_instance_of(String)
|
|
291
|
+
end
|
|
292
|
+
|
|
293
|
+
it 'creates a multi channel rbm carousel rich card message' do
|
|
294
|
+
message_body = Bandwidth::MultiChannelChannelListRBMObject.new(
|
|
295
|
+
from: BW_NUMBER,
|
|
296
|
+
application_id: BW_MESSAGING_APPLICATION_ID,
|
|
297
|
+
channel: Bandwidth::MultiChannelMessageChannelEnum::RBM,
|
|
298
|
+
content: Bandwidth::RbmMessageCarouselCard.new(
|
|
299
|
+
card_width: Bandwidth::CardWidthEnum::MEDIUM,
|
|
300
|
+
card_contents: [
|
|
301
|
+
Bandwidth::RbmCardContent.new(
|
|
302
|
+
title: 'Welcome to our service',
|
|
303
|
+
description: 'We are glad to have you here.',
|
|
304
|
+
media: Bandwidth::RbmCardContentMedia.new(
|
|
305
|
+
file_url: 'https://image.com/image.png',
|
|
306
|
+
thumbnail_url: 'https://image.com/thumbnail.png',
|
|
307
|
+
height: Bandwidth::RbmMediaHeightEnum::TALL
|
|
308
|
+
),
|
|
309
|
+
suggestions: [
|
|
310
|
+
Bandwidth::RbmActionDial.new(
|
|
311
|
+
type: Bandwidth::RbmActionTypeEnum::DIAL_PHONE,
|
|
312
|
+
text: 'Call Us',
|
|
313
|
+
postback_data: 'abcdefg12345678',
|
|
314
|
+
phone_number: BW_NUMBER
|
|
315
|
+
)
|
|
316
|
+
]
|
|
317
|
+
),
|
|
318
|
+
Bandwidth::RbmCardContent.new(
|
|
319
|
+
title: 'Welcome to our service'
|
|
320
|
+
)
|
|
321
|
+
]
|
|
322
|
+
)
|
|
323
|
+
)
|
|
324
|
+
multi_channel_message_request = Bandwidth::MultiChannelMessageRequest.new(
|
|
325
|
+
to: USER_NUMBER,
|
|
326
|
+
channel_list: [message_body],
|
|
327
|
+
tag: 'tag',
|
|
328
|
+
priority: 'high',
|
|
329
|
+
expiration: @expiration_time,
|
|
330
|
+
)
|
|
331
|
+
|
|
332
|
+
data, status_code = @multi_channel_api_instance.create_multi_channel_message_with_http_info(BW_ACCOUNT_ID, multi_channel_message_request)
|
|
333
|
+
|
|
334
|
+
expect(status_code).to eq(202)
|
|
335
|
+
expect(data).to be_instance_of(Bandwidth::CreateMultiChannelMessageResponse)
|
|
336
|
+
expect(data.links).to be_instance_of(Array)
|
|
337
|
+
expect(data.data).to be_instance_of(Bandwidth::MultiChannelMessageResponseData)
|
|
338
|
+
expect(data.data.id).to be_instance_of(String)
|
|
339
|
+
expect(data.data.time).to be_instance_of(Time)
|
|
340
|
+
expect(data.data.direction).to be_one_of(Bandwidth::MessageDirectionEnum.all_vars)
|
|
341
|
+
expect(data.data.to).to be_instance_of(Array)
|
|
342
|
+
expect(data.data.tag).to be_instance_of(String)
|
|
343
|
+
expect(data.data.priority).to be_one_of(Bandwidth::PriorityEnum.all_vars)
|
|
344
|
+
expect(data.data.expiration).to be_instance_of(Time)
|
|
345
|
+
expect(data.data.channel_list).to be_instance_of(Array)
|
|
346
|
+
expect(data.data.channel_list.first).to be_instance_of(Bandwidth::MultiChannelChannelListRBMResponseObject)
|
|
347
|
+
expect(data.data.channel_list.first.from).to be_instance_of(String)
|
|
348
|
+
expect(data.data.channel_list.first.application_id).to be_instance_of(String)
|
|
349
|
+
expect(data.data.channel_list.first.channel).to eq(Bandwidth::MultiChannelMessageChannelEnum::RBM)
|
|
350
|
+
expect(data.data.channel_list.first.content).to be_instance_of(Bandwidth::RbmMessageCarouselCard)
|
|
351
|
+
expect(data.data.channel_list.first.content.card_width).to eq(Bandwidth::CardWidthEnum::MEDIUM)
|
|
352
|
+
expect(data.data.channel_list.first.content.card_contents).to be_instance_of(Array)
|
|
353
|
+
expect(data.data.channel_list.first.content.card_contents.first).to be_instance_of(Bandwidth::RbmCardContent)
|
|
354
|
+
expect(data.data.channel_list.first.content.card_contents.first.title).to be_instance_of(String)
|
|
355
|
+
expect(data.data.channel_list.first.content.card_contents.first.description).to be_instance_of(String)
|
|
356
|
+
expect(data.data.channel_list.first.content.card_contents.first.media).to be_instance_of(Bandwidth::RbmCardContentMedia)
|
|
357
|
+
expect(data.data.channel_list.first.content.card_contents.first.media.file_url).to be_instance_of(String)
|
|
358
|
+
expect(data.data.channel_list.first.content.card_contents.first.media.thumbnail_url).to be_instance_of(String)
|
|
359
|
+
expect(data.data.channel_list.first.content.card_contents.first.media.height).to eq(Bandwidth::RbmMediaHeightEnum::TALL)
|
|
360
|
+
expect(data.data.channel_list.first.content.card_contents.first.suggestions).to be_instance_of(Array)
|
|
361
|
+
expect(data.data.channel_list.first.content.card_contents.first.suggestions.first).to be_instance_of(Bandwidth::RbmActionDial)
|
|
362
|
+
expect(data.data.channel_list.first.content.card_contents.first.suggestions.first.type).to eq(Bandwidth::RbmActionTypeEnum::DIAL_PHONE)
|
|
363
|
+
expect(data.data.channel_list.first.content.card_contents.first.suggestions.first.text).to be_instance_of(String)
|
|
364
|
+
expect(data.data.channel_list.first.content.card_contents.first.suggestions.first.postback_data).to be_instance_of(String)
|
|
365
|
+
expect(data.data.channel_list.first.content.card_contents.first.suggestions.first.phone_number).to be_instance_of(String)
|
|
366
|
+
expect(data.data.channel_list.first.content.card_contents[1]).to be_instance_of(Bandwidth::RbmCardContent)
|
|
367
|
+
expect(data.data.channel_list.first.content.card_contents[1].title).to be_instance_of(String)
|
|
139
368
|
end
|
|
140
369
|
end
|
|
141
370
|
end
|
|
@@ -32,6 +32,10 @@ describe 'TollFreeVerificationApi' do
|
|
|
32
32
|
description: 'description',
|
|
33
33
|
image_urls: ['https://example.com']
|
|
34
34
|
),
|
|
35
|
+
business_entity_type: Bandwidth::BusinessEntityTypeEnum::PUBLIC_PROFIT,
|
|
36
|
+
business_registration_number: '123456789',
|
|
37
|
+
business_registration_type: Bandwidth::BusinessRegistrationTypeEnum::EIN,
|
|
38
|
+
business_registration_issuing_country: Bandwidth::BusinessRegistrationIssuingCountryEnum::USA,
|
|
35
39
|
additional_information: 'additionalInformation',
|
|
36
40
|
isv_reseller: 'isvReseller'
|
|
37
41
|
} }
|
|
@@ -121,6 +125,10 @@ describe 'TollFreeVerificationApi' do
|
|
|
121
125
|
expect(data.resubmit_allowed).to be_one_of([true, false])
|
|
122
126
|
expect(data.created_date_time).to be_instance_of(Time)
|
|
123
127
|
expect(data.modified_date_time).to be_instance_of(Time)
|
|
128
|
+
expect(data.submission).to be_instance_of(Bandwidth::TfvSubmissionInfo)
|
|
129
|
+
expect(data.blocked).to be_one_of([true, false])
|
|
130
|
+
expect(data.blocked_reason).to be_instance_of(String)
|
|
131
|
+
expect(data.cv_token).to be_instance_of(String)
|
|
124
132
|
end
|
|
125
133
|
|
|
126
134
|
it 'causes an ArgumentError for a missing account_id' do
|
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: 17.
|
|
4
|
+
version: 17.3.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-02-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -145,6 +145,7 @@ files:
|
|
|
145
145
|
- custom_templates/configuration.mustache
|
|
146
146
|
- custom_templates/gem.mustache
|
|
147
147
|
- custom_templates/gemspec.mustache
|
|
148
|
+
- custom_templates/partial_anyof_module.mustache
|
|
148
149
|
- docs/AccountStatistics.md
|
|
149
150
|
- docs/AdditionalDenialReason.md
|
|
150
151
|
- docs/Address.md
|
|
@@ -154,6 +155,7 @@ files:
|
|
|
154
155
|
- docs/BridgeCompleteCallback.md
|
|
155
156
|
- docs/BridgeTargetCompleteCallback.md
|
|
156
157
|
- docs/BusinessEntityTypeEnum.md
|
|
158
|
+
- docs/BusinessRegistrationIssuingCountryEnum.md
|
|
157
159
|
- docs/BusinessRegistrationTypeEnum.md
|
|
158
160
|
- docs/CallDirectionEnum.md
|
|
159
161
|
- docs/CallRecordingMetadata.md
|
|
@@ -358,6 +360,7 @@ files:
|
|
|
358
360
|
- lib/bandwidth-sdk/models/bridge_complete_callback.rb
|
|
359
361
|
- lib/bandwidth-sdk/models/bridge_target_complete_callback.rb
|
|
360
362
|
- lib/bandwidth-sdk/models/business_entity_type_enum.rb
|
|
363
|
+
- lib/bandwidth-sdk/models/business_registration_issuing_country_enum.rb
|
|
361
364
|
- lib/bandwidth-sdk/models/business_registration_type_enum.rb
|
|
362
365
|
- lib/bandwidth-sdk/models/bxml/bxml.rb
|
|
363
366
|
- lib/bandwidth-sdk/models/bxml/nestable_verb.rb
|