twilio-ruby 6.8.1 → 6.8.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +29 -0
  3. data/README.md +2 -2
  4. data/lib/twilio-ruby/rest/api/v2010/account/message.rb +4 -4
  5. data/lib/twilio-ruby/rest/client.rb +0 -5
  6. data/lib/twilio-ruby/rest/content/v1/content.rb +1 -1
  7. data/lib/twilio-ruby/rest/content/v1/content_and_approvals.rb +1 -1
  8. data/lib/twilio-ruby/rest/content/v1/legacy_content.rb +1 -1
  9. data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +2 -2
  10. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +2 -2
  11. data/lib/twilio-ruby/rest/insights/v1/call/annotation.rb +1 -1
  12. data/lib/twilio-ruby/rest/intelligence/v2/service.rb +4 -4
  13. data/lib/twilio-ruby/rest/intelligence/v2/transcript.rb +1 -1
  14. data/lib/twilio-ruby/rest/messaging/v1/service/channel_sender.rb +1 -1
  15. data/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb +15 -2
  16. data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +1 -1
  17. data/lib/twilio-ruby/rest/notify/v1/service.rb +4 -4
  18. data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +1 -1
  19. data/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb +1 -1
  20. data/lib/twilio-ruby/rest/supersim/v1/esim_profile.rb +4 -4
  21. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +4 -4
  22. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +8 -0
  23. data/lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb +12 -90
  24. data/lib/twilio-ruby/rest/trusthub/v1.rb +2 -11
  25. data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +4 -1
  26. data/lib/twilio-ruby/rest/verify/v2/service.rb +19 -3
  27. data/lib/twilio-ruby/rest/verify/v2/verification_attempt.rb +1 -1
  28. data/lib/twilio-ruby/version.rb +1 -1
  29. metadata +2 -10
  30. data/lib/twilio-ruby/rest/oauth/v1/device_code.rb +0 -171
  31. data/lib/twilio-ruby/rest/oauth/v1/oauth.rb +0 -185
  32. data/lib/twilio-ruby/rest/oauth/v1/openid_discovery.rb +0 -262
  33. data/lib/twilio-ruby/rest/oauth/v1/token.rb +0 -179
  34. data/lib/twilio-ruby/rest/oauth/v1/user_info.rb +0 -213
  35. data/lib/twilio-ruby/rest/oauth/v1.rb +0 -64
  36. data/lib/twilio-ruby/rest/oauth.rb +0 -33
  37. data/lib/twilio-ruby/rest/oauth_base.rb +0 -38
@@ -31,14 +31,17 @@ module Twilio
31
31
  end
32
32
  ##
33
33
  # Create the ComplianceTollfreeInquiriesInstance
34
- # @param [String] did The Tollfree phone number to be verified
34
+ # @param [String] tollfree_phone_number The Tollfree phone number to be verified
35
+ # @param [String] notification_email The notification email to be triggered when verification status is changed
35
36
  # @return [ComplianceTollfreeInquiriesInstance] Created ComplianceTollfreeInquiriesInstance
36
37
  def create(
37
- did: nil
38
+ tollfree_phone_number: nil,
39
+ notification_email: nil
38
40
  )
39
41
 
40
42
  data = Twilio::Values.of({
41
- 'Did' => did,
43
+ 'TollfreePhoneNumber' => tollfree_phone_number,
44
+ 'NotificationEmail' => notification_email,
42
45
  })
43
46
 
44
47
  payload = @version.create('POST', @uri, data: data)
@@ -57,58 +60,6 @@ module Twilio
57
60
  end
58
61
  end
59
62
 
