twilio-ruby 6.2.0 → 6.8.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (394) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +205 -0
  3. data/CONTRIBUTING.md +1 -1
  4. data/LICENSE +1 -1
  5. data/README.md +2 -2
  6. data/lib/twilio-ruby/base/client_base.rb +4 -7
  7. data/lib/twilio-ruby/rest/accounts/v1/credential/aws.rb +0 -1
  8. data/lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb +0 -1
  9. data/lib/twilio-ruby/rest/accounts/v1/safelist.rb +169 -0
  10. data/lib/twilio-ruby/rest/accounts/v1.rb +6 -0
  11. data/lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb +0 -1
  12. data/lib/twilio-ruby/rest/api/v2010/account/address.rb +1 -5
  13. data/lib/twilio-ruby/rest/api/v2010/account/application.rb +0 -2
  14. data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +0 -1
  15. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/local.rb +0 -19
  16. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/machine_to_machine.rb +0 -19
  17. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/mobile.rb +0 -19
  18. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/national.rb +0 -19
  19. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/shared_cost.rb +0 -19
  20. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/toll_free.rb +0 -19
  21. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/voip.rb +0 -19
  22. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country.rb +7 -8
  23. data/lib/twilio-ruby/rest/api/v2010/account/call/event.rb +0 -1
  24. data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +0 -5
  25. data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +0 -4
  26. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +8 -19
  27. data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +5 -6
  28. data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +0 -4
  29. data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +2 -11
  30. data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +0 -1
  31. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +0 -1
  32. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +1 -2
  33. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +0 -5
  34. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +0 -5
  35. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +0 -5
  36. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +1 -6
  37. data/lib/twilio-ruby/rest/api/v2010/account/key.rb +0 -1
  38. data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +4 -4
  39. data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +19 -23
  40. data/lib/twilio-ruby/rest/api/v2010/account/message.rb +55 -58
  41. data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +0 -5
  42. data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +0 -3
  43. data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +0 -1
  44. data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +1 -2
  45. data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +0 -1
  46. data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +1 -2
  47. data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +0 -1
  48. data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +2 -9
  49. data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +0 -3
  50. data/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb +0 -1
  51. data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +0 -1
  52. data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +1 -2
  53. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls/auth_calls_credential_list_mapping.rb +0 -1
  54. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls/auth_calls_ip_access_control_list_mapping.rb +0 -1
  55. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_registrations/auth_registrations_credential_list_mapping.rb +0 -1
  56. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +0 -1
  57. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +0 -1
  58. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +3 -4
  59. data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +0 -1
  60. data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +1 -2
  61. data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +0 -1
  62. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +0 -5
  63. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +0 -5
  64. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +0 -5
  65. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +0 -5
  66. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +0 -5
  67. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +0 -5
  68. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +0 -5
  69. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +0 -5
  70. data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +0 -5
  71. data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +0 -4
  72. data/lib/twilio-ruby/rest/api/v2010/account.rb +0 -3
  73. data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type/field_value.rb +0 -2
  74. data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type.rb +1 -2
  75. data/lib/twilio-ruby/rest/autopilot/v1/assistant/model_build.rb +0 -1
  76. data/lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb +0 -5
  77. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/field.rb +0 -1
  78. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/sample.rb +0 -2
  79. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task.rb +2 -3
  80. data/lib/twilio-ruby/rest/autopilot/v1/assistant/webhook.rb +0 -1
  81. data/lib/twilio-ruby/rest/autopilot/v1/assistant.rb +0 -1
  82. data/lib/twilio-ruby/rest/bulkexports/v1/export/day.rb +0 -1
  83. data/lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb +0 -1
  84. data/lib/twilio-ruby/rest/chat/v1/credential.rb +0 -1
  85. data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +1 -2
  86. data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +1 -2
  87. data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +0 -2
  88. data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +4 -5
  89. data/lib/twilio-ruby/rest/chat/v1/service/role.rb +0 -1
  90. data/lib/twilio-ruby/rest/chat/v1/service/user/user_channel.rb +0 -1
  91. data/lib/twilio-ruby/rest/chat/v1/service/user.rb +1 -2
  92. data/lib/twilio-ruby/rest/chat/v1/service.rb +0 -1
  93. data/lib/twilio-ruby/rest/chat/v2/credential.rb +0 -1
  94. data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +2 -3
  95. data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +1 -2
  96. data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +1 -2
  97. data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +0 -2
  98. data/lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb +0 -1
  99. data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +5 -6
  100. data/lib/twilio-ruby/rest/chat/v2/service/role.rb +0 -1
  101. data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +1 -2
  102. data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +0 -1
  103. data/lib/twilio-ruby/rest/chat/v2/service/user.rb +2 -3
  104. data/lib/twilio-ruby/rest/chat/v2/service.rb +0 -1
  105. data/lib/twilio-ruby/rest/chat/v3/channel.rb +3 -3
  106. data/lib/twilio-ruby/rest/client.rb +1 -6
  107. data/lib/twilio-ruby/rest/content/v1/content.rb +1 -2
  108. data/lib/twilio-ruby/rest/content/v1/content_and_approvals.rb +1 -2
  109. data/lib/twilio-ruby/rest/content/v1/legacy_content.rb +1 -2
  110. data/lib/twilio-ruby/rest/conversations/v1/address_configuration.rb +0 -2
  111. data/lib/twilio-ruby/rest/conversations/v1/configuration.rb +3 -3
  112. data/lib/twilio-ruby/rest/conversations/v1/conversation/message/delivery_receipt.rb +0 -1
  113. data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +12 -5
  114. data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +0 -1
  115. data/lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb +0 -1
  116. data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +22 -8
  117. data/lib/twilio-ruby/rest/conversations/v1/credential.rb +0 -1
  118. data/lib/twilio-ruby/rest/conversations/v1/participant_conversation.rb +0 -3
  119. data/lib/twilio-ruby/rest/conversations/v1/role.rb +0 -1
  120. data/lib/twilio-ruby/rest/conversations/v1/service/binding.rb +2 -3
  121. data/lib/twilio-ruby/rest/conversations/v1/service/configuration.rb +12 -12
  122. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message/delivery_receipt.rb +0 -1
  123. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +12 -5
  124. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/participant.rb +19 -20
  125. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb +0 -1
  126. data/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb +25 -11
  127. data/lib/twilio-ruby/rest/conversations/v1/service/participant_conversation.rb +0 -3
  128. data/lib/twilio-ruby/rest/conversations/v1/service/role.rb +0 -1
  129. data/lib/twilio-ruby/rest/conversations/v1/service/user/user_conversation.rb +0 -1
  130. data/lib/twilio-ruby/rest/conversations/v1/service/user.rb +1 -2
  131. data/lib/twilio-ruby/rest/conversations/v1/service.rb +0 -1
  132. data/lib/twilio-ruby/rest/conversations/v1/user/user_conversation.rb +0 -1
  133. data/lib/twilio-ruby/rest/conversations/v1/user.rb +0 -1
  134. data/lib/twilio-ruby/rest/events/v1/event_type.rb +0 -2
  135. data/lib/twilio-ruby/rest/events/v1/schema/schema_version.rb +0 -1
  136. data/lib/twilio-ruby/rest/events/v1/sink.rb +0 -3
  137. data/lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb +0 -1
  138. data/lib/twilio-ruby/rest/events/v1/subscription.rb +0 -2
  139. data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +0 -3
  140. data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +0 -1
  141. data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +21 -0
  142. data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +0 -2
  143. data/lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb +0 -4
  144. data/lib/twilio-ruby/rest/flex_api/v1/insights_conversations.rb +0 -3
  145. data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb +0 -3
  146. data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb +0 -2
  147. data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb +1 -3
  148. data/lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb +1 -4
  149. data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.rb +0 -1
  150. data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_participant.rb +0 -1
  151. data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel.rb +6 -7
  152. data/lib/twilio-ruby/rest/flex_api/v1/interaction.rb +11 -1
  153. data/lib/twilio-ruby/rest/{oauth/v1/oauth.rb → flex_api/v1/provisioning_status.rb} +39 -37
  154. data/lib/twilio-ruby/rest/flex_api/v1/web_channel.rb +0 -1
  155. data/lib/twilio-ruby/rest/flex_api/v1.rb +6 -0
  156. data/lib/twilio-ruby/rest/insights/v1/call/annotation.rb +1 -1
  157. data/lib/twilio-ruby/rest/insights/v1/call/event.rb +0 -2
  158. data/lib/twilio-ruby/rest/insights/v1/call/metric.rb +0 -3
  159. data/lib/twilio-ruby/rest/insights/v1/call_summaries.rb +33 -51
  160. data/lib/twilio-ruby/rest/insights/v1/conference/conference_participant.rb +0 -4
  161. data/lib/twilio-ruby/rest/insights/v1/conference.rb +0 -11
  162. data/lib/twilio-ruby/rest/insights/v1/room/participant.rb +3 -4
  163. data/lib/twilio-ruby/rest/insights/v1/room.rb +2 -6
  164. data/lib/twilio-ruby/rest/intelligence/v2/service.rb +4 -5
  165. data/lib/twilio-ruby/rest/intelligence/v2/transcript/media.rb +2 -2
  166. data/lib/twilio-ruby/rest/intelligence/v2/transcript/operator_result.rb +12 -7
  167. data/lib/twilio-ruby/rest/intelligence/v2/transcript/sentence.rb +3 -5
  168. data/lib/twilio-ruby/rest/intelligence/v2/transcript.rb +5 -25
  169. data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +0 -1
  170. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +1 -2
  171. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +1 -2
  172. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +0 -2
  173. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +4 -5
  174. data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +0 -1
  175. data/lib/twilio-ruby/rest/ip_messaging/v1/service/user/user_channel.rb +0 -1
  176. data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +1 -2
  177. data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +0 -1
  178. data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +0 -1
  179. data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +2 -3
  180. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +1 -2
  181. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +1 -2
  182. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +0 -2
  183. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb +0 -1
  184. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +5 -6
  185. data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +0 -1
  186. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +1 -2
  187. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +0 -1
  188. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +2 -3
  189. data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +0 -1
  190. data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +7 -0
  191. data/lib/twilio-ruby/rest/media/v1/media_processor.rb +7 -10
  192. data/lib/twilio-ruby/rest/media/v1/media_recording.rb +1 -6
  193. data/lib/twilio-ruby/rest/media/v1/player_streamer.rb +2 -5
  194. data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_vetting.rb +0 -2
  195. data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +0 -1
  196. data/lib/twilio-ruby/rest/messaging/v1/external_campaign.rb +2 -2
  197. data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +0 -1
  198. data/lib/twilio-ruby/rest/messaging/v1/service/channel_sender.rb +329 -0
  199. data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +0 -1
  200. data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +0 -1
  201. data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +4 -5
  202. data/lib/twilio-ruby/rest/messaging/v1/service.rb +78 -52
  203. data/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb +777 -0
  204. data/lib/twilio-ruby/rest/messaging/v1.rb +15 -0
  205. data/lib/twilio-ruby/rest/microvisor/v1/account_config.rb +0 -1
  206. data/lib/twilio-ruby/rest/microvisor/v1/account_secret.rb +0 -1
  207. data/lib/twilio-ruby/rest/microvisor/v1/app.rb +0 -1
  208. data/lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb +0 -1
  209. data/lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb +0 -1
  210. data/lib/twilio-ruby/rest/microvisor/v1/device.rb +8 -3
  211. data/lib/twilio-ruby/rest/monitor/v1/alert.rb +0 -4
  212. data/lib/twilio-ruby/rest/monitor/v1/event.rb +0 -7
  213. data/lib/twilio-ruby/rest/notify/v1/credential.rb +0 -1
  214. data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +2 -5
  215. data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +1 -1
  216. data/lib/twilio-ruby/rest/notify/v1/service.rb +4 -6
  217. data/lib/twilio-ruby/rest/numbers/v1/porting_portability.rb +22 -4
  218. data/lib/twilio-ruby/rest/numbers/v2/authorization_document/dependent_hosted_number_order.rb +7 -12
  219. data/lib/twilio-ruby/rest/numbers/v2/authorization_document.rb +6 -6
  220. data/lib/twilio-ruby/rest/numbers/v2/bulk_hosted_number_order.rb +249 -0
  221. data/lib/twilio-ruby/rest/numbers/v2/hosted_number_order.rb +7 -20
  222. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb +0 -1
  223. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/evaluation.rb +0 -1
  224. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/item_assignment.rb +0 -1
  225. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +19 -31
  226. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user.rb +0 -1
  227. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user_type.rb +0 -1
  228. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/regulation.rb +0 -4
  229. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document.rb +0 -1
  230. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document_type.rb +0 -1
  231. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb +14 -14
  232. data/lib/twilio-ruby/rest/numbers/v2.rb +15 -0
  233. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/certificate.rb +0 -2
  234. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/deployment.rb +0 -1
  235. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/device.rb +0 -2
  236. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/key.rb +0 -2
  237. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +0 -1
  238. data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb +3 -9
  239. data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +4 -7
  240. data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +3 -9
  241. data/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb +0 -1
  242. data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +0 -1
  243. data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb +0 -1
  244. data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +0 -1
  245. data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +0 -1
  246. data/lib/twilio-ruby/rest/preview/sync/service/document.rb +1 -2
  247. data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +0 -4
  248. data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +0 -1
  249. data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +2 -3
  250. data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +0 -4
  251. data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +0 -1
  252. data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +2 -3
  253. data/lib/twilio-ruby/rest/preview/sync/service.rb +0 -1
  254. data/lib/twilio-ruby/rest/preview/understand/assistant/field_type/field_value.rb +0 -2
  255. data/lib/twilio-ruby/rest/preview/understand/assistant/field_type.rb +1 -2
  256. data/lib/twilio-ruby/rest/preview/understand/assistant/model_build.rb +0 -1
  257. data/lib/twilio-ruby/rest/preview/understand/assistant/query.rb +0 -4
  258. data/lib/twilio-ruby/rest/preview/understand/assistant/task/field.rb +0 -1
  259. data/lib/twilio-ruby/rest/preview/understand/assistant/task/sample.rb +0 -2
  260. data/lib/twilio-ruby/rest/preview/understand/assistant/task.rb +2 -3
  261. data/lib/twilio-ruby/rest/preview/understand/assistant.rb +0 -1
  262. data/lib/twilio-ruby/rest/preview/wireless/command.rb +0 -5
  263. data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +0 -1
  264. data/lib/twilio-ruby/rest/preview/wireless/sim.rb +0 -6
  265. data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +0 -1
  266. data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +0 -1
  267. data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +0 -1
  268. data/lib/twilio-ruby/rest/pricing/v2/country.rb +0 -1
  269. data/lib/twilio-ruby/rest/pricing/v2/voice/country.rb +0 -1
  270. data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +0 -1
  271. data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +1 -2
  272. data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +0 -1
  273. data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +1 -2
  274. data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +2 -3
  275. data/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb +1 -2
  276. data/lib/twilio-ruby/rest/proxy/v1/service.rb +4 -5
  277. data/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +0 -1
  278. data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +1 -2
  279. data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +0 -1
  280. data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +0 -1
  281. data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +0 -4
  282. data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +0 -1
  283. data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +3 -4
  284. data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +0 -1
  285. data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +1 -2
  286. data/lib/twilio-ruby/rest/serverless/v1/service.rb +0 -1
  287. data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb +0 -1
  288. data/lib/twilio-ruby/rest/studio/v1/flow/engagement.rb +1 -2
  289. data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb +0 -1
  290. data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +1 -4
  291. data/lib/twilio-ruby/rest/studio/v1/flow.rb +0 -1
  292. data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb +0 -1
  293. data/lib/twilio-ruby/rest/studio/v2/flow/execution.rb +1 -4
  294. data/lib/twilio-ruby/rest/studio/v2/flow/flow_revision.rb +0 -1
  295. data/lib/twilio-ruby/rest/studio/v2/flow.rb +0 -1
  296. data/lib/twilio-ruby/rest/supersim/v1/esim_profile.rb +4 -8
  297. data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +0 -2
  298. data/lib/twilio-ruby/rest/supersim/v1/ip_command.rb +3 -8
  299. data/lib/twilio-ruby/rest/supersim/v1/network.rb +0 -4
  300. data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +0 -1
  301. data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +0 -1
  302. data/lib/twilio-ruby/rest/supersim/v1/settings_update.rb +0 -3
  303. data/lib/twilio-ruby/rest/supersim/v1/sim/billing_period.rb +0 -1
  304. data/lib/twilio-ruby/rest/supersim/v1/sim/sim_ip_address.rb +0 -1
  305. data/lib/twilio-ruby/rest/supersim/v1/sim.rb +0 -4
  306. data/lib/twilio-ruby/rest/supersim/v1/sms_command.rb +0 -4
  307. data/lib/twilio-ruby/rest/supersim/v1/usage_record.rb +0 -9
  308. data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +0 -1
  309. data/lib/twilio-ruby/rest/sync/v1/service/document.rb +1 -2
  310. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +0 -4
  311. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +0 -1
  312. data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +2 -3
  313. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +0 -4
  314. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +0 -1
  315. data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +2 -3
  316. data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +1 -2
  317. data/lib/twilio-ruby/rest/sync/v1/service.rb +0 -1
  318. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +0 -3
  319. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +0 -12
  320. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +0 -3
  321. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +26 -19
  322. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +0 -1
  323. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb +0 -7
  324. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +8 -5
  325. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +0 -2
  326. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +0 -1
  327. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +2 -11
  328. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +0 -2
  329. data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +0 -2
  330. data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +0 -1
  331. data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +0 -1
  332. data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +0 -1
  333. data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +0 -1
  334. data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +0 -1
  335. data/lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb +232 -0
  336. data/lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb +154 -0
  337. data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.rb +0 -3
  338. data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb +0 -1
  339. data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.rb +0 -1
  340. data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles.rb +0 -4
  341. data/lib/twilio-ruby/rest/trusthub/v1/end_user.rb +0 -1
  342. data/lib/twilio-ruby/rest/trusthub/v1/end_user_type.rb +0 -1
  343. data/lib/twilio-ruby/rest/trusthub/v1/policies.rb +0 -1
  344. data/lib/twilio-ruby/rest/trusthub/v1/supporting_document.rb +0 -1
  345. data/lib/twilio-ruby/rest/trusthub/v1/supporting_document_type.rb +0 -1
  346. data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment.rb +0 -3
  347. data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_entity_assignments.rb +0 -1
  348. data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_evaluations.rb +0 -1
  349. data/lib/twilio-ruby/rest/trusthub/v1/trust_products.rb +0 -4
  350. data/lib/twilio-ruby/rest/trusthub/v1.rb +21 -0
  351. data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +1 -5
  352. data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +0 -1
  353. data/lib/twilio-ruby/rest/verify/v2/service/entity.rb +3 -4
  354. data/lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb +4 -5
  355. data/lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb +0 -1
  356. data/lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb +1 -2
  357. data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +7 -1
  358. data/lib/twilio-ruby/rest/verify/v2/service/webhook.rb +0 -1
  359. data/lib/twilio-ruby/rest/verify/v2/service.rb +19 -4
  360. data/lib/twilio-ruby/rest/verify/v2/template.rb +0 -2
  361. data/lib/twilio-ruby/rest/verify/v2/verification_attempt.rb +7 -16
  362. data/lib/twilio-ruby/rest/verify/v2/verification_attempts_summary.rb +6 -6
  363. data/lib/twilio-ruby/rest/video/v1/composition.rb +0 -5
  364. data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +0 -5
  365. data/lib/twilio-ruby/rest/video/v1/recording.rb +1 -7
  366. data/lib/twilio-ruby/rest/video/v1/room/participant/published_track.rb +0 -1
  367. data/lib/twilio-ruby/rest/video/v1/room/participant/subscribed_track.rb +0 -1
  368. data/lib/twilio-ruby/rest/video/v1/room/participant.rb +3 -8
  369. data/lib/twilio-ruby/rest/video/v1/room/room_recording.rb +0 -5
  370. data/lib/twilio-ruby/rest/video/v1/room.rb +2 -7
  371. data/lib/twilio-ruby/rest/voice/v1/byoc_trunk.rb +0 -1
  372. data/lib/twilio-ruby/rest/voice/v1/connection_policy/connection_policy_target.rb +0 -1
  373. data/lib/twilio-ruby/rest/voice/v1/connection_policy.rb +0 -1
  374. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb +0 -1
  375. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +4 -11
  376. data/lib/twilio-ruby/rest/voice/v1/ip_record.rb +0 -1
  377. data/lib/twilio-ruby/rest/voice/v1/source_ip_mapping.rb +0 -1
  378. data/lib/twilio-ruby/rest/wireless/v1/command.rb +5 -10
  379. data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +7 -8
  380. data/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb +3 -4
  381. data/lib/twilio-ruby/rest/wireless/v1/sim/usage_record.rb +3 -7
  382. data/lib/twilio-ruby/rest/wireless/v1/sim.rb +13 -19
  383. data/lib/twilio-ruby/rest/wireless/v1/usage_record.rb +2 -6
  384. data/lib/twilio-ruby/twiml/voice_response.rb +8 -4
  385. data/lib/twilio-ruby/version.rb +1 -1
  386. metadata +9 -11
  387. data/conf/cacert.pem +0 -3376
  388. data/lib/twilio-ruby/rest/oauth/v1/device_code.rb +0 -171
  389. data/lib/twilio-ruby/rest/oauth/v1/openid_discovery.rb +0 -262
  390. data/lib/twilio-ruby/rest/oauth/v1/token.rb +0 -179
  391. data/lib/twilio-ruby/rest/oauth/v1/user_info.rb +0 -213
  392. data/lib/twilio-ruby/rest/oauth/v1.rb +0 -64
  393. data/lib/twilio-ruby/rest/oauth.rb +0 -33
  394. data/lib/twilio-ruby/rest/oauth_base.rb +0 -38
