twilio-ruby 6.12.0 → 6.12.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.
@@ -36,6 +36,12 @@ module Twilio
36
36
  @insights_settings_comment = nil
37
37
  @insights_user_roles = nil
38
38
  @interaction = nil
39
+ @plugins = nil
40
+ @plugin_archive = nil
41
+ @plugin_configurations = nil
42
+ @plugin_configuration_archive = nil
43
+ @plugin_releases = nil
44
+ @plugin_version_archive = nil
39
45
  @provisioning_status = nil
40
46
  @web_channel = nil
41
47
  end
@@ -179,6 +185,112 @@ module Twilio
179
185
  end
180
186
  end
181
187
  ##
188
+ # @param [String] sid The SID of the Flex Plugin resource to fetch.
189
+ # @return [Twilio::REST::FlexApi::V1::PluginContext] if sid was passed.
190
+ # @return [Twilio::REST::FlexApi::V1::PluginList]
191
+ def plugins(sid=:unset)
192
+ if sid.nil?
193
+ raise ArgumentError, 'sid cannot be nil'
194
+ end
195
+ if sid == :unset
196
+ @plugins ||= PluginList.new self
197
+ else
198
+ PluginContext.new(self, sid)
199
+ end
200
+ end
201
+ ##
202
+ # @param [String] sid The SID of the Flex Plugin resource to archive.
203
+ # @return [Twilio::REST::FlexApi::V1::PluginArchiveContext] if sid was passed.
204
+ # @return [Twilio::REST::FlexApi::V1::PluginArchiveList]
205
+ def plugin_archive(sid=:unset)
206
+ if sid.nil?
207
+ raise ArgumentError, 'sid cannot be nil'
208
+ end
209
+ if sid == :unset
210
+ @plugin_archive ||= PluginArchiveList.new self
211
+ else
212
+ PluginArchiveContext.new(self, sid)
213
+ end
214
+ end
215
+ ##
216
+ # @param [String] sid The SID of the Flex Plugin Configuration resource to fetch.
217
+ # @return [Twilio::REST::FlexApi::V1::PluginConfigurationContext] if sid was passed.
218
+ # @return [Twilio::REST::FlexApi::V1::PluginConfigurationList]
219
+ def plugin_configurations(sid=:unset)
220
+ if sid.nil?
221
+ raise ArgumentError, 'sid cannot be nil'
222
+ end
223
+ if sid == :unset
224
+ @plugin_configurations ||= PluginConfigurationList.new self
225
+ else
226
+ PluginConfigurationContext.new(self, sid)
227
+ end
228
+ end
229
+ ##
230
+ # @param [String] sid The SID of the Flex Plugin Configuration resource to archive.
231
+ # @return [Twilio::REST::FlexApi::V1::PluginConfigurationArchiveContext] if sid was passed.
232
+ # @return [Twilio::REST::FlexApi::V1::PluginConfigurationArchiveList]
233
+ def plugin_configuration_archive(sid=:unset)
234
+ if sid.nil?
235
+ raise ArgumentError, 'sid cannot be nil'
236
+ end
237
+ if sid == :unset
238
+ @plugin_configuration_archive ||= PluginConfigurationArchiveList.new self
239
+ else
240
+ PluginConfigurationArchiveContext.new(self, sid)
241
+ end
242
+ end
243
+ ##
244
+ # @param [String] sid The SID of the Flex Plugin Release resource to fetch.
245
+ # @return [Twilio::REST::FlexApi::V1::PluginReleaseContext] if sid was passed.
246
+ # @return [Twilio::REST::FlexApi::V1::PluginReleaseList]
247
+ def plugin_releases(sid=:unset)
248
+ if sid.nil?
249
+ raise ArgumentError, 'sid cannot be nil'
250
+ end
251
+ if sid == :unset
252
+ @plugin_releases ||= PluginReleaseList.new self
253
+ else
254
+ PluginReleaseContext.new(self, sid)
255
+ end
256
+ end
257
+ ##
258
+ # @param [String] plugin_sid The SID of the Flex Plugin the resource to belongs to.
259
+ # @param [String] sid The SID of the Flex Plugin Version resource to archive.
260
+ # @return [Twilio::REST::FlexApi::V1::PluginVersionArchiveContext] if pluginSid was passed.
261
+ # @return [Twilio::REST::FlexApi::V1::PluginVersionArchiveList]
262
+ def plugin_version_archive(plugin_sid=:unset, sid=:unset)
263
+ if plugin_sid.nil?
264
+ raise ArgumentError, 'plugin_sid cannot be nil'
265
+ end
266
+ if sid.nil?
267
+ raise ArgumentError, 'sid cannot be nil'
268
+ end
269
+ if plugin_sid == :unset && sid == :unset
270
+ @plugin_version_archive ||= PluginVersionArchiveList.new self
271
+ else
272
+ PluginVersionArchiveContext.new(self, plugin_sid, sid)
273
+ end
274
+ end
275
+ ##
276
+ # @param [String] plugin_sid The SID of the Flex Plugin the resource to belongs to.
277
+ # @param [String] sid The SID of the Flex Plugin Version resource to archive.
278
+ # @return [Twilio::REST::FlexApi::V1::PluginVersionArchiveContext] if sid was passed.
279
+ # @return [Twilio::REST::FlexApi::V1::PluginVersionArchiveList]
280
+ def plugin_version_archive(plugin_sid=:unset, sid=:unset)
281
+ if plugin_sid.nil?
282
+ raise ArgumentError, 'plugin_sid cannot be nil'
283
+ end
284
+ if sid.nil?
285
+ raise ArgumentError, 'sid cannot be nil'
286
+ end
287
+ if plugin_sid == :unset && sid == :unset
288
+ @plugin_version_archive ||= PluginVersionArchiveList.new self
289
+ else
290
+ PluginVersionArchiveContext.new(self, plugin_sid, sid)
291
+ end
292
+ end
293
+ ##
182
294
  # @return [Twilio::REST::FlexApi::V1::provisioningStatusContext]
