twilio-ruby 5.39.0 → 5.40.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.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
@@ -29,25 +29,26 @@ module Twilio
|
|
29
29
|
# Create the FleetInstance
|
30
30
|
# @param [String] network_access_profile The SID or unique name of the Network
|
31
31
|
# Access Profile that will control which cellular networks the Fleet's SIMs can
|
32
|
-
# connect to
|
32
|
+
# connect to.
|
33
33
|
# @param [String] unique_name An application-defined string that uniquely
|
34
34
|
# identifies the resource. It can be used in place of the resource's `sid` in the
|
35
35
|
# URL to address the resource.
|
36
36
|
# @param [Boolean] data_enabled Defines whether SIMs in the Fleet are capable of
|
37
|
-
# using 2G/3G/4G/LTE/CAT-M data connectivity
|
37
|
+
# using 2G/3G/4G/LTE/CAT-M data connectivity. Defaults to `true`.
|
38
38
|
# @param [String] data_limit The total data usage (download and upload combined)
|
39
39
|
# in Megabytes that each Sim resource assigned to the Fleet resource can consume
|
40
40
|
# during a billing period (normally one month). Value must be between 1MB (1) and
|
41
|
-
# 2TB (2,000,000).
|
41
|
+
# 2TB (2,000,000). Defaults to 1GB (1,000).
|
42
42
|
# @param [Boolean] commands_enabled Defines whether SIMs in the Fleet are capable
|
43
|
-
# of sending and receiving machine-to-machine SMS via Commands.
|
43
|
+
# of sending and receiving machine-to-machine SMS via Commands. Defaults to
|
44
|
+
# `true`.
|
44
45
|
# @param [String] commands_url The URL that will receive a webhook when a SIM in
|
45
46
|
# the Fleet originates a machine-to-machine SMS via Commands. Your server should
|
46
47
|
# respond with an HTTP status code in the 200 range; any response body will be
|
47
48
|
# ignored.
|
48
49
|
# @param [String] commands_method A string representing the HTTP method to use
|
49
|
-
# when making a request to `commands_url`. Can be one of POST or GET
|
50
|
-
# POST
|
50
|
+
# when making a request to `commands_url`. Can be one of `POST` or `GET`. Defaults
|
51
|
+
# to `POST`.
|
51
52
|
# @return [FleetInstance] Created FleetInstance
|
52
53
|
def create(network_access_profile: nil, unique_name: :unset, data_enabled: :unset, data_limit: :unset, commands_enabled: :unset, commands_url: :unset, commands_method: :unset)
|
53
54
|
data = Twilio::Values.of({
|
@@ -71,7 +72,7 @@ module Twilio
|
|
71
72
|
# memory before returning.
|
72
73
|
# @param [String] network_access_profile The SID or unique name of the Network
|
73
74
|
# Access Profile that controls which cellular networks the Fleet's SIMs can
|
74
|
-
# connect to
|
75
|
+
# connect to.
|
75
76
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
76
77
|
# guarantees to never return more than limit. Default is no limit
|
77
78
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -93,7 +94,7 @@ module Twilio
|
|
93
94
|
# is reached.
|
94
95
|
# @param [String] network_access_profile The SID or unique name of the Network
|
95
96
|
# Access Profile that controls which cellular networks the Fleet's SIMs can
|
96
|
-
# connect to
|
97
|
+
# connect to.
|
97
98
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
98
99
|
# guarantees to never return more than limit. Default is no limit.
|
99
100
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -128,7 +129,7 @@ module Twilio
|
|
128
129
|
# Request is executed immediately.
|
129
130
|
# @param [String] network_access_profile The SID or unique name of the Network
|
130
131
|
# Access Profile that controls which cellular networks the Fleet's SIMs can
|
131
|
-
# connect to
|
132
|
+
# connect to.
|
132
133
|
# @param [String] page_token PageToken provided by the API
|
133
134
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
134
135
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
@@ -141,7 +142,7 @@ module Twilio
|
|
141
142
|
'PageSize' => page_size,
|
142
143
|
})
|
143
144
|
|
144
|
-
response = @version.page('GET', @uri, params)
|
145
|
+
response = @version.page('GET', @uri, params: params)
|
145
146
|
|
146
147
|
FleetPage.new(@version, response, @solution)
|
147
148
|
end
|
@@ -229,7 +230,7 @@ module Twilio
|
|
229
230
|
# URL to address the resource.
|
230
231
|
# @param [String] network_access_profile The SID or unique name of the Network
|
231
232
|
# Access Profile that will control which cellular networks the Fleet's SIMs can
|
232
|
-
# connect to
|
233
|
+
# connect to.
|
233
234
|
# @return [FleetInstance] Updated FleetInstance
|
234
235
|
def update(unique_name: :unset, network_access_profile: :unset)
|
235
236
|
data = Twilio::Values.of({
|
@@ -394,7 +395,7 @@ module Twilio
|
|
394
395
|
# URL to address the resource.
|
395
396
|
# @param [String] network_access_profile The SID or unique name of the Network
|
396
397
|
# Access Profile that will control which cellular networks the Fleet's SIMs can
|
397
|
-
# connect to
|
398
|
+
# connect to.
|
398
399
|
# @return [FleetInstance] Updated FleetInstance
|
399
400
|
def update(unique_name: :unset, network_access_profile: :unset)
|
400
401
|
context.update(unique_name: unique_name, network_access_profile: network_access_profile, )
|
@@ -114,7 +114,7 @@ module Twilio
|
|
114
114
|
'PageSize' => page_size,
|
115
115
|
})
|
116
116
|
|
117
|
-
response = @version.page('GET', @uri, params)
|
117
|
+
response = @version.page('GET', @uri, params: params)
|
118
118
|
|
119
119
|
SimPage.new(@version, response, @solution)
|
120
120
|
end
|
@@ -206,9 +206,19 @@ module Twilio
|
|
206
206
|
# for more info.
|
207
207
|
# @param [String] fleet The SID or unique name of the Fleet to which the SIM
|
208
208
|
# resource should be assigned.
|
209
|
+
# @param [String] callback_url The URL we should call using the `callback_method`
|
210
|
+
# after an asynchronous update has finished.
|
211
|
+
# @param [String] callback_method The HTTP method we should use to call
|
212
|
+
# `callback_url`. Can be: `GET` or `POST` and the default is POST.
|
209
213
|
# @return [SimInstance] Updated SimInstance
|
210
|
-
def update(unique_name: :unset, status: :unset, fleet: :unset)
|
211
|
-
data = Twilio::Values.of({
|
214
|
+
def update(unique_name: :unset, status: :unset, fleet: :unset, callback_url: :unset, callback_method: :unset)
|
215
|
+
data = Twilio::Values.of({
|
216
|
+
'UniqueName' => unique_name,
|
217
|
+
'Status' => status,
|
218
|
+
'Fleet' => fleet,
|
219
|
+
'CallbackUrl' => callback_url,
|
220
|
+
'CallbackMethod' => callback_method,
|
221
|
+
})
|
212
222
|
|
213
223
|
payload = @version.update('POST', @uri, data: data)
|
214
224
|
|
@@ -343,9 +353,19 @@ module Twilio
|
|
343
353
|
# for more info.
|
344
354
|
# @param [String] fleet The SID or unique name of the Fleet to which the SIM
|
345
355
|
# resource should be assigned.
|
356
|
+
# @param [String] callback_url The URL we should call using the `callback_method`
|
357
|
+
# after an asynchronous update has finished.
|
358
|
+
# @param [String] callback_method The HTTP method we should use to call
|
359
|
+
# `callback_url`. Can be: `GET` or `POST` and the default is POST.
|
346
360
|
# @return [SimInstance] Updated SimInstance
|
347
|
-
def update(unique_name: :unset, status: :unset, fleet: :unset)
|
348
|
-
context.update(
|
361
|
+
def update(unique_name: :unset, status: :unset, fleet: :unset, callback_url: :unset, callback_method: :unset)
|
362
|
+
context.update(
|
363
|
+
unique_name: unique_name,
|
364
|
+
status: status,
|
365
|
+
fleet: fleet,
|
366
|
+
callback_url: callback_url,
|
367
|
+
callback_method: callback_method,
|
368
|
+
)
|
349
369
|
end
|
350
370
|
|
351
371
|
##
|
@@ -29,8 +29,19 @@ module Twilio
|
|
29
29
|
# Lists UsageRecordInstance records from the API as a list.
|
30
30
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
31
31
|
# memory before returning.
|
32
|
-
# @param [String] sim SID of a Sim resource. Only show UsageRecords
|
33
|
-
# usage incurred by this Super SIM.
|
32
|
+
# @param [String] sim SID or unique name of a Sim resource. Only show UsageRecords
|
33
|
+
# representing usage incurred by this Super SIM.
|
34
|
+
# @param [String] fleet SID or unique name of a Fleet resource. Only show
|
35
|
+
# UsageRecords representing usage for Super SIMs belonging to this Fleet resource
|
36
|
+
# at the time the usage occurred.
|
37
|
+
# @param [String] network SID of a Network resource. Only show UsageRecords
|
38
|
+
# representing usage on this network.
|
39
|
+
# @param [String] iso_country Alpha-2 ISO Country Code. Only show UsageRecords
|
40
|
+
# representing usage in this country.
|
41
|
+
# @param [usage_record.Group] group Dimension over which to aggregate usage
|
42
|
+
# records. Can be: `sim`, `fleet`, `network`, `isoCountry`. Default is to not
|
43
|
+
# aggregate across any of these dimensions, UsageRecords will be aggregated into
|
44
|
+
# the time buckets described by the `Granularity` parameter.
|
34
45
|
# @param [usage_record.Granularity] granularity Time-based grouping that
|
35
46
|
# UsageRecords should be aggregated by. Can be: `hour`, `day`, or `all`. Default
|
36
47
|
# is `all`. `all` returns one UsageRecord that describes the usage for the entire
|
@@ -48,9 +59,13 @@ module Twilio
|
|
48
59
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
49
60
|
# efficient page size, i.e. min(limit, 1000)
|
50
61
|
# @return [Array] Array of up to limit results
|
51
|
-
def list(sim: :unset, granularity: :unset, start_time: :unset, end_time: :unset, limit: nil, page_size: nil)
|
62
|
+
def list(sim: :unset, fleet: :unset, network: :unset, iso_country: :unset, group: :unset, granularity: :unset, start_time: :unset, end_time: :unset, limit: nil, page_size: nil)
|
52
63
|
self.stream(
|
53
64
|
sim: sim,
|
65
|
+
fleet: fleet,
|
66
|
+
network: network,
|
67
|
+
iso_country: iso_country,
|
68
|
+
group: group,
|
54
69
|
granularity: granularity,
|
55
70
|
start_time: start_time,
|
56
71
|
end_time: end_time,
|
@@ -63,8 +78,19 @@ module Twilio
|
|
63
78
|
# Streams UsageRecordInstance records from the API as an Enumerable.
|
64
79
|
# This operation lazily loads records as efficiently as possible until the limit
|
65
80
|
# is reached.
|
66
|
-
# @param [String] sim SID of a Sim resource. Only show UsageRecords
|
67
|
-
# usage incurred by this Super SIM.
|
81
|
+
# @param [String] sim SID or unique name of a Sim resource. Only show UsageRecords
|
82
|
+
# representing usage incurred by this Super SIM.
|
83
|
+
# @param [String] fleet SID or unique name of a Fleet resource. Only show
|
84
|
+
# UsageRecords representing usage for Super SIMs belonging to this Fleet resource
|
85
|
+
# at the time the usage occurred.
|
86
|
+
# @param [String] network SID of a Network resource. Only show UsageRecords
|
87
|
+
# representing usage on this network.
|
88
|
+
# @param [String] iso_country Alpha-2 ISO Country Code. Only show UsageRecords
|
89
|
+
# representing usage in this country.
|
90
|
+
# @param [usage_record.Group] group Dimension over which to aggregate usage
|
91
|
+
# records. Can be: `sim`, `fleet`, `network`, `isoCountry`. Default is to not
|
92
|
+
# aggregate across any of these dimensions, UsageRecords will be aggregated into
|
93
|
+
# the time buckets described by the `Granularity` parameter.
|
68
94
|
# @param [usage_record.Granularity] granularity Time-based grouping that
|
69
95
|
# UsageRecords should be aggregated by. Can be: `hour`, `day`, or `all`. Default
|
70
96
|
# is `all`. `all` returns one UsageRecord that describes the usage for the entire
|
@@ -82,11 +108,15 @@ module Twilio
|
|
82
108
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
83
109
|
# efficient page size, i.e. min(limit, 1000)
|
84
110
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
85
|
-
def stream(sim: :unset, granularity: :unset, start_time: :unset, end_time: :unset, limit: nil, page_size: nil)
|
111
|
+
def stream(sim: :unset, fleet: :unset, network: :unset, iso_country: :unset, group: :unset, granularity: :unset, start_time: :unset, end_time: :unset, limit: nil, page_size: nil)
|
86
112
|
limits = @version.read_limits(limit, page_size)
|
87
113
|
|
88
114
|
page = self.page(
|
89
115
|
sim: sim,
|
116
|
+
fleet: fleet,
|
117
|
+
network: network,
|
118
|
+
iso_country: iso_country,
|
119
|
+
group: group,
|
90
120
|
granularity: granularity,
|
91
121
|
start_time: start_time,
|
92
122
|
end_time: end_time,
|
@@ -113,8 +143,19 @@ module Twilio
|
|
113
143
|
##
|
114
144
|
# Retrieve a single page of UsageRecordInstance records from the API.
|
115
145
|
# Request is executed immediately.
|
116
|
-
# @param [String] sim SID of a Sim resource. Only show UsageRecords
|
117
|
-
# usage incurred by this Super SIM.
|
146
|
+
# @param [String] sim SID or unique name of a Sim resource. Only show UsageRecords
|
147
|
+
# representing usage incurred by this Super SIM.
|
148
|
+
# @param [String] fleet SID or unique name of a Fleet resource. Only show
|
149
|
+
# UsageRecords representing usage for Super SIMs belonging to this Fleet resource
|
150
|
+
# at the time the usage occurred.
|
151
|
+
# @param [String] network SID of a Network resource. Only show UsageRecords
|
152
|
+
# representing usage on this network.
|
153
|
+
# @param [String] iso_country Alpha-2 ISO Country Code. Only show UsageRecords
|
154
|
+
# representing usage in this country.
|
155
|
+
# @param [usage_record.Group] group Dimension over which to aggregate usage
|
156
|
+
# records. Can be: `sim`, `fleet`, `network`, `isoCountry`. Default is to not
|
157
|
+
# aggregate across any of these dimensions, UsageRecords will be aggregated into
|
158
|
+
# the time buckets described by the `Granularity` parameter.
|
118
159
|
# @param [usage_record.Granularity] granularity Time-based grouping that
|
119
160
|
# UsageRecords should be aggregated by. Can be: `hour`, `day`, or `all`. Default
|
120
161
|
# is `all`. `all` returns one UsageRecord that describes the usage for the entire
|
@@ -129,9 +170,13 @@ module Twilio
|
|
129
170
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
130
171
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
131
172
|
# @return [Page] Page of UsageRecordInstance
|
132
|
-
def page(sim: :unset, granularity: :unset, start_time: :unset, end_time: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
173
|
+
def page(sim: :unset, fleet: :unset, network: :unset, iso_country: :unset, group: :unset, granularity: :unset, start_time: :unset, end_time: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
133
174
|
params = Twilio::Values.of({
|
134
175
|
'Sim' => sim,
|
176
|
+
'Fleet' => fleet,
|
177
|
+
'Network' => network,
|
178
|
+
'IsoCountry' => iso_country,
|
179
|
+
'Group' => group,
|
135
180
|
'Granularity' => granularity,
|
136
181
|
'StartTime' => Twilio.serialize_iso8601_datetime(start_time),
|
137
182
|
'EndTime' => Twilio.serialize_iso8601_datetime(end_time),
|
@@ -140,7 +185,7 @@ module Twilio
|
|
140
185
|
'PageSize' => page_size,
|
141
186
|
})
|
142
187
|
|
143
|
-
response = @version.page('GET', @uri, params)
|
188
|
+
response = @version.page('GET', @uri, params: params)
|
144
189
|
|
145
190
|
UsageRecordPage.new(@version, response, @solution)
|
146
191
|
end
|
@@ -211,6 +256,9 @@ module Twilio
|
|
211
256
|
@properties = {
|
212
257
|
'account_sid' => payload['account_sid'],
|
213
258
|
'sim_sid' => payload['sim_sid'],
|
259
|
+
'network_sid' => payload['network_sid'],
|
260
|
+
'fleet_sid' => payload['fleet_sid'],
|
261
|
+
'iso_country' => payload['iso_country'],
|
214
262
|
'period' => payload['period'],
|
215
263
|
'data_upload' => payload['data_upload'].to_i,
|
216
264
|
'data_download' => payload['data_download'].to_i,
|
@@ -230,6 +278,24 @@ module Twilio
|
|
230
278
|
@properties['sim_sid']
|
231
279
|
end
|
232
280
|
|
281
|
+
##
|
282
|
+
# @return [String] SID of the Network resource on which the usage occurred.
|
283
|
+
def network_sid
|
284
|
+
@properties['network_sid']
|
285
|
+
end
|
286
|
+
|
287
|
+
##
|
288
|
+
# @return [String] SID of the Fleet resource on which the usage occurred.
|
289
|
+
def fleet_sid
|
290
|
+
@properties['fleet_sid']
|
291
|
+
end
|
292
|
+
|
293
|
+
##
|
294
|
+
# @return [String] Alpha-2 ISO Country Code of the country the usage occurred in.
|
295
|
+
def iso_country
|
296
|
+
@properties['iso_country']
|
297
|
+
end
|
298
|
+
|
233
299
|
##
|
234
300
|
# @return [Hash] The time period for which the usage is reported.
|
235
301
|
def period
|