bandwidth-sdk 14.1.3 → 15.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 (102) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +10 -10
  3. data/README.md +34 -1
  4. data/bandwidth.yml +640 -58
  5. data/coverage/.last_run.json +1 -1
  6. data/coverage/.resultset.json +210 -6
  7. data/coverage/index.html +14901 -12699
  8. data/docs/CardWidthEnum.md +15 -0
  9. data/docs/CreateMultiChannelMessageResponse.md +22 -0
  10. data/docs/ErrorObject.md +20 -0
  11. data/docs/Link.md +20 -0
  12. data/docs/Message.md +1 -1
  13. data/docs/MessageCallback.md +3 -1
  14. data/docs/MessageRequest.md +1 -1
  15. data/docs/MmsMessageContent.md +20 -0
  16. data/docs/MultiChannelAction.md +89 -0
  17. data/docs/MultiChannelActionCalendarEvent.md +30 -0
  18. data/docs/MultiChannelApi.md +80 -0
  19. data/docs/MultiChannelCallbackData.md +26 -0
  20. data/docs/MultiChannelChannelListObject.md +24 -0
  21. data/docs/MultiChannelChannelListObjectContent.md +55 -0
  22. data/docs/MultiChannelMessageCallbackData.md +32 -0
  23. data/docs/MultiChannelMessageChannelEnum.md +15 -0
  24. data/docs/MultiChannelMessageData.md +34 -0
  25. data/docs/MultiChannelMessageDirectionEnum.md +15 -0
  26. data/docs/MultiChannelMessageRequest.md +26 -0
  27. data/docs/MultiChannelStatusEnum.md +15 -0
  28. data/docs/RbmActionBase.md +22 -0
  29. data/docs/RbmActionDial.md +24 -0
  30. data/docs/RbmActionOpenUrl.md +24 -0
  31. data/docs/RbmActionTypeEnum.md +15 -0
  32. data/docs/RbmActionViewLocation.md +28 -0
  33. data/docs/RbmCardContent.md +24 -0
  34. data/docs/RbmCardContentMedia.md +22 -0
  35. data/docs/RbmMediaHeightEnum.md +15 -0
  36. data/docs/RbmMessageCarouselCard.md +22 -0
  37. data/docs/RbmMessageContentFile.md +20 -0
  38. data/docs/RbmMessageContentRichCard.md +49 -0
  39. data/docs/RbmMessageContentText.md +20 -0
  40. data/docs/RbmMessageMedia.md +20 -0
  41. data/docs/RbmStandaloneCard.md +24 -0
  42. data/docs/SmsMessageContent.md +18 -0
  43. data/docs/StandaloneCardOrientationEnum.md +15 -0
  44. data/docs/TfvStatus.md +5 -1
  45. data/docs/TfvSubmissionInfo.md +8 -2
  46. data/docs/ThumbnailAlignmentEnum.md +15 -0
  47. data/docs/VerificationDenialWebhook.md +5 -1
  48. data/docs/VerificationRequest.md +7 -1
  49. data/docs/VerificationUpdateRequest.md +8 -2
  50. data/lib/bandwidth-sdk/api/multi_channel_api.rb +96 -0
  51. data/lib/bandwidth-sdk/configuration.rb +6 -0
  52. data/lib/bandwidth-sdk/models/bxml/verbs/phone_number.rb +1 -0
  53. data/lib/bandwidth-sdk/models/card_width_enum.rb +40 -0
  54. data/lib/bandwidth-sdk/models/create_multi_channel_message_response.rb +234 -0
  55. data/lib/bandwidth-sdk/models/error_object.rb +221 -0
  56. data/lib/bandwidth-sdk/models/link.rb +221 -0
  57. data/lib/bandwidth-sdk/models/message.rb +1 -1
  58. data/lib/bandwidth-sdk/models/message_callback.rb +16 -5
  59. data/lib/bandwidth-sdk/models/message_request.rb +1 -1
  60. data/lib/bandwidth-sdk/models/mms_message_content.rb +244 -0
  61. data/lib/bandwidth-sdk/models/multi_channel_action.rb +61 -0
  62. data/lib/bandwidth-sdk/models/multi_channel_action_calendar_event.rb +419 -0
  63. data/lib/bandwidth-sdk/models/multi_channel_callback_data.rb +272 -0
  64. data/lib/bandwidth-sdk/models/multi_channel_channel_list_object.rb +291 -0
  65. data/lib/bandwidth-sdk/models/multi_channel_channel_list_object_content.rb +108 -0
  66. data/lib/bandwidth-sdk/models/multi_channel_message_callback_data.rb +302 -0
  67. data/lib/bandwidth-sdk/models/multi_channel_message_channel_enum.rb +41 -0
  68. data/lib/bandwidth-sdk/models/multi_channel_message_data.rb +312 -0
  69. data/lib/bandwidth-sdk/models/multi_channel_message_direction_enum.rb +40 -0
  70. data/lib/bandwidth-sdk/models/multi_channel_message_request.rb +310 -0
  71. data/lib/bandwidth-sdk/models/multi_channel_status_enum.rb +42 -0
  72. data/lib/bandwidth-sdk/models/rbm_action_base.rb +313 -0
  73. data/lib/bandwidth-sdk/models/rbm_action_dial.rb +337 -0
  74. data/lib/bandwidth-sdk/models/rbm_action_open_url.rb +356 -0
  75. data/lib/bandwidth-sdk/models/rbm_action_type_enum.rb +44 -0
  76. data/lib/bandwidth-sdk/models/rbm_action_view_location.rb +383 -0
  77. data/lib/bandwidth-sdk/models/rbm_card_content.rb +301 -0
  78. data/lib/bandwidth-sdk/models/rbm_card_content_media.rb +313 -0
  79. data/lib/bandwidth-sdk/models/rbm_media_height_enum.rb +41 -0
  80. data/lib/bandwidth-sdk/models/rbm_message_carousel_card.rb +309 -0
  81. data/lib/bandwidth-sdk/models/rbm_message_content_file.rb +268 -0
  82. data/lib/bandwidth-sdk/models/rbm_message_content_rich_card.rb +104 -0
  83. data/lib/bandwidth-sdk/models/rbm_message_content_text.rb +270 -0
  84. data/lib/bandwidth-sdk/models/rbm_message_media.rb +250 -0
  85. data/lib/bandwidth-sdk/models/rbm_standalone_card.rb +304 -0
  86. data/lib/bandwidth-sdk/models/sms_message_content.rb +239 -0
  87. data/lib/bandwidth-sdk/models/standalone_card_orientation_enum.rb +40 -0
  88. data/lib/bandwidth-sdk/models/tfv_status.rb +24 -4
  89. data/lib/bandwidth-sdk/models/tfv_status_enum.rb +1 -3
  90. data/lib/bandwidth-sdk/models/tfv_submission_info.rb +35 -5
  91. data/lib/bandwidth-sdk/models/thumbnail_alignment_enum.rb +40 -0
  92. data/lib/bandwidth-sdk/models/verification_denial_webhook.rb +24 -4
  93. data/lib/bandwidth-sdk/models/verification_request.rb +35 -5
  94. data/lib/bandwidth-sdk/models/verification_update_request.rb +35 -5
  95. data/lib/bandwidth-sdk/version.rb +1 -1
  96. data/lib/bandwidth-sdk.rb +34 -1
  97. data/spec/smoke/conferences_api_spec.rb +4 -4
  98. data/spec/smoke/multi_channel_api_spec.rb +40 -0
  99. data/spec/smoke/transcriptions_api_spec.rb +1 -1
  100. data/spec/unit/api/multi_channel_api_spec.rb +59 -0
  101. data/spec/unit/models/bxml/verbs/phone_number_spec.rb +6 -4
  102. metadata +117 -45
