twilio-ruby 5.73.3 → 5.74.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +49 -0
  3. data/README.md +2 -2
  4. data/lib/twilio-ruby/rest/api/v2010/account/address.rb +19 -3
  5. data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message_subscription.rb +4 -4
  6. data/lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb +195 -0
  7. data/lib/twilio-ruby/rest/content/v1/content.rb +18 -9
  8. data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +156 -0
  9. data/lib/twilio-ruby/rest/flex_api/v1/good_data.rb +6 -6
  10. data/lib/twilio-ruby/rest/flex_api/v1/user_roles.rb +1 -1
  11. data/lib/twilio-ruby/rest/flex_api/v1.rb +7 -0
  12. data/lib/twilio-ruby/rest/flex_api/v2/web_channels.rb +133 -0
  13. data/lib/twilio-ruby/rest/flex_api/v2.rb +35 -0
  14. data/lib/twilio-ruby/rest/flex_api.rb +19 -0
  15. data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +81 -6
  16. data/lib/twilio-ruby/rest/messaging/v1/domain_cert.rb +257 -0
  17. data/lib/twilio-ruby/rest/messaging/v1/domain_config.rb +267 -0
  18. data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +43 -18
  19. data/lib/twilio-ruby/rest/messaging/v1.rb +34 -0
  20. data/lib/twilio-ruby/rest/messaging.rb +18 -0
  21. data/lib/twilio-ruby/rest/microvisor/v1/device.rb +7 -0
  22. data/lib/twilio-ruby/rest/oauth/v1/device_code.rb +153 -0
  23. data/lib/twilio-ruby/rest/oauth/v1/openid_discovery.rb +1 -1
  24. data/lib/twilio-ruby/rest/oauth/v1.rb +7 -0
  25. data/lib/twilio-ruby/rest/oauth.rb +6 -0
  26. data/lib/twilio-ruby/rest/preview.rb +0 -33
  27. data/lib/twilio-ruby/rest/supersim/v1/settings_update.rb +12 -5
  28. data/lib/twilio-ruby/twiml/voice_response.rb +21 -21
  29. data/lib/twilio-ruby/version.rb +1 -1
  30. metadata +9 -8
  31. data/lib/twilio-ruby/rest/preview/trusted_comms/branded_channel/channel.rb +0 -165
  32. data/lib/twilio-ruby/rest/preview/trusted_comms/branded_channel.rb +0 -225
  33. data/lib/twilio-ruby/rest/preview/trusted_comms/brands_information.rb +0 -195
  34. data/lib/twilio-ruby/rest/preview/trusted_comms/cps.rb +0 -186
  35. data/lib/twilio-ruby/rest/preview/trusted_comms/current_call.rb +0 -277
  36. data/lib/twilio-ruby/rest/preview/trusted_comms.rb +0 -65
