twilio-ruby 7.2.2 → 7.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +48 -0
  3. data/README.md +2 -2
  4. data/lib/twilio-ruby/rest/api/v2010/account/call/transcription.rb +5 -599
  5. data/lib/twilio-ruby/rest/api/v2010/account/message.rb +2 -2
  6. data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload/data.rb +200 -0
  7. data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +22 -1
  8. data/lib/twilio-ruby/rest/client.rb +0 -5
  9. data/lib/twilio-ruby/rest/content/v1/content.rb +67 -1
  10. data/lib/twilio-ruby/rest/flex_api/v2/flex_user.rb +81 -1
  11. data/lib/twilio-ruby/rest/insights/v1/call_summaries.rb +60 -12
  12. data/lib/twilio-ruby/rest/intelligence/v2/operator_type.rb +1 -1
  13. data/lib/twilio-ruby/rest/intelligence/v2/transcript/sentence.rb +16 -3
  14. data/lib/twilio-ruby/rest/intelligence/v2.rb +1 -1
  15. data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_usage.rb +8 -8
  16. data/lib/twilio-ruby/rest/marketplace/v1/module_data_management.rb +22 -9
  17. data/lib/twilio-ruby/rest/marketplace/v1/referral_conversion.rb +199 -0
  18. data/lib/twilio-ruby/rest/marketplace/v1.rb +7 -1
  19. data/lib/twilio-ruby/rest/messaging/v1/external_campaign.rb +4 -1
  20. data/lib/twilio-ruby/rest/messaging/v1/service/channel_sender.rb +40 -0
  21. data/lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb +8 -8
  22. data/lib/twilio-ruby/rest/numbers/v1/porting_port_in_phone_number.rb +24 -17
  23. data/lib/twilio-ruby/rest/numbers/v1/porting_portability.rb +7 -7
  24. data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration.rb +3 -3
  25. data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_delete.rb +1 -1
  26. data/lib/twilio-ruby/rest/numbers/v1/{webhook.rb → porting_webhook_configuration_fetch.rb} +23 -23
  27. data/lib/twilio-ruby/rest/numbers/v1/signing_request_configuration.rb +96 -0
  28. data/lib/twilio-ruby/rest/numbers/v1.rb +8 -8
  29. data/lib/twilio-ruby/rest/numbers/v2/bundle_clone.rb +277 -0
  30. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +4 -1
  31. data/lib/twilio-ruby/rest/numbers/v2.rb +15 -0
  32. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +2 -2
  33. data/lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb +12 -3
  34. data/lib/twilio-ruby/rest/verify/v2/service.rb +4 -4
  35. data/lib/twilio-ruby/version.rb +1 -1
  36. data/twilio-ruby.gemspec +2 -1
  37. metadata +7 -5
  38. data/lib/twilio-ruby/rest/preview_iam.rb +0 -6
  39. data/lib/twilio-ruby/rest/preview_iam_base.rb +0 -33
