bandwidth-sdk 16.2.2 → 17.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +9 -9
  3. data/README.md +31 -10
  4. data/bandwidth.yml +629 -299
  5. data/coverage/.last_run.json +1 -1
  6. data/coverage/.resultset.json +241 -119
  7. data/coverage/index.html +2752 -1364
  8. data/docs/AsyncLookupRequest.md +18 -0
  9. data/docs/{LookupRequest.md → CompletedLookupStatusEnum.md} +2 -5
  10. data/docs/CreateAsyncBulkLookupResponse.md +22 -0
  11. data/docs/{CreateLookupResponse.md → CreateAsyncBulkLookupResponseData.md} +4 -4
  12. data/docs/CreateSyncLookupResponse.md +22 -0
  13. data/docs/CreateSyncLookupResponseData.md +22 -0
  14. data/docs/DeactivationEventEnum.md +15 -0
  15. data/docs/GetAsyncBulkLookupResponse.md +22 -0
  16. data/docs/GetAsyncBulkLookupResponseData.md +22 -0
  17. data/docs/InProgressLookupStatusEnum.md +15 -0
  18. data/docs/LatestMessageDeliveryStatusEnum.md +15 -0
  19. data/docs/{LookupStatusEnum.md → LineTypeEnum.md} +2 -2
  20. data/docs/LinkSchema.md +22 -0
  21. data/docs/LookupErrorResponse.md +22 -0
  22. data/docs/LookupErrorSchema.md +24 -0
  23. data/docs/LookupErrorSchemaMeta.md +22 -0
  24. data/docs/LookupResult.md +22 -18
  25. data/docs/MultiChannelAction.md +32 -81
  26. data/docs/MultiChannelApi.md +1 -1
  27. data/docs/{MultiChannelChannelListObject.md → MultiChannelChannelListMMSObject.md} +3 -3
  28. data/docs/{MultiChannelMessageResponseDataChannelListInner.md → MultiChannelChannelListMMSResponseObject.md} +3 -3
  29. data/docs/MultiChannelChannelListObjectBase.md +22 -0
  30. data/docs/MultiChannelChannelListOwnerObject.md +18 -0
  31. data/docs/MultiChannelChannelListRBMObject.md +24 -0
  32. data/docs/{MultiChannelChannelListObjectContent.md → MultiChannelChannelListRBMObjectAllOfContent.md} +6 -10
  33. data/docs/MultiChannelChannelListRBMResponseObject.md +26 -0
  34. data/docs/MultiChannelChannelListRequestObject.md +24 -0
  35. data/docs/MultiChannelChannelListResponseObject.md +26 -0
  36. data/docs/MultiChannelChannelListSMSObject.md +24 -0
  37. data/docs/MultiChannelChannelListSMSResponseObject.md +26 -0
  38. data/docs/MultiChannelMessageRequest.md +1 -1
  39. data/docs/MultiChannelMessageResponseData.md +1 -1
  40. data/docs/PhoneNumberLookupApi.md +111 -38
  41. data/docs/RbmActionBase.md +1 -1
  42. data/docs/RbmSuggestionResponse.md +1 -1
  43. data/docs/SyncLookupRequest.md +18 -0
  44. data/lib/bandwidth-sdk/api/phone_number_lookup_api.rb +117 -47
  45. data/lib/bandwidth-sdk/configuration.rb +10 -4
  46. data/lib/bandwidth-sdk/models/async_lookup_request.rb +232 -0
  47. data/lib/bandwidth-sdk/models/completed_lookup_status_enum.rb +41 -0
  48. data/lib/bandwidth-sdk/models/create_async_bulk_lookup_response.rb +235 -0
  49. data/lib/bandwidth-sdk/models/{create_lookup_response.rb → create_async_bulk_lookup_response_data.rb} +5 -5
  50. data/lib/bandwidth-sdk/models/create_sync_lookup_response.rb +234 -0
  51. data/lib/bandwidth-sdk/models/{lookup_status.rb → create_sync_lookup_response_data.rb} +15 -27
  52. data/lib/bandwidth-sdk/models/deactivation_event_enum.rb +39 -0
  53. data/lib/bandwidth-sdk/models/get_async_bulk_lookup_response.rb +234 -0
  54. data/lib/bandwidth-sdk/models/get_async_bulk_lookup_response_data.rb +257 -0
  55. data/lib/bandwidth-sdk/models/{lookup_status_enum.rb → in_progress_lookup_status_enum.rb} +3 -3
  56. data/lib/bandwidth-sdk/models/latest_message_delivery_status_enum.rb +41 -0
  57. data/lib/bandwidth-sdk/models/line_type_enum.rb +42 -0
  58. data/lib/bandwidth-sdk/models/{tn_lookup_request_error.rb → link_schema.rb} +31 -11
  59. data/lib/bandwidth-sdk/models/lookup_error_response.rb +235 -0
  60. data/lib/bandwidth-sdk/models/lookup_error_schema.rb +242 -0
  61. data/lib/bandwidth-sdk/models/lookup_error_schema_meta.rb +234 -0
  62. data/lib/bandwidth-sdk/models/lookup_result.rb +102 -63
  63. data/lib/bandwidth-sdk/models/multi_channel_action.rb +71 -26
  64. data/lib/bandwidth-sdk/models/{multi_channel_channel_list_object.rb → multi_channel_channel_list_mms_object.rb} +11 -4
  65. data/lib/bandwidth-sdk/models/{multi_channel_message_response_data_channel_list_inner.rb → multi_channel_channel_list_mms_response_object.rb} +6 -5
  66. data/lib/bandwidth-sdk/models/multi_channel_channel_list_object_base.rb +275 -0
  67. data/lib/bandwidth-sdk/models/{lookup_request.rb → multi_channel_channel_list_owner_object.rb} +15 -17
  68. data/lib/bandwidth-sdk/models/multi_channel_channel_list_rbm_object.rb +298 -0
  69. data/lib/bandwidth-sdk/models/{multi_channel_channel_list_object_content.rb → multi_channel_channel_list_rbm_object_all_of_content.rb} +2 -4
  70. data/lib/bandwidth-sdk/models/multi_channel_channel_list_rbm_response_object.rb +316 -0
  71. data/lib/bandwidth-sdk/models/multi_channel_channel_list_request_object.rb +104 -0
  72. data/lib/bandwidth-sdk/models/multi_channel_channel_list_response_object.rb +104 -0
  73. data/lib/bandwidth-sdk/models/multi_channel_channel_list_sms_object.rb +298 -0
  74. data/lib/bandwidth-sdk/models/multi_channel_channel_list_sms_response_object.rb +316 -0
  75. data/lib/bandwidth-sdk/models/multi_channel_message_request.rb +1 -1
  76. data/lib/bandwidth-sdk/models/multi_channel_message_response_data.rb +1 -1
  77. data/lib/bandwidth-sdk/models/sync_lookup_request.rb +232 -0
  78. data/lib/bandwidth-sdk/version.rb +1 -1
  79. data/lib/bandwidth-sdk.rb +28 -8
  80. data/spec/smoke/multi_channel_api_spec.rb +125 -24
  81. data/spec/smoke/phone_number_lookup_api_spec.rb +65 -70
  82. data/spec/unit/api/multi_channel_api_spec.rb +13 -2
  83. data/spec/unit/api/phone_number_lookup_api_spec.rb +71 -56
  84. metadata +58 -18
  85. data/docs/LookupStatus.md +0 -24
  86. data/docs/TnLookupRequestError.md +0 -18
