twilio-ruby 5.6.0 → 5.6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (348) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +20 -0
  3. data/LICENSE.md +1 -1
  4. data/README.md +2 -2
  5. data/lib/twilio-ruby/rest/accounts/v1/credential.rb +5 -5
  6. data/lib/twilio-ruby/rest/accounts/v1/credential/aws.rb +11 -11
  7. data/lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb +11 -11
  8. data/lib/twilio-ruby/rest/api/v2010/account.rb +51 -51
  9. data/lib/twilio-ruby/rest/api/v2010/account/address.rb +8 -8
  10. data/lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb +2 -2
  11. data/lib/twilio-ruby/rest/api/v2010/account/application.rb +9 -9
  12. data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +4 -4
  13. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number.rb +4 -4
  14. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/local.rb +1 -1
  15. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/machine_to_machine.rb +1 -1
  16. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb +1 -1
  17. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/national.rb +1 -1
  18. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/shared_cost.rb +1 -1
  19. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/toll_free.rb +1 -1
  20. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/voip.rb +1 -1
  21. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +17 -17
  22. data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +5 -5
  23. data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +5 -5
  24. data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +3 -3
  25. data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +10 -3
  26. data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +11 -11
  27. data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +3 -3
  28. data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +8 -8
  29. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +11 -11
  30. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +4 -4
  31. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +2 -2
  32. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +3 -3
  33. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +3 -3
  34. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +3 -3
  35. data/lib/twilio-ruby/rest/api/v2010/account/key.rb +10 -10
  36. data/lib/twilio-ruby/rest/api/v2010/account/message.rb +12 -12
  37. data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +1 -1
  38. data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +2 -2
  39. data/lib/twilio-ruby/rest/api/v2010/account/new_key.rb +3 -3
  40. data/lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb +3 -3
  41. data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +6 -6
  42. data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +7 -7
  43. data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +14 -14
  44. data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +5 -5
  45. data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +25 -12
  46. data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +3 -3
  47. data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +2 -2
  48. data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +3 -3
  49. data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +8 -8
  50. data/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb +10 -10
  51. data/lib/twilio-ruby/rest/api/v2010/account/sip.rb +7 -7
  52. data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +11 -11
  53. data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +6 -6
  54. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +11 -11
  55. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +4 -4
  56. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +4 -4
  57. data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +11 -11
  58. data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +5 -5
  59. data/lib/twilio-ruby/rest/api/v2010/account/token.rb +3 -3
  60. data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +6 -6
  61. data/lib/twilio-ruby/rest/api/v2010/account/usage.rb +4 -4
  62. data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +14 -14
  63. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +2 -2
  64. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +2 -2
  65. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +2 -2
  66. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +2 -2
  67. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +2 -2
  68. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +2 -2
  69. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +2 -2
  70. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +2 -2
  71. data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +8 -8
  72. data/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb +2 -2
  73. data/lib/twilio-ruby/rest/chat/v1/credential.rb +9 -9
  74. data/lib/twilio-ruby/rest/chat/v1/service.rb +16 -16
  75. data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +13 -13
  76. data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +4 -4
  77. data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +5 -5
  78. data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +6 -6
  79. data/lib/twilio-ruby/rest/chat/v1/service/role.rb +11 -11
  80. data/lib/twilio-ruby/rest/chat/v1/service/user.rb +10 -10
  81. data/lib/twilio-ruby/rest/chat/v1/service/user/user_channel.rb +2 -2
  82. data/lib/twilio-ruby/rest/chat/v2/credential.rb +9 -9
  83. data/lib/twilio-ruby/rest/chat/v2/service.rb +24 -20
  84. data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +7 -7
  85. data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +12 -12
  86. data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +4 -4
  87. data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +3 -3
  88. data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +3 -3
  89. data/lib/twilio-ruby/rest/chat/v2/service/role.rb +11 -11
  90. data/lib/twilio-ruby/rest/chat/v2/service/user.rb +11 -11
  91. data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +4 -4
  92. data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +2 -2
  93. data/lib/twilio-ruby/rest/fax/v1/fax.rb +16 -13
  94. data/lib/twilio-ruby/rest/fax/v1/fax/fax_media.rb +7 -7
  95. data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +9 -9
  96. data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +16 -16
  97. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +13 -13
  98. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +4 -4
  99. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +5 -5
  100. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +6 -6
  101. data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +11 -11
  102. data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +10 -10
  103. data/lib/twilio-ruby/rest/ip_messaging/v1/service/user/user_channel.rb +2 -2
  104. data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +9 -9
  105. data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +24 -20
  106. data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +7 -7
  107. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +12 -12
  108. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +4 -4
  109. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +3 -3
  110. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +3 -3
  111. data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +11 -11
  112. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +11 -11
  113. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +4 -4
  114. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +2 -2
  115. data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +6 -6
  116. data/lib/twilio-ruby/rest/messaging/v1/service.rb +15 -15
  117. data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +9 -9
  118. data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +9 -9
  119. data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +9 -9
  120. data/lib/twilio-ruby/rest/monitor/v1/alert.rb +6 -6
  121. data/lib/twilio-ruby/rest/monitor/v1/event.rb +6 -6
  122. data/lib/twilio-ruby/rest/notify/v1/credential.rb +9 -9
  123. data/lib/twilio-ruby/rest/notify/v1/service.rb +15 -15
  124. data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +7 -7
  125. data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +2 -2
  126. data/lib/twilio-ruby/rest/notify/v1/service/segment.rb +3 -3
  127. data/lib/twilio-ruby/rest/notify/v1/service/user.rb +9 -9
  128. data/lib/twilio-ruby/rest/notify/v1/service/user/segment_memberships.rb +2 -2
  129. data/lib/twilio-ruby/rest/notify/v1/service/user/user_binding.rb +4 -4
  130. data/lib/twilio-ruby/rest/preview/acc_security/service.rb +14 -14
  131. data/lib/twilio-ruby/rest/preview/acc_security/service/verification.rb +3 -3
  132. data/lib/twilio-ruby/rest/preview/acc_security/service/verification_check.rb +3 -3
  133. data/lib/twilio-ruby/rest/preview/bulk_exports/export.rb +6 -6
  134. data/lib/twilio-ruby/rest/preview/bulk_exports/export/day.rb +3 -3
  135. data/lib/twilio-ruby/rest/preview/bulk_exports/export_configuration.rb +7 -7
  136. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +19 -19
  137. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/certificate.rb +11 -11
  138. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/deployment.rb +12 -12
  139. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/device.rb +9 -9
  140. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/key.rb +12 -12
  141. data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +41 -9
  142. data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb +400 -0
  143. data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +56 -13
  144. data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +9 -9
  145. data/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb +4 -4
  146. data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +12 -12
  147. data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb +6 -6
  148. data/lib/twilio-ruby/rest/preview/proxy/service.rb +16 -16
  149. data/lib/twilio-ruby/rest/preview/proxy/service/phone_number.rb +9 -9
  150. data/lib/twilio-ruby/rest/preview/proxy/service/session.rb +12 -12
  151. data/lib/twilio-ruby/rest/preview/proxy/service/session/interaction.rb +2 -2
  152. data/lib/twilio-ruby/rest/preview/proxy/service/session/participant.rb +2 -2
  153. data/lib/twilio-ruby/rest/preview/proxy/service/session/participant/message_interaction.rb +3 -3
  154. data/lib/twilio-ruby/rest/preview/proxy/service/short_code.rb +9 -9
  155. data/lib/twilio-ruby/rest/preview/studio/flow.rb +9 -9
  156. data/lib/twilio-ruby/rest/preview/studio/flow/engagement.rb +11 -11
  157. data/lib/twilio-ruby/rest/preview/studio/flow/engagement/step.rb +3 -3
  158. data/lib/twilio-ruby/rest/preview/sync/service.rb +15 -15
  159. data/lib/twilio-ruby/rest/preview/sync/service/document.rb +13 -13
  160. data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +5 -5
  161. data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +11 -11
  162. data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +6 -6
  163. data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +5 -5
  164. data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +11 -11
  165. data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +7 -7
  166. data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +5 -5
  167. data/lib/twilio-ruby/rest/preview/understand/service.rb +17 -17
  168. data/lib/twilio-ruby/rest/preview/understand/service/field_type.rb +13 -13
  169. data/lib/twilio-ruby/rest/preview/understand/service/field_type/field_value.rb +4 -4
  170. data/lib/twilio-ruby/rest/preview/understand/service/intent.rb +16 -16
  171. data/lib/twilio-ruby/rest/preview/understand/service/intent/field.rb +4 -4
  172. data/lib/twilio-ruby/rest/preview/understand/service/intent/sample.rb +6 -6
  173. data/lib/twilio-ruby/rest/preview/understand/service/model_build.rb +12 -12
  174. data/lib/twilio-ruby/rest/preview/understand/service/query.rb +10 -10
  175. data/lib/twilio-ruby/rest/preview/wireless/command.rb +7 -7
  176. data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +11 -11
  177. data/lib/twilio-ruby/rest/preview/wireless/sim.rb +8 -8
  178. data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +7 -7
  179. data/lib/twilio-ruby/rest/pricing/v1/messaging.rb +4 -4
  180. data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +7 -7
  181. data/lib/twilio-ruby/rest/pricing/v1/phone_number.rb +4 -4
  182. data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +7 -7
  183. data/lib/twilio-ruby/rest/pricing/v1/voice.rb +6 -6
  184. data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +7 -7
  185. data/lib/twilio-ruby/rest/pricing/v1/voice/number.rb +5 -5
  186. data/lib/twilio-ruby/rest/proxy/v1/service.rb +15 -15
  187. data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +9 -9
  188. data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +11 -11
  189. data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +2 -2
  190. data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +3 -3
  191. data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +3 -3
  192. data/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb +9 -9
  193. data/lib/twilio-ruby/rest/sync/v1/service.rb +17 -17
  194. data/lib/twilio-ruby/rest/sync/v1/service/document.rb +12 -12
  195. data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +5 -5
  196. data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +14 -14
  197. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +6 -6
  198. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +5 -5
  199. data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +14 -14
  200. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +7 -7
  201. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +5 -5
  202. data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +12 -12
  203. data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +2 -2
  204. data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +26 -26
  205. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +12 -12
  206. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +6 -6
  207. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +11 -11
  208. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +3 -3
  209. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +6 -6
  210. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +10 -10
  211. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +2 -2
  212. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +4 -4
  213. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +2 -2
  214. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb +2 -2
  215. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +16 -16
  216. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +3 -3
  217. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +5 -12
  218. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +3 -3
  219. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +6 -6
  220. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +7 -7
  221. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +5 -5
  222. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +12 -12
  223. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +2 -2
  224. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +4 -4
  225. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +2 -2
  226. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +5 -5
  227. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +7 -7
  228. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +5 -5
  229. data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +17 -17
  230. data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +9 -9
  231. data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +8 -8
  232. data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +9 -9
  233. data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +9 -9
  234. data/lib/twilio-ruby/rest/video/v1/recording.rb +6 -6
  235. data/lib/twilio-ruby/rest/video/v1/room.rb +14 -14
  236. data/lib/twilio-ruby/rest/video/v1/room/recording.rb +6 -6
  237. data/lib/twilio-ruby/rest/video/v1/room/room_participant.rb +10 -10
  238. data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_published_track.rb +3 -3
  239. data/lib/twilio-ruby/rest/wireless/v1/command.rb +8 -8
  240. data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +11 -11
  241. data/lib/twilio-ruby/rest/wireless/v1/sim.rb +9 -9
  242. data/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb +3 -3
  243. data/lib/twilio-ruby/rest/wireless/v1/sim/usage_record.rb +3 -3
  244. data/lib/twilio-ruby/version.rb +1 -1
  245. data/spec/integration/accounts/v1/credential/aws_spec.rb +1 -1
  246. data/spec/integration/accounts/v1/credential/public_key_spec.rb +1 -1
  247. data/spec/integration/api/v2010/account/application_spec.rb +1 -1
  248. data/spec/integration/api/v2010/account/call/feedback_spec.rb +2 -2
  249. data/spec/integration/api/v2010/account/call_spec.rb +3 -3
  250. data/spec/integration/api/v2010/account/conference/participant_spec.rb +4 -4
  251. data/spec/integration/api/v2010/account/incoming_phone_number/assigned_add_on_spec.rb +1 -1
  252. data/spec/integration/api/v2010/account/incoming_phone_number/local_spec.rb +3 -3
  253. data/spec/integration/api/v2010/account/incoming_phone_number/mobile_spec.rb +3 -3
  254. data/spec/integration/api/v2010/account/incoming_phone_number/toll_free_spec.rb +3 -3
  255. data/spec/integration/api/v2010/account/message_spec.rb +4 -4
  256. data/spec/integration/api/v2010/account/queue/member_spec.rb +1 -1
  257. data/spec/integration/api/v2010/account/queue_spec.rb +1 -1
  258. data/spec/integration/api/v2010/account/sip/credential_list/credential_spec.rb +1 -1
  259. data/spec/integration/api/v2010/account/sip/credential_list_spec.rb +2 -2
  260. data/spec/integration/api/v2010/account/sip/domain/credential_list_mapping_spec.rb +1 -1
  261. data/spec/integration/api/v2010/account/sip/domain/ip_access_control_list_mapping_spec.rb +1 -1
  262. data/spec/integration/api/v2010/account/sip/domain_spec.rb +1 -1
  263. data/spec/integration/api/v2010/account/sip/ip_access_control_list/ip_address_spec.rb +1 -1
  264. data/spec/integration/api/v2010/account/sip/ip_access_control_list_spec.rb +2 -2
  265. data/spec/integration/api/v2010/account/validation_request_spec.rb +3 -3
  266. data/spec/integration/chat/v1/credential_spec.rb +1 -1
  267. data/spec/integration/chat/v1/service/channel/invite_spec.rb +1 -1
  268. data/spec/integration/chat/v1/service/channel/member_spec.rb +1 -1
  269. data/spec/integration/chat/v1/service/channel/message_spec.rb +1 -1
  270. data/spec/integration/chat/v1/service/role_spec.rb +1 -1
  271. data/spec/integration/chat/v1/service/user_spec.rb +1 -1
  272. data/spec/integration/chat/v1/service_spec.rb +1 -1
  273. data/spec/integration/chat/v2/credential_spec.rb +1 -1
  274. data/spec/integration/chat/v2/service/channel/invite_spec.rb +1 -1
  275. data/spec/integration/chat/v2/service/channel/member_spec.rb +1 -1
  276. data/spec/integration/chat/v2/service/role_spec.rb +1 -1
  277. data/spec/integration/chat/v2/service/user_spec.rb +1 -1
  278. data/spec/integration/chat/v2/service_spec.rb +2 -1
  279. data/spec/integration/fax/v1/fax_spec.rb +1 -1
  280. data/spec/integration/ip_messaging/v1/credential_spec.rb +1 -1
  281. data/spec/integration/ip_messaging/v1/service/channel/invite_spec.rb +1 -1
  282. data/spec/integration/ip_messaging/v1/service/channel/member_spec.rb +1 -1
  283. data/spec/integration/ip_messaging/v1/service/channel/message_spec.rb +1 -1
  284. data/spec/integration/ip_messaging/v1/service/role_spec.rb +1 -1
  285. data/spec/integration/ip_messaging/v1/service/user_spec.rb +1 -1
  286. data/spec/integration/ip_messaging/v1/service_spec.rb +1 -1
  287. data/spec/integration/ip_messaging/v2/credential_spec.rb +1 -1
  288. data/spec/integration/ip_messaging/v2/service/channel/invite_spec.rb +1 -1
  289. data/spec/integration/ip_messaging/v2/service/channel/member_spec.rb +1 -1
  290. data/spec/integration/ip_messaging/v2/service/role_spec.rb +1 -1
  291. data/spec/integration/ip_messaging/v2/service/user_spec.rb +1 -1
  292. data/spec/integration/ip_messaging/v2/service_spec.rb +2 -1
  293. data/spec/integration/lookups/v1/phone_number_spec.rb +3 -3
  294. data/spec/integration/messaging/v1/service/alpha_sender_spec.rb +1 -1
  295. data/spec/integration/messaging/v1/service/phone_number_spec.rb +1 -1
  296. data/spec/integration/messaging/v1/service/short_code_spec.rb +1 -1
  297. data/spec/integration/messaging/v1/service_spec.rb +1 -1
  298. data/spec/integration/notify/v1/credential_spec.rb +1 -1
  299. data/spec/integration/notify/v1/service/binding_spec.rb +1 -1
  300. data/spec/integration/notify/v1/service/user/segment_memberships_spec.rb +1 -1
  301. data/spec/integration/notify/v1/service/user/user_binding_spec.rb +1 -1
  302. data/spec/integration/notify/v1/service/user_spec.rb +1 -1
  303. data/spec/integration/preview/acc_security/service/verification_check_spec.rb +1 -1
  304. data/spec/integration/preview/acc_security/service/verification_spec.rb +1 -1
  305. data/spec/integration/preview/acc_security/service_spec.rb +1 -1
  306. data/spec/integration/preview/deployed_devices/fleet/certificate_spec.rb +1 -1
  307. data/spec/integration/preview/hosted_numbers/authorization_document/dependent_hosted_number_order_spec.rb +109 -0
  308. data/spec/integration/preview/hosted_numbers/authorization_document_spec.rb +12 -0
  309. data/spec/integration/preview/hosted_numbers/hosted_number_order_spec.rb +56 -17
  310. data/spec/integration/preview/marketplace/installed_add_on/installed_add_on_extension_spec.rb +1 -1
  311. data/spec/integration/preview/proxy/service/phone_number_spec.rb +1 -1
  312. data/spec/integration/preview/proxy/service/session/participant_spec.rb +1 -1
  313. data/spec/integration/preview/proxy/service/short_code_spec.rb +1 -1
  314. data/spec/integration/preview/studio/flow/engagement_spec.rb +3 -3
  315. data/spec/integration/preview/sync/service/document/document_permission_spec.rb +1 -1
  316. data/spec/integration/preview/sync/service/document_spec.rb +1 -1
  317. data/spec/integration/preview/sync/service/sync_list/sync_list_item_spec.rb +2 -2
  318. data/spec/integration/preview/sync/service/sync_list/sync_list_permission_spec.rb +1 -1
  319. data/spec/integration/preview/sync/service/sync_map/sync_map_item_spec.rb +2 -2
  320. data/spec/integration/preview/sync/service/sync_map/sync_map_permission_spec.rb +1 -1
  321. data/spec/integration/preview/understand/service/field_type/field_value_spec.rb +1 -1
  322. data/spec/integration/preview/understand/service/field_type_spec.rb +1 -1
  323. data/spec/integration/preview/understand/service/intent/field_spec.rb +1 -1
  324. data/spec/integration/preview/understand/service/intent/sample_spec.rb +1 -1
  325. data/spec/integration/preview/understand/service/intent_spec.rb +1 -1
  326. data/spec/integration/preview/understand/service/query_spec.rb +1 -1
  327. data/spec/integration/preview/wireless/command_spec.rb +1 -1
  328. data/spec/integration/pricing/v1/voice/number_spec.rb +3 -3
  329. data/spec/integration/proxy/v1/service/session/participant_spec.rb +1 -1
  330. data/spec/integration/proxy/v1/service/short_code_spec.rb +1 -1
  331. data/spec/integration/proxy/v1/service_spec.rb +1 -1
  332. data/spec/integration/sync/v1/service/document/document_permission_spec.rb +1 -1
  333. data/spec/integration/sync/v1/service/sync_list/sync_list_item_spec.rb +1 -1
  334. data/spec/integration/sync/v1/service/sync_list/sync_list_permission_spec.rb +1 -1
  335. data/spec/integration/sync/v1/service/sync_map/sync_map_item_spec.rb +1 -1
  336. data/spec/integration/sync/v1/service/sync_map/sync_map_permission_spec.rb +1 -1
  337. data/spec/integration/sync/v1/service/sync_stream/stream_message_spec.rb +1 -1
  338. data/spec/integration/taskrouter/v1/workspace/activity_spec.rb +1 -1
  339. data/spec/integration/taskrouter/v1/workspace/worker/worker_channel_spec.rb +0 -15
  340. data/spec/integration/taskrouter/v1/workspace/worker_spec.rb +1 -1
  341. data/spec/integration/taskrouter/v1/workspace/workflow_spec.rb +1 -1
  342. data/spec/integration/taskrouter/v1/workspace_spec.rb +1 -1
  343. data/spec/integration/trunking/v1/trunk/credential_list_spec.rb +1 -1
  344. data/spec/integration/trunking/v1/trunk/ip_access_control_list_spec.rb +1 -1
  345. data/spec/integration/trunking/v1/trunk/phone_number_spec.rb +1 -1
  346. data/spec/integration/video/v1/room_spec.rb +1 -1
  347. data/spec/integration/wireless/v1/command_spec.rb +1 -1
  348. metadata +6 -3