@@ -0,0 +1,239 @@
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 SmsMessageContent
18
+ # The contents of the text message. Must be 2048 characters or less.
19
+ attr_accessor :text
20
+
21
+ # Attribute mapping from ruby-style variable name to JSON key.
22
+ def self.attribute_map
23
+ {
24
+ :'text' => :'text'
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
+ :'text' => :'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::SmsMessageContent` 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::SmsMessageContent`. 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?(:'text')
62
+ self.text = attributes[:'text']
63
+ else
64
+ self.text = nil
65
+ end
66
+ end
67
+
68
+ # Show invalid properties with the reasons. Usually used together with valid?
69
+ # @return Array for valid properties with the reasons
70
+ def list_invalid_properties
71
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
72
+ invalid_properties = Array.new
73
+ if @text.nil?
74
+ invalid_properties.push('invalid value for "text", text cannot be nil.')
75
+ end
76
+
77
+ if @text.to_s.length > 2048
78
+ invalid_properties.push('invalid value for "text", the character length must be smaller than or equal to 2048.')
79
+ end
80
+
81
+ invalid_properties
82
+ end
83
+
84
+ # Check to see if the all the properties in the model are valid
85
+ # @return true if the model is valid
86
+ def valid?
87
+ warn '[DEPRECATED] the `valid?` method is obsolete'
88
+ return false if @text.nil?
89
+ return false if @text.to_s.length > 2048
90
+ true
91
+ end
92
+
93
+ # Custom attribute writer method with validation
94
+ # @param [Object] text Value to be assigned
95
+ def text=(text)
96
+ if text.nil?
97
+ fail ArgumentError, 'text cannot be nil'
98
+ end
99
+
100
+ if text.to_s.length > 2048
101
+ fail ArgumentError, 'invalid value for "text", the character length must be smaller than or equal to 2048.'
102
+ end
103
+
104
+ @text = text
105
+ end
106
+
107
+ # Checks equality by comparing each attribute.
108
+ # @param [Object] Object to be compared
109
+ def ==(o)
110
+ return true if self.equal?(o)
111
+ self.class == o.class &&
112
+ text == o.text
113
+ end
114
+
115
+ # @see the `==` method
116
+ # @param [Object] Object to be compared
117
+ def eql?(o)
118
+ self == o
119
+ end
120
+
121
+ # Calculates hash code according to all attributes.
122
+ # @return [Integer] Hash code
123
+ def hash
124
+ [text].hash
125
+ end
126
+
127
+ # Builds the object from hash
128
+ # @param [Hash] attributes Model attributes in the form of hash
129
+ # @return [Object] Returns the model itself
130
+ def self.build_from_hash(attributes)
131
+ return nil unless attributes.is_a?(Hash)
132
+ attributes = attributes.transform_keys(&:to_sym)
133
+ transformed_hash = {}
134
+ openapi_types.each_pair do |key, type|
135
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
136
+ transformed_hash["#{key}"] = nil
137
+ elsif type =~ /\AArray<(.*)>/i
138
+ # check to ensure the input is an array given that the attribute
139
+ # is documented as an array but the input is not
140
+ if attributes[attribute_map[key]].is_a?(Array)
141
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
142
+ end
143
+ elsif !attributes[attribute_map[key]].nil?
144
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
145
+ end
146
+ end
147
+ new(transformed_hash)
148
+ end
149
+
150
+ # Deserializes the data based on type
151
+ # @param string type Data type
152
+ # @param string value Value to be deserialized
153
+ # @return [Object] Deserialized data
154
+ def self._deserialize(type, value)
155
+ case type.to_sym
156
+ when :Time
157
+ Time.parse(value)
158
+ when :Date
159
+ Date.parse(value)
160
+ when :String
161
+ value.to_s
162
+ when :Integer
163
+ value.to_i
164
+ when :Float
165
+ value.to_f
166
+ when :Boolean
167
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
168
+ true
169
+ else
170
+ false
171
+ end
172
+ when :Object
173
+ # generic object (usually a Hash), return directly
174
+ value
175
+ when /\AArray<(?<inner_type>.+)>\z/
176
+ inner_type = Regexp.last_match[:inner_type]
177
+ value.map { |v| _deserialize(inner_type, v) }
178
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
179
+ k_type = Regexp.last_match[:k_type]
180
+ v_type = Regexp.last_match[:v_type]
181
+ {}.tap do |hash|
182
+ value.each do |k, v|
183
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
184
+ end
185
+ end
186
+ else # model
187
+ # models (e.g. Pet) or oneOf
188
+ klass = Bandwidth.const_get(type)
189
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
190
+ end
191
+ end
192
+
193
+ # Returns the string representation of the object
194
+ # @return [String] String presentation of the object
195
+ def to_s
196
+ to_hash.to_s
197
+ end
198
+
199
+ # to_body is an alias to to_hash (backward compatibility)
200
+ # @return [Hash] Returns the object in the form of hash
201
+ def to_body
202
+ to_hash
203
+ end
204
+
205
+ # Returns the object in the form of hash
206
+ # @return [Hash] Returns the object in the form of hash
207
+ def to_hash
208
+ hash = {}
209
+ self.class.attribute_map.each_pair do |attr, param|
210
+ value = self.send(attr)
211
+ if value.nil?
212
+ is_nullable = self.class.openapi_nullable.include?(attr)
213
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
214
+ end
215
+
216
+ hash[param] = _to_hash(value)
217
+ end
218
+ hash
219
+ end
220
+
221
+ # Outputs non-array value in the form of hash
222
+ # For object, use to_hash. Otherwise, just return the value
223
+ # @param [Object] value Any valid value
224
+ # @return [Hash] Returns the value in the form of hash
225
+ def _to_hash(value)
226
+ if value.is_a?(Array)
227
+ value.compact.map { |v| _to_hash(v) }
228
+ elsif value.is_a?(Hash)
229
+ {}.tap do |hash|
230
+ value.each { |k, v| hash[k] = _to_hash(v) }
231
+ end
232
+ elsif value.respond_to? :to_hash
233
+ value.to_hash
234
+ else
235
+ value
236
+ end
237
+ end
238
+ end
239
+ end
@@ -0,0 +1,40 @@
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 StandaloneCardOrientationEnum
18
+ HORIZONTAL = 'HORIZONTAL'.freeze
19
+ VERTICAL = 'VERTICAL'.freeze
20
+
21
+ def self.all_vars
22
+ @all_vars ||= [HORIZONTAL, VERTICAL].freeze
23
+ end
24
+
25
+ # Builds the enum from string
26
+ # @param [String] The enum value in the form of the string
27
+ # @return [String] The enum value
28
+ def self.build_from_hash(value)
29
+ new.build_from_hash(value)
30
+ end
31
+
32
+ # Builds the enum from string
33
+ # @param [String] The enum value in the form of the string
34
+ # @return [String] The enum value
35
+ def build_from_hash(value)
36
+ return value if StandaloneCardOrientationEnum.all_vars.include?(value)
37
+ raise "Invalid ENUM value #{value} for class #StandaloneCardOrientationEnum"
38
+ end
39
+ end
40
+ end
@@ -37,6 +37,12 @@ module Bandwidth
37
37
 
38
38
  attr_accessor :submission
39
39
 
40
+ # Whether a Toll-Free Verification is blocked. This attribute will only be defined when the number is blocked. (Not Available Until 5/28/2025)
41
+ attr_accessor :blocked
42
+
43
+ # The reason why the Toll-Free Verification is blocked. This attribute will only be defined when the number is blocked. (Not Available Until 5/28/2025)
44
+ attr_accessor :blocked_reason
45
+
40
46
  class EnumAttributeValidator
41
47
  attr_reader :datatype
42
48
  attr_reader :allowable_values
@@ -69,7 +75,9 @@ module Bandwidth
69
75
  :'resubmit_allowed' => :'resubmitAllowed',
70
76
  :'created_date_time' => :'createdDateTime',
71
77
  :'modified_date_time' => :'modifiedDateTime',
72
- :'submission' => :'submission'
78
+ :'submission' => :'submission',
79
+ :'blocked' => :'blocked',
80
+ :'blocked_reason' => :'blockedReason'
73
81
  }
