bandwidth-sdk 17.3.0 → 17.3.2

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 (50) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +6 -6
  3. data/bandwidth.yml +175 -31
  4. data/coverage/.resultset.json +5 -13
  5. data/coverage/index.html +69 -165
  6. data/docs/Callback.md +1 -0
  7. data/docs/InboundCallbackMessage.md +1 -1
  8. data/docs/LookupErrorSchema.md +3 -3
  9. data/docs/LookupResult.md +4 -2
  10. data/docs/Media.md +2 -2
  11. data/docs/Message.md +1 -1
  12. data/docs/MessageRequest.md +1 -1
  13. data/docs/MultiChannelChannelListMMSObject.md +1 -1
  14. data/docs/MultiChannelChannelListMMSResponseObject.md +1 -1
  15. data/docs/MultiChannelChannelListObjectBase.md +1 -1
  16. data/docs/MultiChannelChannelListRBMObject.md +1 -1
  17. data/docs/MultiChannelChannelListRBMResponseObject.md +1 -1
  18. data/docs/MultiChannelChannelListRequestObject.md +1 -1
  19. data/docs/MultiChannelChannelListResponseObject.md +1 -1
  20. data/docs/MultiChannelChannelListSMSObject.md +1 -1
  21. data/docs/MultiChannelChannelListSMSResponseObject.md +1 -1
  22. data/docs/RbmActionBase.md +1 -1
  23. data/docs/RbmSuggestionResponse.md +1 -1
  24. data/docs/StatusCallbackMessage.md +1 -1
  25. data/docs/TfvSubmissionInfo.md +1 -1
  26. data/docs/VerificationRequest.md +1 -1
  27. data/docs/VerificationUpdateRequest.md +1 -1
  28. data/lib/bandwidth-sdk/models/business_registration_issuing_country_enum.rb +5 -1
  29. data/lib/bandwidth-sdk/models/callback.rb +1 -0
  30. data/lib/bandwidth-sdk/models/inbound_callback_message.rb +1 -1
  31. data/lib/bandwidth-sdk/models/latest_message_delivery_status_enum.rb +2 -1
  32. data/lib/bandwidth-sdk/models/lookup_error_schema.rb +51 -0
  33. data/lib/bandwidth-sdk/models/lookup_result.rb +15 -5
  34. data/lib/bandwidth-sdk/models/message.rb +1 -1
  35. data/lib/bandwidth-sdk/models/message_request.rb +1 -1
  36. data/lib/bandwidth-sdk/models/multi_channel_channel_list_mms_object.rb +1 -1
  37. data/lib/bandwidth-sdk/models/multi_channel_channel_list_mms_response_object.rb +1 -1
  38. data/lib/bandwidth-sdk/models/multi_channel_channel_list_object_base.rb +1 -1
  39. data/lib/bandwidth-sdk/models/multi_channel_channel_list_rbm_object.rb +1 -1
  40. data/lib/bandwidth-sdk/models/multi_channel_channel_list_rbm_response_object.rb +1 -1
  41. data/lib/bandwidth-sdk/models/multi_channel_channel_list_sms_object.rb +1 -1
  42. data/lib/bandwidth-sdk/models/multi_channel_channel_list_sms_response_object.rb +1 -1
  43. data/lib/bandwidth-sdk/models/status_callback_message.rb +1 -1
  44. data/lib/bandwidth-sdk/models/tfv_submission_info.rb +58 -1
  45. data/lib/bandwidth-sdk/models/verification_request.rb +58 -1
  46. data/lib/bandwidth-sdk/models/verification_update_request.rb +58 -1
  47. data/lib/bandwidth-sdk/version.rb +1 -1
  48. data/spec/smoke/phone_number_lookup_api_spec.rb +0 -2
  49. data/spec/unit/api/phone_number_lookup_api_spec.rb +0 -8
  50. metadata +45 -45
data/docs/Message.md CHANGED
@@ -6,7 +6,7 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **id** | **String** | The id of the message. | [optional] |
8
8
  | **owner** | **String** | The Bandwidth phone number associated with the message. | [optional] |