@@ -0,0 +1,400 @@
1
+ ##
2
+ # This code was generated by
3
+ # \ / _ _ _| _ _
4
+ # | (_)\/(_)(_|\/| |(/_ v1.0.0
5
+ # / /
6
+
7
+ module Twilio
8
+ module REST
9
+ class Preview < Domain
10
+ class HostedNumbers < Version
11
+ class AuthorizationDocumentContext < InstanceContext
12
+ ##
13
+ # 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.
14
+ class DependentHostedNumberOrderList < ListResource
15
+ ##
16
+ # Initialize the DependentHostedNumberOrderList
17
+ # @param [Version] version Version that contains the resource
18
+ # @param [String] signing_document_sid A 34 character string that uniquely
19
+ # identifies the LOA document associated with this HostedNumberOrder.
20
+ # @return [DependentHostedNumberOrderList] DependentHostedNumberOrderList
21
+ def initialize(version, signing_document_sid: nil)
22
+ super(version)
23
+
24
+ # Path Solution
25
+ @solution = {signing_document_sid: signing_document_sid}
26
+ @uri = "/AuthorizationDocuments/#{@solution[:signing_document_sid]}/DependentHostedNumberOrders"
27
+ end
28
+
29
+ ##
30
+ # Lists DependentHostedNumberOrderInstance records from the API as a list.
31
+ # Unlike stream(), this operation is eager and will load `limit` records into
32
+ # memory before returning.
33
+ # @param [dependent_hosted_number_order.Status] status The Status of this
34
+ # HostedNumberOrder. One of `received`, `pending-verification`, `verified`,
35
+ # `pending-loa`, `carrier-processing`, `testing`, `completed`, `failed`, or
36
+ # `action-required`.
37
+ # @param [String] phone_number An E164 formatted phone number hosted by this
38
+ # HostedNumberOrder.
39
+ # @param [String] incoming_phone_number_sid A 34 character string that uniquely
40
+ # identifies the IncomingPhoneNumber resource created by this HostedNumberOrder.
41
+ # @param [String] friendly_name A human readable description of this resource, up
42
+ # to 64 characters.
43
+ # @param [String] unique_name Provides a unique and addressable name to be
44
+ # assigned to this HostedNumberOrder, assigned by the developer, to be optionally
45
+ # used in addition to SID.
46
+ # @param [Integer] limit Upper limit for the number of records to return. stream()
47
+ # guarantees to never return more than limit. Default is no limit
48
+ # @param [Integer] page_size Number of records to fetch per request, when
49
+ # not set will use the default value of 50 records. If no page_size is defined
50
+ # but a limit is defined, stream() will attempt to read the limit with the most
51
+ # efficient page size, i.e. min(limit, 1000)
52
+ # @return [Array] Array of up to limit results
53
+ def list(status: :unset, phone_number: :unset, incoming_phone_number_sid: :unset, friendly_name: :unset, unique_name: :unset, limit: nil, page_size: nil)
54
+ self.stream(
55
+ status: status,
56
+ phone_number: phone_number,
57
+ incoming_phone_number_sid: incoming_phone_number_sid,
58
+ friendly_name: friendly_name,
59
+ unique_name: unique_name,
60
+ limit: limit,
61
+ page_size: page_size
62
+ ).entries
63
+ end
64
+
65
+ ##
66
+ # Streams DependentHostedNumberOrderInstance records from the API as an Enumerable.
67
+ # This operation lazily loads records as efficiently as possible until the limit
68
+ # is reached.
69
+ # @param [dependent_hosted_number_order.Status] status The Status of this
70
+ # HostedNumberOrder. One of `received`, `pending-verification`, `verified`,
71
+ # `pending-loa`, `carrier-processing`, `testing`, `completed`, `failed`, or
72
+ # `action-required`.
73
+ # @param [String] phone_number An E164 formatted phone number hosted by this
74
+ # HostedNumberOrder.
75
+ # @param [String] incoming_phone_number_sid A 34 character string that uniquely
76
+ # identifies the IncomingPhoneNumber resource created by this HostedNumberOrder.
77
+ # @param [String] friendly_name A human readable description of this resource, up
78
+ # to 64 characters.
79
+ # @param [String] unique_name Provides a unique and addressable name to be
80
+ # assigned to this HostedNumberOrder, assigned by the developer, to be optionally
81
+ # used in addition to SID.
82
+ # @param [Integer] limit Upper limit for the number of records to return. stream()
83
+ # guarantees to never return more than limit. Default is no limit.
84
+ # @param [Integer] page_size Number of records to fetch per request, when
85
+ # not set will use the default value of 50 records. If no page_size is defined
86
+ # but a limit is defined, stream() will attempt to read the limit with the most
87
+ # efficient page size, i.e. min(limit, 1000)
88
+ # @return [Enumerable] Enumerable that will yield up to limit results
89
+ def stream(status: :unset, phone_number: :unset, incoming_phone_number_sid: :unset, friendly_name: :unset, unique_name: :unset, limit: nil, page_size: nil)
90
+ limits = @version.read_limits(limit, page_size)
91
+
92
+ page = self.page(
93
+ status: status,
94
+ phone_number: phone_number,
95
+ incoming_phone_number_sid: incoming_phone_number_sid,
96
+ friendly_name: friendly_name,
97
+ unique_name: unique_name,
98
+ page_size: limits[:page_size],
99
+ )
100
+
101
+ @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
102
+ end
103
+
104
+ ##
105
+ # When passed a block, yields DependentHostedNumberOrderInstance records from the API.
106
+ # This operation lazily loads records as efficiently as possible until the limit
107
+ # is reached.
108
+ def each
109
+ limits = @version.read_limits
110
+
111
+ page = self.page(page_size: limits[:page_size], )
112
+
113
+ @version.stream(page,
114
+ limit: limits[:limit],
115
+ page_limit: limits[:page_limit]).each {|x| yield x}
116
+ end
117
+
118
+ ##
119
+ # Retrieve a single page of DependentHostedNumberOrderInstance records from the API.
120
+ # Request is executed immediately.
121
+ # @param [dependent_hosted_number_order.Status] status The Status of this
122
+ # HostedNumberOrder. One of `received`, `pending-verification`, `verified`,
123
+ # `pending-loa`, `carrier-processing`, `testing`, `completed`, `failed`, or
124
+ # `action-required`.
125
+ # @param [String] phone_number An E164 formatted phone number hosted by this
126
+ # HostedNumberOrder.
127
+ # @param [String] incoming_phone_number_sid A 34 character string that uniquely
128
+ # identifies the IncomingPhoneNumber resource created by this HostedNumberOrder.
129
+ # @param [String] friendly_name A human readable description of this resource, up
130
+ # to 64 characters.
131
+ # @param [String] unique_name Provides a unique and addressable name to be
132
+ # assigned to this HostedNumberOrder, assigned by the developer, to be optionally
133
+ # used in addition to SID.
134
+ # @param [String] page_token PageToken provided by the API
135
+ # @param [Integer] page_number Page Number, this value is simply for client state
136
+ # @param [Integer] page_size Number of records to return, defaults to 50
137
+ # @return [Page] Page of DependentHostedNumberOrderInstance
138
+ def page(status: :unset, phone_number: :unset, incoming_phone_number_sid: :unset, friendly_name: :unset, unique_name: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
139
+ params = Twilio::Values.of({
140
+ 'Status' => status,
141
+ 'PhoneNumber' => phone_number,
142
+ 'IncomingPhoneNumberSid' => incoming_phone_number_sid,
143
+ 'FriendlyName' => friendly_name,
144
+ 'UniqueName' => unique_name,
145
+ 'PageToken' => page_token,
146
+ 'Page' => page_number,
147
+ 'PageSize' => page_size,
148
+ })
149
+ response = @version.page(
150
+ 'GET',
151
+ @uri,
152
+ params
153
+ )
154
+ DependentHostedNumberOrderPage.new(@version, response, @solution)
155
+ end
156
+
157
+ ##
158
+ # Retrieve a single page of DependentHostedNumberOrderInstance records from the API.
159
+ # Request is executed immediately.
160
+ # @param [String] target_url API-generated URL for the requested results page
161
+ # @return [Page] Page of DependentHostedNumberOrderInstance
162
+ def get_page(target_url)
163
+ response = @version.domain.request(
164
+ 'GET',
165
+ target_url
166
+ )
167
+ DependentHostedNumberOrderPage.new(@version, response, @solution)
168
+ end
169
+
170
+ ##
171
+ # Provide a user friendly representation
172
+ def to_s
173
+ '#<Twilio.Preview.HostedNumbers.DependentHostedNumberOrderList>'
174
+ end
175
+ end
176
+
177
+ ##
178
+ # 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.
179
+ class DependentHostedNumberOrderPage < Page
180
+ ##
181
+ # Initialize the DependentHostedNumberOrderPage
182
+ # @param [Version] version Version that contains the resource
183
+ # @param [Response] response Response from the API
184
+ # @param [Hash] solution Path solution for the resource
185
+ # @return [DependentHostedNumberOrderPage] DependentHostedNumberOrderPage
186
+ def initialize(version, response, solution)
187
+ super(version, response)
188
+
189
+ # Path Solution
190
+ @solution = solution
191
+ end
192
+
193
+ ##
194
+ # Build an instance of DependentHostedNumberOrderInstance
195
+ # @param [Hash] payload Payload response from the API
196
+ # @return [DependentHostedNumberOrderInstance] DependentHostedNumberOrderInstance
197
+ def get_instance(payload)
198
+ DependentHostedNumberOrderInstance.new(
199
+ @version,
200
+ payload,
201
+ signing_document_sid: @solution[:signing_document_sid],
202
+ )
203
+ end
204
+
205
+ ##
206
+ # Provide a user friendly representation
207
+ def to_s
208
+ '<Twilio.Preview.HostedNumbers.DependentHostedNumberOrderPage>'
209
+ end
210
+ end
211
+
212
+ ##
213
+ # 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.
214
+ class DependentHostedNumberOrderInstance < InstanceResource
215
+ ##
216
+ # Initialize the DependentHostedNumberOrderInstance
217
+ # @param [Version] version Version that contains the resource
218
+ # @param [Hash] payload payload that contains response from Twilio
219
+ # @param [String] signing_document_sid A 34 character string that uniquely
220
+ # identifies the LOA document associated with this HostedNumberOrder.
221
+ # @return [DependentHostedNumberOrderInstance] DependentHostedNumberOrderInstance
222
+ def initialize(version, payload, signing_document_sid: nil)
223
+ super(version)
224
+
225
+ # Marshaled Properties
226
+ @properties = {
227
+ 'sid' => payload['sid'],
228
+ 'account_sid' => payload['account_sid'],
229
+ 'incoming_phone_number_sid' => payload['incoming_phone_number_sid'],
230
+ 'address_sid' => payload['address_sid'],
231
+ 'signing_document_sid' => payload['signing_document_sid'],
232
+ 'phone_number' => payload['phone_number'],
233
+ 'capabilities' => payload['capabilities'],
234
+ 'friendly_name' => payload['friendly_name'],
235
+ 'unique_name' => payload['unique_name'],
236
+ 'status' => payload['status'],
237
+ 'failure_reason' => payload['failure_reason'],
238
+ 'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
239
+ 'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
240
+ 'verification_attempts' => payload['verification_attempts'].to_i,
241
+ 'email' => payload['email'],
242
+ 'cc_emails' => payload['cc_emails'],
243
+ 'verification_type' => payload['verification_type'],
244
+ 'verification_document_sid' => payload['verification_document_sid'],
245
+ 'extension' => payload['extension'],
246
+ 'call_delay' => payload['call_delay'].to_i,
247
+ 'verification_code' => payload['verification_code'],
248
+ 'verification_call_sids' => payload['verification_call_sids'],
249
+ }
250
+ end
251
+
252
+ ##
253
+ # @return [String] HostedNumberOrder sid.
254
+ def sid
255
+ @properties['sid']
256
+ end
257
+
258
+ ##
259
+ # @return [String] Account sid.
260
+ def account_sid
261
+ @properties['account_sid']
262
+ end
263
+
264
+ ##
265
+ # @return [String] IncomingPhoneNumber sid.
266
+ def incoming_phone_number_sid
267
+ @properties['incoming_phone_number_sid']
268
+ end
269
+
270
+ ##
271
+ # @return [String] Address sid.
272
+ def address_sid
273
+ @properties['address_sid']
274
+ end
275
+
276
+ ##
277
+ # @return [String] LOA document sid.
278
+ def signing_document_sid
279
+ @properties['signing_document_sid']
280
+ end
281
+
282
+ ##
283
+ # @return [String] An E164 formatted phone number.
284
+ def phone_number
285
+ @properties['phone_number']
286
+ end
287
+
288
+ ##
289
+ # @return [String] A mapping of phone number capabilities.
290
+ def capabilities
291
+ @properties['capabilities']
292
+ end
293
+
294
+ ##
295
+ # @return [String] A human readable description of this resource.
296
+ def friendly_name
297
+ @properties['friendly_name']
298
+ end
299
+
300
+ ##
301
+ # @return [String] A unique, developer assigned name of this HostedNumberOrder.
302
+ def unique_name
303
+ @properties['unique_name']
304
+ end
305
+
306
+ ##
307
+ # @return [dependent_hosted_number_order.Status] The Status of this HostedNumberOrder.
308
+ def status
309
+ @properties['status']
310
+ end
311
+
312
+ ##
313
+ # @return [String] Why a hosted_number_order reached status "action-required"
314
+ def failure_reason
315
+ @properties['failure_reason']
316
+ end
317
+
318
+ ##
319
+ # @return [Time] The date this HostedNumberOrder was created.
320
+ def date_created
321
+ @properties['date_created']
322
+ end
323
+
324
+ ##
325
+ # @return [Time] The date this HostedNumberOrder was updated.
326
+ def date_updated
327
+ @properties['date_updated']
328
+ end
329
+
330
+ ##
331
+ # @return [String] The number of attempts made to verify ownership of the phone number.
332
+ def verification_attempts
333
+ @properties['verification_attempts']
334
+ end
335
+
336
+ ##
337
+ # @return [String] Email.
338
+ def email
339
+ @properties['email']
340
+ end
341
+
342
+ ##
343
+ # @return [String] A list of emails.
344
+ def cc_emails
345
+ @properties['cc_emails']
346
+ end
347
+
348
+ ##
349
+ # @return [dependent_hosted_number_order.VerificationType] The method used for verifying ownership of the number to be hosted.
350
+ def verification_type
351
+ @properties['verification_type']
352
+ end
353
+
354
+ ##
355
+ # @return [String] Verification Document Sid.
356
+ def verification_document_sid
357
+ @properties['verification_document_sid']
358
+ end
359
+
360
+ ##
361
+ # @return [String] Phone extension to use for ownership verification call.
362
+ def extension
363
+ @properties['extension']
364
+ end
365
+
366
+ ##
367
+ # @return [String] Seconds (0-30) to delay ownership verification call by.
368
+ def call_delay
369
+ @properties['call_delay']
370
+ end
371
+
372
+ ##
373
+ # @return [String] The digits passed during the ownership verification call.
374
+ def verification_code
375
+ @properties['verification_code']
376
+ end
377
+
378
+ ##
379
+ # @return [String] List of IDs for ownership verification calls.
380
+ def verification_call_sids
381
+ @properties['verification_call_sids']
382
+ end
383
+
384
+ ##
385
+ # Provide a user friendly representation
386
+ def to_s
387
+ "<Twilio.Preview.HostedNumbers.DependentHostedNumberOrderInstance>"
388
+ end
389
+
390
+ ##
391
+ # Provide a detailed, user friendly representation
392
+ def inspect
393
+ "<Twilio.Preview.HostedNumbers.DependentHostedNumberOrderInstance>"
394
+ end
395
+ end
396
+ end
397
+ end
398
+ end
399
+ end
400
+ end
@@ -103,7 +103,7 @@ module Twilio
103
103
  def each
104
104
  limits = @version.read_limits
105
105
 
106
- page = self.page(page_size: limits[:page_size])
106
+ page = self.page(page_size: limits[:page_size], )
107
107
 
108
108
  @version.stream(page,
109
109
  limit: limits[:limit],
@@ -175,8 +175,8 @@ module Twilio
175
175
  # @param [String] unique_name Optional. Provides a unique and addressable name to
176
176
  # be assigned to this HostedNumberOrder, assigned by the developer, to be
177
177
  # optionally used in addition to SID.
178
- # @param [String] cc_emails Optional. A list of emails that LOA document for this
179
- # HostedNumberOrder will be carbon copied to.
178
+ # @param [String] cc_emails Optional. A list of emails that the LOA document for
179
+ # this HostedNumberOrder will be carbon copied to.
180
180
  # @param [String] sms_url Optional. The SMS URL attached to the
181
181
  # IncomingPhoneNumber resource.
182
182
  # @param [String] sms_method Optional. The SMS Method attached to the
@@ -232,7 +232,7 @@ module Twilio
232
232
  data: data
233
233
  )
234
234
 
235
- HostedNumberOrderInstance.new(@version, payload)
235
+ HostedNumberOrderInstance.new(@version, payload, )
236
236
  end
237
237
 
238
238
  ##
@@ -263,7 +263,7 @@ module Twilio
263
263
  # @param [Hash] payload Payload response from the API
264
264
  # @return [HostedNumberOrderInstance] HostedNumberOrderInstance
265
265
  def get_instance(payload)
266
- HostedNumberOrderInstance.new(@version, payload)
266
+ HostedNumberOrderInstance.new(@version, payload, )
267
267
  end
268
268
 
269
269
  ##
@@ -286,7 +286,7 @@ module Twilio
286
286
  super(version)
287
287
 
288
288
  # Path Solution
289
- @solution = {sid: sid}
289
+ @solution = {sid: sid, }
290
290
  @uri = "/HostedNumberOrders/#{@solution[:sid]}"
291
291
  end
292
292
 
@@ -302,7 +302,7 @@ module Twilio
302
302
  params,
303
303
  )
