bandwidth-sdk 16.2.2 → 17.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.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +8 -8
  3. data/README.md +20 -7
  4. data/bandwidth.yml +551 -277
  5. data/coverage/.last_run.json +1 -1
  6. data/coverage/.resultset.json +197 -94
  7. data/coverage/index.html +2425 -1307
  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/PhoneNumberLookupApi.md +111 -38
  26. data/docs/RbmActionBase.md +1 -1
  27. data/docs/RbmSuggestionResponse.md +1 -1
  28. data/docs/SyncLookupRequest.md +18 -0
  29. data/lib/bandwidth-sdk/api/phone_number_lookup_api.rb +117 -47
  30. data/lib/bandwidth-sdk/configuration.rb +10 -4
  31. data/lib/bandwidth-sdk/models/async_lookup_request.rb +232 -0
  32. data/lib/bandwidth-sdk/models/completed_lookup_status_enum.rb +41 -0
  33. data/lib/bandwidth-sdk/models/create_async_bulk_lookup_response.rb +235 -0
  34. data/lib/bandwidth-sdk/models/{create_lookup_response.rb → create_async_bulk_lookup_response_data.rb} +5 -5
  35. data/lib/bandwidth-sdk/models/create_sync_lookup_response.rb +234 -0
  36. data/lib/bandwidth-sdk/models/{lookup_status.rb → create_sync_lookup_response_data.rb} +15 -27
  37. data/lib/bandwidth-sdk/models/deactivation_event_enum.rb +39 -0
  38. data/lib/bandwidth-sdk/models/get_async_bulk_lookup_response.rb +234 -0
  39. data/lib/bandwidth-sdk/models/get_async_bulk_lookup_response_data.rb +257 -0
  40. data/lib/bandwidth-sdk/models/{lookup_status_enum.rb → in_progress_lookup_status_enum.rb} +3 -3
  41. data/lib/bandwidth-sdk/models/latest_message_delivery_status_enum.rb +41 -0
  42. data/lib/bandwidth-sdk/models/line_type_enum.rb +42 -0
  43. data/lib/bandwidth-sdk/models/{lookup_request.rb → link_schema.rb} +31 -20
  44. data/lib/bandwidth-sdk/models/lookup_error_response.rb +235 -0
  45. data/lib/bandwidth-sdk/models/lookup_error_schema.rb +242 -0
  46. data/lib/bandwidth-sdk/models/{tn_lookup_request_error.rb → lookup_error_schema_meta.rb} +29 -8
  47. data/lib/bandwidth-sdk/models/lookup_result.rb +102 -63
  48. data/lib/bandwidth-sdk/models/sync_lookup_request.rb +232 -0
  49. data/lib/bandwidth-sdk/version.rb +1 -1
  50. data/lib/bandwidth-sdk.rb +17 -5
  51. data/spec/smoke/multi_channel_api_spec.rb +1 -1
  52. data/spec/smoke/phone_number_lookup_api_spec.rb +65 -70
  53. data/spec/unit/api/phone_number_lookup_api_spec.rb +71 -56
  54. metadata +36 -12
  55. data/docs/LookupStatus.md +0 -24
  56. data/docs/TnLookupRequestError.md +0 -18
@@ -16,45 +16,72 @@ require 'time'
16
16
  module Bandwidth
17
17
  # Carrier information results for the specified telephone number.
18
18
  class LookupResult
19
- # Our vendor's response code.
20
- attr_accessor :response_code
19
+ # The telephone number in E.164 format.
20
+ attr_accessor :phone_number
21
21
 
22
- # Message associated with the response code.
23
- attr_accessor :message
22
+ attr_accessor :line_type
24
23
 
25
- # The telephone number in E.164 format.
26
- attr_accessor :e_164_format
24
+ # The messaging service provider of the telephone number.
25
+ attr_accessor :messaging_provider
27
26
 
