twilio-ruby 6.2.0 → 6.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGES.md +205 -0
- data/CONTRIBUTING.md +1 -1
- data/LICENSE +1 -1
- data/README.md +2 -2
- data/lib/twilio-ruby/base/client_base.rb +4 -7
- data/lib/twilio-ruby/rest/accounts/v1/credential/aws.rb +0 -1
- data/lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb +0 -1
- data/lib/twilio-ruby/rest/accounts/v1/safelist.rb +169 -0
- data/lib/twilio-ruby/rest/accounts/v1.rb +6 -0
- data/lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb +0 -1
- data/lib/twilio-ruby/rest/api/v2010/account/address.rb +1 -5
- data/lib/twilio-ruby/rest/api/v2010/account/application.rb +0 -2
- data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +0 -1
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/local.rb +0 -19
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/machine_to_machine.rb +0 -19
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/mobile.rb +0 -19
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/national.rb +0 -19
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/shared_cost.rb +0 -19
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/toll_free.rb +0 -19
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/voip.rb +0 -19
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country.rb +7 -8
- data/lib/twilio-ruby/rest/api/v2010/account/call/event.rb +0 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +0 -5
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +0 -4
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +8 -19
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +5 -6
- data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +0 -4
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +2 -11
- data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +0 -1
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +0 -1
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +1 -2
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +0 -5
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +0 -5
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +0 -5
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +1 -6
- data/lib/twilio-ruby/rest/api/v2010/account/key.rb +0 -1
- data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +19 -23
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +55 -58
- data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +0 -5
- data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +0 -3
- data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +0 -1
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +1 -2
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +0 -1
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +1 -2
- data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +0 -1
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +2 -9
- data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +0 -3
- data/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb +0 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +0 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +1 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls/auth_calls_credential_list_mapping.rb +0 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls/auth_calls_ip_access_control_list_mapping.rb +0 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_registrations/auth_registrations_credential_list_mapping.rb +0 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +0 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +0 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +3 -4
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +0 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +1 -2
- data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +0 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +0 -5
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +0 -5
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +0 -5
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +0 -5
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +0 -5
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +0 -5
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +0 -5
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +0 -5
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +0 -5
- data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +0 -4
- data/lib/twilio-ruby/rest/api/v2010/account.rb +0 -3
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type/field_value.rb +0 -2
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type.rb +1 -2
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/model_build.rb +0 -1
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb +0 -5
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/field.rb +0 -1
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/sample.rb +0 -2
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task.rb +2 -3
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/webhook.rb +0 -1
- data/lib/twilio-ruby/rest/autopilot/v1/assistant.rb +0 -1
- data/lib/twilio-ruby/rest/bulkexports/v1/export/day.rb +0 -1
- data/lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb +0 -1
- data/lib/twilio-ruby/rest/chat/v1/credential.rb +0 -1
- data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +1 -2
- data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +1 -2
- data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +0 -2
- data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +4 -5
- data/lib/twilio-ruby/rest/chat/v1/service/role.rb +0 -1
- data/lib/twilio-ruby/rest/chat/v1/service/user/user_channel.rb +0 -1
- data/lib/twilio-ruby/rest/chat/v1/service/user.rb +1 -2
- data/lib/twilio-ruby/rest/chat/v1/service.rb +0 -1
- data/lib/twilio-ruby/rest/chat/v2/credential.rb +0 -1
- data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +2 -3
- data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +1 -2
- data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +1 -2
- data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +0 -2
- data/lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb +0 -1
- data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +5 -6
- data/lib/twilio-ruby/rest/chat/v2/service/role.rb +0 -1
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +1 -2
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +0 -1
- data/lib/twilio-ruby/rest/chat/v2/service/user.rb +2 -3
- data/lib/twilio-ruby/rest/chat/v2/service.rb +0 -1
- data/lib/twilio-ruby/rest/chat/v3/channel.rb +3 -3
- data/lib/twilio-ruby/rest/client.rb +1 -6
- data/lib/twilio-ruby/rest/content/v1/content.rb +1 -2
- data/lib/twilio-ruby/rest/content/v1/content_and_approvals.rb +1 -2
- data/lib/twilio-ruby/rest/content/v1/legacy_content.rb +1 -2
- data/lib/twilio-ruby/rest/conversations/v1/address_configuration.rb +0 -2
- data/lib/twilio-ruby/rest/conversations/v1/configuration.rb +3 -3
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message/delivery_receipt.rb +0 -1
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +12 -5
- data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +0 -1
- data/lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb +0 -1
- data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +22 -8
- data/lib/twilio-ruby/rest/conversations/v1/credential.rb +0 -1
- data/lib/twilio-ruby/rest/conversations/v1/participant_conversation.rb +0 -3
- data/lib/twilio-ruby/rest/conversations/v1/role.rb +0 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/binding.rb +2 -3
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration.rb +12 -12
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message/delivery_receipt.rb +0 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +12 -5
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/participant.rb +19 -20
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb +0 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb +25 -11
- data/lib/twilio-ruby/rest/conversations/v1/service/participant_conversation.rb +0 -3
- data/lib/twilio-ruby/rest/conversations/v1/service/role.rb +0 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/user/user_conversation.rb +0 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/user.rb +1 -2
- data/lib/twilio-ruby/rest/conversations/v1/service.rb +0 -1
- data/lib/twilio-ruby/rest/conversations/v1/user/user_conversation.rb +0 -1
- data/lib/twilio-ruby/rest/conversations/v1/user.rb +0 -1
- data/lib/twilio-ruby/rest/events/v1/event_type.rb +0 -2
- data/lib/twilio-ruby/rest/events/v1/schema/schema_version.rb +0 -1
- data/lib/twilio-ruby/rest/events/v1/sink.rb +0 -3
- data/lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb +0 -1
- data/lib/twilio-ruby/rest/events/v1/subscription.rb +0 -2
- data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +0 -3
- data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +0 -1
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +21 -0
- data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +0 -2
- data/lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb +0 -4
- data/lib/twilio-ruby/rest/flex_api/v1/insights_conversations.rb +0 -3
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb +0 -3
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb +0 -2
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb +1 -3
- data/lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb +1 -4
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.rb +0 -1
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_participant.rb +0 -1
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel.rb +6 -7
- data/lib/twilio-ruby/rest/flex_api/v1/interaction.rb +11 -1
- data/lib/twilio-ruby/rest/{oauth/v1/oauth.rb → flex_api/v1/provisioning_status.rb} +39 -37
- data/lib/twilio-ruby/rest/flex_api/v1/web_channel.rb +0 -1
- data/lib/twilio-ruby/rest/flex_api/v1.rb +6 -0
- data/lib/twilio-ruby/rest/insights/v1/call/annotation.rb +1 -1
- data/lib/twilio-ruby/rest/insights/v1/call/event.rb +0 -2
- data/lib/twilio-ruby/rest/insights/v1/call/metric.rb +0 -3
- data/lib/twilio-ruby/rest/insights/v1/call_summaries.rb +33 -51
- data/lib/twilio-ruby/rest/insights/v1/conference/conference_participant.rb +0 -4
- data/lib/twilio-ruby/rest/insights/v1/conference.rb +0 -11
- data/lib/twilio-ruby/rest/insights/v1/room/participant.rb +3 -4
- data/lib/twilio-ruby/rest/insights/v1/room.rb +2 -6
- data/lib/twilio-ruby/rest/intelligence/v2/service.rb +4 -5
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/media.rb +2 -2
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/operator_result.rb +12 -7
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/sentence.rb +3 -5
- data/lib/twilio-ruby/rest/intelligence/v2/transcript.rb +5 -25
- data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +0 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +1 -2
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +1 -2
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +0 -2
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +4 -5
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +0 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user/user_channel.rb +0 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +1 -2
- data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +0 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +0 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +2 -3
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +1 -2
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +1 -2
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +0 -2
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb +0 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +5 -6
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +0 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +1 -2
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +0 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +2 -3
- data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +0 -1
- data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +7 -0
- data/lib/twilio-ruby/rest/media/v1/media_processor.rb +7 -10
- data/lib/twilio-ruby/rest/media/v1/media_recording.rb +1 -6
- data/lib/twilio-ruby/rest/media/v1/player_streamer.rb +2 -5
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_vetting.rb +0 -2
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +0 -1
- data/lib/twilio-ruby/rest/messaging/v1/external_campaign.rb +2 -2
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +0 -1
- data/lib/twilio-ruby/rest/messaging/v1/service/channel_sender.rb +329 -0
- data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +0 -1
- data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +0 -1
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +4 -5
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +78 -52
- data/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb +777 -0
- data/lib/twilio-ruby/rest/messaging/v1.rb +15 -0
- data/lib/twilio-ruby/rest/microvisor/v1/account_config.rb +0 -1
- data/lib/twilio-ruby/rest/microvisor/v1/account_secret.rb +0 -1
- data/lib/twilio-ruby/rest/microvisor/v1/app.rb +0 -1
- data/lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb +0 -1
- data/lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb +0 -1
- data/lib/twilio-ruby/rest/microvisor/v1/device.rb +8 -3
- data/lib/twilio-ruby/rest/monitor/v1/alert.rb +0 -4
- data/lib/twilio-ruby/rest/monitor/v1/event.rb +0 -7
- data/lib/twilio-ruby/rest/notify/v1/credential.rb +0 -1
- data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +2 -5
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +1 -1
- data/lib/twilio-ruby/rest/notify/v1/service.rb +4 -6
- data/lib/twilio-ruby/rest/numbers/v1/porting_portability.rb +22 -4
- data/lib/twilio-ruby/rest/numbers/v2/authorization_document/dependent_hosted_number_order.rb +7 -12
- data/lib/twilio-ruby/rest/numbers/v2/authorization_document.rb +6 -6
- data/lib/twilio-ruby/rest/numbers/v2/bulk_hosted_number_order.rb +249 -0
- data/lib/twilio-ruby/rest/numbers/v2/hosted_number_order.rb +7 -20
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb +0 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/evaluation.rb +0 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/item_assignment.rb +0 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +19 -31
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user.rb +0 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user_type.rb +0 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/regulation.rb +0 -4
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document.rb +0 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document_type.rb +0 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb +14 -14
- data/lib/twilio-ruby/rest/numbers/v2.rb +15 -0
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/certificate.rb +0 -2
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/deployment.rb +0 -1
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/device.rb +0 -2
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/key.rb +0 -2
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +0 -1
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb +3 -9
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +4 -7
- data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +3 -9
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb +0 -1
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +0 -1
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb +0 -1
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +0 -1
- data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +0 -1
- data/lib/twilio-ruby/rest/preview/sync/service/document.rb +1 -2
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +0 -4
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +0 -1
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +2 -3
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +0 -4
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +0 -1
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +2 -3
- data/lib/twilio-ruby/rest/preview/sync/service.rb +0 -1
- data/lib/twilio-ruby/rest/preview/understand/assistant/field_type/field_value.rb +0 -2
- data/lib/twilio-ruby/rest/preview/understand/assistant/field_type.rb +1 -2
- data/lib/twilio-ruby/rest/preview/understand/assistant/model_build.rb +0 -1
- data/lib/twilio-ruby/rest/preview/understand/assistant/query.rb +0 -4
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/field.rb +0 -1
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/sample.rb +0 -2
- data/lib/twilio-ruby/rest/preview/understand/assistant/task.rb +2 -3
- data/lib/twilio-ruby/rest/preview/understand/assistant.rb +0 -1
- data/lib/twilio-ruby/rest/preview/wireless/command.rb +0 -5
- data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +0 -1
- data/lib/twilio-ruby/rest/preview/wireless/sim.rb +0 -6
- data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +0 -1
- data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +0 -1
- data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +0 -1
- data/lib/twilio-ruby/rest/pricing/v2/country.rb +0 -1
- data/lib/twilio-ruby/rest/pricing/v2/voice/country.rb +0 -1
- data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +0 -1
- data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +1 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +0 -1
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +1 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +2 -3
- data/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb +1 -2
- data/lib/twilio-ruby/rest/proxy/v1/service.rb +4 -5
- data/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +0 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +1 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +0 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +0 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +0 -4
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +0 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +3 -4
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +0 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +1 -2
- data/lib/twilio-ruby/rest/serverless/v1/service.rb +0 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb +0 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement.rb +1 -2
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb +0 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +1 -4
- data/lib/twilio-ruby/rest/studio/v1/flow.rb +0 -1
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb +0 -1
- data/lib/twilio-ruby/rest/studio/v2/flow/execution.rb +1 -4
- data/lib/twilio-ruby/rest/studio/v2/flow/flow_revision.rb +0 -1
- data/lib/twilio-ruby/rest/studio/v2/flow.rb +0 -1
- data/lib/twilio-ruby/rest/supersim/v1/esim_profile.rb +4 -8
- data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +0 -2
- data/lib/twilio-ruby/rest/supersim/v1/ip_command.rb +3 -8
- data/lib/twilio-ruby/rest/supersim/v1/network.rb +0 -4
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +0 -1
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +0 -1
- data/lib/twilio-ruby/rest/supersim/v1/settings_update.rb +0 -3
- data/lib/twilio-ruby/rest/supersim/v1/sim/billing_period.rb +0 -1
- data/lib/twilio-ruby/rest/supersim/v1/sim/sim_ip_address.rb +0 -1
- data/lib/twilio-ruby/rest/supersim/v1/sim.rb +0 -4
- data/lib/twilio-ruby/rest/supersim/v1/sms_command.rb +0 -4
- data/lib/twilio-ruby/rest/supersim/v1/usage_record.rb +0 -9
- data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +0 -1
- data/lib/twilio-ruby/rest/sync/v1/service/document.rb +1 -2
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +0 -4
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +0 -1
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +2 -3
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +0 -4
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +0 -1
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +2 -3
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +1 -2
- data/lib/twilio-ruby/rest/sync/v1/service.rb +0 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +0 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +0 -12
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +0 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +26 -19
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +0 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb +0 -7
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +8 -5
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +0 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +0 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +2 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +0 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +0 -2
- data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +0 -1
- data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +0 -1
- data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +0 -1
- data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +0 -1
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +0 -1
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb +232 -0
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb +154 -0
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.rb +0 -3
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb +0 -1
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.rb +0 -1
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles.rb +0 -4
- data/lib/twilio-ruby/rest/trusthub/v1/end_user.rb +0 -1
- data/lib/twilio-ruby/rest/trusthub/v1/end_user_type.rb +0 -1
- data/lib/twilio-ruby/rest/trusthub/v1/policies.rb +0 -1
- data/lib/twilio-ruby/rest/trusthub/v1/supporting_document.rb +0 -1
- data/lib/twilio-ruby/rest/trusthub/v1/supporting_document_type.rb +0 -1
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment.rb +0 -3
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_entity_assignments.rb +0 -1
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_evaluations.rb +0 -1
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products.rb +0 -4
- data/lib/twilio-ruby/rest/trusthub/v1.rb +21 -0
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +1 -5
- data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +0 -1
- data/lib/twilio-ruby/rest/verify/v2/service/entity.rb +3 -4
- data/lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb +4 -5
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb +0 -1
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb +1 -2
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +7 -1
- data/lib/twilio-ruby/rest/verify/v2/service/webhook.rb +0 -1
- data/lib/twilio-ruby/rest/verify/v2/service.rb +19 -4
- data/lib/twilio-ruby/rest/verify/v2/template.rb +0 -2
- data/lib/twilio-ruby/rest/verify/v2/verification_attempt.rb +7 -16
- data/lib/twilio-ruby/rest/verify/v2/verification_attempts_summary.rb +6 -6
- data/lib/twilio-ruby/rest/video/v1/composition.rb +0 -5
- data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +0 -5
- data/lib/twilio-ruby/rest/video/v1/recording.rb +1 -7
- data/lib/twilio-ruby/rest/video/v1/room/participant/published_track.rb +0 -1
- data/lib/twilio-ruby/rest/video/v1/room/participant/subscribed_track.rb +0 -1
- data/lib/twilio-ruby/rest/video/v1/room/participant.rb +3 -8
- data/lib/twilio-ruby/rest/video/v1/room/room_recording.rb +0 -5
- data/lib/twilio-ruby/rest/video/v1/room.rb +2 -7
- data/lib/twilio-ruby/rest/voice/v1/byoc_trunk.rb +0 -1
- data/lib/twilio-ruby/rest/voice/v1/connection_policy/connection_policy_target.rb +0 -1
- data/lib/twilio-ruby/rest/voice/v1/connection_policy.rb +0 -1
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb +0 -1
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +4 -11
- data/lib/twilio-ruby/rest/voice/v1/ip_record.rb +0 -1
- data/lib/twilio-ruby/rest/voice/v1/source_ip_mapping.rb +0 -1
- data/lib/twilio-ruby/rest/wireless/v1/command.rb +5 -10
- data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +7 -8
- data/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb +3 -4
- data/lib/twilio-ruby/rest/wireless/v1/sim/usage_record.rb +3 -7
- data/lib/twilio-ruby/rest/wireless/v1/sim.rb +13 -19
- data/lib/twilio-ruby/rest/wireless/v1/usage_record.rb +2 -6
- data/lib/twilio-ruby/twiml/voice_response.rb +8 -4
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +9 -11
- data/conf/cacert.pem +0 -3376
- data/lib/twilio-ruby/rest/oauth/v1/device_code.rb +0 -171
- data/lib/twilio-ruby/rest/oauth/v1/openid_discovery.rb +0 -262
- data/lib/twilio-ruby/rest/oauth/v1/token.rb +0 -179
- data/lib/twilio-ruby/rest/oauth/v1/user_info.rb +0 -213
- data/lib/twilio-ruby/rest/oauth/v1.rb +0 -64
- data/lib/twilio-ruby/rest/oauth.rb +0 -33
- data/lib/twilio-ruby/rest/oauth_base.rb +0 -38
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
##
|
|
2
|
+
# This code was generated by
|
|
3
|
+
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
|
4
|
+
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
|
5
|
+
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
6
|
+
#
|
|
7
|
+
# Twilio - Trusthub
|
|
8
|
+
# This is the public Twilio REST API.
|
|
9
|
+
#
|
|
10
|
+
# NOTE: This class is auto generated by OpenAPI Generator.
|
|
11
|
+
# https://openapi-generator.tech
|
|
12
|
+
# Do not edit the class manually.
|
|
13
|
+
#
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
module Twilio
|
|
17
|
+
module REST
|
|
18
|
+
class Trusthub < TrusthubBase
|
|
19
|
+
class V1 < Version
|
|
20
|
+
class ComplianceInquiriesList < ListResource
|
|
21
|
+
##
|
|
22
|
+
# Initialize the ComplianceInquiriesList
|
|
23
|
+
# @param [Version] version Version that contains the resource
|
|
24
|
+
# @return [ComplianceInquiriesList] ComplianceInquiriesList
|
|
25
|
+
def initialize(version)
|
|
26
|
+
super(version)
|
|
27
|
+
# Path Solution
|
|
28
|
+
@solution = { }
|
|
29
|
+
@uri = "/ComplianceInquiries/Customers/Initialize"
|
|
30
|
+
|
|
31
|
+
end
|
|
32
|
+
##
|
|
33
|
+
# Create the ComplianceInquiriesInstance
|
|
34
|
+
# @param [String] primary_profile_sid The unique SID identifier of the Primary Customer Profile that should be used as a parent. Only necessary when creating a secondary Customer Profile.
|
|
35
|
+
# @return [ComplianceInquiriesInstance] Created ComplianceInquiriesInstance
|
|
36
|
+
def create(
|
|
37
|
+
primary_profile_sid: nil
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
data = Twilio::Values.of({
|
|
41
|
+
'PrimaryProfileSid' => primary_profile_sid,
|
|
42
|
+
})
|
|
43
|
+
|
|
44
|
+
payload = @version.create('POST', @uri, data: data)
|
|
45
|
+
ComplianceInquiriesInstance.new(
|
|
46
|
+
@version,
|
|
47
|
+
payload,
|
|
48
|
+
)
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
# Provide a user friendly representation
|
|
55
|
+
def to_s
|
|
56
|
+
'#<Twilio.Trusthub.V1.ComplianceInquiriesList>'
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
class ComplianceInquiriesContext < InstanceContext
|
|
62
|
+
##
|
|
63
|
+
# Initialize the ComplianceInquiriesContext
|
|
64
|
+
# @param [Version] version Version that contains the resource
|
|
65
|
+
# @param [String] customer_id The unique CustomerId matching the Customer Profile/Compliance Inquiry that should be resumed or resubmitted. This value will have been returned by the initial Compliance Inquiry creation call.
|
|
66
|
+
# @return [ComplianceInquiriesContext] ComplianceInquiriesContext
|
|
67
|
+
def initialize(version, customer_id)
|
|
68
|
+
super(version)
|
|
69
|
+
|
|
70
|
+
# Path Solution
|
|
71
|
+
@solution = { customer_id: customer_id, }
|
|
72
|
+
@uri = "/ComplianceInquiries/Customers/#{@solution[:customer_id]}/Initialize"
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
end
|
|
76
|
+
##
|
|
77
|
+
# Update the ComplianceInquiriesInstance
|
|
78
|
+
# @param [String] primary_profile_sid The unique SID identifier of the Primary Customer Profile that should be used as a parent. Only necessary when creating a secondary Customer Profile.
|
|
79
|
+
# @return [ComplianceInquiriesInstance] Updated ComplianceInquiriesInstance
|
|
80
|
+
def update(
|
|
81
|
+
primary_profile_sid: nil
|
|
82
|
+
)
|
|
83
|
+
|
|
84
|
+
data = Twilio::Values.of({
|
|
85
|
+
'PrimaryProfileSid' => primary_profile_sid,
|
|
86
|
+
})
|
|
87
|
+
|
|
88
|
+
payload = @version.update('POST', @uri, data: data)
|
|
89
|
+
ComplianceInquiriesInstance.new(
|
|
90
|
+
@version,
|
|
91
|
+
payload,
|
|
92
|
+
customer_id: @solution[:customer_id],
|
|
93
|
+
)
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
##
|
|
98
|
+
# Provide a user friendly representation
|
|
99
|
+
def to_s
|
|
100
|
+
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
|
|
101
|
+
"#<Twilio.Trusthub.V1.ComplianceInquiriesContext #{context}>"
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
##
|
|
105
|
+
# Provide a detailed, user friendly representation
|
|
106
|
+
def inspect
|
|
107
|
+
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
|
|
108
|
+
"#<Twilio.Trusthub.V1.ComplianceInquiriesContext #{context}>"
|
|
109
|
+
end
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
class ComplianceInquiriesPage < Page
|
|
113
|
+
##
|
|
114
|
+
# Initialize the ComplianceInquiriesPage
|
|
115
|
+
# @param [Version] version Version that contains the resource
|
|
116
|
+
# @param [Response] response Response from the API
|
|
117
|
+
# @param [Hash] solution Path solution for the resource
|
|
118
|
+
# @return [ComplianceInquiriesPage] ComplianceInquiriesPage
|
|
119
|
+
def initialize(version, response, solution)
|
|
120
|
+
super(version, response)
|
|
121
|
+
|
|
122
|
+
# Path Solution
|
|
123
|
+
@solution = solution
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
##
|
|
127
|
+
# Build an instance of ComplianceInquiriesInstance
|
|
128
|
+
# @param [Hash] payload Payload response from the API
|
|
129
|
+
# @return [ComplianceInquiriesInstance] ComplianceInquiriesInstance
|
|
130
|
+
def get_instance(payload)
|
|
131
|
+
ComplianceInquiriesInstance.new(@version, payload)
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
##
|
|
135
|
+
# Provide a user friendly representation
|
|
136
|
+
def to_s
|
|
137
|
+
'<Twilio.Trusthub.V1.ComplianceInquiriesPage>'
|
|
138
|
+
end
|
|
139
|
+
end
|
|
140
|
+
class ComplianceInquiriesInstance < InstanceResource
|
|
141
|
+
##
|
|
142
|
+
# Initialize the ComplianceInquiriesInstance
|
|
143
|
+
# @param [Version] version Version that contains the resource
|
|
144
|
+
# @param [Hash] payload payload that contains response from Twilio
|
|
145
|
+
# @param [String] account_sid The SID of the
|
|
146
|
+
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this ComplianceInquiries
|
|
147
|
+
# resource.
|
|
148
|
+
# @param [String] sid The SID of the Call resource to fetch.
|
|
149
|
+
# @return [ComplianceInquiriesInstance] ComplianceInquiriesInstance
|
|
150
|
+
def initialize(version, payload , customer_id: nil)
|
|
151
|
+
super(version)
|
|
152
|
+
|
|
153
|
+
# Marshaled Properties
|
|
154
|
+
@properties = {
|
|
155
|
+
'inquiry_id' => payload['inquiry_id'],
|
|
156
|
+
'inquiry_session_token' => payload['inquiry_session_token'],
|
|
157
|
+
'customer_id' => payload['customer_id'],
|
|
158
|
+
'url' => payload['url'],
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
# Context
|
|
162
|
+
@instance_context = nil
|
|
163
|
+
@params = { 'customer_id' => customer_id || @properties['customer_id'] , }
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
##
|
|
167
|
+
# Generate an instance context for the instance, the context is capable of
|
|
168
|
+
# performing various actions. All instance actions are proxied to the context
|
|
169
|
+
# @return [ComplianceInquiriesContext] CallContext for this CallInstance
|
|
170
|
+
def context
|
|
171
|
+
unless @instance_context
|
|
172
|
+
@instance_context = ComplianceInquiriesContext.new(@version , @params['customer_id'])
|
|
173
|
+
end
|
|
174
|
+
@instance_context
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
##
|
|
178
|
+
# @return [String] The unique ID used to start an embedded compliance registration session.
|
|
179
|
+
def inquiry_id
|
|
180
|
+
@properties['inquiry_id']
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
##
|
|
184
|
+
# @return [String] The session token used to start an embedded compliance registration session.
|
|
185
|
+
def inquiry_session_token
|
|
186
|
+
@properties['inquiry_session_token']
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
##
|
|
190
|
+
# @return [String] The CustomerID matching the Customer Profile that should be resumed or resubmitted for editing.
|
|
191
|
+
def customer_id
|
|
192
|
+
@properties['customer_id']
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
##
|
|
196
|
+
# @return [String] The URL of this resource.
|
|
197
|
+
def url
|
|
198
|
+
@properties['url']
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
##
|
|
202
|
+
# Update the ComplianceInquiriesInstance
|
|
203
|
+
# @param [String] primary_profile_sid The unique SID identifier of the Primary Customer Profile that should be used as a parent. Only necessary when creating a secondary Customer Profile.
|
|
204
|
+
# @return [ComplianceInquiriesInstance] Updated ComplianceInquiriesInstance
|
|
205
|
+
def update(
|
|
206
|
+
primary_profile_sid: nil
|
|
207
|
+
)
|
|
208
|
+
|
|
209
|
+
context.update(
|
|
210
|
+
primary_profile_sid: primary_profile_sid,
|
|
211
|
+
)
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
##
|
|
215
|
+
# Provide a user friendly representation
|
|
216
|
+
def to_s
|
|
217
|
+
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
|
|
218
|
+
"<Twilio.Trusthub.V1.ComplianceInquiriesInstance #{values}>"
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
##
|
|
222
|
+
# Provide a detailed, user friendly representation
|
|
223
|
+
def inspect
|
|
224
|
+
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
|
|
225
|
+
"<Twilio.Trusthub.V1.ComplianceInquiriesInstance #{values}>"
|
|
226
|
+
end
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
end
|
|
230
|
+
end
|
|
231
|
+
end
|
|
232
|
+
end
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
##
|
|
2
|
+
# This code was generated by
|
|
3
|
+
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
|
4
|
+
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
|
5
|
+
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
6
|
+
#
|
|
7
|
+
# Twilio - Trusthub
|
|
8
|
+
# This is the public Twilio REST API.
|
|
9
|
+
#
|
|
10
|
+
# NOTE: This class is auto generated by OpenAPI Generator.
|
|
11
|
+
# https://openapi-generator.tech
|
|
12
|
+
# Do not edit the class manually.
|
|
13
|
+
#
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
module Twilio
|
|
17
|
+
module REST
|
|
18
|
+
class Trusthub < TrusthubBase
|
|
19
|
+
class V1 < Version
|
|
20
|
+
class ComplianceTollfreeInquiriesList < ListResource
|
|
21
|
+
##
|
|
22
|
+
# Initialize the ComplianceTollfreeInquiriesList
|
|
23
|
+
# @param [Version] version Version that contains the resource
|
|
24
|
+
# @return [ComplianceTollfreeInquiriesList] ComplianceTollfreeInquiriesList
|
|
25
|
+
def initialize(version)
|
|
26
|
+
super(version)
|
|
27
|
+
# Path Solution
|
|
28
|
+
@solution = { }
|
|
29
|
+
@uri = "/ComplianceInquiries/Tollfree/Initialize"
|
|
30
|
+
|
|
31
|
+
end
|
|
32
|
+
##
|
|
33
|
+
# Create the ComplianceTollfreeInquiriesInstance
|
|
34
|
+
# @param [String] tollfree_phone_number The Tollfree phone number to be verified
|
|
35
|
+
# @param [String] notification_email The notification email to be triggered when verification status is changed
|
|
36
|
+
# @return [ComplianceTollfreeInquiriesInstance] Created ComplianceTollfreeInquiriesInstance
|
|
37
|
+
def create(
|
|
38
|
+
tollfree_phone_number: nil,
|
|
39
|
+
notification_email: nil
|
|
40
|
+
)
|
|
41
|
+
|
|
42
|
+
data = Twilio::Values.of({
|
|
43
|
+
'TollfreePhoneNumber' => tollfree_phone_number,
|
|
44
|
+
'NotificationEmail' => notification_email,
|
|
45
|
+
})
|
|
46
|
+
|
|
47
|
+
payload = @version.create('POST', @uri, data: data)
|
|
48
|
+
ComplianceTollfreeInquiriesInstance.new(
|
|
49
|
+
@version,
|
|
50
|
+
payload,
|
|
51
|
+
)
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
# Provide a user friendly representation
|
|
58
|
+
def to_s
|
|
59
|
+
'#<Twilio.Trusthub.V1.ComplianceTollfreeInquiriesList>'
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
class ComplianceTollfreeInquiriesPage < Page
|
|
64
|
+
##
|
|
65
|
+
# Initialize the ComplianceTollfreeInquiriesPage
|
|
66
|
+
# @param [Version] version Version that contains the resource
|
|
67
|
+
# @param [Response] response Response from the API
|
|
68
|
+
# @param [Hash] solution Path solution for the resource
|
|
69
|
+
# @return [ComplianceTollfreeInquiriesPage] ComplianceTollfreeInquiriesPage
|
|
70
|
+
def initialize(version, response, solution)
|
|
71
|
+
super(version, response)
|
|
72
|
+
|
|
73
|
+
# Path Solution
|
|
74
|
+
@solution = solution
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
##
|
|
78
|
+
# Build an instance of ComplianceTollfreeInquiriesInstance
|
|
79
|
+
# @param [Hash] payload Payload response from the API
|
|
80
|
+
# @return [ComplianceTollfreeInquiriesInstance] ComplianceTollfreeInquiriesInstance
|
|
81
|
+
def get_instance(payload)
|
|
82
|
+
ComplianceTollfreeInquiriesInstance.new(@version, payload)
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
##
|
|
86
|
+
# Provide a user friendly representation
|
|
87
|
+
def to_s
|
|
88
|
+
'<Twilio.Trusthub.V1.ComplianceTollfreeInquiriesPage>'
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
class ComplianceTollfreeInquiriesInstance < InstanceResource
|
|
92
|
+
##
|
|
93
|
+
# Initialize the ComplianceTollfreeInquiriesInstance
|
|
94
|
+
# @param [Version] version Version that contains the resource
|
|
95
|
+
# @param [Hash] payload payload that contains response from Twilio
|
|
96
|
+
# @param [String] account_sid The SID of the
|
|
97
|
+
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this ComplianceTollfreeInquiries
|
|
98
|
+
# resource.
|
|
99
|
+
# @param [String] sid The SID of the Call resource to fetch.
|
|
100
|
+
# @return [ComplianceTollfreeInquiriesInstance] ComplianceTollfreeInquiriesInstance
|
|
101
|
+
def initialize(version, payload )
|
|
102
|
+
super(version)
|
|
103
|
+
|
|
104
|
+
# Marshaled Properties
|
|
105
|
+
@properties = {
|
|
106
|
+
'inquiry_id' => payload['inquiry_id'],
|
|
107
|
+
'inquiry_session_token' => payload['inquiry_session_token'],
|
|
108
|
+
'registration_id' => payload['registration_id'],
|
|
109
|
+
'url' => payload['url'],
|
|
110
|
+
}
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
##
|
|
115
|
+
# @return [String] The unique ID used to start an embedded compliance registration session.
|
|
116
|
+
def inquiry_id
|
|
117
|
+
@properties['inquiry_id']
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
##
|
|
121
|
+
# @return [String] The session token used to start an embedded compliance registration session.
|
|
122
|
+
def inquiry_session_token
|
|
123
|
+
@properties['inquiry_session_token']
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
##
|
|
127
|
+
# @return [String] The TolfreeId matching the Tollfree Profile that should be resumed or resubmitted for editing.
|
|
128
|
+
def registration_id
|
|
129
|
+
@properties['registration_id']
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
##
|
|
133
|
+
# @return [String] The URL of this resource.
|
|
134
|
+
def url
|
|
135
|
+
@properties['url']
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
##
|
|
139
|
+
# Provide a user friendly representation
|
|
140
|
+
def to_s
|
|
141
|
+
"<Twilio.Trusthub.V1.ComplianceTollfreeInquiriesInstance>"
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
##
|
|
145
|
+
# Provide a detailed, user friendly representation
|
|
146
|
+
def inspect
|
|
147
|
+
"<Twilio.Trusthub.V1.ComplianceTollfreeInquiriesInstance>"
|
|
148
|
+
end
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
end
|
|
152
|
+
end
|
|
153
|
+
end
|
|
154
|
+
end
|
|
@@ -126,11 +126,8 @@ module Twilio
|
|
|
126
126
|
# @return [Page] Page of CustomerProfilesChannelEndpointAssignmentInstance
|
|
127
127
|
def page(channel_endpoint_sid: :unset, channel_endpoint_sids: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
|
128
128
|
params = Twilio::Values.of({
|
|
129
|
-
|
|
130
129
|
'ChannelEndpointSid' => channel_endpoint_sid,
|
|
131
|
-
|
|
132
130
|
'ChannelEndpointSids' => channel_endpoint_sids,
|
|
133
|
-
|
|
134
131
|
'PageToken' => page_token,
|
|
135
132
|
'Page' => page_number,
|
|
136
133
|
'PageSize' => page_size,
|
data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb
CHANGED
|
@@ -113,7 +113,6 @@ module Twilio
|
|
|
113
113
|
# @return [Page] Page of CustomerProfilesEntityAssignmentsInstance
|
|
114
114
|
def page(page_token: :unset, page_number: :unset, page_size: :unset)
|
|
115
115
|
params = Twilio::Values.of({
|
|
116
|
-
|
|
117
116
|
'PageToken' => page_token,
|
|
118
117
|
'Page' => page_number,
|
|
119
118
|
'PageSize' => page_size,
|
|
@@ -113,7 +113,6 @@ module Twilio
|
|
|
113
113
|
# @return [Page] Page of CustomerProfilesEvaluationsInstance
|
|
114
114
|
def page(page_token: :unset, page_number: :unset, page_size: :unset)
|
|
115
115
|
params = Twilio::Values.of({
|
|
116
|
-
|
|
117
116
|
'PageToken' => page_token,
|
|
118
117
|
'Page' => page_number,
|
|
119
118
|
'PageSize' => page_size,
|
|
@@ -134,13 +134,9 @@ module Twilio
|
|
|
134
134
|
# @return [Page] Page of CustomerProfilesInstance
|
|
135
135
|
def page(status: :unset, friendly_name: :unset, policy_sid: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
|
136
136
|
params = Twilio::Values.of({
|
|
137
|
-
|
|
138
137
|
'Status' => status,
|
|
139
|
-
|
|
140
138
|
'FriendlyName' => friendly_name,
|
|
141
|
-
|
|
142
139
|
'PolicySid' => policy_sid,
|
|
143
|
-
|
|
144
140
|
'PageToken' => page_token,
|
|
145
141
|
'Page' => page_number,
|
|
146
142
|
'PageSize' => page_size,
|
|
@@ -116,7 +116,6 @@ module Twilio
|
|
|
116
116
|
# @return [Page] Page of EndUserInstance
|
|
117
117
|
def page(page_token: :unset, page_number: :unset, page_size: :unset)
|
|
118
118
|
params = Twilio::Values.of({
|
|
119
|
-
|
|
120
119
|
'PageToken' => page_token,
|
|
121
120
|
'Page' => page_number,
|
|
122
121
|
'PageSize' => page_size,
|
|
@@ -116,7 +116,6 @@ module Twilio
|
|
|
116
116
|
# @return [Page] Page of SupportingDocumentInstance
|
|
117
117
|
def page(page_token: :unset, page_number: :unset, page_size: :unset)
|
|
118
118
|
params = Twilio::Values.of({
|
|
119
|
-
|
|
120
119
|
'PageToken' => page_token,
|
|
121
120
|
'Page' => page_number,
|
|
122
121
|
'PageSize' => page_size,
|
|
@@ -91,7 +91,6 @@ module Twilio
|
|
|
91
91
|
# @return [Page] Page of SupportingDocumentTypeInstance
|
|
92
92
|
def page(page_token: :unset, page_number: :unset, page_size: :unset)
|
|
93
93
|
params = Twilio::Values.of({
|
|
94
|
-
|
|
95
94
|
'PageToken' => page_token,
|
|
96
95
|
'Page' => page_number,
|
|
97
96
|
'PageSize' => page_size,
|
data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment.rb
CHANGED
|
@@ -126,11 +126,8 @@ module Twilio
|
|
|
126
126
|
# @return [Page] Page of TrustProductsChannelEndpointAssignmentInstance
|
|
127
127
|
def page(channel_endpoint_sid: :unset, channel_endpoint_sids: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
|
128
128
|
params = Twilio::Values.of({
|
|
129
|
-
|
|
130
129
|
'ChannelEndpointSid' => channel_endpoint_sid,
|
|
131
|
-
|
|
132
130
|
'ChannelEndpointSids' => channel_endpoint_sids,
|
|
133
|
-
|
|
134
131
|
'PageToken' => page_token,
|
|
135
132
|
'Page' => page_number,
|
|
136
133
|
'PageSize' => page_size,
|
|
@@ -113,7 +113,6 @@ module Twilio
|
|
|
113
113
|
# @return [Page] Page of TrustProductsEntityAssignmentsInstance
|
|
114
114
|
def page(page_token: :unset, page_number: :unset, page_size: :unset)
|
|
115
115
|
params = Twilio::Values.of({
|
|
116
|
-
|
|
117
116
|
'PageToken' => page_token,
|
|
118
117
|
'Page' => page_number,
|
|
119
118
|
'PageSize' => page_size,
|
|
@@ -113,7 +113,6 @@ module Twilio
|
|
|
113
113
|
# @return [Page] Page of TrustProductsEvaluationsInstance
|
|
114
114
|
def page(page_token: :unset, page_number: :unset, page_size: :unset)
|
|
115
115
|
params = Twilio::Values.of({
|
|
116
|
-
|
|
117
116
|
'PageToken' => page_token,
|
|
118
117
|
'Page' => page_number,
|
|
119
118
|
'PageSize' => page_size,
|
|
@@ -134,13 +134,9 @@ module Twilio
|
|
|
134
134
|
# @return [Page] Page of TrustProductsInstance
|
|
135
135
|
def page(status: :unset, friendly_name: :unset, policy_sid: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
|
136
136
|
params = Twilio::Values.of({
|
|
137
|
-
|
|
138
137
|
'Status' => status,
|
|
139
|
-
|
|
140
138
|
'FriendlyName' => friendly_name,
|
|
141
|
-
|
|
142
139
|
'PolicySid' => policy_sid,
|
|
143
|
-
|
|
144
140
|
'PageToken' => page_token,
|
|
145
141
|
'Page' => page_number,
|
|
146
142
|
'PageSize' => page_size,
|
|
@@ -21,6 +21,8 @@ module Twilio
|
|
|
21
21
|
def initialize(domain)
|
|
22
22
|
super
|
|
23
23
|
@version = 'v1'
|
|
24
|
+
@compliance_inquiries = nil
|
|
25
|
+
@compliance_tollfree_inquiries = nil
|
|
24
26
|
@customer_profiles = nil
|
|
25
27
|
@end_users = nil
|
|
26
28
|
@end_user_types = nil
|
|
@@ -30,6 +32,25 @@ module Twilio
|
|
|
30
32
|
@trust_products = nil
|
|
31
33
|
end
|
|
32
34
|
|
|
35
|
+
##
|
|
36
|
+
# @param [String] customer_id The unique CustomerId matching the Customer Profile/Compliance Inquiry that should be resumed or resubmitted. This value will have been returned by the initial Compliance Inquiry creation call.
|
|
37
|
+
# @return [Twilio::REST::Trusthub::V1::ComplianceInquiriesContext] if customerId was passed.
|
|
38
|
+
# @return [Twilio::REST::Trusthub::V1::ComplianceInquiriesList]
|
|
39
|
+
def compliance_inquiries(customer_id=:unset)
|
|
40
|
+
if customer_id.nil?
|
|
41
|
+
raise ArgumentError, 'customer_id cannot be nil'
|
|
42
|
+
end
|
|
43
|
+
if customer_id == :unset
|
|
44
|
+
@compliance_inquiries ||= ComplianceInquiriesList.new self
|
|
45
|
+
else
|
|
46
|
+
ComplianceInquiriesContext.new(self, customer_id)
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
##
|
|
50
|
+
# @return [Twilio::REST::Trusthub::V1::ComplianceTollfreeInquiriesList]
|
|
51
|
+
def compliance_tollfree_inquiries
|
|
52
|
+
@compliance_tollfree_inquiries ||= ComplianceTollfreeInquiriesList.new self
|
|
53
|
+
end
|
|
33
54
|
##
|
|
34
55
|
# @param [String] sid The unique string that we created to identify the Customer-Profile resource.
|
|
35
56
|
# @return [Twilio::REST::Trusthub::V1::CustomerProfilesContext] if sid was passed.
|
|
@@ -145,13 +145,9 @@ module Twilio
|
|
|
145
145
|
# @return [Page] Page of ChallengeInstance
|
|
146
146
|
def page(factor_sid: :unset, status: :unset, order: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
|
147
147
|
params = Twilio::Values.of({
|
|
148
|
-
|
|
149
148
|
'FactorSid' => factor_sid,
|
|
150
|
-
|
|
151
149
|
'Status' => status,
|
|
152
|
-
|
|
153
150
|
'Order' => order,
|
|
154
|
-
|
|
155
151
|
'PageToken' => page_token,
|
|
156
152
|
'Page' => page_number,
|
|
157
153
|
'PageSize' => page_size,
|
|
@@ -249,7 +245,7 @@ module Twilio
|
|
|
249
245
|
def notifications
|
|
250
246
|
unless @notifications
|
|
251
247
|
@notifications = NotificationList.new(
|
|
252
|
-
@version, service_sid: @solution[:service_sid],
|
|
248
|
+
@version, service_sid: @solution[:service_sid], identity: @solution[:identity], challenge_sid: @solution[:sid], )
|
|
253
249
|
end
|
|
254
250
|
@notifications
|
|
255
251
|
end
|
|
@@ -113,7 +113,6 @@ module Twilio
|
|
|
113
113
|
# @return [Page] Page of EntityInstance
|
|
114
114
|
def page(page_token: :unset, page_number: :unset, page_size: :unset)
|
|
115
115
|
params = Twilio::Values.of({
|
|
116
|
-
|
|
117
116
|
'PageToken' => page_token,
|
|
118
117
|
'Page' => page_number,
|
|
119
118
|
'PageSize' => page_size,
|
|
@@ -194,7 +193,7 @@ module Twilio
|
|
|
194
193
|
def new_factors
|
|
195
194
|
unless @new_factors
|
|
196
195
|
@new_factors = NewFactorList.new(
|
|
197
|
-
@version, service_sid: @solution[:service_sid],
|
|
196
|
+
@version, service_sid: @solution[:service_sid], identity: @solution[:identity], )
|
|
198
197
|
end
|
|
199
198
|
@new_factors
|
|
200
199
|
end
|
|
@@ -212,7 +211,7 @@ module Twilio
|
|
|
212
211
|
|
|
213
212
|
unless @factors
|
|
214
213
|
@factors = FactorList.new(
|
|
215
|
-
@version, service_sid: @solution[:service_sid],
|
|
214
|
+
@version, service_sid: @solution[:service_sid], identity: @solution[:identity], )
|
|
216
215
|
end
|
|
217
216
|
|
|
218
217
|
@factors
|
|
@@ -231,7 +230,7 @@ module Twilio
|
|
|
231
230
|
|
|
232
231
|
unless @challenges
|
|
233
232
|
@challenges = ChallengeList.new(
|
|
234
|
-
@version, service_sid: @solution[:service_sid],
|
|
233
|
+
@version, service_sid: @solution[:service_sid], identity: @solution[:identity], )
|
|
235
234
|
end
|
|
236
235
|
|
|
237
236
|
@challenges
|