@@ -0,0 +1,249 @@
1
+ ##
2
+ # This code was generated by
3
+ # ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
4
+ # | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
5
+ # | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6
+ #
7
+ # Twilio - Numbers
8
+ # This is the public Twilio REST API.
9
+ #
10
+ # NOTE: This class is auto generated by OpenAPI Generator.
11
+ # https://openapi-generator.tech
12
+ # Do not edit the class manually.
13
+ #
14
+
15
+
16
+ module Twilio
17
+ module REST
18
+ class Numbers < NumbersBase
19
+ class V2 < Version
20
+ class BulkHostedNumberOrderList < ListResource
21
+ ##
22
+ # Initialize the BulkHostedNumberOrderList
23
+ # @param [Version] version Version that contains the resource
24
+ # @return [BulkHostedNumberOrderList] BulkHostedNumberOrderList
25
+ def initialize(version)
26
+ super(version)
27
+ # Path Solution
28
+ @solution = { }
29
+
30
+
31
+ end
32
+
33
+
34
+
35
+ # Provide a user friendly representation
36
+ def to_s
37
+ '#<Twilio.Numbers.V2.BulkHostedNumberOrderList>'
38
+ end
39
+ end
40
+
41
+
42
+ ##
43
+ #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
44
+ class BulkHostedNumberOrderContext < InstanceContext
45
+ ##
46
+ # Initialize the BulkHostedNumberOrderContext
47
+ # @param [Version] version Version that contains the resource
48
+ # @param [String] bulk_hosting_sid A 34 character string that uniquely identifies this BulkHostedNumberOrder.
49
+ # @return [BulkHostedNumberOrderContext] BulkHostedNumberOrderContext
50
+ def initialize(version, bulk_hosting_sid)
51
+ super(version)
52
+
53
+ # Path Solution
54
+ @solution = { bulk_hosting_sid: bulk_hosting_sid, }
55
+ @uri = "/HostedNumber/Orders/Bulk/#{@solution[:bulk_hosting_sid]}"
56
+
57
+
58
+ end
59
+ ##
60
+ # Fetch the BulkHostedNumberOrderInstance
61
+ # @param [String] order_status Order status can be used for filtering on Hosted Number Order status values. To see a complete list of order statuses, please check 'https://www.twilio.com/docs/phone-numbers/hosted-numbers/hosted-numbers-api/hosted-number-order-resource#status-values'.
62
+ # @return [BulkHostedNumberOrderInstance] Fetched BulkHostedNumberOrderInstance
63
+ def fetch(
64
+ order_status: :unset
65
+ )
66
+
67
+ params = Twilio::Values.of({
68
+ 'OrderStatus' => order_status,
69
+ })
70
+ payload = @version.fetch('GET', @uri, params: params)
71
+ BulkHostedNumberOrderInstance.new(
72
+ @version,
73
+ payload,
74
+ bulk_hosting_sid: @solution[:bulk_hosting_sid],
75
+ )
76
+ end
77
+
78
+
79
+ ##
80
+ # Provide a user friendly representation
81
+ def to_s
82
+ context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
83
+ "#<Twilio.Numbers.V2.BulkHostedNumberOrderContext #{context}>"
84
+ end
85
+
86
+ ##
87
+ # Provide a detailed, user friendly representation
88
+ def inspect
89
+ context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
90
+ "#<Twilio.Numbers.V2.BulkHostedNumberOrderContext #{context}>"
91
+ end
92
+ end
93
+
94
+ class BulkHostedNumberOrderPage < Page
95
+ ##
96
+ # Initialize the BulkHostedNumberOrderPage
97
+ # @param [Version] version Version that contains the resource
98
+ # @param [Response] response Response from the API
99
+ # @param [Hash] solution Path solution for the resource
100
+ # @return [BulkHostedNumberOrderPage] BulkHostedNumberOrderPage
101
+ def initialize(version, response, solution)
102
+ super(version, response)
103
+
104
+ # Path Solution
105
+ @solution = solution
106
+ end
107
+
108
+ ##
109
+ # Build an instance of BulkHostedNumberOrderInstance
110
+ # @param [Hash] payload Payload response from the API
111
+ # @return [BulkHostedNumberOrderInstance] BulkHostedNumberOrderInstance
112
+ def get_instance(payload)
113
+ BulkHostedNumberOrderInstance.new(@version, payload)
114
+ end
115
+
116
+ ##
117
+ # Provide a user friendly representation
118
+ def to_s
119
+ '<Twilio.Numbers.V2.BulkHostedNumberOrderPage>'
120
+ end
121
+ end
122
+ class BulkHostedNumberOrderInstance < InstanceResource
123
+ ##
124
+ # Initialize the BulkHostedNumberOrderInstance
125
+ # @param [Version] version Version that contains the resource
126
+ # @param [Hash] payload payload that contains response from Twilio
127
+ # @param [String] account_sid The SID of the
128
+ # {Account}[https://www.twilio.com/docs/iam/api/account] that created this BulkHostedNumberOrder
129
+ # resource.
130
+ # @param [String] sid The SID of the Call resource to fetch.
131
+ # @return [BulkHostedNumberOrderInstance] BulkHostedNumberOrderInstance
132
+ def initialize(version, payload , bulk_hosting_sid: nil)
133
+ super(version)
134
+
135
+ # Marshaled Properties
136
+ @properties = {
137
+ 'bulk_hosting_sid' => payload['bulk_hosting_sid'],
138
+ 'request_status' => payload['request_status'],
139
+ 'friendly_name' => payload['friendly_name'],
140
+ 'notification_email' => payload['notification_email'],
141
+ 'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
142
+ 'date_completed' => Twilio.deserialize_iso8601_datetime(payload['date_completed']),
143
+ 'url' => payload['url'],
144
+ 'total_count' => payload['total_count'] == nil ? payload['total_count'] : payload['total_count'].to_i,
145
+ 'results' => payload['results'],
146
+ }
147
+
148
+ # Context
149
+ @instance_context = nil
150
+ @params = { 'bulk_hosting_sid' => bulk_hosting_sid || @properties['bulk_hosting_sid'] , }
151
+ end
152
+
153
+ ##
154
+ # Generate an instance context for the instance, the context is capable of
155
+ # performing various actions. All instance actions are proxied to the context
156
+ # @return [BulkHostedNumberOrderContext] CallContext for this CallInstance
157
+ def context
158
+ unless @instance_context
159
+ @instance_context = BulkHostedNumberOrderContext.new(@version , @params['bulk_hosting_sid'])
160
+ end
161
+ @instance_context
162
+ end
163
+
164
+ ##
165
+ # @return [String] A 34 character string that uniquely identifies this BulkHostedNumberOrder.
166
+ def bulk_hosting_sid
167
+ @properties['bulk_hosting_sid']
168
+ end
169
+
170
+ ##
171
+ # @return [RequestStatus]
172
+ def request_status
173
+ @properties['request_status']
174
+ end
175
+
176
+ ##
177
+ # @return [String] A 128 character string that is a human-readable text that describes this resource.
178
+ def friendly_name
179
+ @properties['friendly_name']
180
+ end
181
+
182
+ ##
183
+ # @return [String] Email address used for send notifications about this Bulk hosted number request.
184
+ def notification_email
185
+ @properties['notification_email']
186
+ end
187
+
188
+ ##
189
+ # @return [Time] The date this resource was created, given as [GMT RFC 2822](http://www.ietf.org/rfc/rfc2822.txt) format.
190
+ def date_created
191
+ @properties['date_created']
192
+ end
193
+
194
+ ##
195
+ # @return [Time] The date that this resource was completed, given as [GMT RFC 2822](http://www.ietf.org/rfc/rfc2822.txt) format.
196
+ def date_completed
197
+ @properties['date_completed']
198
+ end
199
+
200
+ ##
201
+ # @return [String] The URL of this BulkHostedNumberOrder resource.
202
+ def url
203
+ @properties['url']
204
+ end
205
+
206
+ ##
207
+ # @return [String] The total count of phone numbers in this Bulk hosting request.
208
+ def total_count
209
+ @properties['total_count']
210
+ end
211
+
212
+ ##
213
+ # @return [Array<Hash>] Contains a list of all the individual hosting orders and their information, for this Bulk request. Each result object is grouped by its order status. To see a complete list of order status, please check 'https://www.twilio.com/docs/phone-numbers/hosted-numbers/hosted-numbers-api/hosted-number-order-resource#status-values'.
214
+ def results
215
+ @properties['results']
216
+ end
217
+
218
+ ##
219
+ # Fetch the BulkHostedNumberOrderInstance
220
+ # @param [String] order_status Order status can be used for filtering on Hosted Number Order status values. To see a complete list of order statuses, please check 'https://www.twilio.com/docs/phone-numbers/hosted-numbers/hosted-numbers-api/hosted-number-order-resource#status-values'.
221
+ # @return [BulkHostedNumberOrderInstance] Fetched BulkHostedNumberOrderInstance
222
+ def fetch(
223
+ order_status: :unset
224
+ )
225
+
226
+ context.fetch(
227
+ order_status: order_status,
228
+ )
229
+ end
230
+
231
+ ##
232
+ # Provide a user friendly representation
233
+ def to_s
234
+ values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
235
+ "<Twilio.Numbers.V2.BulkHostedNumberOrderInstance #{values}>"
236
+ end
237
+
238
+ ##
239
+ # Provide a detailed, user friendly representation
240
+ def inspect
241
+ values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
242
+ "<Twilio.Numbers.V2.BulkHostedNumberOrderInstance #{values}>"
243
+ end
244
+ end
245
+
246
+ end
247
+ end
248
+ end
249
+ end
@@ -36,7 +36,7 @@ module Twilio
36
36
  # @param [String] address_sid Optional. A 34 character string that uniquely identifies the Address resource that represents the address of the owner of this phone number.