304
304
 
305
- HostedNumberOrderInstance.new(@version, payload, sid: @solution[:sid])
305
+ HostedNumberOrderInstance.new(@version, payload, sid: @solution[:sid], )
306
306
  end
307
307
 
308
308
  ##
@@ -333,8 +333,10 @@ module Twilio
333
333
  # @param [String] verification_document_sid Optional. The unique sid identifier of
334
334
  # the Identity Document that represents the document for verifying ownership of
335
335
  # the number to be hosted. Required when VerificationType is phone-bill.
336
+ # @param [String] extension The extension
337
+ # @param [String] call_delay The call_delay
336
338
  # @return [HostedNumberOrderInstance] Updated HostedNumberOrderInstance
337
- def update(friendly_name: :unset, unique_name: :unset, email: :unset, cc_emails: :unset, status: :unset, verification_code: :unset, verification_type: :unset, verification_document_sid: :unset)
339
+ def update(friendly_name: :unset, unique_name: :unset, email: :unset, cc_emails: :unset, status: :unset, verification_code: :unset, verification_type: :unset, verification_document_sid: :unset, extension: :unset, call_delay: :unset)
338
340
  data = Twilio::Values.of({
339
341
  'FriendlyName' => friendly_name,
340
342
  'UniqueName' => unique_name,
@@ -344,6 +346,8 @@ module Twilio
344
346
  'VerificationCode' => verification_code,
345
347
  'VerificationType' => verification_type,
346
348
  'VerificationDocumentSid' => verification_document_sid,
349
+ 'Extension' => extension,
350
+ 'CallDelay' => call_delay,
347
351
  })