183
295
  def provisioning_status
184
296
  @provisioning_status ||= ProvisioningStatusContext.new self
@@ -51,7 +51,7 @@ module Twilio
51
51
 
52
52
  # Path Solution
53
53
  @solution = { phone_number: phone_number, }
54
- @uri = "/PhoneNumbers/#{CGI.escape(@solution[:phone_number]).gsub("+", "%20")}"
54
+ @uri = "/PhoneNumbers/#{@solution[:phone_number]}"
55
55
 
56
56
 
57
57
  end
@@ -302,6 +302,7 @@ module Twilio
302
302
  'status' => payload['status'],
303
303
  'tcr_id' => payload['tcr_id'],
304
304
  'failure_reason' => payload['failure_reason'],
305
+ 'errors' => payload['errors'],
305
306
  'url' => payload['url'],
306
307
  'brand_score' => payload['brand_score'] == nil ? payload['brand_score'] : payload['brand_score'].to_i,
307
308
  'brand_feedback' => payload['brand_feedback'],
@@ -385,11 +386,17 @@ module Twilio
385
386
  end
386
387
 
387
388
  ##
388
- # @return [String] A reason why brand registration has failed. Only applicable when status is FAILED.
389
+ # @return [String] DEPRECATED. A reason why brand registration has failed. Only applicable when status is FAILED.
389
390
  def failure_reason
390
391
  @properties['failure_reason']
391
392
  end
392
393
 
394
+ ##
395
+ # @return [Array<Hash>] A list of errors that occurred during the brand registration process.
396
+ def errors
397
+ @properties['errors']
398
+ end
399
+
393
400
  ##
394
401
  # @return [String] The absolute URL of the Brand Registration resource.
395
402
  def url
@@ -403,7 +410,7 @@ module Twilio
403
410
  end
404
411
 
405
412
  ##
406
- # @return [Array<BrandFeedback>] Feedback on how to improve brand score
413
+ # @return [Array<BrandFeedback>] DEPRECATED. Feedback on how to improve brand score
407
414
  def brand_feedback
408
415
  @properties['brand_feedback']
409
416
  end
@@ -23,7 +23,7 @@ module Twilio
23
23
  @version = 'v1'
24
24
  @bulk_eligibilities = nil
25
25
  @porting_bulk_portabilities = nil
26
- @porting_port_ins = nil
26
+ @porting_port_ins_fetch = nil
27
27
  @porting_portabilities = nil
28
28
  end
29
29
 
@@ -59,12 +59,12 @@ module Twilio
59
59
  # @param [String] port_in_request_sid The SID of the Port In request. This is a unique identifier of the port in request.