@@ -0,0 +1,199 @@
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 ReferralConversionList < ListResource
21
+
22
+ class CreateReferralConversionRequest
23
+ # @param [referral_account_sid]: [String]
24
+ attr_accessor :referral_account_sid
25
+ def initialize(payload)
26
+ @referral_account_sid = payload["referral_account_sid"]
27
+ end
28
+ def to_json(options = {})
29
+ {
30
+ referral_account_sid: @referral_account_sid,
31
+ }.to_json(options)
32
+ end
33
+ end
34
+
35
+ ##
36
+ # Initialize the ReferralConversionList
37
+ # @param [Version] version Version that contains the resource
38
+ # @return [ReferralConversionList] ReferralConversionList
39
+ def initialize(version)
40
+ super(version)
41
+ # Path Solution
42
+ @solution = { }
43
+
44
+
45
+ end
46
+
47
+
48
+
49
+ # Provide a user friendly representation
50
+ def to_s
51
+ '#<Twilio.Marketplace.V1.ReferralConversionList>'
52
+ end
53
+ end
54
+
55
+
56
+ class ReferralConversionContext < InstanceContext
57
+ ##
58
+ # Initialize the ReferralConversionContext
59
+ # @param [Version] version Version that contains the resource
60
+ # @return [ReferralConversionContext] ReferralConversionContext
61
+ def initialize(version)
62
+ super(version)
63
+
64
+ # Path Solution
65
+ @solution = { }
66
+ @uri = "/ReferralConversion"
67
+
68
+
69
+ end
70
+ ##
71
+ # Create the ReferralConversionInstance
72
+ # @param [CreateReferralConversionRequest] create_referral_conversion_request
73
+ # @return [ReferralConversionInstance] Created ReferralConversionInstance
74
+ def create(create_referral_conversion_request: nil
75
+ )
76
+
77
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
78
+ headers['Content-Type'] = 'application/json'
79
+ payload = @version.create('POST', @uri, headers: headers, data: create_referral_conversion_request.to_json)
80
+ ReferralConversionInstance.new(
81
+ @version,
82
+ payload,
83
+ )
84
+ end
85
+
86
+
87
+ ##
88
+ # Provide a user friendly representation
89
+ def to_s
90
+ context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
91
+ "#<Twilio.Marketplace.V1.ReferralConversionContext #{context}>"
92
+ end
93
+
94
+ ##
95
+ # Provide a detailed, user friendly representation
96
+ def inspect
97
+ context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
98
+ "#<Twilio.Marketplace.V1.ReferralConversionContext #{context}>"
99
+ end
100
+ end
101
+
102
+ class ReferralConversionPage < Page
103
+ ##
104
+ # Initialize the ReferralConversionPage
105
+ # @param [Version] version Version that contains the resource
106
+ # @param [Response] response Response from the API
107
+ # @param [Hash] solution Path solution for the resource
108
+ # @return [ReferralConversionPage] ReferralConversionPage
109
+ def initialize(version, response, solution)
110
+ super(version, response)
111
+
112
+ # Path Solution
113
+ @solution = solution
114
+ end
115
+
116
+ ##
117
+ # Build an instance of ReferralConversionInstance
118
+ # @param [Hash] payload Payload response from the API
119
+ # @return [ReferralConversionInstance] ReferralConversionInstance
120
+ def get_instance(payload)
121
+ ReferralConversionInstance.new(@version, payload)
122
+ end
123
+
124
+ ##
125
+ # Provide a user friendly representation
126
+ def to_s
127
+ '<Twilio.Marketplace.V1.ReferralConversionPage>'
128
+ end
129
+ end
130
+ class ReferralConversionInstance < InstanceResource
131
+ ##
132
+ # Initialize the ReferralConversionInstance
133
+ # @param [Version] version Version that contains the resource
134
+ # @param [Hash] payload payload that contains response from Twilio
135
+ # @param [String] account_sid The SID of the
136
+ # {Account}[https://www.twilio.com/docs/iam/api/account] that created this ReferralConversion
137
+ # resource.
138
+ # @param [String] sid The SID of the Call resource to fetch.
139
+ # @return [ReferralConversionInstance] ReferralConversionInstance
140
+ def initialize(version, payload )
141
+ super(version)
142
+
143
+ # Marshaled Properties
144
+ @properties = {
145
+ 'converted_account_sid' => payload['converted_account_sid'],
146
+ }
147
+
148
+ # Context
149
+ @instance_context = nil
150
+ @params = { }
151
+ end
152
+
153
+ ##
154
+ # Generate an instance context for the instance, the context is capable of
155
+ # performing various actions. All instance actions are proxied to the context
156
+ # @return [ReferralConversionContext] CallContext for this CallInstance
157
+ def context
158
+ unless @instance_context
159
+ @instance_context = ReferralConversionContext.new(@version )
160
+ end
161
+ @instance_context
162
+ end
163
+
164
+ ##
165
+ # @return [String]
166
+ def converted_account_sid
167
+ @properties['converted_account_sid']
168
+ end
169
+
170
+ ##
171
+ # Create the ReferralConversionInstance
172
+ # @param [CreateReferralConversionRequest] create_referral_conversion_request
173
+ # @return [ReferralConversionInstance] Created ReferralConversionInstance
174
+ def create(create_referral_conversion_request: nil
175
+ )
176
+
177
+ context.create(
178
+ )
179
+ end
180
+
181
+ ##
182
+ # Provide a user friendly representation
183
+ def to_s
184
+ values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
185
+ "<Twilio.Marketplace.V1.ReferralConversionInstance #{values}>"
186
+ end
187
+
188
+ ##
189
+ # Provide a detailed, user friendly representation
190
+ def inspect
191
+ values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
192
+ "<Twilio.Marketplace.V1.ReferralConversionInstance #{values}>"
193
+ end
194
+ end
195
+
196
+ end
197
+ end
198
+ end
199
+ end
@@ -24,6 +24,7 @@ module Twilio
24
24
  @available_add_ons = nil
