twilio-ruby 7.0.2 → 7.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +58 -0
  3. data/Gemfile +1 -0
  4. data/README.md +2 -2
  5. data/lib/twilio-ruby/rest/api/v2010/account/message.rb +3 -3
  6. data/lib/twilio-ruby/rest/client.rb +3 -3
  7. data/lib/twilio-ruby/rest/content/v2/content.rb +316 -0
  8. data/lib/twilio-ruby/rest/content/v2/content_and_approvals.rb +309 -0
  9. data/lib/twilio-ruby/rest/content/v2.rb +46 -0
  10. data/lib/twilio-ruby/rest/content_base.rb +6 -1
  11. data/lib/twilio-ruby/rest/flex_api/v1/interaction.rb +1 -1
  12. data/lib/twilio-ruby/rest/flex_api/v1/plugin/plugin_versions.rb +8 -1
  13. data/lib/twilio-ruby/rest/intelligence/v2/custom_operator.rb +444 -0
  14. data/lib/twilio-ruby/rest/intelligence/v2/operator.rb +355 -0
  15. data/lib/twilio-ruby/rest/intelligence/v2/operator_attachment.rb +215 -0
  16. data/lib/twilio-ruby/rest/intelligence/v2/operator_attachments.rb +196 -0
  17. data/lib/twilio-ruby/rest/intelligence/v2/operator_type.rb +357 -0
  18. data/lib/twilio-ruby/rest/intelligence/v2/prebuilt_operator.rb +355 -0
  19. data/lib/twilio-ruby/rest/intelligence/v2/service.rb +9 -8
  20. data/lib/twilio-ruby/rest/intelligence/v2/transcript.rb +18 -18
  21. data/lib/twilio-ruby/rest/intelligence/v2.rb +112 -0
  22. data/lib/twilio-ruby/rest/marketplace/v1/available_add_on/available_add_on_extension.rb +308 -0
  23. data/lib/twilio-ruby/rest/marketplace/v1/available_add_on.rb +335 -0
  24. data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_extension.rb +350 -0
  25. data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_usage.rb +169 -0
  26. data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on.rb +461 -0
  27. data/lib/twilio-ruby/rest/marketplace/v1/module_data_management.rb +282 -0
  28. data/lib/twilio-ruby/rest/marketplace/v1.rb +79 -0
  29. data/lib/twilio-ruby/rest/marketplace.rb +6 -0
  30. data/lib/twilio-ruby/rest/{preview_messaging_base.rb → marketplace_base.rb} +6 -6
  31. data/lib/twilio-ruby/rest/messaging/v1/service.rb +0 -7
  32. data/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb +15 -3
  33. data/lib/twilio-ruby/rest/messaging/v1.rb +1 -1
  34. data/lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb +86 -1
  35. data/lib/twilio-ruby/rest/numbers/v1/porting_port_in_phone_number.rb +126 -2
  36. data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration.rb +148 -0
  37. data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_delete.rb +167 -0
  38. data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_fetch.rb +160 -0
  39. data/lib/twilio-ruby/rest/numbers/v1/signing_request_configuration.rb +176 -0
  40. data/lib/twilio-ruby/rest/numbers/v1.rb +35 -32
  41. data/lib/twilio-ruby/rest/preview/sync/service/document.rb +1 -1
  42. data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +2 -2
  43. data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +2 -2
  44. data/lib/twilio-ruby/rest/preview/sync/service.rb +2 -2
  45. data/lib/twilio-ruby/rest/sync/v1/service/document.rb +1 -1
  46. data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +2 -2
  47. data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +2 -2
  48. data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +1 -1
  49. data/lib/twilio-ruby/rest/sync/v1/service.rb +3 -3
  50. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +33 -4
  51. data/lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb +4 -1
  52. data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles.rb +7 -0
  53. data/lib/twilio-ruby/rest/trusthub/v1/trust_products.rb +7 -0
  54. data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +1 -1
  55. data/lib/twilio-ruby/rest/verify/v2/service/verification_check.rb +1 -1
  56. data/lib/twilio-ruby/rest/verify/v2/service.rb +1 -1
  57. data/lib/twilio-ruby/version.rb +1 -1
  58. metadata +24 -9
  59. data/lib/twilio-ruby/rest/numbers/v1/porting_bulk_portability.rb +0 -230
  60. data/lib/twilio-ruby/rest/numbers/v1/porting_port_in_fetch.rb +0 -252
  61. data/lib/twilio-ruby/rest/preview_messaging/v1/broadcast.rb +0 -164
  62. data/lib/twilio-ruby/rest/preview_messaging/v1/message.rb +0 -235
  63. data/lib/twilio-ruby/rest/preview_messaging/v1.rb +0 -46
  64. data/lib/twilio-ruby/rest/preview_messaging.rb +0 -12
