twilio-ruby 7.11.1 → 7.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGES.md +221 -0
- data/Gemfile.lock +2 -2
- data/README.md +2 -2
- data/lib/rack/twilio_webhook_authentication.rb +45 -2
- data/lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb +0 -59
- data/lib/twilio-ruby/rest/accounts/v1/bulk_consents.rb +0 -59
- data/lib/twilio-ruby/rest/accounts/v1/bulk_contacts.rb +0 -59
- data/lib/twilio-ruby/rest/accounts/v1/credential.rb +0 -59
- data/lib/twilio-ruby/rest/accounts/v1/messaging_geopermissions.rb +0 -59
- data/lib/twilio-ruby/rest/accounts/v1/safelist.rb +0 -59
- data/lib/twilio-ruby/rest/accounts/v1/secondary_auth_token.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/balance.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/call/siprec.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/call/stream.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/call/transcription.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message_subscription.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +6 -0
- data/lib/twilio-ruby/rest/api/v2010/account/new_key.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload/data.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_registrations.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/sip.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/token.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/usage.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb +0 -59
- data/lib/twilio-ruby/rest/bulkexports/v1/export/job.rb +0 -59
- data/lib/twilio-ruby/rest/bulkexports/v1/export.rb +0 -59
- data/lib/twilio-ruby/rest/bulkexports/v1/export_configuration.rb +0 -59
- data/lib/twilio-ruby/rest/chat/v3/channel.rb +0 -59
- data/lib/twilio-ruby/rest/content/v1/content/approval_create.rb +0 -59
- data/lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v1/configuration/webhook.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v1/configuration.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v1/conversation_with_participants.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration/notification.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration/webhook.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation_with_participants.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v2/action.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v2/configuration.rb +525 -0
- data/lib/twilio-ruby/rest/conversations/v2/operation.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v2.rb +10 -4
- data/lib/twilio-ruby/rest/events/v1/schema.rb +0 -59
- data/lib/twilio-ruby/rest/events/v1/sink/sink_test.rb +0 -59
- data/lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +12 -14
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb +12 -14
- data/lib/twilio-ruby/rest/flex_api/v1/insights_conversations.rb +12 -14
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb +12 -14
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb +2 -4
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb +12 -14
- data/lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb +12 -14
- data/lib/twilio-ruby/rest/flex_api/v1/insights_session.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_answer_sets.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_transfer.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/interaction.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/plugin/plugin_versions.rb +2 -4
- data/lib/twilio-ruby/rest/flex_api/v1/plugin.rb +2 -4
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_archive.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration/configured_plugin.rb +2 -4
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration.rb +2 -4
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration_archive.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_release.rb +2 -4
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_version_archive.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v2/flex_user.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v2/web_channels.rb +0 -59
- data/lib/twilio-ruby/rest/frontline_api/v1/user.rb +0 -59
- data/lib/twilio-ruby/rest/iam/v1/api_key.rb +0 -59
- data/lib/twilio-ruby/rest/iam/v1/new_api_key.rb +0 -59
- data/lib/twilio-ruby/rest/iam/v1/o_auth_app.rb +0 -59
- data/lib/twilio-ruby/rest/iam/v1/token.rb +0 -59
- data/lib/twilio-ruby/rest/insights/v1/call/annotation.rb +0 -59
- data/lib/twilio-ruby/rest/insights/v1/call/call_summary.rb +0 -59
- data/lib/twilio-ruby/rest/insights/v1/call.rb +0 -59
- data/lib/twilio-ruby/rest/insights/v1/setting.rb +0 -59
- data/lib/twilio-ruby/rest/insights/v2/inbound.rb +2 -261
- data/lib/twilio-ruby/rest/insights/v2/inbound_report.rb +258 -0
- data/lib/twilio-ruby/rest/insights/v2/outbound.rb +18 -299
- data/lib/twilio-ruby/rest/insights/v2/outbound_report.rb +258 -0
- data/lib/twilio-ruby/rest/insights/v2/report.rb +27 -184
- data/lib/twilio-ruby/rest/insights/v2.rb +14 -4
- data/lib/twilio-ruby/rest/insights/v3/metadata.rb +1 -60
- data/lib/twilio-ruby/rest/insights/v3/query.rb +1 -60
- data/lib/twilio-ruby/rest/insights/v3/query_job.rb +654 -0
- data/lib/twilio-ruby/rest/insights/v3/result.rb +195 -0
- data/lib/twilio-ruby/rest/insights/v3.rb +17 -1
- data/lib/twilio-ruby/rest/intelligence/v2/operator_attachment.rb +0 -59
- data/lib/twilio-ruby/rest/intelligence/v2/operator_attachments.rb +0 -59
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_operator_results.rb +0 -59
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_sentences.rb +0 -59
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/media.rb +0 -59
- data/lib/twilio-ruby/rest/intelligence/v3/rule_execution.rb +0 -59
- data/lib/twilio-ruby/rest/knowledge/v1/knowledge/knowledge_status.rb +0 -59
- data/lib/twilio-ruby/rest/knowledge/v2/operation.rb +0 -59
- data/lib/twilio-ruby/rest/knowledge/v2/search.rb +0 -59
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +0 -59
- data/lib/twilio-ruby/rest/lookups/v2/bucket.rb +0 -59
- data/lib/twilio-ruby/rest/lookups/v2/lookup_override.rb +0 -59
- data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +0 -59
- data/lib/twilio-ruby/rest/lookups/v2/query.rb +0 -59
- data/lib/twilio-ruby/rest/lookups/v2/rate_limit.rb +0 -59
- data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_usage.rb +0 -59
- data/lib/twilio-ruby/rest/marketplace/v1/module_data.rb +0 -59
- data/lib/twilio-ruby/rest/marketplace/v1/module_data_management.rb +0 -59
- data/lib/twilio-ruby/rest/marketplace/v1/referral_conversion.rb +0 -59
- data/lib/twilio-ruby/rest/memory/v1/bulk.rb +0 -59
- data/lib/twilio-ruby/rest/memory/v1/conversation_summary.rb +2 -4
- data/lib/twilio-ruby/rest/memory/v1/identifier.rb +0 -80
- data/lib/twilio-ruby/rest/memory/v1/identity_resolution_setting.rb +0 -59
- data/lib/twilio-ruby/rest/memory/v1/lookup.rb +0 -59
- data/lib/twilio-ruby/rest/memory/v1/observation.rb +2 -4
- data/lib/twilio-ruby/rest/memory/v1/operation.rb +0 -59
- data/lib/twilio-ruby/rest/memory/v1/recall.rb +0 -59
- data/lib/twilio-ruby/rest/memory/v1/revision.rb +2 -4
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_registration_otp.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/deactivations.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/domain_certs.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/domain_config.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/domain_config_messaging_service.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/domain_validate_dn.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/external_campaign.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service_domain_association.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/request_managed_cert.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +2 -4
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person_usecase.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/usecase.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v2/domain_certs.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v2/typing_indicator.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v3/typing_indicator.rb +0 -59
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/bulk_eligibility.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/eligibility.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/embedded_session.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in_phone_number.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/porting_portability.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_delete.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/sender_id_registration.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/sms_verification.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/sms_verification_check.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/voice_verification.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/voice_verification_check.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/webhook.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v2/bulk_hosted_number_order.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v2/bundle_clone.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/replace_items.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v2.rb +0 -16
- data/lib/twilio-ruby/rest/numbers/v3/hosted_number_order.rb +0 -59
- data/lib/twilio-ruby/rest/oauth/v1/authorize.rb +0 -59
- data/lib/twilio-ruby/rest/oauth/v1/token.rb +0 -59
- data/lib/twilio-ruby/rest/oauth/v2/authorize.rb +0 -59
- data/lib/twilio-ruby/rest/oauth/v2/oauth_authorization_server.rb +0 -59
- data/lib/twilio-ruby/rest/oauth/v2/token.rb +2 -61
- data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +0 -59
- data/lib/twilio-ruby/rest/preview_iam/v1/authorize.rb +0 -59
- data/lib/twilio-ruby/rest/preview_iam/v1/token.rb +0 -59
- data/lib/twilio-ruby/rest/preview_iam/versionless/organization.rb +0 -59
- data/lib/twilio-ruby/rest/pricing/v1/messaging.rb +0 -59
- data/lib/twilio-ruby/rest/pricing/v1/phone_number.rb +0 -59
- data/lib/twilio-ruby/rest/pricing/v1/voice/number.rb +0 -59
- data/lib/twilio-ruby/rest/pricing/v1/voice.rb +0 -59
- data/lib/twilio-ruby/rest/pricing/v2/number.rb +0 -59
- data/lib/twilio-ruby/rest/pricing/v2/voice/number.rb +0 -59
- data/lib/twilio-ruby/rest/pricing/v2/voice.rb +0 -59
- data/lib/twilio-ruby/rest/routes/v2/phone_number.rb +0 -59
- data/lib/twilio-ruby/rest/routes/v2/sip_domain.rb +0 -59
- data/lib/twilio-ruby/rest/routes/v2/trunk.rb +0 -59
- data/lib/twilio-ruby/rest/routes/v3/phone_number.rb +0 -59
- data/lib/twilio-ruby/rest/serverless/v1/service/build/build_status.rb +0 -59
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_context.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_context.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step/execution_step_context.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v2/flow/flow_test_user.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v2/flow_validate.rb +0 -59
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_bulk_real_time_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/trunking/v1/trunk/recording.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/a2p_brand_registration.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/a2p_brand_registration_embedded_session.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/a2p_campaign_registration.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/a2p_campaign_registration_embedded_session.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_registration_inquiries.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles_provisional_copy.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products_provisional_copy.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/form.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/safelist.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/service/access_token.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/service/new_challenge.rb +3 -62
- data/lib/twilio-ruby/rest/verify/v2/service/new_factor.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/service/new_verify_factor.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +8 -61
- data/lib/twilio-ruby/rest/verify/v2/service/verification_check.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/verification_attempts_summary.rb +0 -59
- data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +0 -59
- data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +0 -59
- data/lib/twilio-ruby/rest/video/v1/room/participant/anonymize.rb +0 -59
- data/lib/twilio-ruby/rest/video/v1/room/participant/subscribe_rules.rb +0 -59
- data/lib/twilio-ruby/rest/video/v1/room/recording_rules.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v1/archived_call.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/settings.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v2/account_default_configuration.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v2/configuration/default.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v2/configuration.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v2/recording.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v2/transcription.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v2/type.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v3/transcription.rb +259 -50
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +6 -4
- data/lib/twilio-ruby/rest/memory/v1/event.rb +0 -320
- data/lib/twilio-ruby/rest/numbers/v2/caller_id.rb +0 -515
|
@@ -132,65 +132,6 @@ module Twilio
|
|
|
132
132
|
end
|
|
133
133
|
end
|
|
134
134
|
|
|
135
|
-
class EmbeddedSessionPageMetadata < PageMetadata
|
|
136
|
-
attr_reader :embedded_session_page
|
|
137
|
-
|
|
138
|
-
def initialize(version, response, solution, limit)
|
|
139
|
-
super(version, response)
|
|
140
|
-
@embedded_session_page = []
|
|
141
|
-
@limit = limit
|
|
142
|
-
key = get_key(response.body)
|
|
143
|
-
records = 0
|
|
144
|
-
while( limit != :unset && records < limit )
|
|
145
|
-
@embedded_session_page << EmbeddedSessionListResponse.new(version, @payload, key, limit - records)
|
|
146
|
-
@payload = self.next_page
|
|
147
|
-
break unless @payload
|
|
148
|
-
records += (@payload.body[key] || []).size
|
|
149
|
-
end
|
|
150
|
-
# Path Solution
|
|
151
|
-
@solution = solution
|
|
152
|
-
end
|
|
153
|
-
|
|
154
|
-
def each
|
|
155
|
-
@embedded_session_page.each do |record|
|
|
156
|
-
yield record
|
|
157
|
-
end
|
|
158
|
-
end
|
|
159
|
-
|
|
160
|
-
def to_s
|
|
161
|
-
'<Twilio::REST::Numbers::V1PageMetadata>';
|
|
162
|
-
end
|
|
163
|
-
end
|
|
164
|
-
class EmbeddedSessionListResponse < InstanceListResource
|
|
165
|
-
|
|
166
|
-
# @param [Array<EmbeddedSessionInstance>] instance
|
|
167
|
-
# @param [Hash{String => Object}] headers
|
|
168
|
-
# @param [Integer] status_code
|
|
169
|
-
def initialize(version, payload, key, limit = :unset)
|
|
170
|
-
data_list = payload.body[key] || []
|
|
171
|
-
if limit != :unset
|
|
172
|
-
data_list = data_list[0, limit]
|
|
173
|
-
end
|
|
174
|
-
@embedded_session = data_list.map do |data|
|
|
175
|
-
EmbeddedSessionInstance.new(version, data)
|
|
176
|
-
end
|
|
177
|
-
@headers = payload.headers
|
|
178
|
-
@status_code = payload.status_code
|
|
179
|
-
end
|
|
180
|
-
|
|
181
|
-
def embedded_session
|
|
182
|
-
@embedded_session
|
|
183
|
-
end
|
|
184
|
-
|
|
185
|
-
def headers
|
|
186
|
-
@headers
|
|
187
|
-
end
|
|
188
|
-
|
|
189
|
-
def status_code
|
|
190
|
-
@status_code
|
|
191
|
-
end
|
|
192
|
-
end
|
|
193
|
-
|
|
194
135
|
class EmbeddedSessionInstance < InstanceResource
|
|
195
136
|
##
|
|
196
137
|
# Initialize the EmbeddedSessionInstance
|
|
@@ -360,65 +360,6 @@ module Twilio
|
|
|
360
360
|
end
|
|
361
361
|
end
|
|
362
362
|
|
|
363
|
-
class PortingPortInPageMetadata < PageMetadata
|
|
364
|
-
attr_reader :porting_port_in_page
|
|
365
|
-
|
|
366
|
-
def initialize(version, response, solution, limit)
|
|
367
|
-
super(version, response)
|
|
368
|
-
@porting_port_in_page = []
|
|
369
|
-
@limit = limit
|
|
370
|
-
key = get_key(response.body)
|
|
371
|
-
records = 0
|
|
372
|
-
while( limit != :unset && records < limit )
|
|
373
|
-
@porting_port_in_page << PortingPortInListResponse.new(version, @payload, key, limit - records)
|
|
374
|
-
@payload = self.next_page
|
|
375
|
-
break unless @payload
|
|
376
|
-
records += (@payload.body[key] || []).size
|
|
377
|
-
end
|
|
378
|
-
# Path Solution
|
|
379
|
-
@solution = solution
|
|
380
|
-
end
|
|
381
|
-
|
|
382
|
-
def each
|
|
383
|
-
@porting_port_in_page.each do |record|
|
|
384
|
-
yield record
|
|
385
|
-
end
|
|
386
|
-
end
|
|
387
|
-
|
|
388
|
-
def to_s
|
|
389
|
-
'<Twilio::REST::Numbers::V1PageMetadata>';
|
|
390
|
-
end
|
|
391
|
-
end
|
|
392
|
-
class PortingPortInListResponse < InstanceListResource
|
|
393
|
-
|
|
394
|
-
# @param [Array<PortingPortInInstance>] instance
|
|
395
|
-
# @param [Hash{String => Object}] headers
|
|
396
|
-
# @param [Integer] status_code
|
|
397
|
-
def initialize(version, payload, key, limit = :unset)
|
|
398
|
-
data_list = payload.body[key] || []
|
|
399
|
-
if limit != :unset
|
|
400
|
-
data_list = data_list[0, limit]
|
|
401
|
-
end
|
|
402
|
-
@porting_port_in = data_list.map do |data|
|
|
403
|
-
PortingPortInInstance.new(version, data)
|
|
404
|
-
end
|
|
405
|
-
@headers = payload.headers
|
|
406
|
-
@status_code = payload.status_code
|
|
407
|
-
end
|
|
408
|
-
|
|
409
|
-
def porting_port_in
|
|
410
|
-
@porting_port_in
|
|
411
|
-
end
|
|
412
|
-
|
|
413
|
-
def headers
|
|
414
|
-
@headers
|
|
415
|
-
end
|
|
416
|
-
|
|
417
|
-
def status_code
|
|
418
|
-
@status_code
|
|
419
|
-
end
|
|
420
|
-
end
|
|
421
|
-
|
|
422
363
|
class PortingPortInInstance < InstanceResource
|
|
423
364
|
##
|
|
424
365
|
# Initialize the PortingPortInInstance
|
|
@@ -229,65 +229,6 @@ module Twilio
|
|
|
229
229
|
end
|
|
230
230
|
end
|
|
231
231
|
|
|
232
|
-
class PortingPortInPhoneNumberPageMetadata < PageMetadata
|
|
233
|
-
attr_reader :porting_port_in_phone_number_page
|
|
234
|
-
|
|
235
|
-
def initialize(version, response, solution, limit)
|
|
236
|
-
super(version, response)
|
|
237
|
-
@porting_port_in_phone_number_page = []
|
|
238
|
-
@limit = limit
|
|
239
|
-
key = get_key(response.body)
|
|
240
|
-
records = 0
|
|
241
|
-
while( limit != :unset && records < limit )
|
|
242
|
-
@porting_port_in_phone_number_page << PortingPortInPhoneNumberListResponse.new(version, @payload, key, limit - records)
|
|
243
|
-
@payload = self.next_page
|
|
244
|
-
break unless @payload
|
|
245
|
-
records += (@payload.body[key] || []).size
|
|
246
|
-
end
|
|
247
|
-
# Path Solution
|
|
248
|
-
@solution = solution
|
|
249
|
-
end
|
|
250
|
-
|
|
251
|
-
def each
|
|
252
|
-
@porting_port_in_phone_number_page.each do |record|
|
|
253
|
-
yield record
|
|
254
|
-
end
|
|
255
|
-
end
|
|
256
|
-
|
|
257
|
-
def to_s
|
|
258
|
-
'<Twilio::REST::Numbers::V1PageMetadata>';
|
|
259
|
-
end
|
|
260
|
-
end
|
|
261
|
-
class PortingPortInPhoneNumberListResponse < InstanceListResource
|
|
262
|
-
|
|
263
|
-
# @param [Array<PortingPortInPhoneNumberInstance>] instance
|
|
264
|
-
# @param [Hash{String => Object}] headers
|
|
265
|
-
# @param [Integer] status_code
|
|
266
|
-
def initialize(version, payload, key, limit = :unset)
|
|
267
|
-
data_list = payload.body[key] || []
|
|
268
|
-
if limit != :unset
|
|
269
|
-
data_list = data_list[0, limit]
|
|
270
|
-
end
|
|
271
|
-
@porting_port_in_phone_number = data_list.map do |data|
|
|
272
|
-
PortingPortInPhoneNumberInstance.new(version, data)
|
|
273
|
-
end
|
|
274
|
-
@headers = payload.headers
|
|
275
|
-
@status_code = payload.status_code
|
|
276
|
-
end
|
|
277
|
-
|
|
278
|
-
def porting_port_in_phone_number
|
|
279
|
-
@porting_port_in_phone_number
|
|
280
|
-
end
|
|
281
|
-
|
|
282
|
-
def headers
|
|
283
|
-
@headers
|
|
284
|
-
end
|
|
285
|
-
|
|
286
|
-
def status_code
|
|
287
|
-
@status_code
|
|
288
|
-
end
|
|
289
|
-
end
|
|
290
|
-
|
|
291
232
|
class PortingPortInPhoneNumberInstance < InstanceResource
|
|
292
233
|
##
|
|
293
234
|
# Initialize the PortingPortInPhoneNumberInstance
|
|
@@ -212,65 +212,6 @@ module Twilio
|
|
|
212
212
|
end
|
|
213
213
|
end
|
|
214
214
|
|
|
215
|
-
class PortingPortabilityPageMetadata < PageMetadata
|
|
216
|
-
attr_reader :porting_portability_page
|
|
217
|
-
|
|
218
|
-
def initialize(version, response, solution, limit)
|
|
219
|
-
super(version, response)
|
|
220
|
-
@porting_portability_page = []
|
|
221
|
-
@limit = limit
|
|
222
|
-
key = get_key(response.body)
|
|
223
|
-
records = 0
|
|
224
|
-
while( limit != :unset && records < limit )
|
|
225
|
-
@porting_portability_page << PortingPortabilityListResponse.new(version, @payload, key, limit - records)
|
|
226
|
-
@payload = self.next_page
|
|
227
|
-
break unless @payload
|
|
228
|
-
records += (@payload.body[key] || []).size
|
|
229
|
-
end
|
|
230
|
-
# Path Solution
|
|
231
|
-
@solution = solution
|
|
232
|
-
end
|
|
233
|
-
|
|
234
|
-
def each
|
|
235
|
-
@porting_portability_page.each do |record|
|
|
236
|
-
yield record
|
|
237
|
-
end
|
|
238
|
-
end
|
|
239
|
-
|
|
240
|
-
def to_s
|
|
241
|
-
'<Twilio::REST::Numbers::V1PageMetadata>';
|
|
242
|
-
end
|
|
243
|
-
end
|
|
244
|
-
class PortingPortabilityListResponse < InstanceListResource
|
|
245
|
-
|
|
246
|
-
# @param [Array<PortingPortabilityInstance>] instance
|
|
247
|
-
# @param [Hash{String => Object}] headers
|
|
248
|
-
# @param [Integer] status_code
|
|
249
|
-
def initialize(version, payload, key, limit = :unset)
|
|
250
|
-
data_list = payload.body[key] || []
|
|
251
|
-
if limit != :unset
|
|
252
|
-
data_list = data_list[0, limit]
|
|
253
|
-
end
|
|
254
|
-
@porting_portability = data_list.map do |data|
|
|
255
|
-
PortingPortabilityInstance.new(version, data)
|
|
256
|
-
end
|
|
257
|
-
@headers = payload.headers
|
|
258
|
-
@status_code = payload.status_code
|
|
259
|
-
end
|
|
260
|
-
|
|
261
|
-
def porting_portability
|
|
262
|
-
@porting_portability
|
|
263
|
-
end
|
|
264
|
-
|
|
265
|
-
def headers
|
|
266
|
-
@headers
|
|
267
|
-
end
|
|
268
|
-
|
|
269
|
-
def status_code
|
|
270
|
-
@status_code
|
|
271
|
-
end
|
|
272
|
-
end
|
|
273
|
-
|
|
274
215
|
class PortingPortabilityInstance < InstanceResource
|
|
275
216
|
##
|
|
276
217
|
# Initialize the PortingPortabilityInstance
|
|
@@ -116,65 +116,6 @@ module Twilio
|
|
|
116
116
|
end
|
|
117
117
|
end
|
|
118
118
|
|
|
119
|
-
class PortingWebhookConfigurationPageMetadata < PageMetadata
|
|
120
|
-
attr_reader :porting_webhook_configuration_page
|
|
121
|
-
|
|
122
|
-
def initialize(version, response, solution, limit)
|
|
123
|
-
super(version, response)
|
|
124
|
-
@porting_webhook_configuration_page = []
|
|
125
|
-
@limit = limit
|
|
126
|
-
key = get_key(response.body)
|
|
127
|
-
records = 0
|
|
128
|
-
while( limit != :unset && records < limit )
|
|
129
|
-
@porting_webhook_configuration_page << PortingWebhookConfigurationListResponse.new(version, @payload, key, limit - records)
|
|
130
|
-
@payload = self.next_page
|
|
131
|
-
break unless @payload
|
|
132
|
-
records += (@payload.body[key] || []).size
|
|
133
|
-
end
|
|
134
|
-
# Path Solution
|
|
135
|
-
@solution = solution
|
|
136
|
-
end
|
|
137
|
-
|
|
138
|
-
def each
|
|
139
|
-
@porting_webhook_configuration_page.each do |record|
|
|
140
|
-
yield record
|
|
141
|
-
end
|
|
142
|
-
end
|
|
143
|
-
|
|
144
|
-
def to_s
|
|
145
|
-
'<Twilio::REST::Numbers::V1PageMetadata>';
|
|
146
|
-
end
|
|
147
|
-
end
|
|
148
|
-
class PortingWebhookConfigurationListResponse < InstanceListResource
|
|
149
|
-
|
|
150
|
-
# @param [Array<PortingWebhookConfigurationInstance>] instance
|
|
151
|
-
# @param [Hash{String => Object}] headers
|
|
152
|
-
# @param [Integer] status_code
|
|
153
|
-
def initialize(version, payload, key, limit = :unset)
|
|
154
|
-
data_list = payload.body[key] || []
|
|
155
|
-
if limit != :unset
|
|
156
|
-
data_list = data_list[0, limit]
|
|
157
|
-
end
|
|
158
|
-
@porting_webhook_configuration = data_list.map do |data|
|
|
159
|
-
PortingWebhookConfigurationInstance.new(version, data)
|
|
160
|
-
end
|
|
161
|
-
@headers = payload.headers
|
|
162
|
-
@status_code = payload.status_code
|
|
163
|
-
end
|
|
164
|
-
|
|
165
|
-
def porting_webhook_configuration
|
|
166
|
-
@porting_webhook_configuration
|
|
167
|
-
end
|
|
168
|
-
|
|
169
|
-
def headers
|
|
170
|
-
@headers
|
|
171
|
-
end
|
|
172
|
-
|
|
173
|
-
def status_code
|
|
174
|
-
@status_code
|
|
175
|
-
end
|
|
176
|
-
end
|
|
177
|
-
|
|
178
119
|
class PortingWebhookConfigurationInstance < InstanceResource
|
|
179
120
|
##
|
|
180
121
|
# Initialize the PortingWebhookConfigurationInstance
|
|
@@ -182,65 +182,6 @@ module Twilio
|
|
|
182
182
|
end
|
|
183
183
|
end
|
|
184
184
|
|
|
185
|
-
class PortingWebhookConfigurationDeletePageMetadata < PageMetadata
|
|
186
|
-
attr_reader :porting_webhook_configuration_delete_page
|
|
187
|
-
|
|
188
|
-
def initialize(version, response, solution, limit)
|
|
189
|
-
super(version, response)
|
|
190
|
-
@porting_webhook_configuration_delete_page = []
|
|
191
|
-
@limit = limit
|
|
192
|
-
key = get_key(response.body)
|
|
193
|
-
records = 0
|
|
194
|
-
while( limit != :unset && records < limit )
|
|
195
|
-
@porting_webhook_configuration_delete_page << PortingWebhookConfigurationDeleteListResponse.new(version, @payload, key, limit - records)
|
|
196
|
-
@payload = self.next_page
|
|
197
|
-
break unless @payload
|
|
198
|
-
records += (@payload.body[key] || []).size
|
|
199
|
-
end
|
|
200
|
-
# Path Solution
|
|
201
|
-
@solution = solution
|
|
202
|
-
end
|
|
203
|
-
|
|
204
|
-
def each
|
|
205
|
-
@porting_webhook_configuration_delete_page.each do |record|
|
|
206
|
-
yield record
|
|
207
|
-
end
|
|
208
|
-
end
|
|
209
|
-
|
|
210
|
-
def to_s
|
|
211
|
-
'<Twilio::REST::Numbers::V1PageMetadata>';
|
|
212
|
-
end
|
|
213
|
-
end
|
|
214
|
-
class PortingWebhookConfigurationDeleteListResponse < InstanceListResource
|
|
215
|
-
|
|
216
|
-
# @param [Array<PortingWebhookConfigurationDeleteInstance>] instance
|
|
217
|
-
# @param [Hash{String => Object}] headers
|
|
218
|
-
# @param [Integer] status_code
|
|
219
|
-
def initialize(version, payload, key, limit = :unset)
|
|
220
|
-
data_list = payload.body[key] || []
|
|
221
|
-
if limit != :unset
|
|
222
|
-
data_list = data_list[0, limit]
|
|
223
|
-
end
|
|
224
|
-
@porting_webhook_configuration_delete = data_list.map do |data|
|
|
225
|
-
PortingWebhookConfigurationDeleteInstance.new(version, data)
|
|
226
|
-
end
|
|
227
|
-
@headers = payload.headers
|
|
228
|
-
@status_code = payload.status_code
|
|
229
|
-
end
|
|
230
|
-
|
|
231
|
-
def porting_webhook_configuration_delete
|
|
232
|
-
@porting_webhook_configuration_delete
|
|
233
|
-
end
|
|
234
|
-
|
|
235
|
-
def headers
|
|
236
|
-
@headers
|
|
237
|
-
end
|
|
238
|
-
|
|
239
|
-
def status_code
|
|
240
|
-
@status_code
|
|
241
|
-
end
|
|
242
|
-
end
|
|
243
|
-
|
|
244
185
|
class PortingWebhookConfigurationDeleteInstance < InstanceResource
|
|
245
186
|
##
|
|
246
187
|
# Initialize the PortingWebhookConfigurationDeleteInstance
|
|
@@ -151,65 +151,6 @@ module Twilio
|
|
|
151
151
|
end
|
|
152
152
|
end
|
|
153
153
|
|
|
154
|
-
class SenderIdRegistrationPageMetadata < PageMetadata
|
|
155
|
-
attr_reader :sender_id_registration_page
|
|
156
|
-
|
|
157
|
-
def initialize(version, response, solution, limit)
|
|
158
|
-
super(version, response)
|
|
159
|
-
@sender_id_registration_page = []
|
|
160
|
-
@limit = limit
|
|
161
|
-
key = get_key(response.body)
|
|
162
|
-
records = 0
|
|
163
|
-
while( limit != :unset && records < limit )
|
|
164
|
-
@sender_id_registration_page << SenderIdRegistrationListResponse.new(version, @payload, key, limit - records)
|
|
165
|
-
@payload = self.next_page
|
|
166
|
-
break unless @payload
|
|
167
|
-
records += (@payload.body[key] || []).size
|
|
168
|
-
end
|
|
169
|
-
# Path Solution
|
|
170
|
-
@solution = solution
|
|
171
|
-
end
|
|
172
|
-
|
|
173
|
-
def each
|
|
174
|
-
@sender_id_registration_page.each do |record|
|
|
175
|
-
yield record
|
|
176
|
-
end
|
|
177
|
-
end
|
|
178
|
-
|
|
179
|
-
def to_s
|
|
180
|
-
'<Twilio::REST::Numbers::V1PageMetadata>';
|
|
181
|
-
end
|
|
182
|
-
end
|
|
183
|
-
class SenderIdRegistrationListResponse < InstanceListResource
|
|
184
|
-
|
|
185
|
-
# @param [Array<SenderIdRegistrationInstance>] instance
|
|
186
|
-
# @param [Hash{String => Object}] headers
|
|
187
|
-
# @param [Integer] status_code
|
|
188
|
-
def initialize(version, payload, key, limit = :unset)
|
|
189
|
-
data_list = payload.body[key] || []
|
|
190
|
-
if limit != :unset
|
|
191
|
-
data_list = data_list[0, limit]
|
|
192
|
-
end
|
|
193
|
-
@sender_id_registration = data_list.map do |data|
|
|
194
|
-
SenderIdRegistrationInstance.new(version, data)
|
|
195
|
-
end
|
|
196
|
-
@headers = payload.headers
|
|
197
|
-
@status_code = payload.status_code
|
|
198
|
-
end
|
|
199
|
-
|
|
200
|
-
def sender_id_registration
|
|
201
|
-
@sender_id_registration
|
|
202
|
-
end
|
|
203
|
-
|
|
204
|
-
def headers
|
|
205
|
-
@headers
|
|
206
|
-
end
|
|
207
|
-
|
|
208
|
-
def status_code
|
|
209
|
-
@status_code
|
|
210
|
-
end
|
|
211
|
-
end
|
|
212
|
-
|
|
213
154
|
class SenderIdRegistrationInstance < InstanceResource
|
|
214
155
|
##
|
|
215
156
|
# Initialize the SenderIdRegistrationInstance
|
|
@@ -112,65 +112,6 @@ module Twilio
|
|
|
112
112
|
end
|
|
113
113
|
end
|
|
114
114
|
|
|
115
|
-
class SmsVerificationPageMetadata < PageMetadata
|
|
116
|
-
attr_reader :sms_verification_page
|
|
117
|
-
|
|
118
|
-
def initialize(version, response, solution, limit)
|
|
119
|
-
super(version, response)
|
|
120
|
-
@sms_verification_page = []
|
|
121
|
-
@limit = limit
|
|
122
|
-
key = get_key(response.body)
|
|
123
|
-
records = 0
|
|
124
|
-
while( limit != :unset && records < limit )
|
|
125
|
-
@sms_verification_page << SmsVerificationListResponse.new(version, @payload, key, limit - records)
|
|
126
|
-
@payload = self.next_page
|
|
127
|
-
break unless @payload
|
|
128
|
-
records += (@payload.body[key] || []).size
|
|
129
|
-
end
|
|
130
|
-
# Path Solution
|
|
131
|
-
@solution = solution
|
|
132
|
-
end
|
|
133
|
-
|
|
134
|
-
def each
|
|
135
|
-
@sms_verification_page.each do |record|
|
|
136
|
-
yield record
|
|
137
|
-
end
|
|
138
|
-
end
|
|
139
|
-
|
|
140
|
-
def to_s
|
|
141
|
-
'<Twilio::REST::Numbers::V1PageMetadata>';
|
|
142
|
-
end
|
|
143
|
-
end
|
|
144
|
-
class SmsVerificationListResponse < InstanceListResource
|
|
145
|
-
|
|
146
|
-
# @param [Array<SmsVerificationInstance>] instance
|
|
147
|
-
# @param [Hash{String => Object}] headers
|
|
148
|
-
# @param [Integer] status_code
|
|
149
|
-
def initialize(version, payload, key, limit = :unset)
|
|
150
|
-
data_list = payload.body[key] || []
|
|
151
|
-
if limit != :unset
|
|
152
|
-
data_list = data_list[0, limit]
|
|
153
|
-
end
|
|
154
|
-
@sms_verification = data_list.map do |data|
|
|
155
|
-
SmsVerificationInstance.new(version, data)
|
|
156
|
-
end
|
|
157
|
-
@headers = payload.headers
|
|
158
|
-
@status_code = payload.status_code
|
|
159
|
-
end
|
|
160
|
-
|
|
161
|
-
def sms_verification
|
|
162
|
-
@sms_verification
|
|
163
|
-
end
|
|
164
|
-
|
|
165
|
-
def headers
|
|
166
|
-
@headers
|
|
167
|
-
end
|
|
168
|
-
|
|
169
|
-
def status_code
|
|
170
|
-
@status_code
|
|
171
|
-
end
|
|
172
|
-
end
|
|
173
|
-
|
|
174
115
|
class SmsVerificationInstance < InstanceResource
|
|
175
116
|
##
|
|
176
117
|
# Initialize the SmsVerificationInstance
|
|
@@ -112,65 +112,6 @@ module Twilio
|
|
|
112
112
|
end
|
|
113
113
|
end
|
|
114
114
|
|
|
115
|
-
class SmsVerificationCheckPageMetadata < PageMetadata
|
|
116
|
-
attr_reader :sms_verification_check_page
|
|
117
|
-
|
|
118
|
-
def initialize(version, response, solution, limit)
|
|
119
|
-
super(version, response)
|
|
120
|
-
@sms_verification_check_page = []
|
|
121
|
-
@limit = limit
|
|
122
|
-
key = get_key(response.body)
|
|
123
|
-
records = 0
|
|
124
|
-
while( limit != :unset && records < limit )
|
|
125
|
-
@sms_verification_check_page << SmsVerificationCheckListResponse.new(version, @payload, key, limit - records)
|
|
126
|
-
@payload = self.next_page
|
|
127
|
-
break unless @payload
|
|
128
|
-
records += (@payload.body[key] || []).size
|
|
129
|
-
end
|
|
130
|
-
# Path Solution
|
|
131
|
-
@solution = solution
|
|
132
|
-
end
|
|
133
|
-
|
|
134
|
-
def each
|
|
135
|
-
@sms_verification_check_page.each do |record|
|
|
136
|
-
yield record
|
|
137
|
-
end
|
|
138
|
-
end
|
|
139
|
-
|
|
140
|
-
def to_s
|
|
141
|
-
'<Twilio::REST::Numbers::V1PageMetadata>';
|
|
142
|
-
end
|
|
143
|
-
end
|
|
144
|
-
class SmsVerificationCheckListResponse < InstanceListResource
|
|
145
|
-
|
|
146
|
-
# @param [Array<SmsVerificationCheckInstance>] instance
|
|
147
|
-
# @param [Hash{String => Object}] headers
|
|
148
|
-
# @param [Integer] status_code
|
|
149
|
-
def initialize(version, payload, key, limit = :unset)
|
|
150
|
-
data_list = payload.body[key] || []
|
|
151
|
-
if limit != :unset
|
|
152
|
-
data_list = data_list[0, limit]
|
|
153
|
-
end
|
|
154
|
-
@sms_verification_check = data_list.map do |data|
|
|
155
|
-
SmsVerificationCheckInstance.new(version, data)
|
|
156
|
-
end
|
|
157
|
-
@headers = payload.headers
|
|
158
|
-
@status_code = payload.status_code
|
|
159
|
-
end
|
|
160
|
-
|
|
161
|
-
def sms_verification_check
|
|
162
|
-
@sms_verification_check
|
|
163
|
-
end
|
|
164
|
-
|
|
165
|
-
def headers
|
|
166
|
-
@headers
|
|
167
|
-
end
|
|
168
|
-
|
|
169
|
-
def status_code
|
|
170
|
-
@status_code
|
|
171
|
-
end
|
|
172
|
-
end
|
|
173
|
-
|
|
174
115
|
class SmsVerificationCheckInstance < InstanceResource
|
|
175
116
|
##
|
|
176
117
|
# Initialize the SmsVerificationCheckInstance
|
|
@@ -112,65 +112,6 @@ module Twilio
|
|
|
112
112
|
end
|
|
113
113
|
end
|
|
114
114
|
|
|
115
|
-
class VoiceVerificationPageMetadata < PageMetadata
|
|
116
|
-
attr_reader :voice_verification_page
|
|
117
|
-
|
|
118
|
-
def initialize(version, response, solution, limit)
|
|
119
|
-
super(version, response)
|
|
120
|
-
@voice_verification_page = []
|
|
121
|
-
@limit = limit
|
|
122
|
-
key = get_key(response.body)
|
|
123
|
-
records = 0
|
|
124
|
-
while( limit != :unset && records < limit )
|
|
125
|
-
@voice_verification_page << VoiceVerificationListResponse.new(version, @payload, key, limit - records)
|
|
126
|
-
@payload = self.next_page
|
|
127
|
-
break unless @payload
|
|
128
|
-
records += (@payload.body[key] || []).size
|
|
129
|
-
end
|
|
130
|
-
# Path Solution
|
|
131
|
-
@solution = solution
|
|
132
|
-
end
|
|
133
|
-
|
|
134
|
-
def each
|
|
135
|
-
@voice_verification_page.each do |record|
|
|
136
|
-
yield record
|
|
137
|
-
end
|
|
138
|
-
end
|
|
139
|
-
|
|
140
|
-
def to_s
|
|
141
|
-
'<Twilio::REST::Numbers::V1PageMetadata>';
|
|
142
|
-
end
|
|
143
|
-
end
|
|
144
|
-
class VoiceVerificationListResponse < InstanceListResource
|
|
145
|
-
|
|
146
|
-
# @param [Array<VoiceVerificationInstance>] instance
|
|
147
|
-
# @param [Hash{String => Object}] headers
|
|
148
|
-
# @param [Integer] status_code
|
|
149
|
-
def initialize(version, payload, key, limit = :unset)
|
|
150
|
-
data_list = payload.body[key] || []
|
|
151
|
-
if limit != :unset
|
|
152
|
-
data_list = data_list[0, limit]
|
|
153
|
-
end
|
|
154
|
-
@voice_verification = data_list.map do |data|
|
|
155
|
-
VoiceVerificationInstance.new(version, data)
|
|
156
|
-
end
|
|
157
|
-
@headers = payload.headers
|
|
158
|
-
@status_code = payload.status_code
|
|
159
|
-
end
|
|
160
|
-
|
|
161
|
-
def voice_verification
|
|
162
|
-
@voice_verification
|
|
163
|
-
end
|
|
164
|
-
|
|
165
|
-
def headers
|
|
166
|
-
@headers
|
|
167
|
-
end
|
|
168
|
-
|
|
169
|
-
def status_code
|
|
170
|
-
@status_code
|
|
171
|
-
end
|
|
172
|
-
end
|
|
173
|
-
|
|
174
115
|
class VoiceVerificationInstance < InstanceResource
|
|
175
116
|
##
|
|
176
117
|
# Initialize the VoiceVerificationInstance
|