28
- # The formatted version of the telephone number.
29
- attr_accessor :formatted
27
+ # The voice service provider of the telephone number.
28
+ attr_accessor :voice_provider
30
29
 
31
- # The country of the telephone number.
32
- attr_accessor :country
30
+ # The country code of the telephone number in ISO 3166-1 alpha-3 format.
31
+ attr_accessor :country_code_a3
33
32
 
34
- # The line type of the telephone number.
35
- attr_accessor :line_type
33
+ # [DNI-Only](#section/DNI-Only). The carrier that reported a deactivation event for this phone number.
34
+ attr_accessor :deactivation_reporter
36
35
 
37
- # The messaging service provider of the telephone number.
38
- attr_accessor :line_provider
36
+ # [DNI-Only](#section/DNI-Only). The datetime the carrier reported a deactivation event.
37
+ attr_accessor :deactivation_date
39
38
 
40
- # The first half of the Home Network Identity (HNI).
41
- attr_accessor :mobile_country_code
39
+ attr_accessor :deactivation_event
40
+
41
+ attr_accessor :latest_message_delivery_status
42
+
43
+ # [DNI-Only](#section/DNI-Only). The date the phone number entered the status described in `latestMessageDeliveryStatus`. Think of this as the \"start time\" for that status. Value resets every time the `latestMessageDeliveryStatus` changes.
44
+ attr_accessor :initial_message_delivery_status_date
45
+
46
+ # [DNI-Only](#section/DNI-Only). The date bandwidth last received delivery status information for this phone number. Use this field to understand how up-to-date the `latestMessageDeliveryStatus` is. Value resets every time the `latestMessageDeliveryStatus` changes.
47
+ attr_accessor :latest_message_delivery_status_date
48
+
49
+ class EnumAttributeValidator
50
+ attr_reader :datatype
51
+ attr_reader :allowable_values
52
+
53
+ def initialize(datatype, allowable_values)
54
+ @allowable_values = allowable_values.map do |value|
55
+ case datatype.to_s
56
+ when /Integer/i
57
+ value.to_i
58
+ when /Float/i
59
+ value.to_f
60
+ else
61
+ value
62
+ end
63
+ end
64
+ end
42
65
 
43
- # The second half of the HNI.
44
- attr_accessor :mobile_network_code
66
+ def valid?(value)
67
+ !value || allowable_values.include?(value)
68
+ end
69
+ end
45
70
 
46
71
  # Attribute mapping from ruby-style variable name to JSON key.
47
72
  def self.attribute_map
48
73
  {
49
- :'response_code' => :'Response Code',
50
- :'message' => :'Message',
51
- :'e_164_format' => :'E.164 Format',
52
- :'formatted' => :'Formatted',
53
- :'country' => :'Country',
54
- :'line_type' => :'Line Type',
55
- :'line_provider' => :'Line Provider',
56
- :'mobile_country_code' => :'Mobile Country Code',
57
- :'mobile_network_code' => :'Mobile Network Code'
74
+ :'phone_number' => :'phoneNumber',
75
+ :'line_type' => :'lineType',
76
+ :'messaging_provider' => :'messagingProvider',
77
+ :'voice_provider' => :'voiceProvider',
78
+ :'country_code_a3' => :'countryCodeA3',
79
+ :'deactivation_reporter' => :'deactivationReporter',
80
+ :'deactivation_date' => :'deactivationDate',
81
+ :'deactivation_event' => :'deactivationEvent',
82
+ :'latest_message_delivery_status' => :'latestMessageDeliveryStatus',
83
+ :'initial_message_delivery_status_date' => :'initialMessageDeliveryStatusDate',
84
+ :'latest_message_delivery_status_date' => :'latestMessageDeliveryStatusDate'
58
85
  }
59
86
  end
60
87
 
@@ -66,15 +93,17 @@ module Bandwidth
66
93
  # Attribute type mapping.
67
94
  def self.openapi_types
