bandwidth-sdk 14.1.3 → 15.1.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 (104) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +14 -14
  3. data/README.md +35 -1
  4. data/bandwidth.yml +656 -58
  5. data/coverage/.last_run.json +1 -1
  6. data/coverage/.resultset.json +211 -6
  7. data/coverage/index.html +14914 -12700
  8. data/docs/BlockedWebhook.md +28 -0
  9. data/docs/CardWidthEnum.md +15 -0
  10. data/docs/CreateMultiChannelMessageResponse.md +22 -0
  11. data/docs/ErrorObject.md +20 -0
  12. data/docs/Link.md +20 -0
  13. data/docs/Message.md +1 -1
  14. data/docs/MessageCallback.md +3 -1
  15. data/docs/MessageRequest.md +1 -1
  16. data/docs/MmsMessageContent.md +20 -0
  17. data/docs/MultiChannelAction.md +89 -0
  18. data/docs/MultiChannelActionCalendarEvent.md +30 -0
  19. data/docs/MultiChannelApi.md +80 -0
  20. data/docs/MultiChannelCallbackData.md +26 -0
  21. data/docs/MultiChannelChannelListObject.md +24 -0
  22. data/docs/MultiChannelChannelListObjectContent.md +55 -0
  23. data/docs/MultiChannelMessageCallbackData.md +32 -0
  24. data/docs/MultiChannelMessageChannelEnum.md +15 -0
  25. data/docs/MultiChannelMessageData.md +34 -0
  26. data/docs/MultiChannelMessageDirectionEnum.md +15 -0
  27. data/docs/MultiChannelMessageRequest.md +26 -0
  28. data/docs/MultiChannelStatusEnum.md +15 -0
  29. data/docs/RbmActionBase.md +22 -0
  30. data/docs/RbmActionDial.md +24 -0
  31. data/docs/RbmActionOpenUrl.md +24 -0
  32. data/docs/RbmActionTypeEnum.md +15 -0
  33. data/docs/RbmActionViewLocation.md +28 -0
  34. data/docs/RbmCardContent.md +24 -0
  35. data/docs/RbmCardContentMedia.md +22 -0
  36. data/docs/RbmMediaHeightEnum.md +15 -0
  37. data/docs/RbmMessageCarouselCard.md +22 -0
  38. data/docs/RbmMessageContentFile.md +20 -0
  39. data/docs/RbmMessageContentRichCard.md +49 -0
  40. data/docs/RbmMessageContentText.md +20 -0
  41. data/docs/RbmMessageMedia.md +20 -0
  42. data/docs/RbmStandaloneCard.md +24 -0
  43. data/docs/SmsMessageContent.md +18 -0
  44. data/docs/StandaloneCardOrientationEnum.md +15 -0
  45. data/docs/TfvStatus.md +5 -1
  46. data/docs/TfvSubmissionInfo.md +8 -2
  47. data/docs/ThumbnailAlignmentEnum.md +15 -0
  48. data/docs/VerificationDenialWebhook.md +5 -1
  49. data/docs/VerificationRequest.md +7 -1
  50. data/docs/VerificationUpdateRequest.md +8 -2
  51. data/lib/bandwidth-sdk/api/multi_channel_api.rb +96 -0
  52. data/lib/bandwidth-sdk/configuration.rb +6 -0
  53. data/lib/bandwidth-sdk/models/blocked_webhook.rb +323 -0
  54. data/lib/bandwidth-sdk/models/bxml/verbs/phone_number.rb +1 -0
  55. data/lib/bandwidth-sdk/models/card_width_enum.rb +40 -0
  56. data/lib/bandwidth-sdk/models/create_multi_channel_message_response.rb +234 -0
  57. data/lib/bandwidth-sdk/models/error_object.rb +221 -0
  58. data/lib/bandwidth-sdk/models/link.rb +221 -0
  59. data/lib/bandwidth-sdk/models/message.rb +1 -1
  60. data/lib/bandwidth-sdk/models/message_callback.rb +16 -5
  61. data/lib/bandwidth-sdk/models/message_request.rb +1 -1
  62. data/lib/bandwidth-sdk/models/mms_message_content.rb +244 -0
  63. data/lib/bandwidth-sdk/models/multi_channel_action.rb +61 -0
  64. data/lib/bandwidth-sdk/models/multi_channel_action_calendar_event.rb +419 -0
  65. data/lib/bandwidth-sdk/models/multi_channel_callback_data.rb +272 -0
  66. data/lib/bandwidth-sdk/models/multi_channel_channel_list_object.rb +291 -0
  67. data/lib/bandwidth-sdk/models/multi_channel_channel_list_object_content.rb +108 -0
  68. data/lib/bandwidth-sdk/models/multi_channel_message_callback_data.rb +302 -0
  69. data/lib/bandwidth-sdk/models/multi_channel_message_channel_enum.rb +41 -0
  70. data/lib/bandwidth-sdk/models/multi_channel_message_data.rb +312 -0
  71. data/lib/bandwidth-sdk/models/multi_channel_message_direction_enum.rb +40 -0
  72. data/lib/bandwidth-sdk/models/multi_channel_message_request.rb +310 -0
  73. data/lib/bandwidth-sdk/models/multi_channel_status_enum.rb +42 -0
  74. data/lib/bandwidth-sdk/models/rbm_action_base.rb +313 -0
  75. data/lib/bandwidth-sdk/models/rbm_action_dial.rb +337 -0
  76. data/lib/bandwidth-sdk/models/rbm_action_open_url.rb +356 -0
  77. data/lib/bandwidth-sdk/models/rbm_action_type_enum.rb +44 -0
  78. data/lib/bandwidth-sdk/models/rbm_action_view_location.rb +383 -0
  79. data/lib/bandwidth-sdk/models/rbm_card_content.rb +301 -0
  80. data/lib/bandwidth-sdk/models/rbm_card_content_media.rb +313 -0
  81. data/lib/bandwidth-sdk/models/rbm_media_height_enum.rb +41 -0
  82. data/lib/bandwidth-sdk/models/rbm_message_carousel_card.rb +309 -0
  83. data/lib/bandwidth-sdk/models/rbm_message_content_file.rb +268 -0
  84. data/lib/bandwidth-sdk/models/rbm_message_content_rich_card.rb +104 -0
  85. data/lib/bandwidth-sdk/models/rbm_message_content_text.rb +270 -0
  86. data/lib/bandwidth-sdk/models/rbm_message_media.rb +250 -0
  87. data/lib/bandwidth-sdk/models/rbm_standalone_card.rb +304 -0
  88. data/lib/bandwidth-sdk/models/sms_message_content.rb +239 -0
  89. data/lib/bandwidth-sdk/models/standalone_card_orientation_enum.rb +40 -0
  90. data/lib/bandwidth-sdk/models/tfv_status.rb +24 -4
  91. data/lib/bandwidth-sdk/models/tfv_status_enum.rb +1 -3
  92. data/lib/bandwidth-sdk/models/tfv_submission_info.rb +35 -5
  93. data/lib/bandwidth-sdk/models/thumbnail_alignment_enum.rb +40 -0
  94. data/lib/bandwidth-sdk/models/verification_denial_webhook.rb +24 -4
  95. data/lib/bandwidth-sdk/models/verification_request.rb +35 -5
  96. data/lib/bandwidth-sdk/models/verification_update_request.rb +35 -5
  97. data/lib/bandwidth-sdk/version.rb +1 -1
  98. data/lib/bandwidth-sdk.rb +35 -1
  99. data/spec/smoke/conferences_api_spec.rb +4 -4
  100. data/spec/smoke/multi_channel_api_spec.rb +40 -0
  101. data/spec/smoke/transcriptions_api_spec.rb +1 -1
  102. data/spec/unit/api/multi_channel_api_spec.rb +59 -0
  103. data/spec/unit/models/bxml/verbs/phone_number_spec.rb +6 -4
  104. metadata +119 -45