74
82
  end
75
83
 
@@ -88,7 +96,9 @@ module Bandwidth
88
96
  :'resubmit_allowed' => :'Boolean',
89
97
  :'created_date_time' => :'Time',
90
98
  :'modified_date_time' => :'Time',
91
- :'submission' => :'TfvSubmissionInfo'
99
+ :'submission' => :'TfvSubmissionInfo',
100
+ :'blocked' => :'Boolean',
101
+ :'blocked_reason' => :'String'
92
102
  }
93
103
  end
94
104
 
@@ -144,6 +154,14 @@ module Bandwidth
144
154
  if attributes.key?(:'submission')
145
155
  self.submission = attributes[:'submission']
146
156
  end
157
+
158
+ if attributes.key?(:'blocked')
159
+ self.blocked = attributes[:'blocked']
160
+ end
161
+
162
+ if attributes.key?(:'blocked_reason')
163
+ self.blocked_reason = attributes[:'blocked_reason']
164
+ end
147
165
  end
148
166
 
149
167
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -212,7 +230,9 @@ module Bandwidth
212
230
  resubmit_allowed == o.resubmit_allowed &&
213
231
  created_date_time == o.created_date_time &&
214
232
  modified_date_time == o.modified_date_time &&
215
- submission == o.submission
233
+ submission == o.submission &&
234
+ blocked == o.blocked &&
235
+ blocked_reason == o.blocked_reason
216
236
  end
