twilio-ruby 5.39.0 → 5.40.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (344) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -1
  3. data/CHANGES.md +80 -1
  4. data/CONTRIBUTING.md +2 -2
  5. data/ISSUE_TEMPLATE.md +5 -1
  6. data/Makefile +1 -1
  7. data/PULL_REQUEST_TEMPLATE.md +1 -1
  8. data/README.md +4 -3
  9. data/lib/twilio-ruby/framework/version.rb +1 -1
  10. data/lib/twilio-ruby/rest/accounts/v1/credential/aws.rb +1 -1
  11. data/lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb +1 -1
  12. data/lib/twilio-ruby/rest/api/v2010/account.rb +1 -1
  13. data/lib/twilio-ruby/rest/api/v2010/account/address.rb +1 -1
  14. data/lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb +1 -1
  15. data/lib/twilio-ruby/rest/api/v2010/account/application.rb +7 -5
  16. data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +1 -1
  17. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number.rb +1 -1
  18. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/local.rb +4 -4
  19. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/machine_to_machine.rb +1 -1
  20. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb +1 -1
  21. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/national.rb +1 -1
  22. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/shared_cost.rb +1 -1
  23. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/toll_free.rb +1 -1
  24. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/voip.rb +1 -1
  25. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +1 -1
  26. data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +1 -1
  27. data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +79 -60
  28. data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +1 -1
  29. data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +1 -1
  30. data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +1 -1
  31. data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +1 -1
  32. data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +1 -1
  33. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +1 -1
  34. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +1 -1
  35. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +1 -1
  36. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +15 -1
  37. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +15 -1
  38. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +15 -1
  39. data/lib/twilio-ruby/rest/api/v2010/account/key.rb +1 -1
  40. data/lib/twilio-ruby/rest/api/v2010/account/message.rb +1 -1
  41. data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +1 -1
  42. data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +1 -1
  43. data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +1 -1
  44. data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +1 -1
  45. data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +1 -1
  46. data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +1 -1
  47. data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +1 -1
  48. data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +1 -1
  49. data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +1 -1
  50. data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +1 -1
  51. data/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb +1 -1
  52. data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +1 -1
  53. data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +1 -1
  54. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +1 -1
  55. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_credential_list_mapping.rb +1 -1
  56. 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
  57. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_registrations_mapping/auth_registrations_credential_list_mapping.rb +1 -1
  58. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +1 -1
  59. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +1 -1
  60. data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +1 -1
  61. data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +1 -1
  62. data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +1 -1
  63. data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +1 -1
  64. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +1 -1
  65. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +1 -1
  66. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +1 -1
  67. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +1 -1
  68. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +1 -1
  69. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +1 -1
  70. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +1 -1
  71. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +1 -1
  72. data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +1 -1
  73. data/lib/twilio-ruby/rest/autopilot/v1/assistant.rb +1 -1
  74. data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type.rb +1 -1
  75. data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type/field_value.rb +1 -1
  76. data/lib/twilio-ruby/rest/autopilot/v1/assistant/model_build.rb +1 -1
  77. data/lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb +1 -1
  78. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task.rb +1 -1
  79. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/field.rb +1 -1
  80. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/sample.rb +1 -1
  81. data/lib/twilio-ruby/rest/autopilot/v1/assistant/webhook.rb +1 -1
  82. data/lib/twilio-ruby/rest/bulkexports/v1/export/day.rb +1 -1
  83. data/lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb +1 -1
  84. data/lib/twilio-ruby/rest/chat/v1/credential.rb +1 -1
  85. data/lib/twilio-ruby/rest/chat/v1/service.rb +1 -1
  86. data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +1 -1
  87. data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +1 -1
  88. data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +1 -1
  89. data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +1 -1
  90. data/lib/twilio-ruby/rest/chat/v1/service/role.rb +1 -1
  91. data/lib/twilio-ruby/rest/chat/v1/service/user.rb +1 -1
  92. data/lib/twilio-ruby/rest/chat/v1/service/user/user_channel.rb +1 -1
  93. data/lib/twilio-ruby/rest/chat/v2/credential.rb +1 -1
  94. data/lib/twilio-ruby/rest/chat/v2/service.rb +1 -1
  95. data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +1 -1
  96. data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +1 -1
  97. data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +1 -1
  98. data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +1 -1
  99. data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +1 -1
  100. data/lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb +1 -1
  101. data/lib/twilio-ruby/rest/chat/v2/service/role.rb +1 -1
  102. data/lib/twilio-ruby/rest/chat/v2/service/user.rb +1 -1
  103. data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +1 -1
  104. data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +1 -1
  105. data/lib/twilio-ruby/rest/client.rb +7 -0
  106. data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +1 -1
  107. data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +1 -1
  108. data/lib/twilio-ruby/rest/conversations/v1/conversation/message/delivery_receipt.rb +1 -1
  109. data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +13 -3
  110. data/lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb +1 -1
  111. data/lib/twilio-ruby/rest/events.rb +55 -0
  112. data/lib/twilio-ruby/rest/events/v1.rb +59 -0
  113. data/lib/twilio-ruby/rest/events/v1/sink.rb +380 -0
  114. data/lib/twilio-ruby/rest/events/v1/sink/sink_test.rb +115 -0
  115. data/lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb +119 -0
  116. data/lib/twilio-ruby/rest/events/v1/subscription.rb +363 -0
  117. data/lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb +322 -0
  118. data/lib/twilio-ruby/rest/fax/v1/fax.rb +1 -1
  119. data/lib/twilio-ruby/rest/fax/v1/fax/fax_media.rb +1 -1
  120. data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +1 -1
  121. data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +1 -1
  122. data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +1 -1
  123. data/lib/twilio-ruby/rest/flex_api/v1/web_channel.rb +1 -1
  124. data/lib/twilio-ruby/rest/insights/v1/call/event.rb +1 -1
  125. data/lib/twilio-ruby/rest/insights/v1/call/metric.rb +1 -1
  126. data/lib/twilio-ruby/rest/insights/v1/call/summary.rb +1 -1
  127. data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +1 -1
  128. data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +1 -1
  129. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +1 -1
  130. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +1 -1
  131. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +1 -1
  132. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +1 -1
  133. data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +1 -1
  134. data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +1 -1
  135. data/lib/twilio-ruby/rest/ip_messaging/v1/service/user/user_channel.rb +1 -1
  136. data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +1 -1
  137. data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +1 -1
  138. data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +1 -1
  139. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +1 -1
  140. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +1 -1
  141. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +1 -1
  142. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +1 -1
  143. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb +1 -1
  144. data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +1 -1
  145. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +1 -1
  146. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +1 -1
  147. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +1 -1
  148. data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +1 -1
  149. data/lib/twilio-ruby/rest/messaging.rb +6 -0
  150. data/lib/twilio-ruby/rest/messaging/v1.rb +7 -0
  151. data/lib/twilio-ruby/rest/messaging/v1/deactivation.rb +164 -0
  152. data/lib/twilio-ruby/rest/messaging/v1/service.rb +1 -1
  153. data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +1 -1
  154. data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +1 -1
  155. data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +1 -1
  156. data/lib/twilio-ruby/rest/monitor/v1/alert.rb +1 -1
  157. data/lib/twilio-ruby/rest/monitor/v1/event.rb +1 -1
  158. data/lib/twilio-ruby/rest/notify/v1/credential.rb +1 -1
  159. data/lib/twilio-ruby/rest/notify/v1/service.rb +1 -1
  160. data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +1 -1
  161. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb +1 -1
  162. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +1 -1
  163. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/evaluation.rb +1 -1
  164. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/item_assignment.rb +1 -1
  165. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user.rb +17 -3
  166. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user_type.rb +1 -1
  167. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/regulation.rb +1 -1
  168. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document.rb +1 -1
  169. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document_type.rb +1 -1
  170. data/lib/twilio-ruby/rest/preview/bulk_exports/export/day.rb +1 -1
  171. data/lib/twilio-ruby/rest/preview/bulk_exports/export/export_custom_job.rb +1 -1
  172. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +1 -1
  173. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/certificate.rb +1 -1
  174. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/deployment.rb +1 -1
  175. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/device.rb +1 -1
  176. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/key.rb +1 -1
  177. data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +1 -1
  178. data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb +1 -1
  179. data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +1 -1
  180. data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +1 -1
  181. data/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb +1 -1
  182. data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +1 -1
  183. data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb +1 -1
  184. data/lib/twilio-ruby/rest/preview/sync/service.rb +1 -1
  185. data/lib/twilio-ruby/rest/preview/sync/service/document.rb +1 -1
  186. data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +1 -1
  187. data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +1 -1
  188. data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +1 -1
  189. data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +1 -1
  190. data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +1 -1
  191. data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +1 -1
  192. data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +1 -1
  193. data/lib/twilio-ruby/rest/preview/trusted_comms/business/insights/impressions_rate.rb +1 -1
  194. data/lib/twilio-ruby/rest/preview/understand/assistant.rb +1 -1
  195. data/lib/twilio-ruby/rest/preview/understand/assistant/field_type.rb +1 -1
  196. data/lib/twilio-ruby/rest/preview/understand/assistant/field_type/field_value.rb +1 -1
  197. data/lib/twilio-ruby/rest/preview/understand/assistant/model_build.rb +1 -1
  198. data/lib/twilio-ruby/rest/preview/understand/assistant/query.rb +1 -1
  199. data/lib/twilio-ruby/rest/preview/understand/assistant/task.rb +1 -1
  200. data/lib/twilio-ruby/rest/preview/understand/assistant/task/field.rb +1 -1
  201. data/lib/twilio-ruby/rest/preview/understand/assistant/task/sample.rb +1 -1
  202. data/lib/twilio-ruby/rest/preview/wireless/command.rb +1 -1
  203. data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +1 -1
  204. data/lib/twilio-ruby/rest/preview/wireless/sim.rb +1 -1
  205. data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +1 -1
  206. data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +1 -1
  207. data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +1 -1
  208. data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +1 -1
  209. data/lib/twilio-ruby/rest/pricing/v2/voice/country.rb +1 -1
  210. data/lib/twilio-ruby/rest/pricing/v2/voice/number.rb +1 -1
  211. data/lib/twilio-ruby/rest/proxy/v1/service.rb +1 -1
  212. data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +1 -1
  213. data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +43 -5
  214. data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +1 -1
  215. data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +14 -2
  216. data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +1 -1
  217. data/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb +1 -1
  218. data/lib/twilio-ruby/rest/serverless/v1/service.rb +1 -1
  219. data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +1 -1
  220. data/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +1 -1
  221. data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +1 -1
  222. data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +1 -1
  223. data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +1 -1
  224. data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +1 -1
  225. data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +1 -1
  226. data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +1 -1
  227. data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +1 -1
  228. data/lib/twilio-ruby/rest/studio/v1/flow.rb +1 -1
  229. data/lib/twilio-ruby/rest/studio/v1/flow/engagement.rb +1 -1
  230. data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb +1 -1
  231. data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +1 -1
  232. data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb +1 -1
  233. data/lib/twilio-ruby/rest/studio/v2/flow.rb +1 -1
  234. data/lib/twilio-ruby/rest/studio/v2/flow/execution.rb +1 -1
  235. data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb +1 -1
  236. data/lib/twilio-ruby/rest/studio/v2/flow/flow_revision.rb +1 -1
  237. data/lib/twilio-ruby/rest/supersim/v1/command.rb +1 -1
  238. data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +13 -12
  239. data/lib/twilio-ruby/rest/supersim/v1/network.rb +1 -1
  240. data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +1 -1
  241. data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +1 -1
  242. data/lib/twilio-ruby/rest/supersim/v1/sim.rb +25 -5
  243. data/lib/twilio-ruby/rest/supersim/v1/usage_record.rb +76 -10
  244. data/lib/twilio-ruby/rest/sync/v1/service.rb +1 -1
  245. data/lib/twilio-ruby/rest/sync/v1/service/document.rb +1 -1
  246. data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +1 -1
  247. data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +1 -1
  248. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +1 -1
  249. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +1 -1
  250. data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +1 -1
  251. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +1 -1
  252. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +1 -1
  253. data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +1 -1
  254. data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +1 -1
  255. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +1 -1
  256. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +1 -1
  257. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +1 -1
  258. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +1 -1
  259. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +1 -1
  260. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +1 -1
  261. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +1 -1
  262. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +1 -1
  263. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +1 -1
  264. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb +1 -1
  265. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +1 -1
  266. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +1 -1
  267. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +1 -1
  268. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +1 -1
  269. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +1 -1
  270. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +1 -1
  271. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +1 -1
  272. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +1 -1
  273. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +1 -1
  274. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +1 -1
  275. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +1 -1
  276. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +1 -1
  277. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +1 -1
  278. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +1 -1
  279. data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +26 -4
  280. data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +1 -1
  281. data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +1 -1
  282. data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +1 -1
  283. data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +1 -1
  284. data/lib/twilio-ruby/rest/verify/v2/service.rb +22 -10
  285. data/lib/twilio-ruby/rest/verify/v2/service/entity.rb +1 -1
  286. data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +11 -3
  287. data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +1 -1
  288. data/lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb +1 -1
  289. data/lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb +1 -1
  290. data/lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb +1 -1
  291. data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +4 -1
  292. data/lib/twilio-ruby/rest/verify/v2/service/webhook.rb +1 -1
  293. data/lib/twilio-ruby/rest/video/v1/composition.rb +1 -1
  294. data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +1 -1
  295. data/lib/twilio-ruby/rest/video/v1/recording.rb +1 -1
  296. data/lib/twilio-ruby/rest/video/v1/room.rb +1 -1
  297. data/lib/twilio-ruby/rest/video/v1/room/recording.rb +1 -1
  298. data/lib/twilio-ruby/rest/video/v1/room/room_participant.rb +1 -1
  299. data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_published_track.rb +1 -1
  300. data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribe_rule.rb +0 -6
  301. data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribed_track.rb +1 -1
  302. data/lib/twilio-ruby/rest/voice/v1/byoc_trunk.rb +1 -1
  303. data/lib/twilio-ruby/rest/voice/v1/connection_policy.rb +1 -1
  304. data/lib/twilio-ruby/rest/voice/v1/connection_policy/connection_policy_target.rb +1 -1
  305. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +1 -1
  306. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb +1 -1
  307. data/lib/twilio-ruby/rest/voice/v1/ip_record.rb +1 -1
  308. data/lib/twilio-ruby/rest/voice/v1/source_ip_mapping.rb +1 -1
  309. data/lib/twilio-ruby/rest/wireless/v1/command.rb +1 -1
  310. data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +1 -1
  311. data/lib/twilio-ruby/rest/wireless/v1/sim.rb +1 -1
  312. data/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb +6 -20
  313. data/lib/twilio-ruby/rest/wireless/v1/sim/usage_record.rb +1 -1
  314. data/lib/twilio-ruby/rest/wireless/v1/usage_record.rb +1 -1
  315. data/lib/twilio-ruby/version.rb +1 -1
  316. data/spec/framework/version_spec.rb +166 -0
  317. data/spec/integration/api/v2010/account/incoming_phone_number/local_spec.rb +35 -36
  318. data/spec/integration/api/v2010/account/incoming_phone_number/mobile_spec.rb +39 -40
  319. data/spec/integration/api/v2010/account/incoming_phone_number/toll_free_spec.rb +35 -36
  320. data/spec/integration/api/v2010/account/incoming_phone_number_spec.rb +25 -23
  321. data/spec/integration/api/v2010/account/message_spec.rb +37 -0
  322. data/spec/integration/bulkexports/v1/export/day_spec.rb +5 -5
  323. data/spec/integration/bulkexports/v1/export_configuration_spec.rb +4 -4
  324. data/spec/integration/bulkexports/v1/export_spec.rb +3 -3
  325. data/spec/integration/conversations/v1/conversation/message_spec.rb +38 -0
  326. data/spec/integration/conversations/v1/conversation/participant_spec.rb +56 -0
  327. data/spec/integration/conversations/v1/conversation_spec.rb +30 -0
  328. data/spec/integration/events/v1/sink/sink_test_spec.rb +42 -0
  329. data/spec/integration/events/v1/sink/sink_validate_spec.rb +44 -0
  330. data/spec/integration/events/v1/sink_spec.rb +217 -0
  331. data/spec/integration/events/v1/subscription/subscribed_event_spec.rb +212 -0
  332. data/spec/integration/events/v1/subscription_spec.rb +205 -0
  333. data/spec/integration/messaging/v1/deactivation_spec.rb +40 -0
  334. data/spec/integration/numbers/v2/regulatory_compliance/end_user_spec.rb +27 -0
  335. data/spec/integration/studio/v1/flow/execution/execution_step_spec.rb +1 -0
  336. data/spec/integration/studio/v2/flow/execution/execution_step_spec.rb +1 -0
  337. data/spec/integration/supersim/v1/usage_record_spec.rb +463 -18
  338. data/spec/integration/trunking/v1/trunk_spec.rb +4 -0
  339. data/spec/integration/verify/v2/service/access_token_spec.rb +1 -1
  340. data/spec/integration/verify/v2/service/entity/challenge_spec.rb +8 -8
  341. data/spec/integration/video/v1/room_spec.rb +37 -0
  342. data/spec/integration/wireless/v1/sim/data_session_spec.rb +2 -2
  343. data/spec/spec_helper.rb +1 -1
  344. metadata +24 -2