9
- | **application_id** | **String** | The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard. | [optional] |
9
+ | **application_id** | **String** | The ID of the Application your from number or senderId is associated with in the Bandwidth App. | [optional] |
10
10
  | **time** | **Time** | The datetime stamp of the message in ISO 8601 | [optional] |
11
11
  | **segment_count** | **Integer** | The number of segments the user's message is broken into before sending over carrier networks. | [optional] |
12
12
  | **direction** | [**MessageDirectionEnum**](MessageDirectionEnum.md) | | [optional] |
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **application_id** | **String** | The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard. | |
7
+ | **application_id** | **String** | The ID of the Application your from number or senderId is associated with in the Bandwidth App. | |
8
8
  | **to** | **Array<String>** | The phone number(s) the message should be sent to in E164 format. | |
9
9
  | **from** | **String** | Either an alphanumeric sender ID or the sender's Bandwidth phone number in E.164 format, which must be hosted within Bandwidth and linked to the account that is generating the message. Alphanumeric Sender IDs can contain up to 11 characters, upper-case letters A-Z, lower-case letters a-z, numbers 0-9, space, hyphen -, plus +, underscore _ and ampersand &. Alphanumeric Sender IDs must contain at least one letter. | |
10
10
  | **text** | **String** | The contents of the text message. Must be 2048 characters or less. | [optional] |
@@ -5,7 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **from** | **String** | The sender ID of the message. This could be an alphanumeric sender ID. | |
8
- | **application_id** | **String** | The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard. | |
8
+ | **application_id** | **String** | The ID of the Application your from number or senderId is associated with in the Bandwidth App. | |
9
9
  | **channel** | [**MultiChannelMessageChannelEnum**](MultiChannelMessageChannelEnum.md) | | |
10
10
  | **content** | [**MmsMessageContent**](MmsMessageContent.md) | | |
11
11
 
@@ -5,7 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **from** | **String** | The sender ID of the message. This could be an alphanumeric sender ID. | |
8
- | **application_id** | **String** | The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard. | |
8
+ | **application_id** | **String** | The ID of the Application your from number or senderId is associated with in the Bandwidth App. | |
9
9
  | **channel** | [**MultiChannelMessageChannelEnum**](MultiChannelMessageChannelEnum.md) | | |
10
10
  | **content** | [**MmsMessageContent**](MmsMessageContent.md) | | |
11
11
  | **owner** | **String** | The Bandwidth senderId associated with the message. Identical to 'from'. | |
@@ -5,7 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **from** | **String** | The sender ID of the message. This could be an alphanumeric sender ID. | |
8
- | **application_id** | **String** | The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard. | |
8
+ | **application_id** | **String** | The ID of the Application your from number or senderId is associated with in the Bandwidth App. | |
9
9
  | **channel** | [**MultiChannelMessageChannelEnum**](MultiChannelMessageChannelEnum.md) | | |
10
10
 
11
11
  ## Example
@@ -5,7 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **from** | **String** | The sender ID of the message. This could be an alphanumeric sender ID. | |
8
- | **application_id** | **String** | The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard. | |
8
+ | **application_id** | **String** | The ID of the Application your from number or senderId is associated with in the Bandwidth App. | |
9
9
  | **channel** | [**MultiChannelMessageChannelEnum**](MultiChannelMessageChannelEnum.md) | | |
10
10
  | **content** | [**MultiChannelChannelListRBMObjectAllOfContent**](MultiChannelChannelListRBMObjectAllOfContent.md) | | |
11
11
 
@@ -5,7 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **from** | **String** | The sender ID of the message. This could be an alphanumeric sender ID. | |
8
- | **application_id** | **String** | The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard. | |
8
+ | **application_id** | **String** | The ID of the Application your from number or senderId is associated with in the Bandwidth App. | |
9
9
  | **channel** | [**MultiChannelMessageChannelEnum**](MultiChannelMessageChannelEnum.md) | | |