217
237
 
218
238
  # @see the `==` method
@@ -224,7 +244,7 @@ module Bandwidth
224
244
  # Calculates hash code according to all attributes.
225
245
  # @return [Integer] Hash code
226
246
  def hash
227
- [phone_number, status, internal_ticket_number, decline_reason_description, resubmit_allowed, created_date_time, modified_date_time, submission].hash
247
+ [phone_number, status, internal_ticket_number, decline_reason_description, resubmit_allowed, created_date_time, modified_date_time, submission, blocked, blocked_reason].hash
228
248
  end
229
249
 
230
250
  # Builds the object from hash
@@ -18,11 +18,9 @@ module Bandwidth
18
18
  VERIFIED = 'VERIFIED'.freeze
19
19
  UNVERIFIED = 'UNVERIFIED'.freeze
20
20
  PENDING = 'PENDING'.freeze
21
- PARTIALLY_VERIFIED = 'PARTIALLY_VERIFIED'.freeze
22
- INVALID_STATUS = 'INVALID_STATUS'.freeze
23
21
 
24
22
  def self.all_vars
25
- @all_vars ||= [VERIFIED, UNVERIFIED, PENDING, PARTIALLY_VERIFIED, INVALID_STATUS].freeze
23
+ @all_vars ||= [VERIFIED, UNVERIFIED, PENDING].freeze
26
24
  end
