twilio-ruby 7.2.1 → 7.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +74 -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/assistants/v1/assistant/feedback.rb +303 -0
  9. data/lib/twilio-ruby/rest/assistants/v1/assistant.rb +626 -0
  10. data/lib/twilio-ruby/rest/assistants/v1/knowledge/chunk.rb +229 -0
  11. data/lib/twilio-ruby/rest/assistants/v1/knowledge.rb +593 -0
  12. data/lib/twilio-ruby/rest/assistants/v1/policy.rb +264 -0
  13. data/lib/twilio-ruby/rest/assistants/v1/session/message.rb +264 -0
  14. data/lib/twilio-ruby/rest/assistants/v1/session.rb +328 -0
  15. data/lib/twilio-ruby/rest/assistants/v1/tool.rb +549 -0
  16. data/lib/twilio-ruby/rest/assistants/v1.rb +100 -0
  17. data/lib/twilio-ruby/rest/{preview_iam.rb → assistants.rb} +1 -1
  18. data/lib/twilio-ruby/rest/assistants_base.rb +38 -0
  19. data/lib/twilio-ruby/rest/client.rb +8 -3
  20. data/lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb +11 -11
  21. data/lib/twilio-ruby/rest/content/v1/content.rb +167 -4
  22. data/lib/twilio-ruby/rest/flex_api/v2/flex_user.rb +81 -1
  23. data/lib/twilio-ruby/rest/iam/v1/api_key.rb +270 -0
  24. data/lib/twilio-ruby/rest/iam/v1/get_api_keys.rb +223 -0
  25. data/lib/twilio-ruby/rest/iam/v1/new_api_key.rb +177 -0
  26. data/lib/twilio-ruby/rest/iam/v1.rb +61 -0
  27. data/lib/twilio-ruby/rest/iam.rb +6 -0
  28. data/lib/twilio-ruby/rest/{preview_iam_base.rb → iam_base.rb} +10 -5
  29. data/lib/twilio-ruby/rest/insights/v1/call_summaries.rb +60 -12
  30. data/lib/twilio-ruby/rest/intelligence/v2/operator_type.rb +1 -1
  31. data/lib/twilio-ruby/rest/intelligence/v2/transcript/sentence.rb +16 -3
  32. data/lib/twilio-ruby/rest/intelligence/v2.rb +1 -1
  33. data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_usage.rb +16 -29
  34. data/lib/twilio-ruby/rest/marketplace/v1/module_data_management.rb +46 -20
  35. data/lib/twilio-ruby/rest/marketplace/v1/referral_conversion.rb +199 -0
  36. data/lib/twilio-ruby/rest/marketplace/v1.rb +7 -1
  37. data/lib/twilio-ruby/rest/messaging/v1/external_campaign.rb +4 -1
  38. data/lib/twilio-ruby/rest/messaging/v1/service/channel_sender.rb +40 -0
  39. data/lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb +10 -10
  40. data/lib/twilio-ruby/rest/numbers/v1/porting_port_in_phone_number.rb +24 -17
  41. data/lib/twilio-ruby/rest/numbers/v1/porting_portability.rb +7 -7
  42. data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration.rb +3 -3
  43. data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_delete.rb +1 -1
  44. data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_fetch.rb +3 -3
  45. data/lib/twilio-ruby/rest/numbers/v1/signing_request_configuration.rb +96 -0
  46. data/lib/twilio-ruby/rest/numbers/v1.rb +2 -2
  47. data/lib/twilio-ruby/rest/numbers/v2/bundle_clone.rb +277 -0
  48. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +8 -5
  49. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document.rb +7 -0
  50. data/lib/twilio-ruby/rest/numbers/v2.rb +15 -0
  51. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +2 -2
  52. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +1 -1
  53. data/lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb +12 -3
  54. data/lib/twilio-ruby/rest/verify/v2/service.rb +4 -4
  55. data/lib/twilio-ruby/version.rb +1 -1
  56. data/twilio-ruby.gemspec +2 -1
  57. metadata +23 -4
