twilio-ruby 7.1.1 → 7.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +24 -0
- data/Makefile +3 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/base/client_base.rb +4 -1
- data/lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb +2 -1
- data/lib/twilio-ruby/rest/accounts/v1/credential/aws.rb +8 -4
- data/lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb +8 -4
- data/lib/twilio-ruby/rest/accounts/v1/safelist.rb +6 -3
- data/lib/twilio-ruby/rest/accounts/v1/secondary_auth_token.rb +4 -2
- data/lib/twilio-ruby/rest/api/v2010/account/address.rb +8 -4
- data/lib/twilio-ruby/rest/api/v2010/account/application.rb +8 -4
- data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +2 -1
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country.rb +2 -1
- data/lib/twilio-ruby/rest/api/v2010/account/balance.rb +2 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +2 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +4 -2
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +8 -4
- data/lib/twilio-ruby/rest/api/v2010/account/call/siprec.rb +4 -2
- data/lib/twilio-ruby/rest/api/v2010/account/call/stream.rb +4 -2
- data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message.rb +2 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message_subscription.rb +4 -2
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +9 -5
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +8 -4
- data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +6 -3
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +4 -2
- data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +6 -3
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +2 -1
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +6 -3
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +2 -1
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +2 -1
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +2 -1
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +8 -4
- data/lib/twilio-ruby/rest/api/v2010/account/key.rb +6 -3
- data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +2 -1
- data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +4 -2
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +8 -4
- data/lib/twilio-ruby/rest/api/v2010/account/new_key.rb +2 -1
- data/lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb +2 -1
- data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +2 -1
- data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +6 -3
- data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +4 -2
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +8 -4
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +4 -2
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +4 -2
- data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +4 -2
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +5 -3
- data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +4 -2
- data/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb +6 -3
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +8 -4
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +8 -4
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls/auth_calls_credential_list_mapping.rb +6 -3
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls/auth_calls_ip_access_control_list_mapping.rb +6 -3
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_registrations/auth_registrations_credential_list_mapping.rb +6 -3
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +6 -3
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +6 -3
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +8 -4
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +8 -4
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +8 -4
- data/lib/twilio-ruby/rest/api/v2010/account/token.rb +2 -1
- data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +4 -2
- data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +8 -4
- data/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb +2 -1
- data/lib/twilio-ruby/rest/api/v2010/account.rb +6 -3
- data/lib/twilio-ruby/rest/bulkexports/v1/export/day.rb +2 -1
- data/lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb +2 -1
- data/lib/twilio-ruby/rest/bulkexports/v1/export/job.rb +4 -2
- data/lib/twilio-ruby/rest/bulkexports/v1/export.rb +2 -1
- data/lib/twilio-ruby/rest/bulkexports/v1/export_configuration.rb +4 -2
- data/lib/twilio-ruby/rest/chat/v1/credential.rb +8 -4
- data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +6 -3
- data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +8 -4
- data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +8 -4
- data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +8 -4
- data/lib/twilio-ruby/rest/chat/v1/service/role.rb +8 -4
- data/lib/twilio-ruby/rest/chat/v1/service/user.rb +8 -4
- data/lib/twilio-ruby/rest/chat/v1/service.rb +8 -4
- data/lib/twilio-ruby/rest/chat/v2/credential.rb +8 -4
- data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +4 -2
- data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +6 -3
- data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +5 -4
- data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +5 -4
- data/lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb +8 -4
- data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +5 -4
- data/lib/twilio-ruby/rest/chat/v2/service/role.rb +8 -4
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +4 -2
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +5 -3
- data/lib/twilio-ruby/rest/chat/v2/service/user.rb +6 -4
- data/lib/twilio-ruby/rest/chat/v2/service.rb +8 -4
- data/lib/twilio-ruby/rest/chat/v3/channel.rb +1 -1
- data/lib/twilio-ruby/rest/content/v1/content/approval_create.rb +3 -2
- data/lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb +2 -1
- data/lib/twilio-ruby/rest/content/v1/content.rb +7 -4
- data/lib/twilio-ruby/rest/conversations/v1/address_configuration.rb +8 -4
- data/lib/twilio-ruby/rest/conversations/v1/configuration/webhook.rb +4 -2
- data/lib/twilio-ruby/rest/conversations/v1/configuration.rb +4 -2
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message/delivery_receipt.rb +2 -1
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +5 -4
- data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +5 -4
- data/lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb +8 -4
- data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +5 -4
- data/lib/twilio-ruby/rest/conversations/v1/credential.rb +8 -4
- data/lib/twilio-ruby/rest/conversations/v1/role.rb +8 -4
- data/lib/twilio-ruby/rest/conversations/v1/service/binding.rb +4 -2
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration/notification.rb +4 -2
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration/webhook.rb +4 -2
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration.rb +4 -2
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message/delivery_receipt.rb +2 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +5 -4
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/participant.rb +5 -4
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb +8 -4
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb +5 -4
- data/lib/twilio-ruby/rest/conversations/v1/service/role.rb +8 -4
- data/lib/twilio-ruby/rest/conversations/v1/service/user/user_conversation.rb +6 -3
- data/lib/twilio-ruby/rest/conversations/v1/service/user.rb +5 -4
- data/lib/twilio-ruby/rest/conversations/v1/service.rb +6 -3
- data/lib/twilio-ruby/rest/conversations/v1/user/user_conversation.rb +6 -3
- data/lib/twilio-ruby/rest/conversations/v1/user.rb +5 -4
- data/lib/twilio-ruby/rest/events/v1/event_type.rb +16 -1
- data/lib/twilio-ruby/rest/events/v1/schema/schema_version.rb +2 -1
- data/lib/twilio-ruby/rest/events/v1/schema.rb +2 -1
- data/lib/twilio-ruby/rest/events/v1/sink/sink_test.rb +2 -1
- data/lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb +2 -1
- data/lib/twilio-ruby/rest/events/v1/sink.rb +8 -4
- data/lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb +8 -4
- data/lib/twilio-ruby/rest/events/v1/subscription.rb +8 -4
- data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +2 -2
- data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +6 -3
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +5 -3
- data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +8 -4
- data/lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb +1 -1
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb +4 -4
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb +3 -3
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb +3 -3
- data/lib/twilio-ruby/rest/flex_api/v1/insights_session.rb +1 -1
- data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_answer_sets.rb +1 -1
- data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb +1 -1
- data/lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.rb +1 -1
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.rb +2 -1
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_participant.rb +4 -2
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel.rb +4 -2
- data/lib/twilio-ruby/rest/flex_api/v1/interaction.rb +4 -2
- data/lib/twilio-ruby/rest/flex_api/v1/plugin/plugin_versions.rb +2 -2
- data/lib/twilio-ruby/rest/flex_api/v1/plugin.rb +3 -3
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_archive.rb +1 -1
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration/configured_plugin.rb +1 -1
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration.rb +2 -2
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration_archive.rb +1 -1
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_release.rb +2 -2
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_version_archive.rb +1 -1
- data/lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb +2 -1
- data/lib/twilio-ruby/rest/flex_api/v1/web_channel.rb +8 -4
- data/lib/twilio-ruby/rest/flex_api/v2/flex_user.rb +2 -1
- data/lib/twilio-ruby/rest/flex_api/v2/web_channels.rb +1 -1
- data/lib/twilio-ruby/rest/frontline_api/v1/user.rb +4 -2
- data/lib/twilio-ruby/rest/insights/v1/call/annotation.rb +4 -2
- data/lib/twilio-ruby/rest/insights/v1/call/call_summary.rb +2 -1
- data/lib/twilio-ruby/rest/insights/v1/call.rb +2 -1
- data/lib/twilio-ruby/rest/insights/v1/conference/conference_participant.rb +2 -1
- data/lib/twilio-ruby/rest/insights/v1/conference.rb +2 -1
- data/lib/twilio-ruby/rest/insights/v1/room/participant.rb +2 -1
- data/lib/twilio-ruby/rest/insights/v1/room.rb +2 -1
- data/lib/twilio-ruby/rest/insights/v1/setting.rb +4 -2
- data/lib/twilio-ruby/rest/intelligence/v2/custom_operator.rb +7 -4
- data/lib/twilio-ruby/rest/intelligence/v2/operator.rb +2 -1
- data/lib/twilio-ruby/rest/intelligence/v2/operator_attachment.rb +4 -2
- data/lib/twilio-ruby/rest/intelligence/v2/operator_attachments.rb +2 -1
- data/lib/twilio-ruby/rest/intelligence/v2/operator_type.rb +2 -1
- data/lib/twilio-ruby/rest/intelligence/v2/prebuilt_operator.rb +2 -1
- data/lib/twilio-ruby/rest/intelligence/v2/service.rb +7 -4
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/media.rb +2 -1
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/operator_result.rb +2 -1
- data/lib/twilio-ruby/rest/intelligence/v2/transcript.rb +6 -3
- data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +8 -4
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +6 -3
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +8 -4
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +8 -4
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +8 -4
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +8 -4
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +8 -4
- data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +8 -4
- data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +8 -4
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +4 -2
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +6 -3
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +5 -4
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +5 -4
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb +8 -4
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +5 -4
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +8 -4
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +4 -2
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +6 -3
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +6 -4
- data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +8 -4
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +2 -1
- data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +2 -1
- data/lib/twilio-ruby/rest/marketplace/v1/available_add_on/available_add_on_extension.rb +2 -1
- data/lib/twilio-ruby/rest/marketplace/v1/available_add_on.rb +2 -1
- data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_extension.rb +4 -2
- data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_usage.rb +3 -2
- data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on.rb +8 -4
- data/lib/twilio-ruby/rest/marketplace/v1/module_data_management.rb +4 -2
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_registration_otp.rb +2 -1
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_vetting.rb +4 -2
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +6 -3
- data/lib/twilio-ruby/rest/messaging/v1/deactivations.rb +2 -1
- data/lib/twilio-ruby/rest/messaging/v1/domain_certs.rb +6 -3
- data/lib/twilio-ruby/rest/messaging/v1/domain_config.rb +4 -2
- data/lib/twilio-ruby/rest/messaging/v1/domain_config_messaging_service.rb +2 -1
- data/lib/twilio-ruby/rest/messaging/v1/external_campaign.rb +2 -1
- data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service.rb +4 -2
- data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service_domain_association.rb +2 -1
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +6 -3
- data/lib/twilio-ruby/rest/messaging/v1/service/channel_sender.rb +2 -1
- data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +6 -3
- data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +6 -3
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +8 -4
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person_usecase.rb +2 -1
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +8 -4
- data/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb +8 -4
- data/lib/twilio-ruby/rest/messaging/v1/usecase.rb +2 -1
- data/lib/twilio-ruby/rest/microvisor/v1/account_config.rb +8 -4
- data/lib/twilio-ruby/rest/microvisor/v1/account_secret.rb +8 -4
- data/lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb +2 -1
- data/lib/twilio-ruby/rest/microvisor/v1/app.rb +4 -2
- data/lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb +8 -4
- data/lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb +8 -4
- data/lib/twilio-ruby/rest/microvisor/v1/device.rb +4 -2
- data/lib/twilio-ruby/rest/monitor/v1/alert.rb +2 -1
- data/lib/twilio-ruby/rest/monitor/v1/event.rb +2 -1
- data/lib/twilio-ruby/rest/notify/v1/credential.rb +8 -4
- data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +6 -3
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +2 -1
- data/lib/twilio-ruby/rest/notify/v1/service.rb +8 -4
- data/lib/twilio-ruby/rest/numbers/v1/bulk_eligibility.rb +5 -3
- data/lib/twilio-ruby/rest/numbers/v1/eligibility.rb +3 -2
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb +14 -4
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in_phone_number.rb +29 -6
- data/lib/twilio-ruby/rest/numbers/v1/porting_portability.rb +2 -15
- data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration.rb +3 -2
- data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_delete.rb +2 -1
- data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_fetch.rb +2 -1
- data/lib/twilio-ruby/rest/numbers/v1/signing_request_configuration.rb +3 -2
- data/lib/twilio-ruby/rest/numbers/v2/authorization_document.rb +6 -3
- data/lib/twilio-ruby/rest/numbers/v2/bulk_hosted_number_order.rb +5 -3
- data/lib/twilio-ruby/rest/numbers/v2/hosted_number_order.rb +6 -3
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb +2 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/evaluation.rb +4 -2
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/item_assignment.rb +6 -3
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/replace_items.rb +2 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +8 -4
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user.rb +8 -4
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user_type.rb +2 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/regulation.rb +2 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document.rb +8 -4
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document_type.rb +2 -1
- data/lib/twilio-ruby/rest/oauth/v1/authorize.rb +2 -1
- data/lib/twilio-ruby/rest/oauth/v1/token.rb +2 -1
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/certificate.rb +8 -4
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/deployment.rb +8 -4
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/device.rb +8 -4
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/key.rb +8 -4
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +8 -4
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +6 -3
- data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +8 -4
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb +2 -1
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +2 -1
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb +4 -2
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +8 -4
- data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +6 -3
- data/lib/twilio-ruby/rest/preview/sync/service/document.rb +7 -4
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +6 -4
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +6 -3
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +6 -3
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +6 -4
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +6 -3
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +6 -3
- data/lib/twilio-ruby/rest/preview/sync/service.rb +8 -4
- data/lib/twilio-ruby/rest/preview/wireless/command.rb +4 -2
- data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +8 -4
- data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +2 -1
- data/lib/twilio-ruby/rest/preview/wireless/sim.rb +4 -2
- data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +2 -1
- data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +2 -1
- data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +2 -1
- data/lib/twilio-ruby/rest/pricing/v1/voice/number.rb +2 -1
- data/lib/twilio-ruby/rest/pricing/v2/country.rb +2 -1
- data/lib/twilio-ruby/rest/pricing/v2/number.rb +2 -1
- data/lib/twilio-ruby/rest/pricing/v2/voice/country.rb +2 -1
- data/lib/twilio-ruby/rest/pricing/v2/voice/number.rb +2 -1
- data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +8 -4
- data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +4 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +4 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +6 -3
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +8 -4
- data/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb +8 -4
- data/lib/twilio-ruby/rest/proxy/v1/service.rb +8 -4
- data/lib/twilio-ruby/rest/routes/v2/phone_number.rb +4 -2
- data/lib/twilio-ruby/rest/routes/v2/sip_domain.rb +4 -2
- data/lib/twilio-ruby/rest/routes/v2/trunk.rb +4 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +2 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +8 -4
- data/lib/twilio-ruby/rest/serverless/v1/service/build/build_status.rb +2 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +6 -3
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +4 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +2 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +8 -4
- data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +6 -3
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb +2 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +2 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +8 -4
- data/lib/twilio-ruby/rest/serverless/v1/service.rb +8 -4
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb +2 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb +2 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb +2 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement.rb +6 -3
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_context.rb +2 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb +2 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb +2 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +8 -4
- data/lib/twilio-ruby/rest/studio/v1/flow.rb +4 -2
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_context.rb +2 -1
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step/execution_step_context.rb +2 -1
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb +2 -1
- data/lib/twilio-ruby/rest/studio/v2/flow/execution.rb +8 -4
- data/lib/twilio-ruby/rest/studio/v2/flow/flow_revision.rb +2 -1
- data/lib/twilio-ruby/rest/studio/v2/flow/flow_test_user.rb +4 -2
- data/lib/twilio-ruby/rest/studio/v2/flow.rb +8 -4
- data/lib/twilio-ruby/rest/studio/v2/flow_validate.rb +2 -1
- data/lib/twilio-ruby/rest/supersim/v1/esim_profile.rb +4 -2
- data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +6 -3
- data/lib/twilio-ruby/rest/supersim/v1/ip_command.rb +4 -2
- data/lib/twilio-ruby/rest/supersim/v1/network.rb +2 -1
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +6 -3
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +6 -3
- data/lib/twilio-ruby/rest/supersim/v1/sim.rb +6 -3
- data/lib/twilio-ruby/rest/supersim/v1/sms_command.rb +4 -2
- data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +6 -3
- data/lib/twilio-ruby/rest/sync/v1/service/document.rb +7 -4
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +6 -4
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +6 -3
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +8 -4
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +6 -4
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +6 -3
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +8 -4
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +2 -1
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +8 -4
- data/lib/twilio-ruby/rest/sync/v1/service.rb +8 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +8 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +2 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +3 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +6 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +8 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_bulk_real_time_statistics.rb +3 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +2 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +2 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +2 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +8 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +3 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +4 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +2 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +2 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +2 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +2 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +6 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +2 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +2 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +2 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +8 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +2 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +2 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +2 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +8 -4
- data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +6 -3
- data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +6 -3
- data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +8 -4
- data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +6 -3
- data/lib/twilio-ruby/rest/trunking/v1/trunk/recording.rb +4 -2
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +8 -4
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb +4 -2
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_registration_inquiries.rb +4 -2
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb +6 -2
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.rb +6 -3
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb +6 -3
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.rb +4 -2
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles.rb +8 -4
- data/lib/twilio-ruby/rest/trusthub/v1/end_user.rb +8 -4
- data/lib/twilio-ruby/rest/trusthub/v1/end_user_type.rb +2 -1
- data/lib/twilio-ruby/rest/trusthub/v1/policies.rb +2 -1
- data/lib/twilio-ruby/rest/trusthub/v1/supporting_document.rb +8 -4
- data/lib/twilio-ruby/rest/trusthub/v1/supporting_document_type.rb +2 -1
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment.rb +6 -3
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_entity_assignments.rb +6 -3
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_evaluations.rb +4 -2
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products.rb +8 -4
- data/lib/twilio-ruby/rest/verify/v2/form.rb +2 -1
- data/lib/twilio-ruby/rest/verify/v2/safelist.rb +6 -3
- data/lib/twilio-ruby/rest/verify/v2/service/access_token.rb +4 -2
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb +2 -1
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +6 -3
- data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +6 -3
- data/lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb +2 -1
- data/lib/twilio-ruby/rest/verify/v2/service/entity.rb +6 -3
- data/lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb +8 -4
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb +8 -4
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb +8 -4
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +6 -3
- data/lib/twilio-ruby/rest/verify/v2/service/verification_check.rb +2 -1
- data/lib/twilio-ruby/rest/verify/v2/service/webhook.rb +8 -4
- data/lib/twilio-ruby/rest/verify/v2/service.rb +8 -4
- data/lib/twilio-ruby/rest/verify/v2/verification_attempt.rb +2 -1
- data/lib/twilio-ruby/rest/verify/v2/verification_attempts_summary.rb +2 -1
- data/lib/twilio-ruby/rest/video/v1/composition.rb +6 -3
- data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +8 -4
- data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +4 -2
- data/lib/twilio-ruby/rest/video/v1/recording.rb +4 -2
- data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +4 -2
- data/lib/twilio-ruby/rest/video/v1/room/participant/anonymize.rb +2 -1
- data/lib/twilio-ruby/rest/video/v1/room/participant/published_track.rb +2 -1
- data/lib/twilio-ruby/rest/video/v1/room/participant/subscribe_rules.rb +4 -2
- data/lib/twilio-ruby/rest/video/v1/room/participant/subscribed_track.rb +2 -1
- data/lib/twilio-ruby/rest/video/v1/room/participant.rb +4 -2
- data/lib/twilio-ruby/rest/video/v1/room/recording_rules.rb +4 -2
- data/lib/twilio-ruby/rest/video/v1/room/room_recording.rb +4 -2
- data/lib/twilio-ruby/rest/video/v1/room.rb +6 -3
- data/lib/twilio-ruby/rest/voice/v1/archived_call.rb +2 -1
- data/lib/twilio-ruby/rest/voice/v1/byoc_trunk.rb +8 -4
- data/lib/twilio-ruby/rest/voice/v1/connection_policy/connection_policy_target.rb +8 -4
- data/lib/twilio-ruby/rest/voice/v1/connection_policy.rb +8 -4
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb +2 -1
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +2 -1
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/settings.rb +4 -2
- data/lib/twilio-ruby/rest/voice/v1/ip_record.rb +8 -4
- data/lib/twilio-ruby/rest/voice/v1/source_ip_mapping.rb +8 -4
- data/lib/twilio-ruby/rest/wireless/v1/command.rb +6 -3
- data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +8 -4
- data/lib/twilio-ruby/rest/wireless/v1/sim.rb +6 -3
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +2 -2
@@ -146,8 +146,9 @@ module Twilio
|
|
146
146
|
# @return [DeviceInstance] Fetched DeviceInstance
|
147
147
|
def fetch
|
148
148
|
|
149
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
149
150
|
|
150
|
-
payload = @version.fetch('GET', @uri)
|
151
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
151
152
|
DeviceInstance.new(
|
152
153
|
@version,
|
153
154
|
payload,
|
@@ -176,8 +177,9 @@ module Twilio
|
|
176
177
|
'RestartApp' => restart_app,
|
177
178
|
})
|
178
179
|
|
180
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
179
181
|
|
180
|
-
payload = @version.update('POST', @uri, data: data)
|
182
|
+
payload = @version.update('POST', @uri, data: data, headers: headers)
|
181
183
|
DeviceInstance.new(
|
182
184
|
@version,
|
183
185
|
payload,
|
@@ -162,8 +162,9 @@ module Twilio
|
|
162
162
|
# @return [AlertInstance] Fetched AlertInstance
|
163
163
|
def fetch
|
164
164
|
|
165
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
165
166
|
|
166
|
-
payload = @version.fetch('GET', @uri)
|
167
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
167
168
|
AlertInstance.new(
|
168
169
|
@version,
|
169
170
|
payload,
|
@@ -180,8 +180,9 @@ module Twilio
|
|
180
180
|
# @return [EventInstance] Fetched EventInstance
|
181
181
|
def fetch
|
182
182
|
|
183
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
183
184
|
|
184
|
-
payload = @version.fetch('GET', @uri)
|
185
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
185
186
|
EventInstance.new(
|
186
187
|
@version,
|
187
188
|
payload,
|
@@ -60,8 +60,9 @@ module Twilio
|
|
60
60
|
'Secret' => secret,
|
61
61
|
})
|
62
62
|
|
63
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
63
64
|
|
64
|
-
payload = @version.create('POST', @uri, data: data)
|
65
|
+
payload = @version.create('POST', @uri, data: data, headers: headers)
|
65
66
|
CredentialInstance.new(
|
66
67
|
@version,
|
67
68
|
payload,
|
@@ -182,8 +183,9 @@ module Twilio
|
|
182
183
|
# @return [Boolean] True if delete succeeds, false otherwise
|
183
184
|
def delete
|
184
185
|
|
186
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
185
187
|
|
186
|
-
@version.delete('DELETE', @uri)
|
188
|
+
@version.delete('DELETE', @uri, headers: headers)
|
187
189
|
end
|
188
190
|
|
189
191
|
##
|
@@ -191,8 +193,9 @@ module Twilio
|
|
191
193
|
# @return [CredentialInstance] Fetched CredentialInstance
|
192
194
|
def fetch
|
193
195
|
|
196
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
194
197
|
|
195
|
-
payload = @version.fetch('GET', @uri)
|
198
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
196
199
|
CredentialInstance.new(
|
197
200
|
@version,
|
198
201
|
payload,
|
@@ -227,8 +230,9 @@ module Twilio
|
|
227
230
|
'Secret' => secret,
|
228
231
|
})
|
229
232
|
|
233
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
230
234
|
|
231
|
-
payload = @version.update('POST', @uri, data: data)
|
235
|
+
payload = @version.update('POST', @uri, data: data, headers: headers)
|
232
236
|
CredentialInstance.new(
|
233
237
|
@version,
|
234
238
|
payload,
|
@@ -62,8 +62,9 @@ module Twilio
|
|
62
62
|
'Endpoint' => endpoint,
|
63
63
|
})
|
64
64
|
|
65
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
65
66
|
|
66
|
-
payload = @version.create('POST', @uri, data: data)
|
67
|
+
payload = @version.create('POST', @uri, data: data, headers: headers)
|
67
68
|
BindingInstance.new(
|
68
69
|
@version,
|
69
70
|
payload,
|
@@ -212,8 +213,9 @@ module Twilio
|
|
212
213
|
# @return [Boolean] True if delete succeeds, false otherwise
|
213
214
|
def delete
|
214
215
|
|
216
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
215
217
|
|
216
|
-
@version.delete('DELETE', @uri)
|
218
|
+
@version.delete('DELETE', @uri, headers: headers)
|
217
219
|
end
|
218
220
|
|
219
221
|
##
|
@@ -221,8 +223,9 @@ module Twilio
|
|
221
223
|
# @return [BindingInstance] Fetched BindingInstance
|
222
224
|
def fetch
|
223
225
|
|
226
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
224
227
|
|
225
|
-
payload = @version.fetch('GET', @uri)
|
228
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
226
229
|
BindingInstance.new(
|
227
230
|
@version,
|
228
231
|
payload,
|
@@ -95,8 +95,9 @@ module Twilio
|
|
95
95
|
'Tag' => Twilio.serialize_list(tag) { |e| e },
|
96
96
|
})
|
97
97
|
|
98
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
98
99
|
|
99
|
-
payload = @version.create('POST', @uri, data: data)
|
100
|
+
payload = @version.create('POST', @uri, data: data, headers: headers)
|
100
101
|
NotificationInstance.new(
|
101
102
|
@version,
|
102
103
|
payload,
|
@@ -81,8 +81,9 @@ module Twilio
|
|
81
81
|
'DeliveryCallbackEnabled' => delivery_callback_enabled,
|
82
82
|
})
|
83
83
|
|
84
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
84
85
|
|
85
|
-
payload = @version.create('POST', @uri, data: data)
|
86
|
+
payload = @version.create('POST', @uri, data: data, headers: headers)
|
86
87
|
ServiceInstance.new(
|
87
88
|
@version,
|
88
89
|
payload,
|
@@ -211,8 +212,9 @@ module Twilio
|
|
211
212
|
# @return [Boolean] True if delete succeeds, false otherwise
|
212
213
|
def delete
|
213
214
|
|
215
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
214
216
|
|
215
|
-
@version.delete('DELETE', @uri)
|
217
|
+
@version.delete('DELETE', @uri, headers: headers)
|
216
218
|
end
|
217
219
|
|
218
220
|
##
|
@@ -220,8 +222,9 @@ module Twilio
|
|
220
222
|
# @return [ServiceInstance] Fetched ServiceInstance
|
221
223
|
def fetch
|
222
224
|
|
225
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
223
226
|
|
224
|
-
payload = @version.fetch('GET', @uri)
|
227
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
225
228
|
ServiceInstance.new(
|
226
229
|
@version,
|
227
230
|
payload,
|
@@ -280,8 +283,9 @@ module Twilio
|
|
280
283
|
'DeliveryCallbackEnabled' => delivery_callback_enabled,
|
281
284
|
})
|
282
285
|
|
286
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
283
287
|
|
284
|
-
payload = @version.update('POST', @uri, data: data)
|
288
|
+
payload = @version.update('POST', @uri, data: data, headers: headers)
|
285
289
|
ServiceInstance.new(
|
286
290
|
@version,
|
287
291
|
payload,
|
@@ -37,8 +37,9 @@ module Twilio
|
|
37
37
|
def create(body: :unset
|
38
38
|
)
|
39
39
|
|
40
|
-
headers = Twilio::Values.of({
|
41
|
-
|
40
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
41
|
+
headers['Content-Type'] = 'application/json'
|
42
|
+
payload = @version.create('POST', @uri, headers: headers, data: body.to_json)
|
42
43
|
BulkEligibilityInstance.new(
|
43
44
|
@version,
|
44
45
|
payload,
|
@@ -75,8 +76,9 @@ module Twilio
|
|
75
76
|
# @return [BulkEligibilityInstance] Fetched BulkEligibilityInstance
|
76
77
|
def fetch
|
77
78
|
|
79
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
78
80
|
|
79
|
-
payload = @version.fetch('GET', @uri)
|
81
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
80
82
|
BulkEligibilityInstance.new(
|
81
83
|
@version,
|
82
84
|
payload,
|
@@ -37,8 +37,9 @@ module Twilio
|
|
37
37
|
def create(body: :unset
|
38
38
|
)
|
39
39
|
|
40
|
-
headers = Twilio::Values.of({
|
41
|
-
|
40
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
41
|
+
headers['Content-Type'] = 'application/json'
|
42
|
+
payload = @version.create('POST', @uri, headers: headers, data: body.to_json)
|
42
43
|
EligibilityInstance.new(
|
43
44
|
@version,
|
44
45
|
payload,
|
@@ -37,8 +37,9 @@ module Twilio
|
|
37
37
|
def create(body: :unset
|
38
38
|
)
|
39
39
|
|
40
|
-
headers = Twilio::Values.of({
|
41
|
-
|
40
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
41
|
+
headers['Content-Type'] = 'application/json'
|
42
|
+
payload = @version.create('POST', @uri, headers: headers, data: body.to_json)
|
42
43
|
PortingPortInInstance.new(
|
43
44
|
@version,
|
44
45
|
payload,
|
@@ -75,8 +76,9 @@ module Twilio
|
|
75
76
|
# @return [Boolean] True if delete succeeds, false otherwise
|
76
77
|
def delete
|
77
78
|
|
79
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
78
80
|
|
79
|
-
@version.delete('DELETE', @uri)
|
81
|
+
@version.delete('DELETE', @uri, headers: headers)
|
80
82
|
end
|
81
83
|
|
82
84
|
##
|
@@ -84,8 +86,9 @@ module Twilio
|
|
84
86
|
# @return [PortingPortInInstance] Fetched PortingPortInInstance
|
85
87
|
def fetch
|
86
88
|
|
89
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
87
90
|
|
88
|
-
payload = @version.fetch('GET', @uri)
|
91
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
89
92
|
PortingPortInInstance.new(
|
90
93
|
@version,
|
91
94
|
payload,
|
@@ -163,6 +166,7 @@ module Twilio
|
|
163
166
|
'losing_carrier_information' => payload['losing_carrier_information'],
|
164
167
|
'phone_numbers' => payload['phone_numbers'],
|
165
168
|
'documents' => payload['documents'],
|
169
|
+
'date_created' => Twilio.deserialize_iso8601_date(payload['date_created']),
|
166
170
|
}
|
167
171
|
|
168
172
|
# Context
|
@@ -247,6 +251,12 @@ module Twilio
|
|
247
251
|
@properties['documents']
|
248
252
|
end
|
249
253
|
|
254
|
+
##
|
255
|
+
# @return [Date]
|
256
|
+
def date_created
|
257
|
+
@properties['date_created']
|
258
|
+
end
|
259
|
+
|
250
260
|
##
|
251
261
|
# Delete the PortingPortInInstance
|
252
262
|
# @return [Boolean] True if delete succeeds, false otherwise
|
@@ -61,8 +61,9 @@ module Twilio
|
|
61
61
|
# @return [Boolean] True if delete succeeds, false otherwise
|
62
62
|
def delete
|
63
63
|
|
64
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
64
65
|
|
65
|
-
@version.delete('DELETE', @uri)
|
66
|
+
@version.delete('DELETE', @uri, headers: headers)
|
66
67
|
end
|
67
68
|
|
68
69
|
##
|
@@ -70,8 +71,9 @@ module Twilio
|
|
70
71
|
# @return [PortingPortInPhoneNumberInstance] Fetched PortingPortInPhoneNumberInstance
|
71
72
|
def fetch
|
72
73
|
|
74
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
73
75
|
|
74
|
-
payload = @version.fetch('GET', @uri)
|
76
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
75
77
|
PortingPortInPhoneNumberInstance.new(
|
76
78
|
@version,
|
77
79
|
payload,
|
@@ -147,12 +149,15 @@ module Twilio
|
|
147
149
|
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
148
150
|
'country' => payload['country'],
|
149
151
|
'missing_required_fields' => payload['missing_required_fields'],
|
150
|
-
'
|
152
|
+
'last_updated' => Twilio.deserialize_iso8601_datetime(payload['last_updated']),
|
151
153
|
'phone_number' => payload['phone_number'],
|
152
154
|
'portable' => payload['portable'],
|
153
155
|
'not_portability_reason' => payload['not_portability_reason'],
|
154
|
-
'not_portability_reason_code' => payload['not_portability_reason_code'],
|
156
|
+
'not_portability_reason_code' => payload['not_portability_reason_code'] == nil ? payload['not_portability_reason_code'] : payload['not_portability_reason_code'].to_i,
|
155
157
|
'port_in_phone_number_status' => payload['port_in_phone_number_status'],
|
158
|
+
'port_out_pin' => payload['port_out_pin'] == nil ? payload['port_out_pin'] : payload['port_out_pin'].to_i,
|
159
|
+
'rejection_reason' => payload['rejection_reason'],
|
160
|
+
'rejection_reason_code' => payload['rejection_reason_code'] == nil ? payload['rejection_reason_code'] : payload['rejection_reason_code'].to_i,
|
156
161
|
}
|
157
162
|
|
158
163
|
# Context
|
@@ -221,8 +226,8 @@ module Twilio
|
|
221
226
|
|
222
227
|
##
|
223
228
|
# @return [Time] The timestamp when the status was last updated.
|
224
|
-
def
|
225
|
-
@properties['
|
229
|
+
def last_updated
|
230
|
+
@properties['last_updated']
|
226
231
|
end
|
227
232
|
|
228
233
|
##
|
@@ -255,6 +260,24 @@ module Twilio
|
|
255
260
|
@properties['port_in_phone_number_status']
|
256
261
|
end
|
257
262
|
|
263
|
+
##
|
264
|
+
# @return [String] The pin required for the losing carrier to port out the phone number.
|
265
|
+
def port_out_pin
|
266
|
+
@properties['port_out_pin']
|
267
|
+
end
|
268
|
+
|
269
|
+
##
|
270
|
+
# @return [String] The rejection reason returned by the vendor.
|
271
|
+
def rejection_reason
|
272
|
+
@properties['rejection_reason']
|
273
|
+
end
|
274
|
+
|
275
|
+
##
|
276
|
+
# @return [String] The rejection reason code returned by the vendor.
|
277
|
+
def rejection_reason_code
|
278
|
+
@properties['rejection_reason_code']
|
279
|
+
end
|
280
|
+
|
258
281
|
##
|
259
282
|
# Delete the PortingPortInPhoneNumberInstance
|
260
283
|
# @return [Boolean] True if delete succeeds, false otherwise
|
@@ -66,8 +66,9 @@ module Twilio
|
|
66
66
|
params = Twilio::Values.of({
|
67
67
|
'TargetAccountSid' => target_account_sid,
|
68
68
|
})
|
69
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
69
70
|
|
70
|
-
payload = @version.fetch('GET', @uri, params: params)
|
71
|
+
payload = @version.fetch('GET', @uri, params: params, headers: headers)
|
71
72
|
PortingPortabilityInstance.new(
|
72
73
|
@version,
|
73
74
|
payload,
|
@@ -142,8 +143,6 @@ module Twilio
|
|
142
143
|
'not_portable_reason_code' => payload['not_portable_reason_code'] == nil ? payload['not_portable_reason_code'] : payload['not_portable_reason_code'].to_i,
|
143
144
|
'number_type' => payload['number_type'],
|
144
145
|
'country' => payload['country'],
|
145
|
-
'messaging_carrier' => payload['messaging_carrier'],
|
146
|
-
'voice_carrier' => payload['voice_carrier'],
|
147
146
|
'url' => payload['url'],
|
148
147
|
}
|
149
148
|
|
@@ -211,18 +210,6 @@ module Twilio
|
|
211
210
|
@properties['country']
|
212
211
|
end
|
213
212
|
|
214
|
-
##
|
215
|
-
# @return [String] Current messaging carrier of the phone number
|
216
|
-
def messaging_carrier
|
217
|
-
@properties['messaging_carrier']
|
218
|
-
end
|
219
|
-
|
220
|
-
##
|
221
|
-
# @return [String] Current voice carrier of the phone number
|
222
|
-
def voice_carrier
|
223
|
-
@properties['voice_carrier']
|
224
|
-
end
|
225
|
-
|
226
213
|
##
|
227
214
|
# @return [String] This is the url of the request that you're trying to reach out to locate the resource.
|
228
215
|
def url
|
@@ -37,8 +37,9 @@ module Twilio
|
|
37
37
|
def create(body: :unset
|
38
38
|
)
|
39
39
|
|
40
|
-
headers = Twilio::Values.of({
|
41
|
-
|
40
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
41
|
+
headers['Content-Type'] = 'application/json'
|
42
|
+
payload = @version.create('POST', @uri, headers: headers, data: body.to_json)
|
42
43
|
PortingWebhookConfigurationInstance.new(
|
43
44
|
@version,
|
44
45
|
payload,
|
@@ -60,8 +60,9 @@ module Twilio
|
|
60
60
|
# @return [Boolean] True if delete succeeds, false otherwise
|
61
61
|
def delete
|
62
62
|
|
63
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
63
64
|
|
64
|
-
@version.delete('DELETE', @uri)
|
65
|
+
@version.delete('DELETE', @uri, headers: headers)
|
65
66
|
end
|
66
67
|
|
67
68
|
|
@@ -35,8 +35,9 @@ module Twilio
|
|
35
35
|
# @return [PortingWebhookConfigurationFetchInstance] Fetched PortingWebhookConfigurationFetchInstance
|
36
36
|
def fetch
|
37
37
|
|
38
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
38
39
|
|
39
|
-
payload = @version.fetch('GET', @uri)
|
40
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
40
41
|
PortingWebhookConfigurationFetchInstance.new(
|
41
42
|
@version,
|
42
43
|
payload,
|
@@ -37,8 +37,9 @@ module Twilio
|
|
37
37
|
def create(body: :unset
|
38
38
|
)
|
39
39
|
|
40
|
-
headers = Twilio::Values.of({
|
41
|
-
|
40
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
41
|
+
headers['Content-Type'] = 'application/json'
|
42
|
+
payload = @version.create('POST', @uri, headers: headers, data: body.to_json)
|
42
43
|
SigningRequestConfigurationInstance.new(
|
43
44
|
@version,
|
44
45
|
payload,
|
@@ -57,8 +57,9 @@ module Twilio
|
|
57
57
|
'CcEmails' => Twilio.serialize_list(cc_emails) { |e| e },
|
58
58
|
})
|
59
59
|
|
60
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
60
61
|
|
61
|
-
payload = @version.create('POST', @uri, data: data)
|
62
|
+
payload = @version.create('POST', @uri, data: data, headers: headers)
|
62
63
|
AuthorizationDocumentInstance.new(
|
63
64
|
@version,
|
64
65
|
payload,
|
@@ -192,8 +193,9 @@ module Twilio
|
|
192
193
|
# @return [Boolean] True if delete succeeds, false otherwise
|
193
194
|
def delete
|
194
195
|
|
196
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
195
197
|
|
196
|
-
@version.delete('DELETE', @uri)
|
198
|
+
@version.delete('DELETE', @uri, headers: headers)
|
197
199
|
end
|
198
200
|
|
199
201
|
##
|
@@ -201,8 +203,9 @@ module Twilio
|
|
201
203
|
# @return [AuthorizationDocumentInstance] Fetched AuthorizationDocumentInstance
|
202
204
|
def fetch
|
203
205
|
|
206
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
204
207
|
|
205
|
-
payload = @version.fetch('GET', @uri)
|
208
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
206
209
|
AuthorizationDocumentInstance.new(
|
207
210
|
@version,
|
208
211
|
payload,
|
@@ -37,8 +37,9 @@ module Twilio
|
|
37
37
|
def create(body: :unset
|
38
38
|
)
|
39
39
|
|
40
|
-
headers = Twilio::Values.of({
|
41
|
-
|
40
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
41
|
+
headers['Content-Type'] = 'application/json'
|
42
|
+
payload = @version.create('POST', @uri, headers: headers, data: body.to_json)
|
42
43
|
BulkHostedNumberOrderInstance.new(
|
43
44
|
@version,
|
44
45
|
payload,
|
@@ -81,8 +82,9 @@ module Twilio
|
|
81
82
|
params = Twilio::Values.of({
|
82
83
|
'OrderStatus' => order_status,
|
83
84
|
})
|
85
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
84
86
|
|
85
|
-
payload = @version.fetch('GET', @uri, params: params)
|
87
|
+
payload = @version.fetch('GET', @uri, params: params, headers: headers)
|
86
88
|
BulkHostedNumberOrderInstance.new(
|
87
89
|
@version,
|
88
90
|
payload,
|
@@ -87,8 +87,9 @@ module Twilio
|
|
87
87
|
'ContactTitle' => contact_title,
|
88
88
|
})
|
89
89
|
|
90
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
90
91
|
|
91
|
-
payload = @version.create('POST', @uri, data: data)
|
92
|
+
payload = @version.create('POST', @uri, data: data, headers: headers)
|
92
93
|
HostedNumberOrderInstance.new(
|
93
94
|
@version,
|
94
95
|
payload,
|
@@ -239,8 +240,9 @@ module Twilio
|
|
239
240
|
# @return [Boolean] True if delete succeeds, false otherwise
|
240
241
|
def delete
|
241
242
|
|
243
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
242
244
|
|
243
|
-
@version.delete('DELETE', @uri)
|
245
|
+
@version.delete('DELETE', @uri, headers: headers)
|
244
246
|
end
|
245
247
|
|
246
248
|
##
|
@@ -248,8 +250,9 @@ module Twilio
|
|
248
250
|
# @return [HostedNumberOrderInstance] Fetched HostedNumberOrderInstance
|
249
251
|
def fetch
|
250
252
|
|
253
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
251
254
|
|
252
|
-
payload = @version.fetch('GET', @uri)
|
255
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
253
256
|
HostedNumberOrderInstance.new(
|
254
257
|
@version,
|
255
258
|
payload,
|
@@ -45,8 +45,9 @@ module Twilio
|
|
45
45
|
'FriendlyName' => friendly_name,
|
46
46
|
})
|
47
47
|
|
48
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
48
49
|
|
49
|
-
payload = @version.create('POST', @uri, data: data)
|
50
|
+
payload = @version.create('POST', @uri, data: data, headers: headers)
|
50
51
|
BundleCopyInstance.new(
|
51
52
|
@version,
|
52
53
|
payload,
|
@@ -38,8 +38,9 @@ module Twilio
|
|
38
38
|
# @return [EvaluationInstance] Created EvaluationInstance
|
39
39
|
def create
|
40
40
|
|
41
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
41
42
|
|
42
|
-
payload = @version.create('POST', @uri)
|
43
|
+
payload = @version.create('POST', @uri, headers: headers)
|
43
44
|
EvaluationInstance.new(
|
44
45
|
@version,
|
45
46
|
payload,
|
@@ -162,8 +163,9 @@ module Twilio
|
|
162
163
|
# @return [EvaluationInstance] Fetched EvaluationInstance
|
163
164
|
def fetch
|
164
165
|
|
166
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
165
167
|
|
166
|
-
payload = @version.fetch('GET', @uri)
|
168
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
167
169
|
EvaluationInstance.new(
|
168
170
|
@version,
|
169
171
|
payload,
|
@@ -45,8 +45,9 @@ module Twilio
|
|
45
45
|
'ObjectSid' => object_sid,
|
46
46
|
})
|
47
47
|
|
48
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
48
49
|
|
49
|
-
payload = @version.create('POST', @uri, data: data)
|
50
|
+
payload = @version.create('POST', @uri, data: data, headers: headers)
|
50
51
|
ItemAssignmentInstance.new(
|
51
52
|
@version,
|
52
53
|
payload,
|
@@ -169,8 +170,9 @@ module Twilio
|
|
169
170
|
# @return [Boolean] True if delete succeeds, false otherwise
|
170
171
|
def delete
|
171
172
|
|
173
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
172
174
|
|
173
|
-
@version.delete('DELETE', @uri)
|
175
|
+
@version.delete('DELETE', @uri, headers: headers)
|
174
176
|
end
|
175
177
|
|
176
178
|
##
|
@@ -178,8 +180,9 @@ module Twilio
|
|
178
180
|
# @return [ItemAssignmentInstance] Fetched ItemAssignmentInstance
|
179
181
|
def fetch
|
180
182
|
|
183
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
181
184
|
|
182
|
-
payload = @version.fetch('GET', @uri)
|
185
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
183
186
|
ItemAssignmentInstance.new(
|
184
187
|
@version,
|
185
188
|
payload,
|
@@ -45,8 +45,9 @@ module Twilio
|
|
45
45
|
'FromBundleSid' => from_bundle_sid,
|
46
46
|
})
|
47
47
|
|
48
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
48
49
|
|
49
|
-
payload = @version.create('POST', @uri, data: data)
|
50
|
+
payload = @version.create('POST', @uri, data: data, headers: headers)
|
50
51
|
ReplaceItemsInstance.new(
|
51
52
|
@version,
|
52
53
|
payload,
|