27
25
 
28
26
  # Builds the enum from string
@@ -39,6 +39,15 @@ module Bandwidth
39
39
  # ISV name.
40
40
  attr_accessor :isv_reseller
41
41
 
42
+ # The Toll-Free Verification request privacy policy URL. (Not Available Until 5/28/2025)
43
+ attr_accessor :privacy_policy_url
44
+
45
+ # The Toll-Free Verification request terms and conditions policy URL. (Not Available Until 5/28/2025)
46
+ attr_accessor :terms_and_conditions_url
47
+
48
+ # The company 'Doing Business As'. (Not Available Until 5/28/2025)
49
+ attr_accessor :business_dba
50
+
42
51
  # Attribute mapping from ruby-style variable name to JSON key.
43
52
  def self.attribute_map
44
53
  {
@@ -50,7 +59,10 @@ module Bandwidth
50
59
  :'production_message_content' => :'productionMessageContent',
51
60
  :'opt_in_workflow' => :'optInWorkflow',
52
61
  :'additional_information' => :'additionalInformation',
53
- :'isv_reseller' => :'isvReseller'
62
+ :'isv_reseller' => :'isvReseller',
63
+ :'privacy_policy_url' => :'privacyPolicyUrl',
64
+ :'terms_and_conditions_url' => :'termsAndConditionsUrl',
65
+ :'business_dba' => :'businessDBA'
54
66
  }