68
95
  {
69
- :'response_code' => :'Integer',
70
- :'message' => :'String',
71
- :'e_164_format' => :'String',
72
- :'formatted' => :'String',
73
- :'country' => :'String',
74
- :'line_type' => :'String',
75
- :'line_provider' => :'String',
76
- :'mobile_country_code' => :'String',
77
- :'mobile_network_code' => :'String'
96
+ :'phone_number' => :'String',
97
+ :'line_type' => :'LineTypeEnum',
98
+ :'messaging_provider' => :'String',
99
+ :'voice_provider' => :'String',
100
+ :'country_code_a3' => :'String',
101
+ :'deactivation_reporter' => :'String',
102
+ :'deactivation_date' => :'String',
103
+ :'deactivation_event' => :'DeactivationEventEnum',
104
+ :'latest_message_delivery_status' => :'LatestMessageDeliveryStatusEnum',
105
+ :'initial_message_delivery_status_date' => :'Date',
106
+ :'latest_message_delivery_status_date' => :'Date'
78
107
  }
79
108
  end
80
109
 
@@ -99,40 +128,48 @@ module Bandwidth
99
128
  h[k.to_sym] = v
100
129
  }
101
130
 
102
- if attributes.key?(:'response_code')
103
- self.response_code = attributes[:'response_code']
131
+ if attributes.key?(:'phone_number')
132
+ self.phone_number = attributes[:'phone_number']
133
+ end
134
+
135
+ if attributes.key?(:'line_type')
136
+ self.line_type = attributes[:'line_type']
104
137
  end
105
138
 
106
- if attributes.key?(:'message')
107
- self.message = attributes[:'message']
139
+ if attributes.key?(:'messaging_provider')
140
+ self.messaging_provider = attributes[:'messaging_provider']
108
141
  end
109
142
 
110
- if attributes.key?(:'e_164_format')
111
- self.e_164_format = attributes[:'e_164_format']
143
+ if attributes.key?(:'voice_provider')
144
+ self.voice_provider = attributes[:'voice_provider']
112
145
  end
113
146
 
114
- if attributes.key?(:'formatted')
115
- self.formatted = attributes[:'formatted']
147
+ if attributes.key?(:'country_code_a3')
148
+ self.country_code_a3 = attributes[:'country_code_a3']
116
149
  end
117
150
 
118
- if attributes.key?(:'country')
119
- self.country = attributes[:'country']
151
+ if attributes.key?(:'deactivation_reporter')
152
+ self.deactivation_reporter = attributes[:'deactivation_reporter']
120
153
  end
121
154
 
122
- if attributes.key?(:'line_type')
123
- self.line_type = attributes[:'line_type']
155
+ if attributes.key?(:'deactivation_date')
156
+ self.deactivation_date = attributes[:'deactivation_date']
157
+ end
158
+
159
+ if attributes.key?(:'deactivation_event')
160
+ self.deactivation_event = attributes[:'deactivation_event']
124
161
  end
125
162
 
126
- if attributes.key?(:'line_provider')
127
- self.line_provider = attributes[:'line_provider']
163
+ if attributes.key?(:'latest_message_delivery_status')
164
+ self.latest_message_delivery_status = attributes[:'latest_message_delivery_status']
128
165
  end
129
166
 
130
- if attributes.key?(:'mobile_country_code')
131
- self.mobile_country_code = attributes[:'mobile_country_code']
167
+ if attributes.key?(:'initial_message_delivery_status_date')
168
+ self.initial_message_delivery_status_date = attributes[:'initial_message_delivery_status_date']
132
169
  end
133
170
 
134
- if attributes.key?(:'mobile_network_code')
135
- self.mobile_network_code = attributes[:'mobile_network_code']
171
+ if attributes.key?(:'latest_message_delivery_status_date')
172
+ self.latest_message_delivery_status_date = attributes[:'latest_message_delivery_status_date']
136
173
  end