@@ -0,0 +1,282 @@
1
+ ##
2
+ # This code was generated by
3
+ # ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
4
+ # | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
5
+ # | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6
+ #
7
+ # Twilio - Marketplace
8
+ # This is the public Twilio REST API.
9
+ #
10
+ # NOTE: This class is auto generated by OpenAPI Generator.
11
+ # https://openapi-generator.tech
12
+ # Do not edit the class manually.
13
+ #
14
+
15
+
16
+ module Twilio
17
+ module REST
18
+ class Marketplace < MarketplaceBase
19
+ class V1 < Version
20
+ class ModuleDataManagementList < ListResource
21
+
22
+ ##
23
+ # Initialize the ModuleDataManagementList
24
+ # @param [Version] version Version that contains the resource
25
+ # @return [ModuleDataManagementList] ModuleDataManagementList
26
+ def initialize(version)
27
+ super(version)
28
+ # Path Solution
29
+ @solution = { }
30
+
31
+
32
+ end
33
+
34
+
35
+
36
+ # Provide a user friendly representation
37
+ def to_s
38
+ '#<Twilio.Marketplace.V1.ModuleDataManagementList>'
39
+ end
40
+ end
41
+
42
+
43
+ class ModuleDataManagementContext < InstanceContext
44
+ ##
45
+ # Initialize the ModuleDataManagementContext
46
+ # @param [Version] version Version that contains the resource
47
+ # @param [String] sid
48
+ # @return [ModuleDataManagementContext] ModuleDataManagementContext
49
+ def initialize(version, sid)
50
+ super(version)
51
+
52
+ # Path Solution
53
+ @solution = { sid: sid, }
54
+ @uri = "/Listing/#{@solution[:sid]}"
55
+
56
+
57
+ end
58
+ ##
59
+ # Fetch the ModuleDataManagementInstance
60
+ # @return [ModuleDataManagementInstance] Fetched ModuleDataManagementInstance
61
+ def fetch
62
+
63
+
64
+ payload = @version.fetch('GET', @uri)
65
+ ModuleDataManagementInstance.new(
66
+ @version,
67
+ payload,
68
+ sid: @solution[:sid],
69
+ )
70
+ end
71
+
72
+ ##
73
+ # Update the ModuleDataManagementInstance
74
+ # @param [String] module_info
75
+ # @param [String] description
76
+ # @param [String] documentation
77
+ # @param [String] policies
78
+ # @param [String] support
79
+ # @return [ModuleDataManagementInstance] Updated ModuleDataManagementInstance
80
+ def update(
81
+ module_info: :unset,
82
+ description: :unset,
83
+ documentation: :unset,
84
+ policies: :unset,
85
+ support: :unset
86
+ )
87
+
88
+ data = Twilio::Values.of({
89
+ 'ModuleInfo' => module_info,
90
+ 'Description' => description,
91
+ 'Documentation' => documentation,
92
+ 'Policies' => policies,
93
+ 'Support' => support,
94
+ })
95
+
96
+
97
+ payload = @version.update('POST', @uri, data: data)
98
+ ModuleDataManagementInstance.new(
99
+ @version,
100
+ payload,
101
+ sid: @solution[:sid],
102
+ )
103
+ end
104
+
105
+
106
+ ##
107
+ # Provide a user friendly representation
108
+ def to_s
109
+ context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
110
+ "#<Twilio.Marketplace.V1.ModuleDataManagementContext #{context}>"
111
+ end
112
+
113
+ ##
114
+ # Provide a detailed, user friendly representation
115
+ def inspect
116
+ context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
117
+ "#<Twilio.Marketplace.V1.ModuleDataManagementContext #{context}>"
118
+ end
119
+ end
120
+
121
+ class ModuleDataManagementPage < Page
122
+ ##
123
+ # Initialize the ModuleDataManagementPage
124
+ # @param [Version] version Version that contains the resource
125
+ # @param [Response] response Response from the API
126
+ # @param [Hash] solution Path solution for the resource
127
+ # @return [ModuleDataManagementPage] ModuleDataManagementPage
128
+ def initialize(version, response, solution)
129
+ super(version, response)
130
+
131
+ # Path Solution
132
+ @solution = solution
133
+ end
134
+
135
+ ##
136
+ # Build an instance of ModuleDataManagementInstance
137
+ # @param [Hash] payload Payload response from the API
138
+ # @return [ModuleDataManagementInstance] ModuleDataManagementInstance
139
+ def get_instance(payload)
140
+ ModuleDataManagementInstance.new(@version, payload)
141
+ end
142
+
143
+ ##
144
+ # Provide a user friendly representation
145
+ def to_s
146
+ '<Twilio.Marketplace.V1.ModuleDataManagementPage>'
147
+ end
148
+ end
149
+ class ModuleDataManagementInstance < InstanceResource
150
+ ##
151
+ # Initialize the ModuleDataManagementInstance
152
+ # @param [Version] version Version that contains the resource
153
+ # @param [Hash] payload payload that contains response from Twilio
154
+ # @param [String] account_sid The SID of the
155
+ # {Account}[https://www.twilio.com/docs/iam/api/account] that created this ModuleDataManagement
156
+ # resource.
157
+ # @param [String] sid The SID of the Call resource to fetch.
158
+ # @return [ModuleDataManagementInstance] ModuleDataManagementInstance
159
+ def initialize(version, payload , sid: nil)
160
+ super(version)
161
+
162
+ # Marshaled Properties
163
+ @properties = {
164
+ 'url' => payload['url'],
165
+ 'sid' => payload['sid'],
166
+ 'description' => payload['description'],
167
+ 'support' => payload['support'],
168
+ 'policies' => payload['policies'],
169
+ 'module_info' => payload['module_info'],
170
+ 'documentation' => payload['documentation'],
171
+ }
172
+
173
+ # Context
174
+ @instance_context = nil
175
+ @params = { 'sid' => sid || @properties['sid'] , }
176
+ end
177
+
178
+ ##
179
+ # Generate an instance context for the instance, the context is capable of
180
+ # performing various actions. All instance actions are proxied to the context
181
+ # @return [ModuleDataManagementContext] CallContext for this CallInstance
182
+ def context
183
+ unless @instance_context
184
+ @instance_context = ModuleDataManagementContext.new(@version , @params['sid'])
185
+ end
186
+ @instance_context
187
+ end
188
+
189
+ ##
190
+ # @return [String]
191
+ def url
192
+ @properties['url']
193
+ end
194
+
195
+ ##
196
+ # @return [String]
197
+ def sid
198
+ @properties['sid']
199
+ end
200
+
201
+ ##
202
+ # @return [Hash]
203
+ def description
204
+ @properties['description']
205
+ end
206
+
207
+ ##
208
+ # @return [Hash]
209
+ def support
210
+ @properties['support']
211
+ end
212
+
213
+ ##
214
+ # @return [Hash]
215
+ def policies
216
+ @properties['policies']
217
+ end
218
+
219
+ ##
220
+ # @return [Hash]
221
+ def module_info
222
+ @properties['module_info']
223
+ end
224
+
225
+ ##
226
+ # @return [Hash]
227
+ def documentation
228
+ @properties['documentation']
229
+ end
230
+
231
+ ##
232
+ # Fetch the ModuleDataManagementInstance
233
+ # @return [ModuleDataManagementInstance] Fetched ModuleDataManagementInstance
234
+ def fetch
235
+
236
+ context.fetch
237
+ end
238
+
239
+ ##
240
+ # Update the ModuleDataManagementInstance
241
+ # @param [String] module_info
242
+ # @param [String] description
243
+ # @param [String] documentation
244
+ # @param [String] policies
245
+ # @param [String] support
246
+ # @return [ModuleDataManagementInstance] Updated ModuleDataManagementInstance
247
+ def update(
248
+ module_info: :unset,
249
+ description: :unset,
250
+ documentation: :unset,
251
+ policies: :unset,
252
+ support: :unset
253
+ )
254
+
255
+ context.update(
256
+ module_info: module_info,
257
+ description: description,
258
+ documentation: documentation,
259
+ policies: policies,
260
+ support: support,
261
+ )
262
+ end
263
+
264
+ ##
265
+ # Provide a user friendly representation
266
+ def to_s
267
+ values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
268
+ "<Twilio.Marketplace.V1.ModuleDataManagementInstance #{values}>"
269
+ end
270
+
271
+ ##
272
+ # Provide a detailed, user friendly representation
273
+ def inspect
274
+ values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
275
+ "<Twilio.Marketplace.V1.ModuleDataManagementInstance #{values}>"
276
+ end
277
+ end
278
+
279
+ end
280
+ end
281
+ end
282
+ end
@@ -0,0 +1,79 @@
1
+ ##
2
+ # This code was generated by
3
+ # ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
4
+ # | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
5
+ # | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6
+ #
7
+ # Twilio - Marketplace
8
+ # This is the public Twilio REST API.
9
+ #
10
+ # NOTE: This class is auto generated by OpenAPI Generator.
11
+ # https://openapi-generator.tech
12
+ # Do not edit the class manually.
13
+ #
14
+
15
+ module Twilio
16
+ module REST
17
+ class Marketplace
18
+ class V1 < Version
19
+ ##
20
+ # Initialize the V1 version of Marketplace
21
+ def initialize(domain)
22
+ super
23
+ @version = 'v1'
24
+ @available_add_ons = nil
25
+ @installed_add_ons = nil
26
+ @module_data_management = nil
27
+ end
28
+
29
+ ##
30
+ # @param [String] sid The SID of the AvailableAddOn resource to fetch.
31
+ # @return [Twilio::REST::Marketplace::V1::AvailableAddOnContext] if sid was passed.
32
+ # @return [Twilio::REST::Marketplace::V1::AvailableAddOnList]
33
+ def available_add_ons(sid=:unset)
34
+ if sid.nil?
35
+ raise ArgumentError, 'sid cannot be nil'
36
+ end
37
+ if sid == :unset
38
+ @available_add_ons ||= AvailableAddOnList.new self
39
+ else
40
+ AvailableAddOnContext.new(self, sid)
41
+ end
42
+ end
43
+ ##
44
+ # @param [String] sid The SID of the InstalledAddOn resource to fetch.
45
+ # @return [Twilio::REST::Marketplace::V1::InstalledAddOnContext] if sid was passed.
46
+ # @return [Twilio::REST::Marketplace::V1::InstalledAddOnList]
47
+ def installed_add_ons(sid=:unset)
48
+ if sid.nil?
49
+ raise ArgumentError, 'sid cannot be nil'
50
+ end
51
+ if sid == :unset
52
+ @installed_add_ons ||= InstalledAddOnList.new self
53
+ else
54
+ InstalledAddOnContext.new(self, sid)
55
+ end
56
+ end
57
+ ##
58
+ # @param [String] sid
59
+ # @return [Twilio::REST::Marketplace::V1::ModuleDataManagementContext] if sid was passed.
60
+ # @return [Twilio::REST::Marketplace::V1::ModuleDataManagementList]
61
+ def module_data_management(sid=:unset)
62
+ if sid.nil?
63
+ raise ArgumentError, 'sid cannot be nil'
64
+ end
65
+ if sid == :unset
66
+ @module_data_management ||= ModuleDataManagementList.new self
67
+ else
68
+ ModuleDataManagementContext.new(self, sid)
69
+ end
70
+ end
71
+ ##
72
+ # Provide a user friendly representation
73
+ def to_s
74
+ '<Twilio::REST::Marketplace::V1>';
75
+ end
76
+ end
77
+ end
78
+ end
79
+ end
@@ -0,0 +1,6 @@
1
+ module Twilio
2
+ module REST
3
+ class Marketplace < MarketplaceBase;
4
+ end
5
+ end
6
+ end
@@ -10,28 +10,28 @@
10
10
  # frozen_string_literal: true