25
25
  @installed_add_ons = nil
26
26
  @module_data_management = nil
27
+ @referral_conversion = nil
27
28
  end
28
29
 
29
30
  ##
@@ -55,7 +56,7 @@ module Twilio
55
56
  end
56
57
  end
57
58
  ##
58
- # @param [String] sid
59
+ # @param [String] sid The unique identifier of a Listing.
59
60
  # @return [Twilio::REST::Marketplace::V1::ModuleDataManagementContext] if sid was passed.
60
61
  # @return [Twilio::REST::Marketplace::V1::ModuleDataManagementList]
61
62
  def module_data_management(sid=:unset)
@@ -69,6 +70,11 @@ module Twilio
69
70
  end
70
71
  end
71
72
  ##
73
+ # @return [Twilio::REST::Marketplace::V1::referralConversionContext]
74
+ def referral_conversion
75
+ @referral_conversion ||= ReferralConversionContext.new self
76
+ end
77
+ ##
72
78
  # Provide a user friendly representation
73
79
  def to_s
74
80
  '<Twilio::REST::Marketplace::V1>';
@@ -34,15 +34,18 @@ module Twilio
34
34
  # Create the ExternalCampaignInstance
35
35
  # @param [String] campaign_id ID of the preregistered campaign.
36
36
  # @param [String] messaging_service_sid The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) that the resource is associated with.
37
+ # @param [Boolean] cnp_migration Customers should use this flag during the ERC registration process to indicate to Twilio that the campaign being registered is undergoing CNP migration. It is important for the user to first trigger the CNP migration process for said campaign in their CSP portal and have Twilio accept the sharing request, before making this api call.
37
38
  # @return [ExternalCampaignInstance] Created ExternalCampaignInstance
38
39
  def create(
39
40
  campaign_id: nil,
40
- messaging_service_sid: nil
41
+ messaging_service_sid: nil,
42
+ cnp_migration: :unset
41
43
  )
42
44
 
43
45
  data = Twilio::Values.of({
44
46
  'CampaignId' => campaign_id,
45
47
  'MessagingServiceSid' => messaging_service_sid,
48
+ 'CnpMigration' => cnp_migration,
46
49
  })
47
50
 
48
51
  headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
@@ -32,6 +32,28 @@ module Twilio
32
32
  @uri = "/Services/#{@solution[:messaging_service_sid]}/ChannelSenders"
33
33
 
34
34
  end
35
+ ##
36
+ # Create the ChannelSenderInstance
37
+ # @param [String] sid The SID of the Channel Sender being added to the Service.
38
+ # @return [ChannelSenderInstance] Created ChannelSenderInstance
39
+ def create(
40
+ sid: nil
41
+ )
42
+
43
+ data = Twilio::Values.of({
44
+ 'Sid' => sid,
45
+ })
46
+
47
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
48
+
49
+ payload = @version.create('POST', @uri, data: data, headers: headers)
50
+ ChannelSenderInstance.new(
51
+ @version,
52
+ payload,
53
+ messaging_service_sid: @solution[:messaging_service_sid],
54
+ )
55
+ end
56
+
35
57
 