@@ -44,7 +44,7 @@ module Twilio
44
44
  ##
45
45
  # Initialize the ModuleDataManagementContext
46
46
  # @param [Version] version Version that contains the resource
47
- # @param [String] sid
47
+ # @param [String] sid SID that uniquely identifies the Listing.
48
48
  # @return [ModuleDataManagementContext] ModuleDataManagementContext
49
49
  def initialize(version, sid)
50
50
  super(version)
@@ -72,18 +72,22 @@ module Twilio
72
72
 
73
73
  ##
74
74
  # Update the ModuleDataManagementInstance
75
- # @param [String] module_info
76
- # @param [String] description
77
- # @param [String] documentation
78
- # @param [String] policies
79
- # @param [String] support
75
+ # @param [String] module_info A JSON object containing essential attributes that define a Listing.
76
+ # @param [String] description A JSON object describing the Listing. You can define the main body of the description, highlight key features or aspects of the Listing, and provide code samples for developers if applicable.
77
+ # @param [String] documentation A JSON object for providing comprehensive information, instructions, and resources related to the Listing.
78
+ # @param [String] policies A JSON object describing the Listing's privacy and legal policies. The maximum file size for Policies is 5MB.
79
+ # @param [String] support A JSON object containing information on how Marketplace users can obtain support for the Listing. Use this parameter to provide details such as contact information and support description.
80
+ # @param [String] configuration A JSON object for providing Listing-specific configuration. Contains button setup, notification URL, and more.
81
+ # @param [String] pricing A JSON object for providing Listing's purchase options.
80
82
  # @return [ModuleDataManagementInstance] Updated ModuleDataManagementInstance
81
83
  def update(
82
84
  module_info: :unset,
83
85
  description: :unset,
84
86
  documentation: :unset,
85
87
  policies: :unset,
86
- support: :unset
88
+ support: :unset,
89
+ configuration: :unset,
90
+ pricing: :unset
87
91
  )
88
92
 
89
93
  data = Twilio::Values.of({
@@ -92,6 +96,8 @@ module Twilio
92
96
  'Documentation' => documentation,
93
97
  'Policies' => policies,
94
98
  'Support' => support,
99
+ 'Configuration' => configuration,
100
+ 'Pricing' => pricing,
95
101
  })
96
102
 
97
103
  headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
@@ -170,6 +176,8 @@ module Twilio
170
176
  'policies' => payload['policies'],
171
177
  'module_info' => payload['module_info'],
172
178
  'documentation' => payload['documentation'],
179
+ 'configuration' => payload['configuration'],
180
+ 'pricing' => payload['pricing'],
173
181
  }
174
182
 
175
183
  # Context
@@ -189,47 +197,59 @@ module Twilio
189
197
  end
190
198
 
191
199
  ##
192
- # @return [String]
200
+ # @return [String] URL to query the subresource.
193
201
  def url
194
202
  @properties['url']
195
203
  end
196
204
 
197
205
  ##
198
- # @return [String]
206
+ # @return [String] ModuleSid that identifies this Listing.
199
207
  def sid
200
208
  @properties['sid']
201
209
  end
202
210
 
203
211
  ##
204
- # @return [Hash]
212
+ # @return [Hash] A JSON object describing the module and is displayed under the Description tab of the Module detail page. You can define the main body of the description, highlight key features or aspects of the module and if applicable, provide code samples for developers
205
213
  def description
206
214
  @properties['description']
207
215
  end
208
216
 
209
217
  ##
210
- # @return [Hash]
218
+ # @return [Hash] A JSON object containing information on how customers can obtain support for the module. Use this parameter to provide details such as contact information and support description.
211
219
  def support
212
220
  @properties['support']
213
221
  end
214
222
 
