twilio-ruby 5.39.0 → 5.40.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/CHANGES.md +80 -1
- data/CONTRIBUTING.md +2 -2
- data/ISSUE_TEMPLATE.md +5 -1
- data/Makefile +1 -1
- data/PULL_REQUEST_TEMPLATE.md +1 -1
- data/README.md +4 -3
- data/lib/twilio-ruby/framework/version.rb +1 -1
- data/lib/twilio-ruby/rest/accounts/v1/credential/aws.rb +1 -1
- data/lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/address.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/application.rb +7 -5
- data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/local.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/machine_to_machine.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/national.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/shared_cost.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/toll_free.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/voip.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +79 -60
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +15 -1
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +15 -1
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +15 -1
- data/lib/twilio-ruby/rest/api/v2010/account/key.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_credential_list_mapping.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_ip_access_control_list_mapping.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_registrations_mapping/auth_registrations_credential_list_mapping.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +1 -1
- data/lib/twilio-ruby/rest/autopilot/v1/assistant.rb +1 -1
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type.rb +1 -1
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type/field_value.rb +1 -1
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/model_build.rb +1 -1
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb +1 -1
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task.rb +1 -1
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/field.rb +1 -1
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/sample.rb +1 -1
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/webhook.rb +1 -1
- data/lib/twilio-ruby/rest/bulkexports/v1/export/day.rb +1 -1
- data/lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v1/credential.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v1/service.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v1/service/role.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v1/service/user.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v1/service/user/user_channel.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v2/credential.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v2/service.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v2/service/role.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v2/service/user.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +1 -1
- data/lib/twilio-ruby/rest/client.rb +7 -0
- data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +1 -1
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +1 -1
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message/delivery_receipt.rb +1 -1
- data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +13 -3
- data/lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb +1 -1
- data/lib/twilio-ruby/rest/events.rb +55 -0
- data/lib/twilio-ruby/rest/events/v1.rb +59 -0
- data/lib/twilio-ruby/rest/events/v1/sink.rb +380 -0
- data/lib/twilio-ruby/rest/events/v1/sink/sink_test.rb +115 -0
- data/lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb +119 -0
- data/lib/twilio-ruby/rest/events/v1/subscription.rb +363 -0
- data/lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb +322 -0
- data/lib/twilio-ruby/rest/fax/v1/fax.rb +1 -1
- data/lib/twilio-ruby/rest/fax/v1/fax/fax_media.rb +1 -1
- data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +1 -1
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +1 -1
- data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +1 -1
- data/lib/twilio-ruby/rest/flex_api/v1/web_channel.rb +1 -1
- data/lib/twilio-ruby/rest/insights/v1/call/event.rb +1 -1
- data/lib/twilio-ruby/rest/insights/v1/call/metric.rb +1 -1
- data/lib/twilio-ruby/rest/insights/v1/call/summary.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user/user_channel.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +1 -1
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +1 -1
- data/lib/twilio-ruby/rest/messaging.rb +6 -0
- data/lib/twilio-ruby/rest/messaging/v1.rb +7 -0
- data/lib/twilio-ruby/rest/messaging/v1/deactivation.rb +164 -0
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +1 -1
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +1 -1
- data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +1 -1
- data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +1 -1
- data/lib/twilio-ruby/rest/monitor/v1/alert.rb +1 -1
- data/lib/twilio-ruby/rest/monitor/v1/event.rb +1 -1
- data/lib/twilio-ruby/rest/notify/v1/credential.rb +1 -1
- data/lib/twilio-ruby/rest/notify/v1/service.rb +1 -1
- data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +1 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb +1 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +1 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/evaluation.rb +1 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/item_assignment.rb +1 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user.rb +17 -3
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user_type.rb +1 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/regulation.rb +1 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document.rb +1 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document_type.rb +1 -1
- data/lib/twilio-ruby/rest/preview/bulk_exports/export/day.rb +1 -1
- data/lib/twilio-ruby/rest/preview/bulk_exports/export/export_custom_job.rb +1 -1
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +1 -1
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/certificate.rb +1 -1
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/deployment.rb +1 -1
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/device.rb +1 -1
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/key.rb +1 -1
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +1 -1
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb +1 -1
- data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +1 -1
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +1 -1
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb +1 -1
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +1 -1
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb +1 -1
- data/lib/twilio-ruby/rest/preview/sync/service.rb +1 -1
- data/lib/twilio-ruby/rest/preview/sync/service/document.rb +1 -1
- data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +1 -1
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +1 -1
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +1 -1
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +1 -1
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +1 -1
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +1 -1
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +1 -1
- data/lib/twilio-ruby/rest/preview/trusted_comms/business/insights/impressions_rate.rb +1 -1
- data/lib/twilio-ruby/rest/preview/understand/assistant.rb +1 -1
- data/lib/twilio-ruby/rest/preview/understand/assistant/field_type.rb +1 -1
- data/lib/twilio-ruby/rest/preview/understand/assistant/field_type/field_value.rb +1 -1
- data/lib/twilio-ruby/rest/preview/understand/assistant/model_build.rb +1 -1
- data/lib/twilio-ruby/rest/preview/understand/assistant/query.rb +1 -1
- data/lib/twilio-ruby/rest/preview/understand/assistant/task.rb +1 -1
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/field.rb +1 -1
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/sample.rb +1 -1
- data/lib/twilio-ruby/rest/preview/wireless/command.rb +1 -1
- data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +1 -1
- data/lib/twilio-ruby/rest/preview/wireless/sim.rb +1 -1
- data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +1 -1
- data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +1 -1
- data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +1 -1
- data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +1 -1
- data/lib/twilio-ruby/rest/pricing/v2/voice/country.rb +1 -1
- data/lib/twilio-ruby/rest/pricing/v2/voice/number.rb +1 -1
- data/lib/twilio-ruby/rest/proxy/v1/service.rb +1 -1
- data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +1 -1
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +43 -5
- data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +1 -1
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +14 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +1 -1
- data/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb +1 -1
- data/lib/twilio-ruby/rest/serverless/v1/service.rb +1 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +1 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +1 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +1 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +1 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +1 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +1 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +1 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +1 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +1 -1
- data/lib/twilio-ruby/rest/studio/v1/flow.rb +1 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement.rb +1 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb +1 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +1 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb +1 -1
- data/lib/twilio-ruby/rest/studio/v2/flow.rb +1 -1
- data/lib/twilio-ruby/rest/studio/v2/flow/execution.rb +1 -1
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb +1 -1
- data/lib/twilio-ruby/rest/studio/v2/flow/flow_revision.rb +1 -1
- data/lib/twilio-ruby/rest/supersim/v1/command.rb +1 -1
- data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +13 -12
- data/lib/twilio-ruby/rest/supersim/v1/network.rb +1 -1
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +1 -1
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +1 -1
- data/lib/twilio-ruby/rest/supersim/v1/sim.rb +25 -5
- data/lib/twilio-ruby/rest/supersim/v1/usage_record.rb +76 -10
- data/lib/twilio-ruby/rest/sync/v1/service.rb +1 -1
- data/lib/twilio-ruby/rest/sync/v1/service/document.rb +1 -1
- data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +1 -1
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +1 -1
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +1 -1
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +1 -1
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +1 -1
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +1 -1
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +1 -1
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +1 -1
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +26 -4
- data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +1 -1
- data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +1 -1
- data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +1 -1
- data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +1 -1
- data/lib/twilio-ruby/rest/verify/v2/service.rb +22 -10
- data/lib/twilio-ruby/rest/verify/v2/service/entity.rb +1 -1
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +11 -3
- data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +1 -1
- data/lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb +1 -1
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb +1 -1
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb +1 -1
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +4 -1
- data/lib/twilio-ruby/rest/verify/v2/service/webhook.rb +1 -1
- data/lib/twilio-ruby/rest/video/v1/composition.rb +1 -1
- data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +1 -1
- data/lib/twilio-ruby/rest/video/v1/recording.rb +1 -1
- data/lib/twilio-ruby/rest/video/v1/room.rb +1 -1
- data/lib/twilio-ruby/rest/video/v1/room/recording.rb +1 -1
- data/lib/twilio-ruby/rest/video/v1/room/room_participant.rb +1 -1
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_published_track.rb +1 -1
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribe_rule.rb +0 -6
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribed_track.rb +1 -1
- data/lib/twilio-ruby/rest/voice/v1/byoc_trunk.rb +1 -1
- data/lib/twilio-ruby/rest/voice/v1/connection_policy.rb +1 -1
- data/lib/twilio-ruby/rest/voice/v1/connection_policy/connection_policy_target.rb +1 -1
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +1 -1
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb +1 -1
- data/lib/twilio-ruby/rest/voice/v1/ip_record.rb +1 -1
- data/lib/twilio-ruby/rest/voice/v1/source_ip_mapping.rb +1 -1
- data/lib/twilio-ruby/rest/wireless/v1/command.rb +1 -1
- data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +1 -1
- data/lib/twilio-ruby/rest/wireless/v1/sim.rb +1 -1
- data/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb +6 -20
- data/lib/twilio-ruby/rest/wireless/v1/sim/usage_record.rb +1 -1
- data/lib/twilio-ruby/rest/wireless/v1/usage_record.rb +1 -1
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/framework/version_spec.rb +166 -0
- data/spec/integration/api/v2010/account/incoming_phone_number/local_spec.rb +35 -36
- data/spec/integration/api/v2010/account/incoming_phone_number/mobile_spec.rb +39 -40
- data/spec/integration/api/v2010/account/incoming_phone_number/toll_free_spec.rb +35 -36
- data/spec/integration/api/v2010/account/incoming_phone_number_spec.rb +25 -23
- data/spec/integration/api/v2010/account/message_spec.rb +37 -0
- data/spec/integration/bulkexports/v1/export/day_spec.rb +5 -5
- data/spec/integration/bulkexports/v1/export_configuration_spec.rb +4 -4
- data/spec/integration/bulkexports/v1/export_spec.rb +3 -3
- data/spec/integration/conversations/v1/conversation/message_spec.rb +38 -0
- data/spec/integration/conversations/v1/conversation/participant_spec.rb +56 -0
- data/spec/integration/conversations/v1/conversation_spec.rb +30 -0
- data/spec/integration/events/v1/sink/sink_test_spec.rb +42 -0
- data/spec/integration/events/v1/sink/sink_validate_spec.rb +44 -0
- data/spec/integration/events/v1/sink_spec.rb +217 -0
- data/spec/integration/events/v1/subscription/subscribed_event_spec.rb +212 -0
- data/spec/integration/events/v1/subscription_spec.rb +205 -0
- data/spec/integration/messaging/v1/deactivation_spec.rb +40 -0
- data/spec/integration/numbers/v2/regulatory_compliance/end_user_spec.rb +27 -0
- data/spec/integration/studio/v1/flow/execution/execution_step_spec.rb +1 -0
- data/spec/integration/studio/v2/flow/execution/execution_step_spec.rb +1 -0
- data/spec/integration/supersim/v1/usage_record_spec.rb +463 -18
- data/spec/integration/trunking/v1/trunk_spec.rb +4 -0
- data/spec/integration/verify/v2/service/access_token_spec.rb +1 -1
- data/spec/integration/verify/v2/service/entity/challenge_spec.rb +8 -8
- data/spec/integration/video/v1/room_spec.rb +37 -0
- data/spec/integration/wireless/v1/sim/data_session_spec.rb +2 -2
- data/spec/spec_helper.rb +1 -1
- metadata +24 -2
@@ -134,7 +134,7 @@ module Twilio
|
|
134
134
|
})
|
135
135
|
headers = Twilio::Values.of({'Twilio-Sandbox-Mode' => twilio_sandbox_mode, })
|
136
136
|
|
137
|
-
response = @version.page('GET', @uri, params, headers: headers)
|
137
|
+
response = @version.page('GET', @uri, params: params, headers: headers)
|
138
138
|
|
139
139
|
FactorPage.new(@version, response, @solution)
|
140
140
|
end
|
@@ -34,6 +34,8 @@ module Twilio
|
|
34
34
|
# be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164).
|
35
35
|
# @param [String] channel The verification method to use. Can be:
|
36
36
|
# [`email`](https://www.twilio.com/docs/verify/email), `sms` or `call`.
|
37
|
+
# @param [String] custom_friendly_name A custom user defined friendly name that
|
38
|
+
# overwrites the existing one in the verification message
|
37
39
|
# @param [String] custom_message The text of a custom message to use for the
|
38
40
|
# verification.
|
39
41
|
# @param [String] send_digits The digits to send after a phone call is answered,
|
@@ -61,10 +63,11 @@ module Twilio
|
|
61
63
|
# @param [String] app_hash Your [App
|
62
64
|
# Hash](https://developers.google.com/identity/sms-retriever/verify#computing_your_apps_hash_string) to be appended at the end of your verification SMS body. Applies only to SMS. Example SMS body: `<#> Your AppName verification code is: 1234 He42w354ol9`.
|
63
65
|
# @return [VerificationInstance] Created VerificationInstance
|
64
|
-
def create(to: nil, channel: nil, custom_message: :unset, send_digits: :unset, locale: :unset, custom_code: :unset, amount: :unset, payee: :unset, rate_limits: :unset, channel_configuration: :unset, app_hash: :unset)
|
66
|
+
def create(to: nil, channel: nil, custom_friendly_name: :unset, custom_message: :unset, send_digits: :unset, locale: :unset, custom_code: :unset, amount: :unset, payee: :unset, rate_limits: :unset, channel_configuration: :unset, app_hash: :unset)
|
65
67
|
data = Twilio::Values.of({
|
66
68
|
'To' => to,
|
67
69
|
'Channel' => channel,
|
70
|
+
'CustomFriendlyName' => custom_friendly_name,
|
68
71
|
'CustomMessage' => custom_message,
|
69
72
|
'SendDigits' => send_digits,
|
70
73
|
'Locale' => locale,
|
@@ -12,8 +12,6 @@ module Twilio
|
|
12
12
|
class V1 < Version
|
13
13
|
class RoomContext < InstanceContext
|
14
14
|
class ParticipantContext < InstanceContext
|
15
|
-
##
|
16
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
17
15
|
class SubscribeRulesList < ListResource
|
18
16
|
##
|
19
17
|
# Initialize the SubscribeRulesList
|
@@ -71,8 +69,6 @@ module Twilio
|
|
71
69
|
end
|
72
70
|
end
|
73
71
|
|
74
|
-
##
|
75
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
76
72
|
class SubscribeRulesPage < Page
|
77
73
|
##
|
78
74
|
# Initialize the SubscribeRulesPage
|
@@ -107,8 +103,6 @@ module Twilio
|
|
107
103
|
end
|
108
104
|
end
|
109
105
|
|
110
|
-
##
|
111
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
112
106
|
class SubscribeRulesInstance < InstanceResource
|
113
107
|
##
|
114
108
|
# Initialize the SubscribeRulesInstance
|
@@ -31,10 +31,6 @@ module Twilio
|
|
31
31
|
# Lists DataSessionInstance records from the API as a list.
|
32
32
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
33
33
|
# memory before returning.
|
34
|
-
# @param [Time] end_ The date that the record ended, given as GMT in [ISO
|
35
|
-
# 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.
|
36
|
-
# @param [Time] start The date that the Data Session started, given as GMT in [ISO
|
37
|
-
# 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.
|
38
34
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
39
35
|
# guarantees to never return more than limit. Default is no limit
|
40
36
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -42,18 +38,14 @@ module Twilio
|
|
42
38
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
43
39
|
# efficient page size, i.e. min(limit, 1000)
|
44
40
|
# @return [Array] Array of up to limit results
|
45
|
-
def list(
|
46
|
-
self.stream(
|
41
|
+
def list(limit: nil, page_size: nil)
|
42
|
+
self.stream(limit: limit, page_size: page_size).entries
|
47
43
|
end
|
48
44
|
|
49
45
|
##
|
50
46
|
# Streams DataSessionInstance records from the API as an Enumerable.
|
51
47
|
# This operation lazily loads records as efficiently as possible until the limit
|
52
48
|
# is reached.
|
53
|
-
# @param [Time] end_ The date that the record ended, given as GMT in [ISO
|
54
|
-
# 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.
|
55
|
-
# @param [Time] start The date that the Data Session started, given as GMT in [ISO
|
56
|
-
# 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.
|
57
49
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
58
50
|
# guarantees to never return more than limit. Default is no limit.
|
59
51
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -61,10 +53,10 @@ module Twilio
|
|
61
53
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
62
54
|
# efficient page size, i.e. min(limit, 1000)
|
63
55
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
64
|
-
def stream(
|
56
|
+
def stream(limit: nil, page_size: nil)
|
65
57
|
limits = @version.read_limits(limit, page_size)
|
66
58
|
|
67
|
-
page = self.page(
|
59
|
+
page = self.page(page_size: limits[:page_size], )
|
68
60
|
|
69
61
|
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
70
62
|
end
|
@@ -86,24 +78,18 @@ module Twilio
|
|
86
78
|
##
|
87
79
|
# Retrieve a single page of DataSessionInstance records from the API.
|
88
80
|
# Request is executed immediately.
|
89
|
-
# @param [Time] end_ The date that the record ended, given as GMT in [ISO
|
90
|
-
# 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.
|
91
|
-
# @param [Time] start The date that the Data Session started, given as GMT in [ISO
|
92
|
-
# 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.
|
93
81
|
# @param [String] page_token PageToken provided by the API
|
94
82
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
95
83
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
96
84
|
# @return [Page] Page of DataSessionInstance
|
97
|
-
def page(
|
85
|
+
def page(page_token: :unset, page_number: :unset, page_size: :unset)
|
98
86
|
params = Twilio::Values.of({
|
99
|
-
'End' => Twilio.serialize_iso8601_datetime(end_),
|
100
|
-
'Start' => Twilio.serialize_iso8601_datetime(start),
|
101
87
|
'PageToken' => page_token,
|
102
88
|
'Page' => page_number,
|
103
89
|
'PageSize' => page_size,
|
104
90
|
})
|
105
91
|
|
106
|
-
response = @version.page('GET', @uri, params)
|
92
|
+
response = @version.page('GET', @uri, params: params)
|
107
93
|
|
108
94
|
DataSessionPage.new(@version, response, @solution)
|
109
95
|
end
|
data/lib/twilio-ruby/version.rb
CHANGED
@@ -0,0 +1,166 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'Version Action Methods' do
|
4
|
+
it 'receives fetch responses' do
|
5
|
+
@holodeck.mock(
|
6
|
+
Twilio::Response.new(
|
7
|
+
200,
|
8
|
+
'{
|
9
|
+
"caller_name": null,
|
10
|
+
"carrier": null,
|
11
|
+
"fraud": null,
|
12
|
+
"add_ons": null,
|
13
|
+
"country_code": "US",
|
14
|
+
"national_format": "(510) 867-5310",
|
15
|
+
"phone_number": "+15108675310",
|
16
|
+
"url": "https://lookups.twilio.com/v1/PhoneNumbers/+15108675310"
|
17
|
+
}'
|
18
|
+
)
|
19
|
+
)
|
20
|
+
actual = @client.lookups.v1.phone_numbers('+15017122661').fetch(type: 'sms')
|
21
|
+
expect(actual).to_not eq(nil)
|
22
|
+
end
|
23
|
+
|
24
|
+
it 'receives create responses' do
|
25
|
+
@holodeck.mock(
|
26
|
+
Twilio::Response.new(
|
27
|
+
201,
|
28
|
+
'{
|
29
|
+
"auth_token": "auth_token",
|
30
|
+
"date_created": "Thu, 30 Jul 2015 20:00:00 +0000",
|
31
|
+
"date_updated": "Thu, 30 Jul 2015 20:00:00 +0000",
|
32
|
+
"friendly_name": "friendly_name",
|
33
|
+
"owner_account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
34
|
+
"sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
35
|
+
"status": "active",
|
36
|
+
"subresource_uris": {
|
37
|
+
"available_phone_numbers": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/AvailablePhoneNumbers.json",
|
38
|
+
"calls": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Calls.json",
|
39
|
+
"conferences": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences.json",
|
40
|
+
"incoming_phone_numbers": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IncomingPhoneNumbers.json",
|
41
|
+
"notifications": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications.json",
|
42
|
+
"outgoing_caller_ids": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OutgoingCallerIds.json",
|
43
|
+
"recordings": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Recordings.json",
|
44
|
+
"transcriptions": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Transcriptions.json",
|
45
|
+
"addresses": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Addresses.json",
|
46
|
+
"signing_keys": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SigningKeys.json",
|
47
|
+
"connect_apps": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/ConnectApps.json",
|
48
|
+
"sip": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SIP.json",
|
49
|
+
"authorized_connect_apps": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/AuthorizedConnectApps.json",
|
50
|
+
"usage": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Usage.json",
|
51
|
+
"keys": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Keys.json",
|
52
|
+
"applications": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Applications.json",
|
53
|
+
"short_codes": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SMS/ShortCodes.json",
|
54
|
+
"queues": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Queues.json",
|
55
|
+
"messages": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Messages.json",
|
56
|
+
"balance": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Balance.json"
|
57
|
+
},
|
58
|
+
"type": "Full",
|
59
|
+
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json"
|
60
|
+
}'
|
61
|
+
)
|
62
|
+
)
|
63
|
+
actual = @client.api.v2010.accounts.create(friendly_name: 'friendly_name')
|
64
|
+
expect(actual).to_not eq(nil)
|
65
|
+
end
|
66
|
+
|
67
|
+
it 'receives update responses' do
|
68
|
+
@holodeck.mock(
|
69
|
+
Twilio::Response.new(
|
70
|
+
200,
|
71
|
+
'{
|
72
|
+
"auth_token": "auth_token",
|
73
|
+
"date_created": "Thu, 30 Jul 2015 20:00:00 +0000",
|
74
|
+
"date_updated": "Thu, 30 Jul 2015 20:00:00 +0000",
|
75
|
+
"friendly_name": "friendly_name",
|
76
|
+
"owner_account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
77
|
+
"sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
78
|
+
"status": "active",
|
79
|
+
"subresource_uris": {
|
80
|
+
"available_phone_numbers": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/AvailablePhoneNumbers.json",
|
81
|
+
"calls": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Calls.json",
|
82
|
+
"conferences": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences.json",
|
83
|
+
"incoming_phone_numbers": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IncomingPhoneNumbers.json",
|
84
|
+
"notifications": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications.json",
|
85
|
+
"outgoing_caller_ids": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OutgoingCallerIds.json",
|
86
|
+
"recordings": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Recordings.json",
|
87
|
+
"transcriptions": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Transcriptions.json",
|
88
|
+
"addresses": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Addresses.json",
|
89
|
+
"signing_keys": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SigningKeys.json",
|
90
|
+
"connect_apps": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/ConnectApps.json",
|
91
|
+
"sip": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SIP.json",
|
92
|
+
"authorized_connect_apps": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/AuthorizedConnectApps.json",
|
93
|
+
"usage": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Usage.json",
|
94
|
+
"keys": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Keys.json",
|
95
|
+
"applications": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Applications.json",
|
96
|
+
"short_codes": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SMS/ShortCodes.json",
|
97
|
+
"queues": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Queues.json",
|
98
|
+
"messages": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Messages.json",
|
99
|
+
"balance": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Balance.json"
|
100
|
+
},
|
101
|
+
"type": "Full",
|
102
|
+
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json"
|
103
|
+
}'
|
104
|
+
)
|
105
|
+
)
|
106
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update(friendly_name: 'friendly_name')
|
107
|
+
expect(actual).to_not eq(nil)
|
108
|
+
end
|
109
|
+
|
110
|
+
it 'receives read_full responses' do
|
111
|
+
@holodeck.mock(
|
112
|
+
Twilio::Response.new(
|
113
|
+
200,
|
114
|
+
'{
|
115
|
+
"first_page_uri": "/2010-04-01/Accounts.json?FriendlyName=friendly_name&Status=active&PageSize=50&Page=0",
|
116
|
+
"end": 0,
|
117
|
+
"previous_page_uri": null,
|
118
|
+
"accounts": [
|
119
|
+
{
|
120
|
+
"auth_token": "auth_token",
|
121
|
+
"date_created": "Thu, 30 Jul 2015 20:00:00 +0000",
|
122
|
+
"date_updated": "Thu, 30 Jul 2015 20:00:00 +0000",
|
123
|
+
"friendly_name": "friendly_name",
|
124
|
+
"owner_account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
125
|
+
"sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
126
|
+
"status": "active",
|
127
|
+
"subresource_uris": {
|
128
|
+
"available_phone_numbers": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/AvailablePhoneNumbers.json",
|
129
|
+
"calls": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Calls.json",
|
130
|
+
"conferences": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences.json",
|
131
|
+
"incoming_phone_numbers": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IncomingPhoneNumbers.json",
|
132
|
+
"notifications": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications.json",
|
133
|
+
"outgoing_caller_ids": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OutgoingCallerIds.json",
|
134
|
+
"recordings": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Recordings.json",
|
135
|
+
"transcriptions": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Transcriptions.json",
|
136
|
+
"addresses": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Addresses.json",
|
137
|
+
"signing_keys": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SigningKeys.json",
|
138
|
+
"connect_apps": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/ConnectApps.json",
|
139
|
+
"sip": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SIP.json",
|
140
|
+
"authorized_connect_apps": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/AuthorizedConnectApps.json",
|
141
|
+
"usage": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Usage.json",
|
142
|
+
"keys": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Keys.json",
|
143
|
+
"applications": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Applications.json",
|
144
|
+
"short_codes": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SMS/ShortCodes.json",
|
145
|
+
"queues": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Queues.json",
|
146
|
+
"messages": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Messages.json",
|
147
|
+
"balance": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Balance.json"
|
148
|
+
},
|
149
|
+
"type": "Full",
|
150
|
+
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json"
|
151
|
+
}
|
152
|
+
],
|
153
|
+
"uri": "/2010-04-01/Accounts.json?FriendlyName=friendly_name&Status=active&PageSize=50&Page=0",
|
154
|
+
"page_size": 50,
|
155
|
+
"start": 0,
|
156
|
+
"next_page_uri": null,
|
157
|
+
"page": 0
|
158
|
+
}'
|
159
|
+
)
|
160
|
+
)
|
161
|
+
|
162
|
+
actual = @client.api.v2010.accounts.list(friendly_name: 'friendly_name')
|
163
|
+
|
164
|
+
expect(actual).to_not eq(nil)
|
165
|
+
end
|
166
|
+
end
|