36
58
  ##
37
59
  # Lists ChannelSenderInstance records from the API as a list.
@@ -142,6 +164,16 @@ module Twilio
142
164
 
143
165
 
144
166
  end
167
+ ##
168
+ # Delete the ChannelSenderInstance
169
+ # @return [Boolean] True if delete succeeds, false otherwise
170
+ def delete
171
+
172
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
173
+
174
+ @version.delete('DELETE', @uri, headers: headers)
175
+ end
176
+
145
177
  ##
146
178
  # Fetch the ChannelSenderInstance
147
179
  # @return [ChannelSenderInstance] Fetched ChannelSenderInstance
@@ -298,6 +330,14 @@ module Twilio
298
330
  @properties['url']
299
331
  end
300
332
 
333
+ ##
334
+ # Delete the ChannelSenderInstance
335
+ # @return [Boolean] True if delete succeeds, false otherwise
336
+ def delete
337
+
338
+ context.delete
339
+ end
340
+
301
341
  ##
302
342
  # Fetch the ChannelSenderInstance
303
343
  # @return [ChannelSenderInstance] Fetched ChannelSenderInstance
@@ -198,31 +198,31 @@ module Twilio
198
198
  end
199
199
 
200
200
  ##
201
- # @return [String] The Account SID that the numbers will be added to after they are ported into Twilio.
201
+ # @return [String] Account Sid or subaccount where the phone number(s) will be Ported
202
202
  def account_sid
203
203
  @properties['account_sid']
204
204
  end
205
205
 
206
206
  ##
207
- # @return [Array<String>] List of emails for getting notifications about the LOA signing process. Allowed Max 10 emails.
207
+ # @return [Array<String>] Additional emails to send a copy of the signed LOA to.
208
208
  def notification_emails
209
209
  @properties['notification_emails']
210
210
  end
211
211
 
212
212
  ##
213
- # @return [Date] Minimum number of days in the future (at least 2 days) needs to be established with the Ops team for validation.
213
+ # @return [Date] Target date to port the number. We cannot guarantee that this date will be honored by the other carriers, please work with Ops to get a confirmation of the firm order commitment (FOC) date. Expected format is ISO Local Date, example: ‘2011-12-03`. This date must be at least 7 days in the future for US ports and 10 days in the future for Japanese ports. (This value is only available for custom porting customers.)
214
214
  def target_port_in_date
215
215
  @properties['target_port_in_date']
216
216
  end
217
217
 
218
218
  ##
219
- # @return [String] Minimum hour in the future needs to be established with the Ops team for validation.
219
+ # @return [String] The earliest time that the port should occur on the target port in date. Expected format is ISO Offset Time, example: ‘10:15:00-08:00'. (This value is only available for custom porting customers.)
220
220
  def target_port_in_time_range_start
221
221
  @properties['target_port_in_time_range_start']
222
222
  end
223
223
 
224
224
  ##
225
- # @return [String] Maximum hour in the future needs to be established with the Ops team for validation.
225
+ # @return [String] The latest time that the port should occur on the target port in date. Expected format is ISO Offset Time, example: ‘10:15:00-08:00'. (This value is only available for custom porting customers.)
226
226
  def target_port_in_time_range_end
227
227
  @properties['target_port_in_time_range_end']
228
228
  end
@@ -234,19 +234,19 @@ module Twilio
234
234
  end
235
235
 
236
236
  ##
237
- # @return [Hash] The information for the losing carrier.
237
+ # @return [Hash] Details regarding the customer’s information with the losing carrier. These values will be used to generate the letter of authorization and should match the losing carrier’s data as closely as possible to ensure the port is accepted.
238
238
  def losing_carrier_information
239
239
  @properties['losing_carrier_information']
240
240
  end
241
241
 
242
242
  ##