@@ -0,0 +1,221 @@
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 ErrorObject
18
+ attr_accessor :code
19
+
20
+ attr_accessor :message
21
+
22
+ # Attribute mapping from ruby-style variable name to JSON key.
23
+ def self.attribute_map
24
+ {
25
+ :'code' => :'code',
26
+ :'message' => :'message'
27
+ }
28
+ end
29
+
30
+ # Returns all the JSON keys this model knows about
31
+ def self.acceptable_attributes
32
+ attribute_map.values
33
+ end
34
+
35
+ # Attribute type mapping.
36
+ def self.openapi_types
37
+ {
38
+ :'code' => :'String',
39
+ :'message' => :'String'
40
+ }
41
+ end
42
+
43
+ # List of attributes with nullable: true
44
+ def self.openapi_nullable
45
+ Set.new([
46
+ ])
47
+ end
48
+
49
+ # Initializes the object
50
+ # @param [Hash] attributes Model attributes in the form of hash
51
+ def initialize(attributes = {})
52
+ if (!attributes.is_a?(Hash))
53
+ fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::ErrorObject` initialize method'
54
+ end
55
+
56
+ # check to see if the attribute exists and convert string to symbol for hash key
57
+ attributes = attributes.each_with_object({}) { |(k, v), h|
58
+ if (!self.class.attribute_map.key?(k.to_sym))
59
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Bandwidth::ErrorObject`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
60
+ end
61
+ h[k.to_sym] = v
62
+ }
63
+
64
+ if attributes.key?(:'code')
65
+ self.code = attributes[:'code']
66
+ end
67
+
68
+ if attributes.key?(:'message')
69
+ self.message = attributes[:'message']
70
+ end
71
+ end
72
+
73
+ # Show invalid properties with the reasons. Usually used together with valid?
74
+ # @return Array for valid properties with the reasons
75
+ def list_invalid_properties
76
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
77
+ invalid_properties = Array.new
78
+ invalid_properties
79
+ end
80
+
81
+ # Check to see if the all the properties in the model are valid
82
+ # @return true if the model is valid
83
+ def valid?
84
+ warn '[DEPRECATED] the `valid?` method is obsolete'
85
+ true
86
+ end
87
+
88
+ # Checks equality by comparing each attribute.
89
+ # @param [Object] Object to be compared
90
+ def ==(o)
91
+ return true if self.equal?(o)
92
+ self.class == o.class &&
93
+ code == o.code &&
94
+ message == o.message
95
+ end
96
+
97
+ # @see the `==` method
98
+ # @param [Object] Object to be compared
99
+ def eql?(o)
100
+ self == o
101
+ end
102
+
103
+ # Calculates hash code according to all attributes.
104
+ # @return [Integer] Hash code
105
+ def hash
106
+ [code, message].hash
107
+ end
108
+
109
+ # Builds the object from hash
110
+ # @param [Hash] attributes Model attributes in the form of hash
111
+ # @return [Object] Returns the model itself
112
+ def self.build_from_hash(attributes)
113
+ return nil unless attributes.is_a?(Hash)
114
+ attributes = attributes.transform_keys(&:to_sym)
115
+ transformed_hash = {}
116
+ openapi_types.each_pair do |key, type|
117
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
118
+ transformed_hash["#{key}"] = nil
119
+ elsif type =~ /\AArray<(.*)>/i
120
+ # check to ensure the input is an array given that the attribute
121
+ # is documented as an array but the input is not
122
+ if attributes[attribute_map[key]].is_a?(Array)
123
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
124
+ end
125
+ elsif !attributes[attribute_map[key]].nil?
126
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
127
+ end
128
+ end
129
+ new(transformed_hash)
130
+ end
131
+
132
+ # Deserializes the data based on type
133
+ # @param string type Data type
134
+ # @param string value Value to be deserialized
135
+ # @return [Object] Deserialized data
136
+ def self._deserialize(type, value)
137
+ case type.to_sym
138
+ when :Time
139
+ Time.parse(value)
140
+ when :Date
141
+ Date.parse(value)
142
+ when :String
143
+ value.to_s
144
+ when :Integer
145
+ value.to_i
146
+ when :Float
147
+ value.to_f
148
+ when :Boolean
149
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
150
+ true
151
+ else
152
+ false
153
+ end
154
+ when :Object
155
+ # generic object (usually a Hash), return directly
156
+ value
157
+ when /\AArray<(?<inner_type>.+)>\z/
158
+ inner_type = Regexp.last_match[:inner_type]
159
+ value.map { |v| _deserialize(inner_type, v) }
160
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
161
+ k_type = Regexp.last_match[:k_type]
162
+ v_type = Regexp.last_match[:v_type]
163
+ {}.tap do |hash|
164
+ value.each do |k, v|
165
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
166
+ end
167
+ end
168
+ else # model
169
+ # models (e.g. Pet) or oneOf
170
+ klass = Bandwidth.const_get(type)
171
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
172
+ end
173
+ end
174
+
175
+ # Returns the string representation of the object
176
+ # @return [String] String presentation of the object
177
+ def to_s
178
+ to_hash.to_s
179
+ end
180
+
181
+ # to_body is an alias to to_hash (backward compatibility)
182
+ # @return [Hash] Returns the object in the form of hash
183
+ def to_body
184
+ to_hash
185
+ end
186
+
187
+ # Returns the object in the form of hash
188
+ # @return [Hash] Returns the object in the form of hash
189
+ def to_hash
190
+ hash = {}
191
+ self.class.attribute_map.each_pair do |attr, param|
192
+ value = self.send(attr)
193
+ if value.nil?
194
+ is_nullable = self.class.openapi_nullable.include?(attr)
195
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
196
+ end
197
+
198
+ hash[param] = _to_hash(value)
199
+ end
200
+ hash
201
+ end
202
+
203
+ # Outputs non-array value in the form of hash
204
+ # For object, use to_hash. Otherwise, just return the value
205
+ # @param [Object] value Any valid value
206
+ # @return [Hash] Returns the value in the form of hash
207
+ def _to_hash(value)
208
+ if value.is_a?(Array)
209
+ value.compact.map { |v| _to_hash(v) }
210
+ elsif value.is_a?(Hash)
211
+ {}.tap do |hash|
212
+ value.each { |k, v| hash[k] = _to_hash(v) }
213
+ end
214
+ elsif value.respond_to? :to_hash
215
+ value.to_hash
216
+ else
217
+ value
218
+ end
219
+ end
220
+ end
221
+ end
@@ -0,0 +1,221 @@
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 Link
18
+ attr_accessor :rel
19
+
20
+ attr_accessor :href
21
+
22
+ # Attribute mapping from ruby-style variable name to JSON key.
23
+ def self.attribute_map
24
+ {
25
+ :'rel' => :'rel',
26
+ :'href' => :'href'
27
+ }
28
+ end
29
+
30
+ # Returns all the JSON keys this model knows about
31
+ def self.acceptable_attributes
32
+ attribute_map.values
33
+ end
34
+
35
+ # Attribute type mapping.
36
+ def self.openapi_types
37
+ {
38
+ :'rel' => :'String',
39
+ :'href' => :'String'
40
+ }
41
+ end
42
+
43
+ # List of attributes with nullable: true
44
+ def self.openapi_nullable
45
+ Set.new([
46
+ ])
47
+ end
48
+
49
+ # Initializes the object
50
+ # @param [Hash] attributes Model attributes in the form of hash
51
+ def initialize(attributes = {})
52
+ if (!attributes.is_a?(Hash))
53
+ fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::Link` initialize method'
54
+ end
55
+
56
+ # check to see if the attribute exists and convert string to symbol for hash key
57
+ attributes = attributes.each_with_object({}) { |(k, v), h|
58
+ if (!self.class.attribute_map.key?(k.to_sym))
59
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Bandwidth::Link`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
60
+ end
61
+ h[k.to_sym] = v
62
+ }
63
+
64
+ if attributes.key?(:'rel')
65
+ self.rel = attributes[:'rel']
66
+ end
67
+
68
+ if attributes.key?(:'href')
69
+ self.href = attributes[:'href']
70
+ end
71
+ end
72
+
73
+ # Show invalid properties with the reasons. Usually used together with valid?
74
+ # @return Array for valid properties with the reasons
75
+ def list_invalid_properties
76
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
77
+ invalid_properties = Array.new
78
+ invalid_properties
79
+ end
80
+
81
+ # Check to see if the all the properties in the model are valid
82
+ # @return true if the model is valid
83
+ def valid?
84
+ warn '[DEPRECATED] the `valid?` method is obsolete'
85
+ true
86
+ end
87
+
88
+ # Checks equality by comparing each attribute.
89
+ # @param [Object] Object to be compared
90
+ def ==(o)
91
+ return true if self.equal?(o)
92
+ self.class == o.class &&
93
+ rel == o.rel &&
94
+ href == o.href
95
+ end
96
+
97
+ # @see the `==` method
98
+ # @param [Object] Object to be compared
99
+ def eql?(o)
100
+ self == o
101
+ end
102
+
103
+ # Calculates hash code according to all attributes.
104
+ # @return [Integer] Hash code
105
+ def hash
106
+ [rel, href].hash
107
+ end
108
+
109
+ # Builds the object from hash
110
+ # @param [Hash] attributes Model attributes in the form of hash
111
+ # @return [Object] Returns the model itself
112
+ def self.build_from_hash(attributes)
113
+ return nil unless attributes.is_a?(Hash)
114
+ attributes = attributes.transform_keys(&:to_sym)
115
+ transformed_hash = {}
116
+ openapi_types.each_pair do |key, type|
117
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
118
+ transformed_hash["#{key}"] = nil
119
+ elsif type =~ /\AArray<(.*)>/i
120
+ # check to ensure the input is an array given that the attribute
121
+ # is documented as an array but the input is not
122
+ if attributes[attribute_map[key]].is_a?(Array)
123
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
124
+ end
125
+ elsif !attributes[attribute_map[key]].nil?
126
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
127
+ end
128
+ end
129
+ new(transformed_hash)
130
+ end
131
+
132
+ # Deserializes the data based on type
133
+ # @param string type Data type
134
+ # @param string value Value to be deserialized
135
+ # @return [Object] Deserialized data
136
+ def self._deserialize(type, value)
137
+ case type.to_sym
138
+ when :Time
139
+ Time.parse(value)
140
+ when :Date
141
+ Date.parse(value)
142
+ when :String
143
+ value.to_s
144
+ when :Integer
145
+ value.to_i
146
+ when :Float
147
+ value.to_f
148
+ when :Boolean
149
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
150
+ true
151
+ else
152
+ false
153
+ end
154
+ when :Object
155
+ # generic object (usually a Hash), return directly
156
+ value
157
+ when /\AArray<(?<inner_type>.+)>\z/
158
+ inner_type = Regexp.last_match[:inner_type]
159
+ value.map { |v| _deserialize(inner_type, v) }
160
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
161
+ k_type = Regexp.last_match[:k_type]
162
+ v_type = Regexp.last_match[:v_type]
163
+ {}.tap do |hash|
164
+ value.each do |k, v|
165
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
166
+ end
167
+ end
168
+ else # model
169
+ # models (e.g. Pet) or oneOf
170
+ klass = Bandwidth.const_get(type)
171
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
172
+ end
173
+ end
174
+
175
+ # Returns the string representation of the object
176
+ # @return [String] String presentation of the object
177
+ def to_s
178
+ to_hash.to_s
179
+ end
180
+
181
+ # to_body is an alias to to_hash (backward compatibility)
182
+ # @return [Hash] Returns the object in the form of hash
183
+ def to_body
184
+ to_hash
185
+ end
186
+
187
+ # Returns the object in the form of hash
188
+ # @return [Hash] Returns the object in the form of hash
189
+ def to_hash
190
+ hash = {}
191
+ self.class.attribute_map.each_pair do |attr, param|
192
+ value = self.send(attr)
193
+ if value.nil?
194
+ is_nullable = self.class.openapi_nullable.include?(attr)
195
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
196
+ end
197
+
198
+ hash[param] = _to_hash(value)
199
+ end
200
+ hash
201
+ end
202
+
203
+ # Outputs non-array value in the form of hash
204
+ # For object, use to_hash. Otherwise, just return the value
205
+ # @param [Object] value Any valid value
206
+ # @return [Hash] Returns the value in the form of hash
207
+ def _to_hash(value)
208
+ if value.is_a?(Array)
209
+ value.compact.map { |v| _to_hash(v) }
210
+ elsif value.is_a?(Hash)
211
+ {}.tap do |hash|
212
+ value.each { |k, v| hash[k] = _to_hash(v) }
213
+ end
214
+ elsif value.respond_to? :to_hash
215
+ value.to_hash
216
+ else
217
+ value
218
+ end
219
+ end
220
+ end
221
+ end
@@ -49,7 +49,7 @@ module Bandwidth
49
49
 
