twilio-ruby 5.27.0 → 5.27.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 (115) hide show
  1. checksums.yaml +5 -5
  2. data/.dockerignore +1 -0
  3. data/CHANGES.md +13 -0
  4. data/CONTRIBUTING.md +2 -0
  5. data/Dockerfile +2 -2
  6. data/README.md +2 -2
  7. data/lib/twilio-ruby/http/http_client.rb +1 -1
  8. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +18 -18
  9. data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +9 -9
  10. data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +9 -9
  11. data/lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb +5 -5
  12. data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +10 -1
  13. data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +1 -1
  14. data/lib/twilio-ruby/rest/fax/v1/fax.rb +12 -12
  15. data/lib/twilio-ruby/rest/flex_api.rb +6 -3
  16. data/lib/twilio-ruby/rest/flex_api/v1.rb +3 -3
  17. data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +23 -23
  18. data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +39 -37
  19. data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +102 -96
  20. data/lib/twilio-ruby/rest/flex_api/v1/web_channel.rb +20 -20
  21. data/lib/twilio-ruby/rest/messaging.rb +3 -2
  22. data/lib/twilio-ruby/rest/messaging/v1.rb +2 -3
  23. data/lib/twilio-ruby/rest/messaging/v1/service.rb +124 -91
  24. data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +22 -18
  25. data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +22 -16
  26. data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +18 -20
  27. data/lib/twilio-ruby/rest/messaging/v1/session.rb +48 -44
  28. data/lib/twilio-ruby/rest/messaging/v1/session/message.rb +46 -48
  29. data/lib/twilio-ruby/rest/messaging/v1/session/participant.rb +55 -62
  30. data/lib/twilio-ruby/rest/messaging/v1/session/webhook.rb +61 -65
  31. data/lib/twilio-ruby/rest/messaging/v1/webhook.rb +30 -36
  32. data/lib/twilio-ruby/rest/monitor.rb +4 -2
  33. data/lib/twilio-ruby/rest/monitor/v1.rb +2 -2
  34. data/lib/twilio-ruby/rest/monitor/v1/alert.rb +45 -57
  35. data/lib/twilio-ruby/rest/monitor/v1/event.rb +47 -50
  36. data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +8 -8
  37. data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +3 -3
  38. data/lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb +6 -6
  39. data/lib/twilio-ruby/rest/preview/trusted_comms/device.rb +1 -1
  40. data/lib/twilio-ruby/rest/preview/trusted_comms/phone_call.rb +55 -55
  41. data/lib/twilio-ruby/rest/pricing/v2/voice.rb +2 -2
  42. data/lib/twilio-ruby/rest/pricing/v2/voice/country.rb +4 -4
  43. data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +1 -1
  44. data/lib/twilio-ruby/rest/serverless.rb +2 -1
  45. data/lib/twilio-ruby/rest/serverless/v1.rb +1 -2
  46. data/lib/twilio-ruby/rest/serverless/v1/service.rb +27 -28
  47. data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +22 -22
  48. data/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +22 -22
  49. data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +25 -24
  50. data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +26 -24
  51. data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +21 -24
  52. data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +31 -31
  53. data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +35 -35
  54. data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +22 -22
  55. data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +22 -22
  56. data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +12 -12
  57. data/lib/twilio-ruby/rest/sync/v1/service/document.rb +7 -4
  58. data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +6 -3
  59. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +15 -9
  60. data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +6 -3
  61. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +15 -9
  62. data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +9 -6
  63. data/lib/twilio-ruby/rest/taskrouter.rb +2 -1
  64. data/lib/twilio-ruby/rest/taskrouter/v1.rb +1 -1
  65. data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +102 -95
  66. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +52 -44
  67. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +90 -81
  68. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +152 -136
  69. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +35 -29
  70. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +96 -89
  71. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +61 -61
  72. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +27 -21
  73. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +46 -46
  74. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb +57 -64
  75. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +98 -79
  76. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +41 -39
  77. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +39 -33
  78. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +32 -31
  79. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +16 -11
  80. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +42 -42
  81. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +75 -72
  82. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +59 -51
  83. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +24 -18
  84. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +54 -46
  85. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +48 -46
  86. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +17 -17
  87. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +44 -42
  88. data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +24 -18
  89. data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +3 -3
  90. data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +1 -2
  91. data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +1 -2
  92. data/lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb +12 -12
  93. data/lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb +6 -6
  94. data/lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb +6 -6
  95. data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +2 -1
  96. data/lib/twilio-ruby/rest/verify/v2/service/verification_check.rb +2 -1
  97. data/lib/twilio-ruby/rest/video.rb +8 -8
  98. data/lib/twilio-ruby/rest/video/v1.rb +4 -7
  99. data/lib/twilio-ruby/rest/video/v1/composition.rb +89 -98
  100. data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +224 -195
  101. data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +34 -34
  102. data/lib/twilio-ruby/rest/video/v1/recording.rb +53 -55
  103. data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +32 -32
  104. data/lib/twilio-ruby/rest/video/v1/room.rb +71 -61
  105. data/lib/twilio-ruby/rest/video/v1/room/recording.rb +45 -33
  106. data/lib/twilio-ruby/rest/video/v1/room/room_participant.rb +56 -57
  107. data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_published_track.rb +25 -22
  108. data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribe_rule.rb +10 -10
  109. data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribed_track.rb +24 -23
  110. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions.rb +1 -1
  111. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +5 -5
  112. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb +2 -2
  113. data/lib/twilio-ruby/version.rb +1 -1
  114. data/spec/integration/conversations/v1/conversation/message_spec.rb +58 -0
  115. metadata +4 -4
