bandwidth-sdk 11.2.0 → 12.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +29 -25
  3. data/README.md +14 -8
  4. data/bandwidth.yml +223 -17
  5. data/coverage/.last_run.json +1 -1
  6. data/coverage/.resultset.json +612 -209
  7. data/coverage/index.html +14875 -10424
  8. data/custom_templates/README.mustache +4 -4
  9. data/docs/CallRecordingMetadata.md +1 -1
  10. data/docs/CallTranscription.md +24 -0
  11. data/docs/CallTranscriptionMetadata.md +20 -0
  12. data/docs/CallTranscriptionResponse.md +24 -0
  13. data/docs/RecordingAvailableCallback.md +2 -2
  14. data/docs/RecordingTranscriptionMetadata.md +24 -0
  15. data/docs/RecordingTranscriptions.md +18 -0
  16. data/docs/RecordingsApi.md +49 -49
  17. data/docs/TranscriptionsApi.md +229 -0
  18. data/lib/bandwidth-sdk/api/recordings_api.rb +56 -56
  19. data/lib/bandwidth-sdk/api/transcriptions_api.rb +241 -0
  20. data/lib/bandwidth-sdk/configuration.rb +22 -4
  21. data/lib/bandwidth-sdk/models/bxml/verbs/transfer.rb +2 -1
  22. data/lib/bandwidth-sdk/models/call_recording_metadata.rb +1 -1
  23. data/lib/bandwidth-sdk/models/call_transcription.rb +317 -0
  24. data/lib/bandwidth-sdk/models/call_transcription_metadata.rb +223 -0
  25. data/lib/bandwidth-sdk/models/call_transcription_response.rb +244 -0
  26. data/lib/bandwidth-sdk/models/recording_available_callback.rb +2 -2
  27. data/lib/bandwidth-sdk/models/recording_transcription_metadata.rb +244 -0
  28. data/lib/bandwidth-sdk/models/recording_transcriptions.rb +214 -0
  29. data/lib/bandwidth-sdk/version.rb +1 -1
  30. data/lib/bandwidth-sdk.rb +6 -2
  31. data/spec/api/calls_api_spec.rb +4 -4
  32. data/spec/api/conferences_api_spec.rb +12 -12
  33. data/spec/api/media_api_spec.rb +6 -6
  34. data/spec/api/messages_api_spec.rb +2 -2
  35. data/spec/api/mfa_api_spec.rb +6 -6
  36. data/spec/api/phone_number_lookup_api_spec.rb +2 -2
  37. data/spec/api/recordings_api_spec.rb +30 -30
  38. data/spec/api/statistics_api_spec.rb +1 -1
  39. data/spec/api/transcriptions_api_spec.rb +130 -0
  40. data/spec/api_client_spec.rb +2 -2
  41. data/spec/integration/calls_api_integration_spec.rb +7 -7
  42. data/spec/integration/conferences_api_integration_spec.rb +9 -9
  43. data/spec/integration/media_api_integration_spec.rb +7 -7
  44. data/spec/integration/messages_api_integration_spec.rb +3 -3
  45. data/spec/integration/mfa_api_integration_spec.rb +3 -3
  46. data/spec/integration/phone_number_lookup_api_integration_spec.rb +2 -2
  47. data/spec/integration/recordings_api_integration_spec.rb +14 -14
  48. data/spec/integration/statistics_api_integration_spec.rb +1 -1
  49. data/spec/integration/transcriptions_api_integration_spec.rb +84 -0
  50. data/spec/models/bxml/verbs/transfer_spec.rb +7 -5
  51. data/spec/spec_helper.rb +1 -1
  52. metadata +50 -34