55
67
  end
56
68
 
@@ -70,7 +82,10 @@ module Bandwidth
70
82
  :'production_message_content' => :'String',
71
83
  :'opt_in_workflow' => :'OptInWorkflow',
72
84
  :'additional_information' => :'String',
73
- :'isv_reseller' => :'String'
85
+ :'isv_reseller' => :'String',
86
+ :'privacy_policy_url' => :'String',
87
+ :'terms_and_conditions_url' => :'String',
88
+ :'business_dba' => :'String'
74
89
  }
75
90
  end
76
91
 
@@ -78,7 +93,7 @@ module Bandwidth
78
93
  def self.openapi_nullable
79
94
  Set.new([
80
95
  :'additional_information',
81
- :'isv_reseller'
96
+ :'isv_reseller',
82
97
  ])
83
98
  end
84
99
 
@@ -132,6 +147,18 @@ module Bandwidth
132
147
  if attributes.key?(:'isv_reseller')
133
148
  self.isv_reseller = attributes[:'isv_reseller']
134
149
  end
150
+
151
+ if attributes.key?(:'privacy_policy_url')
152
+ self.privacy_policy_url = attributes[:'privacy_policy_url']
153
+ end
154
+
155
+ if attributes.key?(:'terms_and_conditions_url')
156
+ self.terms_and_conditions_url = attributes[:'terms_and_conditions_url']
157
+ end
158
+
159
+ if attributes.key?(:'business_dba')
160
+ self.business_dba = attributes[:'business_dba']
161
+ end
135
162
  end
136
163
 
137
164
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -322,7 +349,10 @@ module Bandwidth
322
349
  production_message_content == o.production_message_content &&
323
350
  opt_in_workflow == o.opt_in_workflow &&
324
351
  additional_information == o.additional_information &&
325
- isv_reseller == o.isv_reseller
352
+ isv_reseller == o.isv_reseller &&
353
+ privacy_policy_url == o.privacy_policy_url &&
354
+ terms_and_conditions_url == o.terms_and_conditions_url &&
355
+ business_dba == o.business_dba
326
356
  end
327
357
 
328
358
  # @see the `==` method
@@ -334,7 +364,7 @@ module Bandwidth
334
364
  # Calculates hash code according to all attributes.
335
365
  # @return [Integer] Hash code
336
366
  def hash
337
- [business_address, business_contact, message_volume, use_case, use_case_summary, production_message_content, opt_in_workflow, additional_information, isv_reseller].hash
367
+ [business_address, business_contact, message_volume, use_case, use_case_summary, production_message_content, opt_in_workflow, additional_information, isv_reseller, privacy_policy_url, terms_and_conditions_url, business_dba].hash
338
368
  end
339
369
 
340
370
  # Builds the object from hash