10
10
  | **content** | [**MultiChannelChannelListRBMObjectAllOfContent**](MultiChannelChannelListRBMObjectAllOfContent.md) | | |
11
11
  | **owner** | **String** | The Bandwidth senderId associated with the message. Identical to 'from'. | |
@@ -5,7 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **from** | **String** | The sender ID of the message. This could be an alphanumeric sender ID. | |
8
- | **application_id** | **String** | The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard. | |
8
+ | **application_id** | **String** | The ID of the Application your from number or senderId is associated with in the Bandwidth App. | |
9
9
  | **channel** | [**MultiChannelMessageChannelEnum**](MultiChannelMessageChannelEnum.md) | | |
10
10
  | **content** | [**MmsMessageContent**](MmsMessageContent.md) | | |
11
11
 
@@ -5,7 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **from** | **String** | The sender ID of the message. This could be an alphanumeric sender ID. | |
8
- | **application_id** | **String** | The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard. | |
8
+ | **application_id** | **String** | The ID of the Application your from number or senderId is associated with in the Bandwidth App. | |
9
9
  | **channel** | [**MultiChannelMessageChannelEnum**](MultiChannelMessageChannelEnum.md) | | |
10
10
  | **content** | [**MmsMessageContent**](MmsMessageContent.md) | | |
11
11
  | **owner** | **String** | The Bandwidth senderId associated with the message. Identical to 'from'. | |
@@ -5,7 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **from** | **String** | The sender ID of the message. This could be an alphanumeric sender ID. | |
8
- | **application_id** | **String** | The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard. | |
8
+ | **application_id** | **String** | The ID of the Application your from number or senderId is associated with in the Bandwidth App. | |
9
9
  | **channel** | [**MultiChannelMessageChannelEnum**](MultiChannelMessageChannelEnum.md) | | |
10
10
  | **content** | [**SmsMessageContent**](SmsMessageContent.md) | | |
11
11
 
@@ -5,7 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **from** | **String** | The sender ID of the message. This could be an alphanumeric sender ID. | |
8
- | **application_id** | **String** | The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard. | |
8
+ | **application_id** | **String** | The ID of the Application your from number or senderId is associated with in the Bandwidth App. | |
9
9
  | **channel** | [**MultiChannelMessageChannelEnum**](MultiChannelMessageChannelEnum.md) | | |
10
10
  | **content** | [**SmsMessageContent**](SmsMessageContent.md) | | |
11
11
  | **owner** | **String** | The Bandwidth senderId associated with the message. Identical to 'from'. | |