@@ -0,0 +1,214 @@
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
+ OpenAPI Generator version: 7.0.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Bandwidth
17
+ class RecordingTranscriptions
18
+ attr_accessor :transcripts
19
+
20
+ # Attribute mapping from ruby-style variable name to JSON key.
21
+ def self.attribute_map
22
+ {
23
+ :'transcripts' => :'transcripts'
24
+ }
25
+ end
26
+
27
+ # Returns all the JSON keys this model knows about
28
+ def self.acceptable_attributes
29
+ attribute_map.values
30
+ end
31
+
32
+ # Attribute type mapping.
33
+ def self.openapi_types
34
+ {
35
+ :'transcripts' => :'Array<Transcription>'
36
+ }
37
+ end
38
+
39
+ # List of attributes with nullable: true
40
+ def self.openapi_nullable
41
+ Set.new([
42
+ ])
43
+ end
44
+
45
+ # Initializes the object
46
+ # @param [Hash] attributes Model attributes in the form of hash
47
+ def initialize(attributes = {})
48
+ if (!attributes.is_a?(Hash))
49
+ fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::RecordingTranscriptions` initialize method'
50
+ end
51
+
52
+ # check to see if the attribute exists and convert string to symbol for hash key
53
+ attributes = attributes.each_with_object({}) { |(k, v), h|
54
+ if (!self.class.attribute_map.key?(k.to_sym))
55
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Bandwidth::RecordingTranscriptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
56
+ end
57
+ h[k.to_sym] = v
58
+ }
59
+
60
+ if attributes.key?(:'transcripts')
61
+ if (value = attributes[:'transcripts']).is_a?(Array)
62
+ self.transcripts = value
63
+ end
64
+ end
65
+ end
66
+
67
+ # Show invalid properties with the reasons. Usually used together with valid?
68
+ # @return Array for valid properties with the reasons
69
+ def list_invalid_properties
70
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
71
+ invalid_properties = Array.new
72
+ invalid_properties
73
+ end
74
+
75
+ # Check to see if the all the properties in the model are valid
76
+ # @return true if the model is valid
77
+ def valid?
78
+ warn '[DEPRECATED] the `valid?` method is obsolete'
79
+ true
80
+ end
81
+
82
+ # Checks equality by comparing each attribute.
83
+ # @param [Object] Object to be compared
84
+ def ==(o)
85
+ return true if self.equal?(o)
86
+ self.class == o.class &&
87
+ transcripts == o.transcripts
88
+ end
89
+
90
+ # @see the `==` method
91
+ # @param [Object] Object to be compared
92
+ def eql?(o)
93
+ self == o
94
+ end
95
+
96
+ # Calculates hash code according to all attributes.
97
+ # @return [Integer] Hash code
98
+ def hash
99
+ [transcripts].hash
100
+ end
101
+
102
+ # Builds the object from hash
103
+ # @param [Hash] attributes Model attributes in the form of hash
104
+ # @return [Object] Returns the model itself
105
+ def self.build_from_hash(attributes)
106
+ return nil unless attributes.is_a?(Hash)
107
+ attributes = attributes.transform_keys(&:to_sym)
108
+ transformed_hash = {}
109
+ openapi_types.each_pair do |key, type|
110
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
111
+ transformed_hash["#{key}"] = nil
112
+ elsif type =~ /\AArray<(.*)>/i
113
+ # check to ensure the input is an array given that the attribute
114
+ # is documented as an array but the input is not
115
+ if attributes[attribute_map[key]].is_a?(Array)
116
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
117
+ end
118
+ elsif !attributes[attribute_map[key]].nil?
119
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
120
+ end
121
+ end
122
+ new(transformed_hash)
123
+ end
124
+
125
+ # Deserializes the data based on type
126
+ # @param string type Data type
127
+ # @param string value Value to be deserialized
128
+ # @return [Object] Deserialized data
129
+ def self._deserialize(type, value)
130
+ case type.to_sym
131
+ when :Time
132
+ Time.parse(value)
133
+ when :Date
134
+ Date.parse(value)
135
+ when :String
136
+ value.to_s
137
+ when :Integer
138
+ value.to_i
139
+ when :Float
140
+ value.to_f
141
+ when :Boolean
142
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
143
+ true
144
+ else
145
+ false
146
+ end
147
+ when :Object
148
+ # generic object (usually a Hash), return directly
149
+ value
150
+ when /\AArray<(?<inner_type>.+)>\z/
151
+ inner_type = Regexp.last_match[:inner_type]
152
+ value.map { |v| _deserialize(inner_type, v) }
153
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
154
+ k_type = Regexp.last_match[:k_type]
155
+ v_type = Regexp.last_match[:v_type]
156
+ {}.tap do |hash|
157
+ value.each do |k, v|
158
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
159
+ end
160
+ end
161
+ else # model
162
+ # models (e.g. Pet) or oneOf
163
+ klass = Bandwidth.const_get(type)
164
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
165
+ end
166
+ end
167
+
168
+ # Returns the string representation of the object
169
+ # @return [String] String presentation of the object
170
+ def to_s
171
+ to_hash.to_s
172
+ end
173
+
174
+ # to_body is an alias to to_hash (backward compatibility)
175
+ # @return [Hash] Returns the object in the form of hash
176
+ def to_body
177
+ to_hash
178
+ end
179
+
180
+ # Returns the object in the form of hash
181
+ # @return [Hash] Returns the object in the form of hash
182
+ def to_hash
183
+ hash = {}
184
+ self.class.attribute_map.each_pair do |attr, param|
185
+ value = self.send(attr)
186
+ if value.nil?
187
+ is_nullable = self.class.openapi_nullable.include?(attr)
188
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
189
+ end
190
+
191
+ hash[param] = _to_hash(value)
192
+ end
193
+ hash
194
+ end
195
+
196
+ # Outputs non-array value in the form of hash
197
+ # For object, use to_hash. Otherwise, just return the value
198
+ # @param [Object] value Any valid value
199
+ # @return [Hash] Returns the value in the form of hash
200
+ def _to_hash(value)
201
+ if value.is_a?(Array)
202
+ value.compact.map { |v| _to_hash(v) }
203
+ elsif value.is_a?(Hash)
204
+ {}.tap do |hash|
205
+ value.each { |k, v| hash[k] = _to_hash(v) }
206
+ end
207
+ elsif value.respond_to? :to_hash
208
+ value.to_hash
209
+ else
210
+ value
211
+ end
212
+ end
213
+ end
214
+ end
@@ -11,5 +11,5 @@ OpenAPI Generator version: 7.0.0
11
11
  =end
12
12
 
13
13
  module Bandwidth
14
- VERSION = '11.2.0'
14
+ VERSION = '12.0.0'
15
15
  end
data/lib/bandwidth-sdk.rb CHANGED
@@ -25,6 +25,9 @@ require 'bandwidth-sdk/models/call_direction_enum'
25
25
  require 'bandwidth-sdk/models/call_recording_metadata'
26
26
  require 'bandwidth-sdk/models/call_state'
27
27
  require 'bandwidth-sdk/models/call_state_enum'
28
+ require 'bandwidth-sdk/models/call_transcription'
29
+ require 'bandwidth-sdk/models/call_transcription_metadata'
30
+ require 'bandwidth-sdk/models/call_transcription_response'
28
31
  require 'bandwidth-sdk/models/callback_method_enum'
29
32
  require 'bandwidth-sdk/models/code_request'
30
33
  require 'bandwidth-sdk/models/conference'
@@ -84,6 +87,8 @@ require 'bandwidth-sdk/models/priority_enum'
84
87
  require 'bandwidth-sdk/models/recording_available_callback'
85
88
  require 'bandwidth-sdk/models/recording_complete_callback'
86
89
  require 'bandwidth-sdk/models/recording_state_enum'
90
+ require 'bandwidth-sdk/models/recording_transcription_metadata'
91
+ require 'bandwidth-sdk/models/recording_transcriptions'
87
92
  require 'bandwidth-sdk/models/redirect_callback'
88
93
  require 'bandwidth-sdk/models/redirect_method_enum'
89
94
  require 'bandwidth-sdk/models/stir_shaken'
@@ -92,8 +97,6 @@ require 'bandwidth-sdk/models/tn_lookup_request_error'
92
97
  require 'bandwidth-sdk/models/transcribe_recording'
93
98
  require 'bandwidth-sdk/models/transcription'
94
99
  require 'bandwidth-sdk/models/transcription_available_callback'
95
- require 'bandwidth-sdk/models/transcription_list'
96
- require 'bandwidth-sdk/models/transcription_metadata'
97
100
  require 'bandwidth-sdk/models/transfer_answer_callback'
98
101
  require 'bandwidth-sdk/models/transfer_complete_callback'
99
102
  require 'bandwidth-sdk/models/transfer_disconnect_callback'
@@ -150,6 +153,7 @@ require 'bandwidth-sdk/api/messages_api'
150
153
  require 'bandwidth-sdk/api/phone_number_lookup_api'
151
154
  require 'bandwidth-sdk/api/recordings_api'
152
155
  require 'bandwidth-sdk/api/statistics_api'
156
+ require 'bandwidth-sdk/api/transcriptions_api'
153
157
 
154
158
  module Bandwidth
155
159
  class << self
@@ -180,7 +180,7 @@ describe 'CallsApi' do
180
180
 
181
181
  it 'causes an ArgumentError for a missing account_id' do
182
182
  expect {
183
- resp = @calls_api_instance.get_call_state(nil, '')
183
+ @calls_api_instance.get_call_state(nil, '')
184
184
  }.to raise_error(ArgumentError)
185
185
  end
186
186
 
@@ -202,7 +202,7 @@ describe 'CallsApi' do
202
202
  redirect_url: MANTECA_BASE_URL + '/bxml/pause'
203
203
  )
204
204
 
205
- data, status_code, headers = @calls_api_instance.update_call_with_http_info(BW_ACCOUNT_ID, call_id, update_call_body)
205
+ _data, status_code, headers = @calls_api_instance.update_call_with_http_info(BW_ACCOUNT_ID, call_id, update_call_body)
206
206
 
207
207
  expect(status_code).to eq(200)
208
208
  expect(headers).to eq(update_call_headers_stub)
@@ -210,7 +210,7 @@ describe 'CallsApi' do
210
210
 
211
211
  it 'causes an ArgumentError for a missing account_id' do
212
212
  expect {
213
- resp = @calls_api_instance.update_call(nil, '', {})
213
+ @calls_api_instance.update_call(nil, '', {})
214
214
  }.to raise_error(ArgumentError)
215
215
  end
216
216
 
@@ -235,7 +235,7 @@ describe 'CallsApi' do
235
235
 
236
236
  update_bxml = '<?xml version="1.0" encoding="UTF-8"?><Bxml><SpeakSentence locale="en_US" gender="female" voice="susan">This is a test bxml response</SpeakSentence><Pause duration="3"/></Bxml>'
237
237
 
238
- data, status_code, headers = @calls_api_instance.update_call_bxml_with_http_info(BW_ACCOUNT_ID, call_id, update_bxml)
238
+ _data, status_code = @calls_api_instance.update_call_bxml_with_http_info(BW_ACCOUNT_ID, call_id, update_bxml)
239
239
 
240
240
  expect(status_code).to eq(204)
241
241
  end
@@ -61,7 +61,7 @@ describe 'ConferencesApi' do
61
61
 
62
62
  it 'causes an ArgumentError for a missing account_id' do
63
63
  expect {
64
- resp = @conferences_api_instance.download_conference_recording(nil, '', '')
64
+ @conferences_api_instance.download_conference_recording(nil, '', '')
65
65
  }.to raise_error(ArgumentError)
66
66
  end
67
67
 
@@ -107,7 +107,7 @@ describe 'ConferencesApi' do
107
107
 
108
108
  it 'causes an ArgumentError for a missing account_id' do
109
109
  expect {
110
- resp = @conferences_api_instance.get_conference(nil, '')
110
+ @conferences_api_instance.get_conference(nil, '')
111
111
  }.to raise_error(ArgumentError)
112
112
  end
113
113
 
@@ -139,7 +139,7 @@ describe 'ConferencesApi' do
139
139
 
140
140
  it 'causes an ArgumentError for a missing account_id' do
141
141
  expect {
142
- resp = @conferences_api_instance.get_conference_member(nil, '', '')
142
+ @conferences_api_instance.get_conference_member(nil, '', '')
143
143
  }.to raise_error(ArgumentError)
144
144
  end
145
145
 
@@ -182,7 +182,7 @@ describe 'ConferencesApi' do
182
182
 
183
183
  it 'causes an ArgumentError for a missing account_id' do
184
184
  expect {
185
- resp = @conferences_api_instance.get_conference_recording(nil, '', '')
185
+ @conferences_api_instance.get_conference_recording(nil, '', '')
186
186
  }.to raise_error(ArgumentError)
187
187
  end
188
188
 
@@ -226,7 +226,7 @@ describe 'ConferencesApi' do
226
226
 
227
227
  it 'causes an ArgumentError for a missing account_id' do
228
228
  expect {
229
- resp = @conferences_api_instance.list_conference_recordings(nil, '')
229
+ @conferences_api_instance.list_conference_recordings(nil, '')
230
230
  }.to raise_error(ArgumentError)
231
231
  end
232
232
 
@@ -263,7 +263,7 @@ describe 'ConferencesApi' do
263
263
 
264
264
  it 'causes an ArgumentError for a missing account_id' do
265
265
  expect {
266
- resp = @conferences_api_instance.list_conferences(nil, {})
266
+ @conferences_api_instance.list_conferences(nil, {})
267
267
  }.to raise_error(ArgumentError)
268
268
  end
269
269
 
@@ -298,13 +298,13 @@ describe 'ConferencesApi' do
298
298
  fallback_password: 'password'
299
299
  )
300
300
 
301
- data, status_code, headers = @conferences_api_instance.update_conference_with_http_info(BW_ACCOUNT_ID, conference_id, update_conference_body)
301
+ _data, status_code = @conferences_api_instance.update_conference_with_http_info(BW_ACCOUNT_ID, conference_id, update_conference_body)
302
302
  expect(status_code).to eq(204)
303
303
  end
304
304
 
305
305
  it 'causes an ArgumentError for a missing account_id' do
306
306
  expect {
307
- resp = @conferences_api_instance.update_conference(nil, '', '')
307
+ @conferences_api_instance.update_conference(nil, '', '')
308
308
  }.to raise_error(ArgumentError)
309
309
  end
310
310
 
@@ -329,13 +329,13 @@ describe 'ConferencesApi' do
329
329
 
330
330
  update_bxml = '<?xml version="1.0" encoding="UTF-8"?><Bxml><StartRecording/><SpeakSentence locale="en_US" gender="female" voice="susan">This should be a conference recording.</SpeakSentence><StopRecording/></Bxml>'
331
331
 
332
- data, status_code, headers = @conferences_api_instance.update_conference_bxml_with_http_info(BW_ACCOUNT_ID, conference_id, update_bxml)
332
+ _data, status_code = @conferences_api_instance.update_conference_bxml_with_http_info(BW_ACCOUNT_ID, conference_id, update_bxml)
333
333
  expect(status_code).to eq(204)
334
334
  end
335
335
 
336
336
  it 'causes an ArgumentError for a missing account_id' do
337
337
  expect {
338
- resp = @conferences_api_instance.update_conference_bxml(nil, '', '')
338
+ @conferences_api_instance.update_conference_bxml(nil, '', '')
339
339
  }.to raise_error(ArgumentError)
340
340
  end
341
341
 
@@ -362,13 +362,13 @@ describe 'ConferencesApi' do
362
362
  mute: false
363
363
  )
364
364
 
365
- data, status_code, headers = @conferences_api_instance.update_conference_member_with_http_info(BW_ACCOUNT_ID, conference_id, call_id, update_conference_member)
365
+ _data, status_code = @conferences_api_instance.update_conference_member_with_http_info(BW_ACCOUNT_ID, conference_id, call_id, update_conference_member)
366
366
  expect(status_code).to eq(204)
367
367
  end
368
368
 
369
369
  it 'causes an ArgumentError for a missing account_id' do
370
370
  expect {
371
- resp = @conferences_api_instance.update_conference_member(nil, '', '', {})
371
+ @conferences_api_instance.update_conference_member(nil, '', '', {})
372
372
  }.to raise_error(ArgumentError)
373
373
  end
374
374
 
@@ -30,14 +30,14 @@ describe 'MediaApi' do
30
30
  stub_request(:delete, "https://messaging.bandwidth.com/api/v2/users/#{BW_ACCOUNT_ID}/media/#{media_name}").
31
31
  to_return(status: 204)
32
32
 
33
- data, status_code, headers = @media_api_instance.delete_media_with_http_info(BW_ACCOUNT_ID, media_name)
33
+ _data, status_code = @media_api_instance.delete_media_with_http_info(BW_ACCOUNT_ID, media_name)
34
34
 
35
35
  expect(status_code).to eq(204)
36
36
  end
37
37
 
38
38
  it 'causes an ArgumentError for a missing account_id' do
39
39
  expect {
40
- resp = @media_api_instance.delete_media(nil, '')
40
+ @media_api_instance.delete_media(nil, '')
41
41
  }.to raise_error(ArgumentError)
42
42
  end
43
43
 
@@ -63,7 +63,7 @@ describe 'MediaApi' do
63
63
 
64
64
  it 'causes an ArgumentError for a missing account_id' do
65
65
  expect {
66
- resp = @media_api_instance.get_media(nil, '')
66
+ @media_api_instance.get_media(nil, '')
67
67
  }.to raise_error(ArgumentError)
68
68
  end
69
69
 
@@ -93,7 +93,7 @@ describe 'MediaApi' do
93
93
 
94
94
  it 'causes an ArgumentError for a missing account_id' do
95
95
  expect {
96
- resp = @media_api_instance.list_media(nil)
96
+ @media_api_instance.list_media(nil)
97
97
  }.to raise_error(ArgumentError)
98
98
  end
99
99
  end
@@ -104,13 +104,13 @@ describe 'MediaApi' do
104
104
  stub_request(:put, "https://messaging.bandwidth.com/api/v2/users/#{BW_ACCOUNT_ID}/media/#{media_name}").
105
105
  to_return(status: 204)
106
106
 
107
- data, status_code, headers = @media_api_instance.upload_media_with_http_info(BW_ACCOUNT_ID, media_name, media_data)
107
+ _data, status_code = @media_api_instance.upload_media_with_http_info(BW_ACCOUNT_ID, media_name, media_data)
108
108
  expect(status_code).to eq(204)
109
109
  end
110
110
 
111
111
  it 'causes an ArgumentError for a missing account_id' do
112
112
  expect {
113
- resp = @media_api_instance.upload_media(nil, '', '')
113
+ @media_api_instance.upload_media(nil, '', '')
114
114
  }.to raise_error(ArgumentError)
115
115
  end
116
116
 
@@ -114,7 +114,7 @@ describe 'MessagesApi' do
114
114
 
115
115
  it 'causes an ArgumentError for a missing account_id' do
116
116
  expect {
117
- resp = @messaging_api_instance.create_message(nil, {})
117
+ @messaging_api_instance.create_message(nil, {})
118
118
  }.to raise_error(ArgumentError)
119
119
  end
120
120
 
@@ -186,7 +186,7 @@ describe 'MessagesApi' do
186
186
 
187
187
  it 'causes an ArgumentError for a missing account_id' do
188
188
  expect {
189
- resp = @messaging_api_instance.list_messages(nil)
189
+ @messaging_api_instance.list_messages(nil)
190
190
  }.to raise_error(ArgumentError)
191
191
  end
192
192
  end
@@ -41,7 +41,7 @@ describe 'MFAApi' do
41
41
  digits: digits
42
42
  )
43
43
 
44
- data, status_code, headers = @mfa_api_instance.generate_messaging_code_with_http_info(BW_ACCOUNT_ID, req_schema)
44
+ data, status_code = @mfa_api_instance.generate_messaging_code_with_http_info(BW_ACCOUNT_ID, req_schema)
45
45
 
46
46
  expect(status_code).to eq(200)
47
47
  expect(data).to be_instance_of(Bandwidth::MessagingCodeResponse)
@@ -50,7 +50,7 @@ describe 'MFAApi' do
50
50
 
51
51
  it 'causes an ArgumentError for a missing account_id' do
52
52
  expect {
53
- resp = @mfa_api_instance.generate_messaging_code(nil, {})
53
+ @mfa_api_instance.generate_messaging_code(nil, {})
54
54
  }.to raise_error(ArgumentError)
55
55
  end
56
56
 
@@ -75,7 +75,7 @@ describe 'MFAApi' do
75
75
  digits: digits
76
76
  )
77
77
 
78
- data, status_code, headers = @mfa_api_instance.generate_voice_code_with_http_info(BW_ACCOUNT_ID, req_schema)
78
+ data, status_code = @mfa_api_instance.generate_voice_code_with_http_info(BW_ACCOUNT_ID, req_schema)
79
79
 
80
80
  expect(status_code).to eq(200)
81
81
  expect(data).to be_instance_of(Bandwidth::VoiceCodeResponse)
@@ -84,7 +84,7 @@ describe 'MFAApi' do
84
84
 
85
85
  it 'causes an ArgumentError for a missing account_id' do
86
86
  expect {
87
- resp = @mfa_api_instance.generate_voice_code(nil, {})
87
+ @mfa_api_instance.generate_voice_code(nil, {})
88
88
  }.to raise_error(ArgumentError)
89
89
  end
90
90
 
@@ -108,7 +108,7 @@ describe 'MFAApi' do
108
108
  code: '12345'
109
109
  )
110
110
 
111
- data, status_code, headers = @mfa_api_instance.verify_code_with_http_info(BW_ACCOUNT_ID, req_schema)
111
+ data, status_code = @mfa_api_instance.verify_code_with_http_info(BW_ACCOUNT_ID, req_schema)
112
112
 
113
113
  expect(status_code).to eq(200)
114
114
  expect(data).to be_instance_of(Bandwidth::VerifyCodeResponse)
@@ -117,7 +117,7 @@ describe 'MFAApi' do
117
117
 
118
118
  it 'causes an ArgumentError for a missing account_id' do
119
119
  expect {
120
- resp = @mfa_api_instance.verify_code(nil, {})
120
+ @mfa_api_instance.verify_code(nil, {})
121
121
  }.to raise_error(ArgumentError)
122
122
  end
123
123
 
@@ -50,7 +50,7 @@ describe 'PhoneNumberLookupApi' do
50
50
 
51
51
  it 'causes an ArgumentError for a missing account_id' do
52
52
  expect {
53
- resp = @phone_number_lookup_api_instance.create_lookup(nil, {})
53
+ @phone_number_lookup_api_instance.create_lookup(nil, {})
54
54
  }.to raise_error(ArgumentError)
55
55
  end
56
56
 
@@ -87,7 +87,7 @@ describe 'PhoneNumberLookupApi' do
87
87
 
88
88
  it 'causes an ArgumentError for a missing account_id' do
89
89
  expect {
90
- resp = @phone_number_lookup_api_instance.get_lookup_status(nil, '')
90
+ @phone_number_lookup_api_instance.get_lookup_status(nil, '')
91
91
  }.to raise_error(ArgumentError)
92
92
  end
93
93