50
50
  attr_accessor :priority
51
51
 
52
- # The expiration date-time set by the user.
52
+ # A string with the date/time value that the message will automatically expire by. This must be a valid RFC-3339 value, e.g., 2021-03-14T01:59:26Z or 2021-03-13T20:59:26-05:00. Must be a date-time in the future.
53
53
  attr_accessor :expiration
54
54
 
55
55
  class EnumAttributeValidator
@@ -30,6 +30,9 @@ module Bandwidth
30
30
  # Optional error code, applicable only when type is `message-failed`.
31
31
  attr_accessor :error_code
32
32
 
33
+ # The name of the Authorized Message Provider (AMP) that handled this message. In the US, this is the carrier that the message was sent to.
34
+ attr_accessor :carrier_name
35
+
33
36
  class EnumAttributeValidator
34
37
  attr_reader :datatype
35
38
  attr_reader :allowable_values
@@ -60,7 +63,8 @@ module Bandwidth
60
63
  :'to' => :'to',
61
64
  :'description' => :'description',
62
65
  :'message' => :'message',
63
- :'error_code' => :'errorCode'
66
+ :'error_code' => :'errorCode',
67
+ :'carrier_name' => :'carrierName'
64
68
  }
65
69
  end
66
70
 
@@ -77,14 +81,16 @@ module Bandwidth
77
81
  :'to' => :'String',