243
- # @return [Array<Hash>] The list of phone numbers to Port in. Phone numbers are in E.164 format (e.g. +16175551212).
243
+ # @return [Array<Hash>]
244
244
  def phone_numbers
245
245
  @properties['phone_numbers']
246
246
  end
247
247
 
248
248
  ##
249
- # @return [Array<String>] The list of documents SID referencing a utility bills
249
+ # @return [Array<String>] List of document SIDs for all phone numbers included in the port in request. At least one document SID referring to a document of the type Utility Bill is required.
250
250
  def documents
251
251
  @properties['documents']
252
252
  end
@@ -158,6 +158,7 @@ module Twilio
158
158
  'port_out_pin' => payload['port_out_pin'] == nil ? payload['port_out_pin'] : payload['port_out_pin'].to_i,
159
159
  'rejection_reason' => payload['rejection_reason'],
160
160
  'rejection_reason_code' => payload['rejection_reason_code'] == nil ? payload['rejection_reason_code'] : payload['rejection_reason_code'].to_i,
161
+ 'port_date' => Twilio.deserialize_iso8601_datetime(payload['port_date']),
161
162
  }
162
163
 
163
164
  # Context
@@ -177,107 +178,113 @@ module Twilio
177
178
  end
178
179
 
179
180
  ##
180
- # @return [String] The SID of the Port In request. This is a unique identifier of the port in request.
181
+ # @return [String] The unique identifier for the port in request that this phone number is associated with.
181
182
  def port_in_request_sid
182
183
  @properties['port_in_request_sid']
183
184
  end
184
185
 
185
186
  ##
186
- # @return [String] The SID of the Port In request phone number. This is a unique identifier of the phone number.
187
+ # @return [String] The unique identifier for this phone number associated with this port in request.
187
188
  def phone_number_sid
188
189
  @properties['phone_number_sid']
189
190
  end
190
191
 
191
192
  ##
192
- # @return [String]
193
+ # @return [String] URL reference for this resource.
193
194
  def url
194
195
  @properties['url']
195
196
  end
196
197
 
197
198
  ##
198
- # @return [String] The SID of the account that the phone number belongs to.
199
+ # @return [String] Account Sid or subaccount where the phone number(s) will be Ported.
199
200
  def account_sid
200
201
  @properties['account_sid']
201
202
  end
202
203
 
203
204
  ##
204
- # @return [String] The type of the phone number.
205
+ # @return [String] The number type of the phone number. This can be: toll-free, local, mobile or unknown. This field may be null if the number is not portable or if the portability for a number has not yet been evaluated.
205
206
  def phone_number_type
206
207
  @properties['phone_number_type']
207
208
  end
208
209
 
209
210
  ##
210
- # @return [Time] The date when the phone number was created.
211
+ # @return [Time] The timestamp for when this port in phone number was created.
211
212
  def date_created
212
213
  @properties['date_created']
213
214
  end
214
215
 
215
216
  ##
216
- # @return [String] The country of the phone number.
217
+ # @return [String] The ISO country code that this number is associated with. This field may be null if the number is not portable or if the portability for a number has not yet been evaluated.
217
218
  def country
218
219
  @properties['country']
219
220
  end
220
221
 
221
222
  ##
222
- # @return [Boolean] The phone number is missing required fields.
223
+ # @return [Boolean] Indicates if the phone number is missing required fields such as a PIN or account number. This field may be null if the number is not portable or if the portability for a number has not yet been evaluated.
223
224
  def missing_required_fields
224
225
  @properties['missing_required_fields']
225
226
  end
226
227
 
227
228
  ##
228
- # @return [Time] The timestamp when the status was last updated.
229
+ # @return [Time] Timestamp indicating when the Port In Phone Number resource was last modified.
229
230
  def last_updated
230
231
  @properties['last_updated']
231
232
  end
232
233
 
233
234
  ##
234
- # @return [String] The phone number.
235
+ # @return [String] Phone number to be ported. This will be in the E164 Format.
235
236
  def phone_number
236
237
  @properties['phone_number']
237
238
  end