@@ -0,0 +1,322 @@
1
+ ##
2
+ # This code was generated by
3
+ # \ / _ _ _| _ _
4
+ # | (_)\/(_)(_|\/| |(/_ v1.0.0
5
+ # / /
6
+ #
7
+ # frozen_string_literal: true
8
+
9
+ module Twilio
10
+ module REST
11
+ class Events < Domain
12
+ class V1 < Version
13
+ class SubscriptionContext < InstanceContext
14
+ ##
15
+ # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
16
+ class SubscribedEventList < ListResource
17
+ ##
18
+ # Initialize the SubscribedEventList
19
+ # @param [Version] version Version that contains the resource
20
+ # @param [String] subscription_sid The unique SID identifier of the Subscription.
21
+ # @return [SubscribedEventList] SubscribedEventList
22
+ def initialize(version, subscription_sid: nil)
23
+ super(version)
24
+
25
+ # Path Solution
26
+ @solution = {subscription_sid: subscription_sid}
27
+ @uri = "/Subscriptions/#{@solution[:subscription_sid]}/SubscribedEvents"
28
+ end
29
+
30
+ ##
31
+ # Lists SubscribedEventInstance records from the API as a list.
32
+ # Unlike stream(), this operation is eager and will load `limit` records into
33
+ # memory before returning.
34
+ # @param [Integer] limit Upper limit for the number of records to return. stream()
35
+ # guarantees to never return more than limit. Default is no limit
36
+ # @param [Integer] page_size Number of records to fetch per request, when
37
+ # not set will use the default value of 50 records. If no page_size is defined
38
+ # but a limit is defined, stream() will attempt to read the limit with the most
39
+ # efficient page size, i.e. min(limit, 1000)
40
+ # @return [Array] Array of up to limit results
41
+ def list(limit: nil, page_size: nil)
42
+ self.stream(limit: limit, page_size: page_size).entries
43
+ end
44
+
45
+ ##
46
+ # Streams SubscribedEventInstance records from the API as an Enumerable.
47
+ # This operation lazily loads records as efficiently as possible until the limit
48
+ # is reached.
49
+ # @param [Integer] limit Upper limit for the number of records to return. stream()
50
+ # guarantees to never return more than limit. Default is no limit.
51
+ # @param [Integer] page_size Number of records to fetch per request, when
52
+ # not set will use the default value of 50 records. If no page_size is defined
53
+ # but a limit is defined, stream() will attempt to read the limit with the most
54
+ # efficient page size, i.e. min(limit, 1000)
55
+ # @return [Enumerable] Enumerable that will yield up to limit results
56
+ def stream(limit: nil, page_size: nil)
57
+ limits = @version.read_limits(limit, page_size)
58
+
59
+ page = self.page(page_size: limits[:page_size], )
60
+
61
+ @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
62
+ end
63
+
64
+ ##
65
+ # When passed a block, yields SubscribedEventInstance records from the API.
66
+ # This operation lazily loads records as efficiently as possible until the limit
67
+ # is reached.
68
+ def each
69
+ limits = @version.read_limits
70
+
71
+ page = self.page(page_size: limits[:page_size], )
72
+
73
+ @version.stream(page,
74
+ limit: limits[:limit],
75
+ page_limit: limits[:page_limit]).each {|x| yield x}
76
+ end
77
+
78
+ ##
79
+ # Retrieve a single page of SubscribedEventInstance records from the API.
80
+ # Request is executed immediately.
81
+ # @param [String] page_token PageToken provided by the API
82
+ # @param [Integer] page_number Page Number, this value is simply for client state
83
+ # @param [Integer] page_size Number of records to return, defaults to 50
84
+ # @return [Page] Page of SubscribedEventInstance
85
+ def page(page_token: :unset, page_number: :unset, page_size: :unset)
86
+ params = Twilio::Values.of({
87
+ 'PageToken' => page_token,
88
+ 'Page' => page_number,
89
+ 'PageSize' => page_size,
90
+ })
91
+
92
+ response = @version.page('GET', @uri, params: params)
93
+
94
+ SubscribedEventPage.new(@version, response, @solution)
95
+ end
96
+
97
+ ##
98
+ # Retrieve a single page of SubscribedEventInstance records from the API.
99
+ # Request is executed immediately.
100
+ # @param [String] target_url API-generated URL for the requested results page
101
+ # @return [Page] Page of SubscribedEventInstance
102
+ def get_page(target_url)
103
+ response = @version.domain.request(
104
+ 'GET',
105
+ target_url
106
+ )
107
+ SubscribedEventPage.new(@version, response, @solution)
108
+ end
109
+
110
+ ##
111
+ # Create the SubscribedEventInstance
112
+ # @param [String] type Type of event being subscribed to.
113
+ # @param [String] version The schema version that the subscription should use.
114
+ # @return [SubscribedEventInstance] Created SubscribedEventInstance
115
+ def create(type: nil, version: :unset)
116
+ data = Twilio::Values.of({'Type' => type, 'Version' => version, })
117
+
118
+ payload = @version.create('POST', @uri, data: data)
119
+
120
+ SubscribedEventInstance.new(@version, payload, subscription_sid: @solution[:subscription_sid], )
121
+ end
122
+
123
+ ##
124
+ # Provide a user friendly representation
125
+ def to_s
126
+ '#<Twilio.Events.V1.SubscribedEventList>'
127
+ end
128
+ end
129
+
130
+ ##
131
+ # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
132
+ class SubscribedEventPage < Page
133
+ ##
134
+ # Initialize the SubscribedEventPage
135
+ # @param [Version] version Version that contains the resource
136
+ # @param [Response] response Response from the API
137
+ # @param [Hash] solution Path solution for the resource
138
+ # @return [SubscribedEventPage] SubscribedEventPage
139
+ def initialize(version, response, solution)
140
+ super(version, response)
141
+
142
+ # Path Solution
143
+ @solution = solution
144
+ end
145
+
146
+ ##
147
+ # Build an instance of SubscribedEventInstance
148
+ # @param [Hash] payload Payload response from the API
149
+ # @return [SubscribedEventInstance] SubscribedEventInstance
150
+ def get_instance(payload)
151
+ SubscribedEventInstance.new(@version, payload, subscription_sid: @solution[:subscription_sid], )
152
+ end
153
+
154
+ ##
155
+ # Provide a user friendly representation
156
+ def to_s
157
+ '<Twilio.Events.V1.SubscribedEventPage>'
158
+ end
159
+ end
160
+
161
+ ##
162
+ # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
163
+ class SubscribedEventContext < InstanceContext
164
+ ##
165
+ # Initialize the SubscribedEventContext
166
+ # @param [Version] version Version that contains the resource
167
+ # @param [String] subscription_sid The unique SID identifier of the Subscription.
168
+ # @param [String] type Type of event being subscribed to.
169
+ # @return [SubscribedEventContext] SubscribedEventContext
170
+ def initialize(version, subscription_sid, type)
171
+ super(version)
172
+
173
+ # Path Solution
174
+ @solution = {subscription_sid: subscription_sid, type: type, }
175
+ @uri = "/Subscriptions/#{@solution[:subscription_sid]}/SubscribedEvents/#{@solution[:type]}"
176
+ end
177
+
178
+ ##
179
+ # Update the SubscribedEventInstance
180
+ # @param [String] version The schema version that the subscription should use.
181
+ # @return [SubscribedEventInstance] Updated SubscribedEventInstance
182
+ def update(version: nil)
183
+ data = Twilio::Values.of({'Version' => version, })
184
+
185
+ payload = @version.update('POST', @uri, data: data)
186
+
187
+ SubscribedEventInstance.new(
188
+ @version,
189
+ payload,
190
+ subscription_sid: @solution[:subscription_sid],
191
+ type: @solution[:type],
192
+ )
193
+ end
194
+
195
+ ##
196
+ # Delete the SubscribedEventInstance
197
+ # @return [Boolean] true if delete succeeds, false otherwise
198
+ def delete
199
+ @version.delete('DELETE', @uri)
200
+ end
201
+
202
+ ##
203
+ # Provide a user friendly representation
204
+ def to_s
205
+ context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
206
+ "#<Twilio.Events.V1.SubscribedEventContext #{context}>"
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.Events.V1.SubscribedEventContext #{context}>"
214
+ end
215
+ end
216
+
217
+ ##
218
+ # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
219
+ class SubscribedEventInstance < InstanceResource
220
+ ##
221
+ # Initialize the SubscribedEventInstance
222
+ # @param [Version] version Version that contains the resource
223
+ # @param [Hash] payload payload that contains response from Twilio
224
+ # @param [String] subscription_sid The unique SID identifier of the Subscription.
225
+ # @param [String] type Type of event being subscribed to.
226
+ # @return [SubscribedEventInstance] SubscribedEventInstance
227
+ def initialize(version, payload, subscription_sid: nil, type: nil)
228
+ super(version)
229
+
230
+ # Marshaled Properties
231
+ @properties = {
232
+ 'account_sid' => payload['account_sid'],
233
+ 'type' => payload['type'],
234
+ 'version' => payload['version'].to_i,
235
+ 'subscription_sid' => payload['subscription_sid'],
236
+ 'url' => payload['url'],
237
+ }
238
+
239
+ # Context
240
+ @instance_context = nil
241
+ @params = {'subscription_sid' => subscription_sid, 'type' => type || @properties['type'], }
242
+ end
243
+
244
+ ##
245
+ # Generate an instance context for the instance, the context is capable of
246
+ # performing various actions. All instance actions are proxied to the context
247
+ # @return [SubscribedEventContext] SubscribedEventContext for this SubscribedEventInstance
248
+ def context
249
+ unless @instance_context
250
+ @instance_context = SubscribedEventContext.new(
251
+ @version,
252
+ @params['subscription_sid'],
253
+ @params['type'],
254
+ )
255
+ end
256
+ @instance_context
257
+ end
258
+
259
+ ##
260
+ # @return [String] Account SID.
261
+ def account_sid
262
+ @properties['account_sid']
263
+ end
264
+
265
+ ##
266
+ # @return [String] Type of event being subscribed to.
267
+ def type
268
+ @properties['type']
269
+ end
270
+
271
+ ##
272
+ # @return [String] The schema version that the subscription should use.
273
+ def version
274
+ @properties['version']
275
+ end
276
+
277
+ ##
278
+ # @return [String] Subscription SID.
279
+ def subscription_sid
280
+ @properties['subscription_sid']
281
+ end
282
+
283
+ ##
284
+ # @return [String] The URL of this resource.
285
+ def url
286
+ @properties['url']
287
+ end
288
+
289
+ ##
290
+ # Update the SubscribedEventInstance
291
+ # @param [String] version The schema version that the subscription should use.
292
+ # @return [SubscribedEventInstance] Updated SubscribedEventInstance
293
+ def update(version: nil)
294
+ context.update(version: version, )
295
+ end
296
+
297
+ ##
298
+ # Delete the SubscribedEventInstance
299
+ # @return [Boolean] true if delete succeeds, false otherwise
300
+ def delete
301
+ context.delete
302
+ end
303
+
304
+ ##
305
+ # Provide a user friendly representation
306
+ def to_s
307
+ values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
308
+ "<Twilio.Events.V1.SubscribedEventInstance #{values}>"
309
+ end
310
+
311
+ ##
312
+ # Provide a detailed, user friendly representation
313
+ def inspect
314
+ values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
315
+ "<Twilio.Events.V1.SubscribedEventInstance #{values}>"
316
+ end
317
+ end
318
+ end
319
+ end
320
+ end
321
+ end
322
+ end
@@ -134,7 +134,7 @@ module Twilio
134
134
  'PageSize' => page_size,