@@ -16,7 +16,7 @@ require 'bandwidth-sdk'
16
16
  instance = Bandwidth::RbmActionBase.new(
17
17
  type: null,
18
18
  text: Hello world,
19
- postback_data: [B@177302d6
19
+ postback_data: [B@4693d24f
20
20
  )
21
21
  ```
22
22
 
@@ -14,7 +14,7 @@ require 'bandwidth-sdk'
14
14
 
15
15
  instance = Bandwidth::RbmSuggestionResponse.new(
16
16
  text: Yes, I would like to proceed,
17
- postback_data: [B@177302d6
17
+ postback_data: [B@4693d24f
18
18
  )
19
19
  ```
20
20
 
@@ -6,7 +6,7 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **id** | **String** | A unique identifier of the message. | |
8
8
  | **owner** | **String** | The Bandwidth phone number or alphanumeric identifier associated with the message. | |
9
- | **application_id** | **String** | The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard. | |
9
+ | **application_id** | **String** | The ID of the Application your from number or senderId is associated with in the Bandwidth App. | |
10
10
  | **time** | **Time** | | |
11
11
  | **segment_count** | **Integer** | The number of segments the user's message is broken into before sending over carrier networks. | |
12
12
  | **direction** | [**MessageDirectionEnum**](MessageDirectionEnum.md) | | |
@@ -16,7 +16,7 @@
16
16
  | **privacy_policy_url** | **String** | The Toll-Free Verification request privacy policy URL. | [optional] |
17
17
  | **terms_and_conditions_url** | **String** | The Toll-Free Verification request terms and conditions policy URL. | [optional] |
18
18
  | **business_dba** | **String** | The company 'Doing Business As'. | [optional] |
19
- | **business_registration_number** | **String** | Government-issued business identifying number. | [optional] |
19
+ | **business_registration_number** | **String** | Government-issued business identifying number. **Note:** If this field is provided, it is strongly recommended to also provide `businessRegistrationType` and `businessRegistrationIssuingCountry`. Submissions missing these fields have a high likelihood of rejection. | [optional] |
20
20
  | **business_registration_type** | [**BusinessRegistrationTypeEnum**](BusinessRegistrationTypeEnum.md) | | [optional] |
21
21
  | **business_registration_issuing_country** | [**BusinessRegistrationIssuingCountryEnum**](BusinessRegistrationIssuingCountryEnum.md) | | [optional] |
22
22
  | **business_entity_type** | [**BusinessEntityTypeEnum**](BusinessEntityTypeEnum.md) | | [optional] |
@@ -17,7 +17,7 @@
17
17
  | **privacy_policy_url** | **String** | The Toll-Free Verification request privacy policy URL. | [optional] |
18
18
  | **terms_and_conditions_url** | **String** | The Toll-Free Verification request terms and conditions policy URL. | [optional] |
19
19
  | **business_dba** | **String** | The company 'Doing Business As'. | [optional] |
20
- | **business_registration_number** | **String** | Government-issued business identifying number. | [optional] |
20
+ | **business_registration_number** | **String** | Government-issued business identifying number. **Note:** If this field is provided, it is strongly recommended to also provide `businessRegistrationType` and `businessRegistrationIssuingCountry`. Submissions missing these fields have a high likelihood of rejection. | [optional] |
21
21
  | **business_registration_type** | [**BusinessRegistrationTypeEnum**](BusinessRegistrationTypeEnum.md) | | [optional] |
22
22
  | **business_registration_issuing_country** | [**BusinessRegistrationIssuingCountryEnum**](BusinessRegistrationIssuingCountryEnum.md) | | [optional] |
23
23
  | **business_entity_type** | [**BusinessEntityTypeEnum**](BusinessEntityTypeEnum.md) | | |
@@ -16,7 +16,7 @@
16
16
  | **privacy_policy_url** | **String** | The Toll-Free Verification request privacy policy URL. | [optional] |
17
17
  | **terms_and_conditions_url** | **String** | The Toll-Free Verification request terms and conditions policy URL. | [optional] |
18
18
  | **business_dba** | **String** | The company 'Doing Business As'. | [optional] |
19
- | **business_registration_number** | **String** | Government-issued business identifying number. | [optional] |
19
+ | **business_registration_number** | **String** | Government-issued business identifying number. **Note:** If this field is provided, it is strongly recommended to also provide `businessRegistrationType` and `businessRegistrationIssuingCountry`. Submissions missing these fields have a high likelihood of rejection. | [optional] |
20
20
  | **business_registration_type** | [**BusinessRegistrationTypeEnum**](BusinessRegistrationTypeEnum.md) | | [optional] |
21
21
  | **business_entity_type** | [**BusinessEntityTypeEnum**](BusinessEntityTypeEnum.md) | | [optional] |
22
22
  | **business_registration_issuing_country** | [**BusinessRegistrationIssuingCountryEnum**](BusinessRegistrationIssuingCountryEnum.md) | | [optional] |
@@ -28,9 +28,13 @@ module Bandwidth
28
28
  DEU = 'DEU'.freeze
29
29
  ESP = 'ESP'.freeze
30
30
  CHE = 'CHE'.freeze
31
+ CYP = 'CYP'.freeze
32
+ IND = 'IND'.freeze
33
+ CHN = 'CHN'.freeze
34
+ BGR = 'BGR'.freeze
31
35
 
32
36
  def self.all_vars
33
- @all_vars ||= [USA, CAN, HKG, GBR, IRL, BRA, NLD, AUS, FRA, NZL, DEU, ESP, CHE].freeze
37
+ @all_vars ||= [USA, CAN, HKG, GBR, IRL, BRA, NLD, AUS, FRA, NZL, DEU, ESP, CHE, CYP, IND, CHN, BGR].freeze
34
38
  end
35
39
 
36
40
  # Builds the enum from string
@@ -37,6 +37,7 @@ module Bandwidth
37
37
  :'message-failed' => :'StatusCallback',
38
38
  :'message-read' => :'StatusCallback',
39
39
  :'message-received' => :'InboundCallback',
40
+ :'message-sending' => :'StatusCallback',
40
41
  :'message-sent' => :'StatusCallback',
41
42
  :'request-location-response' => :'InboundCallback',
42
43
  :'suggestion-response' => :'InboundCallback'
@@ -21,7 +21,7 @@ module Bandwidth
21
21
  # The Bandwidth phone number or alphanumeric identifier associated with the message.
22
22
  attr_accessor :owner
23
23
 
24
- # The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard.
24
+ # The ID of the Application your from number or senderId is associated with in the Bandwidth App.
25
25
  attr_accessor :application_id
26
26
 
27
27
  attr_accessor :time
@@ -18,9 +18,10 @@ module Bandwidth
18
18
  ACTIVE = 'ACTIVE'.freeze
19
19
  DEACTIVATED = 'DEACTIVATED'.freeze
20
20
  UNKNOWN = 'UNKNOWN'.freeze
21
+ NOT_ENABLED = 'NOT_ENABLED'.freeze
21
22
 
22
23
  def self.all_vars
23
- @all_vars ||= [ACTIVE, DEACTIVATED, UNKNOWN].freeze
24
+ @all_vars ||= [ACTIVE, DEACTIVATED, UNKNOWN, NOT_ENABLED].freeze
24
25
  end
25
26
 
26
27
  # Builds the enum from string
@@ -80,14 +80,20 @@ module Bandwidth
80
80
 
81
81
  if attributes.key?(:'code')
82
82
  self.code = attributes[:'code']
83
+ else
84
+ self.code = nil
83
85
  end
84
86
 
85
87
  if attributes.key?(:'description')
86
88
  self.description = attributes[:'description']
89
+ else
90
+ self.description = nil
87
91
  end
88
92
 
89
93
  if attributes.key?(:'type')
90
94
  self.type = attributes[:'type']
95
+ else
96
+ self.type = nil
91
97
  end
92
98
 
93
99
  if attributes.key?(:'meta')
@@ -100,6 +106,18 @@ module Bandwidth
100
106
  def list_invalid_properties
101
107
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
102
108
  invalid_properties = Array.new
109
+ if @code.nil?
110
+ invalid_properties.push('invalid value for "code", code cannot be nil.')
111
+ end
112
+
113
+ if @description.nil?
114
+ invalid_properties.push('invalid value for "description", description cannot be nil.')
115
+ end
116
+
117
+ if @type.nil?
118
+ invalid_properties.push('invalid value for "type", type cannot be nil.')
119
+ end
120
+
103
121
  invalid_properties
104
122
  end
105
123
 
@@ -107,9 +125,42 @@ module Bandwidth
107
125
  # @return true if the model is valid
108
126
  def valid?
109
127
  warn '[DEPRECATED] the `valid?` method is obsolete'
128
+ return false if @code.nil?
129
+ return false if @description.nil?
130
+ return false if @type.nil?
110
131
  true
111
132
  end
112
133
 
134
+ # Custom attribute writer method with validation
135
+ # @param [Object] code Value to be assigned
136
+ def code=(code)
137
+ if code.nil?
138
+ fail ArgumentError, 'code cannot be nil'
139
+ end
140
+
141
+ @code = code
142
+ end
143
+
144
+ # Custom attribute writer method with validation
145
+ # @param [Object] description Value to be assigned
146
+ def description=(description)
147
+ if description.nil?
148
+ fail ArgumentError, 'description cannot be nil'
149
+ end
150
+
151
+ @description = description
152
+ end
153
+
154
+ # Custom attribute writer method with validation
155
+ # @param [Object] type Value to be assigned
156
+ def type=(type)
157
+ if type.nil?
158
+ fail ArgumentError, 'type cannot be nil'
159
+ end
160
+
161
+ @type = type
162
+ end
163
+
113
164
  # Checks equality by comparing each attribute.
114
165
  # @param [Object] Object to be compared
115
166
  def ==(o)
@@ -43,9 +43,12 @@ module Bandwidth
43
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
44
  attr_accessor :initial_message_delivery_status_date
45
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.
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
47
  attr_accessor :latest_message_delivery_status_date
48
48
 
49
+ # [RCS-Only](#section/RCS-Only). Indicates whether the phone number is capable of receiving RCS messages. Value will be null if account has RCS, but no value was returned. Absent when account does not have RCS.
50
+ attr_accessor :rcs_enabled
51
+
49
52
  class EnumAttributeValidator
50
53
  attr_reader :datatype
51
54
  attr_reader :allowable_values
@@ -81,7 +84,8 @@ module Bandwidth
81
84
  :'deactivation_event' => :'deactivationEvent',
82
85
  :'latest_message_delivery_status' => :'latestMessageDeliveryStatus',
83
86
  :'initial_message_delivery_status_date' => :'initialMessageDeliveryStatusDate',
84
- :'latest_message_delivery_status_date' => :'latestMessageDeliveryStatusDate'
87
+ :'latest_message_delivery_status_date' => :'latestMessageDeliveryStatusDate',
88
+ :'rcs_enabled' => :'rcsEnabled'
85
89
  }
86
90
  end
87
91
 
@@ -108,7 +112,8 @@ module Bandwidth
108
112
  :'deactivation_event' => :'DeactivationEventEnum',
109
113
  :'latest_message_delivery_status' => :'LatestMessageDeliveryStatusEnum',
110
114
  :'initial_message_delivery_status_date' => :'Date',
111
- :'latest_message_delivery_status_date' => :'Date'
115
+ :'latest_message_delivery_status_date' => :'Date',
116
+ :'rcs_enabled' => :'Boolean'
112
117
  }