348
352
 
349
353
  payload = @version.update(
@@ -352,7 +356,7 @@ module Twilio
352
356
  data: data,
353
357
  )
354
358
 
355
- HostedNumberOrderInstance.new(@version, payload, sid: @solution[:sid])
359
+ HostedNumberOrderInstance.new(@version, payload, sid: @solution[:sid], )
356
360
  end
357
361
 
358
362
  ##
@@ -388,6 +392,7 @@ module Twilio
388
392
  'friendly_name' => payload['friendly_name'],
389
393
  'unique_name' => payload['unique_name'],
390
394
  'status' => payload['status'],
395
+ 'failure_reason' => payload['failure_reason'],
391
396
  'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
392
397
  'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
393
398
  'verification_attempts' => payload['verification_attempts'].to_i,
@@ -396,11 +401,15 @@ module Twilio
396
401
  'url' => payload['url'],
397
402
  'verification_type' => payload['verification_type'],
398
403
  'verification_document_sid' => payload['verification_document_sid'],
404
+ 'extension' => payload['extension'],
405
+ 'call_delay' => payload['call_delay'].to_i,
406
+ 'verification_code' => payload['verification_code'],
407
+ 'verification_call_sids' => payload['verification_call_sids'],
399
408
  }
400
409
 
401
410
  # Context