137
174
  end
138
175
 
@@ -156,15 +193,17 @@ module Bandwidth
156
193
  def ==(o)
157
194
  return true if self.equal?(o)
158
195
  self.class == o.class &&
159
- response_code == o.response_code &&
160
- message == o.message &&
161
- e_164_format == o.e_164_format &&
162
- formatted == o.formatted &&
163
- country == o.country &&
196
+ phone_number == o.phone_number &&
164
197
  line_type == o.line_type &&
165
- line_provider == o.line_provider &&
166
- mobile_country_code == o.mobile_country_code &&
167
- mobile_network_code == o.mobile_network_code
198
+ messaging_provider == o.messaging_provider &&
199
+ voice_provider == o.voice_provider &&
200
+ country_code_a3 == o.country_code_a3 &&
201
+ deactivation_reporter == o.deactivation_reporter &&
202
+ deactivation_date == o.deactivation_date &&
203
+ deactivation_event == o.deactivation_event &&
204
+ latest_message_delivery_status == o.latest_message_delivery_status &&
205
+ initial_message_delivery_status_date == o.initial_message_delivery_status_date &&
206
+ latest_message_delivery_status_date == o.latest_message_delivery_status_date
168
207
  end
169
208
 
170
209
  # @see the `==` method
@@ -176,7 +215,7 @@ module Bandwidth
176
215
  # Calculates hash code according to all attributes.
177
216
  # @return [Integer] Hash code
178
217
  def hash
179
- [response_code, message, e_164_format, formatted, country, line_type, line_provider, mobile_country_code, mobile_network_code].hash
218
+ [phone_number, line_type, messaging_provider, voice_provider, country_code_a3, deactivation_reporter, deactivation_date, deactivation_event, latest_message_delivery_status, initial_message_delivery_status_date, latest_message_delivery_status_date].hash
180
219
  end
181
220
 
182
221
  # Builds the object from hash
