twilio-ruby 6.8.0 → 7.10.7
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 +5 -5
- data/.dockerignore +1 -1
- data/.github/ISSUE_TEMPLATE/bug_report.yml +69 -0
- data/.github/workflows/test-and-deploy.yml +17 -8
- data/.gitignore +1 -0
- data/.rubocop.yml +1 -0
- data/CHANGES.md +1303 -1
- data/Dockerfile +3 -2
- data/Gemfile +5 -0
- data/Makefile +4 -1
- data/README.md +7 -2
- data/UPGRADE.md +11 -0
- data/cluster/cluster_oauth_spec.rb +19 -0
- data/cluster/cluster_orgs_spec.rb +40 -0
- data/{cluster_spec.rb → cluster/cluster_spec.rb} +0 -2
- data/examples/public_oauth.rb +13 -0
- data/lib/twilio-ruby/auth_strategy/auth_strategy.rb +19 -0
- data/lib/twilio-ruby/auth_strategy/no_auth_strategy.rb +17 -0
- data/lib/twilio-ruby/auth_strategy/token_auth_strategy.rb +39 -0
- data/lib/twilio-ruby/base/client_base.rb +12 -2
- data/lib/twilio-ruby/credential/auth_type.rb +17 -0
- data/lib/twilio-ruby/credential/client_credential_provider.rb +28 -0
- data/lib/twilio-ruby/credential/credential_provider.rb +11 -0
- data/lib/twilio-ruby/credential/orgs_credential_provider.rb +30 -0
- data/lib/twilio-ruby/framework/request.rb +8 -1
- data/lib/twilio-ruby/framework/rest/api_v1_version.rb +22 -0
- data/lib/twilio-ruby/framework/rest/domain.rb +0 -1
- data/lib/twilio-ruby/framework/rest/error.rb +27 -0
- data/lib/twilio-ruby/framework/rest/page.rb +1 -0
- data/lib/twilio-ruby/framework/rest/page_metadata.rb +83 -0
- data/lib/twilio-ruby/framework/rest/resource.rb +16 -0
- data/lib/twilio-ruby/framework/rest/token_page.rb +73 -0
- data/lib/twilio-ruby/framework/rest/version.rb +91 -4
- data/lib/twilio-ruby/http/client_token_manager.rb +31 -0
- data/lib/twilio-ruby/http/http_client.rb +22 -5
- data/lib/twilio-ruby/http/org_token_manager.rb +31 -0
- data/lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb +143 -1
- data/lib/twilio-ruby/rest/accounts/v1/bulk_consents.rb +231 -0
- data/lib/twilio-ruby/rest/accounts/v1/bulk_contacts.rb +231 -0
- data/lib/twilio-ruby/rest/accounts/v1/credential/aws.rb +295 -14
- data/lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb +295 -14
- data/lib/twilio-ruby/rest/accounts/v1/credential.rb +64 -0
- data/lib/twilio-ruby/rest/accounts/v1/messaging_geopermissions.rb +285 -0
- data/lib/twilio-ruby/rest/accounts/v1/safelist.rb +177 -10
- data/lib/twilio-ruby/rest/accounts/v1/secondary_auth_token.rb +168 -2
- data/lib/twilio-ruby/rest/accounts/v1.rb +29 -2
- data/lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb +102 -5
- data/lib/twilio-ruby/rest/api/v2010/account/address.rb +385 -42
- data/lib/twilio-ruby/rest/api/v2010/account/application.rb +427 -57
- data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +183 -20
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/local.rb +141 -8
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/machine_to_machine.rb +141 -8
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/mobile.rb +141 -8
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/national.rb +141 -8
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/shared_cost.rb +141 -8
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/toll_free.rb +141 -8
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/voip.rb +141 -8
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country.rb +183 -6
- data/lib/twilio-ruby/rest/api/v2010/account/balance.rb +96 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call/event.rb +102 -5
- data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +192 -6
- data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +283 -28
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +330 -19
- data/lib/twilio-ruby/rest/api/v2010/account/call/siprec.rb +1004 -207
- data/lib/twilio-ruby/rest/api/v2010/account/call/stream.rb +1010 -213
- data/lib/twilio-ruby/rest/api/v2010/account/call/transcription.rb +559 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message.rb +109 -3
- data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message_subscription.rb +186 -5
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +550 -120
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +572 -86
- data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +263 -12
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +274 -36
- data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +285 -24
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +185 -8
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +250 -11
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +238 -29
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +238 -29
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +238 -29
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +507 -79
- data/lib/twilio-ruby/rest/api/v2010/account/key.rb +250 -10
- data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +105 -2
- data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +215 -7
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +421 -52
- data/lib/twilio-ruby/rest/api/v2010/account/new_key.rb +104 -2
- data/lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb +104 -2
- data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +191 -6
- data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +254 -10
- data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +232 -11
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +299 -15
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload/data.rb +343 -0
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +232 -8
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +209 -7
- data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +209 -7
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +229 -10
- data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +254 -19
- data/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb +250 -10
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +297 -13
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +290 -12
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls/auth_calls_credential_list_mapping.rb +250 -9
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls/auth_calls_ip_access_control_list_mapping.rb +250 -9
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls.rb +64 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_registrations/auth_registrations_credential_list_mapping.rb +250 -9
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_registrations.rb +64 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types.rb +64 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +250 -9
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +250 -9
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +398 -48
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +311 -18
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +290 -12
- data/lib/twilio-ruby/rest/api/v2010/account/sip.rb +64 -0
- data/lib/twilio-ruby/rest/api/v2010/account/token.rb +104 -2
- data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +208 -7
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +114 -9
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +114 -9
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +114 -9
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +114 -9
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +114 -9
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +114 -9
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +114 -9
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +114 -9
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +114 -9
- data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +335 -27
- data/lib/twilio-ruby/rest/api/v2010/account/usage.rb +64 -0
- data/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb +124 -7
- data/lib/twilio-ruby/rest/api/v2010/account.rb +271 -13
- data/lib/twilio-ruby/rest/api/v2010.rb +1 -0
- data/lib/twilio-ruby/rest/assistants/v1/assistant/assistants_knowledge.rb +558 -0
- data/lib/twilio-ruby/rest/assistants/v1/assistant/assistants_tool.rb +558 -0
- data/lib/twilio-ruby/rest/assistants/v1/assistant/feedback.rb +431 -0
- data/lib/twilio-ruby/rest/assistants/v1/assistant/message.rb +296 -0
- data/lib/twilio-ruby/rest/assistants/v1/assistant.rb +927 -0
- data/lib/twilio-ruby/rest/{microvisor/v1/app.rb → assistants/v1/knowledge/chunk.rb} +145 -169
- data/lib/twilio-ruby/rest/assistants/v1/knowledge/knowledge_status.rb +349 -0
- data/lib/twilio-ruby/rest/assistants/v1/knowledge.rb +871 -0
- data/lib/twilio-ruby/rest/assistants/v1/policy.rb +364 -0
- data/lib/twilio-ruby/rest/assistants/v1/session/message.rb +360 -0
- data/lib/twilio-ruby/rest/assistants/v1/session.rb +501 -0
- data/lib/twilio-ruby/rest/assistants/v1/tool.rb +847 -0
- data/lib/twilio-ruby/rest/assistants/v1.rb +104 -0
- data/lib/twilio-ruby/rest/assistants.rb +6 -0
- data/lib/twilio-ruby/rest/{autopilot_base.rb → assistants_base.rb} +6 -6
- data/lib/twilio-ruby/rest/bulkexports/v1/export/day.rb +183 -6
- data/lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb +163 -13
- data/lib/twilio-ruby/rest/bulkexports/v1/export/job.rb +170 -3
- data/lib/twilio-ruby/rest/bulkexports/v1/export.rb +144 -1
- data/lib/twilio-ruby/rest/bulkexports/v1/export_configuration.rb +195 -8
- data/lib/twilio-ruby/rest/bulkexports/v1.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v1/credential.rb +336 -28
- data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +257 -10
- data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +305 -15
- data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +308 -16
- data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +315 -19
- data/lib/twilio-ruby/rest/chat/v1/service/role.rb +298 -14
- data/lib/twilio-ruby/rest/chat/v1/service/user/user_channel.rb +102 -5
- data/lib/twilio-ruby/rest/chat/v1/service/user.rb +312 -19
- data/lib/twilio-ruby/rest/chat/v1/service.rb +552 -118
- data/lib/twilio-ruby/rest/chat/v1.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v2/credential.rb +336 -28
- data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +214 -7
- data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +257 -10
- data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +354 -33
- data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +353 -33
- data/lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb +342 -28
- data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +351 -33
- data/lib/twilio-ruby/rest/chat/v2/service/role.rb +298 -14
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +212 -7
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +266 -16
- data/lib/twilio-ruby/rest/chat/v2/service/user.rb +317 -22
- data/lib/twilio-ruby/rest/chat/v2/service.rb +437 -72
- data/lib/twilio-ruby/rest/chat/v2.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v3/channel.rb +162 -7
- data/lib/twilio-ruby/rest/chat/v3.rb +6 -0
- data/lib/twilio-ruby/rest/client.rb +26 -11
- data/lib/twilio-ruby/rest/content/v1/content/approval_create.rb +280 -0
- data/lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb +144 -3
- data/lib/twilio-ruby/rest/content/v1/content.rb +1577 -10
- data/lib/twilio-ruby/rest/content/v1/content_and_approvals.rb +102 -5
- data/lib/twilio-ruby/rest/content/v1/legacy_content.rb +102 -5
- data/lib/twilio-ruby/rest/content/v1.rb +1 -0
- data/lib/twilio-ruby/rest/content/v2/content.rb +433 -0
- data/lib/twilio-ruby/rest/content/v2/content_and_approvals.rb +426 -0
- data/lib/twilio-ruby/rest/content/v2.rb +46 -0
- data/lib/twilio-ruby/rest/content_base.rb +6 -1
- data/lib/twilio-ruby/rest/conversations/v1/address_configuration.rb +373 -39
- data/lib/twilio-ruby/rest/conversations/v1/configuration/webhook.rb +206 -15
- data/lib/twilio-ruby/rest/conversations/v1/configuration.rb +198 -10
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message/delivery_receipt.rb +184 -6
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +360 -37
- data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +367 -40
- data/lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb +334 -26
- data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +421 -76
- data/lib/twilio-ruby/rest/conversations/v1/conversation_with_participants.rb +392 -0
- data/lib/twilio-ruby/rest/conversations/v1/credential.rb +341 -30
- data/lib/twilio-ruby/rest/conversations/v1/participant_conversation.rb +106 -5
- data/lib/twilio-ruby/rest/conversations/v1/role.rb +295 -14
- data/lib/twilio-ruby/rest/conversations/v1/service/binding.rb +217 -10
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration/notification.rb +245 -28
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration/webhook.rb +200 -10
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration.rb +216 -26
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message/delivery_receipt.rb +185 -6
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +363 -37
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/participant.rb +370 -40
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb +337 -26
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb +425 -77
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation_with_participants.rb +399 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/participant_conversation.rb +106 -5
- data/lib/twilio-ruby/rest/conversations/v1/service/role.rb +298 -14
- data/lib/twilio-ruby/rest/conversations/v1/service/user/user_conversation.rb +262 -14
- data/lib/twilio-ruby/rest/conversations/v1/service/user.rb +321 -24
- data/lib/twilio-ruby/rest/conversations/v1/service.rb +283 -27
- data/lib/twilio-ruby/rest/conversations/v1/user/user_conversation.rb +260 -14
- data/lib/twilio-ruby/rest/conversations/v1/user.rb +318 -24
- data/lib/twilio-ruby/rest/conversations/v1.rb +12 -0
- data/lib/twilio-ruby/rest/conversations/v2/action.rb +507 -0
- data/lib/twilio-ruby/rest/conversations/v2/communication.rb +698 -0
- data/lib/twilio-ruby/rest/conversations/v2/configuration.rb +1208 -0
- data/lib/twilio-ruby/rest/conversations/v2/conversation.rb +1365 -0
- data/lib/twilio-ruby/rest/conversations/v2/operation.rb +369 -0
- data/lib/twilio-ruby/rest/conversations/v2/participant.rb +745 -0
- data/lib/twilio-ruby/rest/conversations/v2.rb +142 -0
- data/lib/twilio-ruby/rest/conversations_base.rb +6 -1
- data/lib/twilio-ruby/rest/events/v1/event_type.rb +198 -8
- data/lib/twilio-ruby/rest/events/v1/schema/schema_version.rb +183 -8
- data/lib/twilio-ruby/rest/events/v1/schema.rb +144 -3
- data/lib/twilio-ruby/rest/events/v1/sink/sink_test.rb +96 -1
- data/lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb +104 -2
- data/lib/twilio-ruby/rest/events/v1/sink.rb +299 -16
- data/lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb +298 -19
- data/lib/twilio-ruby/rest/events/v1/subscription.rb +297 -22
- data/lib/twilio-ruby/rest/events/v1.rb +4 -0
- data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +288 -31
- data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +282 -18
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +216 -3
- data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +433 -60
- data/lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb +172 -16
- data/lib/twilio-ruby/rest/flex_api/v1/insights_conversations.rb +106 -5
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb +331 -30
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb +266 -18
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb +305 -30
- data/lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb +109 -5
- data/lib/twilio-ruby/rest/flex_api/v1/insights_session.rb +147 -5
- data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_answer_sets.rb +98 -2
- data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb +98 -2
- data/lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.rb +147 -5
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.rb +143 -7
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_participant.rb +251 -11
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_transfer.rb +548 -0
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel.rb +257 -11
- data/lib/twilio-ruby/rest/flex_api/v1/interaction.rb +275 -5
- data/lib/twilio-ruby/rest/flex_api/v1/plugin/plugin_versions.rb +629 -0
- data/lib/twilio-ruby/rest/flex_api/v1/plugin.rb +708 -0
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_archive.rb +390 -0
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration/configured_plugin.rb +572 -0
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration.rb +607 -0
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration_archive.rb +376 -0
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_release.rb +547 -0
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_version_archive.rb +400 -0
- data/lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb +327 -0
- data/lib/twilio-ruby/rest/flex_api/v1/web_channel.rb +312 -19
- data/lib/twilio-ruby/rest/flex_api/v1.rb +137 -0
- data/lib/twilio-ruby/rest/flex_api/v2/flex_user.rb +515 -0
- data/lib/twilio-ruby/rest/flex_api/v2/web_channels.rb +125 -5
- data/lib/twilio-ruby/rest/flex_api/v2.rb +43 -0
- data/lib/twilio-ruby/rest/frontline_api/v1/user.rb +200 -12
- data/lib/twilio-ruby/rest/frontline_api/v1.rb +1 -0
- data/lib/twilio-ruby/rest/iam/v1/api_key.rb +471 -0
- data/lib/twilio-ruby/rest/iam/v1/get_api_keys.rb +328 -0
- data/lib/twilio-ruby/rest/iam/v1/new_api_key.rb +284 -0
- data/lib/twilio-ruby/rest/iam/v1/o_auth_app.rb +647 -0
- data/lib/twilio-ruby/rest/iam/v1/role_permission.rb +327 -0
- data/lib/twilio-ruby/rest/iam/v1/token.rb +301 -0
- data/lib/twilio-ruby/rest/iam/v1.rb +99 -0
- data/lib/twilio-ruby/rest/iam.rb +6 -0
- data/lib/twilio-ruby/rest/iam_base.rb +33 -0
- data/lib/twilio-ruby/rest/insights/v1/call/annotation.rb +216 -19
- data/lib/twilio-ruby/rest/insights/v1/call/call_summary.rb +162 -13
- data/lib/twilio-ruby/rest/insights/v1/call/event.rb +108 -9
- data/lib/twilio-ruby/rest/insights/v1/call/metric.rb +106 -5
- data/lib/twilio-ruby/rest/insights/v1/call.rb +144 -1
- data/lib/twilio-ruby/rest/insights/v1/call_summaries.rb +267 -26
- data/lib/twilio-ruby/rest/insights/v1/conference/conference_participant.rb +202 -10
- data/lib/twilio-ruby/rest/insights/v1/conference.rb +202 -6
- data/lib/twilio-ruby/rest/insights/v1/room/participant.rb +183 -8
- data/lib/twilio-ruby/rest/insights/v1/room.rb +194 -8
- data/lib/twilio-ruby/rest/insights/v1/setting.rb +201 -10
- data/lib/twilio-ruby/rest/insights/v1.rb +3 -0
- data/lib/twilio-ruby/rest/insights/v2/inbound.rb +579 -0
- data/lib/twilio-ruby/rest/insights/v2/outbound.rb +650 -0
- data/lib/twilio-ruby/rest/insights/v2/report.rb +941 -0
- data/lib/twilio-ruby/rest/insights/v2.rb +82 -0
- data/lib/twilio-ruby/rest/insights/v3/metadata.rb +227 -0
- data/lib/twilio-ruby/rest/insights/v3/query.rb +394 -0
- data/lib/twilio-ruby/rest/insights/v3.rb +46 -0
- data/lib/twilio-ruby/rest/insights_base.rb +11 -1
- data/lib/twilio-ruby/rest/intelligence/v2/custom_operator.rb +728 -0
- data/lib/twilio-ruby/rest/intelligence/v2/operator.rb +533 -0
- data/lib/twilio-ruby/rest/intelligence/v2/operator_attachment.rb +380 -0
- data/lib/twilio-ruby/rest/intelligence/v2/operator_attachments.rb +337 -0
- data/lib/twilio-ruby/rest/intelligence/v2/operator_type.rb +539 -0
- data/lib/twilio-ruby/rest/intelligence/v2/prebuilt_operator.rb +533 -0
- data/lib/twilio-ruby/rest/intelligence/v2/service.rb +392 -50
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_operator_results.rb +359 -0
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_sentences.rb +359 -0
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/media.rb +152 -5
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/operator_result.rb +207 -10
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/sentence.rb +124 -10
- data/lib/twilio-ruby/rest/intelligence/v2/transcript.rb +333 -30
- data/lib/twilio-ruby/rest/intelligence/v2.rb +125 -0
- data/lib/twilio-ruby/rest/intelligence/v3/configuration.rb +1073 -0
- data/lib/twilio-ruby/rest/intelligence/v3/conversation.rb +602 -0
- data/lib/twilio-ruby/rest/intelligence/v3/operator.rb +784 -0
- data/lib/twilio-ruby/rest/intelligence/v3/operator_result.rb +622 -0
- data/lib/twilio-ruby/rest/intelligence/v3/version.rb +556 -0
- data/lib/twilio-ruby/rest/intelligence/v3.rb +120 -0
- data/lib/twilio-ruby/rest/intelligence_base.rb +6 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +336 -28
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +257 -10
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +305 -15
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +308 -16
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +315 -19
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +298 -14
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user/user_channel.rb +102 -5
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +312 -19
- data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +552 -118
- data/lib/twilio-ruby/rest/ip_messaging/v1.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +336 -28
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +214 -7
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +257 -10
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +354 -33
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +353 -33
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb +342 -28
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +351 -33
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +298 -14
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +212 -7
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +262 -14
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +317 -22
- data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +437 -72
- data/lib/twilio-ruby/rest/ip_messaging/v2.rb +2 -0
- data/lib/twilio-ruby/rest/knowledge/v1/knowledge/chunk.rb +325 -0
- data/lib/twilio-ruby/rest/knowledge/v1/knowledge/knowledge_status.rb +349 -0
- data/lib/twilio-ruby/rest/knowledge/v1/knowledge.rb +865 -0
- data/lib/twilio-ruby/rest/{preview/sync.rb → knowledge/v1.rb} +17 -16
- data/lib/twilio-ruby/rest/knowledge/v2/chunk.rb +306 -0
- data/lib/twilio-ruby/rest/knowledge/v2/knowledge.rb +714 -0
- data/lib/twilio-ruby/rest/knowledge/v2/knowledge_basis.rb +739 -0
- data/lib/twilio-ruby/rest/knowledge/v2/operation.rb +376 -0
- data/lib/twilio-ruby/rest/knowledge/v2/search.rb +355 -0
- data/lib/twilio-ruby/rest/knowledge/v2.rb +145 -0
- data/lib/twilio-ruby/rest/knowledge.rb +6 -0
- data/lib/twilio-ruby/rest/knowledge_base.rb +43 -0
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +170 -12
- data/lib/twilio-ruby/rest/lookups/v1.rb +1 -0
- data/lib/twilio-ruby/rest/lookups/v2/bucket.rb +501 -0
- data/lib/twilio-ruby/rest/lookups/v2/lookup_override.rb +605 -0
- data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +252 -44
- data/lib/twilio-ruby/rest/lookups/v2/query.rb +351 -0
- data/lib/twilio-ruby/rest/lookups/v2/rate_limit.rb +229 -0
- data/lib/twilio-ruby/rest/lookups/v2.rb +99 -0
- data/lib/twilio-ruby/rest/marketplace/v1/available_add_on/available_add_on_extension.rb +483 -0
- data/lib/twilio-ruby/rest/marketplace/v1/available_add_on.rb +509 -0
- data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_extension.rb +563 -0
- data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_usage.rb +252 -0
- data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on.rb +743 -0
- data/lib/twilio-ruby/rest/marketplace/v1/module_data.rb +342 -0
- data/lib/twilio-ruby/rest/marketplace/v1/module_data_management.rb +511 -0
- data/lib/twilio-ruby/rest/marketplace/v1/referral_conversion.rb +235 -0
- data/lib/twilio-ruby/rest/marketplace/v1.rb +94 -0
- data/lib/twilio-ruby/rest/marketplace.rb +6 -0
- data/lib/twilio-ruby/rest/marketplace_base.rb +38 -0
- data/lib/twilio-ruby/rest/memory/v1/bulk.rb +362 -0
- data/lib/twilio-ruby/rest/memory/v1/conversation_summary.rb +798 -0
- data/lib/twilio-ruby/rest/memory/v1/data_mapping.rb +843 -0
- data/lib/twilio-ruby/rest/memory/v1/event.rb +320 -0
- data/lib/twilio-ruby/rest/memory/v1/identifier.rb +710 -0
- data/lib/twilio-ruby/rest/memory/v1/identity_resolution_setting.rb +442 -0
- data/lib/twilio-ruby/rest/memory/v1/import.rb +574 -0
- data/lib/twilio-ruby/rest/memory/v1/lookup.rb +250 -0
- data/lib/twilio-ruby/rest/memory/v1/observation.rb +786 -0
- data/lib/twilio-ruby/rest/memory/v1/operation.rb +376 -0
- data/lib/twilio-ruby/rest/memory/v1/profile.rb +721 -0
- data/lib/twilio-ruby/rest/memory/v1/recall.rb +366 -0
- data/lib/twilio-ruby/rest/memory/v1/revision.rb +349 -0
- data/lib/twilio-ruby/rest/memory/v1/store.rb +746 -0
- data/lib/twilio-ruby/rest/memory/v1/trait.rb +336 -0
- data/lib/twilio-ruby/rest/memory/v1/trait_group.rb +904 -0
- data/lib/twilio-ruby/rest/memory/v1.rb +475 -0
- data/lib/twilio-ruby/rest/memory.rb +6 -0
- data/lib/twilio-ruby/rest/{media_base.rb → memory_base.rb} +6 -6
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_registration_otp.rb +96 -1
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_vetting.rb +229 -11
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +296 -17
- data/lib/twilio-ruby/rest/messaging/v1/deactivations.rb +151 -3
- data/lib/twilio-ruby/rest/messaging/v1/domain_certs.rb +210 -7
- data/lib/twilio-ruby/rest/messaging/v1/domain_config.rb +200 -12
- data/lib/twilio-ruby/rest/messaging/v1/domain_config_messaging_service.rb +144 -3
- data/lib/twilio-ruby/rest/messaging/v1/domain_validate_dn.rb +344 -0
- data/lib/twilio-ruby/rest/messaging/v1/external_campaign.rb +113 -3
- data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service.rb +170 -4
- data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service_domain_association.rb +144 -3
- data/lib/twilio-ruby/rest/messaging/v1/request_managed_cert.rb +379 -0
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +248 -11
- data/lib/twilio-ruby/rest/messaging/v1/service/channel_sender.rb +282 -9
- data/lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb +616 -0
- data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +248 -11
- data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +248 -11
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +543 -30
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person_usecase.rb +103 -2
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +453 -63
- data/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb +870 -83
- data/lib/twilio-ruby/rest/messaging/v1/usecase.rb +95 -1
- data/lib/twilio-ruby/rest/messaging/v1.rb +46 -1
- data/lib/twilio-ruby/rest/messaging/v2/channels_sender.rb +1017 -0
- data/lib/twilio-ruby/rest/messaging/v2/domain_certs.rb +386 -0
- data/lib/twilio-ruby/rest/messaging/v2/typing_indicator.rb +237 -0
- data/lib/twilio-ruby/rest/messaging/v2.rb +72 -0
- data/lib/twilio-ruby/rest/messaging/v3/typing_indicator.rb +247 -0
- data/lib/twilio-ruby/rest/messaging/v3.rb +40 -0
- data/lib/twilio-ruby/rest/messaging_base.rb +11 -1
- data/lib/twilio-ruby/rest/monitor/v1/alert.rb +188 -6
- data/lib/twilio-ruby/rest/monitor/v1/event.rb +195 -7
- data/lib/twilio-ruby/rest/monitor/v1.rb +2 -0
- data/lib/twilio-ruby/rest/notify/v1/credential.rb +336 -30
- data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +282 -17
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +173 -20
- data/lib/twilio-ruby/rest/notify/v1/service.rb +410 -57
- data/lib/twilio-ruby/rest/notify/v1.rb +2 -0
- data/lib/twilio-ruby/rest/numbers/v1/bulk_eligibility.rb +190 -3
- data/lib/twilio-ruby/rest/numbers/v1/eligibility.rb +221 -0
- data/lib/twilio-ruby/rest/numbers/v1/embedded_session.rb +251 -0
- data/lib/twilio-ruby/rest/numbers/v1/porting_all_port_in.rb +375 -0
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb +616 -0
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in_phone_number.rb +485 -0
- data/lib/twilio-ruby/rest/numbers/v1/porting_portability.rb +168 -26
- data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration.rb +242 -0
- data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_delete.rb +301 -0
- data/lib/twilio-ruby/rest/numbers/v1/sender_id_registration.rb +333 -0
- data/lib/twilio-ruby/rest/numbers/v1/signing_request_configuration.rb +403 -0
- data/lib/twilio-ruby/rest/numbers/v1/webhook.rb +252 -0
- data/lib/twilio-ruby/rest/numbers/v1.rb +125 -12
- data/lib/twilio-ruby/rest/numbers/v2/application.rb +715 -0
- data/lib/twilio-ruby/rest/numbers/v2/authorization_document/dependent_hosted_number_order.rb +110 -5
- data/lib/twilio-ruby/rest/numbers/v2/authorization_document.rb +270 -16
- data/lib/twilio-ruby/rest/numbers/v2/bulk_hosted_number_order.rb +198 -5
- data/lib/twilio-ruby/rest/numbers/v2/bundle_clone.rb +430 -0
- data/lib/twilio-ruby/rest/numbers/v2/hosted_number_order.rb +448 -27
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb +142 -7
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/evaluation.rb +215 -7
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/item_assignment.rb +248 -9
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/replace_items.rb +104 -2
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +376 -30
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user.rb +300 -16
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user_type.rb +182 -6
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/regulation.rb +218 -11
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document.rb +307 -16
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document_type.rb +182 -6
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb +64 -0
- data/lib/twilio-ruby/rest/numbers/v2.rb +35 -0
- data/lib/twilio-ruby/rest/numbers/v3/hosted_number_order.rb +484 -0
- data/lib/twilio-ruby/rest/numbers/v3.rb +40 -0
- data/lib/twilio-ruby/rest/numbers_base.rb +5 -0
- data/lib/twilio-ruby/rest/oauth/v1/authorize.rb +253 -0
- data/lib/twilio-ruby/rest/oauth/v1/token.rb +149 -27
- data/lib/twilio-ruby/rest/oauth/v1.rb +4 -22
- data/lib/twilio-ruby/rest/oauth/v2/authorize.rb +253 -0
- data/lib/twilio-ruby/rest/oauth/v2/token.rb +311 -0
- data/lib/twilio-ruby/rest/oauth/v2.rb +46 -0
- data/lib/twilio-ruby/rest/oauth.rb +2 -29
- data/lib/twilio-ruby/rest/oauth_base.rb +6 -1
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb +112 -5
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +316 -30
- data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +406 -48
- data/lib/twilio-ruby/rest/preview/hosted_numbers.rb +2 -0
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb +183 -8
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +182 -8
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb +225 -11
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +304 -19
- data/lib/twilio-ruby/rest/preview/marketplace.rb +2 -0
- data/lib/twilio-ruby/rest/preview/wireless/command.rb +253 -16
- data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +328 -25
- data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +157 -7
- data/lib/twilio-ruby/rest/preview/wireless/sim.rb +308 -41
- data/lib/twilio-ruby/rest/preview/wireless.rb +3 -0
- data/lib/twilio-ruby/rest/preview.rb +1 -20
- data/lib/twilio-ruby/rest/preview_base.rb +0 -15
- data/lib/twilio-ruby/rest/preview_iam/v1/authorize.rb +253 -0
- data/lib/twilio-ruby/rest/preview_iam/v1/token.rb +301 -0
- data/lib/twilio-ruby/rest/preview_iam/v1.rb +46 -0
- data/lib/twilio-ruby/rest/preview_iam/versionless/organization/account.rb +476 -0
- data/lib/twilio-ruby/rest/preview_iam/versionless/organization/role_assignment.rb +603 -0
- data/lib/twilio-ruby/rest/preview_iam/versionless/organization/user.rb +981 -0
- data/lib/twilio-ruby/rest/preview_iam/versionless/organization.rb +413 -0
- data/lib/twilio-ruby/rest/preview_iam/versionless.rb +50 -0
- data/lib/twilio-ruby/rest/preview_iam.rb +9 -0
- data/lib/twilio-ruby/rest/{microvisor_base.rb → preview_iam_base.rb} +6 -6
- data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +182 -6
- data/lib/twilio-ruby/rest/pricing/v1/messaging.rb +64 -0
- data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +182 -6
- data/lib/twilio-ruby/rest/pricing/v1/phone_number.rb +64 -0
- data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +182 -6
- data/lib/twilio-ruby/rest/pricing/v1/voice/number.rb +144 -1
- data/lib/twilio-ruby/rest/pricing/v1/voice.rb +64 -0
- data/lib/twilio-ruby/rest/pricing/v1.rb +22 -4
- data/lib/twilio-ruby/rest/pricing/v2/country.rb +182 -6
- data/lib/twilio-ruby/rest/pricing/v2/number.rb +152 -3
- data/lib/twilio-ruby/rest/pricing/v2/voice/country.rb +182 -6
- data/lib/twilio-ruby/rest/pricing/v2/voice/number.rb +152 -3
- data/lib/twilio-ruby/rest/pricing/v2/voice.rb +64 -0
- data/lib/twilio-ruby/rest/pricing/v2.rb +13 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +298 -16
- data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +210 -10
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +231 -11
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +262 -14
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +320 -23
- data/lib/twilio-ruby/rest/proxy/v1/service.rb +350 -62
- data/lib/twilio-ruby/rest/proxy/v1.rb +1 -0
- data/lib/twilio-ruby/rest/routes/v2/phone_number.rb +190 -6
- data/lib/twilio-ruby/rest/routes/v2/sip_domain.rb +190 -6
- data/lib/twilio-ruby/rest/routes/v2/trunk.rb +190 -6
- data/lib/twilio-ruby/rest/routes/v2.rb +3 -0
- data/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +184 -8
- data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +290 -14
- data/lib/twilio-ruby/rest/serverless/v1/service/build/build_status.rb +145 -3
- data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +260 -14
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +231 -10
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +191 -9
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +302 -17
- data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +252 -12
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb +146 -3
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +184 -8
- data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +290 -14
- data/lib/twilio-ruby/rest/serverless/v1/service.rb +309 -21
- data/lib/twilio-ruby/rest/serverless/v1.rb +1 -0
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb +145 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb +146 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb +198 -6
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement.rb +256 -11
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_context.rb +145 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb +146 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb +198 -6
- data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +302 -14
- data/lib/twilio-ruby/rest/studio/v1/flow.rb +207 -7
- data/lib/twilio-ruby/rest/studio/v1.rb +1 -0
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_context.rb +145 -1
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step/execution_step_context.rb +146 -1
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb +198 -6
- data/lib/twilio-ruby/rest/studio/v2/flow/execution.rb +333 -16
- data/lib/twilio-ruby/rest/studio/v2/flow/flow_revision.rb +190 -6
- data/lib/twilio-ruby/rest/studio/v2/flow/flow_test_user.rb +185 -4
- data/lib/twilio-ruby/rest/studio/v2/flow.rb +336 -21
- data/lib/twilio-ruby/rest/studio/v2/flow_validate.rb +115 -5
- data/lib/twilio-ruby/rest/studio/v2.rb +1 -0
- data/lib/twilio-ruby/rest/supersim/v1/esim_profile.rb +243 -17
- data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +326 -33
- data/lib/twilio-ruby/rest/supersim/v1/ip_command.rb +249 -15
- data/lib/twilio-ruby/rest/supersim/v1/network.rb +188 -8
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +248 -11
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +266 -14
- data/lib/twilio-ruby/rest/supersim/v1/settings_update.rb +106 -5
- data/lib/twilio-ruby/rest/supersim/v1/sim/billing_period.rb +102 -5
- data/lib/twilio-ruby/rest/supersim/v1/sim/sim_ip_address.rb +102 -5
- data/lib/twilio-ruby/rest/supersim/v1/sim.rb +297 -24
- data/lib/twilio-ruby/rest/supersim/v1/sms_command.rb +239 -13
- data/lib/twilio-ruby/rest/supersim/v1/usage_record.rb +118 -5
- data/lib/twilio-ruby/rest/supersim/v1.rb +7 -0
- data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +262 -14
- data/lib/twilio-ruby/rest/sync/v1/service/document.rb +306 -18
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +333 -25
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +262 -14
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +303 -16
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +337 -26
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +262 -14
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +303 -16
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +105 -2
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +294 -13
- data/lib/twilio-ruby/rest/sync/v1/service.rb +341 -30
- data/lib/twilio-ruby/rest/sync/v1.rb +1 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +298 -13
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +205 -6
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +505 -117
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +411 -41
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +303 -16
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_bulk_real_time_statistics.rb +258 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +173 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +154 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +173 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb +114 -5
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +351 -27
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +493 -113
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +232 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +168 -9
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +167 -9
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +152 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +182 -15
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +336 -24
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +173 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +153 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +173 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +333 -26
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +172 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +152 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +172 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +339 -29
- data/lib/twilio-ruby/rest/taskrouter/v1.rb +1 -0
- data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +248 -9
- data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +248 -9
- data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +326 -24
- data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +249 -10
- data/lib/twilio-ruby/rest/trunking/v1/trunk/recording.rb +190 -6
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +357 -33
- data/lib/twilio-ruby/rest/trunking/v1.rb +1 -0
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb +213 -5
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_registration_inquiries.rb +656 -0
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb +474 -0
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.rb +256 -10
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb +258 -11
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.rb +223 -8
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles.rb +327 -21
- data/lib/twilio-ruby/rest/trusthub/v1/end_user.rb +300 -16
- data/lib/twilio-ruby/rest/trusthub/v1/end_user_type.rb +182 -6
- data/lib/twilio-ruby/rest/trusthub/v1/policies.rb +182 -6
- data/lib/twilio-ruby/rest/trusthub/v1/supporting_document.rb +300 -16
- data/lib/twilio-ruby/rest/trusthub/v1/supporting_document_type.rb +182 -6
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment.rb +256 -10
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_entity_assignments.rb +258 -11
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_evaluations.rb +223 -8
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products.rb +345 -39
- data/lib/twilio-ruby/rest/trusthub/v1.rb +31 -1
- data/lib/twilio-ruby/rest/verify/v2/form.rb +144 -3
- data/lib/twilio-ruby/rest/verify/v2/safelist.rb +208 -6
- data/lib/twilio-ruby/rest/verify/v2/service/access_token.rb +197 -6
- data/lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb +402 -0
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb +106 -2
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +299 -18
- data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +292 -26
- data/lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb +164 -15
- data/lib/twilio-ruby/rest/verify/v2/service/entity.rb +248 -9
- data/lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb +294 -13
- data/lib/twilio-ruby/rest/verify/v2/service/new_challenge.rb +479 -0
- data/lib/twilio-ruby/rest/verify/v2/service/new_factor.rb +387 -0
- data/lib/twilio-ruby/rest/verify/v2/service/new_verify_factor.rb +357 -0
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb +302 -15
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb +294 -13
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +301 -23
- data/lib/twilio-ruby/rest/verify/v2/service/verification_check.rb +127 -7
- data/lib/twilio-ruby/rest/verify/v2/service/webhook.rb +332 -30
- data/lib/twilio-ruby/rest/verify/v2/service.rb +667 -65
- data/lib/twilio-ruby/rest/verify/v2/template.rb +104 -5
- data/lib/twilio-ruby/rest/verify/v2/verification_attempt.rb +202 -10
- data/lib/twilio-ruby/rest/verify/v2/verification_attempts_summary.rb +179 -16
- data/lib/twilio-ruby/rest/verify/v2.rb +4 -0
- data/lib/twilio-ruby/rest/video/v1/composition.rb +286 -17
- data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +376 -39
- data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +211 -17
- data/lib/twilio-ruby/rest/video/v1/recording.rb +220 -7
- data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +211 -17
- data/lib/twilio-ruby/rest/video/v1/room/participant/anonymize.rb +145 -1
- data/lib/twilio-ruby/rest/video/v1/room/participant/published_track.rb +184 -6
- data/lib/twilio-ruby/rest/video/v1/room/participant/subscribe_rules.rb +138 -3
- data/lib/twilio-ruby/rest/video/v1/room/participant/subscribed_track.rb +184 -6
- data/lib/twilio-ruby/rest/video/v1/room/participant.rb +233 -9
- data/lib/twilio-ruby/rest/video/v1/room/recording_rules.rb +136 -3
- data/lib/twilio-ruby/rest/video/v1/room/room_recording.rb +216 -7
- data/lib/twilio-ruby/rest/video/v1/room/transcriptions.rb +665 -0
- data/lib/twilio-ruby/rest/video/v1/room.rb +379 -39
- data/lib/twilio-ruby/rest/video/v1.rb +4 -0
- data/lib/twilio-ruby/rest/voice/v1/archived_call.rb +137 -3
- data/lib/twilio-ruby/rest/voice/v1/byoc_trunk.rb +368 -39
- data/lib/twilio-ruby/rest/voice/v1/connection_policy/connection_policy_target.rb +326 -24
- data/lib/twilio-ruby/rest/voice/v1/connection_policy.rb +287 -12
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb +103 -2
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb +102 -5
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +194 -8
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/settings.rb +183 -6
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions.rb +64 -0
- data/lib/twilio-ruby/rest/voice/v1/ip_record.rb +295 -14
- data/lib/twilio-ruby/rest/voice/v1/source_ip_mapping.rb +291 -13
- data/lib/twilio-ruby/rest/voice/v1.rb +10 -0
- data/lib/twilio-ruby/rest/voice/v3/transcription.rb +514 -0
- data/lib/twilio-ruby/rest/voice/v3.rb +50 -0
- data/lib/twilio-ruby/rest/voice_base.rb +6 -1
- data/lib/twilio-ruby/rest/wireless/v1/command.rb +278 -15
- data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +338 -24
- data/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb +102 -5
- data/lib/twilio-ruby/rest/wireless/v1/sim/usage_record.rb +108 -5
- data/lib/twilio-ruby/rest/wireless/v1/sim.rb +343 -44
- data/lib/twilio-ruby/rest/wireless/v1/usage_record.rb +108 -5
- data/lib/twilio-ruby/rest/wireless/v1.rb +3 -0
- data/lib/twilio-ruby/twiml/messaging_response.rb +1 -1
- data/lib/twilio-ruby/twiml/voice_response.rb +403 -24
- data/lib/twilio-ruby/version.rb +1 -1
- data/twilio-ruby.gemspec +4 -3
- metadata +193 -88
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +0 -264
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +0 -328
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/defaults.rb +0 -241
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/dialogue.rb +0 -217
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type/field_value.rb +0 -389
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type.rb +0 -435
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/model_build.rb +0 -409
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb +0 -473
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/style_sheet.rb +0 -241
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/field.rb +0 -373
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/sample.rb +0 -436
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_actions.rb +0 -253
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_statistics.rb +0 -226
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task.rb +0 -525
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/webhook.rb +0 -433
- data/lib/twilio-ruby/rest/autopilot/v1/assistant.rb +0 -683
- data/lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb +0 -207
- data/lib/twilio-ruby/rest/autopilot/v1.rb +0 -55
- data/lib/twilio-ruby/rest/autopilot.rb +0 -22
- data/lib/twilio-ruby/rest/media/v1/media_processor.rb +0 -420
- data/lib/twilio-ruby/rest/media/v1/media_recording.rb +0 -404
- data/lib/twilio-ruby/rest/media/v1/player_streamer/playback_grant.rb +0 -252
- data/lib/twilio-ruby/rest/media/v1/player_streamer.rb +0 -432
- data/lib/twilio-ruby/rest/media/v1.rb +0 -79
- data/lib/twilio-ruby/rest/media.rb +0 -35
- data/lib/twilio-ruby/rest/microvisor/v1/account_config.rb +0 -358
- data/lib/twilio-ruby/rest/microvisor/v1/account_secret.rb +0 -351
- data/lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb +0 -208
- data/lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb +0 -374
- data/lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb +0 -367
- data/lib/twilio-ruby/rest/microvisor/v1/device.rb +0 -427
- data/lib/twilio-ruby/rest/microvisor/v1.rb +0 -94
- data/lib/twilio-ruby/rest/microvisor.rb +0 -24
- data/lib/twilio-ruby/rest/numbers/v1/porting_bulk_portability.rb +0 -229
- data/lib/twilio-ruby/rest/oauth/v1/device_code.rb +0 -171
- data/lib/twilio-ruby/rest/oauth/v1/oauth.rb +0 -185
- data/lib/twilio-ruby/rest/oauth/v1/openid_discovery.rb +0 -262
- data/lib/twilio-ruby/rest/oauth/v1/user_info.rb +0 -213
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/certificate.rb +0 -417
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/deployment.rb +0 -401
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/device.rb +0 -456
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/key.rb +0 -414
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +0 -504
- data/lib/twilio-ruby/rest/preview/deployed_devices.rb +0 -49
- data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +0 -389
- data/lib/twilio-ruby/rest/preview/sync/service/document.rb +0 -449
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +0 -445
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +0 -389
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +0 -426
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +0 -448
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +0 -389
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +0 -426
- data/lib/twilio-ruby/rest/preview/sync/service.rb +0 -505
- data/lib/twilio-ruby/rest/preview/understand/assistant/assistant_fallback_actions.rb +0 -241
- data/lib/twilio-ruby/rest/preview/understand/assistant/assistant_initiation_actions.rb +0 -241
- data/lib/twilio-ruby/rest/preview/understand/assistant/dialogue.rb +0 -217
- data/lib/twilio-ruby/rest/preview/understand/assistant/field_type/field_value.rb +0 -389
- data/lib/twilio-ruby/rest/preview/understand/assistant/field_type.rb +0 -435
- data/lib/twilio-ruby/rest/preview/understand/assistant/model_build.rb +0 -409
- data/lib/twilio-ruby/rest/preview/understand/assistant/query.rb +0 -463
- data/lib/twilio-ruby/rest/preview/understand/assistant/style_sheet.rb +0 -241
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/field.rb +0 -373
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/sample.rb +0 -436
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/task_actions.rb +0 -253
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/task_statistics.rb +0 -226
- data/lib/twilio-ruby/rest/preview/understand/assistant/task.rb +0 -525
- data/lib/twilio-ruby/rest/preview/understand/assistant.rb +0 -663
- data/lib/twilio-ruby/rest/preview/understand.rb +0 -49
- data/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb +0 -406
|
@@ -18,12 +18,14 @@ module Twilio
|
|
|
18
18
|
class Messaging < MessagingBase
|
|
19
19
|
class V1 < Version
|
|
20
20
|
class TollfreeVerificationList < ListResource
|
|
21
|
+
|
|
21
22
|
##
|
|
22
23
|
# Initialize the TollfreeVerificationList
|
|
23
24
|
# @param [Version] version Version that contains the resource
|
|
24
25
|
# @return [TollfreeVerificationList] TollfreeVerificationList
|
|
25
26
|
def initialize(version)
|
|
26
27
|
super(version)
|
|
28
|
+
|
|
27
29
|
# Path Solution
|
|
28
30
|
@solution = { }
|
|
29
31
|
@uri = "/Tollfree/Verifications"
|
|
@@ -34,7 +36,7 @@ module Twilio
|
|
|
34
36
|
# @param [String] business_name The name of the business or organization using the Tollfree number.
|
|
35
37
|
# @param [String] business_website The website of the business or organization using the Tollfree number.
|
|
36
38
|
# @param [String] notification_email The email address to receive the notification about the verification result. .
|
|
37
|
-
# @param [Array[String]] use_case_categories The category of the use case for the Tollfree Number. List as many are applicable
|
|
39
|
+
# @param [Array[String]] use_case_categories The category of the use case for the Tollfree Number. List as many as are applicable.
|
|
38
40
|
# @param [String] use_case_summary Use this to further explain how messaging is used by the business or organization.
|
|
39
41
|
# @param [String] production_message_sample An example of message content, i.e. a sample message.
|
|
40
42
|
# @param [Array[String]] opt_in_image_urls Link to an image that shows the opt-in workflow. Multiple images allowed and must be a publicly hosted URL.
|
|
@@ -52,33 +54,61 @@ module Twilio
|
|
|
52
54
|
# @param [String] business_contact_first_name The first name of the contact for the business or organization using the Tollfree number.
|
|
53
55
|
# @param [String] business_contact_last_name The last name of the contact for the business or organization using the Tollfree number.
|
|
54
56
|
# @param [String] business_contact_email The email address of the contact for the business or organization using the Tollfree number.
|
|
55
|
-
# @param [String] business_contact_phone The phone number of the contact for the business or organization using the Tollfree number.
|
|
57
|
+
# @param [String] business_contact_phone The E.164 formatted phone number of the contact for the business or organization using the Tollfree number.
|
|
56
58
|
# @param [String] external_reference_id An optional external reference ID supplied by customer and echoed back on status retrieval.
|
|
59
|
+
# @param [String] business_registration_number A legally recognized business registration number. Required for all business types except SOLE_PROPRIETOR.
|
|
60
|
+
# @param [BusinessRegistrationAuthority] business_registration_authority
|
|
61
|
+
# @param [String] business_registration_country The country where the business is registered. Required for all business types except SOLE_PROPRIETOR.
|
|
62
|
+
# @param [BusinessType] business_type
|
|
63
|
+
# @param [String] business_registration_phone_number The E.164 formatted number associated with the business.
|
|
64
|
+
# @param [String] doing_business_as Trade name, sub entity, or downstream business name of business being submitted for verification
|
|
65
|
+
# @param [String] opt_in_confirmation_message The confirmation message sent to users when they opt in to receive messages.
|
|
66
|
+
# @param [String] help_message_sample A sample help message provided to users.
|
|
67
|
+
# @param [String] privacy_policy_url The URL to the privacy policy for the business or organization.
|
|
68
|
+
# @param [String] terms_and_conditions_url The URL to the terms and conditions for the business or organization.
|
|
69
|
+
# @param [Boolean] age_gated_content Indicates if the content is age gated.
|
|
70
|
+
# @param [Array[String]] opt_in_keywords List of keywords that users can text in to opt in to receive messages.
|
|
71
|
+
# @param [VettingProvider] vetting_provider
|
|
72
|
+
# @param [String] vetting_id The unique ID of the vetting
|
|
57
73
|
# @return [TollfreeVerificationInstance] Created TollfreeVerificationInstance
|
|
58
74
|
def create(
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
75
|
+
business_name: nil,
|
|
76
|
+
business_website: nil,
|
|
77
|
+
notification_email: nil,
|
|
78
|
+
use_case_categories: nil,
|
|
79
|
+
use_case_summary: nil,
|
|
80
|
+
production_message_sample: nil,
|
|
81
|
+
opt_in_image_urls: nil,
|
|
82
|
+
opt_in_type: nil,
|
|
83
|
+
message_volume: nil,
|
|
84
|
+
tollfree_phone_number_sid: nil,
|
|
85
|
+
customer_profile_sid: :unset,
|
|
86
|
+
business_street_address: :unset,
|
|
87
|
+
business_street_address2: :unset,
|
|
88
|
+
business_city: :unset,
|
|
89
|
+
business_state_province_region: :unset,
|
|
90
|
+
business_postal_code: :unset,
|
|
91
|
+
business_country: :unset,
|
|
92
|
+
additional_information: :unset,
|
|
93
|
+
business_contact_first_name: :unset,
|
|
94
|
+
business_contact_last_name: :unset,
|
|
95
|
+
business_contact_email: :unset,
|
|
96
|
+
business_contact_phone: :unset,
|
|
97
|
+
external_reference_id: :unset,
|
|
98
|
+
business_registration_number: :unset,
|
|
99
|
+
business_registration_authority: :unset,
|
|
100
|
+
business_registration_country: :unset,
|
|
101
|
+
business_type: :unset,
|
|
102
|
+
business_registration_phone_number: :unset,
|
|
103
|
+
doing_business_as: :unset,
|
|
104
|
+
opt_in_confirmation_message: :unset,
|
|
105
|
+
help_message_sample: :unset,
|
|
106
|
+
privacy_policy_url: :unset,
|
|
107
|
+
terms_and_conditions_url: :unset,
|
|
108
|
+
age_gated_content: :unset,
|
|
109
|
+
opt_in_keywords: :unset,
|
|
110
|
+
vetting_provider: :unset,
|
|
111
|
+
vetting_id: :unset
|
|
82
112
|
)
|
|
83
113
|
|
|
84
114
|
data = Twilio::Values.of({
|
|
@@ -105,15 +135,174 @@ module Twilio
|
|
|
105
135
|
'BusinessContactEmail' => business_contact_email,
|
|
106
136
|
'BusinessContactPhone' => business_contact_phone,
|
|
107
137
|
'ExternalReferenceId' => external_reference_id,
|
|
138
|
+
'BusinessRegistrationNumber' => business_registration_number,
|
|
139
|
+
'BusinessRegistrationAuthority' => business_registration_authority,
|
|
140
|
+
'BusinessRegistrationCountry' => business_registration_country,
|
|
141
|
+
'BusinessType' => business_type,
|
|
142
|
+
'BusinessRegistrationPhoneNumber' => business_registration_phone_number,
|
|
143
|
+
'DoingBusinessAs' => doing_business_as,
|
|
144
|
+
'OptInConfirmationMessage' => opt_in_confirmation_message,
|
|
145
|
+
'HelpMessageSample' => help_message_sample,
|
|
146
|
+
'PrivacyPolicyUrl' => privacy_policy_url,
|
|
147
|
+
'TermsAndConditionsUrl' => terms_and_conditions_url,
|
|
148
|
+
'AgeGatedContent' => age_gated_content,
|
|
149
|
+
'OptInKeywords' => Twilio.serialize_list(opt_in_keywords) { |e| e },
|
|
150
|
+
'VettingProvider' => vetting_provider,
|
|
151
|
+
'VettingId' => vetting_id,
|
|
108
152
|
})
|
|
109
153
|
|
|
110
|
-
|
|
154
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
payload = @version.create('POST', @uri, data: data, headers: headers)
|
|
111
161
|
TollfreeVerificationInstance.new(
|
|
112
162
|
@version,
|
|
113
163
|
payload,
|
|
114
164
|
)
|
|
115
165
|
end
|
|
116
166
|
|
|
167
|
+
##
|
|
168
|
+
# Create the TollfreeVerificationInstanceMetadata
|
|
169
|
+
# @param [String] business_name The name of the business or organization using the Tollfree number.
|
|
170
|
+
# @param [String] business_website The website of the business or organization using the Tollfree number.
|
|
171
|
+
# @param [String] notification_email The email address to receive the notification about the verification result. .
|
|
172
|
+
# @param [Array[String]] use_case_categories The category of the use case for the Tollfree Number. List as many as are applicable.
|
|
173
|
+
# @param [String] use_case_summary Use this to further explain how messaging is used by the business or organization.
|
|
174
|
+
# @param [String] production_message_sample An example of message content, i.e. a sample message.
|
|
175
|
+
# @param [Array[String]] opt_in_image_urls Link to an image that shows the opt-in workflow. Multiple images allowed and must be a publicly hosted URL.
|
|
176
|
+
# @param [OptInType] opt_in_type
|
|
177
|
+
# @param [String] message_volume Estimate monthly volume of messages from the Tollfree Number.
|
|
178
|
+
# @param [String] tollfree_phone_number_sid The SID of the Phone Number associated with the Tollfree Verification.
|
|
179
|
+
# @param [String] customer_profile_sid Customer's Profile Bundle BundleSid.
|
|
180
|
+
# @param [String] business_street_address The address of the business or organization using the Tollfree number.
|
|
181
|
+
# @param [String] business_street_address2 The address of the business or organization using the Tollfree number.
|
|
182
|
+
# @param [String] business_city The city of the business or organization using the Tollfree number.
|
|
183
|
+
# @param [String] business_state_province_region The state/province/region of the business or organization using the Tollfree number.
|
|
184
|
+
# @param [String] business_postal_code The postal code of the business or organization using the Tollfree number.
|
|
185
|
+
# @param [String] business_country The country of the business or organization using the Tollfree number.
|
|
186
|
+
# @param [String] additional_information Additional information to be provided for verification.
|
|
187
|
+
# @param [String] business_contact_first_name The first name of the contact for the business or organization using the Tollfree number.
|
|
188
|
+
# @param [String] business_contact_last_name The last name of the contact for the business or organization using the Tollfree number.
|
|
189
|
+
# @param [String] business_contact_email The email address of the contact for the business or organization using the Tollfree number.
|
|
190
|
+
# @param [String] business_contact_phone The E.164 formatted phone number of the contact for the business or organization using the Tollfree number.
|
|
191
|
+
# @param [String] external_reference_id An optional external reference ID supplied by customer and echoed back on status retrieval.
|
|
192
|
+
# @param [String] business_registration_number A legally recognized business registration number. Required for all business types except SOLE_PROPRIETOR.
|
|
193
|
+
# @param [BusinessRegistrationAuthority] business_registration_authority
|
|
194
|
+
# @param [String] business_registration_country The country where the business is registered. Required for all business types except SOLE_PROPRIETOR.
|
|
195
|
+
# @param [BusinessType] business_type
|
|
196
|
+
# @param [String] business_registration_phone_number The E.164 formatted number associated with the business.
|
|
197
|
+
# @param [String] doing_business_as Trade name, sub entity, or downstream business name of business being submitted for verification
|
|
198
|
+
# @param [String] opt_in_confirmation_message The confirmation message sent to users when they opt in to receive messages.
|
|
199
|
+
# @param [String] help_message_sample A sample help message provided to users.
|
|
200
|
+
# @param [String] privacy_policy_url The URL to the privacy policy for the business or organization.
|
|
201
|
+
# @param [String] terms_and_conditions_url The URL to the terms and conditions for the business or organization.
|
|
202
|
+
# @param [Boolean] age_gated_content Indicates if the content is age gated.
|
|
203
|
+
# @param [Array[String]] opt_in_keywords List of keywords that users can text in to opt in to receive messages.
|
|
204
|
+
# @param [VettingProvider] vetting_provider
|
|
205
|
+
# @param [String] vetting_id The unique ID of the vetting
|
|
206
|
+
# @return [TollfreeVerificationInstance] Created TollfreeVerificationInstance
|
|
207
|
+
def create_with_metadata(
|
|
208
|
+
business_name: nil,
|
|
209
|
+
business_website: nil,
|
|
210
|
+
notification_email: nil,
|
|
211
|
+
use_case_categories: nil,
|
|
212
|
+
use_case_summary: nil,
|
|
213
|
+
production_message_sample: nil,
|
|
214
|
+
opt_in_image_urls: nil,
|
|
215
|
+
opt_in_type: nil,
|
|
216
|
+
message_volume: nil,
|
|
217
|
+
tollfree_phone_number_sid: nil,
|
|
218
|
+
customer_profile_sid: :unset,
|
|
219
|
+
business_street_address: :unset,
|
|
220
|
+
business_street_address2: :unset,
|
|
221
|
+
business_city: :unset,
|
|
222
|
+
business_state_province_region: :unset,
|
|
223
|
+
business_postal_code: :unset,
|
|
224
|
+
business_country: :unset,
|
|
225
|
+
additional_information: :unset,
|
|
226
|
+
business_contact_first_name: :unset,
|
|
227
|
+
business_contact_last_name: :unset,
|
|
228
|
+
business_contact_email: :unset,
|
|
229
|
+
business_contact_phone: :unset,
|
|
230
|
+
external_reference_id: :unset,
|
|
231
|
+
business_registration_number: :unset,
|
|
232
|
+
business_registration_authority: :unset,
|
|
233
|
+
business_registration_country: :unset,
|
|
234
|
+
business_type: :unset,
|
|
235
|
+
business_registration_phone_number: :unset,
|
|
236
|
+
doing_business_as: :unset,
|
|
237
|
+
opt_in_confirmation_message: :unset,
|
|
238
|
+
help_message_sample: :unset,
|
|
239
|
+
privacy_policy_url: :unset,
|
|
240
|
+
terms_and_conditions_url: :unset,
|
|
241
|
+
age_gated_content: :unset,
|
|
242
|
+
opt_in_keywords: :unset,
|
|
243
|
+
vetting_provider: :unset,
|
|
244
|
+
vetting_id: :unset
|
|
245
|
+
)
|
|
246
|
+
|
|
247
|
+
data = Twilio::Values.of({
|
|
248
|
+
'BusinessName' => business_name,
|
|
249
|
+
'BusinessWebsite' => business_website,
|
|
250
|
+
'NotificationEmail' => notification_email,
|
|
251
|
+
'UseCaseCategories' => Twilio.serialize_list(use_case_categories) { |e| e },
|
|
252
|
+
'UseCaseSummary' => use_case_summary,
|
|
253
|
+
'ProductionMessageSample' => production_message_sample,
|
|
254
|
+
'OptInImageUrls' => Twilio.serialize_list(opt_in_image_urls) { |e| e },
|
|
255
|
+
'OptInType' => opt_in_type,
|
|
256
|
+
'MessageVolume' => message_volume,
|
|
257
|
+
'TollfreePhoneNumberSid' => tollfree_phone_number_sid,
|
|
258
|
+
'CustomerProfileSid' => customer_profile_sid,
|
|
259
|
+
'BusinessStreetAddress' => business_street_address,
|
|
260
|
+
'BusinessStreetAddress2' => business_street_address2,
|
|
261
|
+
'BusinessCity' => business_city,
|
|
262
|
+
'BusinessStateProvinceRegion' => business_state_province_region,
|
|
263
|
+
'BusinessPostalCode' => business_postal_code,
|
|
264
|
+
'BusinessCountry' => business_country,
|
|
265
|
+
'AdditionalInformation' => additional_information,
|
|
266
|
+
'BusinessContactFirstName' => business_contact_first_name,
|
|
267
|
+
'BusinessContactLastName' => business_contact_last_name,
|
|
268
|
+
'BusinessContactEmail' => business_contact_email,
|
|
269
|
+
'BusinessContactPhone' => business_contact_phone,
|
|
270
|
+
'ExternalReferenceId' => external_reference_id,
|
|
271
|
+
'BusinessRegistrationNumber' => business_registration_number,
|
|
272
|
+
'BusinessRegistrationAuthority' => business_registration_authority,
|
|
273
|
+
'BusinessRegistrationCountry' => business_registration_country,
|
|
274
|
+
'BusinessType' => business_type,
|
|
275
|
+
'BusinessRegistrationPhoneNumber' => business_registration_phone_number,
|
|
276
|
+
'DoingBusinessAs' => doing_business_as,
|
|
277
|
+
'OptInConfirmationMessage' => opt_in_confirmation_message,
|
|
278
|
+
'HelpMessageSample' => help_message_sample,
|
|
279
|
+
'PrivacyPolicyUrl' => privacy_policy_url,
|
|
280
|
+
'TermsAndConditionsUrl' => terms_and_conditions_url,
|
|
281
|
+
'AgeGatedContent' => age_gated_content,
|
|
282
|
+
'OptInKeywords' => Twilio.serialize_list(opt_in_keywords) { |e| e },
|
|
283
|
+
'VettingProvider' => vetting_provider,
|
|
284
|
+
'VettingId' => vetting_id,
|
|
285
|
+
})
|
|
286
|
+
|
|
287
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
response = @version.create_with_metadata('POST', @uri, data: data, headers: headers)
|
|
294
|
+
tollfree_verification_instance = TollfreeVerificationInstance.new(
|
|
295
|
+
@version,
|
|
296
|
+
response.body,
|
|
297
|
+
)
|
|
298
|
+
TollfreeVerificationInstanceMetadata.new(
|
|
299
|
+
@version,
|
|
300
|
+
tollfree_verification_instance,
|
|
301
|
+
response.headers,
|
|
302
|
+
response.status_code
|
|
303
|
+
)
|
|
304
|
+
end
|
|
305
|
+
|
|
117
306
|
|
|
118
307
|
##
|
|
119
308
|
# Lists TollfreeVerificationInstance records from the API as a list.
|
|
@@ -121,6 +310,9 @@ module Twilio
|
|
|
121
310
|
# memory before returning.
|
|
122
311
|
# @param [String] tollfree_phone_number_sid The SID of the Phone Number associated with the Tollfree Verification.
|
|
123
312
|
# @param [Status] status The compliance status of the Tollfree Verification record.
|
|
313
|
+
# @param [String] external_reference_id Customer supplied reference id for the Tollfree Verification record.
|
|
314
|
+
# @param [Boolean] include_sub_accounts Whether to include Tollfree Verifications from sub accounts in list response.
|
|
315
|
+
# @param [Array[String]] trust_product_sid The trust product sids / tollfree bundle sids of tollfree verifications
|
|
124
316
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
125
317
|
# guarantees to never return more than limit. Default is no limit
|
|
126
318
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -128,10 +320,13 @@ module Twilio
|
|
|
128
320
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
129
321
|
# efficient page size, i.e. min(limit, 1000)
|
|
130
322
|
# @return [Array] Array of up to limit results
|
|
131
|
-
def list(tollfree_phone_number_sid: :unset, status: :unset, limit: nil, page_size: nil)
|
|
323
|
+
def list(tollfree_phone_number_sid: :unset, status: :unset, external_reference_id: :unset, include_sub_accounts: :unset, trust_product_sid: :unset, limit: nil, page_size: nil)
|
|
132
324
|
self.stream(
|
|
133
325
|
tollfree_phone_number_sid: tollfree_phone_number_sid,
|
|
134
326
|
status: status,
|
|
327
|
+
external_reference_id: external_reference_id,
|
|
328
|
+
include_sub_accounts: include_sub_accounts,
|
|
329
|
+
trust_product_sid: trust_product_sid,
|
|
135
330
|
limit: limit,
|
|
136
331
|
page_size: page_size
|
|
137
332
|
).entries
|
|
@@ -143,6 +338,9 @@ module Twilio
|
|
|
143
338
|
# is reached.
|
|
144
339
|
# @param [String] tollfree_phone_number_sid The SID of the Phone Number associated with the Tollfree Verification.
|
|
145
340
|
# @param [Status] status The compliance status of the Tollfree Verification record.
|
|
341
|
+
# @param [String] external_reference_id Customer supplied reference id for the Tollfree Verification record.
|
|
342
|
+
# @param [Boolean] include_sub_accounts Whether to include Tollfree Verifications from sub accounts in list response.
|
|
343
|
+
# @param [Array[String]] trust_product_sid The trust product sids / tollfree bundle sids of tollfree verifications
|
|
146
344
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
147
345
|
# guarantees to never return more than limit. Default is no limit
|
|
148
346
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -150,15 +348,55 @@ module Twilio
|
|
|
150
348
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
151
349
|
# efficient page size, i.e. min(limit, 1000)
|
|
152
350
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
|
153
|
-
def stream(tollfree_phone_number_sid: :unset, status: :unset, limit: nil, page_size: nil)
|
|
351
|
+
def stream(tollfree_phone_number_sid: :unset, status: :unset, external_reference_id: :unset, include_sub_accounts: :unset, trust_product_sid: :unset, limit: nil, page_size: nil)
|
|
154
352
|
limits = @version.read_limits(limit, page_size)
|
|
155
353
|
|
|
156
354
|
page = self.page(
|
|
157
355
|
tollfree_phone_number_sid: tollfree_phone_number_sid,
|
|
158
356
|
status: status,
|
|
357
|
+
external_reference_id: external_reference_id,
|
|
358
|
+
include_sub_accounts: include_sub_accounts,
|
|
359
|
+
trust_product_sid: trust_product_sid,
|
|
159
360
|
page_size: limits[:page_size], )
|
|
160
361
|
|
|
161
|
-
|
|
362
|
+
return [].each if page.nil?
|
|
363
|
+
|
|
364
|
+
result = @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
|
365
|
+
return [].each if result.nil?
|
|
366
|
+
result
|
|
367
|
+
end
|
|
368
|
+
|
|
369
|
+
##
|
|
370
|
+
# Lists TollfreeVerificationPageMetadata records from the API as a list.
|
|
371
|
+
# @param [String] tollfree_phone_number_sid The SID of the Phone Number associated with the Tollfree Verification.
|
|
372
|
+
# @param [Status] status The compliance status of the Tollfree Verification record.
|
|
373
|
+
# @param [String] external_reference_id Customer supplied reference id for the Tollfree Verification record.
|
|
374
|
+
# @param [Boolean] include_sub_accounts Whether to include Tollfree Verifications from sub accounts in list response.
|
|
375
|
+
# @param [Array[String]] trust_product_sid The trust product sids / tollfree bundle sids of tollfree verifications
|
|
376
|
+
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
377
|
+
# guarantees to never return more than limit. Default is no limit
|
|
378
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
|
379
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
|
380
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
381
|
+
# efficient page size, i.e. min(limit, 1000)
|
|
382
|
+
# @return [Array] Array of up to limit results
|
|
383
|
+
def list_with_metadata(tollfree_phone_number_sid: :unset, status: :unset, external_reference_id: :unset, include_sub_accounts: :unset, trust_product_sid: :unset, limit: nil, page_size: nil)
|
|
384
|
+
limits = @version.read_limits(limit, page_size)
|
|
385
|
+
params = Twilio::Values.of({
|
|
386
|
+
'TollfreePhoneNumberSid' => tollfree_phone_number_sid,
|
|
387
|
+
'Status' => status,
|
|
388
|
+
'ExternalReferenceId' => external_reference_id,
|
|
389
|
+
'IncludeSubAccounts' => include_sub_accounts,
|
|
390
|
+
|
|
391
|
+
'TrustProductSid' => Twilio.serialize_list(trust_product_sid) { |e| e },
|
|
392
|
+
|
|
393
|
+
'PageSize' => limits[:page_size],
|
|
394
|
+
});
|
|
395
|
+
headers = Twilio::Values.of({})
|
|
396
|
+
|
|
397
|
+
response = @version.page('GET', @uri, params: params, headers: headers)
|
|
398
|
+
|
|
399
|
+
TollfreeVerificationPageMetadata.new(@version, response, @solution, limits[:limit])
|
|
162
400
|
end
|
|
163
401
|
|
|
164
402
|
##
|
|
@@ -170,9 +408,13 @@ module Twilio
|
|
|
170
408
|
|
|
171
409
|
page = self.page(page_size: limits[:page_size], )
|
|
172
410
|
|
|
173
|
-
|
|
411
|
+
return [].each if page.nil?
|
|
412
|
+
|
|
413
|
+
result = @version.stream(page,
|
|
174
414
|
limit: limits[:limit],
|
|
175
|
-
page_limit: limits[:page_limit])
|
|
415
|
+
page_limit: limits[:page_limit])
|
|
416
|
+
return [].each if result.nil?
|
|
417
|
+
result.each {|x| yield x}
|
|
176
418
|
end
|
|
177
419
|
|
|
178
420
|
##
|
|
@@ -180,20 +422,30 @@ module Twilio
|
|
|
180
422
|
# Request is executed immediately.
|
|
181
423
|
# @param [String] tollfree_phone_number_sid The SID of the Phone Number associated with the Tollfree Verification.
|
|
182
424
|
# @param [Status] status The compliance status of the Tollfree Verification record.
|
|
425
|
+
# @param [String] external_reference_id Customer supplied reference id for the Tollfree Verification record.
|
|
426
|
+
# @param [Boolean] include_sub_accounts Whether to include Tollfree Verifications from sub accounts in list response.
|
|
427
|
+
# @param [Array[String]] trust_product_sid The trust product sids / tollfree bundle sids of tollfree verifications
|
|
183
428
|
# @param [String] page_token PageToken provided by the API
|
|
184
429
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
|
185
430
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
|
186
431
|
# @return [Page] Page of TollfreeVerificationInstance
|
|
187
|
-
def page(tollfree_phone_number_sid: :unset, status: :unset, page_token: :unset, page_number: :unset,
|
|
432
|
+
def page(tollfree_phone_number_sid: :unset, status: :unset, external_reference_id: :unset, include_sub_accounts: :unset, trust_product_sid: :unset, page_token: :unset, page_number: :unset,page_size: :unset)
|
|
188
433
|
params = Twilio::Values.of({
|
|
189
434
|
'TollfreePhoneNumberSid' => tollfree_phone_number_sid,
|
|
190
435
|
'Status' => status,
|
|
436
|
+
'ExternalReferenceId' => external_reference_id,
|
|
437
|
+
'IncludeSubAccounts' => include_sub_accounts,
|
|
438
|
+
|
|
439
|
+
'TrustProductSid' => Twilio.serialize_list(trust_product_sid) { |e| e },
|
|
191
440
|
'PageToken' => page_token,
|
|
192
441
|
'Page' => page_number,
|
|
193
442
|
'PageSize' => page_size,
|
|
194
443
|
})
|
|
444
|
+
headers = Twilio::Values.of({})
|
|
445
|
+
|
|
446
|
+
|
|
195
447
|
|
|
196
|
-
response = @version.page('GET', @uri, params: params)
|
|
448
|
+
response = @version.page('GET', @uri, params: params, headers: headers)
|
|
197
449
|
|
|
198
450
|
TollfreeVerificationPage.new(@version, response, @solution)
|
|
199
451
|
end
|
|
@@ -220,8 +472,6 @@ module Twilio
|
|
|
220
472
|
end
|
|
221
473
|
|
|
222
474
|
|
|
223
|
-
##
|
|
224
|
-
#PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
|
225
475
|
class TollfreeVerificationContext < InstanceContext
|
|
226
476
|
##
|
|
227
477
|
# Initialize the TollfreeVerificationContext
|
|
@@ -230,6 +480,7 @@ module Twilio
|
|
|
230
480
|
# @return [TollfreeVerificationContext] TollfreeVerificationContext
|
|
231
481
|
def initialize(version, sid)
|
|
232
482
|
super(version)
|
|
483
|
+
|
|
233
484
|
|
|
234
485
|
# Path Solution
|
|
235
486
|
@solution = { sid: sid, }
|
|
@@ -237,12 +488,50 @@ module Twilio
|
|
|
237
488
|
|
|
238
489
|
|
|
239
490
|
end
|
|
491
|
+
##
|
|
492
|
+
# Delete the TollfreeVerificationInstance
|
|
493
|
+
# @return [Boolean] True if delete succeeds, false otherwise
|
|
494
|
+
def delete
|
|
495
|
+
|
|
496
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
497
|
+
|
|
498
|
+
|
|
499
|
+
|
|
500
|
+
|
|
501
|
+
@version.delete('DELETE', @uri, headers: headers)
|
|
502
|
+
end
|
|
503
|
+
|
|
504
|
+
##
|
|
505
|
+
# Delete the TollfreeVerificationInstanceMetadata
|
|
506
|
+
# @return [Boolean] True if delete succeeds, false otherwise
|
|
507
|
+
def delete_with_metadata
|
|
508
|
+
|
|
509
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
510
|
+
|
|
511
|
+
|
|
512
|
+
|
|
513
|
+
response = @version.delete_with_metadata('DELETE', @uri, headers: headers)
|
|
514
|
+
tollfreeVerification_instance = TollfreeVerificationInstance.new(
|
|
515
|
+
@version,
|
|
516
|
+
response.body,
|
|
517
|
+
account_sid: @solution[:account_sid],
|
|
518
|
+
sid: @solution[:sid],
|
|
519
|
+
)
|
|
520
|
+
TollfreeVerificationInstanceMetadata.new(@version, tollfreeVerification_instance, response.headers, response.status_code)
|
|
521
|
+
end
|
|
522
|
+
|
|
240
523
|
##
|
|
241
524
|
# Fetch the TollfreeVerificationInstance
|
|
242
525
|
# @return [TollfreeVerificationInstance] Fetched TollfreeVerificationInstance
|
|
243
526
|
def fetch
|
|
244
527
|
|
|
245
|
-
|
|
528
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
529
|
+
|
|
530
|
+
|
|
531
|
+
|
|
532
|
+
|
|
533
|
+
|
|
534
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
|
246
535
|
TollfreeVerificationInstance.new(
|
|
247
536
|
@version,
|
|
248
537
|
payload,
|
|
@@ -250,12 +539,37 @@ module Twilio
|
|
|
250
539
|
)
|
|
251
540
|
end
|
|
252
541
|
|
|
542
|
+
##
|
|
543
|
+
# Fetch the TollfreeVerificationInstanceMetadata
|
|
544
|
+
# @return [TollfreeVerificationInstance] Fetched TollfreeVerificationInstance
|
|
545
|
+
def fetch_with_metadata
|
|
546
|
+
|
|
547
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
548
|
+
|
|
549
|
+
|
|
550
|
+
|
|
551
|
+
|
|
552
|
+
|
|
553
|
+
response = @version.fetch_with_metadata('GET', @uri, headers: headers)
|
|
554
|
+
tollfree_verification_instance = TollfreeVerificationInstance.new(
|
|
555
|
+
@version,
|
|
556
|
+
response.body,
|
|
557
|
+
sid: @solution[:sid],
|
|
558
|
+
)
|
|
559
|
+
TollfreeVerificationInstanceMetadata.new(
|
|
560
|
+
@version,
|
|
561
|
+
tollfree_verification_instance,
|
|
562
|
+
response.headers,
|
|
563
|
+
response.status_code
|
|
564
|
+
)
|
|
565
|
+
end
|
|
566
|
+
|
|
253
567
|
##
|
|
254
568
|
# Update the TollfreeVerificationInstance
|
|
255
569
|
# @param [String] business_name The name of the business or organization using the Tollfree number.
|
|
256
570
|
# @param [String] business_website The website of the business or organization using the Tollfree number.
|
|
257
571
|
# @param [String] notification_email The email address to receive the notification about the verification result. .
|
|
258
|
-
# @param [Array[String]] use_case_categories The category of the use case for the Tollfree Number. List as many are applicable
|
|
572
|
+
# @param [Array[String]] use_case_categories The category of the use case for the Tollfree Number. List as many as are applicable.
|
|
259
573
|
# @param [String] use_case_summary Use this to further explain how messaging is used by the business or organization.
|
|
260
574
|
# @param [String] production_message_sample An example of message content, i.e. a sample message.
|
|
261
575
|
# @param [Array[String]] opt_in_image_urls Link to an image that shows the opt-in workflow. Multiple images allowed and must be a publicly hosted URL.
|
|
@@ -271,29 +585,59 @@ module Twilio
|
|
|
271
585
|
# @param [String] business_contact_first_name The first name of the contact for the business or organization using the Tollfree number.
|
|
272
586
|
# @param [String] business_contact_last_name The last name of the contact for the business or organization using the Tollfree number.
|
|
273
587
|
# @param [String] business_contact_email The email address of the contact for the business or organization using the Tollfree number.
|
|
274
|
-
# @param [String] business_contact_phone The phone number of the contact for the business or organization using the Tollfree number.
|
|
588
|
+
# @param [String] business_contact_phone The E.164 formatted phone number of the contact for the business or organization using the Tollfree number.
|
|
589
|
+
# @param [String] edit_reason Describe why the verification is being edited. If the verification was rejected because of a technical issue, such as the website being down, and the issue has been resolved this parameter should be set to something similar to 'Website fixed'.
|
|
590
|
+
# @param [String] business_registration_number A legally recognized business registration number
|
|
591
|
+
# @param [BusinessRegistrationAuthority] business_registration_authority
|
|
592
|
+
# @param [String] business_registration_country Country business is registered in
|
|
593
|
+
# @param [BusinessType] business_type
|
|
594
|
+
# @param [String] business_registration_phone_number The E.164 formatted number associated with the business.
|
|
595
|
+
# @param [String] doing_business_as Trade name, sub entity, or downstream business name of business being submitted for verification
|
|
596
|
+
# @param [String] opt_in_confirmation_message The confirmation message sent to users when they opt in to receive messages.
|
|
597
|
+
# @param [String] help_message_sample A sample help message provided to users.
|
|
598
|
+
# @param [String] privacy_policy_url The URL to the privacy policy for the business or organization.
|
|
599
|
+
# @param [String] terms_and_conditions_url The URL to the terms and conditions for the business or organization.
|
|
600
|
+
# @param [Boolean] age_gated_content Indicates if the content is age gated.
|
|
601
|
+
# @param [Array[String]] opt_in_keywords List of keywords that users can text in to opt in to receive messages.
|
|
602
|
+
# @param [VettingProvider] vetting_provider
|
|
603
|
+
# @param [String] vetting_id The unique ID of the vetting
|
|
275
604
|
# @return [TollfreeVerificationInstance] Updated TollfreeVerificationInstance
|
|
276
605
|
def update(
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
606
|
+
business_name: :unset,
|
|
607
|
+
business_website: :unset,
|
|
608
|
+
notification_email: :unset,
|
|
609
|
+
use_case_categories: :unset,
|
|
610
|
+
use_case_summary: :unset,
|
|
611
|
+
production_message_sample: :unset,
|
|
612
|
+
opt_in_image_urls: :unset,
|
|
613
|
+
opt_in_type: :unset,
|
|
614
|
+
message_volume: :unset,
|
|
615
|
+
business_street_address: :unset,
|
|
616
|
+
business_street_address2: :unset,
|
|
617
|
+
business_city: :unset,
|
|
618
|
+
business_state_province_region: :unset,
|
|
619
|
+
business_postal_code: :unset,
|
|
620
|
+
business_country: :unset,
|
|
621
|
+
additional_information: :unset,
|
|
622
|
+
business_contact_first_name: :unset,
|
|
623
|
+
business_contact_last_name: :unset,
|
|
624
|
+
business_contact_email: :unset,
|
|
625
|
+
business_contact_phone: :unset,
|
|
626
|
+
edit_reason: :unset,
|
|
627
|
+
business_registration_number: :unset,
|
|
628
|
+
business_registration_authority: :unset,
|
|
629
|
+
business_registration_country: :unset,
|
|
630
|
+
business_type: :unset,
|
|
631
|
+
business_registration_phone_number: :unset,
|
|
632
|
+
doing_business_as: :unset,
|
|
633
|
+
opt_in_confirmation_message: :unset,
|
|
634
|
+
help_message_sample: :unset,
|
|
635
|
+
privacy_policy_url: :unset,
|
|
636
|
+
terms_and_conditions_url: :unset,
|
|
637
|
+
age_gated_content: :unset,
|
|
638
|
+
opt_in_keywords: :unset,
|
|
639
|
+
vetting_provider: :unset,
|
|
640
|
+
vetting_id: :unset
|
|
297
641
|
)
|
|
298
642
|
|
|
299
643
|
data = Twilio::Values.of({
|
|
@@ -317,9 +661,30 @@ module Twilio
|
|
|
317
661
|
'BusinessContactLastName' => business_contact_last_name,
|
|
318
662
|
'BusinessContactEmail' => business_contact_email,
|
|
319
663
|
'BusinessContactPhone' => business_contact_phone,
|
|
664
|
+
'EditReason' => edit_reason,
|
|
665
|
+
'BusinessRegistrationNumber' => business_registration_number,
|
|
666
|
+
'BusinessRegistrationAuthority' => business_registration_authority,
|
|
667
|
+
'BusinessRegistrationCountry' => business_registration_country,
|
|
668
|
+
'BusinessType' => business_type,
|
|
669
|
+
'BusinessRegistrationPhoneNumber' => business_registration_phone_number,
|
|
670
|
+
'DoingBusinessAs' => doing_business_as,
|
|
671
|
+
'OptInConfirmationMessage' => opt_in_confirmation_message,
|
|
672
|
+
'HelpMessageSample' => help_message_sample,
|
|
673
|
+
'PrivacyPolicyUrl' => privacy_policy_url,
|
|
674
|
+
'TermsAndConditionsUrl' => terms_and_conditions_url,
|
|
675
|
+
'AgeGatedContent' => age_gated_content,
|
|
676
|
+
'OptInKeywords' => Twilio.serialize_list(opt_in_keywords) { |e| e },
|
|
677
|
+
'VettingProvider' => vetting_provider,
|
|
678
|
+
'VettingId' => vetting_id,
|
|
320
679
|
})
|
|
321
680
|
|
|
322
|
-
|
|
681
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
682
|
+
|
|
683
|
+
|
|
684
|
+
|
|
685
|
+
|
|
686
|
+
|
|
687
|
+
payload = @version.update('POST', @uri, data: data, headers: headers)
|
|
323
688
|
TollfreeVerificationInstance.new(
|
|
324
689
|
@version,
|
|
325
690
|
payload,
|
|
@@ -327,6 +692,140 @@ module Twilio
|
|
|
327
692
|
)
|
|
328
693
|
end
|
|
329
694
|
|
|
695
|
+
##
|
|
696
|
+
# Update the TollfreeVerificationInstanceMetadata
|
|
697
|
+
# @param [String] business_name The name of the business or organization using the Tollfree number.
|
|
698
|
+
# @param [String] business_website The website of the business or organization using the Tollfree number.
|
|
699
|
+
# @param [String] notification_email The email address to receive the notification about the verification result. .
|
|
700
|
+
# @param [Array[String]] use_case_categories The category of the use case for the Tollfree Number. List as many as are applicable.
|
|
701
|
+
# @param [String] use_case_summary Use this to further explain how messaging is used by the business or organization.
|
|
702
|
+
# @param [String] production_message_sample An example of message content, i.e. a sample message.
|
|
703
|
+
# @param [Array[String]] opt_in_image_urls Link to an image that shows the opt-in workflow. Multiple images allowed and must be a publicly hosted URL.
|
|
704
|
+
# @param [OptInType] opt_in_type
|
|
705
|
+
# @param [String] message_volume Estimate monthly volume of messages from the Tollfree Number.
|
|
706
|
+
# @param [String] business_street_address The address of the business or organization using the Tollfree number.
|
|
707
|
+
# @param [String] business_street_address2 The address of the business or organization using the Tollfree number.
|
|
708
|
+
# @param [String] business_city The city of the business or organization using the Tollfree number.
|
|
709
|
+
# @param [String] business_state_province_region The state/province/region of the business or organization using the Tollfree number.
|
|
710
|
+
# @param [String] business_postal_code The postal code of the business or organization using the Tollfree number.
|
|
711
|
+
# @param [String] business_country The country of the business or organization using the Tollfree number.
|
|
712
|
+
# @param [String] additional_information Additional information to be provided for verification.
|
|
713
|
+
# @param [String] business_contact_first_name The first name of the contact for the business or organization using the Tollfree number.
|
|
714
|
+
# @param [String] business_contact_last_name The last name of the contact for the business or organization using the Tollfree number.
|
|
715
|
+
# @param [String] business_contact_email The email address of the contact for the business or organization using the Tollfree number.
|
|
716
|
+
# @param [String] business_contact_phone The E.164 formatted phone number of the contact for the business or organization using the Tollfree number.
|
|
717
|
+
# @param [String] edit_reason Describe why the verification is being edited. If the verification was rejected because of a technical issue, such as the website being down, and the issue has been resolved this parameter should be set to something similar to 'Website fixed'.
|
|
718
|
+
# @param [String] business_registration_number A legally recognized business registration number
|
|
719
|
+
# @param [BusinessRegistrationAuthority] business_registration_authority
|
|
720
|
+
# @param [String] business_registration_country Country business is registered in
|
|
721
|
+
# @param [BusinessType] business_type
|
|
722
|
+
# @param [String] business_registration_phone_number The E.164 formatted number associated with the business.
|
|
723
|
+
# @param [String] doing_business_as Trade name, sub entity, or downstream business name of business being submitted for verification
|
|
724
|
+
# @param [String] opt_in_confirmation_message The confirmation message sent to users when they opt in to receive messages.
|
|
725
|
+
# @param [String] help_message_sample A sample help message provided to users.
|
|
726
|
+
# @param [String] privacy_policy_url The URL to the privacy policy for the business or organization.
|
|
727
|
+
# @param [String] terms_and_conditions_url The URL to the terms and conditions for the business or organization.
|
|
728
|
+
# @param [Boolean] age_gated_content Indicates if the content is age gated.
|
|
729
|
+
# @param [Array[String]] opt_in_keywords List of keywords that users can text in to opt in to receive messages.
|
|
730
|
+
# @param [VettingProvider] vetting_provider
|
|
731
|
+
# @param [String] vetting_id The unique ID of the vetting
|
|
732
|
+
# @return [TollfreeVerificationInstance] Updated TollfreeVerificationInstance
|
|
733
|
+
def update_with_metadata(
|
|
734
|
+
business_name: :unset,
|
|
735
|
+
business_website: :unset,
|
|
736
|
+
notification_email: :unset,
|
|
737
|
+
use_case_categories: :unset,
|
|
738
|
+
use_case_summary: :unset,
|
|
739
|
+
production_message_sample: :unset,
|
|
740
|
+
opt_in_image_urls: :unset,
|
|
741
|
+
opt_in_type: :unset,
|
|
742
|
+
message_volume: :unset,
|
|
743
|
+
business_street_address: :unset,
|
|
744
|
+
business_street_address2: :unset,
|
|
745
|
+
business_city: :unset,
|
|
746
|
+
business_state_province_region: :unset,
|
|
747
|
+
business_postal_code: :unset,
|
|
748
|
+
business_country: :unset,
|
|
749
|
+
additional_information: :unset,
|
|
750
|
+
business_contact_first_name: :unset,
|
|
751
|
+
business_contact_last_name: :unset,
|
|
752
|
+
business_contact_email: :unset,
|
|
753
|
+
business_contact_phone: :unset,
|
|
754
|
+
edit_reason: :unset,
|
|
755
|
+
business_registration_number: :unset,
|
|
756
|
+
business_registration_authority: :unset,
|
|
757
|
+
business_registration_country: :unset,
|
|
758
|
+
business_type: :unset,
|
|
759
|
+
business_registration_phone_number: :unset,
|
|
760
|
+
doing_business_as: :unset,
|
|
761
|
+
opt_in_confirmation_message: :unset,
|
|
762
|
+
help_message_sample: :unset,
|
|
763
|
+
privacy_policy_url: :unset,
|
|
764
|
+
terms_and_conditions_url: :unset,
|
|
765
|
+
age_gated_content: :unset,
|
|
766
|
+
opt_in_keywords: :unset,
|
|
767
|
+
vetting_provider: :unset,
|
|
768
|
+
vetting_id: :unset
|
|
769
|
+
)
|
|
770
|
+
|
|
771
|
+
data = Twilio::Values.of({
|
|
772
|
+
'BusinessName' => business_name,
|
|
773
|
+
'BusinessWebsite' => business_website,
|
|
774
|
+
'NotificationEmail' => notification_email,
|
|
775
|
+
'UseCaseCategories' => Twilio.serialize_list(use_case_categories) { |e| e },
|
|
776
|
+
'UseCaseSummary' => use_case_summary,
|
|
777
|
+
'ProductionMessageSample' => production_message_sample,
|
|
778
|
+
'OptInImageUrls' => Twilio.serialize_list(opt_in_image_urls) { |e| e },
|
|
779
|
+
'OptInType' => opt_in_type,
|
|
780
|
+
'MessageVolume' => message_volume,
|
|
781
|
+
'BusinessStreetAddress' => business_street_address,
|
|
782
|
+
'BusinessStreetAddress2' => business_street_address2,
|
|
783
|
+
'BusinessCity' => business_city,
|
|
784
|
+
'BusinessStateProvinceRegion' => business_state_province_region,
|
|
785
|
+
'BusinessPostalCode' => business_postal_code,
|
|
786
|
+
'BusinessCountry' => business_country,
|
|
787
|
+
'AdditionalInformation' => additional_information,
|
|
788
|
+
'BusinessContactFirstName' => business_contact_first_name,
|
|
789
|
+
'BusinessContactLastName' => business_contact_last_name,
|
|
790
|
+
'BusinessContactEmail' => business_contact_email,
|
|
791
|
+
'BusinessContactPhone' => business_contact_phone,
|
|
792
|
+
'EditReason' => edit_reason,
|
|
793
|
+
'BusinessRegistrationNumber' => business_registration_number,
|
|
794
|
+
'BusinessRegistrationAuthority' => business_registration_authority,
|
|
795
|
+
'BusinessRegistrationCountry' => business_registration_country,
|
|
796
|
+
'BusinessType' => business_type,
|
|
797
|
+
'BusinessRegistrationPhoneNumber' => business_registration_phone_number,
|
|
798
|
+
'DoingBusinessAs' => doing_business_as,
|
|
799
|
+
'OptInConfirmationMessage' => opt_in_confirmation_message,
|
|
800
|
+
'HelpMessageSample' => help_message_sample,
|
|
801
|
+
'PrivacyPolicyUrl' => privacy_policy_url,
|
|
802
|
+
'TermsAndConditionsUrl' => terms_and_conditions_url,
|
|
803
|
+
'AgeGatedContent' => age_gated_content,
|
|
804
|
+
'OptInKeywords' => Twilio.serialize_list(opt_in_keywords) { |e| e },
|
|
805
|
+
'VettingProvider' => vetting_provider,
|
|
806
|
+
'VettingId' => vetting_id,
|
|
807
|
+
})
|
|
808
|
+
|
|
809
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
810
|
+
|
|
811
|
+
|
|
812
|
+
|
|
813
|
+
|
|
814
|
+
|
|
815
|
+
response = @version.update_with_metadata('POST', @uri, data: data, headers: headers)
|
|
816
|
+
tollfree_verification_instance = TollfreeVerificationInstance.new(
|
|
817
|
+
@version,
|
|
818
|
+
response.body,
|
|
819
|
+
sid: @solution[:sid],
|
|
820
|
+
)
|
|
821
|
+
TollfreeVerificationInstanceMetadata.new(
|
|
822
|
+
@version,
|
|
823
|
+
tollfree_verification_instance,
|
|
824
|
+
response.headers,
|
|
825
|
+
response.status_code
|
|
826
|
+
)
|
|
827
|
+
end
|
|
828
|
+
|
|
330
829
|
|
|
331
830
|
##
|
|
332
831
|
# Provide a user friendly representation
|
|
@@ -343,6 +842,53 @@ module Twilio
|
|
|
343
842
|
end
|
|
344
843
|
end
|
|
345
844
|
|
|
845
|
+
class TollfreeVerificationInstanceMetadata < InstanceResourceMetadata
|
|
846
|
+
##
|
|
847
|
+
# Initializes a new TollfreeVerificationInstanceMetadata.
|
|
848
|
+
# @param [Version] version Version that contains the resource
|
|
849
|
+
# @param [}TollfreeVerificationInstance] tollfree_verification_instance The instance associated with the metadata.
|
|
850
|
+
# @param [Hash] headers Header object with response headers.
|
|
851
|
+
# @param [Integer] status_code The HTTP status code of the response.
|
|
852
|
+
# @return [TollfreeVerificationInstanceMetadata] The initialized instance with metadata.
|
|
853
|
+
def initialize(version, tollfree_verification_instance, headers, status_code)
|
|
854
|
+
super(version, headers, status_code)
|
|
855
|
+
@tollfree_verification_instance = tollfree_verification_instance
|
|
856
|
+
end
|
|
857
|
+
|
|
858
|
+
def tollfree_verification
|
|
859
|
+
@tollfree_verification_instance
|
|
860
|
+
end
|
|
861
|
+
|
|
862
|
+
def headers
|
|
863
|
+
@headers
|
|
864
|
+
end
|
|
865
|
+
|
|
866
|
+
def status_code
|
|
867
|
+
@status_code
|
|
868
|
+
end
|
|
869
|
+
|
|
870
|
+
def to_s
|
|
871
|
+
"<Twilio.Api.V2010.TollfreeVerificationInstanceMetadata status=#{@status_code}>"
|
|
872
|
+
end
|
|
873
|
+
end
|
|
874
|
+
|
|
875
|
+
class TollfreeVerificationListResponse < InstanceListResource
|
|
876
|
+
# @param [Array<TollfreeVerificationInstance>] instance
|
|
877
|
+
# @param [Hash{String => Object}] headers
|
|
878
|
+
# @param [Integer] status_code
|
|
879
|
+
def initialize(version, payload, key)
|
|
880
|
+
@tollfree_verification_instance = payload.body[key].map do |data|
|
|
881
|
+
TollfreeVerificationInstance.new(version, data)
|
|
882
|
+
end
|
|
883
|
+
@headers = payload.headers
|
|
884
|
+
@status_code = payload.status_code
|
|
885
|
+
end
|
|
886
|
+
|
|
887
|
+
def tollfree_verification_instance
|
|
888
|
+
@instance
|
|
889
|
+
end
|
|
890
|
+
end
|
|
891
|
+
|
|
346
892
|
class TollfreeVerificationPage < Page
|
|
347
893
|
##
|
|
348
894
|
# Initialize the TollfreeVerificationPage
|
|
@@ -352,6 +898,7 @@ module Twilio
|
|
|
352
898
|
# @return [TollfreeVerificationPage] TollfreeVerificationPage
|
|
353
899
|
def initialize(version, response, solution)
|
|
354
900
|
super(version, response)
|
|
901
|
+
|
|
355
902
|
|
|
356
903
|
# Path Solution
|
|
357
904
|
@solution = solution
|
|
@@ -371,6 +918,66 @@ module Twilio
|
|
|
371
918
|
'<Twilio.Messaging.V1.TollfreeVerificationPage>'
|
|
372
919
|
end
|
|
373
920
|
end
|
|
921
|
+
|
|
922
|
+
class TollfreeVerificationPageMetadata < PageMetadata
|
|
923
|
+
attr_reader :tollfree_verification_page
|
|
924
|
+
|
|
925
|
+
def initialize(version, response, solution, limit)
|
|
926
|
+
super(version, response)
|
|
927
|
+
@tollfree_verification_page = []
|
|
928
|
+
@limit = limit
|
|
929
|
+
key = get_key(response.body)
|
|
930
|
+
records = 0
|
|
931
|
+
while( limit != :unset && records < limit )
|
|
932
|
+
@tollfree_verification_page << TollfreeVerificationListResponse.new(version, @payload, key, limit - records)
|
|
933
|
+
@payload = self.next_page
|
|
934
|
+
break unless @payload
|
|
935
|
+
records += (@payload.body[key] || []).size
|
|
936
|
+
end
|
|
937
|
+
# Path Solution
|
|
938
|
+
@solution = solution
|
|
939
|
+
end
|
|
940
|
+
|
|
941
|
+
def each
|
|
942
|
+
@tollfree_verification_page.each do |record|
|
|
943
|
+
yield record
|
|
944
|
+
end
|
|
945
|
+
end
|
|
946
|
+
|
|
947
|
+
def to_s
|
|
948
|
+
'<Twilio::REST::Messaging::V1PageMetadata>';
|
|
949
|
+
end
|
|
950
|
+
end
|
|
951
|
+
class TollfreeVerificationListResponse < InstanceListResource
|
|
952
|
+
|
|
953
|
+
# @param [Array<TollfreeVerificationInstance>] instance
|
|
954
|
+
# @param [Hash{String => Object}] headers
|
|
955
|
+
# @param [Integer] status_code
|
|
956
|
+
def initialize(version, payload, key, limit = :unset)
|
|
957
|
+
data_list = payload.body[key] || []
|
|
958
|
+
if limit != :unset
|
|
959
|
+
data_list = data_list[0, limit]
|
|
960
|
+
end
|
|
961
|
+
@tollfree_verification = data_list.map do |data|
|
|
962
|
+
TollfreeVerificationInstance.new(version, data)
|
|
963
|
+
end
|
|
964
|
+
@headers = payload.headers
|
|
965
|
+
@status_code = payload.status_code
|
|
966
|
+
end
|
|
967
|
+
|
|
968
|
+
def tollfree_verification
|
|
969
|
+
@tollfree_verification
|
|
970
|
+
end
|
|
971
|
+
|
|
972
|
+
def headers
|
|
973
|
+
@headers
|
|
974
|
+
end
|
|
975
|
+
|
|
976
|
+
def status_code
|
|
977
|
+
@status_code
|
|
978
|
+
end
|
|
979
|
+
end
|
|
980
|
+
|
|
374
981
|
class TollfreeVerificationInstance < InstanceResource
|
|
375
982
|
##
|
|
376
983
|
# Initialize the TollfreeVerificationInstance
|
|
@@ -384,6 +991,7 @@ module Twilio
|
|
|
384
991
|
def initialize(version, payload , sid: nil)
|
|
385
992
|
super(version)
|
|
386
993
|
|
|
994
|
+
|
|
387
995
|
# Marshaled Properties
|
|
388
996
|
@properties = {
|
|
389
997
|
'sid' => payload['sid'],
|
|
@@ -414,13 +1022,31 @@ module Twilio
|
|
|
414
1022
|
'message_volume' => payload['message_volume'],
|
|
415
1023
|
'additional_information' => payload['additional_information'],
|
|
416
1024
|
'tollfree_phone_number_sid' => payload['tollfree_phone_number_sid'],
|
|
1025
|
+
'tollfree_phone_number' => payload['tollfree_phone_number'],
|
|
417
1026
|
'status' => payload['status'],
|
|
418
1027
|
'url' => payload['url'],
|
|
419
1028
|
'rejection_reason' => payload['rejection_reason'],
|
|
420
1029
|
'error_code' => payload['error_code'] == nil ? payload['error_code'] : payload['error_code'].to_i,
|
|
421
1030
|
'edit_expiration' => Twilio.deserialize_iso8601_datetime(payload['edit_expiration']),
|
|
1031
|
+
'edit_allowed' => payload['edit_allowed'],
|
|
1032
|
+
'business_registration_number' => payload['business_registration_number'],
|
|
1033
|
+
'business_registration_authority' => payload['business_registration_authority'],
|
|
1034
|
+
'business_registration_country' => payload['business_registration_country'],
|
|
1035
|
+
'business_type' => payload['business_type'],
|
|
1036
|
+
'business_registration_phone_number' => payload['business_registration_phone_number'],
|
|
1037
|
+
'doing_business_as' => payload['doing_business_as'],
|
|
1038
|
+
'opt_in_confirmation_message' => payload['opt_in_confirmation_message'],
|
|
1039
|
+
'help_message_sample' => payload['help_message_sample'],
|
|
1040
|
+
'privacy_policy_url' => payload['privacy_policy_url'],
|
|
1041
|
+
'terms_and_conditions_url' => payload['terms_and_conditions_url'],
|
|
1042
|
+
'age_gated_content' => payload['age_gated_content'],
|
|
1043
|
+
'opt_in_keywords' => payload['opt_in_keywords'],
|
|
1044
|
+
'rejection_reasons' => payload['rejection_reasons'],
|
|
422
1045
|
'resource_links' => payload['resource_links'],
|
|
423
1046
|
'external_reference_id' => payload['external_reference_id'],
|
|
1047
|
+
'vetting_id' => payload['vetting_id'],
|
|
1048
|
+
'vetting_provider' => payload['vetting_provider'],
|
|
1049
|
+
'vetting_id_expiration' => Twilio.deserialize_iso8601_datetime(payload['vetting_id_expiration']),
|
|
424
1050
|
}
|
|
425
1051
|
|
|
426
1052
|
# Context
|
|
@@ -548,7 +1174,7 @@ module Twilio
|
|
|
548
1174
|
end
|
|
549
1175
|
|
|
550
1176
|
##
|
|
551
|
-
# @return [String] The phone number of the contact for the business or organization using the Tollfree number.
|
|
1177
|
+
# @return [String] The E.164 formatted phone number of the contact for the business or organization using the Tollfree number.
|
|
552
1178
|
def business_contact_phone
|
|
553
1179
|
@properties['business_contact_phone']
|
|
554
1180
|
end
|
|
@@ -560,7 +1186,7 @@ module Twilio
|
|
|
560
1186
|
end
|
|
561
1187
|
|
|
562
1188
|
##
|
|
563
|
-
# @return [Array<String>] The category of the use case for the Tollfree Number. List as many are applicable
|
|
1189
|
+
# @return [Array<String>] The category of the use case for the Tollfree Number. List as many as are applicable.
|
|
564
1190
|
def use_case_categories
|
|
565
1191
|
@properties['use_case_categories']
|
|
566
1192
|
end
|
|
@@ -607,6 +1233,12 @@ module Twilio
|
|
|
607
1233
|
@properties['tollfree_phone_number_sid']
|
|
608
1234
|
end
|
|
609
1235
|
|
|
1236
|
+
##
|
|
1237
|
+
# @return [String] The E.164 formatted toll-free phone number associated with the verification.
|
|
1238
|
+
def tollfree_phone_number
|
|
1239
|
+
@properties['tollfree_phone_number']
|
|
1240
|
+
end
|
|
1241
|
+
|
|
610
1242
|
##
|
|
611
1243
|
# @return [Status]
|
|
612
1244
|
def status
|
|
@@ -637,6 +1269,90 @@ module Twilio
|
|
|
637
1269
|
@properties['edit_expiration']
|
|
638
1270
|
end
|
|
639
1271
|
|
|
1272
|
+
##
|
|
1273
|
+
# @return [Boolean] If a rejected verification is allowed to be edited/resubmitted. Some rejection reasons allow editing and some do not.
|
|
1274
|
+
def edit_allowed
|
|
1275
|
+
@properties['edit_allowed']
|
|
1276
|
+
end
|
|
1277
|
+
|
|
1278
|
+
##
|
|
1279
|
+
# @return [String] A legally recognized business registration number
|
|
1280
|
+
def business_registration_number
|
|
1281
|
+
@properties['business_registration_number']
|
|
1282
|
+
end
|
|
1283
|
+
|
|
1284
|
+
##
|
|
1285
|
+
# @return [BusinessRegistrationAuthority]
|
|
1286
|
+
def business_registration_authority
|
|
1287
|
+
@properties['business_registration_authority']
|
|
1288
|
+
end
|
|
1289
|
+
|
|
1290
|
+
##
|
|
1291
|
+
# @return [String] Country business is registered in
|
|
1292
|
+
def business_registration_country
|
|
1293
|
+
@properties['business_registration_country']
|
|
1294
|
+
end
|
|
1295
|
+
|
|
1296
|
+
##
|
|
1297
|
+
# @return [BusinessType]
|
|
1298
|
+
def business_type
|
|
1299
|
+
@properties['business_type']
|
|
1300
|
+
end
|
|
1301
|
+
|
|
1302
|
+
##
|
|
1303
|
+
# @return [String] The E.164 formatted number associated with the business.
|
|
1304
|
+
def business_registration_phone_number
|
|
1305
|
+
@properties['business_registration_phone_number']
|
|
1306
|
+
end
|
|
1307
|
+
|
|
1308
|
+
##
|
|
1309
|
+
# @return [String] Trade name, sub entity, or downstream business name of business being submitted for verification
|
|
1310
|
+
def doing_business_as
|
|
1311
|
+
@properties['doing_business_as']
|
|
1312
|
+
end
|
|
1313
|
+
|
|
1314
|
+
##
|
|
1315
|
+
# @return [String] The confirmation message sent to users when they opt in to receive messages.
|
|
1316
|
+
def opt_in_confirmation_message
|
|
1317
|
+
@properties['opt_in_confirmation_message']
|
|
1318
|
+
end
|
|
1319
|
+
|
|
1320
|
+
##
|
|
1321
|
+
# @return [String] A sample help message provided to users.
|
|
1322
|
+
def help_message_sample
|
|
1323
|
+
@properties['help_message_sample']
|
|
1324
|
+
end
|
|
1325
|
+
|
|
1326
|
+
##
|
|
1327
|
+
# @return [String] The URL to the privacy policy for the business or organization.
|
|
1328
|
+
def privacy_policy_url
|
|
1329
|
+
@properties['privacy_policy_url']
|
|
1330
|
+
end
|
|
1331
|
+
|
|
1332
|
+
##
|
|
1333
|
+
# @return [String] The URL of the terms and conditions for the business or organization.
|
|
1334
|
+
def terms_and_conditions_url
|
|
1335
|
+
@properties['terms_and_conditions_url']
|
|
1336
|
+
end
|
|
1337
|
+
|
|
1338
|
+
##
|
|
1339
|
+
# @return [Boolean] Indicates if the content is age gated.
|
|
1340
|
+
def age_gated_content
|
|
1341
|
+
@properties['age_gated_content']
|
|
1342
|
+
end
|
|
1343
|
+
|
|
1344
|
+
##
|
|
1345
|
+
# @return [Array<String>] List of keywords that users can send to opt in or out of messages.
|
|
1346
|
+
def opt_in_keywords
|
|
1347
|
+
@properties['opt_in_keywords']
|
|
1348
|
+
end
|
|
1349
|
+
|
|
1350
|
+
##
|
|
1351
|
+
# @return [Array<Hash>] A list of rejection reasons and codes describing why a Tollfree Verification has been rejected.
|
|
1352
|
+
def rejection_reasons
|
|
1353
|
+
@properties['rejection_reasons']
|
|
1354
|
+
end
|
|
1355
|
+
|
|
640
1356
|
##
|
|
641
1357
|
# @return [Hash] The URLs of the documents associated with the Tollfree Verification resource.
|
|
642
1358
|
def resource_links
|
|
@@ -649,6 +1365,32 @@ module Twilio
|
|
|
649
1365
|
@properties['external_reference_id']
|
|
650
1366
|
end
|
|
651
1367
|
|
|
1368
|
+
##
|
|
1369
|
+
# @return [String]
|
|
1370
|
+
def vetting_id
|
|
1371
|
+
@properties['vetting_id']
|
|
1372
|
+
end
|
|
1373
|
+
|
|
1374
|
+
##
|
|
1375
|
+
# @return [VettingProvider]
|
|
1376
|
+
def vetting_provider
|
|
1377
|
+
@properties['vetting_provider']
|
|
1378
|
+
end
|
|
1379
|
+
|
|
1380
|
+
##
|
|
1381
|
+
# @return [Time]
|
|
1382
|
+
def vetting_id_expiration
|
|
1383
|
+
@properties['vetting_id_expiration']
|
|
1384
|
+
end
|
|
1385
|
+
|
|
1386
|
+
##
|
|
1387
|
+
# Delete the TollfreeVerificationInstance
|
|
1388
|
+
# @return [Boolean] True if delete succeeds, false otherwise
|
|
1389
|
+
def delete
|
|
1390
|
+
|
|
1391
|
+
context.delete
|
|
1392
|
+
end
|
|
1393
|
+
|
|
652
1394
|
##
|
|
653
1395
|
# Fetch the TollfreeVerificationInstance
|
|
654
1396
|
# @return [TollfreeVerificationInstance] Fetched TollfreeVerificationInstance
|
|
@@ -662,7 +1404,7 @@ module Twilio
|
|
|
662
1404
|
# @param [String] business_name The name of the business or organization using the Tollfree number.
|
|
663
1405
|
# @param [String] business_website The website of the business or organization using the Tollfree number.
|
|
664
1406
|
# @param [String] notification_email The email address to receive the notification about the verification result. .
|
|
665
|
-
# @param [Array[String]] use_case_categories The category of the use case for the Tollfree Number. List as many are applicable
|
|
1407
|
+
# @param [Array[String]] use_case_categories The category of the use case for the Tollfree Number. List as many as are applicable.
|
|
666
1408
|
# @param [String] use_case_summary Use this to further explain how messaging is used by the business or organization.
|
|
667
1409
|
# @param [String] production_message_sample An example of message content, i.e. a sample message.
|
|
668
1410
|
# @param [Array[String]] opt_in_image_urls Link to an image that shows the opt-in workflow. Multiple images allowed and must be a publicly hosted URL.
|
|
@@ -678,29 +1420,59 @@ module Twilio
|
|
|
678
1420
|
# @param [String] business_contact_first_name The first name of the contact for the business or organization using the Tollfree number.
|
|
679
1421
|
# @param [String] business_contact_last_name The last name of the contact for the business or organization using the Tollfree number.
|
|
680
1422
|
# @param [String] business_contact_email The email address of the contact for the business or organization using the Tollfree number.
|
|
681
|
-
# @param [String] business_contact_phone The phone number of the contact for the business or organization using the Tollfree number.
|
|
1423
|
+
# @param [String] business_contact_phone The E.164 formatted phone number of the contact for the business or organization using the Tollfree number.
|
|
1424
|
+
# @param [String] edit_reason Describe why the verification is being edited. If the verification was rejected because of a technical issue, such as the website being down, and the issue has been resolved this parameter should be set to something similar to 'Website fixed'.
|
|
1425
|
+
# @param [String] business_registration_number A legally recognized business registration number
|
|
1426
|
+
# @param [BusinessRegistrationAuthority] business_registration_authority
|
|
1427
|
+
# @param [String] business_registration_country Country business is registered in
|
|
1428
|
+
# @param [BusinessType] business_type
|
|
1429
|
+
# @param [String] business_registration_phone_number The E.164 formatted number associated with the business.
|
|
1430
|
+
# @param [String] doing_business_as Trade name, sub entity, or downstream business name of business being submitted for verification
|
|
1431
|
+
# @param [String] opt_in_confirmation_message The confirmation message sent to users when they opt in to receive messages.
|
|
1432
|
+
# @param [String] help_message_sample A sample help message provided to users.
|
|
1433
|
+
# @param [String] privacy_policy_url The URL to the privacy policy for the business or organization.
|
|
1434
|
+
# @param [String] terms_and_conditions_url The URL to the terms and conditions for the business or organization.
|
|
1435
|
+
# @param [Boolean] age_gated_content Indicates if the content is age gated.
|
|
1436
|
+
# @param [Array[String]] opt_in_keywords List of keywords that users can text in to opt in to receive messages.
|
|
1437
|
+
# @param [VettingProvider] vetting_provider
|
|
1438
|
+
# @param [String] vetting_id The unique ID of the vetting
|
|
682
1439
|
# @return [TollfreeVerificationInstance] Updated TollfreeVerificationInstance
|
|
683
1440
|
def update(
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
1441
|
+
business_name: :unset,
|
|
1442
|
+
business_website: :unset,
|
|
1443
|
+
notification_email: :unset,
|
|
1444
|
+
use_case_categories: :unset,
|
|
1445
|
+
use_case_summary: :unset,
|
|
1446
|
+
production_message_sample: :unset,
|
|
1447
|
+
opt_in_image_urls: :unset,
|
|
1448
|
+
opt_in_type: :unset,
|
|
1449
|
+
message_volume: :unset,
|
|
1450
|
+
business_street_address: :unset,
|
|
1451
|
+
business_street_address2: :unset,
|
|
1452
|
+
business_city: :unset,
|
|
1453
|
+
business_state_province_region: :unset,
|
|
1454
|
+
business_postal_code: :unset,
|
|
1455
|
+
business_country: :unset,
|
|
1456
|
+
additional_information: :unset,
|
|
1457
|
+
business_contact_first_name: :unset,
|
|
1458
|
+
business_contact_last_name: :unset,
|
|
1459
|
+
business_contact_email: :unset,
|
|
1460
|
+
business_contact_phone: :unset,
|
|
1461
|
+
edit_reason: :unset,
|
|
1462
|
+
business_registration_number: :unset,
|
|
1463
|
+
business_registration_authority: :unset,
|
|
1464
|
+
business_registration_country: :unset,
|
|
1465
|
+
business_type: :unset,
|
|
1466
|
+
business_registration_phone_number: :unset,
|
|
1467
|
+
doing_business_as: :unset,
|
|
1468
|
+
opt_in_confirmation_message: :unset,
|
|
1469
|
+
help_message_sample: :unset,
|
|
1470
|
+
privacy_policy_url: :unset,
|
|
1471
|
+
terms_and_conditions_url: :unset,
|
|
1472
|
+
age_gated_content: :unset,
|
|
1473
|
+
opt_in_keywords: :unset,
|
|
1474
|
+
vetting_provider: :unset,
|
|
1475
|
+
vetting_id: :unset
|
|
704
1476
|
)
|
|
705
1477
|
|
|
706
1478
|
context.update(
|
|
@@ -724,6 +1496,21 @@ module Twilio
|
|
|
724
1496
|
business_contact_last_name: business_contact_last_name,
|
|
725
1497
|
business_contact_email: business_contact_email,
|
|
726
1498
|
business_contact_phone: business_contact_phone,
|
|
1499
|
+
edit_reason: edit_reason,
|
|
1500
|
+
business_registration_number: business_registration_number,
|
|
1501
|
+
business_registration_authority: business_registration_authority,
|
|
1502
|
+
business_registration_country: business_registration_country,
|
|
1503
|
+
business_type: business_type,
|
|
1504
|
+
business_registration_phone_number: business_registration_phone_number,
|
|
1505
|
+
doing_business_as: doing_business_as,
|
|
1506
|
+
opt_in_confirmation_message: opt_in_confirmation_message,
|
|
1507
|
+
help_message_sample: help_message_sample,
|
|
1508
|
+
privacy_policy_url: privacy_policy_url,
|
|
1509
|
+
terms_and_conditions_url: terms_and_conditions_url,
|
|
1510
|
+
age_gated_content: age_gated_content,
|
|
1511
|
+
opt_in_keywords: opt_in_keywords,
|
|
1512
|
+
vetting_provider: vetting_provider,
|
|
1513
|
+
vetting_id: vetting_id,
|
|
727
1514
|
)
|
|
728
1515
|
end
|
|
729
1516
|
|