@@ -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
@@ -16,8 +16,8 @@ require 'time'
16
16
  module Bandwidth
17
17
  module MultiChannelAction
18
18
  class << self
19
- # List of class defined in oneOf (OpenAPI v3)
20
- def openapi_one_of
19
+ # List of class defined in anyOf (OpenAPI v3)
20
+ def openapi_any_of
21
21
  [
22
22
  :'MultiChannelActionCalendarEvent',
23
23
  :'RbmActionBase',
@@ -27,35 +27,80 @@ module Bandwidth
27
27
  ]
28
28
  end
29
29
 
30
- # Discriminator's property name (OpenAPI v3)
31
- def openapi_discriminator_name
32
- :'type'
33
- end
34
-
35
- # Discriminator's mapping (OpenAPI v3)
36
- def openapi_discriminator_mapping
37
- {
38
- :'CREATE_CALENDAR_EVENT' => :'MultiChannelActionCalendarEvent',
39
- :'DIAL_PHONE' => :'RbmActionDial',
40
- :'OPEN_URL' => :'RbmActionOpenUrl',
41
- :'REPLY' => :'RbmActionBase',
42
- :'REQUEST_LOCATION' => :'RbmActionBase',
43
- :'SHOW_LOCATION' => :'RbmActionViewLocation'
44
- }
45
- end
46
-
47
30
  # Builds the object