60
60
  # @return [Twilio::REST::Numbers::V1::PortingPortInFetchContext] if portInRequestSid was passed.
61
61
  # @return [Twilio::REST::Numbers::V1::PortingPortInFetchList]
62
- def porting_port_ins(port_in_request_sid=:unset)
62
+ def porting_port_ins_fetch(port_in_request_sid=:unset)
63
63
  if port_in_request_sid.nil?
64
64
  raise ArgumentError, 'port_in_request_sid cannot be nil'
65
65
  end
66
66
  if port_in_request_sid == :unset
67
- @porting_port_ins ||= PortingPortInFetchList.new self
67
+ @porting_port_ins_fetch ||= PortingPortInFetchList.new self
68
68
  else
69
69
  PortingPortInFetchContext.new(self, port_in_request_sid)
70
70
  end
@@ -68,6 +68,8 @@ module Twilio
68
68
  # @param [String] individual_email The email address of the Individual User.
69
69
  # @param [String] individual_phone The phone number of the Individual User.
70
70
  # @param [Boolean] is_isv_embed Indicates if the inquiry is being started from an ISV embedded component.
71
+ # @param [String] isv_registering_for_self_or_tenant Indicates if the isv registering for self or tenant.
72
+ # @param [String] status_callback_url The url we call to inform you of bundle changes.
71
73
  # @return [ComplianceRegistrationInquiriesInstance] Created ComplianceRegistrationInquiriesInstance
72
74
  def create(
73
75
  end_user_type: nil,
@@ -105,7 +107,9 @@ module Twilio
105
107
  date_of_birth: :unset,
106
108
  individual_email: :unset,
107
109
  individual_phone: :unset,
108
- is_isv_embed: :unset
110
+ is_isv_embed: :unset,
111
+ isv_registering_for_self_or_tenant: :unset,
112
+ status_callback_url: :unset
109
113
  )
110
114
 
111
115
  data = Twilio::Values.of({
@@ -145,6 +149,8 @@ module Twilio
145
149
  'IndividualEmail' => individual_email,
146
150
  'IndividualPhone' => individual_phone,
147
151
  'IsIsvEmbed' => is_isv_embed,
152
+ 'IsvRegisteringForSelfOrTenant' => isv_registering_for_self_or_tenant,
153
+ 'StatusCallbackUrl' => status_callback_url,
148
154
  })
149
155
 
150
156
 
@@ -23,7 +23,7 @@ module Twilio
23
23
  # body:: Message Body
24
24
  # to:: Phone Number to send Message to
25
25
  # from:: Phone Number to send Message from
26
- # action:: Action URL
26
+ # action:: A URL specifying where Twilio should send status callbacks for the created outbound message.
27
27
  # method:: Action URL Method
28
28
  # status_callback:: Status callback URL. Deprecated in favor of action.
29
29
  # keyword_args:: additional attributes
@@ -1,3 +1,3 @@
1
1
  module Twilio
2
- VERSION = '6.12.0'
2
+ VERSION = '6.12.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twilio-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.12.0
4
+ version: 6.12.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Twilio API Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-27 00:00:00.000000000 Z
11
+ date: 2024-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt
@@ -436,6 +436,14 @@ files:
436
436
  - lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel.rb
437
437
  - lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.rb
438
438
  - lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_participant.rb
439
+ - lib/twilio-ruby/rest/flex_api/v1/plugin.rb
440
+ - lib/twilio-ruby/rest/flex_api/v1/plugin/plugin_versions.rb
441
+ - lib/twilio-ruby/rest/flex_api/v1/plugin_archive.rb
442
+ - lib/twilio-ruby/rest/flex_api/v1/plugin_configuration.rb
443
+ - lib/twilio-ruby/rest/flex_api/v1/plugin_configuration/configured_plugin.rb
444
+ - lib/twilio-ruby/rest/flex_api/v1/plugin_configuration_archive.rb
445
+ - lib/twilio-ruby/rest/flex_api/v1/plugin_release.rb
446
+ - lib/twilio-ruby/rest/flex_api/v1/plugin_version_archive.rb
439
447
  - lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb
440
448
  - lib/twilio-ruby/rest/flex_api/v1/web_channel.rb
441
449
  - lib/twilio-ruby/rest/flex_api/v2.rb