60
-
61
- class ComplianceTollfreeInquiriesContext < InstanceContext
62
- ##
63
- # Initialize the ComplianceTollfreeInquiriesContext
64
- # @param [Version] version Version that contains the resource
65
- # @param [String] tollfree_id The unique TolfreeId matching the Compliance Tollfree Verification Inquiry that should be resumed or resubmitted. This value will have been returned by the initial Compliance Tollfree Verification Inquiry creation call.
66
- # @return [ComplianceTollfreeInquiriesContext] ComplianceTollfreeInquiriesContext
67
- def initialize(version, tollfree_id)
68
- super(version)
69
-
70
- # Path Solution
71
- @solution = { tollfree_id: tollfree_id, }
72
- @uri = "/ComplianceInquiries/Tollfree/#{@solution[:tollfree_id]}/Initialize"
73
-
74
-
75
- end
76
- ##
77
- # Update the ComplianceTollfreeInquiriesInstance
78
- # @param [String] did The Tollfree phone number to be verified
79
- # @return [ComplianceTollfreeInquiriesInstance] Updated ComplianceTollfreeInquiriesInstance
80
- def update(
81
- did: nil
82
- )
83
-
84
- data = Twilio::Values.of({
85
- 'Did' => did,
86
- })
87
-
88
- payload = @version.update('POST', @uri, data: data)
89
- ComplianceTollfreeInquiriesInstance.new(
90
- @version,
91
- payload,
92
- tollfree_id: @solution[:tollfree_id],
93
- )
94
- end
95
-
96
-
97
- ##
98
- # Provide a user friendly representation
99
- def to_s
100
- context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
101
- "#<Twilio.Trusthub.V1.ComplianceTollfreeInquiriesContext #{context}>"
102
- end
103
-
104
- ##
105
- # Provide a detailed, user friendly representation
106
- def inspect
107
- context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
108
- "#<Twilio.Trusthub.V1.ComplianceTollfreeInquiriesContext #{context}>"
109
- end
110
- end
111
-
112
63
  class ComplianceTollfreeInquiriesPage < Page
113
64
  ##
114
65
  # Initialize the ComplianceTollfreeInquiriesPage
@@ -147,32 +98,18 @@ module Twilio
147
98
  # resource.
148
99
  # @param [String] sid The SID of the Call resource to fetch.
149
100
  # @return [ComplianceTollfreeInquiriesInstance] ComplianceTollfreeInquiriesInstance
150
- def initialize(version, payload , tollfree_id: nil)
101
+ def initialize(version, payload )
151
102
  super(version)
152
103
 
153
104
  # Marshaled Properties
154
105
  @properties = {
155
106
  'inquiry_id' => payload['inquiry_id'],
156
107
  'inquiry_session_token' => payload['inquiry_session_token'],
157
- 'tollfree_id' => payload['tollfree_id'],
108
+ 'registration_id' => payload['registration_id'],
158
109
  'url' => payload['url'],
159
110
  }
160
-
161
- # Context
162
- @instance_context = nil
163
- @params = { 'tollfree_id' => tollfree_id || @properties['tollfree_id'] , }
164
111
  end
165
112
 
166
- ##
167
- # Generate an instance context for the instance, the context is capable of
168
- # performing various actions. All instance actions are proxied to the context
169
- # @return [ComplianceTollfreeInquiriesContext] CallContext for this CallInstance
170
- def context
171
- unless @instance_context
172
- @instance_context = ComplianceTollfreeInquiriesContext.new(@version , @params['tollfree_id'])
173
- end
174
- @instance_context
175
- end
176
113
 
177
114
  ##
178
115
  # @return [String] The unique ID used to start an embedded compliance registration session.
@@ -188,8 +125,8 @@ module Twilio
188
125
 
189
126
  ##
190
127
  # @return [String] The TolfreeId matching the Tollfree Profile that should be resumed or resubmitted for editing.
191
- def tollfree_id
192
- @properties['tollfree_id']
128
+ def registration_id
129
+ @properties['registration_id']
193
130
  end
194
131
 
195
132
  ##
@@ -198,31 +135,16 @@ module Twilio
198
135
  @properties['url']
199
136
  end
200
137
 
201
- ##
202
- # Update the ComplianceTollfreeInquiriesInstance
203
- # @param [String] did The Tollfree phone number to be verified
204
- # @return [ComplianceTollfreeInquiriesInstance] Updated ComplianceTollfreeInquiriesInstance
205
- def update(
206
- did: nil
207
- )
208
-
209
- context.update(
210
- did: did,
211
- )
212
- end
213
-
214
138
  ##