238
239
 
239
240
  ##
240
- # @return [Boolean] The phone number is portable.
241
+ # @return [Boolean] If the number is portable by Twilio or not. This field may be null if the number portability has not yet been evaluated. If a number is not portable reference the `not_portability_reason_code` and `not_portability_reason` fields for more details
241
242
  def portable
242
243
  @properties['portable']
243
244
  end
244
245
 
245
246
  ##
246
- # @return [String] The reason why the phone number is not portable.
247
+ # @return [String] The not portability reason code description. This field may be null if the number is portable or if the portability for a number has not yet been evaluated.
247
248
  def not_portability_reason
248
249
  @properties['not_portability_reason']
249
250
  end
250
251
 
251
252
  ##
252
- # @return [String] The code of the reason why the phone number is not portable.
253
+ # @return [String] The not portability reason code. This field may be null if the number is portable or if the portability for a number has not yet been evaluated.
253
254
  def not_portability_reason_code
254
255
  @properties['not_portability_reason_code']
255
256
  end
256
257
 
257
258
  ##
258
- # @return [String] The status of the phone number in the port in request.
259
+ # @return [String] The status of the port in phone number.
259
260
  def port_in_phone_number_status
260
261
  @properties['port_in_phone_number_status']
261
262
  end
262
263
 
263
264
  ##
264
- # @return [String] The pin required for the losing carrier to port out the phone number.
265
+ # @return [String] The pin required by the losing carrier to do the port out.
265
266
  def port_out_pin
266
267
  @properties['port_out_pin']
267
268
  end
268
269
 
269
270
  ##
270
- # @return [String] The rejection reason returned by the vendor.
271
+ # @return [String] The description of the rejection reason provided by the losing carrier. This field may be null if the number has not been rejected by the losing carrier.
271
272
  def rejection_reason
272
273
  @properties['rejection_reason']
273
274
  end
274
275
 
275
276
  ##
276
- # @return [String] The rejection reason code returned by the vendor.
277
+ # @return [String] The code for the rejection reason provided by the losing carrier. This field may be null if the number has not been rejected by the losing carrier.
277
278
  def rejection_reason_code
278
279
  @properties['rejection_reason_code']
279
280
  end
280
281
 
282
+ ##
283
+ # @return [Time] The timestamp the phone number will be ported. This will only be set once a port date has been confirmed. Not all carriers can guarantee a specific time on the port date. Twilio will try its best to get the port completed by this time on the port date. Please subscribe to webhooks for confirmation on when a port has actually been completed.
284
+ def port_date
285
+ @properties['port_date']
286
+ end
287
+
281
288
  ##
282
289
  # Delete the PortingPortInPhoneNumberInstance
283
290
  # @return [Boolean] True if delete succeeds, false otherwise
@@ -44,7 +44,7 @@ module Twilio
44
44
  ##
45
45
  # Initialize the PortingPortabilityContext
46
46
  # @param [Version] version Version that contains the resource
47
- # @param [String] phone_number The phone number which portability is to be checked. Phone numbers are in E.164 format (e.g. +16175551212).
47
+ # @param [String] phone_number Phone number to check portability in e164 format.
48
48
  # @return [PortingPortabilityContext] PortingPortabilityContext
49
49
  def initialize(version, phone_number)
50
50
  super(version)
@@ -57,7 +57,7 @@ module Twilio
57
57
  end
58
58
  ##
59
59
  # Fetch the PortingPortabilityInstance
60
- # @param [String] target_account_sid The SID of the account where the phone number(s) will be ported.
60
+ # @param [String] target_account_sid Account Sid to which the number will be ported. This can be used to determine if a sub account already has the number in its inventory or a different sub account. If this is not provided, the authenticated account will be assumed to be the target account.
61
61
  # @return [PortingPortabilityInstance] Fetched PortingPortabilityInstance