@@ -0,0 +1,40 @@
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 ThumbnailAlignmentEnum
18
+ LEFT = 'LEFT'.freeze
19
+ RIGHT = 'RIGHT'.freeze
20
+
21
+ def self.all_vars
22
+ @all_vars ||= [LEFT, RIGHT].freeze
23
+ end
24
+
25
+ # Builds the enum from string
26
+ # @param [String] The enum value in the form of the string
27
+ # @return [String] The enum value
28
+ def self.build_from_hash(value)
29
+ new.build_from_hash(value)
30
+ end
31
+
32
+ # Builds the enum from string
33
+ # @param [String] The enum value in the form of the string
34
+ # @return [String] The enum value
35
+ def build_from_hash(value)
36
+ return value if ThumbnailAlignmentEnum.all_vars.include?(value)
37
+ raise "Invalid ENUM value #{value} for class #ThumbnailAlignmentEnum"
38
+ end
39
+ end
40
+ end
@@ -38,6 +38,12 @@ module Bandwidth
38
38
 
39
39
  attr_accessor :status
40
40
 
41
+ # Whether a Toll-Free Verification is blocked. This attribute will only be defined when the number is blocked. (Not Available Until 5/28/2025)
42
+ attr_accessor :blocked
43
+
44
+ # The reason why the Toll-Free Verification is blocked. This attribute will only be defined when the number is blocked. (Not Available Until 5/28/2025)
45
+ attr_accessor :blocked_reason
46
+
41
47
  # Attribute mapping from ruby-style variable name to JSON key.
42
48
  def self.attribute_map
43
49
  {
@@ -48,7 +54,9 @@ module Bandwidth
48
54
  :'internal_ticket_number' => :'internalTicketNumber',
49
55
  :'phone_number' => :'phoneNumber',
50
56
  :'resubmit_allowed' => :'resubmitAllowed',
51
- :'status' => :'status'
57
+ :'status' => :'status',
58
+ :'blocked' => :'blocked',
59
+ :'blocked_reason' => :'blockedReason'
52
60
  }
53
61
  end
54
62
 
@@ -67,7 +75,9 @@ module Bandwidth
67
75
  :'internal_ticket_number' => :'String',
68
76
  :'phone_number' => :'String',
69
77
  :'resubmit_allowed' => :'Boolean',
70
- :'status' => :'String'
78
+ :'status' => :'String',
79
+ :'blocked' => :'Boolean',
80
+ :'blocked_reason' => :'String'
71
81
  }
72
82
  end
73
83
 
@@ -127,6 +137,14 @@ module Bandwidth
127
137
  else
128
138
  self.status = 'UNVERIFIED'
129
139
  end
140
+
141
+ if attributes.key?(:'blocked')
142
+ self.blocked = attributes[:'blocked']
143
+ end
144
+
145
+ if attributes.key?(:'blocked_reason')
146
+ self.blocked_reason = attributes[:'blocked_reason']
147
+ end
130
148
  end
131
149
 
132
150
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -195,7 +213,9 @@ module Bandwidth
195
213
  internal_ticket_number == o.internal_ticket_number &&
196
214
  phone_number == o.phone_number &&
197
215
  resubmit_allowed == o.resubmit_allowed &&
198
- status == o.status
216
+ status == o.status &&
217
+ blocked == o.blocked &&
218
+ blocked_reason == o.blocked_reason
199
219
  end
200
220
 
201
221
  # @see the `==` method
@@ -207,7 +227,7 @@ module Bandwidth
207
227
  # Calculates hash code according to all attributes.
208
228
  # @return [Integer] Hash code
209
229
  def hash
210
- [account_id, additional_denial_reasons, decline_reason_description, denial_status_code, internal_ticket_number, phone_number, resubmit_allowed, status].hash
230
+ [account_id, additional_denial_reasons, decline_reason_description, denial_status_code, internal_ticket_number, phone_number, resubmit_allowed, status, blocked, blocked_reason].hash
211
231
  end
212
232
 
213
233
  # Builds the object from hash
@@ -41,6 +41,15 @@ module Bandwidth
41
41
  # ISV name.
42
42
  attr_accessor :isv_reseller
43
43
 
