twilio-ruby 6.12.1 → 7.0.0.pre.rc.1
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 +10 -57
- data/README.md +2 -2
- data/UPGRADE.md +10 -0
- data/lib/twilio-ruby/framework/request.rb +8 -1
- data/lib/twilio-ruby/http/http_client.rb +10 -3
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +267 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +332 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +0 -2
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +37 -28
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +3 -27
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +0 -2
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +0 -2
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +5 -17
- data/lib/twilio-ruby/rest/client.rb +5 -0
- data/lib/twilio-ruby/rest/content/v1/content/approval_create.rb +184 -0
- data/lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb +0 -2
- data/lib/twilio-ruby/rest/content/v1/content.rb +363 -3
- data/lib/twilio-ruby/rest/content/v1/content_and_approvals.rb +1 -1
- data/lib/twilio-ruby/rest/content/v1/legacy_content.rb +1 -1
- data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +0 -2
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +21 -0
- data/lib/twilio-ruby/rest/flex_api/v1/insights_conversational_ai.rb +274 -0
- data/lib/twilio-ruby/rest/flex_api/v1/insights_conversational_ai_report_insights.rb +253 -0
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb +0 -2
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb +0 -2
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb +0 -2
- data/lib/twilio-ruby/rest/flex_api/v1/insights_session.rb +0 -2
- data/lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.rb +0 -2
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_participant.rb +1 -11
- data/lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb +0 -2
- data/lib/twilio-ruby/rest/flex_api/v1.rb +30 -112
- data/lib/twilio-ruby/rest/frontline_api/v1/user.rb +0 -2
- data/lib/twilio-ruby/rest/insights/v1/call/annotation.rb +0 -2
- data/lib/twilio-ruby/rest/insights/v1/room/participant.rb +0 -2
- data/lib/twilio-ruby/rest/insights/v1/room.rb +0 -2
- data/lib/twilio-ruby/rest/intelligence/v2/service.rb +0 -2
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/media.rb +0 -2
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/operator_result.rb +0 -2
- data/lib/twilio-ruby/rest/intelligence/v2/transcript.rb +0 -2
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +1 -1
- data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +6 -8
- data/lib/twilio-ruby/rest/media/v1/media_recording.rb +0 -2
- data/lib/twilio-ruby/rest/media.rb +32 -3
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_vetting.rb +0 -2
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +2 -11
- data/lib/twilio-ruby/rest/messaging/v1/domain_certs.rb +0 -2
- data/lib/twilio-ruby/rest/messaging/v1/domain_config.rb +0 -2
- data/lib/twilio-ruby/rest/messaging/v1/domain_config_messaging_service.rb +0 -2
- data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service.rb +0 -2
- data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service_domain_association.rb +0 -2
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +0 -2
- data/lib/twilio-ruby/rest/messaging/v1/service/channel_sender.rb +0 -2
- data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +0 -2
- data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +0 -2
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +0 -2
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +0 -2
- data/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb +4 -13
- data/lib/twilio-ruby/rest/microvisor/v1/account_config.rb +0 -2
- data/lib/twilio-ruby/rest/microvisor/v1/account_secret.rb +0 -2
- data/lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb +0 -2
- data/lib/twilio-ruby/rest/microvisor/v1/app.rb +0 -2
- data/lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb +0 -2
- data/lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb +0 -2
- data/lib/twilio-ruby/rest/microvisor/v1/device.rb +0 -2
- data/lib/twilio-ruby/rest/notify/v1/credential.rb +0 -2
- data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +0 -2
- data/lib/twilio-ruby/rest/notify/v1/service.rb +0 -2
- data/lib/twilio-ruby/rest/numbers/v1/bulk_eligibility.rb +13 -2
- data/lib/twilio-ruby/rest/numbers/v1/eligibility.rb +125 -0
- data/lib/twilio-ruby/rest/numbers/v1/porting_bulk_portability.rb +0 -2
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb +132 -0
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in_fetch.rb +0 -2
- data/lib/twilio-ruby/rest/numbers/v1/porting_portability.rb +0 -2
- data/lib/twilio-ruby/rest/numbers/v1.rb +15 -3
- data/lib/twilio-ruby/rest/numbers/v2/authorization_document.rb +0 -2
- data/lib/twilio-ruby/rest/numbers/v2/bulk_hosted_number_order.rb +13 -2
- data/lib/twilio-ruby/rest/numbers/v2/hosted_number_order.rb +0 -2
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +3 -15
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/certificate.rb +0 -2
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/deployment.rb +0 -2
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/device.rb +0 -2
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/key.rb +0 -2
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +0 -2
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +0 -2
- data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +0 -2
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb +0 -2
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +0 -2
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb +0 -2
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +0 -2
- data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +0 -2
- data/lib/twilio-ruby/rest/preview/sync/service/document.rb +0 -2
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +0 -2
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +0 -2
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +0 -2
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +0 -2
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +0 -2
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +0 -2
- data/lib/twilio-ruby/rest/preview/sync/service.rb +0 -2
- data/lib/twilio-ruby/rest/preview/wireless/command.rb +0 -2
- data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +0 -2
- data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +0 -2
- data/lib/twilio-ruby/rest/preview/wireless/sim.rb +0 -2
- data/lib/twilio-ruby/rest/preview_messaging/v1/broadcast.rb +164 -0
- data/lib/twilio-ruby/rest/preview_messaging/v1/message.rb +235 -0
- data/lib/twilio-ruby/rest/preview_messaging/v1.rb +46 -0
- data/lib/twilio-ruby/rest/preview_messaging.rb +12 -0
- data/lib/twilio-ruby/rest/preview_messaging_base.rb +38 -0
- data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +0 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +0 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +0 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +0 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +0 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb +0 -2
- data/lib/twilio-ruby/rest/proxy/v1/service.rb +0 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +0 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +0 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/build/build_status.rb +0 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +0 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +0 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +0 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +0 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +0 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb +0 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +0 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +0 -2
- data/lib/twilio-ruby/rest/serverless/v1/service.rb +0 -2
- data/lib/twilio-ruby/rest/supersim/v1/esim_profile.rb +0 -2
- data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +0 -2
- data/lib/twilio-ruby/rest/supersim/v1/ip_command.rb +0 -2
- data/lib/twilio-ruby/rest/supersim/v1/network.rb +0 -2
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +0 -2
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +0 -2
- data/lib/twilio-ruby/rest/supersim/v1/sim.rb +0 -2
- data/lib/twilio-ruby/rest/supersim/v1/sms_command.rb +0 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_bulk_real_time_statistics.rb +161 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +8 -8
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_registration_inquiries.rb +2 -26
- data/lib/twilio-ruby/rest/verify/v2/form.rb +0 -2
- data/lib/twilio-ruby/rest/verify/v2/safelist.rb +0 -2
- data/lib/twilio-ruby/rest/voice/v1/archived_call.rb +0 -2
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +0 -2
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/settings.rb +0 -2
- data/lib/twilio-ruby/twiml/messaging_response.rb +1 -1
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +17 -12
- data/lib/twilio-ruby/rest/flex_api/v1/plugin/plugin_versions.rb +0 -384
- data/lib/twilio-ruby/rest/flex_api/v1/plugin.rb +0 -446
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_archive.rb +0 -247
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration/configured_plugin.rb +0 -393
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration.rb +0 -386
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration_archive.rb +0 -233
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_release.rb +0 -332
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_version_archive.rb +0 -256
@@ -0,0 +1,332 @@
|
|
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
|
+
|
@@ -110,8 +110,6 @@ module Twilio
|
|
110
110
|
end
|
111
111
|
|
112
112
|
|
113
|
-
##
|
114
|
-
#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.
|
115
113
|
class PaymentContext < InstanceContext
|
116
114
|
##
|
117
115
|
# Initialize the PaymentContext
|
@@ -30,7 +30,8 @@ module Twilio
|
|
30
30
|
# Path Solution
|
31
31
|
@solution = { account_sid: account_sid }
|
32
32
|
@uri = "/Accounts/#{@solution[:account_sid]}/Calls.json"
|
33
|
-
|
33
|
+
# Components
|
34
|
+
@feedback_summaries = nil
|
34
35
|
end
|
35
36
|
##
|
36
37
|
# Create the CallInstance
|
@@ -165,11 +166,7 @@ module Twilio
|
|
165
166
|
# @param [String] parent_call_sid Only include calls spawned by calls with this SID.
|
166
167
|
# @param [Status] status The status of the calls to include. Can be: `queued`, `ringing`, `in-progress`, `canceled`, `completed`, `failed`, `busy`, or `no-answer`.
|
167
168
|
# @param [Time] start_time Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date.
|
168
|
-
# @param [Time] start_time_before Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date.
|
169
|
-
# @param [Time] start_time_after Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date.
|
170
169
|
# @param [Time] end_time Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date.
|
171
|
-
# @param [Time] end_time_before Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date.
|
172
|
-
# @param [Time] end_time_after Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date.
|
173
170
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
174
171
|
# guarantees to never return more than limit. Default is no limit
|
175
172
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -177,18 +174,14 @@ module Twilio
|
|
177
174
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
178
175
|
# efficient page size, i.e. min(limit, 1000)
|
179
176
|
# @return [Array] Array of up to limit results
|
180
|
-
def list(to: :unset, from: :unset, parent_call_sid: :unset, status: :unset, start_time: :unset,
|
177
|
+
def list(to: :unset, from: :unset, parent_call_sid: :unset, status: :unset, start_time: :unset, end_time: :unset, limit: nil, page_size: nil)
|
181
178
|
self.stream(
|
182
179
|
to: to,
|
183
180
|
from: from,
|
184
181
|
parent_call_sid: parent_call_sid,
|
185
182
|
status: status,
|
186
183
|
start_time: start_time,
|
187
|
-
start_time_before: start_time_before,
|
188
|
-
start_time_after: start_time_after,
|
189
184
|
end_time: end_time,
|
190
|
-
end_time_before: end_time_before,
|
191
|
-
end_time_after: end_time_after,
|
192
185
|
limit: limit,
|
193
186
|
page_size: page_size
|
194
187
|
).entries
|
@@ -203,11 +196,7 @@ module Twilio
|
|
203
196
|
# @param [String] parent_call_sid Only include calls spawned by calls with this SID.
|
204
197
|
# @param [Status] status The status of the calls to include. Can be: `queued`, `ringing`, `in-progress`, `canceled`, `completed`, `failed`, `busy`, or `no-answer`.
|
205
198
|
# @param [Time] start_time Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date.
|
206
|
-
# @param [Time] start_time_before Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date.
|
207
|
-
# @param [Time] start_time_after Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date.
|
208
199
|
# @param [Time] end_time Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date.
|
209
|
-
# @param [Time] end_time_before Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date.
|
210
|
-
# @param [Time] end_time_after Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date.
|
211
200
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
212
201
|
# guarantees to never return more than limit. Default is no limit
|
213
202
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -215,7 +204,7 @@ module Twilio
|
|
215
204
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
216
205
|
# efficient page size, i.e. min(limit, 1000)
|
217
206
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
218
|
-
def stream(to: :unset, from: :unset, parent_call_sid: :unset, status: :unset, start_time: :unset,
|
207
|
+
def stream(to: :unset, from: :unset, parent_call_sid: :unset, status: :unset, start_time: :unset, end_time: :unset, limit: nil, page_size: nil)
|
219
208
|
limits = @version.read_limits(limit, page_size)
|
220
209
|
|
221
210
|
page = self.page(
|
@@ -224,11 +213,7 @@ module Twilio
|
|
224
213
|
parent_call_sid: parent_call_sid,
|
225
214
|
status: status,
|
226
215
|
start_time: start_time,
|
227
|
-
start_time_before: start_time_before,
|
228
|
-
start_time_after: start_time_after,
|
229
216
|
end_time: end_time,
|
230
|
-
end_time_before: end_time_before,
|
231
|
-
end_time_after: end_time_after,
|
232
217
|
page_size: limits[:page_size], )
|
233
218
|
|
234
219
|
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
@@ -256,27 +241,19 @@ module Twilio
|
|
256
241
|
# @param [String] parent_call_sid Only include calls spawned by calls with this SID.
|
257
242
|
# @param [Status] status The status of the calls to include. Can be: `queued`, `ringing`, `in-progress`, `canceled`, `completed`, `failed`, `busy`, or `no-answer`.
|
258
243
|
# @param [Time] start_time Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date.
|
259
|
-
# @param [Time] start_time_before Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date.
|
260
|
-
# @param [Time] start_time_after Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date.
|
261
244
|
# @param [Time] end_time Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date.
|
262
|
-
# @param [Time] end_time_before Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date.
|
263
|
-
# @param [Time] end_time_after Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date.
|
264
245
|
# @param [String] page_token PageToken provided by the API
|
265
246
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
266
247
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
267
248
|
# @return [Page] Page of CallInstance
|
268
|
-
def page(to: :unset, from: :unset, parent_call_sid: :unset, status: :unset, start_time: :unset,
|
249
|
+
def page(to: :unset, from: :unset, parent_call_sid: :unset, status: :unset, start_time: :unset, end_time: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
269
250
|
params = Twilio::Values.of({
|
270
251
|
'To' => to,
|
271
252
|
'From' => from,
|
272
253
|
'ParentCallSid' => parent_call_sid,
|
273
254
|
'Status' => status,
|
274
255
|
'StartTime' => Twilio.serialize_iso8601_datetime(start_time),
|
275
|
-
'StartTime<' => Twilio.serialize_iso8601_datetime(start_time_before),
|
276
|
-
'StartTime>' => Twilio.serialize_iso8601_datetime(start_time_after),
|
277
256
|
'EndTime' => Twilio.serialize_iso8601_datetime(end_time),
|
278
|
-
'EndTime<' => Twilio.serialize_iso8601_datetime(end_time_before),
|
279
|
-
'EndTime>' => Twilio.serialize_iso8601_datetime(end_time_after),
|
280
257
|
'PageToken' => page_token,
|
281
258
|
'Page' => page_number,
|
282
259
|
'PageSize' => page_size,
|
@@ -301,6 +278,19 @@ module Twilio
|
|
301
278
|
end
|
302
279
|
|
303
280
|
|
281
|
+
##
|
282
|
+
# Access the feedback_summaries
|
283
|
+
# @return [FeedbackSummaryList]
|
284
|
+
# @return [FeedbackSummaryContext] if sid was passed.
|
285
|
+
def feedback_summaries(sid=:unset)
|
286
|
+
raise ArgumentError, 'sid cannot be nil' if sid.nil?
|
287
|
+
|
288
|
+
if sid != :unset
|
289
|
+
return FeedbackSummaryContext.new(@version, @solution[:account_sid],sid )
|
290
|
+
end
|
291
|
+
|
292
|
+
@feedback_summaries ||= FeedbackSummaryList.new(@version, account_sid: @solution[:account_sid] )
|
293
|
+
end
|
304
294
|
|
305
295
|
# Provide a user friendly representation
|
306
296
|
def to_s
|
@@ -331,6 +321,7 @@ module Twilio
|
|
331
321
|
@payments = nil
|
332
322
|
@recordings = nil
|
333
323
|
@notifications = nil
|
324
|
+
@feedback = nil
|
334
325
|
@streams = nil
|
335
326
|
end
|
336
327
|
##
|
@@ -521,6 +512,17 @@ module Twilio
|
|
521
512
|
@notifications
|
522
513
|
end
|
523
514
|
##
|
515
|
+
# Access the feedback
|
516
|
+
# @return [FeedbackList]
|
517
|
+
# @return [FeedbackContext]
|
518
|
+
def feedback
|
519
|
+
FeedbackContext.new(
|
520
|
+
@version,
|
521
|
+
@solution[:account_sid],
|
522
|
+
@solution[:sid]
|
523
|
+
)
|
524
|
+
end
|
525
|
+
##
|
524
526
|
# Access the streams
|
525
527
|
# @return [StreamList]
|
526
528
|
# @return [StreamContext] if sid was passed.
|
@@ -900,6 +902,13 @@ module Twilio
|
|
900
902
|
context.notifications
|
901
903
|
end
|
902
904
|
|
905
|
+
##
|
906
|
+
# Access the feedback
|
907
|
+
# @return [feedback] feedback
|
908
|
+
def feedback
|
909
|
+
context.feedback
|
910
|
+
end
|
911
|
+
|
903
912
|
##
|
904
913
|
# Access the streams
|
905
914
|
# @return [streams] streams
|
@@ -38,11 +38,7 @@ module Twilio
|
|
38
38
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
39
39
|
# memory before returning.
|
40
40
|
# @param [Date] date_created The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`.
|
41
|
-
# @param [Date] date_created_before The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`.
|
42
|
-
# @param [Date] date_created_after The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`.
|
43
41
|
# @param [Date] date_updated The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`.
|
44
|
-
# @param [Date] date_updated_before The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`.
|
45
|
-
# @param [Date] date_updated_after The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`.
|
46
42
|
# @param [String] friendly_name The string that identifies the Conference resources to read.
|
47
43
|
# @param [Status] status The status of the resources to read. Can be: `init`, `in-progress`, or `completed`.
|
48
44
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
@@ -52,14 +48,10 @@ module Twilio
|
|
52
48
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
53
49
|
# efficient page size, i.e. min(limit, 1000)
|
54
50
|
# @return [Array] Array of up to limit results
|
55
|
-
def list(date_created: :unset,
|
51
|
+
def list(date_created: :unset, date_updated: :unset, friendly_name: :unset, status: :unset, limit: nil, page_size: nil)
|
56
52
|
self.stream(
|
57
53
|
date_created: date_created,
|
58
|
-
date_created_before: date_created_before,
|
59
|
-
date_created_after: date_created_after,
|
60
54
|
date_updated: date_updated,
|
61
|
-
date_updated_before: date_updated_before,
|
62
|
-
date_updated_after: date_updated_after,
|
63
55
|
friendly_name: friendly_name,
|
64
56
|
status: status,
|
65
57
|
limit: limit,
|
@@ -72,11 +64,7 @@ module Twilio
|
|
72
64
|
# This operation lazily loads records as efficiently as possible until the limit
|
73
65
|
# is reached.
|
74
66
|
# @param [Date] date_created The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`.
|
75
|
-
# @param [Date] date_created_before The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`.
|
76
|
-
# @param [Date] date_created_after The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`.
|
77
67
|
# @param [Date] date_updated The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`.
|
78
|
-
# @param [Date] date_updated_before The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`.
|
79
|
-
# @param [Date] date_updated_after The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`.
|
80
68
|
# @param [String] friendly_name The string that identifies the Conference resources to read.
|
81
69
|
# @param [Status] status The status of the resources to read. Can be: `init`, `in-progress`, or `completed`.
|
82
70
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
@@ -86,16 +74,12 @@ module Twilio
|
|
86
74
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
87
75
|
# efficient page size, i.e. min(limit, 1000)
|
88
76
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
89
|
-
def stream(date_created: :unset,
|
77
|
+
def stream(date_created: :unset, date_updated: :unset, friendly_name: :unset, status: :unset, limit: nil, page_size: nil)
|
90
78
|
limits = @version.read_limits(limit, page_size)
|
91
79
|
|
92
80
|
page = self.page(
|
93
81
|
date_created: date_created,
|
94
|
-
date_created_before: date_created_before,
|
95
|
-
date_created_after: date_created_after,
|
96
82
|
date_updated: date_updated,
|
97
|
-
date_updated_before: date_updated_before,
|
98
|
-
date_updated_after: date_updated_after,
|
99
83
|
friendly_name: friendly_name,
|
100
84
|
status: status,
|
101
85
|
page_size: limits[:page_size], )
|
@@ -121,25 +105,17 @@ module Twilio
|
|
121
105
|
# Retrieve a single page of ConferenceInstance records from the API.
|
122
106
|
# Request is executed immediately.
|
123
107
|
# @param [Date] date_created The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`.
|
124
|
-
# @param [Date] date_created_before The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`.
|
125
|
-
# @param [Date] date_created_after The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`.
|
126
108
|
# @param [Date] date_updated The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`.
|
127
|
-
# @param [Date] date_updated_before The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`.
|
128
|
-
# @param [Date] date_updated_after The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`.
|
129
109
|
# @param [String] friendly_name The string that identifies the Conference resources to read.
|
130
110
|
# @param [Status] status The status of the resources to read. Can be: `init`, `in-progress`, or `completed`.
|
131
111
|
# @param [String] page_token PageToken provided by the API
|
132
112
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
133
113
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
134
114
|
# @return [Page] Page of ConferenceInstance
|
135
|
-
def page(date_created: :unset,
|
115
|
+
def page(date_created: :unset, date_updated: :unset, friendly_name: :unset, status: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
136
116
|
params = Twilio::Values.of({
|
137
117
|
'DateCreated' => Twilio.serialize_iso8601_date(date_created),
|
138
|
-
'DateCreated<' => Twilio.serialize_iso8601_date(date_created_before),
|
139
|
-
'DateCreated>' => Twilio.serialize_iso8601_date(date_created_after),
|
140
118
|
'DateUpdated' => Twilio.serialize_iso8601_date(date_updated),
|
141
|
-
'DateUpdated<' => Twilio.serialize_iso8601_date(date_updated_before),
|
142
|
-
'DateUpdated>' => Twilio.serialize_iso8601_date(date_updated_after),
|
143
119
|
'FriendlyName' => friendly_name,
|
144
120
|
'Status' => status,
|
145
121
|
'PageToken' => page_token,
|
@@ -128,8 +128,6 @@ module Twilio
|
|
128
128
|
end
|
129
129
|
|
130
130
|
|
131
|
-
##
|
132
|
-
#PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
133
131
|
class AssignedAddOnExtensionContext < InstanceContext
|
134
132
|
##
|
135
133
|
# Initialize the AssignedAddOnExtensionContext
|