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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66f674a843c7d1cfec66a72b4e954601abe469127cf64cc070bb155181c4b65c
|
4
|
+
data.tar.gz: 75943b77dba6a8bbaa63d64615942287b962e389014f4722cebef361f6104cd3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6f145e1a04e7c447866ca60b0f64a817cc2fea7435213778e9c21f1d36e4d9a654a41f9d03b4d4bdb986ce1abc052cb83dc75502af111fdc0662e1df6d10199
|
7
|
+
data.tar.gz: e0a9e5c2418d5611095aabf401cdd842e004bc9f906406d4ccb08ca885835952bd343e700de2c20fb1bbc6b89dd0accc3b9447b09e59d3e7acbb29b6fd60008a
|
data/.travis.yml
CHANGED
data/CHANGES.md
CHANGED
@@ -1,6 +1,85 @@
|
|
1
1
|
twilio-ruby changelog
|
2
2
|
=====================
|
3
3
|
|
4
|
+
[2020-09-02] Version 5.40.1
|
5
|
+
---------------------------
|
6
|
+
**Library - Chore**
|
7
|
+
- [PR #529](https://github.com/twilio/twilio-ruby/pull/529): sort files for deterministic require order. Thanks to [@eshanholtz](https://github.com/eshanholtz)!
|
8
|
+
|
9
|
+
**Ai**
|
10
|
+
- Initial release
|
11
|
+
|
12
|
+
**Bulkexports**
|
13
|
+
- removing public beta feature flag from BulkExports Jobs API
|
14
|
+
|
15
|
+
**Messaging**
|
16
|
+
- Add Deactivation List API
|
17
|
+
- Added page token parameter for fetch in WhatsApp Templates API
|
18
|
+
|
19
|
+
**Numbers**
|
20
|
+
- Add API endpoint for End User deletion
|
21
|
+
|
22
|
+
**Routes**
|
23
|
+
- Add Resource Route Configurations API
|
24
|
+
- Add Route Configurations API
|
25
|
+
- Initial Release
|
26
|
+
|
27
|
+
**Trunking**
|
28
|
+
- Added `transfer_mode` property on Trunks.
|
29
|
+
|
30
|
+
|
31
|
+
[2020-08-19] Version 5.40.0
|
32
|
+
---------------------------
|
33
|
+
**Library - Chore**
|
34
|
+
- [PR #526](https://github.com/twilio/twilio-ruby/pull/526): update GitHub branch references to use HEAD. Thanks to [@thinkingserious](https://github.com/thinkingserious)!
|
35
|
+
|
36
|
+
**Conversations**
|
37
|
+
- Allow Identity addition to Participants
|
38
|
+
|
39
|
+
**Events**
|
40
|
+
- Sinks API Get all Sinks
|
41
|
+
|
42
|
+
**Proxy**
|
43
|
+
- Clarified usage of FailOnParticipantConflict param as experimental
|
44
|
+
- Add FailOnParticipantConflict param to Proxy Session create and Proxy Participant create
|
45
|
+
|
46
|
+
**Supersim**
|
47
|
+
- Add fleet, network, and isoCountryCode to the UsageRecords resource
|
48
|
+
- Change sort order of UsageRecords from ascending to descending with respect to start time field, records are now returned newest to oldest
|
49
|
+
|
50
|
+
**Wireless**
|
51
|
+
- Removed `Start` and `End` parameters from the Data Sessions list endpoint. **(breaking change)**
|
52
|
+
|
53
|
+
|
54
|
+
[2020-08-05] Version 5.39.3
|
55
|
+
---------------------------
|
56
|
+
**Messaging**
|
57
|
+
- Add rejection reason support to WhatsApp API
|
58
|
+
- Removed status parameter for create and update in WhatsApp Templates API
|
59
|
+
|
60
|
+
**Proxy**
|
61
|
+
- Add FailOnParticipantConflict param to Proxy Session update
|
62
|
+
|
63
|
+
**Verify**
|
64
|
+
- Add `CustomFriendlyName` optional parameter on Verification creation.
|
65
|
+
- Changes in `Challenge` resource to update documentation of both `details` and `hidden_details` properties.
|
66
|
+
|
67
|
+
|
68
|
+
[2020-07-22] Version 5.39.2
|
69
|
+
---------------------------
|
70
|
+
**Api**
|
71
|
+
- Add optional Click Tracking and Scheduling parameters to Create action of Message resource
|
72
|
+
|
73
|
+
**Supersim**
|
74
|
+
- Add callback_url and callback_method parameters to Sim resource update request
|
75
|
+
|
76
|
+
|
77
|
+
[2020-07-10] Version 5.39.1
|
78
|
+
---------------------------
|
79
|
+
**Library - Fix**
|
80
|
+
- [PR #520](https://github.com/twilio/twilio-ruby/pull/520): use ruby keyword arguments for all action methods. Thanks to [@eshanholtz](https://github.com/eshanholtz)!
|
81
|
+
|
82
|
+
|
4
83
|
[2020-07-08] Version 5.39.0
|
5
84
|
---------------------------
|
6
85
|
**Library - Feature**
|
@@ -475,7 +554,7 @@ twilio-ruby changelog
|
|
475
554
|
**Library**
|
476
555
|
- [PR #481](https://github.com/twilio/twilio-ruby/pull/481): added request validation for urls with and without ports. Thanks to [@eshanholtz](https://github.com/eshanholtz)!
|
477
556
|
- [PR #480](https://github.com/twilio/twilio-ruby/pull/480): Update resources after sorting. Thanks to [@childish-sambino](https://github.com/childish-sambino)!
|
478
|
-
- [PR #479](https://github.com/twilio/twilio-ruby/pull/479): Auto-deploy via Travis CI upon tagged commit to
|
557
|
+
- [PR #479](https://github.com/twilio/twilio-ruby/pull/479): Auto-deploy via Travis CI upon tagged commit to main. Thanks to [@thinkingserious](https://github.com/thinkingserious)!
|
479
558
|
|
480
559
|
**Api**
|
481
560
|
- Add new usage categories to the public api `sms-messages-carrierfees` and `mms-messages-carrierfees`
|
data/CONTRIBUTING.md
CHANGED
@@ -105,7 +105,7 @@ Before you submit your pull request consider the following guidelines:
|
|
105
105
|
* Make your changes in a new git branch:
|
106
106
|
|
107
107
|
```shell
|
108
|
-
git checkout -b my-fix-branch
|
108
|
+
git checkout -b my-fix-branch main
|
109
109
|
```
|
110
110
|
|
111
111
|
* Create your patch, **including appropriate test cases**.
|
@@ -132,7 +132,7 @@ Before you submit your pull request consider the following guidelines:
|
|
132
132
|
git push origin my-fix-branch
|
133
133
|
```
|
134
134
|
|
135
|
-
In GitHub, send a pull request to `twilio-ruby:
|
135
|
+
In GitHub, send a pull request to `twilio-ruby:main`.
|
136
136
|
If we suggest changes, then:
|
137
137
|
|
138
138
|
* Make the required updates.
|
data/ISSUE_TEMPLATE.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
<!--
|
2
2
|
If this is a feature request, make sure you search Issues for an existing request before creating a new one!
|
3
|
+
|
4
|
+
Please utilize the template below to help us resolve your issue.
|
5
|
+
|
6
|
+
Note that many issues can be resolved by updating to the latest version.
|
3
7
|
-->
|
4
8
|
|
5
9
|
### Issue Summary
|
@@ -21,6 +25,6 @@ A summary of the issue and the environment in which it occurs. If suitable, incl
|
|
21
25
|
```
|
22
26
|
|
23
27
|
### Technical details:
|
24
|
-
* twilio-ruby version:
|
28
|
+
* twilio-ruby version:
|
25
29
|
* ruby version:
|
26
30
|
|
data/Makefile
CHANGED
data/PULL_REQUEST_TEMPLATE.md
CHANGED
@@ -23,7 +23,7 @@ A short description of what this PR does.
|
|
23
23
|
- [ ] I have made a material change to the repo (functionality, testing, spelling, grammar)
|
24
24
|
- [ ] I have read the [Contribution Guidelines](CONTRIBUTING.md) and my PR follows them
|
25
25
|
- [ ] I have titled the PR appropriately
|
26
|
-
- [ ] I have updated my branch with the
|
26
|
+
- [ ] I have updated my branch with the main branch
|
27
27
|
- [ ] I have added tests that prove my fix is effective or that my feature works
|
28
28
|
- [ ] I have added necessary documentation about the functionality in the appropriate .md file
|
29
29
|
- [ ] I have added inline documentation to the code I modified
|
data/README.md
CHANGED
@@ -4,6 +4,8 @@
|
|
4
4
|
[](https://rubygems.org/gems/twilio-ruby)
|
5
5
|
[](https://twil.io/learn-open-source)
|
6
6
|
|
7
|
+
**The default branch name for this repository has been changed to `main` as of 07/27/2020.**
|
8
|
+
|
7
9
|
## Documentation
|
8
10
|
|
9
11
|
The documentation for the Twilio API can be found [here][apidocs].
|
@@ -32,13 +34,13 @@ This library supports the following Ruby implementations:
|
|
32
34
|
To install using [Bundler][bundler] grab the latest stable version:
|
33
35
|
|
34
36
|
```ruby
|
35
|
-
gem 'twilio-ruby', '~> 5.
|
37
|
+
gem 'twilio-ruby', '~> 5.40.1'
|
36
38
|
```
|
37
39
|
|
38
40
|
To manually install `twilio-ruby` via [Rubygems][rubygems] simply gem install:
|
39
41
|
|
40
42
|
```bash
|
41
|
-
gem install twilio-ruby -v 5.
|
43
|
+
gem install twilio-ruby -v 5.40.1
|
42
44
|
```
|
43
45
|
|
44
46
|
To build and install the development branch yourself from the latest source:
|
@@ -212,7 +214,6 @@ If you've instead found a bug in the library or would like new features added, g
|
|
212
214
|
[libdocs]: https://www.twilio.com/docs/libraries/ruby
|
213
215
|
[refdocs]: https://twilio.github.io/twilio-ruby
|
214
216
|
[capability]: https://github.com/twilio/twilio-ruby/wiki/JWT-Tokens
|
215
|
-
[examples]: https://github.com/twilio/twilio-ruby/blob/master/examples
|
216
217
|
[wiki]: https://github.com/twilio/twilio-ruby/wiki
|
217
218
|
[bundler]: https://bundler.io
|
218
219
|
[rubygems]: https://rubygems.org
|
@@ -155,7 +155,7 @@ module Twilio
|
|
155
155
|
'PageSize' => page_size,
|
156
156
|
})
|
157
157
|
|
158
|
-
response = @version.page('GET', @uri, params)
|
158
|
+
response = @version.page('GET', @uri, params: params)
|
159
159
|
|
160
160
|
ApplicationPage.new(@version, response, @solution)
|
161
161
|
end
|
@@ -278,8 +278,9 @@ module Twilio
|
|
278
278
|
# occurs while retrieving or executing the TwiML from `sms_url`.
|
279
279
|
# @param [String] sms_fallback_method The HTTP method we should use to call
|
280
280
|
# `sms_fallback_url`. Can be: `GET` or `POST`.
|
281
|
-
# @param [String] sms_status_callback The URL we
|
282
|
-
# to send status information about SMS messages
|
281
|
+
# @param [String] sms_status_callback Same as message_status_callback: The URL we
|
282
|
+
# should call using a POST method to send status information about SMS messages
|
283
|
+
# sent by the application. Deprecated, included for backwards compatibility.
|
283
284
|
# @param [String] message_status_callback The URL we should call using a POST
|
284
285
|
# method to send message status information to your application.
|
285
286
|
# @return [ApplicationInstance] Updated ApplicationInstance
|
@@ -545,8 +546,9 @@ module Twilio
|
|
545
546
|
# occurs while retrieving or executing the TwiML from `sms_url`.
|
546
547
|
# @param [String] sms_fallback_method The HTTP method we should use to call
|
547
548
|
# `sms_fallback_url`. Can be: `GET` or `POST`.
|
548
|
-
# @param [String] sms_status_callback The URL we
|
549
|
-
# to send status information about SMS messages
|
549
|
+
# @param [String] sms_status_callback Same as message_status_callback: The URL we
|
550
|
+
# should call using a POST method to send status information about SMS messages
|
551
|
+
# sent by the application. Deprecated, included for backwards compatibility.
|
550
552
|
# @param [String] message_status_callback The URL we should call using a POST
|
551
553
|
# method to send message status information to your application.
|
552
554
|
# @return [ApplicationInstance] Updated ApplicationInstance
|
@@ -38,7 +38,7 @@ module Twilio
|
|
38
38
|
# @param [String] contains The pattern on which to match phone numbers. Valid
|
39
39
|
# characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any
|
40
40
|
# single digit. For examples, see [Example
|
41
|
-
# 2](https://www.twilio.com/docs/phone-numbers/api/
|
41
|
+
# 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumberlocal-resource?code-sample=code-find-phone-numbers-by-number-pattern) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumberlocal-resource?code-sample=code-find-phone-numbers-by-character-pattern). If specified, this value must have at least two characters.
|
42
42
|
# @param [Boolean] sms_enabled Whether the phone numbers can receive text
|
43
43
|
# messages. Can be: `true` or `false`.
|
44
44
|
# @param [Boolean] mms_enabled Whether the phone numbers can receive MMS messages.
|
@@ -125,7 +125,7 @@ module Twilio
|
|
125
125
|
# @param [String] contains The pattern on which to match phone numbers. Valid
|
126
126
|
# characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any
|
127
127
|
# single digit. For examples, see [Example
|
128
|
-
# 2](https://www.twilio.com/docs/phone-numbers/api/
|
128
|
+
# 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumberlocal-resource?code-sample=code-find-phone-numbers-by-number-pattern) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumberlocal-resource?code-sample=code-find-phone-numbers-by-character-pattern). If specified, this value must have at least two characters.
|
129
129
|
# @param [Boolean] sms_enabled Whether the phone numbers can receive text
|
130
130
|
# messages. Can be: `true` or `false`.
|
131
131
|
# @param [Boolean] mms_enabled Whether the phone numbers can receive MMS messages.
|
@@ -228,7 +228,7 @@ module Twilio
|
|
228
228
|
# @param [String] contains The pattern on which to match phone numbers. Valid
|
229
229
|
# characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any
|
230
230
|
# single digit. For examples, see [Example
|
231
|
-
# 2](https://www.twilio.com/docs/phone-numbers/api/
|
231
|
+
# 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumberlocal-resource?code-sample=code-find-phone-numbers-by-number-pattern) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumberlocal-resource?code-sample=code-find-phone-numbers-by-character-pattern). If specified, this value must have at least two characters.
|
232
232
|
# @param [Boolean] sms_enabled Whether the phone numbers can receive text
|
233
233
|
# messages. Can be: `true` or `false`.
|
234
234
|
# @param [Boolean] mms_enabled Whether the phone numbers can receive MMS messages.
|
@@ -303,7 +303,7 @@ module Twilio
|
|
303
303
|
'PageSize' => page_size,
|
304
304
|
})
|
305
305
|
|
306
|
-
response = @version.page('GET', @uri, params)
|
306
|
+
response = @version.page('GET', @uri, params: params)
|
307
307
|
|
308
308
|
LocalPage.new(@version, response, @solution)
|
309
309
|
end
|
@@ -36,50 +36,59 @@ module Twilio
|
|
36
36
|
|
37
37
|
##
|
38
38
|
# Create the PaymentInstance
|
39
|
-
# @param [String] idempotency_key A unique token
|
40
|
-
#
|
41
|
-
#
|
42
|
-
#
|
43
|
-
# @param [
|
44
|
-
#
|
39
|
+
# @param [String] idempotency_key A unique token that will be used to ensure that
|
40
|
+
# multiple API calls with the same information do not result in multiple
|
41
|
+
# transactions. This should be a unique string value per API call and can be a
|
42
|
+
# randomly generated.
|
43
|
+
# @param [String] status_callback Provide an absolute or relative URL to receive
|
44
|
+
# status updates regarding your Pay session. Read more about the [expected
|
45
|
+
# StatusCallback
|
46
|
+
# values](https://www.twilio.com/docs/voice/api/payment-resource#statuscallback)
|
47
|
+
# @param [payment.BankAccountType] bank_account_type Type of bank account if
|
48
|
+
# payment source is ACH. One of `consumer-checking`, `consumer-savings`, or
|
45
49
|
# `commercial-checking`. The default value is `consumer-checking`.
|
46
|
-
# @param [String] charge_amount
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
50
|
+
# @param [String] charge_amount A positive decimal value less than 1,000,000 to
|
51
|
+
# charge against the credit card or bank account. Default currency can be
|
52
|
+
# overwritten with `currency` field. Leave blank or set to 0 to tokenize.
|
53
|
+
# @param [String] currency The currency of the `charge_amount`, formatted as [ISO
|
50
54
|
# 4127](http://www.iso.org/iso/home/standards/currency_codes.htm) format. The
|
51
|
-
# default value is `USD
|
52
|
-
#
|
53
|
-
# @param [String]
|
54
|
-
#
|
55
|
-
#
|
56
|
-
# @param [String]
|
57
|
-
#
|
58
|
-
#
|
59
|
-
# @param [
|
60
|
-
#
|
61
|
-
#
|
62
|
-
#
|
63
|
-
#
|
64
|
-
#
|
65
|
-
#
|
66
|
-
#
|
67
|
-
#
|
68
|
-
#
|
69
|
-
#
|
70
|
-
# @param [
|
71
|
-
#
|
72
|
-
# @param [Boolean]
|
73
|
-
#
|
74
|
-
#
|
75
|
-
#
|
76
|
-
#
|
77
|
-
#
|
78
|
-
#
|
79
|
-
#
|
80
|
-
#
|
81
|
-
#
|
82
|
-
#
|
55
|
+
# default value is `USD` and all values allowed from the <Pay> Connector are
|
56
|
+
# accepted.
|
57
|
+
# @param [String] description The description can be used to provide more details
|
58
|
+
# regarding the transaction. This information is submitted along with the payment
|
59
|
+
# details to the Payment Connector which are then posted on the transactions.
|
60
|
+
# @param [String] input A list of inputs that should be accepted. Currently only
|
61
|
+
# `dtmf` is supported. All digits captured during a pay session are redacted from
|
62
|
+
# the logs.
|
63
|
+
# @param [String] min_postal_code_length A positive integer that is used to
|
64
|
+
# validate the length of the `PostalCode` inputted by the user. User must enter
|
65
|
+
# this many digits.
|
66
|
+
# @param [Hash] parameter A single level JSON string that is required when
|
67
|
+
# accepting certain information specific only to ACH payments. The information
|
68
|
+
# that has to be included here depends on the <Pay> Connector. [Read
|
69
|
+
# more](https://www.twilio.com/console/voice/pay-connectors).
|
70
|
+
# @param [String] payment_connector This is the unique name corresponding to the
|
71
|
+
# Payment Gateway Connector installed in the Twilio Add-ons. Learn more about
|
72
|
+
# [<Pay> Connectors](https://www.twilio.com/console/voice/pay-connectors). The
|
73
|
+
# default value is `Default`.
|
74
|
+
# @param [payment.PaymentMethod] payment_method Type of payment being captured.
|
75
|
+
# One of `credit-card` or `ach-debit`. The default value is `credit-card`.
|
76
|
+
# @param [Boolean] postal_code Indicates whether the credit card postal code (zip
|
77
|
+
# code) is a required piece of payment information that must be provided by the
|
78
|
+
# caller. The default is `true`.
|
79
|
+
# @param [Boolean] security_code Indicates whether the credit card security code
|
80
|
+
# is a required piece of payment information that must be provided by the caller.
|
81
|
+
# The default is `true`.
|
82
|
+
# @param [String] timeout The number of seconds that <Pay> should wait for the
|
83
|
+
# caller to press a digit between each subsequent digit, after the first one,
|
84
|
+
# before moving on to validate the digits captured. The default is `5`, maximum is
|
85
|
+
# `600`.
|
86
|
+
# @param [payment.TokenType] token_type Indicates whether the payment method
|
87
|
+
# should be tokenized as a `one-time` or `reusable` token. The default value is
|
88
|
+
# `reusable`. Do not enter a charge amount when tokenizing. If a charge amount is
|
89
|
+
# entered, the payment method will be charged and not tokenized.
|
90
|
+
# @param [String] valid_card_types Credit card types separated by space that Pay
|
91
|
+
# should accept. The default value is `visa mastercard amex`
|
83
92
|
# @return [PaymentInstance] Created PaymentInstance
|
84
93
|
def create(idempotency_key: nil, status_callback: nil, bank_account_type: :unset, charge_amount: :unset, currency: :unset, description: :unset, input: :unset, min_postal_code_length: :unset, parameter: :unset, payment_connector: :unset, payment_method: :unset, postal_code: :unset, security_code: :unset, timeout: :unset, token_type: :unset, valid_card_types: :unset)
|
85
94
|
data = Twilio::Values.of({
|
@@ -177,15 +186,20 @@ module Twilio
|
|
177
186
|
|
178
187
|
##
|
179
188
|
# Update the PaymentInstance
|
180
|
-
# @param [String] idempotency_key A unique token
|
181
|
-
#
|
182
|
-
#
|
183
|
-
#
|
184
|
-
# @param [
|
185
|
-
#
|
186
|
-
#
|
187
|
-
# @param [payment.
|
188
|
-
#
|
189
|
+
# @param [String] idempotency_key A unique token that will be used to ensure that
|
190
|
+
# multiple API calls with the same information do not result in multiple
|
191
|
+
# transactions. This should be a unique string value per API call and can be a
|
192
|
+
# randomly generated.
|
193
|
+
# @param [String] status_callback Provide an absolute or relative URL to receive
|
194
|
+
# status updates regarding your Pay session. Read more about the
|
195
|
+
# [Update](https://www.twilio.com/docs/voice/api/payment-resource#statuscallback-update) and [Complete/Cancel](https://www.twilio.com/docs/voice/api/payment-resource#statuscallback-cancelcomplete) POST requests.
|
196
|
+
# @param [payment.Capture] capture The piece of payment information that you wish
|
197
|
+
# the caller to enter. Must be one of `payment-card-number`, `expiration-date`,
|
198
|
+
# `security-code`, `postal-code`, `bank-routing-number`, or `bank-account-number`.
|
199
|
+
# @param [payment.Status] status Indicates whether the current payment session
|
200
|
+
# should be cancelled or completed. When `cancel` the payment session is
|
201
|
+
# cancelled. When `complete`, Twilio sends the payment information to the selected
|
202
|
+
# <Pay> connector for processing.
|
189
203
|
# @return [PaymentInstance] Updated PaymentInstance
|
190
204
|
def update(idempotency_key: nil, status_callback: nil, capture: :unset, status: :unset)
|
191
205
|
data = Twilio::Values.of({
|
@@ -309,15 +323,20 @@ module Twilio
|
|
309
323
|
|
310
324
|
##
|
311
325
|
# Update the PaymentInstance
|
312
|
-
# @param [String] idempotency_key A unique token
|
313
|
-
#
|
314
|
-
#
|
315
|
-
#
|
316
|
-
# @param [
|
317
|
-
#
|
318
|
-
#
|
319
|
-
# @param [payment.
|
320
|
-
#
|
326
|
+
# @param [String] idempotency_key A unique token that will be used to ensure that
|
327
|
+
# multiple API calls with the same information do not result in multiple
|
328
|
+
# transactions. This should be a unique string value per API call and can be a
|
329
|
+
# randomly generated.
|
330
|
+
# @param [String] status_callback Provide an absolute or relative URL to receive
|
331
|
+
# status updates regarding your Pay session. Read more about the
|
332
|
+
# [Update](https://www.twilio.com/docs/voice/api/payment-resource#statuscallback-update) and [Complete/Cancel](https://www.twilio.com/docs/voice/api/payment-resource#statuscallback-cancelcomplete) POST requests.
|
333
|
+
# @param [payment.Capture] capture The piece of payment information that you wish
|
334
|
+
# the caller to enter. Must be one of `payment-card-number`, `expiration-date`,
|
335
|
+
# `security-code`, `postal-code`, `bank-routing-number`, or `bank-account-number`.
|
336
|
+
# @param [payment.Status] status Indicates whether the current payment session
|
337
|
+
# should be cancelled or completed. When `cancel` the payment session is
|
338
|
+
# cancelled. When `complete`, Twilio sends the payment information to the selected
|
339
|
+
# <Pay> connector for processing.
|
321
340
|
# @return [PaymentInstance] Updated PaymentInstance
|
322
341
|
def update(idempotency_key: nil, status_callback: nil, capture: :unset, status: :unset)
|
323
342
|
context.update(
|