135
135
  })
136
136
 
137
- response = @version.page('GET', @uri, params)
137
+ response = @version.page('GET', @uri, params: params)
138
138
 
139
139
  FaxPage.new(@version, response, @solution)
140
140
  end
@@ -90,7 +90,7 @@ module Twilio
90
90
  'PageSize' => page_size,
91
91
  })
92
92
 
93
- response = @version.page('GET', @uri, params)
93
+ response = @version.page('GET', @uri, params: params)
94
94
 
95
95
  FaxMediaPage.new(@version, response, @solution)
96
96
  end
@@ -85,7 +85,7 @@ module Twilio
85
85
  'PageSize' => page_size,
86
86
  })
87
87
 
88
- response = @version.page('GET', @uri, params)
88
+ response = @version.page('GET', @uri, params: params)
89
89
 
90
90
  ChannelPage.new(@version, response, @solution)
91
91
  end
@@ -79,7 +79,7 @@ module Twilio
79
79
  def fetch(ui_version: :unset)
80
80
  params = Twilio::Values.of({'UiVersion' => ui_version, })
81
81
 
82
- payload = @version.fetch('GET', @uri, params)
82
+ payload = @version.fetch('GET', @uri, params: params)
83
83
 
84
84
  ConfigurationInstance.new(@version, payload, )