11
11
  module Twilio
12
12
  module REST
13
- class PreviewMessagingBase < Domain
13
+ class MarketplaceBase < Domain
14
14
  ##
15
- # Initialize previewMessaging domain
15
+ # Initialize marketplace domain
16
16
  #
17
17
  # @param twilio - The twilio client
18
18
  #
19
19
  def initialize(twilio)
20
20
  super(twilio)
21
- @base_url = "https://preview.messaging.twilio.com"
22
- @host = "preview.messaging.twilio.com"
21
+ @base_url = "https://marketplace.twilio.com"
22
+ @host = "marketplace.twilio.com"
23
23
  @port = 443
24
24
  @v1 = nil
25
25
  end
26
26
 
27
27
  def v1
28
- @v1 ||= PreviewMessaging::V1.new self
28
+ @v1 ||= Marketplace::V1.new self
29
29
  end
30
30
 
31
31
  ##
32
32
  # Provide a user friendly representation
33
33
  def to_s
34
- '<Twilio::REST::PreviewMessaging::V1>';
34
+ '<Twilio::REST::Marketplace::V1>';
35
35
  end
36
36
  end
37
37
  end
@@ -487,7 +487,6 @@ module Twilio
487
487
  'usecase' => payload['usecase'],
488
488
  'us_app_to_person_registered' => payload['us_app_to_person_registered'],
