twilio-ruby 6.11.0 → 6.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/test-and-deploy.yml +9 -9
- data/CHANGES.md +27 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +1 -34
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_participant.rb +11 -1
- data/lib/twilio-ruby/rest/flex_api/v1.rb +0 -30
- data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +6 -6
- data/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb +11 -4
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_registration_inquiries.rb +20 -2
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +2 -6
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +0 -267
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +0 -332
- data/lib/twilio-ruby/rest/flex_api/v1/insights_conversational_ai.rb +0 -276
- data/lib/twilio-ruby/rest/flex_api/v1/insights_conversational_ai_report_insights.rb +0 -255
@@ -1,267 +0,0 @@
|
|
1
|
-
##
|
2
|
-
# This code was generated by
|
3
|
-
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
4
|
-
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
5
|
-
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
6
|
-
#
|
7
|
-
# Twilio - Api
|
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 Api < ApiBase
|
19
|
-
class V2010 < Version
|
20
|
-
class AccountContext < InstanceContext
|
21
|
-
class CallContext < InstanceContext
|
22
|
-
|
23
|
-
class FeedbackList < ListResource
|
24
|
-
|
25
|
-
##
|
26
|
-
# Initialize the FeedbackList
|
27
|
-
# @param [Version] version Version that contains the resource
|
28
|
-
# @return [FeedbackList] FeedbackList
|
29
|
-
def initialize(version, account_sid: nil, call_sid: nil)
|
30
|
-
super(version)
|
31
|
-
# Path Solution
|
32
|
-
@solution = { account_sid: account_sid, call_sid: call_sid }
|
33
|
-
|
34
|
-
|
35
|
-
end
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
# Provide a user friendly representation
|
40
|
-
def to_s
|
41
|
-
'#<Twilio.Api.V2010.FeedbackList>'
|
42
|
-
end
|
43
|
-
end
|
44
|
-
|
45
|
-
|
46
|
-
class FeedbackContext < InstanceContext
|
47
|
-
##
|
48
|
-
# Initialize the FeedbackContext
|
49
|
-
# @param [Version] version Version that contains the resource
|
50
|
-
# @param [String] account_sid The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource.
|
51
|
-
# @param [String] call_sid The call sid that uniquely identifies the call
|
52
|
-
# @return [FeedbackContext] FeedbackContext
|
53
|
-
def initialize(version, account_sid, call_sid)
|
54
|
-
super(version)
|
55
|
-
|
56
|
-
# Path Solution
|
57
|
-
@solution = { account_sid: account_sid, call_sid: call_sid, }
|
58
|
-
@uri = "/Accounts/#{@solution[:account_sid]}/Calls/#{@solution[:call_sid]}/Feedback.json"
|
59
|
-
|
60
|
-
|
61
|
-
end
|
62
|
-
##
|
63
|
-
# Fetch the FeedbackInstance
|
64
|
-
# @return [FeedbackInstance] Fetched FeedbackInstance
|
65
|
-
def fetch
|
66
|
-
|
67
|
-
|
68
|
-
payload = @version.fetch('GET', @uri)
|
69
|
-
FeedbackInstance.new(
|
70
|
-
@version,
|
71
|
-
payload,
|
72
|
-
account_sid: @solution[:account_sid],
|
73
|
-
call_sid: @solution[:call_sid],
|
74
|
-
)
|
75
|
-
end
|
76
|
-
|
77
|
-
##
|
78
|
-
# Update the FeedbackInstance
|
79
|
-
# @param [String] quality_score The call quality expressed as an integer from `1` to `5` where `1` represents very poor call quality and `5` represents a perfect call.
|
80
|
-
# @param [Array[Issues]] issue One or more issues experienced during the call. The issues can be: `imperfect-audio`, `dropped-call`, `incorrect-caller-id`, `post-dial-delay`, `digits-not-captured`, `audio-latency`, `unsolicited-call`, or `one-way-audio`.
|
81
|
-
# @return [FeedbackInstance] Updated FeedbackInstance
|
82
|
-
def update(
|
83
|
-
quality_score: :unset,
|
84
|
-
issue: :unset
|
85
|
-
)
|
86
|
-
|
87
|
-
data = Twilio::Values.of({
|
88
|
-
'QualityScore' => quality_score,
|
89
|
-
'Issue' => Twilio.serialize_list(issue) { |e| e },
|
90
|
-
})
|
91
|
-
|
92
|
-
|
93
|
-
payload = @version.update('POST', @uri, data: data)
|
94
|
-
FeedbackInstance.new(
|
95
|
-
@version,
|
96
|
-
payload,
|
97
|
-
account_sid: @solution[:account_sid],
|
98
|
-
call_sid: @solution[:call_sid],
|
99
|
-
)
|
100
|
-
end
|
101
|
-
|
102
|
-
|
103
|
-
##
|
104
|
-
# Provide a user friendly representation
|
105
|
-
def to_s
|
106
|
-
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
|
107
|
-
"#<Twilio.Api.V2010.FeedbackContext #{context}>"
|
108
|
-
end
|
109
|
-
|
110
|
-
##
|
111
|
-
# Provide a detailed, user friendly representation
|
112
|
-
def inspect
|
113
|
-
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
|
114
|
-
"#<Twilio.Api.V2010.FeedbackContext #{context}>"
|
115
|
-
end
|
116
|
-
end
|
117
|
-
|
118
|
-
class FeedbackPage < Page
|
119
|
-
##
|
120
|
-
# Initialize the FeedbackPage
|
121
|
-
# @param [Version] version Version that contains the resource
|
122
|
-
# @param [Response] response Response from the API
|
123
|
-
# @param [Hash] solution Path solution for the resource
|
124
|
-
# @return [FeedbackPage] FeedbackPage
|
125
|
-
def initialize(version, response, solution)
|
126
|
-
super(version, response)
|
127
|
-
|
128
|
-
# Path Solution
|
129
|
-
@solution = solution
|
130
|
-
end
|
131
|
-
|
132
|
-
##
|
133
|
-
# Build an instance of FeedbackInstance
|
134
|
-
# @param [Hash] payload Payload response from the API
|
135
|
-
# @return [FeedbackInstance] FeedbackInstance
|
136
|
-
def get_instance(payload)
|
137
|
-
FeedbackInstance.new(@version, payload, account_sid: @solution[:account_sid], call_sid: @solution[:call_sid])
|
138
|
-
end
|
139
|
-
|
140
|
-
##
|
141
|
-
# Provide a user friendly representation
|
142
|
-
def to_s
|
143
|
-
'<Twilio.Api.V2010.FeedbackPage>'
|
144
|
-
end
|
145
|
-
end
|
146
|
-
class FeedbackInstance < InstanceResource
|
147
|
-
##
|
148
|
-
# Initialize the FeedbackInstance
|
149
|
-
# @param [Version] version Version that contains the resource
|
150
|
-
# @param [Hash] payload payload that contains response from Twilio
|
151
|
-
# @param [String] account_sid The SID of the
|
152
|
-
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this Feedback
|
153
|
-
# resource.
|
154
|
-
# @param [String] sid The SID of the Call resource to fetch.
|
155
|
-
# @return [FeedbackInstance] FeedbackInstance
|
156
|
-
def initialize(version, payload , account_sid: nil, call_sid: nil)
|
157
|
-
super(version)
|
158
|
-
|
159
|
-
# Marshaled Properties
|
160
|
-
@properties = {
|
161
|
-
'account_sid' => payload['account_sid'],
|
162
|
-
'date_created' => Twilio.deserialize_rfc2822(payload['date_created']),
|
163
|
-
'date_updated' => Twilio.deserialize_rfc2822(payload['date_updated']),
|
164
|
-
'issues' => payload['issues'],
|
165
|
-
'quality_score' => payload['quality_score'] == nil ? payload['quality_score'] : payload['quality_score'].to_i,
|
166
|
-
'sid' => payload['sid'],
|
167
|
-
}
|
168
|
-
|
169
|
-
# Context
|
170
|
-
@instance_context = nil
|
171
|
-
@params = { 'account_sid' => account_sid ,'call_sid' => call_sid || @properties['call_sid'] , }
|
172
|
-
end
|
173
|
-
|
174
|
-
##
|
175
|
-
# Generate an instance context for the instance, the context is capable of
|
176
|
-
# performing various actions. All instance actions are proxied to the context
|
177
|
-
# @return [FeedbackContext] CallContext for this CallInstance
|
178
|
-
def context
|
179
|
-
unless @instance_context
|
180
|
-
@instance_context = FeedbackContext.new(@version , @params['account_sid'], @params['call_sid'])
|
181
|
-
end
|
182
|
-
@instance_context
|
183
|
-
end
|
184
|
-
|
185
|
-
##
|
186
|
-
# @return [String] The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource.
|
187
|
-
def account_sid
|
188
|
-
@properties['account_sid']
|
189
|
-
end
|
190
|
-
|
191
|
-
##
|
192
|
-
# @return [Time] The date that this resource was created, given in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format.
|
193
|
-
def date_created
|
194
|
-
@properties['date_created']
|
195
|
-
end
|
196
|
-
|
197
|
-
##
|
198
|
-
# @return [Time] The date that this resource was last updated, given in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format.
|
199
|
-
def date_updated
|
200
|
-
@properties['date_updated']
|
201
|
-
end
|
202
|
-
|
203
|
-
##
|
204
|
-
# @return [Array<Issues>] A list of issues experienced during the call. The issues can be: `imperfect-audio`, `dropped-call`, `incorrect-caller-id`, `post-dial-delay`, `digits-not-captured`, `audio-latency`, `unsolicited-call`, or `one-way-audio`.
|
205
|
-
def issues
|
206
|
-
@properties['issues']
|
207
|
-
end
|
208
|
-
|
209
|
-
##
|
210
|
-
# @return [String] `1` to `5` quality score where `1` represents imperfect experience and `5` represents a perfect call.
|
211
|
-
def quality_score
|
212
|
-
@properties['quality_score']
|
213
|
-
end
|
214
|
-
|
215
|
-
##
|
216
|
-
# @return [String] A 34 character string that uniquely identifies this resource.
|
217
|
-
def sid
|
218
|
-
@properties['sid']
|
219
|
-
end
|
220
|
-
|
221
|
-
##
|
222
|
-
# Fetch the FeedbackInstance
|
223
|
-
# @return [FeedbackInstance] Fetched FeedbackInstance
|
224
|
-
def fetch
|
225
|
-
|
226
|
-
context.fetch
|
227
|
-
end
|
228
|
-
|
229
|
-
##
|
230
|
-
# Update the FeedbackInstance
|
231
|
-
# @param [String] quality_score The call quality expressed as an integer from `1` to `5` where `1` represents very poor call quality and `5` represents a perfect call.
|
232
|
-
# @param [Array[Issues]] issue One or more issues experienced during the call. The issues can be: `imperfect-audio`, `dropped-call`, `incorrect-caller-id`, `post-dial-delay`, `digits-not-captured`, `audio-latency`, `unsolicited-call`, or `one-way-audio`.
|
233
|
-
# @return [FeedbackInstance] Updated FeedbackInstance
|
234
|
-
def update(
|
235
|
-
quality_score: :unset,
|
236
|
-
issue: :unset
|
237
|
-
)
|
238
|
-
|
239
|
-
context.update(
|
240
|
-
quality_score: quality_score,
|
241
|
-
issue: issue,
|
242
|
-
)
|
243
|
-
end
|
244
|
-
|
245
|
-
##
|
246
|
-
# Provide a user friendly representation
|
247
|
-
def to_s
|
248
|
-
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
|
249
|
-
"<Twilio.Api.V2010.FeedbackInstance #{values}>"
|
250
|
-
end
|
251
|
-
|
252
|
-
##
|
253
|
-
# Provide a detailed, user friendly representation
|
254
|
-
def inspect
|
255
|
-
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
|
256
|
-
"<Twilio.Api.V2010.FeedbackInstance #{values}>"
|
257
|
-
end
|
258
|
-
end
|
259
|
-
|
260
|
-
end
|
261
|
-
end
|
262
|
-
end
|
263
|
-
end
|
264
|
-
end
|
265
|
-
end
|
266
|
-
|
267
|
-
|
@@ -1,332 +0,0 @@
|
|
1
|
-
##
|
2
|
-
# This code was generated by
|
3
|
-
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
4
|
-
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
5
|
-
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
6
|
-
#
|
7
|
-
# Twilio - Api
|
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 Api < ApiBase
|
19
|
-
class V2010 < Version
|
20
|
-
class AccountContext < InstanceContext
|
21
|
-
class CallList < ListResource
|
22
|
-
|
23
|
-
class FeedbackSummaryList < ListResource
|
24
|
-
|
25
|
-
##
|
26
|
-
# Initialize the FeedbackSummaryList
|
27
|
-
# @param [Version] version Version that contains the resource
|
28
|
-
# @return [FeedbackSummaryList] FeedbackSummaryList
|
29
|
-
def initialize(version, account_sid: nil)
|
30
|
-
super(version)
|
31
|
-
# Path Solution
|
32
|
-
@solution = { account_sid: account_sid }
|
33
|
-
@uri = "/Accounts/#{@solution[:account_sid]}/Calls/FeedbackSummary.json"
|
34
|
-
|
35
|
-
end
|
36
|
-
##
|
37
|
-
# Create the FeedbackSummaryInstance
|
38
|
-
# @param [Date] start_date Only include feedback given on or after this date. Format is `YYYY-MM-DD` and specified in UTC.
|
39
|
-
# @param [Date] end_date Only include feedback given on or before this date. Format is `YYYY-MM-DD` and specified in UTC.
|
40
|
-
# @param [Boolean] include_subaccounts Whether to also include Feedback resources from all subaccounts. `true` includes feedback from all subaccounts and `false`, the default, includes feedback from only the specified account.
|
41
|
-
# @param [String] status_callback The URL that we will request when the feedback summary is complete.
|
42
|
-
# @param [String] status_callback_method The HTTP method (`GET` or `POST`) we use to make the request to the `StatusCallback` URL.
|
43
|
-
# @return [FeedbackSummaryInstance] Created FeedbackSummaryInstance
|
44
|
-
def create(
|
45
|
-
start_date: nil,
|
46
|
-
end_date: nil,
|
47
|
-
include_subaccounts: :unset,
|
48
|
-
status_callback: :unset,
|
49
|
-
status_callback_method: :unset
|
50
|
-
)
|
51
|
-
|
52
|
-
data = Twilio::Values.of({
|
53
|
-
'StartDate' => Twilio.serialize_iso8601_date(start_date),
|
54
|
-
'EndDate' => Twilio.serialize_iso8601_date(end_date),
|
55
|
-
'IncludeSubaccounts' => include_subaccounts,
|
56
|
-
'StatusCallback' => status_callback,
|
57
|
-
'StatusCallbackMethod' => status_callback_method,
|
58
|
-
})
|
59
|
-
|
60
|
-
|
61
|
-
payload = @version.create('POST', @uri, data: data)
|
62
|
-
FeedbackSummaryInstance.new(
|
63
|
-
@version,
|
64
|
-
payload,
|
65
|
-
account_sid: @solution[:account_sid],
|
66
|
-
)
|
67
|
-
end
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
# Provide a user friendly representation
|
73
|
-
def to_s
|
74
|
-
'#<Twilio.Api.V2010.FeedbackSummaryList>'
|
75
|
-
end
|
76
|
-
end
|
77
|
-
|
78
|
-
|
79
|
-
class FeedbackSummaryContext < InstanceContext
|
80
|
-
##
|
81
|
-
# Initialize the FeedbackSummaryContext
|
82
|
-
# @param [Version] version Version that contains the resource
|
83
|
-
# @param [String] account_sid The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource.
|
84
|
-
# @param [String] sid A 34 character string that uniquely identifies this resource.
|
85
|
-
# @return [FeedbackSummaryContext] FeedbackSummaryContext
|
86
|
-
def initialize(version, account_sid, sid)
|
87
|
-
super(version)
|
88
|
-
|
89
|
-
# Path Solution
|
90
|
-
@solution = { account_sid: account_sid, sid: sid, }
|
91
|
-
@uri = "/Accounts/#{@solution[:account_sid]}/Calls/FeedbackSummary/#{@solution[:sid]}.json"
|
92
|
-
|
93
|
-
|
94
|
-
end
|
95
|
-
##
|
96
|
-
# Delete the FeedbackSummaryInstance
|
97
|
-
# @return [Boolean] True if delete succeeds, false otherwise
|
98
|
-
def delete
|
99
|
-
|
100
|
-
|
101
|
-
@version.delete('DELETE', @uri)
|
102
|
-
end
|
103
|
-
|
104
|
-
##
|
105
|
-
# Fetch the FeedbackSummaryInstance
|
106
|
-
# @return [FeedbackSummaryInstance] Fetched FeedbackSummaryInstance
|
107
|
-
def fetch
|
108
|
-
|
109
|
-
|
110
|
-
payload = @version.fetch('GET', @uri)
|
111
|
-
FeedbackSummaryInstance.new(
|
112
|
-
@version,
|
113
|
-
payload,
|
114
|
-
account_sid: @solution[:account_sid],
|
115
|
-
sid: @solution[:sid],
|
116
|
-
)
|
117
|
-
end
|
118
|
-
|
119
|
-
|
120
|
-
##
|
121
|
-
# Provide a user friendly representation
|
122
|
-
def to_s
|
123
|
-
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
|
124
|
-
"#<Twilio.Api.V2010.FeedbackSummaryContext #{context}>"
|
125
|
-
end
|
126
|
-
|
127
|
-
##
|
128
|
-
# Provide a detailed, user friendly representation
|
129
|
-
def inspect
|
130
|
-
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
|
131
|
-
"#<Twilio.Api.V2010.FeedbackSummaryContext #{context}>"
|
132
|
-
end
|
133
|
-
end
|
134
|
-
|
135
|
-
class FeedbackSummaryPage < Page
|
136
|
-
##
|
137
|
-
# Initialize the FeedbackSummaryPage
|
138
|
-
# @param [Version] version Version that contains the resource
|
139
|
-
# @param [Response] response Response from the API
|
140
|
-
# @param [Hash] solution Path solution for the resource
|
141
|
-
# @return [FeedbackSummaryPage] FeedbackSummaryPage
|
142
|
-
def initialize(version, response, solution)
|
143
|
-
super(version, response)
|
144
|
-
|
145
|
-
# Path Solution
|
146
|
-
@solution = solution
|
147
|
-
end
|
148
|
-
|
149
|
-
##
|
150
|
-
# Build an instance of FeedbackSummaryInstance
|
151
|
-
# @param [Hash] payload Payload response from the API
|
152
|
-
# @return [FeedbackSummaryInstance] FeedbackSummaryInstance
|
153
|
-
def get_instance(payload)
|
154
|
-
FeedbackSummaryInstance.new(@version, payload, account_sid: @solution[:account_sid])
|
155
|
-
end
|
156
|
-
|
157
|
-
##
|
158
|
-
# Provide a user friendly representation
|
159
|
-
def to_s
|
160
|
-
'<Twilio.Api.V2010.FeedbackSummaryPage>'
|
161
|
-
end
|
162
|
-
end
|
163
|
-
class FeedbackSummaryInstance < InstanceResource
|
164
|
-
##
|
165
|
-
# Initialize the FeedbackSummaryInstance
|
166
|
-
# @param [Version] version Version that contains the resource
|
167
|
-
# @param [Hash] payload payload that contains response from Twilio
|
168
|
-
# @param [String] account_sid The SID of the
|
169
|
-
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this FeedbackSummary
|
170
|
-
# resource.
|
171
|
-
# @param [String] sid The SID of the Call resource to fetch.
|
172
|
-
# @return [FeedbackSummaryInstance] FeedbackSummaryInstance
|
173
|
-
def initialize(version, payload , account_sid: nil, sid: nil)
|
174
|
-
super(version)
|
175
|
-
|
176
|
-
# Marshaled Properties
|
177
|
-
@properties = {
|
178
|
-
'account_sid' => payload['account_sid'],
|
179
|
-
'call_count' => payload['call_count'] == nil ? payload['call_count'] : payload['call_count'].to_i,
|
180
|
-
'call_feedback_count' => payload['call_feedback_count'] == nil ? payload['call_feedback_count'] : payload['call_feedback_count'].to_i,
|
181
|
-
'date_created' => Twilio.deserialize_rfc2822(payload['date_created']),
|
182
|
-
'date_updated' => Twilio.deserialize_rfc2822(payload['date_updated']),
|
183
|
-
'end_date' => Twilio.deserialize_iso8601_date(payload['end_date']),
|
184
|
-
'include_subaccounts' => payload['include_subaccounts'],
|
185
|
-
'issues' => payload['issues'],
|
186
|
-
'quality_score_average' => payload['quality_score_average'],
|
187
|
-
'quality_score_median' => payload['quality_score_median'],
|
188
|
-
'quality_score_standard_deviation' => payload['quality_score_standard_deviation'],
|
189
|
-
'sid' => payload['sid'],
|
190
|
-
'start_date' => Twilio.deserialize_iso8601_date(payload['start_date']),
|
191
|
-
'status' => payload['status'],
|
192
|
-
}
|
193
|
-
|
194
|
-
# Context
|
195
|
-
@instance_context = nil
|
196
|
-
@params = { 'account_sid' => account_sid ,'sid' => sid || @properties['sid'] , }
|
197
|
-
end
|
198
|
-
|
199
|
-
##
|
200
|
-
# Generate an instance context for the instance, the context is capable of
|
201
|
-
# performing various actions. All instance actions are proxied to the context
|
202
|
-
# @return [FeedbackSummaryContext] CallContext for this CallInstance
|
203
|
-
def context
|
204
|
-
unless @instance_context
|
205
|
-
@instance_context = FeedbackSummaryContext.new(@version , @params['account_sid'], @params['sid'])
|
206
|
-
end
|
207
|
-
@instance_context
|
208
|
-
end
|
209
|
-
|
210
|
-
##
|
211
|
-
# @return [String] The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource.
|
212
|
-
def account_sid
|
213
|
-
@properties['account_sid']
|
214
|
-
end
|
215
|
-
|
216
|
-
##
|
217
|
-
# @return [String] The total number of calls.
|
218
|
-
def call_count
|
219
|
-
@properties['call_count']
|
220
|
-
end
|
221
|
-
|
222
|
-
##
|
223
|
-
# @return [String] The total number of calls with a feedback entry.
|
224
|
-
def call_feedback_count
|
225
|
-
@properties['call_feedback_count']
|
226
|
-
end
|
227
|
-
|
228
|
-
##
|
229
|
-
# @return [Time] The date that this resource was created, given in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format.
|
230
|
-
def date_created
|
231
|
-
@properties['date_created']
|
232
|
-
end
|
233
|
-
|
234
|
-
##
|
235
|
-
# @return [Time] The date that this resource was last updated, given in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format.
|
236
|
-
def date_updated
|
237
|
-
@properties['date_updated']
|
238
|
-
end
|
239
|
-
|
240
|
-
##
|
241
|
-
# @return [Date] The last date for which feedback entries are included in this Feedback Summary, formatted as `YYYY-MM-DD` and specified in UTC.
|
242
|
-
def end_date
|
243
|
-
@properties['end_date']
|
244
|
-
end
|
245
|
-
|
246
|
-
##
|
247
|
-
# @return [Boolean] Whether the feedback summary includes subaccounts; `true` if it does, otherwise `false`.
|
248
|
-
def include_subaccounts
|
249
|
-
@properties['include_subaccounts']
|
250
|
-
end
|
251
|
-
|
252
|
-
##
|
253
|
-
# @return [Array<Hash>] A list of issues experienced during the call. The issues can be: `imperfect-audio`, `dropped-call`, `incorrect-caller-id`, `post-dial-delay`, `digits-not-captured`, `audio-latency`, or `one-way-audio`.
|
254
|
-
def issues
|
255
|
-
@properties['issues']
|
256
|
-
end
|
257
|
-
|
258
|
-
##
|
259
|
-
# @return [Float] The average QualityScore of the feedback entries.
|
260
|
-
def quality_score_average
|
261
|
-
@properties['quality_score_average']
|
262
|
-
end
|
263
|
-
|
264
|
-
##
|
265
|
-
# @return [Float] The median QualityScore of the feedback entries.
|
266
|
-
def quality_score_median
|
267
|
-
@properties['quality_score_median']
|
268
|
-
end
|
269
|
-
|
270
|
-
##
|
271
|
-
# @return [Float] The standard deviation of the quality scores.
|
272
|
-
def quality_score_standard_deviation
|
273
|
-
@properties['quality_score_standard_deviation']
|
274
|
-
end
|
275
|
-
|
276
|
-
##
|
277
|
-
# @return [String] A 34 character string that uniquely identifies this resource.
|
278
|
-
def sid
|
279
|
-
@properties['sid']
|
280
|
-
end
|
281
|
-
|
282
|
-
##
|
283
|
-
# @return [Date] The first date for which feedback entries are included in this feedback summary, formatted as `YYYY-MM-DD` and specified in UTC.
|
284
|
-
def start_date
|
285
|
-
@properties['start_date']
|
286
|
-
end
|
287
|
-
|
288
|
-
##
|
289
|
-
# @return [Status]
|
290
|
-
def status
|
291
|
-
@properties['status']
|
292
|
-
end
|
293
|
-
|
294
|
-
##
|
295
|
-
# Delete the FeedbackSummaryInstance
|
296
|
-
# @return [Boolean] True if delete succeeds, false otherwise
|
297
|
-
def delete
|
298
|
-
|
299
|
-
context.delete
|
300
|
-
end
|
301
|
-
|
302
|
-
##
|
303
|
-
# Fetch the FeedbackSummaryInstance
|
304
|
-
# @return [FeedbackSummaryInstance] Fetched FeedbackSummaryInstance
|
305
|
-
def fetch
|
306
|
-
|
307
|
-
context.fetch
|
308
|
-
end
|
309
|
-
|
310
|
-
##
|
311
|
-
# Provide a user friendly representation
|
312
|
-
def to_s
|
313
|
-
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
|
314
|
-
"<Twilio.Api.V2010.FeedbackSummaryInstance #{values}>"
|
315
|
-
end
|
316
|
-
|
317
|
-
##
|
318
|
-
# Provide a detailed, user friendly representation
|
319
|
-
def inspect
|
320
|
-
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
|
321
|
-
"<Twilio.Api.V2010.FeedbackSummaryInstance #{values}>"
|
322
|
-
end
|
323
|
-
end
|
324
|
-
|
325
|
-
end
|
326
|
-
end
|
327
|
-
end
|
328
|
-
end
|
329
|
-
end
|
330
|
-
end
|
331
|
-
|
332
|
-
|