85
85
  end
@@ -92,7 +92,7 @@ module Twilio
92
92
  'PageSize' => page_size,
93
93
  })
94
94
 
95
- response = @version.page('GET', @uri, params)
95
+ response = @version.page('GET', @uri, params: params)
96
96
 
97
97
  FlexFlowPage.new(@version, response, @solution)
98
98
  end
@@ -85,7 +85,7 @@ module Twilio
85
85
  'PageSize' => page_size,
86
86
  })
87
87
 
88
- response = @version.page('GET', @uri, params)
88
+ response = @version.page('GET', @uri, params: params)
89
89
 
90
90
  WebChannelPage.new(@version, response, @solution)
91
91
  end
@@ -93,7 +93,7 @@ module Twilio
93
93
  'PageSize' => page_size,
94
94
  })
95
95
 
96
- response = @version.page('GET', @uri, params)
96
+ response = @version.page('GET', @uri, params: params)
97
97
 
98
98
  EventPage.new(@version, response, @solution)
99
99
  end
@@ -97,7 +97,7 @@ module Twilio
97
97
  'PageSize' => page_size,
98
98
  })
99
99
 
100
- response = @version.page('GET', @uri, params)
100
+ response = @version.page('GET', @uri, params: params)
101
101
 
102
102
  MetricPage.new(@version, response, @solution)