489
489
  'use_inbound_webhook_on_number' => payload['use_inbound_webhook_on_number'],
490
- 'sending_windows' => payload['sending_windows'],
491
490
  }
492
491
 
493
492
  # Context
@@ -644,12 +643,6 @@ module Twilio
644
643
  @properties['use_inbound_webhook_on_number']
645
644
  end
646
645
 
647
- ##
648
- # @return [Hash] A list of Sending Windows, which indicate defined time ranges in which a message can be sent, in the UTC time zone. Each window is defined by two strings, labeled \"start_time\" and \"end_time\".
649
- def sending_windows
650
- @properties['sending_windows']
651
- end
652
-
653
646
  ##
654
647
  # Delete the ServiceInstance
655
648
  # @return [Boolean] True if delete succeeds, false otherwise
@@ -123,6 +123,8 @@ module Twilio
123
123
  # memory before returning.
124
124
  # @param [String] tollfree_phone_number_sid The SID of the Phone Number associated with the Tollfree Verification.
125
125
  # @param [Status] status The compliance status of the Tollfree Verification record.
126
+ # @param [String] external_reference_id Customer supplied reference id for the Tollfree Verification record.
127
+ # @param [Boolean] include_sub_accounts Whether to include Tollfree Verifications from sub accounts in list response.
126
128
  # @param [Integer] limit Upper limit for the number of records to return. stream()