215
139
  # Provide a user friendly representation
216
140
  def to_s
217
- values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
218
- "<Twilio.Trusthub.V1.ComplianceTollfreeInquiriesInstance #{values}>"
141
+ "<Twilio.Trusthub.V1.ComplianceTollfreeInquiriesInstance>"
219
142
  end
220
143
 
221
144
  ##
222
145
  # Provide a detailed, user friendly representation
223
146
  def inspect
224
- values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
225
- "<Twilio.Trusthub.V1.ComplianceTollfreeInquiriesInstance #{values}>"
147
+ "<Twilio.Trusthub.V1.ComplianceTollfreeInquiriesInstance>"
226
148
  end
227
149
  end
228
150
 
@@ -47,18 +47,9 @@ module Twilio
47
47
  end
48
48
  end
49
49
  ##
50
- # @param [String] tollfree_id The unique TolfreeId matching the Compliance Tollfree Verification Inquiry that should be resumed or resubmitted. This value will have been returned by the initial Compliance Tollfree Verification Inquiry creation call.
51
- # @return [Twilio::REST::Trusthub::V1::ComplianceTollfreeInquiriesContext] if tollfreeId was passed.
52
50
  # @return [Twilio::REST::Trusthub::V1::ComplianceTollfreeInquiriesList]
53
- def compliance_tollfree_inquiries(tollfree_id=:unset)
54
- if tollfree_id.nil?
55
- raise ArgumentError, 'tollfree_id cannot be nil'
56
- end
57
- if tollfree_id == :unset
58
- @compliance_tollfree_inquiries ||= ComplianceTollfreeInquiriesList.new self
59
- else
60
- ComplianceTollfreeInquiriesContext.new(self, tollfree_id)
61
- end
51
+ def compliance_tollfree_inquiries
52
+ @compliance_tollfree_inquiries ||= ComplianceTollfreeInquiriesList.new self
62
53
  end
63
54
  ##
64
55
  # @param [String] sid The unique string that we created to identify the Customer-Profile resource.
@@ -49,6 +49,7 @@ module Twilio
49
49
  # @param [String] template_custom_substitutions A stringified JSON object in which the keys are the template's special variables and the values are the variables substitutions.
50
50
  # @param [String] device_ip Strongly encouraged if using the auto channel. The IP address of the client's device. If provided, it has to be a valid IPv4 or IPv6 address.
51
51
  # @param [RiskCheck] risk_check
52
+ # @param [String] tags A string containing a JSON map of key value pairs of tags to be recorded as metadata for the message. The object may contain up to 10 tags. Keys and values can each be up to 128 characters in length.
52
53
  # @return [VerificationInstance] Created VerificationInstance
53
54
  def create(
54
55
  to: nil,
@@ -66,7 +67,8 @@ module Twilio
66
67
  template_sid: :unset,
67
68
  template_custom_substitutions: :unset,
68
69
  device_ip: :unset,
69
- risk_check: :unset
70
+ risk_check: :unset,
71
+ tags: :unset
70
72
  )
71
73
 
72
74
  data = Twilio::Values.of({
@@ -86,6 +88,7 @@ module Twilio
86
88
  'TemplateCustomSubstitutions' => template_custom_substitutions,
87
89
  'DeviceIp' => device_ip,
88
90
  'RiskCheck' => risk_check,
91
+ 'Tags' => tags,
89
92
  })
90
93
 
91
94
  payload = @version.create('POST', @uri, data: data)
@@ -48,6 +48,7 @@ module Twilio
48
48
  # @param [String] totp_code_length Optional configuration for the TOTP factors. Number of digits for generated TOTP codes. Must be between 3 and 8, inclusive. Defaults to 6
49
49
  # @param [String] totp_skew Optional configuration for the TOTP factors. The number of time-steps, past and future, that are valid for validation of TOTP codes. Must be between 0 and 2, inclusive. Defaults to 1
50
50
  # @param [String] default_template_sid The default message [template](https://www.twilio.com/docs/verify/api/templates). Will be used for all SMS verifications unless explicitly overriden. SMS channel only.
