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
|
@@ -348,65 +348,6 @@ module Twilio
|
|
|
348
348
|
end
|
|
349
349
|
end
|
|
350
350
|
|
|
351
|
-
class ComplianceTollfreeInquiriesPageMetadata < PageMetadata
|
|
352
|
-
attr_reader :compliance_tollfree_inquiries_page
|
|
353
|
-
|
|
354
|
-
def initialize(version, response, solution, limit)
|
|
355
|
-
super(version, response)
|
|
356
|
-
@compliance_tollfree_inquiries_page = []
|
|
357
|
-
@limit = limit
|
|
358
|
-
key = get_key(response.body)
|
|
359
|
-
records = 0
|
|
360
|
-
while( limit != :unset && records < limit )
|
|
361
|
-
@compliance_tollfree_inquiries_page << ComplianceTollfreeInquiriesListResponse.new(version, @payload, key, limit - records)
|
|
362
|
-
@payload = self.next_page
|
|
363
|
-
break unless @payload
|
|
364
|
-
records += (@payload.body[key] || []).size
|
|
365
|
-
end
|
|
366
|
-
# Path Solution
|
|
367
|
-
@solution = solution
|
|
368
|
-
end
|
|
369
|
-
|
|
370
|
-
def each
|
|
371
|
-
@compliance_tollfree_inquiries_page.each do |record|
|
|
372
|
-
yield record
|
|
373
|
-
end
|
|
374
|
-
end
|
|
375
|
-
|
|
376
|
-
def to_s
|
|
377
|
-
'<Twilio::REST::Trusthub::V1PageMetadata>';
|
|
378
|
-
end
|
|
379
|
-
end
|
|
380
|
-
class ComplianceTollfreeInquiriesListResponse < InstanceListResource
|
|
381
|
-
|
|
382
|
-
# @param [Array<ComplianceTollfreeInquiriesInstance>] instance
|
|
383
|
-
# @param [Hash{String => Object}] headers
|
|
384
|
-
# @param [Integer] status_code
|
|
385
|
-
def initialize(version, payload, key, limit = :unset)
|
|
386
|
-
data_list = payload.body[key] || []
|
|
387
|
-
if limit != :unset
|
|
388
|
-
data_list = data_list[0, limit]
|
|
389
|
-
end
|
|
390
|
-
@compliance_tollfree_inquiries = data_list.map do |data|
|
|
391
|
-
ComplianceTollfreeInquiriesInstance.new(version, data)
|
|
392
|
-
end
|
|
393
|
-
@headers = payload.headers
|
|
394
|
-
@status_code = payload.status_code
|
|
395
|
-
end
|
|
396
|
-
|
|
397
|
-
def compliance_tollfree_inquiries
|
|
398
|
-
@compliance_tollfree_inquiries
|
|
399
|
-
end
|
|
400
|
-
|
|
401
|
-
def headers
|
|
402
|
-
@headers
|
|
403
|
-
end
|
|
404
|
-
|
|
405
|
-
def status_code
|
|
406
|
-
@status_code
|
|
407
|
-
end
|
|
408
|
-
end
|
|
409
|
-
|
|
410
351
|
class ComplianceTollfreeInquiriesInstance < InstanceResource
|
|
411
352
|
##
|
|
412
353
|
# Initialize the ComplianceTollfreeInquiriesInstance
|
|
@@ -238,65 +238,6 @@ module Twilio
|
|
|
238
238
|
end
|
|
239
239
|
end
|
|
240
240
|
|
|
241
|
-
class CustomerProfilesProvisionalCopyPageMetadata < PageMetadata
|
|
242
|
-
attr_reader :customer_profiles_provisional_copy_page
|
|
243
|
-
|
|
244
|
-
def initialize(version, response, solution, limit)
|
|
245
|
-
super(version, response)
|
|
246
|
-
@customer_profiles_provisional_copy_page = []
|
|
247
|
-
@limit = limit
|
|
248
|
-
key = get_key(response.body)
|
|
249
|
-
records = 0
|
|
250
|
-
while( limit != :unset && records < limit )
|
|
251
|
-
@customer_profiles_provisional_copy_page << CustomerProfilesProvisionalCopyListResponse.new(version, @payload, key, limit - records)
|
|
252
|
-
@payload = self.next_page
|
|
253
|
-
break unless @payload
|
|
254
|
-
records += (@payload.body[key] || []).size
|
|
255
|
-
end
|
|
256
|
-
# Path Solution
|
|
257
|
-
@solution = solution
|
|
258
|
-
end
|
|
259
|
-
|
|
260
|
-
def each
|
|
261
|
-
@customer_profiles_provisional_copy_page.each do |record|
|
|
262
|
-
yield record
|
|
263
|
-
end
|
|
264
|
-
end
|
|
265
|
-
|
|
266
|
-
def to_s
|
|
267
|
-
'<Twilio::REST::Trusthub::V1PageMetadata>';
|
|
268
|
-
end
|
|
269
|
-
end
|
|
270
|
-
class CustomerProfilesProvisionalCopyListResponse < InstanceListResource
|
|
271
|
-
|
|
272
|
-
# @param [Array<CustomerProfilesProvisionalCopyInstance>] instance
|
|
273
|
-
# @param [Hash{String => Object}] headers
|
|
274
|
-
# @param [Integer] status_code
|
|
275
|
-
def initialize(version, payload, key, limit = :unset)
|
|
276
|
-
data_list = payload.body[key] || []
|
|
277
|
-
if limit != :unset
|
|
278
|
-
data_list = data_list[0, limit]
|
|
279
|
-
end
|
|
280
|
-
@customer_profiles_provisional_copy = data_list.map do |data|
|
|
281
|
-
CustomerProfilesProvisionalCopyInstance.new(version, data)
|
|
282
|
-
end
|
|
283
|
-
@headers = payload.headers
|
|
284
|
-
@status_code = payload.status_code
|
|
285
|
-
end
|
|
286
|
-
|
|
287
|
-
def customer_profiles_provisional_copy
|
|
288
|
-
@customer_profiles_provisional_copy
|
|
289
|
-
end
|
|
290
|
-
|
|
291
|
-
def headers
|
|
292
|
-
@headers
|
|
293
|
-
end
|
|
294
|
-
|
|
295
|
-
def status_code
|
|
296
|
-
@status_code
|
|
297
|
-
end
|
|
298
|
-
end
|
|
299
|
-
|
|
300
241
|
class CustomerProfilesProvisionalCopyInstance < InstanceResource
|
|
301
242
|
##
|
|
302
243
|
# Initialize the CustomerProfilesProvisionalCopyInstance
|
|
@@ -238,65 +238,6 @@ module Twilio
|
|
|
238
238
|
end
|
|
239
239
|
end
|
|
240
240
|
|
|
241
|
-
class TrustProductsProvisionalCopyPageMetadata < PageMetadata
|
|
242
|
-
attr_reader :trust_products_provisional_copy_page
|
|
243
|
-
|
|
244
|
-
def initialize(version, response, solution, limit)
|
|
245
|
-
super(version, response)
|
|
246
|
-
@trust_products_provisional_copy_page = []
|
|
247
|
-
@limit = limit
|
|
248
|
-
key = get_key(response.body)
|
|
249
|
-
records = 0
|
|
250
|
-
while( limit != :unset && records < limit )
|
|
251
|
-
@trust_products_provisional_copy_page << TrustProductsProvisionalCopyListResponse.new(version, @payload, key, limit - records)
|
|
252
|
-
@payload = self.next_page
|
|
253
|
-
break unless @payload
|
|
254
|
-
records += (@payload.body[key] || []).size
|
|
255
|
-
end
|
|
256
|
-
# Path Solution
|
|
257
|
-
@solution = solution
|
|
258
|
-
end
|
|
259
|
-
|
|
260
|
-
def each
|
|
261
|
-
@trust_products_provisional_copy_page.each do |record|
|
|
262
|
-
yield record
|
|
263
|
-
end
|
|
264
|
-
end
|
|
265
|
-
|
|
266
|
-
def to_s
|
|
267
|
-
'<Twilio::REST::Trusthub::V1PageMetadata>';
|
|
268
|
-
end
|
|
269
|
-
end
|
|
270
|
-
class TrustProductsProvisionalCopyListResponse < InstanceListResource
|
|
271
|
-
|
|
272
|
-
# @param [Array<TrustProductsProvisionalCopyInstance>] instance
|
|
273
|
-
# @param [Hash{String => Object}] headers
|
|
274
|
-
# @param [Integer] status_code
|
|
275
|
-
def initialize(version, payload, key, limit = :unset)
|
|
276
|
-
data_list = payload.body[key] || []
|
|
277
|
-
if limit != :unset
|
|
278
|
-
data_list = data_list[0, limit]
|
|
279
|
-
end
|
|
280
|
-
@trust_products_provisional_copy = data_list.map do |data|
|
|
281
|
-
TrustProductsProvisionalCopyInstance.new(version, data)
|
|
282
|
-
end
|
|
283
|
-
@headers = payload.headers
|
|
284
|
-
@status_code = payload.status_code
|
|
285
|
-
end
|
|
286
|
-
|
|
287
|
-
def trust_products_provisional_copy
|
|
288
|
-
@trust_products_provisional_copy
|
|
289
|
-
end
|
|
290
|
-
|
|
291
|
-
def headers
|
|
292
|
-
@headers
|
|
293
|
-
end
|
|
294
|
-
|
|
295
|
-
def status_code
|
|
296
|
-
@status_code
|
|
297
|
-
end
|
|
298
|
-
end
|
|
299
|
-
|
|
300
241
|
class TrustProductsProvisionalCopyInstance < InstanceResource
|
|
301
242
|
##
|
|
302
243
|
# Initialize the TrustProductsProvisionalCopyInstance
|
|
@@ -194,65 +194,6 @@ module Twilio
|
|
|
194
194
|
end
|
|
195
195
|
end
|
|
196
196
|
|
|
197
|
-
class FormPageMetadata < PageMetadata
|
|
198
|
-
attr_reader :form_page
|
|
199
|
-
|
|
200
|
-
def initialize(version, response, solution, limit)
|
|
201
|
-
super(version, response)
|
|
202
|
-
@form_page = []
|
|
203
|
-
@limit = limit
|
|
204
|
-
key = get_key(response.body)
|
|
205
|
-
records = 0
|
|
206
|
-
while( limit != :unset && records < limit )
|
|
207
|
-
@form_page << FormListResponse.new(version, @payload, key, limit - records)
|
|
208
|
-
@payload = self.next_page
|
|
209
|
-
break unless @payload
|
|
210
|
-
records += (@payload.body[key] || []).size
|
|
211
|
-
end
|
|
212
|
-
# Path Solution
|
|
213
|
-
@solution = solution
|
|
214
|
-
end
|
|
215
|
-
|
|
216
|
-
def each
|
|
217
|
-
@form_page.each do |record|
|
|
218
|
-
yield record
|
|
219
|
-
end
|
|
220
|
-
end
|
|
221
|
-
|
|
222
|
-
def to_s
|
|
223
|
-
'<Twilio::REST::Verify::V2PageMetadata>';
|
|
224
|
-
end
|
|
225
|
-
end
|
|
226
|
-
class FormListResponse < InstanceListResource
|
|
227
|
-
|
|
228
|
-
# @param [Array<FormInstance>] instance
|
|
229
|
-
# @param [Hash{String => Object}] headers
|
|
230
|
-
# @param [Integer] status_code
|
|
231
|
-
def initialize(version, payload, key, limit = :unset)
|
|
232
|
-
data_list = payload.body[key] || []
|
|
233
|
-
if limit != :unset
|
|
234
|
-
data_list = data_list[0, limit]
|
|
235
|
-
end
|
|
236
|
-
@form = data_list.map do |data|
|
|
237
|
-
FormInstance.new(version, data)
|
|
238
|
-
end
|
|
239
|
-
@headers = payload.headers
|
|
240
|
-
@status_code = payload.status_code
|
|
241
|
-
end
|
|
242
|
-
|
|
243
|
-
def form
|
|
244
|
-
@form
|
|
245
|
-
end
|
|
246
|
-
|
|
247
|
-
def headers
|
|
248
|
-
@headers
|
|
249
|
-
end
|
|
250
|
-
|
|
251
|
-
def status_code
|
|
252
|
-
@status_code
|
|
253
|
-
end
|
|
254
|
-
end
|
|
255
|
-
|
|
256
197
|
class FormInstance < InstanceResource
|
|
257
198
|
##
|
|
258
199
|
# Initialize the FormInstance
|
|
@@ -282,65 +282,6 @@ module Twilio
|
|
|
282
282
|
end
|
|
283
283
|
end
|
|
284
284
|
|
|
285
|
-
class SafelistPageMetadata < PageMetadata
|
|
286
|
-
attr_reader :safelist_page
|
|
287
|
-
|
|
288
|
-
def initialize(version, response, solution, limit)
|
|
289
|
-
super(version, response)
|
|
290
|
-
@safelist_page = []
|
|
291
|
-
@limit = limit
|
|
292
|
-
key = get_key(response.body)
|
|
293
|
-
records = 0
|
|
294
|
-
while( limit != :unset && records < limit )
|
|
295
|
-
@safelist_page << SafelistListResponse.new(version, @payload, key, limit - records)
|
|
296
|
-
@payload = self.next_page
|
|
297
|
-
break unless @payload
|
|
298
|
-
records += (@payload.body[key] || []).size
|
|
299
|
-
end
|
|
300
|
-
# Path Solution
|
|
301
|
-
@solution = solution
|
|
302
|
-
end
|
|
303
|
-
|
|
304
|
-
def each
|
|
305
|
-
@safelist_page.each do |record|
|
|
306
|
-
yield record
|
|
307
|
-
end
|
|
308
|
-
end
|
|
309
|
-
|
|
310
|
-
def to_s
|
|
311
|
-
'<Twilio::REST::Verify::V2PageMetadata>';
|
|
312
|
-
end
|
|
313
|
-
end
|
|
314
|
-
class SafelistListResponse < InstanceListResource
|
|
315
|
-
|
|
316
|
-
# @param [Array<SafelistInstance>] instance
|
|
317
|
-
# @param [Hash{String => Object}] headers
|
|
318
|
-
# @param [Integer] status_code
|
|
319
|
-
def initialize(version, payload, key, limit = :unset)
|
|
320
|
-
data_list = payload.body[key] || []
|
|
321
|
-
if limit != :unset
|
|
322
|
-
data_list = data_list[0, limit]
|
|
323
|
-
end
|
|
324
|
-
@safelist = data_list.map do |data|
|
|
325
|
-
SafelistInstance.new(version, data)
|
|
326
|
-
end
|
|
327
|
-
@headers = payload.headers
|
|
328
|
-
@status_code = payload.status_code
|
|
329
|
-
end
|
|
330
|
-
|
|
331
|
-
def safelist
|
|
332
|
-
@safelist
|
|
333
|
-
end
|
|
334
|
-
|
|
335
|
-
def headers
|
|
336
|
-
@headers
|
|
337
|
-
end
|
|
338
|
-
|
|
339
|
-
def status_code
|
|
340
|
-
@status_code
|
|
341
|
-
end
|
|
342
|
-
end
|
|
343
|
-
|
|
344
285
|
class SafelistInstance < InstanceResource
|
|
345
286
|
##
|
|
346
287
|
# Initialize the SafelistInstance
|
|
@@ -275,65 +275,6 @@ module Twilio
|
|
|
275
275
|
end
|
|
276
276
|
end
|
|
277
277
|
|
|
278
|
-
class AccessTokenPageMetadata < PageMetadata
|
|
279
|
-
attr_reader :access_token_page
|
|
280
|
-
|
|
281
|
-
def initialize(version, response, solution, limit)
|
|
282
|
-
super(version, response)
|
|
283
|
-
@access_token_page = []
|
|
284
|
-
@limit = limit
|
|
285
|
-
key = get_key(response.body)
|
|
286
|
-
records = 0
|
|
287
|
-
while( limit != :unset && records < limit )
|
|
288
|
-
@access_token_page << AccessTokenListResponse.new(version, @payload, key, limit - records)
|
|
289
|
-
@payload = self.next_page
|
|
290
|
-
break unless @payload
|
|
291
|
-
records += (@payload.body[key] || []).size
|
|
292
|
-
end
|
|
293
|
-
# Path Solution
|
|
294
|
-
@solution = solution
|
|
295
|
-
end
|
|
296
|
-
|
|
297
|
-
def each
|
|
298
|
-
@access_token_page.each do |record|
|
|
299
|
-
yield record
|
|
300
|
-
end
|
|
301
|
-
end
|
|
302
|
-
|
|
303
|
-
def to_s
|
|
304
|
-
'<Twilio::REST::Verify::V2PageMetadata>';
|
|
305
|
-
end
|
|
306
|
-
end
|
|
307
|
-
class AccessTokenListResponse < InstanceListResource
|
|
308
|
-
|
|
309
|
-
# @param [Array<AccessTokenInstance>] instance
|
|
310
|
-
# @param [Hash{String => Object}] headers
|
|
311
|
-
# @param [Integer] status_code
|
|
312
|
-
def initialize(version, payload, key, limit = :unset)
|
|
313
|
-
data_list = payload.body[key] || []
|
|
314
|
-
if limit != :unset
|
|
315
|
-
data_list = data_list[0, limit]
|
|
316
|
-
end
|
|
317
|
-
@access_token = data_list.map do |data|
|
|
318
|
-
AccessTokenInstance.new(version, data)
|
|
319
|
-
end
|
|
320
|
-
@headers = payload.headers
|
|
321
|
-
@status_code = payload.status_code
|
|
322
|
-
end
|
|
323
|
-
|
|
324
|
-
def access_token
|
|
325
|
-
@access_token
|
|
326
|
-
end
|
|
327
|
-
|
|
328
|
-
def headers
|
|
329
|
-
@headers
|
|
330
|
-
end
|
|
331
|
-
|
|
332
|
-
def status_code
|
|
333
|
-
@status_code
|
|
334
|
-
end
|
|
335
|
-
end
|
|
336
|
-
|
|
337
278
|
class AccessTokenInstance < InstanceResource
|
|
338
279
|
##
|
|
339
280
|
# Initialize the AccessTokenInstance
|
|
@@ -168,65 +168,6 @@ module Twilio
|
|
|
168
168
|
end
|
|
169
169
|
end
|
|
170
170
|
|
|
171
|
-
class ApproveChallengePageMetadata < PageMetadata
|
|
172
|
-
attr_reader :approve_challenge_page
|
|
173
|
-
|
|
174
|
-
def initialize(version, response, solution, limit)
|
|
175
|
-
super(version, response)
|
|
176
|
-
@approve_challenge_page = []
|
|
177
|
-
@limit = limit
|
|
178
|
-
key = get_key(response.body)
|
|
179
|
-
records = 0
|
|
180
|
-
while( limit != :unset && records < limit )
|
|
181
|
-
@approve_challenge_page << ApproveChallengeListResponse.new(version, @payload, key, limit - records)
|
|
182
|
-
@payload = self.next_page
|
|
183
|
-
break unless @payload
|
|
184
|
-
records += (@payload.body[key] || []).size
|
|
185
|
-
end
|
|
186
|
-
# Path Solution
|
|
187
|
-
@solution = solution
|
|
188
|
-
end
|
|
189
|
-
|
|
190
|
-
def each
|
|
191
|
-
@approve_challenge_page.each do |record|
|
|
192
|
-
yield record
|
|
193
|
-
end
|
|
194
|
-
end
|
|
195
|
-
|
|
196
|
-
def to_s
|
|
197
|
-
'<Twilio::REST::Verify::V2PageMetadata>';
|
|
198
|
-
end
|
|
199
|
-
end
|
|
200
|
-
class ApproveChallengeListResponse < InstanceListResource
|
|
201
|
-
|
|
202
|
-
# @param [Array<ApproveChallengeInstance>] instance
|
|
203
|
-
# @param [Hash{String => Object}] headers
|
|
204
|
-
# @param [Integer] status_code
|
|
205
|
-
def initialize(version, payload, key, limit = :unset)
|
|
206
|
-
data_list = payload.body[key] || []
|
|
207
|
-
if limit != :unset
|
|
208
|
-
data_list = data_list[0, limit]
|
|
209
|
-
end
|
|
210
|
-
@approve_challenge = data_list.map do |data|
|
|
211
|
-
ApproveChallengeInstance.new(version, data)
|
|
212
|
-
end
|
|
213
|
-
@headers = payload.headers
|
|
214
|
-
@status_code = payload.status_code
|
|
215
|
-
end
|
|
216
|
-
|
|
217
|
-
def approve_challenge
|
|
218
|
-
@approve_challenge
|
|
219
|
-
end
|
|
220
|
-
|
|
221
|
-
def headers
|
|
222
|
-
@headers
|
|
223
|
-
end
|
|
224
|
-
|
|
225
|
-
def status_code
|
|
226
|
-
@status_code
|
|
227
|
-
end
|
|
228
|
-
end
|
|
229
|
-
|
|
230
171
|
class ApproveChallengeInstance < InstanceResource
|
|
231
172
|
##
|
|
232
173
|
# Initialize the ApproveChallengeInstance
|
|
@@ -136,65 +136,6 @@ module Twilio
|
|
|
136
136
|
end
|
|
137
137
|
end
|
|
138
138
|
|
|
139
|
-
class NotificationPageMetadata < PageMetadata
|
|
140
|
-
attr_reader :notification_page
|
|
141
|
-
|
|
142
|
-
def initialize(version, response, solution, limit)
|
|
143
|
-
super(version, response)
|
|
144
|
-
@notification_page = []
|
|
145
|
-
@limit = limit
|
|
146
|
-
key = get_key(response.body)
|
|
147
|
-
records = 0
|
|
148
|
-
while( limit != :unset && records < limit )
|
|
149
|
-
@notification_page << NotificationListResponse.new(version, @payload, key, limit - records)
|
|
150
|
-
@payload = self.next_page
|
|
151
|
-
break unless @payload
|
|
152
|
-
records += (@payload.body[key] || []).size
|
|
153
|
-
end
|
|
154
|
-
# Path Solution
|
|
155
|
-
@solution = solution
|
|
156
|
-
end
|
|
157
|
-
|
|
158
|
-
def each
|
|
159
|
-
@notification_page.each do |record|
|
|
160
|
-
yield record
|
|
161
|
-
end
|
|
162
|
-
end
|
|
163
|
-
|
|
164
|
-
def to_s
|
|
165
|
-
'<Twilio::REST::Verify::V2PageMetadata>';
|
|
166
|
-
end
|
|
167
|
-
end
|
|
168
|
-
class NotificationListResponse < InstanceListResource
|
|
169
|
-
|
|
170
|
-
# @param [Array<NotificationInstance>] instance
|
|
171
|
-
# @param [Hash{String => Object}] headers
|
|
172
|
-
# @param [Integer] status_code
|
|
173
|
-
def initialize(version, payload, key, limit = :unset)
|
|
174
|
-
data_list = payload.body[key] || []
|
|
175
|
-
if limit != :unset
|
|
176
|
-
data_list = data_list[0, limit]
|
|
177
|
-
end
|
|
178
|
-
@notification = data_list.map do |data|
|
|
179
|
-
NotificationInstance.new(version, data)
|
|
180
|
-
end
|
|
181
|
-
@headers = payload.headers
|
|
182
|
-
@status_code = payload.status_code
|
|
183
|
-
end
|
|
184
|
-
|
|
185
|
-
def notification
|
|
186
|
-
@notification
|
|
187
|
-
end
|
|
188
|
-
|
|
189
|
-
def headers
|
|
190
|
-
@headers
|
|
191
|
-
end
|
|
192
|
-
|
|
193
|
-
def status_code
|
|
194
|
-
@status_code
|
|
195
|
-
end
|
|
196
|
-
end
|
|
197
|
-
|
|
198
139
|
class NotificationInstance < InstanceResource
|
|
199
140
|
##
|
|
200
141
|
# Initialize the NotificationInstance
|
|
@@ -211,65 +211,6 @@ module Twilio
|
|
|
211
211
|
end
|
|
212
212
|
end
|
|
213
213
|
|
|
214
|
-
class NewFactorPageMetadata < PageMetadata
|
|
215
|
-
attr_reader :new_factor_page
|
|
216
|
-
|
|
217
|
-
def initialize(version, response, solution, limit)
|
|
218
|
-
super(version, response)
|
|
219
|
-
@new_factor_page = []
|
|
220
|
-
@limit = limit
|
|
221
|
-
key = get_key(response.body)
|
|
222
|
-
records = 0
|
|
223
|
-
while( limit != :unset && records < limit )
|
|
224
|
-
@new_factor_page << NewFactorListResponse.new(version, @payload, key, limit - records)
|
|
225
|
-
@payload = self.next_page
|
|
226
|
-
break unless @payload
|
|
227
|
-
records += (@payload.body[key] || []).size
|
|
228
|
-
end
|
|
229
|
-
# Path Solution
|
|
230
|
-
@solution = solution
|
|
231
|
-
end
|
|
232
|
-
|
|
233
|
-
def each
|
|
234
|
-
@new_factor_page.each do |record|
|
|
235
|
-
yield record
|
|
236
|
-
end
|
|
237
|
-
end
|
|
238
|
-
|
|
239
|
-
def to_s
|
|
240
|
-
'<Twilio::REST::Verify::V2PageMetadata>';
|
|
241
|
-
end
|
|
242
|
-
end
|
|
243
|
-
class NewFactorListResponse < InstanceListResource
|
|
244
|
-
|
|
245
|
-
# @param [Array<NewFactorInstance>] instance
|
|
246
|
-
# @param [Hash{String => Object}] headers
|
|
247
|
-
# @param [Integer] status_code
|
|
248
|
-
def initialize(version, payload, key, limit = :unset)
|
|
249
|
-
data_list = payload.body[key] || []
|
|
250
|
-
if limit != :unset
|
|
251
|
-
data_list = data_list[0, limit]
|
|
252
|
-
end
|
|
253
|
-
@new_factor = data_list.map do |data|
|
|
254
|
-
NewFactorInstance.new(version, data)
|
|
255
|
-
end
|
|
256
|
-
@headers = payload.headers
|
|
257
|
-
@status_code = payload.status_code
|
|
258
|
-
end
|
|
259
|
-
|
|
260
|
-
def new_factor
|
|
261
|
-
@new_factor
|
|
262
|
-
end
|
|
263
|
-
|
|
264
|
-
def headers
|
|
265
|
-
@headers
|
|
266
|
-
end
|
|
267
|
-
|
|
268
|
-
def status_code
|
|
269
|
-
@status_code
|
|
270
|
-
end
|
|
271
|
-
end
|
|
272
|
-
|
|
273
214
|
class NewFactorInstance < InstanceResource
|
|
274
215
|
##
|
|
275
216
|
# Initialize the NewFactorInstance
|
|
@@ -80,7 +80,7 @@ module Twilio
|
|
|
80
80
|
# Create the NewChallengeInstance
|
|
81
81
|
# @param [CreatePasskeysChallengeRequest] create_passkeys_challenge_request
|
|
82
82
|
# @return [NewChallengeInstance] Created NewChallengeInstance
|
|
83
|
-
def create(create_passkeys_challenge_request:
|
|
83
|
+
def create(create_passkeys_challenge_request: :unset
|
|
84
84
|
)
|
|
85
85
|
|
|
86
86
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
@@ -101,7 +101,7 @@ module Twilio
|
|
|
101
101
|
# Create the NewChallengeInstanceMetadata
|
|
102
102
|
# @param [CreatePasskeysChallengeRequest] create_passkeys_challenge_request
|
|
103
103
|
# @return [NewChallengeInstance] Created NewChallengeInstance
|
|
104
|
-
def create_with_metadata(create_passkeys_challenge_request:
|
|
104
|
+
def create_with_metadata(create_passkeys_challenge_request: :unset
|
|
105
105
|
)
|
|
106
106
|
|
|
107
107
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
@@ -217,65 +217,6 @@ module Twilio
|
|
|
217
217
|
end
|
|
218
218
|
end
|
|
219
219
|
|
|
220
|
-
class NewChallengePageMetadata < PageMetadata
|
|
221
|
-
attr_reader :new_challenge_page
|
|
222
|
-
|
|
223
|
-
def initialize(version, response, solution, limit)
|
|
224
|
-
super(version, response)
|
|
225
|
-
@new_challenge_page = []
|
|
226
|
-
@limit = limit
|
|
227
|
-
key = get_key(response.body)
|
|
228
|
-
records = 0
|
|
229
|
-
while( limit != :unset && records < limit )
|
|
230
|
-
@new_challenge_page << NewChallengeListResponse.new(version, @payload, key, limit - records)
|
|
231
|
-
@payload = self.next_page
|
|
232
|
-
break unless @payload
|
|
233
|
-
records += (@payload.body[key] || []).size
|
|
234
|
-
end
|
|
235
|
-
# Path Solution
|
|
236
|
-
@solution = solution
|
|
237
|
-
end
|
|
238
|
-
|
|
239
|
-
def each
|
|
240
|
-
@new_challenge_page.each do |record|
|
|
241
|
-
yield record
|
|
242
|
-
end
|
|
243
|
-
end
|
|
244
|
-
|
|
245
|
-
def to_s
|
|
246
|
-
'<Twilio::REST::Verify::V2PageMetadata>';
|
|
247
|
-
end
|
|
248
|
-
end
|
|
249
|
-
class NewChallengeListResponse < InstanceListResource
|
|
250
|
-
|
|
251
|
-
# @param [Array<NewChallengeInstance>] instance
|
|
252
|
-
# @param [Hash{String => Object}] headers
|
|
253
|
-
# @param [Integer] status_code
|
|
254
|
-
def initialize(version, payload, key, limit = :unset)
|
|
255
|
-
data_list = payload.body[key] || []
|
|
256
|
-
if limit != :unset
|
|
257
|
-
data_list = data_list[0, limit]
|
|
258
|
-
end
|
|
259
|
-
@new_challenge = data_list.map do |data|
|
|
260
|
-
NewChallengeInstance.new(version, data)
|
|
261
|
-
end
|
|
262
|
-
@headers = payload.headers
|
|
263
|
-
@status_code = payload.status_code
|
|
264
|
-
end
|
|
265
|
-
|
|
266
|
-
def new_challenge
|
|
267
|
-
@new_challenge
|
|
268
|
-
end
|
|
269
|
-
|
|
270
|
-
def headers
|
|
271
|
-
@headers
|
|
272
|
-
end
|
|
273
|
-
|
|
274
|
-
def status_code
|
|
275
|
-
@status_code
|
|
276
|
-
end
|
|
277
|
-
end
|
|
278
|
-
|
|
279
220
|
class NewChallengeInstance < InstanceResource
|
|
280
221
|
##
|
|
281
222
|
# Initialize the NewChallengeInstance
|
|
@@ -447,7 +388,7 @@ module Twilio
|
|
|
447
388
|
# Create the NewChallengeInstance
|
|
448
389
|
# @param [CreatePasskeysChallengeRequest] create_passkeys_challenge_request
|
|
449
390
|
# @return [NewChallengeInstance] Created NewChallengeInstance
|
|
450
|
-
def create(create_passkeys_challenge_request:
|
|
391
|
+
def create(create_passkeys_challenge_request: :unset
|
|
451
392
|
)
|
|
452
393
|
|
|
453
394
|
context.create(
|