twilio-ruby 5.27.0 → 5.27.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.dockerignore +1 -0
- data/CHANGES.md +13 -0
- data/CONTRIBUTING.md +2 -0
- data/Dockerfile +2 -2
- data/README.md +2 -2
- data/lib/twilio-ruby/http/http_client.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +18 -18
- data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +9 -9
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +9 -9
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb +5 -5
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +10 -1
- data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +1 -1
- data/lib/twilio-ruby/rest/fax/v1/fax.rb +12 -12
- data/lib/twilio-ruby/rest/flex_api.rb +6 -3
- data/lib/twilio-ruby/rest/flex_api/v1.rb +3 -3
- data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +23 -23
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +39 -37
- data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +102 -96
- data/lib/twilio-ruby/rest/flex_api/v1/web_channel.rb +20 -20
- data/lib/twilio-ruby/rest/messaging.rb +3 -2
- data/lib/twilio-ruby/rest/messaging/v1.rb +2 -3
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +124 -91
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +22 -18
- data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +22 -16
- data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +18 -20
- data/lib/twilio-ruby/rest/messaging/v1/session.rb +48 -44
- data/lib/twilio-ruby/rest/messaging/v1/session/message.rb +46 -48
- data/lib/twilio-ruby/rest/messaging/v1/session/participant.rb +55 -62
- data/lib/twilio-ruby/rest/messaging/v1/session/webhook.rb +61 -65
- data/lib/twilio-ruby/rest/messaging/v1/webhook.rb +30 -36
- data/lib/twilio-ruby/rest/monitor.rb +4 -2
- data/lib/twilio-ruby/rest/monitor/v1.rb +2 -2
- data/lib/twilio-ruby/rest/monitor/v1/alert.rb +45 -57
- data/lib/twilio-ruby/rest/monitor/v1/event.rb +47 -50
- data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +8 -8
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +3 -3
- data/lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb +6 -6
- data/lib/twilio-ruby/rest/preview/trusted_comms/device.rb +1 -1
- data/lib/twilio-ruby/rest/preview/trusted_comms/phone_call.rb +55 -55
- data/lib/twilio-ruby/rest/pricing/v2/voice.rb +2 -2
- data/lib/twilio-ruby/rest/pricing/v2/voice/country.rb +4 -4
- data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +1 -1
- data/lib/twilio-ruby/rest/serverless.rb +2 -1
- data/lib/twilio-ruby/rest/serverless/v1.rb +1 -2
- data/lib/twilio-ruby/rest/serverless/v1/service.rb +27 -28
- data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +22 -22
- data/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +22 -22
- data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +25 -24
- data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +26 -24
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +21 -24
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +31 -31
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +35 -35
- data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +22 -22
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +22 -22
- data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +12 -12
- data/lib/twilio-ruby/rest/sync/v1/service/document.rb +7 -4
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +6 -3
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +15 -9
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +6 -3
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +15 -9
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +9 -6
- data/lib/twilio-ruby/rest/taskrouter.rb +2 -1
- data/lib/twilio-ruby/rest/taskrouter/v1.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +102 -95
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +52 -44
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +90 -81
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +152 -136
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +35 -29
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +96 -89
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +61 -61
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +27 -21
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +46 -46
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb +57 -64
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +98 -79
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +41 -39
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +39 -33
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +32 -31
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +16 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +42 -42
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +75 -72
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +59 -51
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +24 -18
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +54 -46
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +48 -46
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +17 -17
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +44 -42
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +24 -18
- data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +3 -3
- data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +1 -2
- data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +1 -2
- data/lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb +12 -12
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb +6 -6
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb +6 -6
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +2 -1
- data/lib/twilio-ruby/rest/verify/v2/service/verification_check.rb +2 -1
- data/lib/twilio-ruby/rest/video.rb +8 -8
- data/lib/twilio-ruby/rest/video/v1.rb +4 -7
- data/lib/twilio-ruby/rest/video/v1/composition.rb +89 -98
- data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +224 -195
- data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +34 -34
- data/lib/twilio-ruby/rest/video/v1/recording.rb +53 -55
- data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +32 -32
- data/lib/twilio-ruby/rest/video/v1/room.rb +71 -61
- data/lib/twilio-ruby/rest/video/v1/room/recording.rb +45 -33
- data/lib/twilio-ruby/rest/video/v1/room/room_participant.rb +56 -57
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_published_track.rb +25 -22
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribe_rule.rb +10 -10
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribed_track.rb +24 -23
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions.rb +1 -1
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +5 -5
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb +2 -2
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/integration/conversations/v1/conversation/message_spec.rb +58 -0
- 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
|
112
|
-
# @param [String] identity
|
113
|
-
# @param [String] customer_friendly_name
|
114
|
-
# @param [String] chat_friendly_name
|
115
|
-
# @param [String] chat_unique_name
|
116
|
-
# @param [String] 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
|
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
|
205
|
-
#
|
206
|
-
# @param [String] 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
|
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
|
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
|
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]
|
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
|
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
|
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
|
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
|
327
|
-
#
|
328
|
-
# @param [String] 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
|
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
|
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
|
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
|
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
|
32
|
-
# resource
|
33
|
-
# @param [String] inbound_request_url
|
34
|
-
#
|
35
|
-
# the
|
36
|
-
#
|
37
|
-
#
|
38
|
-
#
|
39
|
-
#
|
40
|
-
#
|
41
|
-
#
|
42
|
-
# @param [String] fallback_method The HTTP method
|
43
|
-
#
|
44
|
-
# @param [String] status_callback
|
45
|
-
#
|
46
|
-
#
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
50
|
-
#
|
51
|
-
#
|
52
|
-
#
|
53
|
-
#
|
54
|
-
#
|
55
|
-
#
|
56
|
-
#
|
57
|
-
#
|
58
|
-
#
|
59
|
-
# @param [
|
60
|
-
#
|
61
|
-
#
|
62
|
-
#
|
63
|
-
#
|
64
|
-
# @param [Boolean]
|
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
|
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
|
242
|
-
#
|
243
|
-
# @param [String]
|
244
|
-
#
|
245
|
-
#
|
246
|
-
#
|
247
|
-
# @param [
|
248
|
-
#
|
249
|
-
# @param [
|
250
|
-
#
|
251
|
-
#
|
252
|
-
# @param [
|
253
|
-
#
|
254
|
-
# @param [String]
|
255
|
-
#
|
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
|
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]
|
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]
|
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]
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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]
|
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]
|
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]
|
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]
|
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]
|
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]
|
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]
|
538
|
+
# @return [Boolean] Reserved
|
525
539
|
def synchronous_validation
|
526
540
|
@properties['synchronous_validation']
|
527
541
|
end
|
528
542
|
|
529
543
|
##
|
530
|
-
# @return [String]
|
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
|
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
|
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
|
550
|
-
#
|
551
|
-
# @param [String]
|
552
|
-
#
|
553
|
-
#
|
554
|
-
#
|
555
|
-
# @param [
|
556
|
-
#
|
557
|
-
# @param [
|
558
|
-
#
|
559
|
-
#
|
560
|
-
# @param [
|
561
|
-
#
|
562
|
-
# @param [String]
|
563
|
-
#
|
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(
|