37
37
  # @param [String] email Optional. Email of the owner of this phone number that is being hosted.
38
38
  # @param [String] account_sid This defaults to the AccountSid of the authorization the user is using. This can be provided to specify a subaccount to add the HostedNumberOrder to.
39
- # @param [String] friendly_name A 64 character string that is a human readable text that describes this resource.
39
+ # @param [String] friendly_name A 128 character string that is a human readable text that describes this resource.
40
40
  # @param [Array[String]] cc_emails Optional. A list of emails that the LOA document for this HostedNumberOrder will be carbon copied to.
41
41
  # @param [String] sms_url The URL that Twilio should request when somebody sends an SMS to the phone number. This will be copied onto the IncomingPhoneNumber resource.
42
42
  # @param [String] sms_method The HTTP method that should be used to request the SmsUrl. Must be either `GET` or `POST`. This will be copied onto the IncomingPhoneNumber resource.
@@ -102,7 +102,7 @@ module Twilio
102
102
  # @param [Boolean] sms_capability Whether the SMS capability will be hosted on our platform. Can be `true` of `false`.
103
103
  # @param [String] phone_number An E164 formatted phone number hosted by this HostedNumberOrder.
104
104
  # @param [String] incoming_phone_number_sid A 34 character string that uniquely identifies the IncomingPhoneNumber resource created by this HostedNumberOrder.