44
+ # The Toll-Free Verification request privacy policy URL. (Not Available Until 5/28/2025)
45
+ attr_accessor :privacy_policy_url
46
+
47
+ # The Toll-Free Verification request terms and conditions policy URL. (Not Available Until 5/28/2025)
48
+ attr_accessor :terms_and_conditions_url
49
+
50
+ # The company 'Doing Business As'. (Not Available Until 5/28/2025)
51
+ attr_accessor :business_dba
52
+
44
53
  # Attribute mapping from ruby-style variable name to JSON key.
45
54
  def self.attribute_map
46
55
  {
@@ -53,7 +62,10 @@ module Bandwidth
53
62
  :'production_message_content' => :'productionMessageContent',
54
63
  :'opt_in_workflow' => :'optInWorkflow',
55
64
  :'additional_information' => :'additionalInformation',
56
- :'isv_reseller' => :'isvReseller'
65
+ :'isv_reseller' => :'isvReseller',
66
+ :'privacy_policy_url' => :'privacyPolicyUrl',
67
+ :'terms_and_conditions_url' => :'termsAndConditionsUrl',
68
+ :'business_dba' => :'businessDBA'
57
69
  }
58
70
  end
59
71
 
@@ -74,7 +86,10 @@ module Bandwidth
74
86
  :'production_message_content' => :'String',
75
87
  :'opt_in_workflow' => :'OptInWorkflow',
76
88
  :'additional_information' => :'String',
77
- :'isv_reseller' => :'String'
89
+ :'isv_reseller' => :'String',
90
+ :'privacy_policy_url' => :'String',
91
+ :'terms_and_conditions_url' => :'String',
92
+ :'business_dba' => :'String'
78
93
  }
79
94
  end
80
95
 
@@ -82,7 +97,7 @@ module Bandwidth
82
97
  def self.openapi_nullable
83
98
  Set.new([
84
99
  :'additional_information',
85
- :'isv_reseller'
100
+ :'isv_reseller',
86
101
  ])
87
102
  end
88
103
 
@@ -158,6 +173,18 @@ module Bandwidth
158
173
  if attributes.key?(:'isv_reseller')
159
174
  self.isv_reseller = attributes[:'isv_reseller']
160
175
  end
176
+
177
+ if attributes.key?(:'privacy_policy_url')
178
+ self.privacy_policy_url = attributes[:'privacy_policy_url']
179
+ end
180
+
181
+ if attributes.key?(:'terms_and_conditions_url')
182
+ self.terms_and_conditions_url = attributes[:'terms_and_conditions_url']
183
+ end
184
+
185
+ if attributes.key?(:'business_dba')
186
+ self.business_dba = attributes[:'business_dba']
187
+ end
161
188
  end
162
189
 
163
190
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -417,7 +444,10 @@ module Bandwidth
417
444
  production_message_content == o.production_message_content &&
418
445
  opt_in_workflow == o.opt_in_workflow &&
419
446
  additional_information == o.additional_information &&
420
- isv_reseller == o.isv_reseller
447
+ isv_reseller == o.isv_reseller &&
448
+ privacy_policy_url == o.privacy_policy_url &&
449
+ terms_and_conditions_url == o.terms_and_conditions_url &&
450
+ business_dba == o.business_dba
421
451
  end
422
452
 
423
453
  # @see the `==` method
@@ -429,7 +459,7 @@ module Bandwidth
429
459
  # Calculates hash code according to all attributes.
430
460
  # @return [Integer] Hash code
431
461
  def hash
432
- [business_address, business_contact, message_volume, phone_numbers, use_case, use_case_summary, production_message_content, opt_in_workflow, additional_information, isv_reseller].hash
462
+ [business_address, business_contact, message_volume, phone_numbers, use_case, use_case_summary, production_message_content, opt_in_workflow, additional_information, isv_reseller, privacy_policy_url, terms_and_conditions_url, business_dba].hash
433
463
  end
434
464
 
435
465
  # Builds the object from hash