78
82
  :'description' => :'String',
79
83
  :'message' => :'MessageCallbackMessage',
80
- :'error_code' => :'Integer'
84
+ :'error_code' => :'Integer',
85
+ :'carrier_name' => :'String'
81
86
  }
82
87
  end
83
88
 
84
89
  # List of attributes with nullable: true
85
90
  def self.openapi_nullable
86
91
  Set.new([
87
- :'error_code'
92
+ :'error_code',
93
+ :'carrier_name'
88
94
  ])
89
95
  end
90
96
 
@@ -136,6 +142,10 @@ module Bandwidth
136
142
  if attributes.key?(:'error_code')
137
143
  self.error_code = attributes[:'error_code']
138
144
  end
145
+
146
+ if attributes.key?(:'carrier_name')
147
+ self.carrier_name = attributes[:'carrier_name']
148
+ end
139
149
  end
140
150
 
141
151
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -188,7 +198,8 @@ module Bandwidth
188
198
  to == o.to &&
189
199
  description == o.description &&
190
200
  message == o.message &&
191
- error_code == o.error_code
201
+ error_code == o.error_code &&
202
+ carrier_name == o.carrier_name
192
203
  end
193
204
 
194
205
  # @see the `==` method
@@ -200,7 +211,7 @@ module Bandwidth
200
211
  # Calculates hash code according to all attributes.
201
212
  # @return [Integer] Hash code
202
213
  def hash
203
- [time, type, to, description, message, error_code].hash
214
+ [time, type, to, description, message, error_code, carrier_name].hash
204
215
  end
205
216
 
206
217
  # Builds the object from hash
@@ -35,7 +35,7 @@ module Bandwidth
35
35
 
36
36
  attr_accessor :priority
37
37
 
38
- # A string with the date/time value that the message will automatically expire by. This must be a valid RFC-3339 value, e.g., 2021-03-14T01:59:26Z or 2021-03-13T20:59:26-05:00. Must be a date-time in the future. Not supported on MMS.
38
+ # A string with the date/time value that the message will automatically expire by. This must be a valid RFC-3339 value, e.g., 2021-03-14T01:59:26Z or 2021-03-13T20:59:26-05:00. Must be a date-time in the future.
39
39
  attr_accessor :expiration
40
40
 
41
41
  class EnumAttributeValidator