103
103
  end
@@ -87,7 +87,7 @@ module Twilio
87
87
  def fetch(processing_state: :unset)
88
88
  params = Twilio::Values.of({'ProcessingState' => processing_state, })
89
89
 
90
- payload = @version.fetch('GET', @uri, params)
90
+ payload = @version.fetch('GET', @uri, params: params)
91
91
 
92
92
  CallSummaryInstance.new(@version, payload, call_sid: @solution[:call_sid], )
93
93
  end
@@ -85,7 +85,7 @@ module Twilio
85
85
  'PageSize' => page_size,
86
86
  })
87
87
 
88
- response = @version.page('GET', @uri, params)
88
+ response = @version.page('GET', @uri, params: params)
89
89
 
90
90
  CredentialPage.new(@version, response, @solution)
91
91
  end
@@ -98,7 +98,7 @@ module Twilio
98
98
  'PageSize' => page_size,
99
99
  })
100
100
 
101
- response = @version.page('GET', @uri, params)
101
+ response = @version.page('GET', @uri, params: params)
102
102
 
103
103
  ServicePage.new(@version, response, @solution)
104
104
  end
@@ -122,7 +122,7 @@ module Twilio
122
122
  'PageSize' => page_size,
123
123
  })
124
124
 
125
- response = @version.page('GET', @uri, params)
125
+ response = @version.page('GET', @uri, params: params)
126
126
 
127
127
  ChannelPage.new(@version, response, @solution)
128
128
  end
@@ -133,7 +133,7 @@ module Twilio
133
133
  'PageSize' => page_size,
134
134
  })
135
135
 
136
- response = @version.page('GET', @uri, params)
136
+ response = @version.page('GET', @uri, params: params)
137
137
 
138
138
  InvitePage.new(@version, response, @solution)
139
139
  end