127
129
  # guarantees to never return more than limit. Default is no limit
128
130
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -130,10 +132,12 @@ module Twilio
130
132
  # but a limit is defined, stream() will attempt to read the limit with the most
131
133
  # efficient page size, i.e. min(limit, 1000)
132
134
  # @return [Array] Array of up to limit results
133
- def list(tollfree_phone_number_sid: :unset, status: :unset, limit: nil, page_size: nil)
135
+ def list(tollfree_phone_number_sid: :unset, status: :unset, external_reference_id: :unset, include_sub_accounts: :unset, limit: nil, page_size: nil)
134
136
  self.stream(
135
137
  tollfree_phone_number_sid: tollfree_phone_number_sid,
136
138
  status: status,
139
+ external_reference_id: external_reference_id,
140
+ include_sub_accounts: include_sub_accounts,
137
141
  limit: limit,
138
142
  page_size: page_size
139
143
  ).entries
@@ -145,6 +149,8 @@ module Twilio
145
149
  # is reached.
146
150
  # @param [String] tollfree_phone_number_sid The SID of the Phone Number associated with the Tollfree Verification.
147
151
  # @param [Status] status The compliance status of the Tollfree Verification record.
152
+ # @param [String] external_reference_id Customer supplied reference id for the Tollfree Verification record.
153
+ # @param [Boolean] include_sub_accounts Whether to include Tollfree Verifications from sub accounts in list response.
148
154
  # @param [Integer] limit Upper limit for the number of records to return. stream()