62
62
  def fetch(
63
63
  target_account_sid: :unset
@@ -169,19 +169,19 @@ module Twilio
169
169
  end
170
170
 
171
171
  ##
172
- # @return [String] The target account sid to which the number will be ported
172
+ # @return [String] Account Sid that the phone number belongs to in Twilio. This is only returned for phone numbers that already exist in Twilio’s inventory and belong to your account or sub account.
173
173
  def account_sid
174
174
  @properties['account_sid']
175
175
  end
176
176
 
177
177
  ##
178
- # @return [Boolean] Boolean flag specifying if phone number is portable or not.
178
+ # @return [Boolean] Boolean flag indicates if the phone number can be ported into Twilio through the Porting API or not.
179
179
  def portable
180
180
  @properties['portable']
181
181
  end
182
182
 
183
183
  ##
184
- # @return [Boolean] Boolean flag specifying if PIN and account number is required for the phone number.
184
+ # @return [Boolean] Indicates if the port in process will require a personal identification number (PIN) and an account number for this phone number. If this is true you will be required to submit both a PIN and account number from the losing carrier for this number when opening a port in request. These fields will be required in order to complete the port in process to Twilio.
185
185
  def pin_and_account_number_required
186
186
  @properties['pin_and_account_number_required']
187
187
  end
@@ -193,7 +193,7 @@ module Twilio
193
193
  end
194
194
 
195
195
  ##
196
- # @return [String] The Portability Reason Code for the phone number if it cannot be ported into Twilio, `null` otherwise. One of `22131`, `22132`, `22130`, `22133`, `22102` or `22135`.
196
+ # @return [String] The Portability Reason Code for the phone number if it cannot be ported into Twilio, `null` otherwise.
197
197
  def not_portable_reason_code
198
198
  @properties['not_portable_reason_code']
199
199
  end
@@ -218,7 +218,7 @@ module Twilio
218
218
 
219
219
  ##
220
220
  # Fetch the PortingPortabilityInstance
221
- # @param [String] target_account_sid The SID of the account where the phone number(s) will be ported.
221
+ # @param [String] target_account_sid Account Sid to which the number will be ported. This can be used to determine if a sub account already has the number in its inventory or a different sub account. If this is not provided, the authenticated account will be assumed to be the target account.
222
222
  # @return [PortingPortabilityInstance] Fetched PortingPortabilityInstance
223
223
  def fetch(
224
224
  target_account_sid: :unset
@@ -113,19 +113,19 @@ module Twilio
113
113
  end
114
114
 
115
115
  ##
116
- # @return [String] Webhook URL to send a request when a port in request or port in phone number event happens
116
+ # @return [String] The complete webhook url that will be called when a notification event for port in request or port in phone number happens
117
117
  def port_in_target_url
118
118
  @properties['port_in_target_url']
119
119
  end
120
120
 
121
121
  ##
122
- # @return [String] Webhook URL to send a request when a port out phone number event happens
122
+ # @return [String] The complete webhook url that will be called when a notification event for a port out phone number happens.
123
123
  def port_out_target_url
124
124
  @properties['port_out_target_url']
125
125
  end
126
126
 
127
127
  ##
128
- # @return [Array<String>] List of notification events to send a request to the webhook URL
128
+ # @return [Array<String>] A list to filter what notification events to receive for this account and its sub accounts. If it is an empty list, then it means that there are no filters for the notifications events to send in each webhook and all events will get sent.
129
129
  def notifications_of
130
130
  @properties['notifications_of']
131
131
  end
@@ -44,7 +44,7 @@ module Twilio
44
44
  ##
45
45
  # Initialize the PortingWebhookConfigurationDeleteContext
46
46
  # @param [Version] version Version that contains the resource
47
- # @param [WebhookType] webhook_type The of the webhook type of the configuration to be deleted
47
+ # @param [WebhookType] webhook_type The webhook type for the configuration to be delete. `PORT_IN`, `PORT_OUT`
48
48
  # @return [PortingWebhookConfigurationDeleteContext] PortingWebhookConfigurationDeleteContext
49
49
  def initialize(version, webhook_type)
50
50
  super(version)