105
- # @param [String] friendly_name A human readable description of this resource, up to 64 characters.
105
+ # @param [String] friendly_name A human readable description of this resource, up to 128 characters.
106
106
  # @param [Integer] limit Upper limit for the number of records to return. stream()
107
107
  # guarantees to never return more than limit. Default is no limit
108
108
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -130,7 +130,7 @@ module Twilio
130
130
  # @param [Boolean] sms_capability Whether the SMS capability will be hosted on our platform. Can be `true` of `false`.
131
131
  # @param [String] phone_number An E164 formatted phone number hosted by this HostedNumberOrder.
132
132
  # @param [String] incoming_phone_number_sid A 34 character string that uniquely identifies the IncomingPhoneNumber resource created by this HostedNumberOrder.
133
- # @param [String] friendly_name A human readable description of this resource, up to 64 characters.
133
+ # @param [String] friendly_name A human readable description of this resource, up to 128 characters.
134
134
  # @param [Integer] limit Upper limit for the number of records to return. stream()
135
135
  # guarantees to never return more than limit. Default is no limit
136
136
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -173,24 +173,18 @@ module Twilio
173
173
  # @param [Boolean] sms_capability Whether the SMS capability will be hosted on our platform. Can be `true` of `false`.
174
174
  # @param [String] phone_number An E164 formatted phone number hosted by this HostedNumberOrder.