149
155
  # guarantees to never return more than limit. Default is no limit
150
156
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -152,12 +158,14 @@ module Twilio
152
158
  # but a limit is defined, stream() will attempt to read the limit with the most
153
159
  # efficient page size, i.e. min(limit, 1000)
154
160
  # @return [Enumerable] Enumerable that will yield up to limit results
155
- def stream(tollfree_phone_number_sid: :unset, status: :unset, limit: nil, page_size: nil)
161
+ def stream(tollfree_phone_number_sid: :unset, status: :unset, external_reference_id: :unset, include_sub_accounts: :unset, limit: nil, page_size: nil)
156
162
  limits = @version.read_limits(limit, page_size)
157
163
 
158
164
  page = self.page(
159
165
  tollfree_phone_number_sid: tollfree_phone_number_sid,
160
166
  status: status,
167
+ external_reference_id: external_reference_id,
168
+ include_sub_accounts: include_sub_accounts,
161
169
  page_size: limits[:page_size], )
162
170
 
163
171
  @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
@@ -182,14 +190,18 @@ module Twilio
182
190
  # Request is executed immediately.
183
191
  # @param [String] tollfree_phone_number_sid The SID of the Phone Number associated with the Tollfree Verification.
184
192
  # @param [Status] status The compliance status of the Tollfree Verification record.
193
+ # @param [String] external_reference_id Customer supplied reference id for the Tollfree Verification record.
194
+ # @param [Boolean] include_sub_accounts Whether to include Tollfree Verifications from sub accounts in list response.
185
195
  # @param [String] page_token PageToken provided by the API
186
196
  # @param [Integer] page_number Page Number, this value is simply for client state
187
197
  # @param [Integer] page_size Number of records to return, defaults to 50
188
198
  # @return [Page] Page of TollfreeVerificationInstance