@@ -0,0 +1,232 @@
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.8.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Bandwidth
17
+ class SyncLookupRequest
18
+ # Telephone numbers in E.164 format.
19
+ attr_accessor :phone_numbers
20
+
21
+ # Attribute mapping from ruby-style variable name to JSON key.
22
+ def self.attribute_map
23
+ {
24
+ :'phone_numbers' => :'phoneNumbers'
25
+ }
26
+ end
27
+
28
+ # Returns all the JSON keys this model knows about
29
+ def self.acceptable_attributes
30
+ attribute_map.values
31
+ end
32
+
33
+ # Attribute type mapping.
34
+ def self.openapi_types
35
+ {
36
+ :'phone_numbers' => :'Array<String>'
37
+ }
38
+ end
39
+
40
+ # List of attributes with nullable: true
41
+ def self.openapi_nullable
42
+ Set.new([
43
+ ])
44
+ end
45
+
46
+ # Initializes the object
47
+ # @param [Hash] attributes Model attributes in the form of hash
48
+ def initialize(attributes = {})
49
+ if (!attributes.is_a?(Hash))
50
+ fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::SyncLookupRequest` initialize method'
51
+ end
52
+
53
+ # check to see if the attribute exists and convert string to symbol for hash key
54
+ attributes = attributes.each_with_object({}) { |(k, v), h|
55
+ if (!self.class.attribute_map.key?(k.to_sym))
56
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Bandwidth::SyncLookupRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
57
+ end
58
+ h[k.to_sym] = v
59
+ }
60
+
61
+ if attributes.key?(:'phone_numbers')
62
+ if (value = attributes[:'phone_numbers']).is_a?(Array)
63
+ self.phone_numbers = value
64
+ end
65
+ else
66
+ self.phone_numbers = nil
67
+ end
68
+ end
69
+
70
+ # Show invalid properties with the reasons. Usually used together with valid?
71
+ # @return Array for valid properties with the reasons
72
+ def list_invalid_properties
73
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
74
+ invalid_properties = Array.new
75
+ if @phone_numbers.nil?
76
+ invalid_properties.push('invalid value for "phone_numbers", phone_numbers cannot be nil.')
77
+ end
78
+
79
+ invalid_properties
80
+ end
81
+
82
+ # Check to see if the all the properties in the model are valid
83
+ # @return true if the model is valid
84
+ def valid?
85
+ warn '[DEPRECATED] the `valid?` method is obsolete'
86
+ return false if @phone_numbers.nil?
87
+ true
88
+ end
89
+
90
+ # Custom attribute writer method with validation
91
+ # @param [Object] phone_numbers Value to be assigned
92
+ def phone_numbers=(phone_numbers)
93
+ if phone_numbers.nil?
94
+ fail ArgumentError, 'phone_numbers cannot be nil'
95
+ end
96
+
97
+ @phone_numbers = phone_numbers
98
+ end
99
+
100
+ # Checks equality by comparing each attribute.
101
+ # @param [Object] Object to be compared
102
+ def ==(o)
103
+ return true if self.equal?(o)
104
+ self.class == o.class &&
105
+ phone_numbers == o.phone_numbers
106
+ end
107
+
108
+ # @see the `==` method
109
+ # @param [Object] Object to be compared
110
+ def eql?(o)
111
+ self == o
112
+ end
113
+
114
+ # Calculates hash code according to all attributes.
115
+ # @return [Integer] Hash code
116
+ def hash
117
+ [phone_numbers].hash
118
+ end
119
+
120
+ # Builds the object from hash
121
+ # @param [Hash] attributes Model attributes in the form of hash
122
+ # @return [Object] Returns the model itself
123
+ def self.build_from_hash(attributes)
124
+ return nil unless attributes.is_a?(Hash)
125
+ attributes = attributes.transform_keys(&:to_sym)
126
+ transformed_hash = {}
127
+ openapi_types.each_pair do |key, type|
128
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
129
+ transformed_hash["#{key}"] = nil
130
+ elsif type =~ /\AArray<(.*)>/i
131
+ # check to ensure the input is an array given that the attribute
132
+ # is documented as an array but the input is not
133
+ if attributes[attribute_map[key]].is_a?(Array)
134
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
135
+ end
136
+ elsif !attributes[attribute_map[key]].nil?
137
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
138
+ end
139
+ end
140
+ new(transformed_hash)
141
+ end
142
+
143
+ # Deserializes the data based on type
144
+ # @param string type Data type
145
+ # @param string value Value to be deserialized
146
+ # @return [Object] Deserialized data
147
+ def self._deserialize(type, value)
148
+ case type.to_sym
149
+ when :Time
150
+ Time.parse(value)
151
+ when :Date
152
+ Date.parse(value)
153
+ when :String
154
+ value.to_s
155
+ when :Integer
156
+ value.to_i
157
+ when :Float
158
+ value.to_f
159
+ when :Boolean
160
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
161
+ true
162
+ else
163
+ false
164
+ end
165
+ when :Object
166
+ # generic object (usually a Hash), return directly
167
+ value
168
+ when /\AArray<(?<inner_type>.+)>\z/
169
+ inner_type = Regexp.last_match[:inner_type]
170
+ value.map { |v| _deserialize(inner_type, v) }
171
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
172
+ k_type = Regexp.last_match[:k_type]
173
+ v_type = Regexp.last_match[:v_type]
174
+ {}.tap do |hash|
175
+ value.each do |k, v|
176
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
177
+ end
178
+ end
179
+ else # model
180
+ # models (e.g. Pet) or oneOf
181
+ klass = Bandwidth.const_get(type)
182
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
183
+ end
184
+ end
185
+
186
+ # Returns the string representation of the object
187
+ # @return [String] String presentation of the object
188
+ def to_s
189
+ to_hash.to_s
190
+ end
191
+
192
+ # to_body is an alias to to_hash (backward compatibility)
193
+ # @return [Hash] Returns the object in the form of hash
194
+ def to_body
195
+ to_hash
196
+ end
197
+
198
+ # Returns the object in the form of hash
199
+ # @return [Hash] Returns the object in the form of hash
200
+ def to_hash
201
+ hash = {}
202
+ self.class.attribute_map.each_pair do |attr, param|
203
+ value = self.send(attr)
204
+ if value.nil?
205
+ is_nullable = self.class.openapi_nullable.include?(attr)
206
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
207
+ end
208
+
209
+ hash[param] = _to_hash(value)
210
+ end
211
+ hash
212
+ end
213
+
214
+ # Outputs non-array value in the form of hash
215
+ # For object, use to_hash. Otherwise, just return the value
216
+ # @param [Object] value Any valid value
217
+ # @return [Hash] Returns the value in the form of hash
218
+ def _to_hash(value)
219
+ if value.is_a?(Array)
220
+ value.compact.map { |v| _to_hash(v) }
221
+ elsif value.is_a?(Hash)
222
+ {}.tap do |hash|
223
+ value.each { |k, v| hash[k] = _to_hash(v) }
224
+ end
225
+ elsif value.respond_to? :to_hash
226
+ value.to_hash
227
+ else
228
+ value
229
+ end
230
+ end
231
+ end
232
+ end
@@ -11,5 +11,5 @@ Generator version: 7.8.0
11
11
  =end
12
12
 
13
13
  module Bandwidth
14
- VERSION = '16.2.2'
14
+ VERSION = '17.0.0'
15
15
  end
data/lib/bandwidth-sdk.rb CHANGED
@@ -21,6 +21,7 @@ require 'bandwidth-sdk/models/account_statistics'
21
21
  require 'bandwidth-sdk/models/additional_denial_reason'
22
22
  require 'bandwidth-sdk/models/address'
23
23
  require 'bandwidth-sdk/models/answer_callback'
24
+ require 'bandwidth-sdk/models/async_lookup_request'
24
25
  require 'bandwidth-sdk/models/blocked_webhook'
25
26
  require 'bandwidth-sdk/models/bridge_complete_callback'
26
27
  require 'bandwidth-sdk/models/bridge_target_complete_callback'
@@ -39,6 +40,7 @@ require 'bandwidth-sdk/models/callback'
39
40
  require 'bandwidth-sdk/models/callback_method_enum'
40
41
  require 'bandwidth-sdk/models/card_width_enum'
41
42
  require 'bandwidth-sdk/models/code_request'
43
+ require 'bandwidth-sdk/models/completed_lookup_status_enum'
42
44
  require 'bandwidth-sdk/models/conference'
43
45
  require 'bandwidth-sdk/models/conference_completed_callback'
44
46
  require 'bandwidth-sdk/models/conference_created_callback'
@@ -50,11 +52,15 @@ require 'bandwidth-sdk/models/conference_recording_metadata'
50
52
  require 'bandwidth-sdk/models/conference_redirect_callback'
51
53
  require 'bandwidth-sdk/models/conference_state_enum'
52
54
  require 'bandwidth-sdk/models/contact'
55
+ require 'bandwidth-sdk/models/create_async_bulk_lookup_response'
56
+ require 'bandwidth-sdk/models/create_async_bulk_lookup_response_data'
53
57
  require 'bandwidth-sdk/models/create_call'
54
58
  require 'bandwidth-sdk/models/create_call_response'
55
- require 'bandwidth-sdk/models/create_lookup_response'
56
59
  require 'bandwidth-sdk/models/create_message_request_error'
57
60
  require 'bandwidth-sdk/models/create_multi_channel_message_response'
61
+ require 'bandwidth-sdk/models/create_sync_lookup_response'
62
+ require 'bandwidth-sdk/models/create_sync_lookup_response_data'
63
+ require 'bandwidth-sdk/models/deactivation_event_enum'
58
64
  require 'bandwidth-sdk/models/disconnect_callback'
59
65
  require 'bandwidth-sdk/models/diversion'
60
66
  require 'bandwidth-sdk/models/dtmf_callback'
@@ -65,18 +71,24 @@ require 'bandwidth-sdk/models/failure_webhook'
65
71
  require 'bandwidth-sdk/models/field_error'
66
72
  require 'bandwidth-sdk/models/file_format_enum'
67
73
  require 'bandwidth-sdk/models/gather_callback'
74
+ require 'bandwidth-sdk/models/get_async_bulk_lookup_response'
75
+ require 'bandwidth-sdk/models/get_async_bulk_lookup_response_data'
76
+ require 'bandwidth-sdk/models/in_progress_lookup_status_enum'
68
77
  require 'bandwidth-sdk/models/inbound_callback'
69
78
  require 'bandwidth-sdk/models/inbound_callback_message'
70
79
  require 'bandwidth-sdk/models/inbound_callback_type_enum'
71
80
  require 'bandwidth-sdk/models/initiate_callback'
81
+ require 'bandwidth-sdk/models/latest_message_delivery_status_enum'
82
+ require 'bandwidth-sdk/models/line_type_enum'
72
83
  require 'bandwidth-sdk/models/link'
84
+ require 'bandwidth-sdk/models/link_schema'
73
85
  require 'bandwidth-sdk/models/links_object'
74
86
  require 'bandwidth-sdk/models/list_message_direction_enum'
75
87
  require 'bandwidth-sdk/models/list_message_item'
76
- require 'bandwidth-sdk/models/lookup_request'
88
+ require 'bandwidth-sdk/models/lookup_error_response'
89
+ require 'bandwidth-sdk/models/lookup_error_schema'
90
+ require 'bandwidth-sdk/models/lookup_error_schema_meta'
77
91
  require 'bandwidth-sdk/models/lookup_result'
78
- require 'bandwidth-sdk/models/lookup_status'
79
- require 'bandwidth-sdk/models/lookup_status_enum'
80
92
  require 'bandwidth-sdk/models/machine_detection_complete_callback'
81
93
  require 'bandwidth-sdk/models/machine_detection_configuration'
82
94
  require 'bandwidth-sdk/models/machine_detection_mode_enum'
@@ -138,6 +150,7 @@ require 'bandwidth-sdk/models/status_callback'
138
150
  require 'bandwidth-sdk/models/status_callback_message'
139
151
  require 'bandwidth-sdk/models/status_callback_type_enum'
140
152
  require 'bandwidth-sdk/models/stir_shaken'
153
+ require 'bandwidth-sdk/models/sync_lookup_request'
141
154
  require 'bandwidth-sdk/models/telephone_number'
142
155
  require 'bandwidth-sdk/models/tfv_basic_authentication'
143
156
  require 'bandwidth-sdk/models/tfv_callback_status_enum'
@@ -147,7 +160,6 @@ require 'bandwidth-sdk/models/tfv_status_enum'
147
160
  require 'bandwidth-sdk/models/tfv_submission_info'
148
161
  require 'bandwidth-sdk/models/tfv_submission_wrapper'
149
162
  require 'bandwidth-sdk/models/thumbnail_alignment_enum'
150
- require 'bandwidth-sdk/models/tn_lookup_request_error'
151
163
  require 'bandwidth-sdk/models/transcribe_recording'
152
164
  require 'bandwidth-sdk/models/transcription'
153
165
  require 'bandwidth-sdk/models/transcription_available_callback'
@@ -1,4 +1,4 @@
1
- # Unit tests for Bandwidth::MultiChannelApi
1
+ # Integration tests for Bandwidth::MultiChannelApi
2
2
  describe 'MultiChannelApi' do
3
3
  before(:all) do
4
4
  Bandwidth.configure do |config|