twilio-ruby 5.20.0 → 5.20.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/CHANGES.md +22 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/accounts/v1/credential/aws.rb +7 -0
- data/lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/address.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/application.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/key.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +11 -1
- data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_credential_list_mapping.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_ip_access_control_list_mapping.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_registrations_mapping/auth_registrations_credential_list_mapping.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +7 -0
- data/lib/twilio-ruby/rest/authy/v1/form.rb +7 -0
- data/lib/twilio-ruby/rest/authy/v1/service.rb +7 -0
- data/lib/twilio-ruby/rest/authy/v1/service/entity.rb +7 -0
- data/lib/twilio-ruby/rest/authy/v1/service/entity/factor.rb +7 -0
- data/lib/twilio-ruby/rest/authy/v1/service/entity/factor/challenge.rb +7 -0
- data/lib/twilio-ruby/rest/autopilot/v1/assistant.rb +7 -0
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/defaults.rb +7 -0
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/dialogue.rb +7 -0
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type.rb +7 -0
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type/field_value.rb +7 -0
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/model_build.rb +7 -0
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb +7 -0
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/style_sheet.rb +7 -0
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task.rb +7 -0
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/field.rb +7 -0
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/sample.rb +7 -0
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_actions.rb +7 -0
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_statistics.rb +7 -0
- data/lib/twilio-ruby/rest/chat/v1/credential.rb +7 -0
- data/lib/twilio-ruby/rest/chat/v1/service.rb +7 -0
- data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +7 -0
- data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +7 -0
- data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +7 -0
- data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +7 -0
- data/lib/twilio-ruby/rest/chat/v1/service/role.rb +7 -0
- data/lib/twilio-ruby/rest/chat/v1/service/user.rb +7 -0
- data/lib/twilio-ruby/rest/chat/v2/credential.rb +7 -0
- data/lib/twilio-ruby/rest/chat/v2/service.rb +7 -0
- data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +7 -0
- data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +7 -0
- data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +7 -0
- data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +7 -0
- data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +7 -0
- data/lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb +7 -0
- data/lib/twilio-ruby/rest/chat/v2/service/role.rb +7 -0
- data/lib/twilio-ruby/rest/chat/v2/service/user.rb +7 -0
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +7 -0
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +7 -0
- data/lib/twilio-ruby/rest/client.rb +7 -0
- data/lib/twilio-ruby/rest/fax/v1/fax.rb +7 -0
- data/lib/twilio-ruby/rest/fax/v1/fax/fax_media.rb +7 -0
- data/lib/twilio-ruby/rest/flex_api.rb +44 -0
- data/lib/twilio-ruby/rest/flex_api/v1.rb +35 -0
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +408 -0
- data/lib/twilio-ruby/rest/insights/v1/summary.rb +7 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +7 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +7 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +7 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +7 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +7 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +7 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +7 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +7 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +7 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +7 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +7 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +7 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +7 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +7 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +7 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb +7 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +7 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +7 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +7 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +7 -0
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +7 -0
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +7 -0
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +7 -0
- data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +7 -0
- data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +7 -0
- data/lib/twilio-ruby/rest/messaging/v1/session.rb +7 -0
- data/lib/twilio-ruby/rest/messaging/v1/session/message.rb +7 -0
- data/lib/twilio-ruby/rest/messaging/v1/session/participant.rb +7 -0
- data/lib/twilio-ruby/rest/messaging/v1/webhook.rb +7 -0
- data/lib/twilio-ruby/rest/monitor/v1/alert.rb +7 -0
- data/lib/twilio-ruby/rest/monitor/v1/event.rb +7 -0
- data/lib/twilio-ruby/rest/notify/v1/credential.rb +7 -0
- data/lib/twilio-ruby/rest/notify/v1/service.rb +7 -0
- data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +7 -0
- data/lib/twilio-ruby/rest/preview/acc_security/service.rb +7 -0
- data/lib/twilio-ruby/rest/preview/bulk_exports/export.rb +7 -0
- data/lib/twilio-ruby/rest/preview/bulk_exports/export_configuration.rb +7 -0
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +7 -0
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/certificate.rb +7 -0
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/deployment.rb +7 -0
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/device.rb +7 -0
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/key.rb +7 -0
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +7 -0
- data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +7 -0
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +7 -0
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb +7 -0
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +7 -0
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb +7 -0
- data/lib/twilio-ruby/rest/preview/sync/service.rb +7 -0
- data/lib/twilio-ruby/rest/preview/sync/service/document.rb +7 -0
- data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +7 -0
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +7 -0
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +7 -0
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +7 -0
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +7 -0
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +7 -0
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +7 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant.rb +7 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/assistant_fallback_actions.rb +7 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/assistant_initiation_actions.rb +7 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/dialogue.rb +7 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/field_type.rb +7 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/field_type/field_value.rb +7 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/model_build.rb +7 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/query.rb +7 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/style_sheet.rb +7 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/task.rb +7 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/field.rb +7 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/sample.rb +7 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/task_actions.rb +7 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/task_statistics.rb +7 -0
- data/lib/twilio-ruby/rest/preview/wireless/command.rb +7 -0
- data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +7 -0
- data/lib/twilio-ruby/rest/preview/wireless/sim.rb +7 -0
- data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +7 -0
- data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +7 -0
- data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +7 -0
- data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +7 -0
- data/lib/twilio-ruby/rest/pricing/v1/voice/number.rb +7 -0
- data/lib/twilio-ruby/rest/pricing/v2/voice/country.rb +7 -0
- data/lib/twilio-ruby/rest/pricing/v2/voice/number.rb +7 -0
- data/lib/twilio-ruby/rest/proxy/v1/service.rb +7 -0
- data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +7 -0
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +7 -0
- data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +7 -0
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +7 -0
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +7 -0
- data/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb +7 -0
- data/lib/twilio-ruby/rest/studio/v1/flow.rb +7 -0
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement.rb +7 -0
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb +7 -0
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb +7 -0
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb +7 -0
- data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +7 -0
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_context.rb +7 -0
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb +7 -0
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb +7 -0
- data/lib/twilio-ruby/rest/sync/v1/service.rb +7 -0
- data/lib/twilio-ruby/rest/sync/v1/service/document.rb +7 -0
- data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +7 -0
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +7 -0
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +7 -0
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +7 -0
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +7 -0
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +7 -0
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +7 -0
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +7 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +7 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +7 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +48 -9
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +7 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +7 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +7 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +7 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +7 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +14 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +7 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +18 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +7 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +7 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +7 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +7 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +7 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +7 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +7 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +7 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +14 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +7 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +7 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +14 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +7 -0
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +7 -0
- data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +7 -0
- data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +7 -0
- data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +7 -0
- data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +7 -0
- data/lib/twilio-ruby/rest/verify/v1/service.rb +26 -3
- data/lib/twilio-ruby/rest/verify/v1/service/verification.rb +21 -1
- data/lib/twilio-ruby/rest/verify/v1/service/verification_check.rb +26 -2
- data/lib/twilio-ruby/rest/video/v1/composition.rb +7 -0
- data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +7 -0
- data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +7 -0
- data/lib/twilio-ruby/rest/video/v1/recording.rb +7 -0
- data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +7 -0
- data/lib/twilio-ruby/rest/video/v1/room.rb +7 -0
- data/lib/twilio-ruby/rest/video/v1/room/recording.rb +7 -0
- data/lib/twilio-ruby/rest/video/v1/room/room_participant.rb +7 -0
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_published_track.rb +7 -0
- data/lib/twilio-ruby/rest/voice/v1/voice_permission/country.rb +7 -0
- data/lib/twilio-ruby/rest/wireless/v1/command.rb +7 -0
- data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +7 -0
- data/lib/twilio-ruby/rest/wireless/v1/sim.rb +7 -0
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/integration/api/v2010/account/usage/trigger_spec.rb +3 -3
- data/spec/integration/flex_api/v1/configuration_spec.rb +350 -0
- data/spec/integration/taskrouter/v1/workspace/event_spec.rb +6 -0
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics_spec.rb +1 -0
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queue_statistics_spec.rb +1 -1
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queues_statistics_spec.rb +1 -1
- data/spec/integration/taskrouter/v1/workspace/workflow/workflow_real_time_statistics_spec.rb +1 -0
- data/spec/integration/taskrouter/v1/workspace/workflow/workflow_statistics_spec.rb +1 -1
- data/spec/integration/taskrouter/v1/workspace/workspace_real_time_statistics_spec.rb +1 -0
- data/spec/integration/taskrouter/v1/workspace/workspace_statistics_spec.rb +1 -1
- data/spec/integration/verify/v1/service/verification_check_spec.rb +2 -0
- data/spec/integration/verify/v1/service/verification_spec.rb +3 -1
- data/spec/integration/verify/v1/service_spec.rb +4 -0
- metadata +7 -2
|
@@ -264,6 +264,13 @@ module Twilio
|
|
|
264
264
|
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
|
265
265
|
"#<Twilio.Trunking.V1.OriginationUrlContext #{context}>"
|
|
266
266
|
end
|
|
267
|
+
|
|
268
|
+
##
|
|
269
|
+
# Provide a detailed, user friendly representation
|
|
270
|
+
def inspect
|
|
271
|
+
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
|
272
|
+
"#<Twilio.Trunking.V1.OriginationUrlContext #{context}>"
|
|
273
|
+
end
|
|
267
274
|
end
|
|
268
275
|
|
|
269
276
|
class OriginationUrlInstance < InstanceResource
|
|
@@ -205,6 +205,13 @@ module Twilio
|
|
|
205
205
|
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
|
206
206
|
"#<Twilio.Trunking.V1.PhoneNumberContext #{context}>"
|
|
207
207
|
end
|
|
208
|
+
|
|
209
|
+
##
|
|
210
|
+
# Provide a detailed, user friendly representation
|
|
211
|
+
def inspect
|
|
212
|
+
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
|
213
|
+
"#<Twilio.Trunking.V1.PhoneNumberContext #{context}>"
|
|
214
|
+
end
|
|
208
215
|
end
|
|
209
216
|
|
|
210
217
|
class PhoneNumberInstance < InstanceResource
|
|
@@ -40,8 +40,10 @@ module Twilio
|
|
|
40
40
|
# to require a random number input to deliver the verify code via phone calls
|
|
41
41
|
# @param [String] tts_name Alternative to be used as Service friendly name in
|
|
42
42
|
# phone calls, only applies to TTS languages
|
|
43
|
+
# @param [Boolean] psd2_enabled Boolean value that enables to pass PSD2
|
|
44
|
+
# transaction parameters when starting a verification
|
|
43
45
|
# @return [ServiceInstance] Newly created ServiceInstance
|
|
44
|
-
def create(friendly_name: nil, code_length: :unset, lookup_enabled: :unset, skip_sms_to_landlines: :unset, dtmf_input_required: :unset, tts_name: :unset)
|
|
46
|
+
def create(friendly_name: nil, code_length: :unset, lookup_enabled: :unset, skip_sms_to_landlines: :unset, dtmf_input_required: :unset, tts_name: :unset, psd2_enabled: :unset)
|
|
45
47
|
data = Twilio::Values.of({
|
|
46
48
|
'FriendlyName' => friendly_name,
|
|
47
49
|
'CodeLength' => code_length,
|
|
@@ -49,6 +51,7 @@ module Twilio
|
|
|
49
51
|
'SkipSmsToLandlines' => skip_sms_to_landlines,
|
|
50
52
|
'DtmfInputRequired' => dtmf_input_required,
|
|
51
53
|
'TtsName' => tts_name,
|
|
54
|
+
'Psd2Enabled' => psd2_enabled,
|
|
52
55
|
})
|
|
53
56
|
|
|
54
57
|
payload = @version.create(
|
|
@@ -236,8 +239,10 @@ module Twilio
|
|
|
236
239
|
# to require a random number input to deliver the verify code via phone calls
|
|
237
240
|
# @param [String] tts_name Alternative to be used as Service friendly name in
|
|
238
241
|
# phone calls, only applies to TTS languages
|
|
242
|
+
# @param [Boolean] psd2_enabled Boolean value that enables to pass PSD2
|
|
243
|
+
# transaction parameters when starting a verification
|
|
239
244
|
# @return [ServiceInstance] Updated ServiceInstance
|
|
240
|
-
def update(friendly_name: :unset, code_length: :unset, lookup_enabled: :unset, skip_sms_to_landlines: :unset, dtmf_input_required: :unset, tts_name: :unset)
|
|
245
|
+
def update(friendly_name: :unset, code_length: :unset, lookup_enabled: :unset, skip_sms_to_landlines: :unset, dtmf_input_required: :unset, tts_name: :unset, psd2_enabled: :unset)
|
|
241
246
|
data = Twilio::Values.of({
|
|
242
247
|
'FriendlyName' => friendly_name,
|
|
243
248
|
'CodeLength' => code_length,
|
|
@@ -245,6 +250,7 @@ module Twilio
|
|
|
245
250
|
'SkipSmsToLandlines' => skip_sms_to_landlines,
|
|
246
251
|
'DtmfInputRequired' => dtmf_input_required,
|
|
247
252
|
'TtsName' => tts_name,
|
|
253
|
+
'Psd2Enabled' => psd2_enabled,
|
|
248
254
|
})
|
|
249
255
|
|
|
250
256
|
payload = @version.update(
|
|
@@ -286,6 +292,13 @@ module Twilio
|
|
|
286
292
|
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
|
287
293
|
"#<Twilio.Verify.V1.ServiceContext #{context}>"
|
|
288
294
|
end
|
|
295
|
+
|
|
296
|
+
##
|
|
297
|
+
# Provide a detailed, user friendly representation
|
|
298
|
+
def inspect
|
|
299
|
+
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
|
300
|
+
"#<Twilio.Verify.V1.ServiceContext #{context}>"
|
|
301
|
+
end
|
|
289
302
|
end
|
|
290
303
|
|
|
291
304
|
##
|
|
@@ -307,6 +320,7 @@ module Twilio
|
|
|
307
320
|
'friendly_name' => payload['friendly_name'],
|
|
308
321
|
'code_length' => payload['code_length'].to_i,
|
|
309
322
|
'lookup_enabled' => payload['lookup_enabled'],
|
|
323
|
+
'psd2_enabled' => payload['psd2_enabled'],
|
|
310
324
|
'skip_sms_to_landlines' => payload['skip_sms_to_landlines'],
|
|
311
325
|
'dtmf_input_required' => payload['dtmf_input_required'],
|
|
312
326
|
'tts_name' => payload['tts_name'],
|
|
@@ -362,6 +376,12 @@ module Twilio
|
|
|
362
376
|
@properties['lookup_enabled']
|
|
363
377
|
end
|
|
364
378
|
|
|
379
|
+
##
|
|
380
|
+
# @return [Boolean] Indicates whether PSD2 parameters are enabled or not
|
|
381
|
+
def psd2_enabled
|
|
382
|
+
@properties['psd2_enabled']
|
|
383
|
+
end
|
|
384
|
+
|
|
365
385
|
##
|
|
366
386
|
# @return [Boolean] Indicates whether or not to ignore SMS verifications for landlines
|
|
367
387
|
def skip_sms_to_landlines
|
|
@@ -432,8 +452,10 @@ module Twilio
|
|
|
432
452
|
# to require a random number input to deliver the verify code via phone calls
|
|
433
453
|
# @param [String] tts_name Alternative to be used as Service friendly name in
|
|
434
454
|
# phone calls, only applies to TTS languages
|
|
455
|
+
# @param [Boolean] psd2_enabled Boolean value that enables to pass PSD2
|
|
456
|
+
# transaction parameters when starting a verification
|
|
435
457
|
# @return [ServiceInstance] Updated ServiceInstance
|
|
436
|
-
def update(friendly_name: :unset, code_length: :unset, lookup_enabled: :unset, skip_sms_to_landlines: :unset, dtmf_input_required: :unset, tts_name: :unset)
|
|
458
|
+
def update(friendly_name: :unset, code_length: :unset, lookup_enabled: :unset, skip_sms_to_landlines: :unset, dtmf_input_required: :unset, tts_name: :unset, psd2_enabled: :unset)
|
|
437
459
|
context.update(
|
|
438
460
|
friendly_name: friendly_name,
|
|
439
461
|
code_length: code_length,
|
|
@@ -441,6 +463,7 @@ module Twilio
|
|
|
441
463
|
skip_sms_to_landlines: skip_sms_to_landlines,
|
|
442
464
|
dtmf_input_required: dtmf_input_required,
|
|
443
465
|
tts_name: tts_name,
|
|
466
|
+
psd2_enabled: psd2_enabled,
|
|
444
467
|
)
|
|
445
468
|
end
|
|
446
469
|
|
|
@@ -42,8 +42,12 @@ module Twilio
|
|
|
42
42
|
# th, tl, tr, vi, zh, zh-CN, zh-HK
|
|
43
43
|
# @param [String] custom_code Pass in a pre-generated code. Code length can be
|
|
44
44
|
# between 4-10 characters.
|
|
45
|
+
# @param [String] amount Amount of the associated PSD2 compliant transaction.
|
|
46
|
+
# Requires the PSD2 Service flag enabled.
|
|
47
|
+
# @param [String] payee Payee of the associated PSD2 compliant transaction.
|
|
48
|
+
# Requires the PSD2 Service flag enabled.
|
|
45
49
|
# @return [VerificationInstance] Newly created VerificationInstance
|
|
46
|
-
def create(to: nil, channel: nil, custom_message: :unset, send_digits: :unset, locale: :unset, custom_code: :unset)
|
|
50
|
+
def create(to: nil, channel: nil, custom_message: :unset, send_digits: :unset, locale: :unset, custom_code: :unset, amount: :unset, payee: :unset)
|
|
47
51
|
data = Twilio::Values.of({
|
|
48
52
|
'To' => to,
|
|
49
53
|
'Channel' => channel,
|
|
@@ -51,6 +55,8 @@ module Twilio
|
|
|
51
55
|
'SendDigits' => send_digits,
|
|
52
56
|
'Locale' => locale,
|
|
53
57
|
'CustomCode' => custom_code,
|
|
58
|
+
'Amount' => amount,
|
|
59
|
+
'Payee' => payee,
|
|
54
60
|
})
|
|
55
61
|
|
|
56
62
|
payload = @version.create(
|
|
@@ -122,6 +128,8 @@ module Twilio
|
|
|
122
128
|
'status' => payload['status'],
|
|
123
129
|
'valid' => payload['valid'],
|
|
124
130
|
'lookup' => payload['lookup'],
|
|
131
|
+
'amount' => payload['amount'],
|
|
132
|
+
'payee' => payload['payee'],
|
|
125
133
|
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
|
126
134
|
'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
|
|
127
135
|
}
|
|
@@ -175,6 +183,18 @@ module Twilio
|
|
|
175
183
|
@properties['lookup']
|
|
176
184
|
end
|
|
177
185
|
|
|
186
|
+
##
|
|
187
|
+
# @return [String] Amount of the associated PSD2 compliant transaction.
|
|
188
|
+
def amount
|
|
189
|
+
@properties['amount']
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
##
|
|
193
|
+
# @return [String] Payee of the associated PSD2 compliant transaction.
|
|
194
|
+
def payee
|
|
195
|
+
@properties['payee']
|
|
196
|
+
end
|
|
197
|
+
|
|
178
198
|
##
|
|
179
199
|
# @return [Time] The date this Verification was created
|
|
180
200
|
def date_created
|
|
@@ -35,9 +35,19 @@ module Twilio
|
|
|
35
35
|
# @param [String] verification_sid A SID that uniquely identifies this
|
|
36
36
|
# Verification Check, either this parameter or the To phone number must be
|
|
37
37
|
# specified
|
|
38
|
+
# @param [String] amount Amount of the associated PSD2 compliant transaction.
|
|
39
|
+
# Requires the PSD2 Service flag enabled.
|
|
40
|
+
# @param [String] payee Payee of the associated PSD2 compliant transaction.
|
|
41
|
+
# Requires the PSD2 Service flag enabled.
|
|
38
42
|
# @return [VerificationCheckInstance] Newly created VerificationCheckInstance
|
|
39
|
-
def create(code: nil, to: :unset, verification_sid: :unset)
|
|
40
|
-
data = Twilio::Values.of({
|
|
43
|
+
def create(code: nil, to: :unset, verification_sid: :unset, amount: :unset, payee: :unset)
|
|
44
|
+
data = Twilio::Values.of({
|
|
45
|
+
'Code' => code,
|
|
46
|
+
'To' => to,
|
|
47
|
+
'VerificationSid' => verification_sid,
|
|
48
|
+
'Amount' => amount,
|
|
49
|
+
'Payee' => payee,
|
|
50
|
+
})
|
|
41
51
|
|
|
42
52
|
payload = @version.create(
|
|
43
53
|
'POST',
|
|
@@ -107,6 +117,8 @@ module Twilio
|
|
|
107
117
|
'channel' => payload['channel'],
|
|
108
118
|
'status' => payload['status'],
|
|
109
119
|
'valid' => payload['valid'],
|
|
120
|
+
'amount' => payload['amount'],
|
|
121
|
+
'payee' => payload['payee'],
|
|
110
122
|
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
|
111
123
|
'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
|
|
112
124
|
}
|
|
@@ -154,6 +166,18 @@ module Twilio
|
|
|
154
166
|
@properties['valid']
|
|
155
167
|
end
|
|
156
168
|
|
|
169
|
+
##
|
|
170
|
+
# @return [String] Amount of the associated PSD2 compliant transaction.
|
|
171
|
+
def amount
|
|
172
|
+
@properties['amount']
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
##
|
|
176
|
+
# @return [String] Payee of the associated PSD2 compliant transaction.
|
|
177
|
+
def payee
|
|
178
|
+
@properties['payee']
|
|
179
|
+
end
|
|
180
|
+
|
|
157
181
|
##
|
|
158
182
|
# @return [Time] The date this Verification Check was created
|
|
159
183
|
def date_created
|
|
@@ -318,6 +318,13 @@ module Twilio
|
|
|
318
318
|
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
|
319
319
|
"#<Twilio.Video.V1.CompositionContext #{context}>"
|
|
320
320
|
end
|
|
321
|
+
|
|
322
|
+
##
|
|
323
|
+
# Provide a detailed, user friendly representation
|
|
324
|
+
def inspect
|
|
325
|
+
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
|
326
|
+
"#<Twilio.Video.V1.CompositionContext #{context}>"
|
|
327
|
+
end
|
|
321
328
|
end
|
|
322
329
|
|
|
323
330
|
##
|
|
@@ -399,6 +399,13 @@ module Twilio
|
|
|
399
399
|
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
|
400
400
|
"#<Twilio.Video.V1.CompositionHookContext #{context}>"
|
|
401
401
|
end
|
|
402
|
+
|
|
403
|
+
##
|
|
404
|
+
# Provide a detailed, user friendly representation
|
|
405
|
+
def inspect
|
|
406
|
+
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
|
407
|
+
"#<Twilio.Video.V1.CompositionHookContext #{context}>"
|
|
408
|
+
end
|
|
402
409
|
end
|
|
403
410
|
|
|
404
411
|
##
|
|
@@ -134,6 +134,13 @@ module Twilio
|
|
|
134
134
|
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
|
135
135
|
"#<Twilio.Video.V1.CompositionSettingsContext #{context}>"
|
|
136
136
|
end
|
|
137
|
+
|
|
138
|
+
##
|
|
139
|
+
# Provide a detailed, user friendly representation
|
|
140
|
+
def inspect
|
|
141
|
+
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
|
142
|
+
"#<Twilio.Video.V1.CompositionSettingsContext #{context}>"
|
|
143
|
+
end
|
|
137
144
|
end
|
|
138
145
|
|
|
139
146
|
##
|
|
@@ -246,6 +246,13 @@ module Twilio
|
|
|
246
246
|
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
|
247
247
|
"#<Twilio.Video.V1.RecordingContext #{context}>"
|
|
248
248
|
end
|
|
249
|
+
|
|
250
|
+
##
|
|
251
|
+
# Provide a detailed, user friendly representation
|
|
252
|
+
def inspect
|
|
253
|
+
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
|
254
|
+
"#<Twilio.Video.V1.RecordingContext #{context}>"
|
|
255
|
+
end
|
|
249
256
|
end
|
|
250
257
|
|
|
251
258
|
class RecordingInstance < InstanceResource
|
|
@@ -134,6 +134,13 @@ module Twilio
|
|
|
134
134
|
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
|
135
135
|
"#<Twilio.Video.V1.RecordingSettingsContext #{context}>"
|
|
136
136
|
end
|
|
137
|
+
|
|
138
|
+
##
|
|
139
|
+
# Provide a detailed, user friendly representation
|
|
140
|
+
def inspect
|
|
141
|
+
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
|
142
|
+
"#<Twilio.Video.V1.RecordingSettingsContext #{context}>"
|
|
143
|
+
end
|
|
137
144
|
end
|
|
138
145
|
|
|
139
146
|
##
|
|
@@ -315,6 +315,13 @@ module Twilio
|
|
|
315
315
|
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
|
316
316
|
"#<Twilio.Video.V1.RoomContext #{context}>"
|
|
317
317
|
end
|
|
318
|
+
|
|
319
|
+
##
|
|
320
|
+
# Provide a detailed, user friendly representation
|
|
321
|
+
def inspect
|
|
322
|
+
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
|
323
|
+
"#<Twilio.Video.V1.RoomContext #{context}>"
|
|
324
|
+
end
|
|
318
325
|
end
|
|
319
326
|
|
|
320
327
|
class RoomInstance < InstanceResource
|
|
@@ -215,6 +215,13 @@ module Twilio
|
|
|
215
215
|
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
|
216
216
|
"#<Twilio.Video.V1.RoomRecordingContext #{context}>"
|
|
217
217
|
end
|
|
218
|
+
|
|
219
|
+
##
|
|
220
|
+
# Provide a detailed, user friendly representation
|
|
221
|
+
def inspect
|
|
222
|
+
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
|
223
|
+
"#<Twilio.Video.V1.RoomRecordingContext #{context}>"
|
|
224
|
+
end
|
|
218
225
|
end
|
|
219
226
|
|
|
220
227
|
class RoomRecordingInstance < InstanceResource
|
|
@@ -288,6 +288,13 @@ module Twilio
|
|
|
288
288
|
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
|
289
289
|
"#<Twilio.Video.V1.ParticipantContext #{context}>"
|
|
290
290
|
end
|
|
291
|
+
|
|
292
|
+
##
|
|
293
|
+
# Provide a detailed, user friendly representation
|
|
294
|
+
def inspect
|
|
295
|
+
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
|
296
|
+
"#<Twilio.Video.V1.ParticipantContext #{context}>"
|
|
297
|
+
end
|
|
291
298
|
end
|
|
292
299
|
|
|
293
300
|
class ParticipantInstance < InstanceResource
|
data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_published_track.rb
CHANGED
|
@@ -196,6 +196,13 @@ module Twilio
|
|
|
196
196
|
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
|
197
197
|
"#<Twilio.Video.V1.PublishedTrackContext #{context}>"
|
|
198
198
|
end
|
|
199
|
+
|
|
200
|
+
##
|
|
201
|
+
# Provide a detailed, user friendly representation
|
|
202
|
+
def inspect
|
|
203
|
+
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
|
204
|
+
"#<Twilio.Video.V1.PublishedTrackContext #{context}>"
|
|
205
|
+
end
|
|
199
206
|
end
|
|
200
207
|
|
|
201
208
|
class PublishedTrackInstance < InstanceResource
|
|
@@ -270,6 +270,13 @@ module Twilio
|
|
|
270
270
|
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
|
271
271
|
"#<Twilio.Voice.V1.CountryContext #{context}>"
|
|
272
272
|
end
|
|
273
|
+
|
|
274
|
+
##
|
|
275
|
+
# Provide a detailed, user friendly representation
|
|
276
|
+
def inspect
|
|
277
|
+
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
|
278
|
+
"#<Twilio.Voice.V1.CountryContext #{context}>"
|
|
279
|
+
end
|
|
273
280
|
end
|
|
274
281
|
|
|
275
282
|
##
|
|
@@ -268,6 +268,13 @@ module Twilio
|
|
|
268
268
|
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
|
269
269
|
"#<Twilio.Wireless.V1.CommandContext #{context}>"
|
|
270
270
|
end
|
|
271
|
+
|
|
272
|
+
##
|
|
273
|
+
# Provide a detailed, user friendly representation
|
|
274
|
+
def inspect
|
|
275
|
+
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
|
276
|
+
"#<Twilio.Wireless.V1.CommandContext #{context}>"
|
|
277
|
+
end
|
|
271
278
|
end
|
|
272
279
|
|
|
273
280
|
class CommandInstance < InstanceResource
|
|
@@ -259,6 +259,13 @@ module Twilio
|
|
|
259
259
|
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
|
260
260
|
"#<Twilio.Wireless.V1.RatePlanContext #{context}>"
|
|
261
261
|
end
|
|
262
|
+
|
|
263
|
+
##
|
|
264
|
+
# Provide a detailed, user friendly representation
|
|
265
|
+
def inspect
|
|
266
|
+
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
|
267
|
+
"#<Twilio.Wireless.V1.RatePlanContext #{context}>"
|
|
268
|
+
end
|
|
262
269
|
end
|
|
263
270
|
|
|
264
271
|
class RatePlanInstance < InstanceResource
|
|
@@ -329,6 +329,13 @@ module Twilio
|
|
|
329
329
|
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
|
330
330
|
"#<Twilio.Wireless.V1.SimContext #{context}>"
|
|
331
331
|
end
|
|
332
|
+
|
|
333
|
+
##
|
|
334
|
+
# Provide a detailed, user friendly representation
|
|
335
|
+
def inspect
|
|
336
|
+
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
|
337
|
+
"#<Twilio.Wireless.V1.SimContext #{context}>"
|
|
338
|
+
end
|
|
332
339
|
end
|
|
333
340
|
|
|
334
341
|
class SimInstance < InstanceResource
|
data/lib/twilio-ruby/version.rb
CHANGED
|
@@ -143,13 +143,13 @@ describe 'Trigger' do
|
|
|
143
143
|
expect {
|
|
144
144
|
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
145
145
|
.usage \
|
|
146
|
-
.triggers.create(callback_url: 'https://example.com', trigger_value: 'trigger_value', usage_category: '
|
|
146
|
+
.triggers.create(callback_url: 'https://example.com', trigger_value: 'trigger_value', usage_category: 'agent-conference')
|
|
147
147
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
148
148
|
|
|
149
149
|
values = {
|
|
150
150
|
'CallbackUrl' => 'https://example.com',
|
|
151
151
|
'TriggerValue' => 'trigger_value',
|
|
152
|
-
'UsageCategory' => '
|
|
152
|
+
'UsageCategory' => 'agent-conference',
|
|
153
153
|
}
|
|
154
154
|
expect(
|
|
155
155
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
@@ -186,7 +186,7 @@ describe 'Trigger' do
|
|
|
186
186
|
|
|
187
187
|
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
188
188
|
.usage \
|
|
189
|
-
.triggers.create(callback_url: 'https://example.com', trigger_value: 'trigger_value', usage_category: '
|
|
189
|
+
.triggers.create(callback_url: 'https://example.com', trigger_value: 'trigger_value', usage_category: 'agent-conference')
|
|
190
190
|
|
|
191
191
|
expect(actual).to_not eq(nil)
|
|
192
192
|
end
|