51
+ # @param [Boolean] verify_event_subscription_enabled Whether to allow verifications from the service to reach the stream-events sinks if configured
51
52
  # @return [ServiceInstance] Created ServiceInstance
52
53
  def create(
53
54
  friendly_name: nil,
@@ -66,7 +67,8 @@ module Twilio
66
67
  totp_time_step: :unset,
67
68
  totp_code_length: :unset,
68
69
  totp_skew: :unset,
69
- default_template_sid: :unset
70
+ default_template_sid: :unset,
71
+ verify_event_subscription_enabled: :unset
70
72
  )
71
73
 
72
74
  data = Twilio::Values.of({
@@ -87,6 +89,7 @@ module Twilio
87
89
  'Totp.CodeLength' => totp_code_length,
88
90
  'Totp.Skew' => totp_skew,
89
91
  'DefaultTemplateSid' => default_template_sid,
92
+ 'VerifyEventSubscriptionEnabled' => verify_event_subscription_enabled,
90
93
  })
91
94
 
92
95
  payload = @version.create('POST', @uri, data: data)
@@ -252,6 +255,7 @@ module Twilio
252
255
  # @param [String] totp_code_length Optional configuration for the TOTP factors. Number of digits for generated TOTP codes. Must be between 3 and 8, inclusive. Defaults to 6
253
256
  # @param [String] totp_skew Optional configuration for the TOTP factors. The number of time-steps, past and future, that are valid for validation of TOTP codes. Must be between 0 and 2, inclusive. Defaults to 1
254
257
  # @param [String] default_template_sid The default message [template](https://www.twilio.com/docs/verify/api/templates). Will be used for all SMS verifications unless explicitly overriden. SMS channel only.
258
+ # @param [Boolean] verify_event_subscription_enabled Whether to allow verifications from the service to reach the stream-events sinks if configured
255
259
  # @return [ServiceInstance] Updated ServiceInstance
256
260
  def update(
257
261
  friendly_name: :unset,
@@ -270,7 +274,8 @@ module Twilio
270
274
  totp_time_step: :unset,
271
275
  totp_code_length: :unset,
272
276
  totp_skew: :unset,
273
- default_template_sid: :unset
277
+ default_template_sid: :unset,
278
+ verify_event_subscription_enabled: :unset
274
279
  )
275
280
 
276
281
  data = Twilio::Values.of({
@@ -291,6 +296,7 @@ module Twilio
291
296
  'Totp.CodeLength' => totp_code_length,
292
297
  'Totp.Skew' => totp_skew,
293
298
  'DefaultTemplateSid' => default_template_sid,
299
+ 'VerifyEventSubscriptionEnabled' => verify_event_subscription_enabled,
294
300
  })
295
301
 
296
302
  payload = @version.update('POST', @uri, data: data)
@@ -499,6 +505,7 @@ module Twilio
499
505
  'push' => payload['push'],
500
506
  'totp' => payload['totp'],
501
507
  'default_template_sid' => payload['default_template_sid'],
508
+ 'verify_event_subscription_enabled' => payload['verify_event_subscription_enabled'],
502
509
  'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
503
510
  'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
504
511
  'url' => payload['url'],
@@ -605,6 +612,12 @@ module Twilio
605
612
  @properties['default_template_sid']
606
613
  end
607
614
 
615
+ ##
616
+ # @return [Boolean] Whether to allow verifications from the service to reach the stream-events sinks if configured
617
+ def verify_event_subscription_enabled
618
+ @properties['verify_event_subscription_enabled']
619
+ end
620
+
608
621
  ##
609
622
  # @return [Time] The date and time in GMT when the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
610
623
  def date_created
@@ -664,6 +677,7 @@ module Twilio
664
677
  # @param [String] totp_code_length Optional configuration for the TOTP factors. Number of digits for generated TOTP codes. Must be between 3 and 8, inclusive. Defaults to 6
665
678
  # @param [String] totp_skew Optional configuration for the TOTP factors. The number of time-steps, past and future, that are valid for validation of TOTP codes. Must be between 0 and 2, inclusive. Defaults to 1