@@ -108,12 +108,12 @@ module Twilio
108
108
  ##
109
109
  # Retrieve a single page of WebChannelInstance records from the API.
110
110
  # Request is executed immediately.
111
- # @param [String] flex_flow_sid The unique ID of the FlexFlow
112
- # @param [String] identity Chat identity
113
- # @param [String] customer_friendly_name Customer friendly name (chat participant)
114
- # @param [String] chat_friendly_name Chat channel friendly name
115
- # @param [String] chat_unique_name Chat channel unique name
116
- # @param [String] pre_engagement_data Pre-engagement data
111
+ # @param [String] flex_flow_sid The SID of the FlexFlow.
112
+ # @param [String] identity The chat identity.
113
+ # @param [String] customer_friendly_name The chat participant's friendly name.
114
+ # @param [String] chat_friendly_name The chat channel's friendly name.
115
+ # @param [String] chat_unique_name The chat channel's unique name.
116
+ # @param [String] pre_engagement_data The pre-engagement data.
117
117
  # @return [WebChannelInstance] Newly created WebChannelInstance
118
118
  def create(flex_flow_sid: nil, identity: nil, customer_friendly_name: nil, chat_friendly_name: nil, chat_unique_name: :unset, pre_engagement_data: :unset)
119
119
  data = Twilio::Values.of({
@@ -174,7 +174,7 @@ module Twilio
174
174
  ##
175
175
  # Initialize the WebChannelContext
176
176
  # @param [Version] version Version that contains the resource
177
- # @param [String] sid The unique SID identifier of the Flex Chat Channel
177
+ # @param [String] sid The SID of the WebChannel resource to fetch.
178
178
  # @return [WebChannelContext] WebChannelContext
179
179
  def initialize(version, sid)
180
180
  super(version)
@@ -201,9 +201,9 @@ module Twilio
201
201
 
202
202
  ##
203
203
  # Update the WebChannelInstance
204
- # @param [web_channel.ChatStatus] chat_status Chat status, can only used to make
205
- # chat 'inactive'
206
- # @param [String] post_engagement_data Post-engagement data
204
+ # @param [web_channel.ChatStatus] chat_status The chat status. Can only be
205
+ # `inactive`.
206
+ # @param [String] post_engagement_data The post-engagement data.
207
207
  # @return [WebChannelInstance] Updated WebChannelInstance
208
208
  def update(chat_status: :unset, post_engagement_data: :unset)
209
209
  data = Twilio::Values.of({
@@ -247,7 +247,7 @@ module Twilio
247
247
  # Initialize the WebChannelInstance
248
248
  # @param [Version] version Version that contains the resource
249
249
  # @param [Hash] payload payload that contains response from Twilio
250
- # @param [String] sid The unique SID identifier of the Flex Chat Channel
250
+ # @param [String] sid The SID of the WebChannel resource to fetch.
251
251
  # @return [WebChannelInstance] WebChannelInstance
252
252
  def initialize(version, payload, sid: nil)
253
253
  super(version)
@@ -279,37 +279,37 @@ module Twilio
279
279
  end
280
280
 
281
281
  ##
282
- # @return [String] The ID of the account that owns this Workflow
282
+ # @return [String] The SID of the Account that created the resource and owns this Workflow
283
283
  def account_sid
284
284
  @properties['account_sid']
285
285
  end
286
286
 
287
287
  ##
288
- # @return [String] The unique ID of the FlexFlow
288
+ # @return [String] The SID of the FlexFlow
289
289
  def flex_flow_sid
290
290
  @properties['flex_flow_sid']
291
291
  end
292
292
 
293
293
  ##
294
- # @return [String] Flex Chat Channel Sid
294
+ # @return [String] The unique string that identifies the WebChannel resource
295
295
  def sid
296
296
  @properties['sid']
297
297
  end
298
298
 
299
299
  ##
300
- # @return [String] The url
300
+ # @return [String] The absolute URL of the WebChannel resource
301
301
  def url
302
302
  @properties['url']
303
303
  end
304
304
 
305
305
  ##
306
- # @return [Time] The time the Flex Chat Channel was created, given as GMT in ISO 8601 format.
306
+ # @return [Time] The ISO 8601 date and time in GMT when the resource was created
307
307
  def date_created
308
308
  @properties['date_created']
309
309
  end
310
310
 
311
311
  ##
312
- # @return [Time] The time the Flex Chat Channel was last updated, given as GMT in ISO 8601 format.
312
+ # @return [Time] The ISO 8601 date and time in GMT when the resource was last updated
313
313
  def date_updated
314
314
  @properties['date_updated']
315
315
  end
@@ -323,9 +323,9 @@ module Twilio
323
323
 
324
324
  ##
325
325
  # Update the WebChannelInstance
326
- # @param [web_channel.ChatStatus] chat_status Chat status, can only used to make
327
- # chat 'inactive'
328
- # @param [String] post_engagement_data Post-engagement data
326
+ # @param [web_channel.ChatStatus] chat_status The chat status. Can only be
327
+ # `inactive`.
328
+ # @param [String] post_engagement_data The post-engagement data.
329
329
  # @return [WebChannelInstance] Updated WebChannelInstance
330
330
  def update(chat_status: :unset, post_engagement_data: :unset)
331
331
  context.update(chat_status: chat_status, post_engagement_data: post_engagement_data, )
@@ -29,7 +29,7 @@ module Twilio
29
29
  end
30
30
 
31
31
  ##
32
- # @param [String] sid A 34 character string that uniquely identifies this
32
+ # @param [String] sid The unique string that we created to identify the Session
33
33
  # resource.
34
34
  # @return [Twilio::REST::Messaging::V1::SessionInstance] if sid was passed.
35
35
  # @return [Twilio::REST::Messaging::V1::SessionList]
@@ -38,7 +38,8 @@ module Twilio
38
38
  end
39
39
 
40
40
  ##
41
- # @param [String] sid Unique 34 character ID of the Service.
41
+ # @param [String] sid The unique string that we created to identify the Service
42
+ # resource.
42
43
  # @return [Twilio::REST::Messaging::V1::ServiceInstance] if sid was passed.
43
44
  # @return [Twilio::REST::Messaging::V1::ServiceList]
44
45
  def services(sid=:unset)
@@ -21,8 +21,7 @@ module Twilio
21
21
  end
22
22
 
23
23
  ##
24
- # @param [String] sid A 34 character string that uniquely identifies this
25
- # resource.
24
+ # @param [String] sid The SID of the Session resource to fetch.
26
25
  # @return [Twilio::REST::Messaging::V1::SessionContext] if sid was passed.
27
26
  # @return [Twilio::REST::Messaging::V1::SessionList]
28
27
  def sessions(sid=:unset)
@@ -36,7 +35,7 @@ module Twilio
36
35
  end
37
36
 
38
37
  ##
39
- # @param [String] sid The sid
38
+ # @param [String] sid The SID of the Service resource to fetch.
40
39
  # @return [Twilio::REST::Messaging::V1::ServiceContext] if sid was passed.
41
40
  # @return [Twilio::REST::Messaging::V1::ServiceList]
42
41
  def services(sid=:unset)
@@ -28,45 +28,40 @@ module Twilio
28
28
  ##
29
29
  # Retrieve a single page of ServiceInstance records from the API.
30
30
  # Request is executed immediately.
31
- # @param [String] friendly_name A human readable descriptive text for this
32
- # resource, up to 64 characters.
33
- # @param [String] inbound_request_url A [webhook
34
- # request](https://www.twilio.com/docs/api/twiml/sms/twilio_request) is made to
35
- # the Inbound Request URL when a message is received by any phone number or
36
- # shortcode associated to your Messaging Service. Set to `null` to disable inbound
37
- # messaging.
38
- # @param [String] inbound_method The HTTP method used when making requests to the
39
- # Inbound Request URL. Either `GET` or `POST`. Default value is `POST`.
40
- # @param [String] fallback_url A request is made to the Fallback URL if an error
41
- # occurs with retrieving or executing the TwiML from you Inbound Request URL.
42
- # @param [String] fallback_method The HTTP method used when requesting the
43
- # Fallback URL. Either `GET` or `POST`. Default value is `POST`.
44
- # @param [String] status_callback A webhook request is made to the Status Callback
45
- # to pass [status
46
- # updates](https://www.twilio.com/docs/api/rest/message#sms-status-values) about
47
- # your messages. These status updates let you know if your accepted message were
48
- # successfully sent and delivered or if a [delivery related
49
- # error](https://www.twilio.com/docs/api/rest/message#error-values) may have
50
- # occurred.
51
- # @param [Boolean] sticky_sender Configuration to enable or disable Sticky Sender
52
- # on your Service Instance. Possible values are `true` and `false`. Default value
53
- # is `true`.
54
- # @param [Boolean] mms_converter Configuration to enable or disable MMS Converter
55
- # on your Service Instance. Possible values are `true` and `false`. Default value
56
- # is `true`.
57
- # @param [Boolean] smart_encoding Configuration to enable or disable [Smart
58
- # Encoding](https://www.twilio.com/docs/api/messaging/services-and-copilot#smart-encoding). Possible values are `true` and `false`. Default value is `true`.
59
- # @param [service.ScanMessageContent] scan_message_content The
60
- # scan_message_content
61
- # @param [Boolean] fallback_to_long_code Configuration to enable or disable
62
- # [Fallback to Long
63
- # Code](https://www.twilio.com/docs/api/messaging/services-and-copilot#fallback-to-long-code). Possible values are `true` and `false`. Default value is `false`.
64
- # @param [Boolean] area_code_geomatch Configuration to enable or disable [Area
65
- # Code
66
- # Geomatch](https://www.twilio.com/docs/api/messaging/services-and-copilot#area-code-geomatch). Possible values are `true` and `false`. Default value is `false`.
67
- # @param [String] validity_period Configuration to set the [validity
68
- # period](https://www.twilio.com/docs/api/messaging/services-and-copilot#validity-period) of all messages sent from your Service, in seconds. Acceptable integers range from `1` to `14,400`. Default value is `14,400`.
69
- # @param [Boolean] synchronous_validation The synchronous_validation
31
+ # @param [String] friendly_name A descriptive string that you create to describe
32
+ # the resource. It can be up to 64 characters long.
33
+ # @param [String] inbound_request_url The URL we should call using
34
+ # `inbound_method` when a message is received by any phone number or short code in
35
+ # the Service. When this property is `null`, receiving inbound messages is
36
+ # disabled.
37
+ # @param [String] inbound_method The HTTP method we should use to call
38
+ # `inbound_request_url`. Can be `GET` or `POST` and the default is `POST`.
39
+ # @param [String] fallback_url The URL that we should call using `fallback_method`
40
+ # if an error occurs while retrieving or executing the TwiML from the Inbound
41
+ # Request URL.
42
+ # @param [String] fallback_method The HTTP method we should use to call
43
+ # `fallback_url`. Can be: `GET` or `POST`.
44
+ # @param [String] status_callback The URL we should call to [pass status
45
+ # updates](https://www.twilio.com/docs/sms/api/message-resource#message-status-values) about message delivery.
46
+ # @param [Boolean] sticky_sender Whether to enable [Sticky
47
+ # Sender](https://www.twilio.com/docs/sms/services#sticky-sender) on the Service
48
+ # instance.
49
+ # @param [Boolean] mms_converter Whether to enable the [MMS
50
+ # Converter](https://www.twilio.com/docs/sms/services#mms-converter) for messages
51
+ # sent through the Service instance.
52
+ # @param [Boolean] smart_encoding Whether to enable [Smart
53
+ # Encoding](https://www.twilio.com/docs/sms/services#smart-encoding) for messages
54
+ # sent through the Service instance.
55
+ # @param [service.ScanMessageContent] scan_message_content Reserved.
56
+ # @param [Boolean] fallback_to_long_code Whether to enable [Fallback to Long
57
+ # Code](https://www.twilio.com/docs/sms/services#fallback-to-long-code) for
58
+ # messages sent through the Service instance.
59
+ # @param [Boolean] area_code_geomatch Whether to enable [Area Code
60
+ # Geomatch](https://www.twilio.com/docs/sms/services#area-code-geomatch) on the
61
+ # Service Instance.
62
+ # @param [String] validity_period How long, in seconds, messages sent from the
63
+ # Service are valid. Can be an integer from `1` to `14,400`.
64
+ # @param [Boolean] synchronous_validation Reserved.
70
65
  # @return [ServiceInstance] Newly created ServiceInstance
71
66
  def create(friendly_name: nil, inbound_request_url: :unset, inbound_method: :unset, fallback_url: :unset, fallback_method: :unset, status_callback: :unset, sticky_sender: :unset, mms_converter: :unset, smart_encoding: :unset, scan_message_content: :unset, fallback_to_long_code: :unset, area_code_geomatch: :unset, validity_period: :unset, synchronous_validation: :unset)
72
67
  data = Twilio::Values.of({
@@ -221,7 +216,7 @@ module Twilio
221
216
  ##
222
217
  # Initialize the ServiceContext
223
218
  # @param [Version] version Version that contains the resource
224
- # @param [String] sid The sid
219
+ # @param [String] sid The SID of the Service resource to fetch.
225
220
  # @return [ServiceContext] ServiceContext
226
221
  def initialize(version, sid)
227
222
  super(version)
@@ -238,21 +233,40 @@ module Twilio
238
233
 
239
234
  ##
240
235
  # Update the ServiceInstance
241
- # @param [String] friendly_name The friendly_name
242
- # @param [String] inbound_request_url The inbound_request_url
243
- # @param [String] inbound_method The inbound_method
244
- # @param [String] fallback_url The fallback_url
245
- # @param [String] fallback_method The fallback_method
246
- # @param [String] status_callback The status_callback
247
- # @param [Boolean] sticky_sender The sticky_sender
248
- # @param [Boolean] mms_converter The mms_converter
249
- # @param [Boolean] smart_encoding The smart_encoding
250
- # @param [service.ScanMessageContent] scan_message_content The
251
- # scan_message_content
252
- # @param [Boolean] fallback_to_long_code The fallback_to_long_code
253
- # @param [Boolean] area_code_geomatch The area_code_geomatch
254
- # @param [String] validity_period The validity_period
255
- # @param [Boolean] synchronous_validation The synchronous_validation
236
+ # @param [String] friendly_name A descriptive string that you create to describe
237
+ # the resource. It can be up to 64 characters long.
238
+ # @param [String] inbound_request_url The URL we should call using
239
+ # `inbound_method` when a message is received by any phone number or short code in
240
+ # the Service. When this property is `null`, receiving inbound messages is
241
+ # disabled.
242
+ # @param [String] inbound_method The HTTP method we should use to call
243
+ # `inbound_request_url`. Can be `GET` or `POST` and the default is `POST`.
244
+ # @param [String] fallback_url The URL that we should call using `fallback_method`
245
+ # if an error occurs while retrieving or executing the TwiML from the Inbound
246
+ # Request URL.
247
+ # @param [String] fallback_method The HTTP method we should use to call
248
+ # `fallback_url`. Can be: `GET` or `POST`.
249
+ # @param [String] status_callback The URL we should call to [pass status
250
+ # updates](https://www.twilio.com/docs/sms/api/message-resource#message-status-values) about message delivery.
251
+ # @param [Boolean] sticky_sender Whether to enable [Sticky
252
+ # Sender](https://www.twilio.com/docs/sms/services#sticky-sender) on the Service
253
+ # instance.
254
+ # @param [Boolean] mms_converter Whether to enable the [MMS
255
+ # Converter](https://www.twilio.com/docs/sms/services#mms-converter) for messages
256
+ # sent through the Service instance.
257
+ # @param [Boolean] smart_encoding Whether to enable [Smart
258
+ # Encoding](https://www.twilio.com/docs/sms/services#smart-encoding) for messages
259
+ # sent through the Service instance.
260
+ # @param [service.ScanMessageContent] scan_message_content Reserved.
261
+ # @param [Boolean] fallback_to_long_code Whether to enable [Fallback to Long
262
+ # Code](https://www.twilio.com/docs/sms/services#fallback-to-long-code) for
263
+ # messages sent through the Service instance.
264
+ # @param [Boolean] area_code_geomatch Whether to enable [Area Code
265
+ # Geomatch](https://www.twilio.com/docs/sms/services#area-code-geomatch) on the
266
+ # Service Instance.
267
+ # @param [String] validity_period How long, in seconds, messages sent from the
268
+ # Service are valid. Can be an integer from `1` to `14,400`.
269
+ # @param [Boolean] synchronous_validation Reserved.
256
270
  # @return [ServiceInstance] Updated ServiceInstance
257
271
  def update(friendly_name: :unset, inbound_request_url: :unset, inbound_method: :unset, fallback_url: :unset, fallback_method: :unset, status_callback: :unset, sticky_sender: :unset, mms_converter: :unset, smart_encoding: :unset, scan_message_content: :unset, fallback_to_long_code: :unset, area_code_geomatch: :unset, validity_period: :unset, synchronous_validation: :unset)
258
272
  data = Twilio::Values.of({
@@ -379,7 +393,7 @@ module Twilio
379
393
  # Initialize the ServiceInstance
380
394
  # @param [Version] version Version that contains the resource
381
395
  # @param [Hash] payload payload that contains response from Twilio
382
- # @param [String] sid The sid
396
+ # @param [String] sid The SID of the Service resource to fetch.
383
397
  # @return [ServiceInstance] ServiceInstance
384
398
  def initialize(version, payload, sid: nil)
385
399
  super(version)
@@ -425,142 +439,161 @@ module Twilio
425
439
  end
426
440
 
427
441
  ##
428
- # @return [String] Unique 34 character ID of the Service.
442
+ # @return [String] The unique string that identifies the resource
429
443
  def sid
430
444
  @properties['sid']
431
445
  end
432
446
 
433
447
  ##
434
- # @return [String] Unique 34 character ID of the Account that created this Service.
448
+ # @return [String] The SID of the Account that created the resource
435
449
  def account_sid
436
450
  @properties['account_sid']
437
451
  end
438
452
 
439
453
  ##
440
- # @return [String] A human readable descriptive text for this resource, up to 64 characters.
454
+ # @return [String] The string that you assigned to describe the resource
441
455
  def friendly_name
442
456
  @properties['friendly_name']
443
457
  end
444
458
 
445
459
  ##
446
- # @return [Time] The date that this resource was created.
460
+ # @return [Time] The ISO 8601 date and time in GMT when the resource was created
447
461
  def date_created
448
462
  @properties['date_created']
449
463
  end
450
464
 
451
465
  ##
452
- # @return [Time] The date that this resource was last updated.
466
+ # @return [Time] The ISO 8601 date and time in GMT when the resource was last updated
453
467
  def date_updated
454
468
  @properties['date_updated']
455
469
  end
456
470
 
457
471
  ##
458
- # @return [String] The URL Twilio will make a webhook request to when a message is received by any phone number or short code in your Service.
472
+ # @return [String] The URL we call using inbound_method when a message is received by any phone number or short code in the Service
459
473
  def inbound_request_url
460
474
  @properties['inbound_request_url']
461
475
  end
462
476
 
463
477
  ##
464
- # @return [String] The HTTP method Twilio will use when making requests to the Inbound Request URL.
478
+ # @return [String] The HTTP method we use to call inbound_request_url
465
479
  def inbound_method
466
480
  @properties['inbound_method']
467
481
  end
468
482
 
469
483
  ##
470
- # @return [String] The URL that Twilio will request if an error occurs when retrieving or executing the TwiML from your Inbound Request URL.
484
+ # @return [String] The URL that we call using fallback_method if an error occurs while retrieving or executing the TwiML from the Inbound Request URL
471
485
  def fallback_url
472
486
  @properties['fallback_url']
473
487
  end
474
488
 
475
489
  ##
476
- # @return [String] The HTTP method Twilio will use when making requests to the Fallback URL.
490
+ # @return [String] The HTTP method we use to call fallback_url
477
491
  def fallback_method
478
492
  @properties['fallback_method']
479
493
  end
480
494
 
481
495
  ##
482
- # @return [String] The URL Twilio will make a webhook request to when passing you status updates about the delivery of your messages.
496
+ # @return [String] The URL we call to pass status updates about message delivery
483
497
  def status_callback
484
498
  @properties['status_callback']
485
499
  end
486
500
 
487
501
  ##
488
- # @return [Boolean] Configuration to enable or disable Sticky Sender on your Service instance.
502
+ # @return [Boolean] Whether to enable Sticky Sender on the Service instance
489
503
  def sticky_sender
490
504
  @properties['sticky_sender']
491
505
  end
492
506
 
493
507
  ##
494
- # @return [Boolean] Configuration to enable or disable MMS Converter for messages sent through your Service instance.
508
+ # @return [Boolean] Whether to enable the MMS Converter for messages sent through the Service instance
495
509
  def mms_converter
496
510
  @properties['mms_converter']
497
511
  end
498
512
 
499
513
  ##
500
- # @return [Boolean] Configuration to enable or disable Smart Encoding for messages sent through your Service instance.
514
+ # @return [Boolean] Whether to enable Encoding for messages sent through the Service instance
501
515
  def smart_encoding
502
516
  @properties['smart_encoding']
503
517
  end
504
518
 
505
519
  ##
506
- # @return [service.ScanMessageContent] The scan_message_content
520
+ # @return [service.ScanMessageContent] Reserved
507
521
  def scan_message_content
508
522
  @properties['scan_message_content']
509
523
  end
510
524
 
511
525
  ##
512
- # @return [Boolean] Configuration to enable or disable Fallback to Long Code for messages sent through your Service instance.
526
+ # @return [Boolean] Whether to enable Fallback to Long Code for messages sent through the Service instance
513
527
  def fallback_to_long_code
514
528
  @properties['fallback_to_long_code']
515
529
  end
516
530
 
517
531
  ##
518
- # @return [Boolean] Configuration to enable or disable Area Code Geomatch on your Service Instance.
532
+ # @return [Boolean] Whether to enable Area Code Geomatch on the Service Instance
519
533
  def area_code_geomatch
520
534
  @properties['area_code_geomatch']
521
535
  end
522
536
 
523
537
  ##
524
- # @return [Boolean] The synchronous_validation
538
+ # @return [Boolean] Reserved
525
539
  def synchronous_validation
526
540
  @properties['synchronous_validation']
527
541
  end
528
542
 
529
543
  ##
530
- # @return [String] The number of seconds all messages sent from your Service are valid for.
544
+ # @return [String] How long, in seconds, messages sent from the Service are valid
531
545
  def validity_period
532
546
  @properties['validity_period']
533
547
  end
534
548
 
535
549
  ##
536
- # @return [String] The url
550
+ # @return [String] The absolute URL of the Service resource
537
551
  def url
538
552
  @properties['url']
539
553
  end
540
554
 
541
555
  ##
542
- # @return [String] The links
556
+ # @return [String] The absolute URLs of related resources
543
557
  def links
544
558
  @properties['links']
545
559
  end
546
560
 
547
561
  ##
548
562
  # Update the ServiceInstance
549
- # @param [String] friendly_name The friendly_name
550
- # @param [String] inbound_request_url The inbound_request_url
551
- # @param [String] inbound_method The inbound_method
552
- # @param [String] fallback_url The fallback_url
553
- # @param [String] fallback_method The fallback_method
554
- # @param [String] status_callback The status_callback
555
- # @param [Boolean] sticky_sender The sticky_sender
556
- # @param [Boolean] mms_converter The mms_converter
557
- # @param [Boolean] smart_encoding The smart_encoding
558
- # @param [service.ScanMessageContent] scan_message_content The
559
- # scan_message_content
560
- # @param [Boolean] fallback_to_long_code The fallback_to_long_code
561
- # @param [Boolean] area_code_geomatch The area_code_geomatch
562
- # @param [String] validity_period The validity_period
563
- # @param [Boolean] synchronous_validation The synchronous_validation
563
+ # @param [String] friendly_name A descriptive string that you create to describe
564
+ # the resource. It can be up to 64 characters long.
565
+ # @param [String] inbound_request_url The URL we should call using
566
+ # `inbound_method` when a message is received by any phone number or short code in
567
+ # the Service. When this property is `null`, receiving inbound messages is
568
+ # disabled.
569
+ # @param [String] inbound_method The HTTP method we should use to call
570
+ # `inbound_request_url`. Can be `GET` or `POST` and the default is `POST`.
571
+ # @param [String] fallback_url The URL that we should call using `fallback_method`
572
+ # if an error occurs while retrieving or executing the TwiML from the Inbound
573
+ # Request URL.
574
+ # @param [String] fallback_method The HTTP method we should use to call
575
+ # `fallback_url`. Can be: `GET` or `POST`.
576
+ # @param [String] status_callback The URL we should call to [pass status
577
+ # updates](https://www.twilio.com/docs/sms/api/message-resource#message-status-values) about message delivery.
578
+ # @param [Boolean] sticky_sender Whether to enable [Sticky
579
+ # Sender](https://www.twilio.com/docs/sms/services#sticky-sender) on the Service
580
+ # instance.
581
+ # @param [Boolean] mms_converter Whether to enable the [MMS
582
+ # Converter](https://www.twilio.com/docs/sms/services#mms-converter) for messages
583
+ # sent through the Service instance.
584
+ # @param [Boolean] smart_encoding Whether to enable [Smart
585
+ # Encoding](https://www.twilio.com/docs/sms/services#smart-encoding) for messages
586
+ # sent through the Service instance.
587
+ # @param [service.ScanMessageContent] scan_message_content Reserved.
588
+ # @param [Boolean] fallback_to_long_code Whether to enable [Fallback to Long
589
+ # Code](https://www.twilio.com/docs/sms/services#fallback-to-long-code) for
590
+ # messages sent through the Service instance.
591
+ # @param [Boolean] area_code_geomatch Whether to enable [Area Code
592
+ # Geomatch](https://www.twilio.com/docs/sms/services#area-code-geomatch) on the
593
+ # Service Instance.
594
+ # @param [String] validity_period How long, in seconds, messages sent from the
595
+ # Service are valid. Can be an integer from `1` to `14,400`.
596
+ # @param [Boolean] synchronous_validation Reserved.
564
597
  # @return [ServiceInstance] Updated ServiceInstance
565
598
  def update(friendly_name: :unset, inbound_request_url: :unset, inbound_method: :unset, fallback_url: :unset, fallback_method: :unset, status_callback: :unset, sticky_sender: :unset, mms_converter: :unset, smart_encoding: :unset, scan_message_content: :unset, fallback_to_long_code: :unset, area_code_geomatch: :unset, validity_period: :unset, synchronous_validation: :unset)
566
599
  context.update(