215
223
  ##
216
- # @return [Hash]
224
+ # @return [Hash] A JSON object describing the module's privacy and legal policies and is displayed under the Policies tab of the Module detail page. The maximum file size for Policies is 5MB
217
225
  def policies
218
226
  @properties['policies']
219
227
  end
220
228
 
221
229
  ##
222
- # @return [Hash]
230
+ # @return [Hash] A JSON object containing essential attributes that define a module. This information is presented on the Module detail page in the Twilio Marketplace Catalog. You can pass the following attributes in the JSON object
223
231
  def module_info
224
232
  @properties['module_info']
225
233
  end
226
234
 
227
235
  ##
228
- # @return [Hash]
236
+ # @return [Hash] A JSON object for providing comprehensive information, instructions, and resources related to the module
229
237
  def documentation
230
238
  @properties['documentation']
231
239
  end
232
240
 
241
+ ##
242
+ # @return [Hash] A JSON object for providing listing specific configuration. Contains button setup, notification url, among others.
243
+ def configuration
244
+ @properties['configuration']
245
+ end
246
+
247
+ ##
248
+ # @return [Hash] A JSON object for providing Listing specific pricing information.
249
+ def pricing
250
+ @properties['pricing']
251
+ end
252
+
233
253
  ##
234
254
  # Fetch the ModuleDataManagementInstance
235
255
  # @return [ModuleDataManagementInstance] Fetched ModuleDataManagementInstance
@@ -240,18 +260,22 @@ module Twilio
240
260
 
241
261
  ##
242
262
  # Update the ModuleDataManagementInstance
243
- # @param [String] module_info
244
- # @param [String] description
245
- # @param [String] documentation
246
- # @param [String] policies
247
- # @param [String] support
263
+ # @param [String] module_info A JSON object containing essential attributes that define a Listing.
264
+ # @param [String] description A JSON object describing the Listing. You can define the main body of the description, highlight key features or aspects of the Listing, and provide code samples for developers if applicable.
265
+ # @param [String] documentation A JSON object for providing comprehensive information, instructions, and resources related to the Listing.
266
+ # @param [String] policies A JSON object describing the Listing's privacy and legal policies. The maximum file size for Policies is 5MB.
267
+ # @param [String] support A JSON object containing information on how Marketplace users can obtain support for the Listing. Use this parameter to provide details such as contact information and support description.
268
+ # @param [String] configuration A JSON object for providing Listing-specific configuration. Contains button setup, notification URL, and more.
269
+ # @param [String] pricing A JSON object for providing Listing's purchase options.
248
270
  # @return [ModuleDataManagementInstance] Updated ModuleDataManagementInstance
249
271
  def update(
250
272
  module_info: :unset,
251
273
  description: :unset,
252
274
  documentation: :unset,
253
275
  policies: :unset,
254
- support: :unset
276
+ support: :unset,
277
+ configuration: :unset,
278
+ pricing: :unset
255
279
  )
256
280
 
257
281
  context.update(
@@ -260,6 +284,8 @@ module Twilio
260
284
  documentation: documentation,
261
285
  policies: policies,
262
286
  support: support,
287
+ configuration: configuration,
288
+ pricing: pricing,
263
289
  )
264
290
  end
265
291
 
@@ -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
@@ -166,7 +166,7 @@ module Twilio
166
166
  'losing_carrier_information' => payload['losing_carrier_information'],
167
167
  'phone_numbers' => payload['phone_numbers'],
168
168
  'documents' => payload['documents'],
169
- 'date_created' => Twilio.deserialize_iso8601_date(payload['date_created']),
169
+ 'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
170
170
  }
171
171
 
172
172
  # Context
@@ -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,25 +234,25 @@ 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
253
253
 
254
254
  ##
255
- # @return [Date]
255
+ # @return [Time]
256
256
  def date_created
257
257
  @properties['date_created']
258
258
  end