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
@@ -208,4 +208,31 @@ describe 'EndUser' do
|
|
208
208
|
|
209
209
|
expect(actual).to_not eq(nil)
|
210
210
|
end
|
211
|
+
|
212
|
+
it "can delete" do
|
213
|
+
@holodeck.mock(Twilio::Response.new(500, ''))
|
214
|
+
|
215
|
+
expect {
|
216
|
+
@client.numbers.v2.regulatory_compliance \
|
217
|
+
.end_users('ITXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
218
|
+
}.to raise_exception(Twilio::REST::TwilioError)
|
219
|
+
|
220
|
+
expect(
|
221
|
+
@holodeck.has_request?(Holodeck::Request.new(
|
222
|
+
method: 'delete',
|
223
|
+
url: 'https://numbers.twilio.com/v2/RegulatoryCompliance/EndUsers/ITXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
224
|
+
))).to eq(true)
|
225
|
+
end
|
226
|
+
|
227
|
+
it "receives delete responses" do
|
228
|
+
@holodeck.mock(Twilio::Response.new(
|
229
|
+
204,
|
230
|
+
nil,
|
231
|
+
))
|
232
|
+
|
233
|
+
actual = @client.numbers.v2.regulatory_compliance \
|
234
|
+
.end_users('ITXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
235
|
+
|
236
|
+
expect(actual).to eq(true)
|
237
|
+
end
|
211
238
|
end
|
@@ -76,6 +76,7 @@ describe 'ExecutionStep' do
|
|
76
76
|
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
77
77
|
"flow_sid": "FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
78
78
|
"execution_sid": "FNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
79
|
+
"parent_step_sid": null,
|
79
80
|
"name": "incomingRequest",
|
80
81
|
"context": {},
|
81
82
|
"transitioned_from": "Trigger",
|
@@ -76,6 +76,7 @@ describe 'ExecutionStep' do
|
|
76
76
|
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
77
77
|
"flow_sid": "FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
78
78
|
"execution_sid": "FNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
79
|
+
"parent_step_sid": null,
|
79
80
|
"name": "incomingRequest",
|
80
81
|
"context": {},
|
81
82
|
"transitioned_from": "Trigger",
|
@@ -38,7 +38,10 @@ describe 'UsageRecord' do
|
|
38
38
|
"data_upload": 1000,
|
39
39
|
"data_download": 1000,
|
40
40
|
"data_total": 2000,
|
41
|
-
"sim_sid": null
|
41
|
+
"sim_sid": null,
|
42
|
+
"fleet_sid": null,
|
43
|
+
"network_sid": null,
|
44
|
+
"iso_country": null
|
42
45
|
}
|
43
46
|
],
|
44
47
|
"meta": {
|
@@ -67,25 +70,31 @@ describe 'UsageRecord' do
|
|
67
70
|
"usage_records": [
|
68
71
|
{
|
69
72
|
"period": {
|
70
|
-
"start_time": "2019-05-
|
71
|
-
"end_time": "2019-05-
|
73
|
+
"start_time": "2019-05-03T00:00:00Z",
|
74
|
+
"end_time": "2019-05-04T00:00:00Z"
|
72
75
|
},
|
73
76
|
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
74
77
|
"data_upload": 1000,
|
75
78
|
"data_download": 1000,
|
76
79
|
"data_total": 2000,
|
77
|
-
"sim_sid": null
|
80
|
+
"sim_sid": null,
|
81
|
+
"fleet_sid": null,
|
82
|
+
"network_sid": null,
|
83
|
+
"iso_country": null
|
78
84
|
},
|
79
85
|
{
|
80
86
|
"period": {
|
81
|
-
"start_time": "2019-05-
|
82
|
-
"end_time": "2019-05-
|
87
|
+
"start_time": "2019-05-02T00:00:00Z",
|
88
|
+
"end_time": "2019-05-03T00:00:00Z"
|
83
89
|
},
|
84
90
|
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
85
91
|
"data_upload": 1000,
|
86
92
|
"data_download": 1000,
|
87
93
|
"data_total": 2000,
|
88
|
-
"sim_sid": null
|
94
|
+
"sim_sid": null,
|
95
|
+
"fleet_sid": null,
|
96
|
+
"network_sid": null,
|
97
|
+
"iso_country": null
|
89
98
|
}
|
90
99
|
],
|
91
100
|
"meta": {
|
@@ -114,25 +123,31 @@ describe 'UsageRecord' do
|
|
114
123
|
"usage_records": [
|
115
124
|
{
|
116
125
|
"period": {
|
117
|
-
"start_time": "2019-05-
|
118
|
-
"end_time": "2019-05-
|
126
|
+
"start_time": "2019-05-01T01:00:00Z",
|
127
|
+
"end_time": "2019-05-01T02:00:00Z"
|
119
128
|
},
|
120
129
|
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
121
130
|
"data_upload": 1000,
|
122
131
|
"data_download": 1000,
|
123
132
|
"data_total": 2000,
|
124
|
-
"sim_sid": null
|
133
|
+
"sim_sid": null,
|
134
|
+
"fleet_sid": null,
|
135
|
+
"network_sid": null,
|
136
|
+
"iso_country": null
|
125
137
|
},
|
126
138
|
{
|
127
139
|
"period": {
|
128
|
-
"start_time": "2019-05-
|
129
|
-
"end_time": "2019-05-
|
140
|
+
"start_time": "2019-05-01T00:00:00Z",
|
141
|
+
"end_time": "2019-05-01T01:00:00Z"
|
130
142
|
},
|
131
143
|
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
132
144
|
"data_upload": 1000,
|
133
145
|
"data_download": 1000,
|
134
146
|
"data_total": 2000,
|
135
|
-
"sim_sid": null
|
147
|
+
"sim_sid": null,
|
148
|
+
"fleet_sid": null,
|
149
|
+
"network_sid": null,
|
150
|
+
"iso_country": null
|
136
151
|
}
|
137
152
|
],
|
138
153
|
"meta": {
|
@@ -161,15 +176,163 @@ describe 'UsageRecord' do
|
|
161
176
|
"usage_records": [
|
162
177
|
{
|
163
178
|
"period": {
|
164
|
-
"start_time": "2019-05-
|
179
|
+
"start_time": "2019-05-03T00:00:00Z",
|
180
|
+
"end_time": "2019-05-04T00:00:00Z"
|
181
|
+
},
|
182
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
183
|
+
"data_upload": 1000,
|
184
|
+
"data_download": 1000,
|
185
|
+
"data_total": 2000,
|
186
|
+
"sim_sid": "HSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
187
|
+
"fleet_sid": null,
|
188
|
+
"network_sid": null,
|
189
|
+
"iso_country": null
|
190
|
+
},
|
191
|
+
{
|
192
|
+
"period": {
|
193
|
+
"start_time": "2019-05-02T00:00:00Z",
|
194
|
+
"end_time": "2019-05-03T00:00:00Z"
|
195
|
+
},
|
196
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
197
|
+
"data_upload": 1000,
|
198
|
+
"data_download": 1000,
|
199
|
+
"data_total": 2000,
|
200
|
+
"sim_sid": "HSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
201
|
+
"fleet_sid": null,
|
202
|
+
"network_sid": null,
|
203
|
+
"iso_country": null
|
204
|
+
}
|
205
|
+
],
|
206
|
+
"meta": {
|
207
|
+
"first_page_url": "https://supersim.twilio.com/v1/UsageRecords?Sim=HSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&Granularity=day&PageSize=50&Page=0",
|
208
|
+
"key": "usage_records",
|
209
|
+
"next_page_url": null,
|
210
|
+
"page": 0,
|
211
|
+
"page_size": 50,
|
212
|
+
"previous_page_url": null,
|
213
|
+
"url": "https://supersim.twilio.com/v1/UsageRecords?Sim=HSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&Granularity=day&PageSize=50&Page=0"
|
214
|
+
}
|
215
|
+
}
|
216
|
+
]
|
217
|
+
))
|
218
|
+
|
219
|
+
actual = @client.supersim.v1.usage_records.list()
|
220
|
+
|
221
|
+
expect(actual).to_not eq(nil)
|
222
|
+
end
|
223
|
+
|
224
|
+
it "receives read_day_network_filter responses" do
|
225
|
+
@holodeck.mock(Twilio::Response.new(
|
226
|
+
200,
|
227
|
+
%q[
|
228
|
+
{
|
229
|
+
"usage_records": [
|
230
|
+
{
|
231
|
+
"period": {
|
232
|
+
"start_time": "2019-05-03T00:00:00Z",
|
233
|
+
"end_time": "2019-05-04T00:00:00Z"
|
234
|
+
},
|
235
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
236
|
+
"data_upload": 1000,
|
237
|
+
"data_download": 1000,
|
238
|
+
"data_total": 2000,
|
239
|
+
"sim_sid": null,
|
240
|
+
"fleet_sid": null,
|
241
|
+
"network_sid": "HWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
242
|
+
"iso_country": null
|
243
|
+
},
|
244
|
+
{
|
245
|
+
"period": {
|
246
|
+
"start_time": "2019-05-02T00:00:00Z",
|
165
247
|
"end_time": "2019-05-03T00:00:00Z"
|
166
248
|
},
|
167
249
|
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
168
250
|
"data_upload": 1000,
|
169
251
|
"data_download": 1000,
|
170
252
|
"data_total": 2000,
|
171
|
-
"sim_sid":
|
253
|
+
"sim_sid": null,
|
254
|
+
"fleet_sid": null,
|
255
|
+
"network_sid": "HWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
256
|
+
"iso_country": null
|
257
|
+
}
|
258
|
+
],
|
259
|
+
"meta": {
|
260
|
+
"first_page_url": "https://supersim.twilio.com/v1/UsageRecords?Network=HWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&Granularity=day&PageSize=50&Page=0",
|
261
|
+
"key": "usage_records",
|
262
|
+
"next_page_url": null,
|
263
|
+
"page": 0,
|
264
|
+
"page_size": 50,
|
265
|
+
"previous_page_url": null,
|
266
|
+
"url": "https://supersim.twilio.com/v1/UsageRecords?Network=HWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&Granularity=day&PageSize=50&Page=0"
|
267
|
+
}
|
268
|
+
}
|
269
|
+
]
|
270
|
+
))
|
271
|
+
|
272
|
+
actual = @client.supersim.v1.usage_records.list()
|
273
|
+
|
274
|
+
expect(actual).to_not eq(nil)
|
275
|
+
end
|
276
|
+
|
277
|
+
it "receives read_day_country_filter responses" do
|
278
|
+
@holodeck.mock(Twilio::Response.new(
|
279
|
+
200,
|
280
|
+
%q[
|
281
|
+
{
|
282
|
+
"usage_records": [
|
283
|
+
{
|
284
|
+
"period": {
|
285
|
+
"start_time": "2019-05-03T00:00:00Z",
|
286
|
+
"end_time": "2019-05-04T00:00:00Z"
|
287
|
+
},
|
288
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
289
|
+
"data_upload": 1000,
|
290
|
+
"data_download": 1000,
|
291
|
+
"data_total": 2000,
|
292
|
+
"sim_sid": null,
|
293
|
+
"fleet_sid": null,
|
294
|
+
"network_sid": null,
|
295
|
+
"iso_country": "FR"
|
172
296
|
},
|
297
|
+
{
|
298
|
+
"period": {
|
299
|
+
"start_time": "2019-05-02T00:00:00Z",
|
300
|
+
"end_time": "2019-05-03T00:00:00Z"
|
301
|
+
},
|
302
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
303
|
+
"data_upload": 1000,
|
304
|
+
"data_download": 1000,
|
305
|
+
"data_total": 2000,
|
306
|
+
"sim_sid": null,
|
307
|
+
"fleet_sid": null,
|
308
|
+
"network_sid": null,
|
309
|
+
"iso_country": "FR"
|
310
|
+
}
|
311
|
+
],
|
312
|
+
"meta": {
|
313
|
+
"first_page_url": "https://supersim.twilio.com/v1/UsageRecords?IsoCountry=FR&Granularity=day&PageSize=50&Page=0",
|
314
|
+
"key": "usage_records",
|
315
|
+
"next_page_url": null,
|
316
|
+
"page": 0,
|
317
|
+
"page_size": 50,
|
318
|
+
"previous_page_url": null,
|
319
|
+
"url": "https://supersim.twilio.com/v1/UsageRecords?IsoCountry=FR&Granularity=day&PageSize=50&Page=0"
|
320
|
+
}
|
321
|
+
}
|
322
|
+
]
|
323
|
+
))
|
324
|
+
|
325
|
+
actual = @client.supersim.v1.usage_records.list()
|
326
|
+
|
327
|
+
expect(actual).to_not eq(nil)
|
328
|
+
end
|
329
|
+
|
330
|
+
it "receives read_day_fleet_filter responses" do
|
331
|
+
@holodeck.mock(Twilio::Response.new(
|
332
|
+
200,
|
333
|
+
%q[
|
334
|
+
{
|
335
|
+
"usage_records": [
|
173
336
|
{
|
174
337
|
"period": {
|
175
338
|
"start_time": "2019-05-03T00:00:00Z",
|
@@ -179,17 +342,299 @@ describe 'UsageRecord' do
|
|
179
342
|
"data_upload": 1000,
|
180
343
|
"data_download": 1000,
|
181
344
|
"data_total": 2000,
|
182
|
-
"sim_sid":
|
345
|
+
"sim_sid": null,
|
346
|
+
"fleet_sid": "HFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
347
|
+
"network_sid": null,
|
348
|
+
"iso_country": null
|
349
|
+
},
|
350
|
+
{
|
351
|
+
"period": {
|
352
|
+
"start_time": "2019-05-02T00:00:00Z",
|
353
|
+
"end_time": "2019-05-03T00:00:00Z"
|
354
|
+
},
|
355
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
356
|
+
"data_upload": 1000,
|
357
|
+
"data_download": 1000,
|
358
|
+
"data_total": 2000,
|
359
|
+
"sim_sid": null,
|
360
|
+
"fleet_sid": "HFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
361
|
+
"network_sid": null,
|
362
|
+
"iso_country": null
|
183
363
|
}
|
184
364
|
],
|
185
365
|
"meta": {
|
186
|
-
"first_page_url": "https://supersim.twilio.com/v1/UsageRecords?
|
366
|
+
"first_page_url": "https://supersim.twilio.com/v1/UsageRecords?Fleet=HFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&Granularity=day&PageSize=50&Page=0",
|
187
367
|
"key": "usage_records",
|
188
368
|
"next_page_url": null,
|
189
369
|
"page": 0,
|
190
370
|
"page_size": 50,
|
191
371
|
"previous_page_url": null,
|
192
|
-
"url": "https://supersim.twilio.com/v1/UsageRecords?
|
372
|
+
"url": "https://supersim.twilio.com/v1/UsageRecords?Fleet=HFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&Granularity=day&PageSize=50&Page=0"
|
373
|
+
}
|
374
|
+
}
|
375
|
+
]
|
376
|
+
))
|
377
|
+
|
378
|
+
actual = @client.supersim.v1.usage_records.list()
|
379
|
+
|
380
|
+
expect(actual).to_not eq(nil)
|
381
|
+
end
|
382
|
+
|
383
|
+
it "receives read_day_group_by_sim responses" do
|
384
|
+
@holodeck.mock(Twilio::Response.new(
|
385
|
+
200,
|
386
|
+
%q[
|
387
|
+
{
|
388
|
+
"usage_records": [
|
389
|
+
{
|
390
|
+
"period": {
|
391
|
+
"start_time": "2019-05-03T00:00:00Z",
|
392
|
+
"end_time": "2019-05-04T00:00:00Z"
|
393
|
+
},
|
394
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
395
|
+
"data_upload": 1000,
|
396
|
+
"data_download": 1000,
|
397
|
+
"data_total": 2000,
|
398
|
+
"sim_sid": "HSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
399
|
+
"fleet_sid": null,
|
400
|
+
"network_sid": null,
|
401
|
+
"iso_country": null
|
402
|
+
},
|
403
|
+
{
|
404
|
+
"period": {
|
405
|
+
"start_time": "2019-05-03T00:00:00Z",
|
406
|
+
"end_time": "2019-05-04T00:00:00Z"
|
407
|
+
},
|
408
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
409
|
+
"data_upload": 500,
|
410
|
+
"data_download": 1500,
|
411
|
+
"data_total": 2000,
|
412
|
+
"sim_sid": "HSbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
|
413
|
+
"fleet_sid": null,
|
414
|
+
"network_sid": null,
|
415
|
+
"iso_country": null
|
416
|
+
}
|
417
|
+
],
|
418
|
+
"meta": {
|
419
|
+
"first_page_url": "https://supersim.twilio.com/v1/UsageRecords?Group=sim&PageSize=50&Page=0",
|
420
|
+
"key": "usage_records",
|
421
|
+
"next_page_url": null,
|
422
|
+
"page": 0,
|
423
|
+
"page_size": 50,
|
424
|
+
"previous_page_url": null,
|
425
|
+
"url": "https://supersim.twilio.com/v1/UsageRecords?Group=sim&PageSize=50&Page=0"
|
426
|
+
}
|
427
|
+
}
|
428
|
+
]
|
429
|
+
))
|
430
|
+
|
431
|
+
actual = @client.supersim.v1.usage_records.list()
|
432
|
+
|
433
|
+
expect(actual).to_not eq(nil)
|
434
|
+
end
|
435
|
+
|
436
|
+
it "receives read_day_group_by_fleet responses" do
|
437
|
+
@holodeck.mock(Twilio::Response.new(
|
438
|
+
200,
|
439
|
+
%q[
|
440
|
+
{
|
441
|
+
"usage_records": [
|
442
|
+
{
|
443
|
+
"period": {
|
444
|
+
"start_time": "2019-05-03T00:00:00Z",
|
445
|
+
"end_time": "2019-05-04T00:00:00Z"
|
446
|
+
},
|
447
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
448
|
+
"data_upload": 1000,
|
449
|
+
"data_download": 1000,
|
450
|
+
"data_total": 2000,
|
451
|
+
"sim_sid": null,
|
452
|
+
"fleet_sid": "HFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
453
|
+
"network_sid": null,
|
454
|
+
"iso_country": null
|
455
|
+
},
|
456
|
+
{
|
457
|
+
"period": {
|
458
|
+
"start_time": "2019-05-03T00:00:00Z",
|
459
|
+
"end_time": "2019-05-04T00:00:00Z"
|
460
|
+
},
|
461
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
462
|
+
"data_upload": 500,
|
463
|
+
"data_download": 1500,
|
464
|
+
"data_total": 2000,
|
465
|
+
"sim_sid": null,
|
466
|
+
"fleet_sid": "HFbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
|
467
|
+
"network_sid": null,
|
468
|
+
"iso_country": null
|
469
|
+
}
|
470
|
+
],
|
471
|
+
"meta": {
|
472
|
+
"first_page_url": "https://supersim.twilio.com/v1/UsageRecords?Group=fleet&PageSize=50&Page=0",
|
473
|
+
"key": "usage_records",
|
474
|
+
"next_page_url": null,
|
475
|
+
"page": 0,
|
476
|
+
"page_size": 50,
|
477
|
+
"previous_page_url": null,
|
478
|
+
"url": "https://supersim.twilio.com/v1/UsageRecords?Group=fleet&PageSize=50&Page=0"
|
479
|
+
}
|
480
|
+
}
|
481
|
+
]
|
482
|
+
))
|
483
|
+
|
484
|
+
actual = @client.supersim.v1.usage_records.list()
|
485
|
+
|
486
|
+
expect(actual).to_not eq(nil)
|
487
|
+
end
|
488
|
+
|
489
|
+
it "receives read_day_group_by_network responses" do
|
490
|
+
@holodeck.mock(Twilio::Response.new(
|
491
|
+
200,
|
492
|
+
%q[
|
493
|
+
{
|
494
|
+
"usage_records": [
|
495
|
+
{
|
496
|
+
"period": {
|
497
|
+
"start_time": "2019-05-03T00:00:00Z",
|
498
|
+
"end_time": "2019-05-04T00:00:00Z"
|
499
|
+
},
|
500
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
501
|
+
"data_upload": 1000,
|
502
|
+
"data_download": 1000,
|
503
|
+
"data_total": 2000,
|
504
|
+
"sim_sid": null,
|
505
|
+
"fleet_sid": null,
|
506
|
+
"network_sid": "HWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
507
|
+
"iso_country": null
|
508
|
+
},
|
509
|
+
{
|
510
|
+
"period": {
|
511
|
+
"start_time": "2019-05-03T00:00:00Z",
|
512
|
+
"end_time": "2019-05-04T00:00:00Z"
|
513
|
+
},
|
514
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
515
|
+
"data_upload": 500,
|
516
|
+
"data_download": 1500,
|
517
|
+
"data_total": 2000,
|
518
|
+
"sim_sid": null,
|
519
|
+
"fleet_sid": null,
|
520
|
+
"network_sid": "HWbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
|
521
|
+
"iso_country": null
|
522
|
+
}
|
523
|
+
],
|
524
|
+
"meta": {
|
525
|
+
"first_page_url": "https://supersim.twilio.com/v1/UsageRecords?Group=network&PageSize=50&Page=0",
|
526
|
+
"key": "usage_records",
|
527
|
+
"next_page_url": null,
|
528
|
+
"page": 0,
|
529
|
+
"page_size": 50,
|
530
|
+
"previous_page_url": null,
|
531
|
+
"url": "https://supersim.twilio.com/v1/UsageRecords?Group=network&PageSize=50&Page=0"
|
532
|
+
}
|
533
|
+
}
|
534
|
+
]
|
535
|
+
))
|
536
|
+
|
537
|
+
actual = @client.supersim.v1.usage_records.list()
|
538
|
+
|
539
|
+
expect(actual).to_not eq(nil)
|
540
|
+
end
|
541
|
+
|
542
|
+
it "receives read_day_group_by_iso_country responses" do
|
543
|
+
@holodeck.mock(Twilio::Response.new(
|
544
|
+
200,
|
545
|
+
%q[
|
546
|
+
{
|
547
|
+
"usage_records": [
|
548
|
+
{
|
549
|
+
"period": {
|
550
|
+
"start_time": "2019-05-03T00:00:00Z",
|
551
|
+
"end_time": "2019-05-04T00:00:00Z"
|
552
|
+
},
|
553
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
554
|
+
"data_upload": 1000,
|
555
|
+
"data_download": 1000,
|
556
|
+
"data_total": 2000,
|
557
|
+
"sim_sid": null,
|
558
|
+
"fleet_sid": null,
|
559
|
+
"network_sid": null,
|
560
|
+
"iso_country": "FR"
|
561
|
+
},
|
562
|
+
{
|
563
|
+
"period": {
|
564
|
+
"start_time": "2019-05-03T00:00:00Z",
|
565
|
+
"end_time": "2019-05-04T00:00:00Z"
|
566
|
+
},
|
567
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
568
|
+
"data_upload": 500,
|
569
|
+
"data_download": 1500,
|
570
|
+
"data_total": 2000,
|
571
|
+
"sim_sid": null,
|
572
|
+
"fleet_sid": null,
|
573
|
+
"network_sid": null,
|
574
|
+
"iso_country": "US"
|
575
|
+
}
|
576
|
+
],
|
577
|
+
"meta": {
|
578
|
+
"first_page_url": "https://supersim.twilio.com/v1/UsageRecords?Group=isoCountry&PageSize=50&Page=0",
|
579
|
+
"key": "usage_records",
|
580
|
+
"next_page_url": null,
|
581
|
+
"page": 0,
|
582
|
+
"page_size": 50,
|
583
|
+
"previous_page_url": null,
|
584
|
+
"url": "https://supersim.twilio.com/v1/UsageRecords?Group=isoCountry&PageSize=50&Page=0"
|
585
|
+
}
|
586
|
+
}
|
587
|
+
]
|
588
|
+
))
|
589
|
+
|
590
|
+
actual = @client.supersim.v1.usage_records.list()
|
591
|
+
|
592
|
+
expect(actual).to_not eq(nil)
|
593
|
+
end
|
594
|
+
|
595
|
+
it "receives read_day_group_by_sim_and_filter_by_country responses" do
|
596
|
+
@holodeck.mock(Twilio::Response.new(
|
597
|
+
200,
|
598
|
+
%q[
|
599
|
+
{
|
600
|
+
"usage_records": [
|
601
|
+
{
|
602
|
+
"period": {
|
603
|
+
"start_time": "2019-05-03T00:00:00Z",
|
604
|
+
"end_time": "2019-05-04T00:00:00Z"
|
605
|
+
},
|
606
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
607
|
+
"data_upload": 1000,
|
608
|
+
"data_download": 1000,
|
609
|
+
"data_total": 2000,
|
610
|
+
"sim_sid": "HSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
611
|
+
"fleet_sid": null,
|
612
|
+
"network_sid": null,
|
613
|
+
"iso_country": "FR"
|
614
|
+
},
|
615
|
+
{
|
616
|
+
"period": {
|
617
|
+
"start_time": "2019-05-03T00:00:00Z",
|
618
|
+
"end_time": "2019-05-04T00:00:00Z"
|
619
|
+
},
|
620
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
621
|
+
"data_upload": 500,
|
622
|
+
"data_download": 1500,
|
623
|
+
"data_total": 2000,
|
624
|
+
"sim_sid": "HSbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
|
625
|
+
"fleet_sid": null,
|
626
|
+
"network_sid": null,
|
627
|
+
"iso_country": "FR"
|
628
|
+
}
|
629
|
+
],
|
630
|
+
"meta": {
|
631
|
+
"first_page_url": "https://supersim.twilio.com/v1/UsageRecords?IsoCountry=FR&Group=sim&PageSize=50&Page=0",
|
632
|
+
"key": "usage_records",
|
633
|
+
"next_page_url": null,
|
634
|
+
"page": 0,
|
635
|
+
"page_size": 50,
|
636
|
+
"previous_page_url": null,
|
637
|
+
"url": "https://supersim.twilio.com/v1/UsageRecords?IsoCountry=FR&Group=sim&PageSize=50&Page=0"
|
193
638
|
}
|
194
639
|
}
|
195
640
|
]
|