48
- # @param [Mixed] Data to be matched against the list of oneOf items
31
+ # @param [Mixed] Data to be matched against the list of anyOf items
49
32
  # @return [Object] Returns the model or the data itself
50
33
  def build(data)
51
- discriminator_value = data[openapi_discriminator_name]
52
- return nil if discriminator_value.nil?
53
-
54
- klass = openapi_discriminator_mapping[discriminator_value.to_s.to_sym]
55
- return nil unless klass
34
+ # Go through the list of anyOf items and attempt to identify the appropriate one.
35
+ # Note:
36
+ # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 })
37
+ # due to the way the deserialization is made in the base_object template (it just casts without verifying).
38
+ # - TODO: scalar values are de facto behaving as if they were nullable.
39
+ # - TODO: logging when debugging is set.
40
+ openapi_any_of.each do |klass|
41
+ begin
42
+ next if klass == :AnyType # "nullable: true"
43
+ typed_data = find_and_cast_into_type(klass, data)
44
+ return typed_data if typed_data
45
+ rescue # rescue all errors so we keep iterating even if the current item lookup raises
46
+ end
47
+ end
56
48
 
57
- Bandwidth.const_get(klass).build_from_hash(data)
49
+ openapi_any_of.include?(:AnyType) ? data : nil
58
50
  end
51
+
52
+ private
53
+
54
+ SchemaMismatchError = Class.new(StandardError)
55
+
56
+ # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse.
57
+ def find_and_cast_into_type(klass, data)
58
+ return if data.nil?
59
+
60
+ case klass.to_s
61
+ when 'Boolean'
62
+ return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass)
63
+ when 'Float'
64
+ return data if data.instance_of?(Float)
65
+ when 'Integer'
66
+ return data if data.instance_of?(Integer)
67
+ when 'Time'
68
+ return Time.parse(data)
69
+ when 'Date'
70
+ return Date.parse(data)
71
+ when 'String'
72
+ return data if data.instance_of?(String)
73
+ when 'Object' # "type: object"
74
+ return data if data.instance_of?(Hash)
75
+ when /\AArray<(?<sub_type>.+)>\z/ # "type: array"
76
+ if data.instance_of?(Array)
77
+ sub_type = Regexp.last_match[:sub_type]
78
+ return data.map { |item| find_and_cast_into_type(sub_type, item) }
79
+ end
80
+ when /\AHash<String, (?<sub_type>.+)>\z/ # "type: object" with "additionalProperties: { ... }"
81
+ if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) }
82
+ sub_type = Regexp.last_match[:sub_type]
83
+ return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) }
84
+ end
85
+ else # model
86
+ const = Bandwidth.const_get(klass)
87
+ if const
88
+ if const.respond_to?(:openapi_any_of) # nested anyOf model
89
+ model = const.build(data)
90
+ return model if model
91
+ else
92
+ # raise if data contains keys that are not known to the model
93
+ raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty?
94
+ model = const.build_from_hash(data)
95
+ return model if model
96
+ end
97
+ end
98
+ end
99
+
100
+ raise # if no match by now, raise
101
+ rescue
102
+ raise SchemaMismatchError, "#{data} doesn't match the #{klass} type"
103
+ end
59
104
  end