402
411
  @instance_context = nil
403
- @params = {'sid' => sid || @properties['sid']}
412
+ @params = {'sid' => sid || @properties['sid'], }
404
413
  end
405
414
 
406
415
  ##
@@ -409,7 +418,7 @@ module Twilio
409
418
  # @return [HostedNumberOrderContext] HostedNumberOrderContext for this HostedNumberOrderInstance
410
419
  def context
411
420
  unless @instance_context
412
- @instance_context = HostedNumberOrderContext.new(@version, @params['sid'])
421
+ @instance_context = HostedNumberOrderContext.new(@version, @params['sid'], )
413
422
  end
414
423
  @instance_context
415
424
  end
@@ -474,6 +483,12 @@ module Twilio
474
483
  @properties['status']
475
484
  end
476
485
 
486
+ ##
487
+ # @return [String] Why a hosted_number_order reached status "action-required"
488
+ def failure_reason
489
+ @properties['failure_reason']
490
+ end
491
+
477
492
  ##
478
493
  # @return [Time] The date this HostedNumberOrder was created.
479
494
  def date_created
@@ -487,7 +502,7 @@ module Twilio
487
502
  end
488
503
 
489
504
  ##
490
- # @return [String] The number of verification attempts made to verify ownership of the phone number.
505
+ # @return [String] The number of attempts made to verify ownership of the phone number.
491
506
  def verification_attempts