666
679
  # @param [String] default_template_sid The default message [template](https://www.twilio.com/docs/verify/api/templates). Will be used for all SMS verifications unless explicitly overriden. SMS channel only.
680
+ # @param [Boolean] verify_event_subscription_enabled Whether to allow verifications from the service to reach the stream-events sinks if configured
667
681
  # @return [ServiceInstance] Updated ServiceInstance
668
682
  def update(
669
683
  friendly_name: :unset,
@@ -682,7 +696,8 @@ module Twilio
682
696
  totp_time_step: :unset,
683
697
  totp_code_length: :unset,
684
698
  totp_skew: :unset,
685
- default_template_sid: :unset
699
+ default_template_sid: :unset,
700
+ verify_event_subscription_enabled: :unset
686
701
  )
687
702
 
688
703
  context.update(
@@ -703,6 +718,7 @@ module Twilio
703
718
  totp_code_length: totp_code_length,
704
719
  totp_skew: totp_skew,
705
720
  default_template_sid: default_template_sid,
721
+ verify_event_subscription_enabled: verify_event_subscription_enabled,
706
722
  )
707
723
  end
708
724
 
@@ -336,7 +336,7 @@ module Twilio
336
336
  end
337
337
 
338
338
  ##
339
- # @return [Hash] An object containing the charge for this verification attempt related to the channel costs and the currency used. The costs related to the succeeded verifications are not included. May not be immediately available. More information on pricing is available [here](https://www.twilio.com/verify/pricing).
339
+ # @return [Hash] An object containing the charge for this verification attempt related to the channel costs and the currency used. The costs related to the succeeded verifications are not included. May not be immediately available. More information on pricing is available [here](https://www.twilio.com/en-us/verify/pricing).
340
340
  def price
341
341
  @properties['price']
342
342
  end
@@ -1,3 +1,3 @@
1
1
  module Twilio
2
- VERSION = '6.8.1'
2
+ VERSION = '6.8.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twilio-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.8.1
4
+ version: 6.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Twilio API Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-06 00:00:00.000000000 Z
11
+ date: 2023-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt
@@ -591,14 +591,6 @@ files:
591
591
  - lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document.rb
592
592
  - lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document_type.rb
593
593
  - lib/twilio-ruby/rest/numbers_base.rb
594
- - lib/twilio-ruby/rest/oauth.rb
595
- - lib/twilio-ruby/rest/oauth/v1.rb
596
- - lib/twilio-ruby/rest/oauth/v1/device_code.rb
597
- - lib/twilio-ruby/rest/oauth/v1/oauth.rb
598
- - lib/twilio-ruby/rest/oauth/v1/openid_discovery.rb
599
- - lib/twilio-ruby/rest/oauth/v1/token.rb
600
- - lib/twilio-ruby/rest/oauth/v1/user_info.rb
601
- - lib/twilio-ruby/rest/oauth_base.rb
602
594
  - lib/twilio-ruby/rest/preview.rb
603
595
  - lib/twilio-ruby/rest/preview/deployed_devices.rb
604
596
  - lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb
@@ -1,171 +0,0 @@
1
- ##
2
- # This code was generated by
3
- # ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
4
- # | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
5
- # | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6
- #
7
- # Twilio - Oauth
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 Oauth < OauthBase
19
- class V1 < Version
20
- class DeviceCodeList < ListResource
21
- ##
22
- # Initialize the DeviceCodeList
23
- # @param [Version] version Version that contains the resource
24
- # @return [DeviceCodeList] DeviceCodeList
25
- def initialize(version)
26
- super(version)
27
- # Path Solution
28
- @solution = { }
29
- @uri = "/device/code"
30
-
31
- end
32
- ##
33
- # Create the DeviceCodeInstance
34
- # @param [String] client_sid A 34 character string that uniquely identifies this OAuth App.
35
- # @param [Array[String]] scopes An Array of scopes for authorization request
36
- # @param [Array[String]] audiences An array of intended audiences for token requests
37
- # @return [DeviceCodeInstance] Created DeviceCodeInstance
38
- def create(
39
- client_sid: nil,
40
- scopes: nil,
41
- audiences: :unset
42
- )
43
-
44
- data = Twilio::Values.of({
45
- 'ClientSid' => client_sid,
46
- 'Scopes' => Twilio.serialize_list(scopes) { |e| e },
47
- 'Audiences' => Twilio.serialize_list(audiences) { |e| e },
48
- })
49
-
50
- payload = @version.create('POST', @uri, data: data)
51
- DeviceCodeInstance.new(
52
- @version,
53
- payload,
54
- )
55
- end
56
-
57
-
58
-
59
-
60
- # Provide a user friendly representation
61
- def to_s
62
- '#<Twilio.Oauth.V1.DeviceCodeList>'
63
- end
64
- end
65
-
66
- class DeviceCodePage < Page
67
- ##
68
- # Initialize the DeviceCodePage
69
- # @param [Version] version Version that contains the resource
70
- # @param [Response] response Response from the API
71
- # @param [Hash] solution Path solution for the resource
72
- # @return [DeviceCodePage] DeviceCodePage
73
- def initialize(version, response, solution)
74
- super(version, response)
75
-
76
- # Path Solution
77
- @solution = solution
78
- end
79
-
80
- ##
81
- # Build an instance of DeviceCodeInstance
82
- # @param [Hash] payload Payload response from the API
83
- # @return [DeviceCodeInstance] DeviceCodeInstance
84
- def get_instance(payload)
85
- DeviceCodeInstance.new(@version, payload)
86
- end
87
-
88
- ##
89
- # Provide a user friendly representation
90
- def to_s
91
- '<Twilio.Oauth.V1.DeviceCodePage>'
92
- end
93
- end
94
- class DeviceCodeInstance < InstanceResource
95
- ##
96
- # Initialize the DeviceCodeInstance
97
- # @param [Version] version Version that contains the resource
98
- # @param [Hash] payload payload that contains response from Twilio
99
- # @param [String] account_sid The SID of the
100
- # {Account}[https://www.twilio.com/docs/iam/api/account] that created this DeviceCode
101
- # resource.
102
- # @param [String] sid The SID of the Call resource to fetch.
103
- # @return [DeviceCodeInstance] DeviceCodeInstance
104
- def initialize(version, payload )
105
- super(version)
106
-
107
- # Marshaled Properties
108
- @properties = {
109
- 'device_code' => payload['device_code'],
110
- 'user_code' => payload['user_code'],
111
- 'verification_uri' => payload['verification_uri'],
112
- 'verification_uri_complete' => payload['verification_uri_complete'],
113
- 'expires_in' => payload['expires_in'],
114
- 'interval' => payload['interval'] == nil ? payload['interval'] : payload['interval'].to_i,
115
- }
116
- end
117
-
118
-
119
- ##
120
- # @return [String] The device verification code.
121
- def device_code
122
- @properties['device_code']
123
- end
124
-
125
- ##
126
- # @return [String] The verification code which end user uses to verify authorization request.
127
- def user_code
128
- @properties['user_code']
129
- end
130
-
131
- ##
132
- # @return [String] The URI that the end user visits to verify authorization request.
133
- def verification_uri
134
- @properties['verification_uri']
135
- end
136
-
137
- ##
138
- # @return [String] The URI with user_code that the end-user alternatively visits to verify authorization request.
139
- def verification_uri_complete
140
- @properties['verification_uri_complete']
141
- end
142
-
143
- ##
144
- # @return [String] The expiration time of the device_code and user_code in seconds.
145
- def expires_in
146
- @properties['expires_in']
147
- end
148
-
149
- ##
150
- # @return [String] The minimum amount of time in seconds that the client should wait between polling requests to the token endpoint.
151
- def interval
152
- @properties['interval']
153
- end
154
-
155
- ##
156
- # Provide a user friendly representation
157
- def to_s
158
- "<Twilio.Oauth.V1.DeviceCodeInstance>"
159
- end
160
-
161
- ##
162
- # Provide a detailed, user friendly representation
163
- def inspect
164
- "<Twilio.Oauth.V1.DeviceCodeInstance>"
165
- end
166
- end
167
-
168
- end
169
- end
170
- end
171
- end