@@ -1,195 +0,0 @@
1
- ##
2
- # This code was generated by
3
- # \ / _ _ _| _ _
4
- # | (_)\/(_)(_|\/| |(/_ v1.0.0
5
- # / /
6
- #
7
- # frozen_string_literal: true
8
-
9
- module Twilio
10
- module REST
11
- class Preview < Domain
12
- class TrustedComms < Version
13
- ##
14
- # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
15
- class BrandsInformationList < ListResource
16
- ##
17
- # Initialize the BrandsInformationList
18
- # @param [Version] version Version that contains the resource
19
- # @return [BrandsInformationList] BrandsInformationList
20
- def initialize(version)
21
- super(version)
22
-
23
- # Path Solution
24
- @solution = {}
25
- end
26
-
27
- ##
28
- # Provide a user friendly representation
29
- def to_s
30
- '#<Twilio.Preview.TrustedComms.BrandsInformationList>'
31
- end
32
- end
33
-
34
- ##
35
- # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
36
- class BrandsInformationPage < Page
37
- ##
38
- # Initialize the BrandsInformationPage
39
- # @param [Version] version Version that contains the resource
40
- # @param [Response] response Response from the API
41
- # @param [Hash] solution Path solution for the resource
42
- # @return [BrandsInformationPage] BrandsInformationPage
43
- def initialize(version, response, solution)
44
- super(version, response)
45
-
46
- # Path Solution
47
- @solution = solution
48
- end
49
-
50
- ##
51
- # Build an instance of BrandsInformationInstance
52
- # @param [Hash] payload Payload response from the API
53
- # @return [BrandsInformationInstance] BrandsInformationInstance
54
- def get_instance(payload)
55
- BrandsInformationInstance.new(@version, payload, )
56
- end
57
-
58
- ##
59
- # Provide a user friendly representation
60
- def to_s
61
- '<Twilio.Preview.TrustedComms.BrandsInformationPage>'
62
- end
63
- end
64
-
65
- ##
66
- # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
67
- class BrandsInformationContext < InstanceContext
68
- ##
69
- # Initialize the BrandsInformationContext
70
- # @param [Version] version Version that contains the resource
71
- # @return [BrandsInformationContext] BrandsInformationContext
72
- def initialize(version)
73
- super(version)
74
-
75
- # Path Solution
76
- @solution = {}
77
- @uri = "/BrandsInformation"
78
- end
79
-
80
- ##
81
- # Fetch the BrandsInformationInstance
82
- # @param [String] if_none_match Standard `If-None-Match` HTTP header. For more
83
- # information visit:
84
- # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-None-Match.
85
- # @return [BrandsInformationInstance] Fetched BrandsInformationInstance
86
- def fetch(if_none_match: :unset)
87
- headers = Twilio::Values.of({'If-None-Match' => if_none_match, })
88
-
89
- payload = @version.fetch('GET', @uri, headers: headers)
90
-
91
- BrandsInformationInstance.new(@version, payload, )
92
- end
93
-
94
- ##
95
- # Provide a user friendly representation
96
- def to_s
97
- context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
98
- "#<Twilio.Preview.TrustedComms.BrandsInformationContext #{context}>"
99
- end
100
-
101
- ##
102
- # Provide a detailed, user friendly representation
103
- def inspect
104
- context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
105
- "#<Twilio.Preview.TrustedComms.BrandsInformationContext #{context}>"
106
- end
107
- end
108
-
109
- ##
110
- # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
111
- class BrandsInformationInstance < InstanceResource
112
- ##
113
- # Initialize the BrandsInformationInstance
114
- # @param [Version] version Version that contains the resource
115
- # @param [Hash] payload payload that contains response from Twilio
116
- # @return [BrandsInformationInstance] BrandsInformationInstance
117
- def initialize(version, payload)
118
- super(version)
119
-
120
- # Marshaled Properties
121
- @properties = {
122
- 'update_time' => Twilio.deserialize_iso8601_datetime(payload['update_time']),
123
- 'file_link' => payload['file_link'],
124
- 'file_link_ttl_in_seconds' => payload['file_link_ttl_in_seconds'],
125
- 'url' => payload['url'],
126
- }
127
-
128
- # Context
129
- @instance_context = nil
130
- @params = {}
131
- end
132
-
133
- ##
134
- # Generate an instance context for the instance, the context is capable of
135
- # performing various actions. All instance actions are proxied to the context
136
- # @return [BrandsInformationContext] BrandsInformationContext for this BrandsInformationInstance
137
- def context
138
- unless @instance_context
139
- @instance_context = BrandsInformationContext.new(@version, )
140
- end
141
- @instance_context
142
- end
143
-
144
- ##
145
- # @return [Time] Creation time of the information retrieved
146
- def update_time
147
- @properties['update_time']
148
- end
149
-
150
- ##
151
- # @return [String] The URL to the brands information
152
- def file_link
153
- @properties['file_link']
154
- end
155
-
156
- ##
157
- # @return [String] How long will be the `file_link` valid
158
- def file_link_ttl_in_seconds
159
- @properties['file_link_ttl_in_seconds']
160
- end
161
-
162
- ##
163
- # @return [String] The URL of this resource
164
- def url
165
- @properties['url']
166
- end
167
-
168
- ##
169
- # Fetch the BrandsInformationInstance
170
- # @param [String] if_none_match Standard `If-None-Match` HTTP header. For more
171
- # information visit:
172
- # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-None-Match.
173
- # @return [BrandsInformationInstance] Fetched BrandsInformationInstance
174
- def fetch(if_none_match: :unset)
175
- context.fetch(if_none_match: if_none_match, )
176
- end
177
-
178
- ##
179
- # Provide a user friendly representation
180
- def to_s
181
- values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
182
- "<Twilio.Preview.TrustedComms.BrandsInformationInstance #{values}>"
183
- end
184
-
185
- ##
186
- # Provide a detailed, user friendly representation
187
- def inspect
188
- values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
189
- "<Twilio.Preview.TrustedComms.BrandsInformationInstance #{values}>"
190
- end
191
- end
192
- end
193
- end
194
- end
195
- end
@@ -1,186 +0,0 @@
1
- ##
2
- # This code was generated by
3
- # \ / _ _ _| _ _
4
- # | (_)\/(_)(_|\/| |(/_ v1.0.0
5
- # / /
6
- #
7
- # frozen_string_literal: true
8
-
9
- module Twilio
10
- module REST
11
- class Preview < Domain
12
- class TrustedComms < Version
13
- ##
14
- # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
15
- class CpsList < ListResource
16
- ##
17
- # Initialize the CpsList
18
- # @param [Version] version Version that contains the resource
19
- # @return [CpsList] CpsList
20
- def initialize(version)
21
- super(version)
22
-
23
- # Path Solution
24
- @solution = {}
25
- end
26
-
27
- ##
28
- # Provide a user friendly representation
29
- def to_s
30
- '#<Twilio.Preview.TrustedComms.CpsList>'
31
- end
32
- end
33
-
34
- ##
35
- # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
36
- class CpsPage < Page
37
- ##
38
- # Initialize the CpsPage
39
- # @param [Version] version Version that contains the resource
40
- # @param [Response] response Response from the API
41
- # @param [Hash] solution Path solution for the resource
42
- # @return [CpsPage] CpsPage
43
- def initialize(version, response, solution)
44
- super(version, response)
45
-
46
- # Path Solution
47
- @solution = solution
48
- end
49
-
50
- ##
51
- # Build an instance of CpsInstance
52
- # @param [Hash] payload Payload response from the API
53
- # @return [CpsInstance] CpsInstance
54
- def get_instance(payload)
55
- CpsInstance.new(@version, payload, )
56
- end
57
-
58
- ##
59
- # Provide a user friendly representation
60
- def to_s
61
- '<Twilio.Preview.TrustedComms.CpsPage>'
62
- end
63
- end
64
-
65
- ##
66
- # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
67
- class CpsContext < InstanceContext
68
- ##
69
- # Initialize the CpsContext
70
- # @param [Version] version Version that contains the resource
71
- # @return [CpsContext] CpsContext
72
- def initialize(version)
73
- super(version)
74
-
75
- # Path Solution
76
- @solution = {}
77
- @uri = "/CPS"
78
- end
79
-
80
- ##
81
- # Fetch the CpsInstance
82
- # @param [String] x_xcnam_sensitive_phone_number Phone number used to retrieve its
83
- # corresponding CPS.
84
- # @return [CpsInstance] Fetched CpsInstance
85
- def fetch(x_xcnam_sensitive_phone_number: :unset)
86
- headers = Twilio::Values.of({'X-Xcnam-Sensitive-Phone-Number' => x_xcnam_sensitive_phone_number, })
87
-
88
- payload = @version.fetch('GET', @uri, headers: headers)
89
-
90
- CpsInstance.new(@version, payload, )
91
- end
92
-
93
- ##
94
- # Provide a user friendly representation
95
- def to_s
96
- context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
97
- "#<Twilio.Preview.TrustedComms.CpsContext #{context}>"
98
- end
99
-
100
- ##
101
- # Provide a detailed, user friendly representation
102
- def inspect
103
- context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
104
- "#<Twilio.Preview.TrustedComms.CpsContext #{context}>"
105
- end
106
- end
107
-
108
- ##
109
- # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
110
- class CpsInstance < InstanceResource
111
- ##
112
- # Initialize the CpsInstance
113
- # @param [Version] version Version that contains the resource
114
- # @param [Hash] payload payload that contains response from Twilio
115
- # @return [CpsInstance] CpsInstance
116
- def initialize(version, payload)
117
- super(version)
118
-
119
- # Marshaled Properties
120
- @properties = {
121
- 'cps_url' => payload['cps_url'],
122
- 'phone_number' => payload['phone_number'],
123
- 'url' => payload['url'],
124
- }
125
-
126
- # Context
127
- @instance_context = nil
128
- @params = {}
129
- end
130
-
131
- ##
132
- # Generate an instance context for the instance, the context is capable of
133
- # performing various actions. All instance actions are proxied to the context
134
- # @return [CpsContext] CpsContext for this CpsInstance
135
- def context
136
- unless @instance_context
137
- @instance_context = CpsContext.new(@version, )
138
- end
139
- @instance_context
140
- end
141
-
142
- ##
143
- # @return [String] CPS URL of the phone number.
144
- def cps_url
145
- @properties['cps_url']
146
- end
147
-
148
- ##
149
- # @return [String] Phone number passed.
150
- def phone_number
151
- @properties['phone_number']
152
- end
153
-
154
- ##
155
- # @return [String] The URL of this resource.
156
- def url
157
- @properties['url']
158
- end
159
-
160
- ##
161
- # Fetch the CpsInstance
162
- # @param [String] x_xcnam_sensitive_phone_number Phone number used to retrieve its
163
- # corresponding CPS.
164
- # @return [CpsInstance] Fetched CpsInstance
165
- def fetch(x_xcnam_sensitive_phone_number: :unset)
166
- context.fetch(x_xcnam_sensitive_phone_number: x_xcnam_sensitive_phone_number, )
167
- end
168
-
169
- ##
170
- # Provide a user friendly representation
171
- def to_s
172
- values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
173
- "<Twilio.Preview.TrustedComms.CpsInstance #{values}>"
174
- end
175
-
176
- ##
177
- # Provide a detailed, user friendly representation
178
- def inspect
179
- values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
180
- "<Twilio.Preview.TrustedComms.CpsInstance #{values}>"
181
- end
182
- end
183
- end
184
- end
185
- end
186
- end
@@ -1,277 +0,0 @@
1
- ##
2
- # This code was generated by
3
- # \ / _ _ _| _ _
4
- # | (_)\/(_)(_|\/| |(/_ v1.0.0
5
- # / /
6
- #
7
- # frozen_string_literal: true
8
-
9
- module Twilio
10
- module REST
11
- class Preview < Domain
12
- class TrustedComms < Version
13
- ##
14
- # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
15
- class CurrentCallList < ListResource
16
- ##
17
- # Initialize the CurrentCallList
18
- # @param [Version] version Version that contains the resource
19
- # @return [CurrentCallList] CurrentCallList
20
- def initialize(version)
21
- super(version)
22
-
23
- # Path Solution
24
- @solution = {}
25
- end
26
-
27
- ##
28
- # Provide a user friendly representation
29
- def to_s
30
- '#<Twilio.Preview.TrustedComms.CurrentCallList>'
31
- end
32
- end
33
-
34
- ##
35
- # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
36
- class CurrentCallPage < Page
37
- ##
38
- # Initialize the CurrentCallPage
39
- # @param [Version] version Version that contains the resource
40
- # @param [Response] response Response from the API
41
- # @param [Hash] solution Path solution for the resource
42
- # @return [CurrentCallPage] CurrentCallPage
43
- def initialize(version, response, solution)
44
- super(version, response)
45
-
46
- # Path Solution
47
- @solution = solution
48
- end
49
-
50
- ##
51
- # Build an instance of CurrentCallInstance
52
- # @param [Hash] payload Payload response from the API
53
- # @return [CurrentCallInstance] CurrentCallInstance
54
- def get_instance(payload)
55
- CurrentCallInstance.new(@version, payload, )
56
- end
57
-
58
- ##
59
- # Provide a user friendly representation
60
- def to_s
61
- '<Twilio.Preview.TrustedComms.CurrentCallPage>'
62
- end
63
- end
64
-
65
- ##
66
- # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
67
- class CurrentCallContext < InstanceContext
68
- ##
69
- # Initialize the CurrentCallContext
70
- # @param [Version] version Version that contains the resource
71
- # @return [CurrentCallContext] CurrentCallContext
72
- def initialize(version)
73
- super(version)
74
-
75
- # Path Solution
76
- @solution = {}
77
- @uri = "/CurrentCall"
78
- end
79
-
80
- ##
81
- # Fetch the CurrentCallInstance
82
- # @param [String] x_xcnam_sensitive_phone_number_from The originating Phone
83
- # Number, given in {E.164 format}[https://www.twilio.com/docs/glossary/what-e164].
84
- # This phone number should be a Twilio number, otherwise it will return an error
85
- # with HTTP Status Code 400.
86
- # @param [String] x_xcnam_sensitive_phone_number_to The terminating Phone Number,
87
- # given in {E.164 format}[https://www.twilio.com/docs/glossary/what-e164].
88
- # @return [CurrentCallInstance] Fetched CurrentCallInstance
89
- def fetch(x_xcnam_sensitive_phone_number_from: :unset, x_xcnam_sensitive_phone_number_to: :unset)
90
- headers = Twilio::Values.of({
91
- 'X-Xcnam-Sensitive-Phone-Number-From' => x_xcnam_sensitive_phone_number_from,
92
- 'X-Xcnam-Sensitive-Phone-Number-To' => x_xcnam_sensitive_phone_number_to,
93
- })
94
-
95
- payload = @version.fetch('GET', @uri, headers: headers)
96
-
97
- CurrentCallInstance.new(@version, payload, )
98
- end
99
-
100
- ##
101
- # Provide a user friendly representation
102
- def to_s
103
- context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
104
- "#<Twilio.Preview.TrustedComms.CurrentCallContext #{context}>"
105
- end
106
-
107
- ##
108
- # Provide a detailed, user friendly representation
109
- def inspect
110
- context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
111
- "#<Twilio.Preview.TrustedComms.CurrentCallContext #{context}>"
112
- end
113
- end
114
-
115
- ##
116
- # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
117
- class CurrentCallInstance < InstanceResource
118
- ##
119
- # Initialize the CurrentCallInstance
120
- # @param [Version] version Version that contains the resource
121
- # @param [Hash] payload payload that contains response from Twilio
122
- # @return [CurrentCallInstance] CurrentCallInstance
123
- def initialize(version, payload)
124
- super(version)
125
-
126
- # Marshaled Properties
127
- @properties = {
128
- 'bg_color' => payload['bg_color'],
129
- 'caller' => payload['caller'],
130
- 'created_at' => Twilio.deserialize_iso8601_datetime(payload['created_at']),
131
- 'font_color' => payload['font_color'],
132
- 'from' => payload['from'],
133
- 'logo' => payload['logo'],
134
- 'manager' => payload['manager'],
135
- 'reason' => payload['reason'],
136
- 'shield_img' => payload['shield_img'],
137
- 'sid' => payload['sid'],
138
- 'status' => payload['status'],
139
- 'to' => payload['to'],
140
- 'url' => payload['url'],
141
- 'use_case' => payload['use_case'],
142
- }
143
-
144
- # Context
145
- @instance_context = nil
146
- @params = {}
147
- end
148
-
149
- ##
150
- # Generate an instance context for the instance, the context is capable of
151
- # performing various actions. All instance actions are proxied to the context
152
- # @return [CurrentCallContext] CurrentCallContext for this CurrentCallInstance
153
- def context
154
- unless @instance_context
155
- @instance_context = CurrentCallContext.new(@version, )
156
- end
157
- @instance_context
158
- end
159
-
160
- ##
161
- # @return [String] Background color of the current phone call
162
- def bg_color
163
- @properties['bg_color']
164
- end
165
-
166
- ##
167
- # @return [String] Caller name of the current phone call
168
- def caller
169
- @properties['caller']
170
- end
171
-
172
- ##
173
- # @return [Time] The date this current phone call was created
174
- def created_at
175
- @properties['created_at']
176
- end
177
-
178
- ##
179
- # @return [String] Font color of the current phone call
180
- def font_color
181
- @properties['font_color']
182
- end
183
-
184
- ##
185
- # @return [String] The originating phone number
186
- def from
187
- @properties['from']
188
- end
189
-
190
- ##
191
- # @return [String] Logo URL of the caller
192
- def logo
193
- @properties['logo']
194
- end
195
-
196
- ##
197
- # @return [String] The name of the CPS organization
198
- def manager
199
- @properties['manager']
200
- end
201
-
202
- ##
203
- # @return [String] The business reason for this current phone call
204
- def reason
205
- @properties['reason']
206
- end
207
-
208
- ##
209
- # @return [String] Shield image URL that serves as authenticity proof of the current phone call
210
- def shield_img
211
- @properties['shield_img']
212
- end
213
-
214
- ##
215
- # @return [String] A string that uniquely identifies this current branded phone call.
216
- def sid
217
- @properties['sid']
218
- end
219
-
220
- ##
221
- # @return [String] The status of the current phone call
222
- def status
223
- @properties['status']
224
- end
225
-
226
- ##
227
- # @return [String] The terminating phone number
228
- def to
229
- @properties['to']
230
- end
231
-
232
- ##
233
- # @return [String] The URL of this resource.
234
- def url
235
- @properties['url']
236
- end
237
-
238
- ##
239
- # @return [String] The use case for the current phone call
240
- def use_case
241
- @properties['use_case']
242
- end
243
-
244
- ##
245
- # Fetch the CurrentCallInstance
246
- # @param [String] x_xcnam_sensitive_phone_number_from The originating Phone
247
- # Number, given in {E.164 format}[https://www.twilio.com/docs/glossary/what-e164].
248
- # This phone number should be a Twilio number, otherwise it will return an error
249
- # with HTTP Status Code 400.
250
- # @param [String] x_xcnam_sensitive_phone_number_to The terminating Phone Number,
251
- # given in {E.164 format}[https://www.twilio.com/docs/glossary/what-e164].
252
- # @return [CurrentCallInstance] Fetched CurrentCallInstance
253
- def fetch(x_xcnam_sensitive_phone_number_from: :unset, x_xcnam_sensitive_phone_number_to: :unset)
254
- context.fetch(
255
- x_xcnam_sensitive_phone_number_from: x_xcnam_sensitive_phone_number_from,
256
- x_xcnam_sensitive_phone_number_to: x_xcnam_sensitive_phone_number_to,
257
- )
258
- end
259
-
260
- ##
261
- # Provide a user friendly representation
262
- def to_s
263
- values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
264
- "<Twilio.Preview.TrustedComms.CurrentCallInstance #{values}>"
265
- end
266
-
267
- ##
268
- # Provide a detailed, user friendly representation
269
- def inspect
270
- values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
271
- "<Twilio.Preview.TrustedComms.CurrentCallInstance #{values}>"
272
- end
273
- end
274
- end
275
- end
276
- end
277
- end