492
507
  @properties['verification_attempts']
493
508
  end
@@ -522,6 +537,30 @@ module Twilio
522
537
  @properties['verification_document_sid']
523
538
  end
524
539
 
540
+ ##
541
+ # @return [String] Phone extension to use for ownership verification call.
542
+ def extension
543
+ @properties['extension']
544
+ end
545
+
546
+ ##
547
+ # @return [String] Seconds (0-30) to delay ownership verification call by.
548
+ def call_delay
549
+ @properties['call_delay']
550
+ end
551
+
552
+ ##
553
+ # @return [String] The digits passed during the ownership verification call.
554
+ def verification_code
555
+ @properties['verification_code']
556
+ end
557
+
558
+ ##
559
+ # @return [String] List of IDs for ownership verification calls.
560
+ def verification_call_sids
561
+ @properties['verification_call_sids']
562
+ end
563
+
525
564
  ##
526
565
  # Fetch a HostedNumberOrderInstance
527
566
  # @return [HostedNumberOrderInstance] Fetched HostedNumberOrderInstance
@@ -557,8 +596,10 @@ module Twilio
557
596
  # @param [String] verification_document_sid Optional. The unique sid identifier of
558
597
  # the Identity Document that represents the document for verifying ownership of
559
598
  # the number to be hosted. Required when VerificationType is phone-bill.
599
+ # @param [String] extension The extension
600
+ # @param [String] call_delay The call_delay
560
601
  # @return [HostedNumberOrderInstance] Updated HostedNumberOrderInstance
561
- def update(friendly_name: :unset, unique_name: :unset, email: :unset, cc_emails: :unset, status: :unset, verification_code: :unset, verification_type: :unset, verification_document_sid: :unset)
602
+ def update(friendly_name: :unset, unique_name: :unset, email: :unset, cc_emails: :unset, status: :unset, verification_code: :unset, verification_type: :unset, verification_document_sid: :unset, extension: :unset, call_delay: :unset)
562
603
  context.update(
563
604
  friendly_name: friendly_name,
564
605
  unique_name: unique_name,
@@ -568,6 +609,8 @@ module Twilio
568
609
  verification_code: verification_code,
569
610
  verification_type: verification_type,
570
611
  verification_document_sid: verification_document_sid,
612
+ extension: extension,
613
+ call_delay: call_delay,
571
614
  )
572
615
  end
573
616