60
105
  end
61
106
  end
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Bandwidth
17
- class MultiChannelChannelListObject
17
+ class MultiChannelChannelListMMSObject
18
18
  # The sender ID of the message. This could be an alphanumeric sender ID.
19
19
  attr_accessor :from
20
20
 
@@ -68,7 +68,7 @@ module Bandwidth
68
68
  :'from' => :'String',
69
69
  :'application_id' => :'String',
70
70
  :'channel' => :'MultiChannelMessageChannelEnum',
71
- :'content' => :'MultiChannelChannelListObjectContent'
71
+ :'content' => :'MmsMessageContent'
72
72
  }
73
73
  end
74
74
 
@@ -78,17 +78,24 @@ module Bandwidth
78
78
  ])
79
79
  end
80
80
 
81
+ # List of class defined in allOf (OpenAPI v3)
82
+ def self.openapi_all_of
83
+ [
84
+ :'MultiChannelChannelListObjectBase'
85
+ ]
86
+ end
87
+
81
88
  # Initializes the object
82
89
  # @param [Hash] attributes Model attributes in the form of hash
83
90
  def initialize(attributes = {})
84
91
  if (!attributes.is_a?(Hash))
85
- fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::MultiChannelChannelListObject` initialize method'
92
+ fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::MultiChannelChannelListMMSObject` initialize method'
86
93
  end
87
94
 
88
95
  # check to see if the attribute exists and convert string to symbol for hash key
89
96
  attributes = attributes.each_with_object({}) { |(k, v), h|
90
97
  if (!self.class.attribute_map.key?(k.to_sym))
91
- fail ArgumentError, "`#{k}` is not a valid attribute in `Bandwidth::MultiChannelChannelListObject`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
98
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Bandwidth::MultiChannelChannelListMMSObject`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
92
99
  end
93
100
  h[k.to_sym] = v
94
101
  }
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Bandwidth
17
- class MultiChannelMessageResponseDataChannelListInner
17
+ class MultiChannelChannelListMMSResponseObject
18
18
  # The sender ID of the message. This could be an alphanumeric sender ID.
19
19
  attr_accessor :from
20
20
 
@@ -72,7 +72,7 @@ module Bandwidth
72
72
  :'from' => :'String',
73
73
  :'application_id' => :'String',
74
74
  :'channel' => :'MultiChannelMessageChannelEnum',
75
- :'content' => :'MultiChannelChannelListObjectContent',
75
+ :'content' => :'MmsMessageContent',
76
76
  :'owner' => :'String'
77
77
  }
78
78
  end
@@ -86,7 +86,8 @@ module Bandwidth
86
86
  # List of class defined in allOf (OpenAPI v3)
87
87
  def self.openapi_all_of
88
88
  [
89
- :'MultiChannelChannelListObject'
89
+ :'MultiChannelChannelListMMSObject',
90
+ :'MultiChannelChannelListOwnerObject'
90
91
  ]
91
92
  end
92
93
 
@@ -94,13 +95,13 @@ module Bandwidth
94
95
  # @param [Hash] attributes Model attributes in the form of hash
95
96
  def initialize(attributes = {})
96
97
  if (!attributes.is_a?(Hash))
97
- fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::MultiChannelMessageResponseDataChannelListInner` initialize method'
98
+ fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::MultiChannelChannelListMMSResponseObject` initialize method'
98
99
  end
99
100
 
100
101
  # check to see if the attribute exists and convert string to symbol for hash key
101
102
  attributes = attributes.each_with_object({}) { |(k, v), h|
102
103
  if (!self.class.attribute_map.key?(k.to_sym))
103
- fail ArgumentError, "`#{k}` is not a valid attribute in `Bandwidth::MultiChannelMessageResponseDataChannelListInner`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
104
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Bandwidth::MultiChannelChannelListMMSResponseObject`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
104
105
  end
105
106
  h[k.to_sym] = v
106
107
  }