175
175
  # @param [String] incoming_phone_number_sid A 34 character string that uniquely identifies the IncomingPhoneNumber resource created by this HostedNumberOrder.
176
- # @param [String] friendly_name A human readable description of this resource, up to 64 characters.
176
+ # @param [String] friendly_name A human readable description of this resource, up to 128 characters.
177
177
  # @param [String] page_token PageToken provided by the API
178
178
  # @param [Integer] page_number Page Number, this value is simply for client state
179
179
  # @param [Integer] page_size Number of records to return, defaults to 50
180
180
  # @return [Page] Page of HostedNumberOrderInstance
181
181
  def page(status: :unset, sms_capability: :unset, phone_number: :unset, incoming_phone_number_sid: :unset, friendly_name: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
182
182
  params = Twilio::Values.of({
183
-
184
183
  'Status' => status,
185
-
186
184
  'SmsCapability' => sms_capability,
187
-
188
185
  'PhoneNumber' => phone_number,
189
-
190
186
  'IncomingPhoneNumberSid' => incoming_phone_number_sid,
191
-
192
187
  'FriendlyName' => friendly_name,
193
-
194
188
  'PageToken' => page_token,
195
189
  'Page' => page_number,
196
190
  'PageSize' => page_size,
@@ -331,7 +325,6 @@ module Twilio
331
325
  'status' => payload['status'],
332
326
  'failure_reason' => payload['failure_reason'],
333
327
  'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
334
- 'sms_capability' => payload['sms_capability'],
335
328
  'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
336
329
  'email' => payload['email'],
337
330
  'cc_emails' => payload['cc_emails'],
@@ -371,7 +364,7 @@ module Twilio
371
364
  end
372
365
 
373
366
  ##
374
- # @return [String] A 34 character string that uniquely identifies the [IncomingPhoneNumber](https://www.twilio.com/docs/api/rest/incoming-phone-numbers) resource that represents the phone number being hosted.
367
+ # @return [String] A 34 character string that uniquely identifies the [IncomingPhoneNumber](https://www.twilio.com/docs/phone-numbers/api/incomingphonenumber-resource) resource that represents the phone number being hosted.
375
368
  def incoming_phone_number_sid
376
369
  @properties['incoming_phone_number_sid']
377
370
  end
@@ -383,7 +376,7 @@ module Twilio
383
376
  end
384
377
 
385
378
  ##
386
- # @return [String] A 34 character string that uniquely identifies the [Authorization Document](https://www.twilio.com/docs/api/phone-numbers/hosted-number-authorization-documents) the user needs to sign.
379
+ # @return [String] A 34 character string that uniquely identifies the [Authorization Document](https://www.twilio.com/docs/phone-numbers/hosted-numbers/hosted-numbers-api/authorization-document-resource) the user needs to sign.
387
380
  def signing_document_sid
388
381
  @properties['signing_document_sid']
389
382
  end
@@ -401,7 +394,7 @@ module Twilio
401
394
  end
402
395
 
403
396
  ##
404
- # @return [String] A 64 character string that is a human-readable text that describes this resource.
397
+ # @return [String] A 128 character string that is a human-readable text that describes this resource.
405
398
  def friendly_name
406
399
  @properties['friendly_name']
407
400
  end
@@ -424,12 +417,6 @@ module Twilio
424
417
  @properties['date_created']
425
418
  end
426
419
 
427
- ##
428
- # @return [Boolean] Whether the SMS capability will be hosted on our platform. Can be `true` of `false`.
429
- def sms_capability
430
- @properties['sms_capability']
431
- end
432
-
433
420
  ##
434
421
  # @return [Time] The date that this resource was updated, given as [GMT RFC 2822](http://www.ietf.org/rfc/rfc2822.txt) format.
435
422
  def date_updated
@@ -114,7 +114,6 @@ module Twilio
114
114
  # @return [Page] Page of BundleCopyInstance
115
115
  def page(page_token: :unset, page_number: :unset, page_size: :unset)
116
116
  params = Twilio::Values.of({
117
-
118
117
  'PageToken' => page_token,
119
118
  'Page' => page_number,
120
119
  'PageSize' => page_size,
@@ -107,7 +107,6 @@ module Twilio
107
107
  # @return [Page] Page of EvaluationInstance
108
108
  def page(page_token: :unset, page_number: :unset, page_size: :unset)
109
109
  params = Twilio::Values.of({
110
-
111
110
  'PageToken' => page_token,
112
111
  'Page' => page_number,
113
112
  'PageSize' => page_size,
@@ -114,7 +114,6 @@ module Twilio
114
114
  # @return [Page] Page of ItemAssignmentInstance
115
115
  def page(page_token: :unset, page_number: :unset, page_size: :unset)
116
116
  params = Twilio::Values.of({
117
-
118
117
  'PageToken' => page_token,
119
118
  'Page' => page_number,
120
119
  'PageSize' => page_size,
@@ -185,29 +185,17 @@ module Twilio
185
185
  # @return [Page] Page of BundleInstance
186
186
  def page(status: :unset, friendly_name: :unset, regulation_sid: :unset, iso_country: :unset, number_type: :unset, has_valid_until_date: :unset, sort_by: :unset, sort_direction: :unset, valid_until_date: :unset, valid_until_date_before: :unset, valid_until_date_after: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
187
187
  params = Twilio::Values.of({
188
-
189
188
  'Status' => status,
190
-
191
189
  'FriendlyName' => friendly_name,
192
-
193
190
  'RegulationSid' => regulation_sid,
194
-
195
191
  'IsoCountry' => iso_country,
196
-
197
192
  'NumberType' => number_type,
198
-
199
193
  'HasValidUntilDate' => has_valid_until_date,
200
-
201
194
  'SortBy' => sort_by,
202
-
203
195
  'SortDirection' => sort_direction,
204
-
205
196
  'ValidUntilDate' => Twilio.serialize_iso8601_datetime(valid_until_date),
206
-
207
197
  'ValidUntilDate<' => Twilio.serialize_iso8601_datetime(valid_until_date_before),
208
-
209
198
  'ValidUntilDate>' => Twilio.serialize_iso8601_datetime(valid_until_date_after),
210
-
211
199
  'PageToken' => page_token,
212
200
  'Page' => page_number,
213
201
  'PageSize' => page_size,
@@ -254,8 +242,8 @@ module Twilio
254
242
  @uri = "/RegulatoryCompliance/Bundles/#{@solution[:sid]}"
255
243
 
256
244
  # Dependents
257
- @bundle_copies = nil
258
245
  @replace_items = nil
246
+ @bundle_copies = nil
259
247
  @item_assignments = nil
260
248
  @evaluations = nil
261
249
  end
@@ -309,17 +297,6 @@ module Twilio
309
297
  )
310
298
  end
311
299
 
312
- ##
313
- # Access the bundle_copies
314
- # @return [BundleCopyList]
315
- # @return [BundleCopyContext]
316
- def bundle_copies
317
- unless @bundle_copies
318
- @bundle_copies = BundleCopyList.new(
319
- @version, bundle_sid: @solution[:sid], )
320
- end
321
- @bundle_copies
322
- end
323
300
  ##
324
301
  # Access the replace_items
325
302
  # @return [ReplaceItemsList]
@@ -332,6 +309,17 @@ module Twilio
332
309
  @replace_items
333
310
  end
334
311
  ##
312
+ # Access the bundle_copies
313
+ # @return [BundleCopyList]
314
+ # @return [BundleCopyContext]
315
+ def bundle_copies
316
+ unless @bundle_copies
317
+ @bundle_copies = BundleCopyList.new(
318
+ @version, bundle_sid: @solution[:sid], )
319
+ end
320
+ @bundle_copies
321
+ end
322
+ ##
335
323
  # Access the item_assignments
336
324
  # @return [ItemAssignmentList]
337
325
  # @return [ItemAssignmentContext] if sid was passed.
@@ -568,13 +556,6 @@ module Twilio
568
556
  )
569
557
  end
570
558
 
571
- ##
572
- # Access the bundle_copies
573
- # @return [bundle_copies] bundle_copies
574
- def bundle_copies
575
- context.bundle_copies
576
- end
577
-
578
559
  ##
579
560
  # Access the replace_items
580
561
  # @return [replace_items] replace_items
@@ -582,6 +563,13 @@ module Twilio
582
563
  context.replace_items
583
564
  end
584
565
 
566
+ ##
567
+ # Access the bundle_copies
568
+ # @return [bundle_copies] bundle_copies
569
+ def bundle_copies
570
+ context.bundle_copies
571
+ end
572
+
585
573
  ##
586
574
  # Access the item_assignments
587
575
  # @return [item_assignments] item_assignments
@@ -118,7 +118,6 @@ module Twilio
118
118
  # @return [Page] Page of EndUserInstance
119
119
  def page(page_token: :unset, page_number: :unset, page_size: :unset)
120
120
  params = Twilio::Values.of({
121
-
122
121
  'PageToken' => page_token,
123
122
  'Page' => page_number,
124
123
  'PageSize' => page_size,
@@ -93,7 +93,6 @@ module Twilio
93
93
  # @return [Page] Page of EndUserTypeInstance
94
94
  def page(page_token: :unset, page_number: :unset, page_size: :unset)
95
95
  params = Twilio::Values.of({
96
-
97
96
  'PageToken' => page_token,
98
97
  'Page' => page_number,
99
98
  'PageSize' => page_size,
@@ -108,13 +108,9 @@ module Twilio
108
108
  # @return [Page] Page of RegulationInstance
109
109
  def page(end_user_type: :unset, iso_country: :unset, number_type: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
110
110
  params = Twilio::Values.of({
111
-
112
111
  'EndUserType' => end_user_type,
113
-
114
112
  'IsoCountry' => iso_country,
115
-
116
113
  'NumberType' => number_type,
117
-
118
114
  'PageToken' => page_token,
119
115
  'Page' => page_number,
120
116
  'PageSize' => page_size,
@@ -118,7 +118,6 @@ module Twilio
118
118
  # @return [Page] Page of SupportingDocumentInstance
119
119
  def page(page_token: :unset, page_number: :unset, page_size: :unset)
120
120
  params = Twilio::Values.of({
121
-
122
121
  'PageToken' => page_token,
123
122
  'Page' => page_number,
124
123
  'PageSize' => page_size,
@@ -93,7 +93,6 @@ module Twilio
93
93
  # @return [Page] Page of SupportingDocumentTypeInstance
94
94
  def page(page_token: :unset, page_number: :unset, page_size: :unset)
95
95
  params = Twilio::Values.of({
96
-
97
96
  'PageToken' => page_token,
98
97
  'Page' => page_number,
99
98
  'PageSize' => page_size,
@@ -28,15 +28,28 @@ module Twilio
28
28
  @solution = { }
29
29
  @uri = "/RegulatoryCompliance"
30
30
  # Components
31
+ @supporting_documents = nil
31
32
  @end_users = nil
32
33
  @bundles = nil
33
34
  @supporting_document_types = nil
34
35
  @regulations = nil
35
36
  @end_user_types = nil
36
- @supporting_documents = nil
37
37
  end
38
38
 
39
39
 
40
+ ##
41
+ # Access the supporting_documents
42
+ # @return [SupportingDocumentList]
43
+ # @return [SupportingDocumentContext] if sid was passed.
44
+ def supporting_documents(sid=:unset)
45
+ raise ArgumentError, 'sid cannot be nil' if sid.nil?
46
+
47
+ if sid != :unset
48
+ return SupportingDocumentContext.new(@version,sid )
49
+ end
50
+
51
+ @supporting_documents ||= SupportingDocumentList.new(@version )
52
+ end
40
53
  ##
41
54
  # Access the end_users
42
55
  # @return [EndUserList]
@@ -102,19 +115,6 @@ module Twilio
102
115
 
103
116
  @end_user_types ||= EndUserTypeList.new(@version )
104
117
  end
105
- ##
106
- # Access the supporting_documents
107
- # @return [SupportingDocumentList]
108
- # @return [SupportingDocumentContext] if sid was passed.
109
- def supporting_documents(sid=:unset)
110
- raise ArgumentError, 'sid cannot be nil' if sid.nil?
111
-
112
- if sid != :unset
113
- return SupportingDocumentContext.new(@version,sid )
114
- end
115
-
116
- @supporting_documents ||= SupportingDocumentList.new(@version )
117
- end
118
118
 
119
119
  # Provide a user friendly representation
120
120
  def to_s
@@ -22,6 +22,7 @@ module Twilio
22
22
  super
23
23
  @version = 'v2'
24
24
  @authorization_documents = nil
25
+ @bulk_hosted_number_orders = nil
25
26
  @hosted_number_orders = nil
26
27
  @regulatory_compliance = nil
27
28
  end
@@ -41,6 +42,20 @@ module Twilio
41
42
  end
42
43
  end
43
44
  ##
45
+ # @param [String] bulk_hosting_sid A 34 character string that uniquely identifies this BulkHostedNumberOrder.
46
+ # @return [Twilio::REST::Numbers::V2::BulkHostedNumberOrderContext] if bulkHostingSid was passed.
47
+ # @return [Twilio::REST::Numbers::V2::BulkHostedNumberOrderList]
48
+ def bulk_hosted_number_orders(bulk_hosting_sid=:unset)
49
+ if bulk_hosting_sid.nil?
50
+ raise ArgumentError, 'bulk_hosting_sid cannot be nil'
51
+ end
52
+ if bulk_hosting_sid == :unset
53
+ @bulk_hosted_number_orders ||= BulkHostedNumberOrderList.new self
54
+ else
55
+ BulkHostedNumberOrderContext.new(self, bulk_hosting_sid)
56
+ end
57
+ end
58
+ ##
44
59
  # @param [String] sid A 34 character string that uniquely identifies this HostedNumberOrder.
45
60
  # @return [Twilio::REST::Numbers::V2::HostedNumberOrderContext] if sid was passed.
46
61
  # @return [Twilio::REST::Numbers::V2::HostedNumberOrderList]
@@ -124,9 +124,7 @@ module Twilio
124
124
  # @return [Page] Page of CertificateInstance
125
125
  def page(device_sid: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
126
126
  params = Twilio::Values.of({
127
-
128
127
  'DeviceSid' => device_sid,
129
-
130
128
  'PageToken' => page_token,
131
129
  'Page' => page_number,
132
130
  'PageSize' => page_size,
@@ -116,7 +116,6 @@ module Twilio
116
116
  # @return [Page] Page of DeploymentInstance
117
117
  def page(page_token: :unset, page_number: :unset, page_size: :unset)
118
118
  params = Twilio::Values.of({
119
-
120
119
  'PageToken' => page_token,
121
120
  'Page' => page_number,
122
121
  'PageSize' => page_size,
@@ -130,9 +130,7 @@ module Twilio
130
130
  # @return [Page] Page of DeviceInstance
131
131
  def page(deployment_sid: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
132
132
  params = Twilio::Values.of({
133
-
134
133
  'DeploymentSid' => deployment_sid,
135
-
136
134
  'PageToken' => page_token,
137
135
  'Page' => page_number,
138
136
  'PageSize' => page_size,
@@ -121,9 +121,7 @@ module Twilio
121
121
  # @return [Page] Page of KeyInstance
122
122
  def page(device_sid: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
123
123
  params = Twilio::Values.of({
124
-
125
124
  'DeviceSid' => device_sid,
126
-
127
125
  'PageToken' => page_token,
128
126
  'Page' => page_number,
129
127
  'PageSize' => page_size,