twilio-ruby 5.31.2 → 5.31.3
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.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/CHANGES.md +31 -0
- data/CODE_OF_CONDUCT.md +73 -0
- data/ISSUE_TEMPLATE.md +13 -13
- data/LICENSE.md +1 -1
- data/PULL_REQUEST_TEMPLATE.md +31 -0
- data/README.md +3 -2
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +35 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +0 -14
- data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +359 -0
- data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +12 -6
- data/lib/twilio-ruby/rest/preview.rb +2 -9
- data/lib/twilio-ruby/rest/preview/bulk_exports.rb +2 -2
- data/lib/twilio-ruby/rest/preview/bulk_exports/export.rb +5 -5
- data/lib/twilio-ruby/rest/preview/bulk_exports/export/day.rb +5 -5
- data/lib/twilio-ruby/rest/preview/bulk_exports/export/job.rb +21 -0
- data/lib/twilio-ruby/rest/preview/bulk_exports/export_configuration.rb +21 -13
- data/lib/twilio-ruby/rest/studio/v2/flow.rb +5 -5
- data/lib/twilio-ruby/rest/studio/v2/flow_validate.rb +2 -2
- data/lib/twilio-ruby/rest/verify/v2/service.rb +19 -3
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +4 -1
- data/lib/twilio-ruby/twiml/voice_response.rb +9 -6
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/integration/api/v2010/account/call/notification_spec.rb +8 -44
- data/spec/integration/api/v2010/account/call/payment_spec.rb +135 -0
- data/spec/integration/api/v2010/account/call_spec.rb +20 -10
- data/spec/integration/preview/bulk_exports/export/job_spec.rb +3 -0
- data/spec/integration/studio/v2/flow_spec.rb +7 -3
- data/spec/integration/studio/v2/flow_validate_spec.rb +7 -3
- data/spec/integration/verify/v2/service/verification_check_spec.rb +26 -0
- data/spec/integration/verify/v2/service_spec.rb +4 -0
- metadata +7 -12
- data/lib/twilio-ruby/rest/preview/acc_security.rb +0 -43
- data/lib/twilio-ruby/rest/preview/acc_security/service.rb +0 -395
- data/lib/twilio-ruby/rest/preview/acc_security/service/verification.rb +0 -185
- data/lib/twilio-ruby/rest/preview/acc_security/service/verification_check.rb +0 -182
- data/spec/integration/preview/acc_security/service/verification_check_spec.rb +0 -52
- data/spec/integration/preview/acc_security/service/verification_spec.rb +0 -52
- data/spec/integration/preview/acc_security/service_spec.rb +0 -185
@@ -140,10 +140,12 @@ module Twilio
|
|
140
140
|
# `integration_type` is `task`. The default priority is `0`.
|
141
141
|
# @param [Boolean] integration_creation_on_message Whether to create a task when
|
142
142
|
# the first message arrives when `integration_type` is `task`. If `false`, the
|
143
|
-
# task is created with the channel.
|
143
|
+
# task is created with the channel. **Note** that does not apply when channel type
|
144
|
+
# is `web`. Setting the value to `true` for channel type `web` will result in
|
145
|
+
# misconfigured Flex Flow and no tasks will be created.
|
144
146
|
# @param [Boolean] long_lived Whether new channels are long-lived.
|
145
147
|
# @param [Boolean] janitor_enabled Boolean flag for enabling or disabling the
|
146
|
-
# Janitor
|
148
|
+
# Janitor.
|
147
149
|
# @param [String] integration_retry_count The number of times to retry the webhook
|
148
150
|
# if the first attempt fails. Can be an integer between 0 and 3, inclusive, and
|
149
151
|
# the default is 0.
|
@@ -270,10 +272,12 @@ module Twilio
|
|
270
272
|
# `integration_type` is `task`. The default priority is `0`.
|
271
273
|
# @param [Boolean] integration_creation_on_message Whether to create a task when
|
272
274
|
# the first message arrives when `integration_type` is `task`. If `false`, the
|
273
|
-
# task is created with the channel.
|
275
|
+
# task is created with the channel. **Note** that does not apply when channel type
|
276
|
+
# is `web`. Setting the value to `true` for channel type `web` will result in
|
277
|
+
# misconfigured Flex Flow and no tasks will be created.
|
274
278
|
# @param [Boolean] long_lived Whether new channels created are long-lived.
|
275
279
|
# @param [Boolean] janitor_enabled Boolean flag for enabling or disabling the
|
276
|
-
# Janitor
|
280
|
+
# Janitor.
|
277
281
|
# @param [String] integration_retry_count The number of times to retry the webhook
|
278
282
|
# if the first attempt fails. Can be an integer between 0 and 3, inclusive, and
|
279
283
|
# the default is 0.
|
@@ -492,10 +496,12 @@ module Twilio
|
|
492
496
|
# `integration_type` is `task`. The default priority is `0`.
|
493
497
|
# @param [Boolean] integration_creation_on_message Whether to create a task when
|
494
498
|
# the first message arrives when `integration_type` is `task`. If `false`, the
|
495
|
-
# task is created with the channel.
|
499
|
+
# task is created with the channel. **Note** that does not apply when channel type
|
500
|
+
# is `web`. Setting the value to `true` for channel type `web` will result in
|
501
|
+
# misconfigured Flex Flow and no tasks will be created.
|
496
502
|
# @param [Boolean] long_lived Whether new channels created are long-lived.
|
497
503
|
# @param [Boolean] janitor_enabled Boolean flag for enabling or disabling the
|
498
|
-
# Janitor
|
504
|
+
# Janitor.
|
499
505
|
# @param [String] integration_retry_count The number of times to retry the webhook
|
500
506
|
# if the first attempt fails. Can be an integer between 0 and 3, inclusive, and
|
501
507
|
# the default is 0.
|
@@ -23,7 +23,6 @@ module Twilio
|
|
23
23
|
@deployed_devices = nil
|
24
24
|
@hosted_numbers = nil
|
25
25
|
@marketplace = nil
|
26
|
-
@acc_security = nil
|
27
26
|
@sync = nil
|
28
27
|
@understand = nil
|
29
28
|
@wireless = nil
|
@@ -54,12 +53,6 @@ module Twilio
|
|
54
53
|
@marketplace ||= Marketplace.new self
|
55
54
|
end
|
56
55
|
|
57
|
-
##
|
58
|
-
# Version acc_security of preview
|
59
|
-
def acc_security
|
60
|
-
@acc_security ||= AccSecurity.new self
|
61
|
-
end
|
62
|
-
|
63
56
|
##
|
64
57
|
# Version sync of preview
|
65
58
|
def sync
|
@@ -85,7 +78,7 @@ module Twilio
|
|
85
78
|
end
|
86
79
|
|
87
80
|
##
|
88
|
-
# @param [String] resource_type The
|
81
|
+
# @param [String] resource_type The type of communication – Messages, Calls
|
89
82
|
# @return [Twilio::REST::Preview::BulkExports::ExportInstance] if resource_type was passed.
|
90
83
|
# @return [Twilio::REST::Preview::BulkExports::ExportList]
|
91
84
|
def exports(resource_type=:unset)
|
@@ -93,7 +86,7 @@ module Twilio
|
|
93
86
|
end
|
94
87
|
|
95
88
|
##
|
96
|
-
# @param [String] resource_type The
|
89
|
+
# @param [String] resource_type The type of communication – Messages, Calls
|
97
90
|
# @return [Twilio::REST::Preview::BulkExports::ExportConfigurationInstance] if resource_type was passed.
|
98
91
|
# @return [Twilio::REST::Preview::BulkExports::ExportConfigurationList]
|
99
92
|
def export_configuration(resource_type=:unset)
|
@@ -20,7 +20,7 @@ module Twilio
|
|
20
20
|
end
|
21
21
|
|
22
22
|
##
|
23
|
-
# @param [String] resource_type The
|
23
|
+
# @param [String] resource_type The type of communication – Messages, Calls
|
24
24
|
# @return [Twilio::REST::Preview::BulkExports::ExportContext] if resource_type was passed.
|
25
25
|
# @return [Twilio::REST::Preview::BulkExports::ExportList]
|
26
26
|
def exports(resource_type=:unset)
|
@@ -34,7 +34,7 @@ module Twilio
|
|
34
34
|
end
|
35
35
|
|
36
36
|
##
|
37
|
-
# @param [String] resource_type The
|
37
|
+
# @param [String] resource_type The type of communication – Messages, Calls
|
38
38
|
# @return [Twilio::REST::Preview::BulkExports::ExportConfigurationContext] if resource_type was passed.
|
39
39
|
# @return [Twilio::REST::Preview::BulkExports::ExportConfigurationList]
|
40
40
|
def export_configuration(resource_type=:unset)
|
@@ -86,7 +86,7 @@ module Twilio
|
|
86
86
|
##
|
87
87
|
# Initialize the ExportContext
|
88
88
|
# @param [Version] version Version that contains the resource
|
89
|
-
# @param [String] resource_type The
|
89
|
+
# @param [String] resource_type The type of communication – Messages, Calls
|
90
90
|
# @return [ExportContext] ExportContext
|
91
91
|
def initialize(version, resource_type)
|
92
92
|
super(version)
|
@@ -161,7 +161,7 @@ module Twilio
|
|
161
161
|
# Initialize the ExportInstance
|
162
162
|
# @param [Version] version Version that contains the resource
|
163
163
|
# @param [Hash] payload payload that contains response from Twilio
|
164
|
-
# @param [String] resource_type The
|
164
|
+
# @param [String] resource_type The type of communication – Messages, Calls
|
165
165
|
# @return [ExportInstance] ExportInstance
|
166
166
|
def initialize(version, payload, resource_type: nil)
|
167
167
|
super(version)
|
@@ -190,19 +190,19 @@ module Twilio
|
|
190
190
|
end
|
191
191
|
|
192
192
|
##
|
193
|
-
# @return [String] The
|
193
|
+
# @return [String] The type of communication – Messages, Calls
|
194
194
|
def resource_type
|
195
195
|
@properties['resource_type']
|
196
196
|
end
|
197
197
|
|
198
198
|
##
|
199
|
-
# @return [String] The
|
199
|
+
# @return [String] The URL of this resource.
|
200
200
|
def url
|
201
201
|
@properties['url']
|
202
202
|
end
|
203
203
|
|
204
204
|
##
|
205
|
-
# @return [String]
|
205
|
+
# @return [String] Nested resource URLs.
|
206
206
|
def links
|
207
207
|
@properties['links']
|
208
208
|
end
|
@@ -17,7 +17,7 @@ module Twilio
|
|
17
17
|
##
|
18
18
|
# Initialize the DayList
|
19
19
|
# @param [Version] version Version that contains the resource
|
20
|
-
# @param [String] resource_type The
|
20
|
+
# @param [String] resource_type The type of communication – Messages, Calls
|
21
21
|
# @return [DayList] DayList
|
22
22
|
def initialize(version, resource_type: nil)
|
23
23
|
super(version)
|
@@ -154,7 +154,7 @@ module Twilio
|
|
154
154
|
# Initialize the DayInstance
|
155
155
|
# @param [Version] version Version that contains the resource
|
156
156
|
# @param [Hash] payload payload that contains response from Twilio
|
157
|
-
# @param [String] resource_type The
|
157
|
+
# @param [String] resource_type The type of communication – Messages, Calls
|
158
158
|
# @return [DayInstance] DayInstance
|
159
159
|
def initialize(version, payload, resource_type: nil)
|
160
160
|
super(version)
|
@@ -175,19 +175,19 @@ module Twilio
|
|
175
175
|
end
|
176
176
|
|
177
177
|
##
|
178
|
-
# @return [String] The
|
178
|
+
# @return [String] The date of the data in the file
|
179
179
|
def day
|
180
180
|
@properties['day']
|
181
181
|
end
|
182
182
|
|
183
183
|
##
|
184
|
-
# @return [String]
|
184
|
+
# @return [String] Size of the file in bytes
|
185
185
|
def size
|
186
186
|
@properties['size']
|
187
187
|
end
|
188
188
|
|
189
189
|
##
|
190
|
-
# @return [String] The
|
190
|
+
# @return [String] The type of communication – Messages, Calls
|
191
191
|
def resource_type
|
192
192
|
@properties['resource_type']
|
193
193
|
end
|
@@ -136,6 +136,9 @@ module Twilio
|
|
136
136
|
'start_day' => payload['start_day'],
|
137
137
|
'end_day' => payload['end_day'],
|
138
138
|
'job_sid' => payload['job_sid'],
|
139
|
+
'webhook_url' => payload['webhook_url'],
|
140
|
+
'webhook_method' => payload['webhook_method'],
|
141
|
+
'email' => payload['email'],
|
139
142
|
'url' => payload['url'],
|
140
143
|
}
|
141
144
|
|
@@ -191,6 +194,24 @@ module Twilio
|
|
191
194
|
@properties['job_sid']
|
192
195
|
end
|
193
196
|
|
197
|
+
##
|
198
|
+
# @return [String] The optional webhook url called on completion
|
199
|
+
def webhook_url
|
200
|
+
@properties['webhook_url']
|
201
|
+
end
|
202
|
+
|
203
|
+
##
|
204
|
+
# @return [String] This is the method used to call the webhook
|
205
|
+
def webhook_method
|
206
|
+
@properties['webhook_method']
|
207
|
+
end
|
208
|
+
|
209
|
+
##
|
210
|
+
# @return [String] The optional email to send the completion notification to
|
211
|
+
def email
|
212
|
+
@properties['email']
|
213
|
+
end
|
214
|
+
|
194
215
|
##
|
195
216
|
# @return [String] The url
|
196
217
|
def url
|
@@ -68,7 +68,7 @@ module Twilio
|
|
68
68
|
##
|
69
69
|
# Initialize the ExportConfigurationContext
|
70
70
|
# @param [Version] version Version that contains the resource
|
71
|
-
# @param [String] resource_type The
|
71
|
+
# @param [String] resource_type The type of communication – Messages, Calls
|
72
72
|
# @return [ExportConfigurationContext] ExportConfigurationContext
|
73
73
|
def initialize(version, resource_type)
|
74
74
|
super(version)
|
@@ -95,9 +95,13 @@ module Twilio
|
|
95
95
|
|
96
96
|
##
|
97
97
|
# Update the ExportConfigurationInstance
|
98
|
-
# @param [Boolean] enabled
|
99
|
-
#
|
100
|
-
# @param [String]
|
98
|
+
# @param [Boolean] enabled If true, Twilio will automatically generate every day's
|
99
|
+
# file when the day is over.
|
100
|
+
# @param [String] webhook_url Stores the URL destination for the method specified
|
101
|
+
# in webhook_method.
|
102
|
+
# @param [String] webhook_method Sets whether Twilio should call a webhook URL
|
103
|
+
# when the automatic generation is complete, using GET or POST. The actual
|
104
|
+
# destination is set in the webhook_url
|
101
105
|
# @return [ExportConfigurationInstance] Updated ExportConfigurationInstance
|
102
106
|
def update(enabled: :unset, webhook_url: :unset, webhook_method: :unset)
|
103
107
|
data = Twilio::Values.of({
|
@@ -137,7 +141,7 @@ module Twilio
|
|
137
141
|
# Initialize the ExportConfigurationInstance
|
138
142
|
# @param [Version] version Version that contains the resource
|
139
143
|
# @param [Hash] payload payload that contains response from Twilio
|
140
|
-
# @param [String] resource_type The
|
144
|
+
# @param [String] resource_type The type of communication – Messages, Calls
|
141
145
|
# @return [ExportConfigurationInstance] ExportConfigurationInstance
|
142
146
|
def initialize(version, payload, resource_type: nil)
|
143
147
|
super(version)
|
@@ -168,31 +172,31 @@ module Twilio
|
|
168
172
|
end
|
169
173
|
|
170
174
|
##
|
171
|
-
# @return [Boolean]
|
175
|
+
# @return [Boolean] Whether files are automatically generated
|
172
176
|
def enabled
|
173
177
|
@properties['enabled']
|
174
178
|
end
|
175
179
|
|
176
180
|
##
|
177
|
-
# @return [String]
|
181
|
+
# @return [String] URL targeted at export
|
178
182
|
def webhook_url
|
179
183
|
@properties['webhook_url']
|
180
184
|
end
|
181
185
|
|
182
186
|
##
|
183
|
-
# @return [String]
|
187
|
+
# @return [String] Whether to GET or POST to the webhook url
|
184
188
|
def webhook_method
|
185
189
|
@properties['webhook_method']
|
186
190
|
end
|
187
191
|
|
188
192
|
##
|
189
|
-
# @return [String] The
|
193
|
+
# @return [String] The type of communication – Messages, Calls
|
190
194
|
def resource_type
|
191
195
|
@properties['resource_type']
|
192
196
|
end
|
193
197
|
|
194
198
|
##
|
195
|
-
# @return [String] The
|
199
|
+
# @return [String] The URL of this resource.
|
196
200
|
def url
|
197
201
|
@properties['url']
|
198
202
|
end
|
@@ -206,9 +210,13 @@ module Twilio
|
|
206
210
|
|
207
211
|
##
|
208
212
|
# Update the ExportConfigurationInstance
|
209
|
-
# @param [Boolean] enabled
|
210
|
-
#
|
211
|
-
# @param [String]
|
213
|
+
# @param [Boolean] enabled If true, Twilio will automatically generate every day's
|
214
|
+
# file when the day is over.
|
215
|
+
# @param [String] webhook_url Stores the URL destination for the method specified
|
216
|
+
# in webhook_method.
|
217
|
+
# @param [String] webhook_method Sets whether Twilio should call a webhook URL
|
218
|
+
# when the automatic generation is complete, using GET or POST. The actual
|
219
|
+
# destination is set in the webhook_url
|
212
220
|
# @return [ExportConfigurationInstance] Updated ExportConfigurationInstance
|
213
221
|
def update(enabled: :unset, webhook_url: :unset, webhook_method: :unset)
|
214
222
|
context.update(enabled: enabled, webhook_url: webhook_url, webhook_method: webhook_method, )
|
@@ -31,14 +31,14 @@ module Twilio
|
|
31
31
|
# @param [String] friendly_name The string that you assigned to describe the Flow.
|
32
32
|
# @param [flow.Status] status The status of the Flow. Can be: `draft` or
|
33
33
|
# `published`.
|
34
|
-
# @param [
|
34
|
+
# @param [Hash] definition JSON representation of flow definition.
|
35
35
|
# @param [String] commit_message Description on change made in the revision.
|
36
36
|
# @return [FlowInstance] Newly created FlowInstance
|
37
37
|
def create(friendly_name: nil, status: nil, definition: nil, commit_message: :unset)
|
38
38
|
data = Twilio::Values.of({
|
39
39
|
'FriendlyName' => friendly_name,
|
40
40
|
'Status' => status,
|
41
|
-
'Definition' => definition,
|
41
|
+
'Definition' => Twilio.serialize_object(definition),
|
42
42
|
'CommitMessage' => commit_message,
|
43
43
|
})
|
44
44
|
|
@@ -195,14 +195,14 @@ module Twilio
|
|
195
195
|
# @param [flow.Status] status The status of the Flow. Can be: `draft` or
|
196
196
|
# `published`.
|
197
197
|
# @param [String] friendly_name The string that you assigned to describe the Flow.
|
198
|
-
# @param [
|
198
|
+
# @param [Hash] definition JSON representation of flow definition.
|
199
199
|
# @param [String] commit_message Description on change made in the revision.
|
200
200
|
# @return [FlowInstance] Updated FlowInstance
|
201
201
|
def update(status: nil, friendly_name: :unset, definition: :unset, commit_message: :unset)
|
202
202
|
data = Twilio::Values.of({
|
203
203
|
'Status' => status,
|
204
204
|
'FriendlyName' => friendly_name,
|
205
|
-
'Definition' => definition,
|
205
|
+
'Definition' => Twilio.serialize_object(definition),
|
206
206
|
'CommitMessage' => commit_message,
|
207
207
|
})
|
208
208
|
|
@@ -398,7 +398,7 @@ module Twilio
|
|
398
398
|
# @param [flow.Status] status The status of the Flow. Can be: `draft` or
|
399
399
|
# `published`.
|
400
400
|
# @param [String] friendly_name The string that you assigned to describe the Flow.
|
401
|
-
# @param [
|
401
|
+
# @param [Hash] definition JSON representation of flow definition.
|
402
402
|
# @param [String] commit_message Description on change made in the revision.
|
403
403
|
# @return [FlowInstance] Updated FlowInstance
|
404
404
|
def update(status: nil, friendly_name: :unset, definition: :unset, commit_message: :unset)
|
@@ -29,14 +29,14 @@ module Twilio
|
|
29
29
|
# Update the FlowValidateInstance
|
30
30
|
# @param [String] friendly_name The friendly_name
|
31
31
|
# @param [flow_validate.Status] status The status
|
32
|
-
# @param [
|
32
|
+
# @param [Hash] definition The definition
|
33
33
|
# @param [String] commit_message The commit_message
|
34
34
|
# @return [FlowValidateInstance] Updated FlowValidateInstance
|
35
35
|
def update(friendly_name: nil, status: nil, definition: nil, commit_message: :unset)
|
36
36
|
data = Twilio::Values.of({
|
37
37
|
'FriendlyName' => friendly_name,
|
38
38
|
'Status' => status,
|
39
|
-
'Definition' => definition,
|
39
|
+
'Definition' => Twilio.serialize_object(definition),
|
40
40
|
'CommitMessage' => commit_message,
|
41
41
|
})
|
42
42
|
|
@@ -41,8 +41,10 @@ module Twilio
|
|
41
41
|
# use in phone calls. Applies only to TTS languages.
|
42
42
|
# @param [Boolean] psd2_enabled Whether to pass PSD2 transaction parameters when
|
43
43
|
# starting a verification.
|
44
|
+
# @param [Boolean] do_not_share_warning_enabled Whether to add a privacy warning
|
45
|
+
# at the end of an SMS. **Disabled by default and applies only for SMS.**
|
44
46
|
# @return [ServiceInstance] Newly created ServiceInstance
|
45
|
-
def create(friendly_name: nil, code_length: :unset, lookup_enabled: :unset, skip_sms_to_landlines: :unset, dtmf_input_required: :unset, tts_name: :unset, psd2_enabled: :unset)
|
47
|
+
def create(friendly_name: nil, code_length: :unset, lookup_enabled: :unset, skip_sms_to_landlines: :unset, dtmf_input_required: :unset, tts_name: :unset, psd2_enabled: :unset, do_not_share_warning_enabled: :unset)
|
46
48
|
data = Twilio::Values.of({
|
47
49
|
'FriendlyName' => friendly_name,
|
48
50
|
'CodeLength' => code_length,
|
@@ -51,6 +53,7 @@ module Twilio
|
|
51
53
|
'DtmfInputRequired' => dtmf_input_required,
|
52
54
|
'TtsName' => tts_name,
|
53
55
|
'Psd2Enabled' => psd2_enabled,
|
56
|
+
'DoNotShareWarningEnabled' => do_not_share_warning_enabled,
|
54
57
|
})
|
55
58
|
|
56
59
|
payload = @version.create(
|
@@ -240,8 +243,10 @@ module Twilio
|
|
240
243
|
# use in phone calls. Applies only to TTS languages.
|
241
244
|
# @param [Boolean] psd2_enabled Whether to pass PSD2 transaction parameters when
|
242
245
|
# starting a verification.
|
246
|
+
# @param [Boolean] do_not_share_warning_enabled Whether to add a privacy warning
|
247
|
+
# at the end of an SMS. **Disabled by default and applies only for SMS.**
|
243
248
|
# @return [ServiceInstance] Updated ServiceInstance
|
244
|
-
def update(friendly_name: :unset, code_length: :unset, lookup_enabled: :unset, skip_sms_to_landlines: :unset, dtmf_input_required: :unset, tts_name: :unset, psd2_enabled: :unset)
|
249
|
+
def update(friendly_name: :unset, code_length: :unset, lookup_enabled: :unset, skip_sms_to_landlines: :unset, dtmf_input_required: :unset, tts_name: :unset, psd2_enabled: :unset, do_not_share_warning_enabled: :unset)
|
245
250
|
data = Twilio::Values.of({
|
246
251
|
'FriendlyName' => friendly_name,
|
247
252
|
'CodeLength' => code_length,
|
@@ -250,6 +255,7 @@ module Twilio
|
|
250
255
|
'DtmfInputRequired' => dtmf_input_required,
|
251
256
|
'TtsName' => tts_name,
|
252
257
|
'Psd2Enabled' => psd2_enabled,
|
258
|
+
'DoNotShareWarningEnabled' => do_not_share_warning_enabled,
|
253
259
|
})
|
254
260
|
|
255
261
|
payload = @version.update(
|
@@ -364,6 +370,7 @@ module Twilio
|
|
364
370
|
'skip_sms_to_landlines' => payload['skip_sms_to_landlines'],
|
365
371
|
'dtmf_input_required' => payload['dtmf_input_required'],
|
366
372
|
'tts_name' => payload['tts_name'],
|
373
|
+
'do_not_share_warning_enabled' => payload['do_not_share_warning_enabled'],
|
367
374
|
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
368
375
|
'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
|
369
376
|
'url' => payload['url'],
|
@@ -440,6 +447,12 @@ module Twilio
|
|
440
447
|
@properties['tts_name']
|
441
448
|
end
|
442
449
|
|
450
|
+
##
|
451
|
+
# @return [Boolean] Whether to add a privacy warning at the end of an SMS.
|
452
|
+
def do_not_share_warning_enabled
|
453
|
+
@properties['do_not_share_warning_enabled']
|
454
|
+
end
|
455
|
+
|
443
456
|
##
|
444
457
|
# @return [Time] The RFC 2822 date and time in GMT when the resource was created
|
445
458
|
def date_created
|
@@ -495,8 +508,10 @@ module Twilio
|
|
495
508
|
# use in phone calls. Applies only to TTS languages.
|
496
509
|
# @param [Boolean] psd2_enabled Whether to pass PSD2 transaction parameters when
|
497
510
|
# starting a verification.
|
511
|
+
# @param [Boolean] do_not_share_warning_enabled Whether to add a privacy warning
|
512
|
+
# at the end of an SMS. **Disabled by default and applies only for SMS.**
|
498
513
|
# @return [ServiceInstance] Updated ServiceInstance
|
499
|
-
def update(friendly_name: :unset, code_length: :unset, lookup_enabled: :unset, skip_sms_to_landlines: :unset, dtmf_input_required: :unset, tts_name: :unset, psd2_enabled: :unset)
|
514
|
+
def update(friendly_name: :unset, code_length: :unset, lookup_enabled: :unset, skip_sms_to_landlines: :unset, dtmf_input_required: :unset, tts_name: :unset, psd2_enabled: :unset, do_not_share_warning_enabled: :unset)
|
500
515
|
context.update(
|
501
516
|
friendly_name: friendly_name,
|
502
517
|
code_length: code_length,
|
@@ -505,6 +520,7 @@ module Twilio
|
|
505
520
|
dtmf_input_required: dtmf_input_required,
|
506
521
|
tts_name: tts_name,
|
507
522
|
psd2_enabled: psd2_enabled,
|
523
|
+
do_not_share_warning_enabled: do_not_share_warning_enabled,
|
508
524
|
)
|
509
525
|
end
|
510
526
|
|
@@ -56,8 +56,10 @@ module Twilio
|
|
56
56
|
# multiple Rate Limit values in each request.
|
57
57
|
# @param [Hash] channel_configuration `email` channel configuration in json
|
58
58
|
# format. Must include 'from' and 'from_name'.
|
59
|
+
# @param [String] app_hash Your [App
|
60
|
+
# Hash](https://developers.google.com/identity/sms-retriever/verify#computing_your_apps_hash_string) to be included at the end of an SMS. **Only applies for SMS.**
|
59
61
|
# @return [VerificationInstance] Newly created VerificationInstance
|
60
|
-
def create(to: nil, channel: nil, custom_message: :unset, send_digits: :unset, locale: :unset, custom_code: :unset, amount: :unset, payee: :unset, rate_limits: :unset, channel_configuration: :unset)
|
62
|
+
def create(to: nil, channel: nil, custom_message: :unset, send_digits: :unset, locale: :unset, custom_code: :unset, amount: :unset, payee: :unset, rate_limits: :unset, channel_configuration: :unset, app_hash: :unset)
|
61
63
|
data = Twilio::Values.of({
|
62
64
|
'To' => to,
|
63
65
|
'Channel' => channel,
|
@@ -69,6 +71,7 @@ module Twilio
|
|
69
71
|
'Payee' => payee,
|
70
72
|
'RateLimits' => Twilio.serialize_object(rate_limits),
|
71
73
|
'ChannelConfiguration' => Twilio.serialize_object(channel_configuration),
|
74
|
+
'AppHash' => app_hash,
|
72
75
|
})
|
73
76
|
|
74
77
|
payload = @version.create(
|