189
- def page(tollfree_phone_number_sid: :unset, status: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
199
+ def page(tollfree_phone_number_sid: :unset, status: :unset, external_reference_id: :unset, include_sub_accounts: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
190
200
  params = Twilio::Values.of({
191
201
  'TollfreePhoneNumberSid' => tollfree_phone_number_sid,
192
202
  'Status' => status,
203
+ 'ExternalReferenceId' => external_reference_id,
204
+ 'IncludeSubAccounts' => include_sub_accounts,
193
205
  'PageToken' => page_token,
194
206
  'Page' => page_number,
195
207
  'PageSize' => page_size,
@@ -165,7 +165,7 @@ module Twilio
165
165
  end
166
166
  end
167
167
  ##
168
- # @param [String] sid The unique string to identify Tollfree Verification.
168
+ # @param [String] sid A unique string identifying a Tollfree Verification.
169
169
  # @return [Twilio::REST::Messaging::V1::TollfreeVerificationContext] if sid was passed.
170
170
  # @return [Twilio::REST::Messaging::V1::TollfreeVerificationList]
171
171
  def tollfree_verifications(sid=:unset)
@@ -79,6 +79,20 @@ module Twilio
79
79
  @version.delete('DELETE', @uri)
80
80
  end
81
81
 
82
+ ##
83
+ # Fetch the PortingPortInInstance
84
+ # @return [PortingPortInInstance] Fetched PortingPortInInstance
85
+ def fetch
86
+
87
+
88
+ payload = @version.fetch('GET', @uri)
89
+ PortingPortInInstance.new(
90
+ @version,
91
+ payload,
92
+ port_in_request_sid: @solution[:port_in_request_sid],
93
+ )
94
+ end
95
+
82
96
 
83
97
  ##
84
98
  # Provide a user friendly representation
@@ -140,6 +154,15 @@ module Twilio
140
154
  @properties = {
141
155
  'port_in_request_sid' => payload['port_in_request_sid'],
142
156
  'url' => payload['url'],
157
+ 'account_sid' => payload['account_sid'],
158
+ 'notification_emails' => payload['notification_emails'],
159
+ 'target_port_in_date' => Twilio.deserialize_iso8601_date(payload['target_port_in_date']),
160
+ 'target_port_in_time_range_start' => payload['target_port_in_time_range_start'],
161
+ 'target_port_in_time_range_end' => payload['target_port_in_time_range_end'],
162
+ 'port_in_request_status' => payload['port_in_request_status'],
163
+ 'losing_carrier_information' => payload['losing_carrier_information'],
164
+ 'phone_numbers' => payload['phone_numbers'],
165
+ 'documents' => payload['documents'],
143
166
  }
144
167
 
145
168
  # Context
@@ -165,11 +188,65 @@ module Twilio
165
188
  end
166
189
 
167
190
  ##
168
- # @return [String]
191
+ # @return [String] The URL of this Port In request
169
192
  def url
170
193
  @properties['url']
171
194
  end
172
195
 
196
+ ##
197
+ # @return [String] The Account SID that the numbers will be added to after they are ported into Twilio.
198
+ def account_sid
199
+ @properties['account_sid']
200
+ end
201
+
202
+ ##
203
+ # @return [Array<String>] List of emails for getting notifications about the LOA signing process. Allowed Max 10 emails.
204
+ def notification_emails
205
+ @properties['notification_emails']
206
+ end
207
+
208
+ ##
209
+ # @return [Date] Minimum number of days in the future (at least 2 days) needs to be established with the Ops team for validation.
210
+ def target_port_in_date
211
+ @properties['target_port_in_date']
212
+ end
213
+
214
+ ##
215
+ # @return [String] Minimum hour in the future needs to be established with the Ops team for validation.
216
+ def target_port_in_time_range_start
217
+ @properties['target_port_in_time_range_start']
218
+ end
219
+
220
+ ##
221
+ # @return [String] Maximum hour in the future needs to be established with the Ops team for validation.
222
+ def target_port_in_time_range_end
223
+ @properties['target_port_in_time_range_end']
224
+ end
225
+
226
+ ##
227
+ # @return [String] The status of the port in request. The possible values are: In progress, Completed, Expired, In review, Waiting for Signature, Action Required, and Canceled.
228
+ def port_in_request_status
229
+ @properties['port_in_request_status']
230
+ end
231
+
232
+ ##
233
+ # @return [Hash] The information for the losing carrier.
234
+ def losing_carrier_information
235
+ @properties['losing_carrier_information']
236
+ end
237
+
238
+ ##
239
+ # @return [Array<Hash>] The list of phone numbers to Port in. Phone numbers are in E.164 format (e.g. +16175551212).
240
+ def phone_numbers
241
+ @properties['phone_numbers']
242
+ end
243
+
244
+ ##
245
+ # @return [Array<String>] The list of documents SID referencing a utility bills
246
+ def documents
247
+ @properties['documents']
248
+ end
249
+
173
250
  ##
174
251
  # Delete the PortingPortInInstance
175
252
  # @return [Boolean] True if delete succeeds, false otherwise
@@ -178,6 +255,14 @@ module Twilio
178
255
  context.delete
179
256
  end
180
257
 
258
+ ##
259
+ # Fetch the PortingPortInInstance
260
+ # @return [PortingPortInInstance] Fetched PortingPortInInstance
261
+ def fetch
262
+
263
+ context.fetch
264
+ end
265
+
181
266
  ##
182
267
  # Provide a user friendly representation
183
268
  def to_s