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,329 @@
|
|
|
1
|
+
##
|
|
2
|
+
# This code was generated by
|
|
3
|
+
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
|
4
|
+
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
|
5
|
+
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
6
|
+
#
|
|
7
|
+
# Twilio - Messaging
|
|
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 Messaging < MessagingBase
|
|
19
|
+
class V1 < Version
|
|
20
|
+
class ServiceContext < InstanceContext
|
|
21
|
+
|
|
22
|
+
class ChannelSenderList < ListResource
|
|
23
|
+
##
|
|
24
|
+
# Initialize the ChannelSenderList
|
|
25
|
+
# @param [Version] version Version that contains the resource
|
|
26
|
+
# @return [ChannelSenderList] ChannelSenderList
|
|
27
|
+
def initialize(version, messaging_service_sid: nil)
|
|
28
|
+
super(version)
|
|
29
|
+
# Path Solution
|
|
30
|
+
@solution = { messaging_service_sid: messaging_service_sid }
|
|
31
|
+
@uri = "/Services/#{@solution[:messaging_service_sid]}/ChannelSenders"
|
|
32
|
+
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
##
|
|
36
|
+
# Lists ChannelSenderInstance records from the API as a list.
|
|
37
|
+
# Unlike stream(), this operation is eager and will load `limit` records into
|
|
38
|
+
# memory before returning.
|
|
39
|
+
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
40
|
+
# guarantees to never return more than limit. Default is no limit
|
|
41
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
|
42
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
|
43
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
44
|
+
# efficient page size, i.e. min(limit, 1000)
|
|
45
|
+
# @return [Array] Array of up to limit results
|
|
46
|
+
def list(limit: nil, page_size: nil)
|
|
47
|
+
self.stream(
|
|
48
|
+
limit: limit,
|
|
49
|
+
page_size: page_size
|
|
50
|
+
).entries
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
##
|
|
54
|
+
# Streams Instance records from the API as an Enumerable.
|
|
55
|
+
# This operation lazily loads records as efficiently as possible until the limit
|
|
56
|
+
# is reached.
|
|
57
|
+
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
58
|
+
# guarantees to never return more than limit. Default is no limit
|
|
59
|
+
# @param [Integer] page_size Number of records to fetch per request, when
|
|
60
|
+
# not set will use the default value of 50 records. If no page_size is defined
|
|
61
|
+
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
62
|
+
# efficient page size, i.e. min(limit, 1000)
|
|
63
|
+
# @return [Enumerable] Enumerable that will yield up to limit results
|
|
64
|
+
def stream(limit: nil, page_size: nil)
|
|
65
|
+
limits = @version.read_limits(limit, page_size)
|
|
66
|
+
|
|
67
|
+
page = self.page(
|
|
68
|
+
page_size: limits[:page_size], )
|
|
69
|
+
|
|
70
|
+
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
##
|
|
74
|
+
# When passed a block, yields ChannelSenderInstance records from the API.
|
|
75
|
+
# This operation lazily loads records as efficiently as possible until the limit
|
|
76
|
+
# is reached.
|
|
77
|
+
def each
|
|
78
|
+
limits = @version.read_limits
|
|
79
|
+
|
|
80
|
+
page = self.page(page_size: limits[:page_size], )
|
|
81
|
+
|
|
82
|
+
@version.stream(page,
|
|
83
|
+
limit: limits[:limit],
|
|
84
|
+
page_limit: limits[:page_limit]).each {|x| yield x}
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
##
|
|
88
|
+
# Retrieve a single page of ChannelSenderInstance records from the API.
|
|
89
|
+
# Request is executed immediately.
|
|
90
|
+
# @param [String] page_token PageToken provided by the API
|
|
91
|
+
# @param [Integer] page_number Page Number, this value is simply for client state
|
|
92
|
+
# @param [Integer] page_size Number of records to return, defaults to 50
|
|
93
|
+
# @return [Page] Page of ChannelSenderInstance
|
|
94
|
+
def page(page_token: :unset, page_number: :unset, page_size: :unset)
|
|
95
|
+
params = Twilio::Values.of({
|
|
96
|
+
'PageToken' => page_token,
|
|
97
|
+
'Page' => page_number,
|
|
98
|
+
'PageSize' => page_size,
|
|
99
|
+
})
|
|
100
|
+
|
|
101
|
+
response = @version.page('GET', @uri, params: params)
|
|
102
|
+
|
|
103
|
+
ChannelSenderPage.new(@version, response, @solution)
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
##
|
|
107
|
+
# Retrieve a single page of ChannelSenderInstance records from the API.
|
|
108
|
+
# Request is executed immediately.
|
|
109
|
+
# @param [String] target_url API-generated URL for the requested results page
|
|
110
|
+
# @return [Page] Page of ChannelSenderInstance
|
|
111
|
+
def get_page(target_url)
|
|
112
|
+
response = @version.domain.request(
|
|
113
|
+
'GET',
|
|
114
|
+
target_url
|
|
115
|
+
)
|
|
116
|
+
ChannelSenderPage.new(@version, response, @solution)
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
# Provide a user friendly representation
|
|
122
|
+
def to_s
|
|
123
|
+
'#<Twilio.Messaging.V1.ChannelSenderList>'
|
|
124
|
+
end
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
##
|
|
129
|
+
#PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
|
130
|
+
class ChannelSenderContext < InstanceContext
|
|
131
|
+
##
|
|
132
|
+
# Initialize the ChannelSenderContext
|
|
133
|
+
# @param [Version] version Version that contains the resource
|
|
134
|
+
# @param [String] messaging_service_sid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the resource from.
|
|
135
|
+
# @param [String] sid The SID of the ChannelSender resource to fetch.
|
|
136
|
+
# @return [ChannelSenderContext] ChannelSenderContext
|
|
137
|
+
def initialize(version, messaging_service_sid, sid)
|
|
138
|
+
super(version)
|
|
139
|
+
|
|
140
|
+
# Path Solution
|
|
141
|
+
@solution = { messaging_service_sid: messaging_service_sid, sid: sid, }
|
|
142
|
+
@uri = "/Services/#{@solution[:messaging_service_sid]}/ChannelSenders/#{@solution[:sid]}"
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
end
|
|
146
|
+
##
|
|
147
|
+
# Fetch the ChannelSenderInstance
|
|
148
|
+
# @return [ChannelSenderInstance] Fetched ChannelSenderInstance
|
|
149
|
+
def fetch
|
|
150
|
+
|
|
151
|
+
payload = @version.fetch('GET', @uri)
|
|
152
|
+
ChannelSenderInstance.new(
|
|
153
|
+
@version,
|
|
154
|
+
payload,
|
|
155
|
+
messaging_service_sid: @solution[:messaging_service_sid],
|
|
156
|
+
sid: @solution[:sid],
|
|
157
|
+
)
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
##
|
|
162
|
+
# Provide a user friendly representation
|
|
163
|
+
def to_s
|
|
164
|
+
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
|
|
165
|
+
"#<Twilio.Messaging.V1.ChannelSenderContext #{context}>"
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
##
|
|
169
|
+
# Provide a detailed, user friendly representation
|
|
170
|
+
def inspect
|
|
171
|
+
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
|
|
172
|
+
"#<Twilio.Messaging.V1.ChannelSenderContext #{context}>"
|
|
173
|
+
end
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
class ChannelSenderPage < Page
|
|
177
|
+
##
|
|
178
|
+
# Initialize the ChannelSenderPage
|
|
179
|
+
# @param [Version] version Version that contains the resource
|
|
180
|
+
# @param [Response] response Response from the API
|
|
181
|
+
# @param [Hash] solution Path solution for the resource
|
|
182
|
+
# @return [ChannelSenderPage] ChannelSenderPage
|
|
183
|
+
def initialize(version, response, solution)
|
|
184
|
+
super(version, response)
|
|
185
|
+
|
|
186
|
+
# Path Solution
|
|
187
|
+
@solution = solution
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
##
|
|
191
|
+
# Build an instance of ChannelSenderInstance
|
|
192
|
+
# @param [Hash] payload Payload response from the API
|
|
193
|
+
# @return [ChannelSenderInstance] ChannelSenderInstance
|
|
194
|
+
def get_instance(payload)
|
|
195
|
+
ChannelSenderInstance.new(@version, payload, messaging_service_sid: @solution[:messaging_service_sid])
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
##
|
|
199
|
+
# Provide a user friendly representation
|
|
200
|
+
def to_s
|
|
201
|
+
'<Twilio.Messaging.V1.ChannelSenderPage>'
|
|
202
|
+
end
|
|
203
|
+
end
|
|
204
|
+
class ChannelSenderInstance < InstanceResource
|
|
205
|
+
##
|
|
206
|
+
# Initialize the ChannelSenderInstance
|
|
207
|
+
# @param [Version] version Version that contains the resource
|
|
208
|
+
# @param [Hash] payload payload that contains response from Twilio
|
|
209
|
+
# @param [String] account_sid The SID of the
|
|
210
|
+
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this ChannelSender
|
|
211
|
+
# resource.
|
|
212
|
+
# @param [String] sid The SID of the Call resource to fetch.
|
|
213
|
+
# @return [ChannelSenderInstance] ChannelSenderInstance
|
|
214
|
+
def initialize(version, payload , messaging_service_sid: nil, sid: nil)
|
|
215
|
+
super(version)
|
|
216
|
+
|
|
217
|
+
# Marshaled Properties
|
|
218
|
+
@properties = {
|
|
219
|
+
'account_sid' => payload['account_sid'],
|
|
220
|
+
'messaging_service_sid' => payload['messaging_service_sid'],
|
|
221
|
+
'sid' => payload['sid'],
|
|
222
|
+
'sender' => payload['sender'],
|
|
223
|
+
'sender_type' => payload['sender_type'],
|
|
224
|
+
'country_code' => payload['country_code'],
|
|
225
|
+
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
|
226
|
+
'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
|
|
227
|
+
'url' => payload['url'],
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
# Context
|
|
231
|
+
@instance_context = nil
|
|
232
|
+
@params = { 'messaging_service_sid' => messaging_service_sid || @properties['messaging_service_sid'] ,'sid' => sid || @properties['sid'] , }
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
##
|
|
236
|
+
# Generate an instance context for the instance, the context is capable of
|
|
237
|
+
# performing various actions. All instance actions are proxied to the context
|
|
238
|
+
# @return [ChannelSenderContext] CallContext for this CallInstance
|
|
239
|
+
def context
|
|
240
|
+
unless @instance_context
|
|
241
|
+
@instance_context = ChannelSenderContext.new(@version , @params['messaging_service_sid'], @params['sid'])
|
|
242
|
+
end
|
|
243
|
+
@instance_context
|
|
244
|
+
end
|
|
245
|
+
|
|
246
|
+
##
|
|
247
|
+
# @return [String] The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ChannelSender resource.
|
|
248
|
+
def account_sid
|
|
249
|
+
@properties['account_sid']
|
|
250
|
+
end
|
|
251
|
+
|
|
252
|
+
##
|
|
253
|
+
# @return [String] The SID of the [Service](https://www.twilio.com/docs/messaging/services) the resource is associated with.
|
|
254
|
+
def messaging_service_sid
|
|
255
|
+
@properties['messaging_service_sid']
|
|
256
|
+
end
|
|
257
|
+
|
|
258
|
+
##
|
|
259
|
+
# @return [String] The unique string that we created to identify the ChannelSender resource.
|
|
260
|
+
def sid
|
|
261
|
+
@properties['sid']
|
|
262
|
+
end
|
|
263
|
+
|
|
264
|
+
##
|
|
265
|
+
# @return [String] The unique string that identifies the sender e.g whatsapp:+123456XXXX.
|
|
266
|
+
def sender
|
|
267
|
+
@properties['sender']
|
|
268
|
+
end
|
|
269
|
+
|
|
270
|
+
##
|
|
271
|
+
# @return [String] A string value that identifies the sender type e.g WhatsApp, Messenger.
|
|
272
|
+
def sender_type
|
|
273
|
+
@properties['sender_type']
|
|
274
|
+
end
|
|
275
|
+
|
|
276
|
+
##
|
|
277
|
+
# @return [String] The 2-character [ISO Country Code](https://www.iso.org/iso-3166-country-codes.html) of the number.
|
|
278
|
+
def country_code
|
|
279
|
+
@properties['country_code']
|
|
280
|
+
end
|
|
281
|
+
|
|
282
|
+
##
|
|
283
|
+
# @return [Time] The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
|
284
|
+
def date_created
|
|
285
|
+
@properties['date_created']
|
|
286
|
+
end
|
|
287
|
+
|
|
288
|
+
##
|
|
289
|
+
# @return [Time] The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
|
290
|
+
def date_updated
|
|
291
|
+
@properties['date_updated']
|
|
292
|
+
end
|
|
293
|
+
|
|
294
|
+
##
|
|
295
|
+
# @return [String] The absolute URL of the ChannelSender resource.
|
|
296
|
+
def url
|
|
297
|
+
@properties['url']
|
|
298
|
+
end
|
|
299
|
+
|
|
300
|
+
##
|
|
301
|
+
# Fetch the ChannelSenderInstance
|
|
302
|
+
# @return [ChannelSenderInstance] Fetched ChannelSenderInstance
|
|
303
|
+
def fetch
|
|
304
|
+
|
|
305
|
+
context.fetch
|
|
306
|
+
end
|
|
307
|
+
|
|
308
|
+
##
|
|
309
|
+
# Provide a user friendly representation
|
|
310
|
+
def to_s
|
|
311
|
+
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
|
|
312
|
+
"<Twilio.Messaging.V1.ChannelSenderInstance #{values}>"
|
|
313
|
+
end
|
|
314
|
+
|
|
315
|
+
##
|
|
316
|
+
# Provide a detailed, user friendly representation
|
|
317
|
+
def inspect
|
|
318
|
+
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
|
|
319
|
+
"<Twilio.Messaging.V1.ChannelSenderInstance #{values}>"
|
|
320
|
+
end
|
|
321
|
+
end
|
|
322
|
+
|
|
323
|
+
end
|
|
324
|
+
end
|
|
325
|
+
end
|
|
326
|
+
end
|
|
327
|
+
end
|
|
328
|
+
|
|
329
|
+
|
|
@@ -113,7 +113,6 @@ module Twilio
|
|
|
113
113
|
# @return [Page] Page of PhoneNumberInstance
|
|
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 ShortCodeInstance
|
|
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,
|
|
@@ -36,7 +36,7 @@ module Twilio
|
|
|
36
36
|
# @param [String] brand_registration_sid A2P Brand Registration SID
|
|
37
37
|
# @param [String] description A short description of what this SMS campaign does. Min length: 40 characters. Max length: 4096 characters.
|
|
38
38
|
# @param [String] message_flow Required for all Campaigns. Details around how a consumer opts-in to their campaign, therefore giving consent to receive their messages. If multiple opt-in methods can be used for the same campaign, they must all be listed. 40 character minimum. 2048 character maximum.
|
|
39
|
-
# @param [Array[String]] message_samples
|
|
39
|
+
# @param [Array[String]] message_samples An array of sample message strings, min two and max five. Min length for each sample: 20 chars. Max length for each sample: 1024 chars.
|
|
40
40
|
# @param [String] us_app_to_person_usecase A2P Campaign Use Case. Examples: [ 2FA, EMERGENCY, MARKETING..]
|
|
41
41
|
# @param [Boolean] has_embedded_links Indicates that this SMS campaign will send messages that contain links.
|
|
42
42
|
# @param [Boolean] has_embedded_phone Indicates that this SMS campaign will send messages that contain phone numbers.
|
|
@@ -149,7 +149,6 @@ module Twilio
|
|
|
149
149
|
# @return [Page] Page of UsAppToPersonInstance
|
|
150
150
|
def page(page_token: :unset, page_number: :unset, page_size: :unset)
|
|
151
151
|
params = Twilio::Values.of({
|
|
152
|
-
|
|
153
152
|
'PageToken' => page_token,
|
|
154
153
|
'Page' => page_number,
|
|
155
154
|
'PageSize' => page_size,
|
|
@@ -188,7 +187,7 @@ module Twilio
|
|
|
188
187
|
##
|
|
189
188
|
# Initialize the UsAppToPersonContext
|
|
190
189
|
# @param [Version] version Version that contains the resource
|
|
191
|
-
# @param [String] messaging_service_sid The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/
|
|
190
|
+
# @param [String] messaging_service_sid The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) to fetch the resource from.
|
|
192
191
|
# @param [String] sid The SID of the US A2P Compliance resource to fetch `QE2c6890da8086d771620e9b13fadeba0b`.
|
|
193
192
|
# @return [UsAppToPersonContext] UsAppToPersonContext
|
|
194
193
|
def initialize(version, messaging_service_sid, sid)
|
|
@@ -343,7 +342,7 @@ module Twilio
|
|
|
343
342
|
end
|
|
344
343
|
|
|
345
344
|
##
|
|
346
|
-
# @return [String] The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/
|
|
345
|
+
# @return [String] The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) that the resource is associated with.
|
|
347
346
|
def messaging_service_sid
|
|
348
347
|
@properties['messaging_service_sid']
|
|
349
348
|
end
|
|
@@ -355,7 +354,7 @@ module Twilio
|
|
|
355
354
|
end
|
|
356
355
|
|
|
357
356
|
##
|
|
358
|
-
# @return [Array<String>]
|
|
357
|
+
# @return [Array<String>] An array of sample message strings, min two and max five. Min length for each sample: 20 chars. Max length for each sample: 1024 chars.
|
|
359
358
|
def message_samples
|
|
360
359
|
@properties['message_samples']
|
|
361
360
|
end
|
|
@@ -37,15 +37,15 @@ module Twilio
|
|
|
37
37
|
# @param [String] fallback_url The URL that we call using `fallback_method` if an error occurs while retrieving or executing the TwiML from the Inbound Request URL. If the `use_inbound_webhook_on_number` field is enabled then the webhook url defined on the phone number will override the `fallback_url` defined for the Messaging Service.
|
|
38
38
|
# @param [String] fallback_method The HTTP method we should use to call `fallback_url`. Can be: `GET` or `POST`.
|
|
39
39
|
# @param [String] status_callback The URL we should call to [pass status updates](https://www.twilio.com/docs/sms/api/message-resource#message-status-values) about message delivery.
|
|
40
|
-
# @param [Boolean] sticky_sender Whether to enable [Sticky Sender](https://www.twilio.com/docs/
|
|
41
|
-
# @param [Boolean] mms_converter Whether to enable the [MMS Converter](https://www.twilio.com/docs/
|
|
42
|
-
# @param [Boolean] smart_encoding Whether to enable [Smart Encoding](https://www.twilio.com/docs/
|
|
40
|
+
# @param [Boolean] sticky_sender Whether to enable [Sticky Sender](https://www.twilio.com/docs/messaging/services#sticky-sender) on the Service instance.
|
|
41
|
+
# @param [Boolean] mms_converter Whether to enable the [MMS Converter](https://www.twilio.com/docs/messaging/services#mms-converter) for messages sent through the Service instance.
|
|
42
|
+
# @param [Boolean] smart_encoding Whether to enable [Smart Encoding](https://www.twilio.com/docs/messaging/services#smart-encoding) for messages sent through the Service instance.
|
|
43
43
|
# @param [ScanMessageContent] scan_message_content
|
|
44
|
-
# @param [Boolean] fallback_to_long_code
|
|
45
|
-
# @param [Boolean] area_code_geomatch Whether to enable [Area Code Geomatch](https://www.twilio.com/docs/
|
|
44
|
+
# @param [Boolean] fallback_to_long_code [OBSOLETE] Former feature used to fallback to long code sender after certain short code message failures.
|
|
45
|
+
# @param [Boolean] area_code_geomatch Whether to enable [Area Code Geomatch](https://www.twilio.com/docs/messaging/services#area-code-geomatch) on the Service Instance.
|
|
46
46
|
# @param [String] validity_period How long, in seconds, messages sent from the Service are valid. Can be an integer from `1` to `14,400`.
|
|
47
47
|
# @param [Boolean] synchronous_validation Reserved.
|
|
48
|
-
# @param [String] usecase A string that describes the scenario in which the Messaging Service will be used.
|
|
48
|
+
# @param [String] usecase A string that describes the scenario in which the Messaging Service will be used. Possible values are `notifications`, `marketing`, `verification`, `discussion`, `poll`, `undeclared`.
|
|
49
49
|
# @param [Boolean] use_inbound_webhook_on_number A boolean value that indicates either the webhook url configured on the phone number will be used or `inbound_request_url`/`fallback_url` url will be called when a message is received from the phone number. If this field is enabled then the webhook url defined on the phone number will override the `inbound_request_url`/`fallback_url` defined for the Messaging Service.
|
|
50
50
|
# @return [ServiceInstance] Created ServiceInstance
|
|
51
51
|
def create(
|
|
@@ -155,7 +155,6 @@ module Twilio
|
|
|
155
155
|
# @return [Page] Page of ServiceInstance
|
|
156
156
|
def page(page_token: :unset, page_number: :unset, page_size: :unset)
|
|
157
157
|
params = Twilio::Values.of({
|
|
158
|
-
|
|
159
158
|
'PageToken' => page_token,
|
|
160
159
|
'Page' => page_number,
|
|
161
160
|
'PageSize' => page_size,
|
|
@@ -205,10 +204,11 @@ module Twilio
|
|
|
205
204
|
|
|
206
205
|
# Dependents
|
|
207
206
|
@us_app_to_person_usecases = nil
|
|
208
|
-
@alpha_senders = nil
|
|
209
207
|
@short_codes = nil
|
|
210
208
|
@us_app_to_person = nil
|
|
211
209
|
@phone_numbers = nil
|
|
210
|
+
@alpha_senders = nil
|
|
211
|
+
@channel_senders = nil
|
|
212
212
|
end
|
|
213
213
|
##
|
|
214
214
|
# Delete the ServiceInstance
|
|
@@ -239,15 +239,15 @@ module Twilio
|
|
|
239
239
|
# @param [String] fallback_url The URL that we call using `fallback_method` if an error occurs while retrieving or executing the TwiML from the Inbound Request URL. If the `use_inbound_webhook_on_number` field is enabled then the webhook url defined on the phone number will override the `fallback_url` defined for the Messaging Service.
|
|
240
240
|
# @param [String] fallback_method The HTTP method we should use to call `fallback_url`. Can be: `GET` or `POST`.
|
|
241
241
|
# @param [String] status_callback The URL we should call to [pass status updates](https://www.twilio.com/docs/sms/api/message-resource#message-status-values) about message delivery.
|
|
242
|
-
# @param [Boolean] sticky_sender Whether to enable [Sticky Sender](https://www.twilio.com/docs/
|
|
243
|
-
# @param [Boolean] mms_converter Whether to enable the [MMS Converter](https://www.twilio.com/docs/
|
|
244
|
-
# @param [Boolean] smart_encoding Whether to enable [Smart Encoding](https://www.twilio.com/docs/
|
|
242
|
+
# @param [Boolean] sticky_sender Whether to enable [Sticky Sender](https://www.twilio.com/docs/messaging/services#sticky-sender) on the Service instance.
|
|
243
|
+
# @param [Boolean] mms_converter Whether to enable the [MMS Converter](https://www.twilio.com/docs/messaging/services#mms-converter) for messages sent through the Service instance.
|
|
244
|
+
# @param [Boolean] smart_encoding Whether to enable [Smart Encoding](https://www.twilio.com/docs/messaging/services#smart-encoding) for messages sent through the Service instance.
|
|
245
245
|
# @param [ScanMessageContent] scan_message_content
|
|
246
|
-
# @param [Boolean] fallback_to_long_code
|
|
247
|
-
# @param [Boolean] area_code_geomatch Whether to enable [Area Code Geomatch](https://www.twilio.com/docs/
|
|
246
|
+
# @param [Boolean] fallback_to_long_code [OBSOLETE] Former feature used to fallback to long code sender after certain short code message failures.
|
|
247
|
+
# @param [Boolean] area_code_geomatch Whether to enable [Area Code Geomatch](https://www.twilio.com/docs/messaging/services#area-code-geomatch) on the Service Instance.
|
|
248
248
|
# @param [String] validity_period How long, in seconds, messages sent from the Service are valid. Can be an integer from `1` to `14,400`.
|
|
249
249
|
# @param [Boolean] synchronous_validation Reserved.
|
|
250
|
-
# @param [String] usecase A string that describes the scenario in which the Messaging Service will be used.
|
|
250
|
+
# @param [String] usecase A string that describes the scenario in which the Messaging Service will be used. Possible values are `notifications`, `marketing`, `verification`, `discussion`, `poll`, `undeclared`.
|
|
251
251
|
# @param [Boolean] use_inbound_webhook_on_number A boolean value that indicates either the webhook url configured on the phone number will be used or `inbound_request_url`/`fallback_url` url will be called when a message is received from the phone number. If this field is enabled then the webhook url defined on the phone number will override the `inbound_request_url`/`fallback_url` defined for the Messaging Service.
|
|
252
252
|
# @return [ServiceInstance] Updated ServiceInstance
|
|
253
253
|
def update(
|
|
@@ -308,25 +308,6 @@ module Twilio
|
|
|
308
308
|
@us_app_to_person_usecases
|
|
309
309
|
end
|
|
310
310
|
##
|
|
311
|
-
# Access the alpha_senders
|
|
312
|
-
# @return [AlphaSenderList]
|
|
313
|
-
# @return [AlphaSenderContext] if sid was passed.
|
|
314
|
-
def alpha_senders(sid=:unset)
|
|
315
|
-
|
|
316
|
-
raise ArgumentError, 'sid cannot be nil' if sid.nil?
|
|
317
|
-
|
|
318
|
-
if sid != :unset
|
|
319
|
-
return AlphaSenderContext.new(@version, @solution[:sid],sid )
|
|
320
|
-
end
|
|
321
|
-
|
|
322
|
-
unless @alpha_senders
|
|
323
|
-
@alpha_senders = AlphaSenderList.new(
|
|
324
|
-
@version, service_sid: @solution[:sid], )
|
|
325
|
-
end
|
|
326
|
-
|
|
327
|
-
@alpha_senders
|
|
328
|
-
end
|
|
329
|
-
##
|
|
330
311
|
# Access the short_codes
|
|
331
312
|
# @return [ShortCodeList]
|
|
332
313
|
# @return [ShortCodeContext] if sid was passed.
|
|
@@ -383,6 +364,44 @@ module Twilio
|
|
|
383
364
|
|
|
384
365
|
@phone_numbers
|
|
385
366
|
end
|
|
367
|
+
##
|
|
368
|
+
# Access the alpha_senders
|
|
369
|
+
# @return [AlphaSenderList]
|
|
370
|
+
# @return [AlphaSenderContext] if sid was passed.
|
|
371
|
+
def alpha_senders(sid=:unset)
|
|
372
|
+
|
|
373
|
+
raise ArgumentError, 'sid cannot be nil' if sid.nil?
|
|
374
|
+
|
|
375
|
+
if sid != :unset
|
|
376
|
+
return AlphaSenderContext.new(@version, @solution[:sid],sid )
|
|
377
|
+
end
|
|
378
|
+
|
|
379
|
+
unless @alpha_senders
|
|
380
|
+
@alpha_senders = AlphaSenderList.new(
|
|
381
|
+
@version, service_sid: @solution[:sid], )
|
|
382
|
+
end
|
|
383
|
+
|
|
384
|
+
@alpha_senders
|
|
385
|
+
end
|
|
386
|
+
##
|
|
387
|
+
# Access the channel_senders
|
|
388
|
+
# @return [ChannelSenderList]
|
|
389
|
+
# @return [ChannelSenderContext] if sid was passed.
|
|
390
|
+
def channel_senders(sid=:unset)
|
|
391
|
+
|
|
392
|
+
raise ArgumentError, 'sid cannot be nil' if sid.nil?
|
|
393
|
+
|
|
394
|
+
if sid != :unset
|
|
395
|
+
return ChannelSenderContext.new(@version, @solution[:sid],sid )
|
|
396
|
+
end
|
|
397
|
+
|
|
398
|
+
unless @channel_senders
|
|
399
|
+
@channel_senders = ChannelSenderList.new(
|
|
400
|
+
@version, messaging_service_sid: @solution[:sid], )
|
|
401
|
+
end
|
|
402
|
+
|
|
403
|
+
@channel_senders
|
|
404
|
+
end
|
|
386
405
|
|
|
387
406
|
##
|
|
388
407
|
# Provide a user friendly representation
|
|
@@ -544,19 +563,19 @@ module Twilio
|
|
|
544
563
|
end
|
|
545
564
|
|
|
546
565
|
##
|
|
547
|
-
# @return [Boolean] Whether to enable [Sticky Sender](https://www.twilio.com/docs/
|
|
566
|
+
# @return [Boolean] Whether to enable [Sticky Sender](https://www.twilio.com/docs/messaging/services#sticky-sender) on the Service instance.
|
|
548
567
|
def sticky_sender
|
|
549
568
|
@properties['sticky_sender']
|
|
550
569
|
end
|
|
551
570
|
|
|
552
571
|
##
|
|
553
|
-
# @return [Boolean] Whether to enable the [MMS Converter](https://www.twilio.com/docs/
|
|
572
|
+
# @return [Boolean] Whether to enable the [MMS Converter](https://www.twilio.com/docs/messaging/services#mms-converter) for messages sent through the Service instance.
|
|
554
573
|
def mms_converter
|
|
555
574
|
@properties['mms_converter']
|
|
556
575
|
end
|
|
557
576
|
|
|
558
577
|
##
|
|
559
|
-
# @return [Boolean] Whether to enable [Smart Encoding](https://www.twilio.com/docs/
|
|
578
|
+
# @return [Boolean] Whether to enable [Smart Encoding](https://www.twilio.com/docs/messaging/services#smart-encoding) for messages sent through the Service instance.
|
|
560
579
|
def smart_encoding
|
|
561
580
|
@properties['smart_encoding']
|
|
562
581
|
end
|
|
@@ -568,13 +587,13 @@ module Twilio
|
|
|
568
587
|
end
|
|
569
588
|
|
|
570
589
|
##
|
|
571
|
-
# @return [Boolean]
|
|
590
|
+
# @return [Boolean] [OBSOLETE] Former feature used to fallback to long code sender after certain short code message failures.
|
|
572
591
|
def fallback_to_long_code
|
|
573
592
|
@properties['fallback_to_long_code']
|
|
574
593
|
end
|
|
575
594
|
|
|
576
595
|
##
|
|
577
|
-
# @return [Boolean] Whether to enable [Area Code Geomatch](https://www.twilio.com/docs/
|
|
596
|
+
# @return [Boolean] Whether to enable [Area Code Geomatch](https://www.twilio.com/docs/messaging/services#area-code-geomatch) on the Service Instance.
|
|
578
597
|
def area_code_geomatch
|
|
579
598
|
@properties['area_code_geomatch']
|
|
580
599
|
end
|
|
@@ -604,7 +623,7 @@ module Twilio
|
|
|
604
623
|
end
|
|
605
624
|
|
|
606
625
|
##
|
|
607
|
-
# @return [String] A string that describes the scenario in which the Messaging Service will be used.
|
|
626
|
+
# @return [String] A string that describes the scenario in which the Messaging Service will be used. Possible values are `notifications`, `marketing`, `verification`, `discussion`, `poll`, `undeclared`.
|
|
608
627
|
def usecase
|
|
609
628
|
@properties['usecase']
|
|
610
629
|
end
|
|
@@ -645,15 +664,15 @@ module Twilio
|
|
|
645
664
|
# @param [String] fallback_url The URL that we call using `fallback_method` if an error occurs while retrieving or executing the TwiML from the Inbound Request URL. If the `use_inbound_webhook_on_number` field is enabled then the webhook url defined on the phone number will override the `fallback_url` defined for the Messaging Service.
|
|
646
665
|
# @param [String] fallback_method The HTTP method we should use to call `fallback_url`. Can be: `GET` or `POST`.
|
|
647
666
|
# @param [String] status_callback The URL we should call to [pass status updates](https://www.twilio.com/docs/sms/api/message-resource#message-status-values) about message delivery.
|
|
648
|
-
# @param [Boolean] sticky_sender Whether to enable [Sticky Sender](https://www.twilio.com/docs/
|
|
649
|
-
# @param [Boolean] mms_converter Whether to enable the [MMS Converter](https://www.twilio.com/docs/
|
|
650
|
-
# @param [Boolean] smart_encoding Whether to enable [Smart Encoding](https://www.twilio.com/docs/
|
|
667
|
+
# @param [Boolean] sticky_sender Whether to enable [Sticky Sender](https://www.twilio.com/docs/messaging/services#sticky-sender) on the Service instance.
|
|
668
|
+
# @param [Boolean] mms_converter Whether to enable the [MMS Converter](https://www.twilio.com/docs/messaging/services#mms-converter) for messages sent through the Service instance.
|
|
669
|
+
# @param [Boolean] smart_encoding Whether to enable [Smart Encoding](https://www.twilio.com/docs/messaging/services#smart-encoding) for messages sent through the Service instance.
|
|
651
670
|
# @param [ScanMessageContent] scan_message_content
|
|
652
|
-
# @param [Boolean] fallback_to_long_code
|
|
653
|
-
# @param [Boolean] area_code_geomatch Whether to enable [Area Code Geomatch](https://www.twilio.com/docs/
|
|
671
|
+
# @param [Boolean] fallback_to_long_code [OBSOLETE] Former feature used to fallback to long code sender after certain short code message failures.
|
|
672
|
+
# @param [Boolean] area_code_geomatch Whether to enable [Area Code Geomatch](https://www.twilio.com/docs/messaging/services#area-code-geomatch) on the Service Instance.
|
|
654
673
|
# @param [String] validity_period How long, in seconds, messages sent from the Service are valid. Can be an integer from `1` to `14,400`.
|
|
655
674
|
# @param [Boolean] synchronous_validation Reserved.
|
|
656
|
-
# @param [String] usecase A string that describes the scenario in which the Messaging Service will be used.
|
|
675
|
+
# @param [String] usecase A string that describes the scenario in which the Messaging Service will be used. Possible values are `notifications`, `marketing`, `verification`, `discussion`, `poll`, `undeclared`.
|
|
657
676
|
# @param [Boolean] use_inbound_webhook_on_number A boolean value that indicates either the webhook url configured on the phone number will be used or `inbound_request_url`/`fallback_url` url will be called when a message is received from the phone number. If this field is enabled then the webhook url defined on the phone number will override the `inbound_request_url`/`fallback_url` defined for the Messaging Service.
|
|
658
677
|
# @return [ServiceInstance] Updated ServiceInstance
|
|
659
678
|
def update(
|
|
@@ -702,13 +721,6 @@ module Twilio
|
|
|
702
721
|
context.us_app_to_person_usecases
|
|
703
722
|
end
|
|
704
723
|
|
|
705
|
-
##
|
|
706
|
-
# Access the alpha_senders
|
|
707
|
-
# @return [alpha_senders] alpha_senders
|
|
708
|
-
def alpha_senders
|
|
709
|
-
context.alpha_senders
|
|
710
|
-
end
|
|
711
|
-
|
|
712
724
|
##
|
|
713
725
|
# Access the short_codes
|
|
714
726
|
# @return [short_codes] short_codes
|
|
@@ -730,6 +742,20 @@ module Twilio
|
|
|
730
742
|
context.phone_numbers
|
|
731
743
|
end
|
|
732
744
|
|
|
745
|
+
##
|
|
746
|
+
# Access the alpha_senders
|
|
747
|
+
# @return [alpha_senders] alpha_senders
|
|
748
|
+
def alpha_senders
|
|
749
|
+
context.alpha_senders
|
|
750
|
+
end
|
|
751
|
+
|
|
752
|
+
##
|
|
753
|
+
# Access the channel_senders
|
|
754
|
+
# @return [channel_senders] channel_senders
|
|
755
|
+
def channel_senders
|
|
756
|
+
context.channel_senders
|
|
757
|
+
end
|
|
758
|
+
|
|
733
759
|
##
|
|
734
760
|
# Provide a user friendly representation
|
|
735
761
|
def to_s
|