113
118
  end
114
119
 
@@ -177,6 +182,10 @@ module Bandwidth
177
182
  if attributes.key?(:'latest_message_delivery_status_date')
178
183
  self.latest_message_delivery_status_date = attributes[:'latest_message_delivery_status_date']
179
184
  end
185
+
186
+ if attributes.key?(:'rcs_enabled')
187
+ self.rcs_enabled = attributes[:'rcs_enabled']
188
+ end
180
189
  end
181
190
 
182
191
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -209,7 +218,8 @@ module Bandwidth
209
218
  deactivation_event == o.deactivation_event &&
210
219
  latest_message_delivery_status == o.latest_message_delivery_status &&
211
220
  initial_message_delivery_status_date == o.initial_message_delivery_status_date &&
212
- latest_message_delivery_status_date == o.latest_message_delivery_status_date
221
+ latest_message_delivery_status_date == o.latest_message_delivery_status_date &&
222
+ rcs_enabled == o.rcs_enabled
213
223
  end
214
224
 
215
225
  # @see the `==` method
@@ -221,7 +231,7 @@ module Bandwidth
221
231
  # Calculates hash code according to all attributes.
222
232
  # @return [Integer] Hash code
223
233
  def hash
224
- [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
234
+ [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, rcs_enabled].hash
225
235
  end
226
236
 
227
237
  # Builds the object from hash
@@ -21,7 +21,7 @@ module Bandwidth
21
21
  # The Bandwidth phone number associated with the message.
22
22
  attr_accessor :owner
23
23
 
24
- # The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard.
24
+ # The ID of the Application your from number or senderId is associated with in the Bandwidth App.
25
25
  attr_accessor :application_id
26
26
 
27
27
  # The datetime stamp of the message in ISO 8601
@@ -15,7 +15,7 @@ require 'time'
15
15
 
16
16
  module Bandwidth
17
17
  class MessageRequest < ApiModelBase
18
- # The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard.
18
+ # The ID of the Application your from number or senderId is associated with in the Bandwidth App.
19
19
  attr_accessor :application_id
20
20
 
21
21
  # The phone number(s) the message should be sent to in E164 format.
@@ -18,7 +18,7 @@ module Bandwidth
18
18
  # The sender ID of the message. This could be an alphanumeric sender ID.
19
19
  attr_accessor :from
20
20
 
21
- # The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard.
21
+ # The ID of the Application your from number or senderId is associated with in the Bandwidth App.
22
22
  attr_accessor :application_id
23
23
 
24
24
  attr_accessor :channel
@@ -18,7 +18,7 @@ module Bandwidth
18
18
  # The sender ID of the message. This could be an alphanumeric sender ID.
19
19
  attr_accessor :from
20
20
 
21
- # The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard.
21
+ # The ID of the Application your from number or senderId is associated with in the Bandwidth App.
22
22
  attr_accessor :application_id
23
23
 
24
24
  attr_accessor :channel
@@ -18,7 +18,7 @@ module Bandwidth
18
18
  # The sender ID of the message. This could be an alphanumeric sender ID.
19
19
  attr_accessor :from
20
20
 
21
- # The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard.
21
+ # The ID of the Application your from number or senderId is associated with in the Bandwidth App.
22
22
  attr_accessor :application_id
23
23
 
24
24
  attr_accessor :channel
@@ -18,7 +18,7 @@ module Bandwidth
18
18
  # The sender ID of the message. This could be an alphanumeric sender ID.
19
19
  attr_accessor :from
20
20
 
21
- # The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard.
21
+ # The ID of the Application your from number or senderId is associated with in the Bandwidth App.
22
22
  attr_accessor :application_id
23
23
 
24
24
  attr_accessor :channel
@@ -18,7 +18,7 @@ module Bandwidth
18
18
  # The sender ID of the message. This could be an alphanumeric sender ID.
19
19
  attr_accessor :from
20
20
 
21
- # The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard.
21
+ # The ID of the Application your from number or senderId is associated with in the Bandwidth App.
22
22
  attr_accessor :application_id
23
23
 
24
24
  attr_accessor :channel
@@ -18,7 +18,7 @@ module Bandwidth
18
18
  # The sender ID of the message. This could be an alphanumeric sender ID.
19
19
  attr_accessor :from
20
20
 
21
- # The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard.
21
+ # The ID of the Application your from number or senderId is associated with in the Bandwidth App.
22
22
  attr_accessor :application_id
23
23
 
24
24
  attr_accessor :channel
@@ -18,7 +18,7 @@ module Bandwidth
18
18
  # The sender ID of the message. This could be an alphanumeric sender ID.
19
19
  attr_accessor :from
20
20
 
21
- # The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard.
21
+ # The ID of the Application your from number or senderId is associated with in the Bandwidth App.
22
22
  attr_accessor :application_id
23
23
 
24
24
  attr_accessor :channel
@@ -22,7 +22,7 @@ module Bandwidth
22
22
  # The Bandwidth phone number or alphanumeric identifier associated with the message.
23
23
  attr_accessor :owner
24
24
 
25
- # The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard.
25
+ # The ID of the Application your from number or senderId is associated with in the Bandwidth App.
26
26
  attr_accessor :application_id
27
27
 
28
28
  attr_accessor :time
@@ -48,7 +48,7 @@ module Bandwidth
48
48
  # The company 'Doing Business As'.
49
49
  attr_accessor :business_dba
50
50
 
51
- # Government-issued business identifying number.
51
+ # Government-issued business identifying number. **Note:** If this field is provided, it is strongly recommended to also provide `businessRegistrationType` and `businessRegistrationIssuingCountry`. Submissions missing these fields have a high likelihood of rejection.
52
52
  attr_accessor :business_registration_number
53
53
 
54
54
  attr_accessor :business_registration_type
@@ -277,6 +277,18 @@ module Bandwidth
277
277
  invalid_properties.push('invalid value for "isv_reseller", the character length must be greater than or equal to 0.')
278
278
  end
279
279
 
280
+ if !@privacy_policy_url.nil? && @privacy_policy_url.to_s.length > 500
281
+ invalid_properties.push('invalid value for "privacy_policy_url", the character length must be smaller than or equal to 500.')
282
+ end
283
+
284
+ if !@terms_and_conditions_url.nil? && @terms_and_conditions_url.to_s.length > 500
285
+ invalid_properties.push('invalid value for "terms_and_conditions_url", the character length must be smaller than or equal to 500.')
286
+ end
287
+
288
+ if !@business_dba.nil? && @business_dba.to_s.length > 500
289
+ invalid_properties.push('invalid value for "business_dba", the character length must be smaller than or equal to 500.')
290
+ end
291
+
280
292
  if !@business_registration_number.nil? && @business_registration_number.to_s.length > 500
281
293
  invalid_properties.push('invalid value for "business_registration_number", the character length must be smaller than or equal to 500.')
282
294
  end
@@ -300,6 +312,9 @@ module Bandwidth
300
312
  return false if !@additional_information.nil? && @additional_information.to_s.length < 0
301
313
  return false if !@isv_reseller.nil? && @isv_reseller.to_s.length > 500
302
314
  return false if !@isv_reseller.nil? && @isv_reseller.to_s.length < 0
315
+ return false if !@privacy_policy_url.nil? && @privacy_policy_url.to_s.length > 500
316
+ return false if !@terms_and_conditions_url.nil? && @terms_and_conditions_url.to_s.length > 500
317
+ return false if !@business_dba.nil? && @business_dba.to_s.length > 500
303
318
  return false if !@business_registration_number.nil? && @business_registration_number.to_s.length > 500
304
319
  true
305
320
  end
@@ -404,6 +419,48 @@ module Bandwidth
404
419
  @isv_reseller = isv_reseller
405
420
  end
406
421
 
422
+ # Custom attribute writer method with validation
423
+ # @param [Object] privacy_policy_url Value to be assigned
424
+ def privacy_policy_url=(privacy_policy_url)
425
+ if privacy_policy_url.nil?
426
+ fail ArgumentError, 'privacy_policy_url cannot be nil'
427
+ end
428
+
429
+ if privacy_policy_url.to_s.length > 500
430
+ fail ArgumentError, 'invalid value for "privacy_policy_url", the character length must be smaller than or equal to 500.'
431
+ end
432
+
433
+ @privacy_policy_url = privacy_policy_url
434
+ end
435
+
436
+ # Custom attribute writer method with validation
437
+ # @param [Object] terms_and_conditions_url Value to be assigned
438
+ def terms_and_conditions_url=(terms_and_conditions_url)
439
+ if terms_and_conditions_url.nil?
440
+ fail ArgumentError, 'terms_and_conditions_url cannot be nil'
441
+ end
442
+
443
+ if terms_and_conditions_url.to_s.length > 500
444
+ fail ArgumentError, 'invalid value for "terms_and_conditions_url", the character length must be smaller than or equal to 500.'
445
+ end
446
+
447
+ @terms_and_conditions_url = terms_and_conditions_url
448
+ end
449
+
450
+ # Custom attribute writer method with validation
451
+ # @param [Object] business_dba Value to be assigned
452
+ def business_dba=(business_dba)
453
+ if business_dba.nil?
454
+ fail ArgumentError, 'business_dba cannot be nil'
455
+ end
456
+
457
+ if business_dba.to_s.length > 500
458
+ fail ArgumentError, 'invalid value for "business_dba", the character length must be smaller than or equal to 500.'
459
+ end
460
+
461
+ @business_dba = business_dba
462
+ end
463
+
407
464
  # Custom attribute writer method with validation
408
465
  # @param [Object] business_registration_number Value to be assigned
409
466
  def business_registration_number=(business_registration_number)