twilio-ruby 5.66.0 → 5.74.5

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 (227) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/pr-lint.yml +21 -0
  3. data/.github/workflows/test-and-deploy.yml +3 -3
  4. data/CHANGES.md +357 -0
  5. data/LICENSE +1 -1
  6. data/Makefile +8 -3
  7. data/PULL_REQUEST_TEMPLATE.md +1 -1
  8. data/README.md +2 -4
  9. data/lib/twilio-ruby/http/http_client.rb +8 -4
  10. data/lib/twilio-ruby/rest/api/v2010/account/address.rb +19 -3
  11. data/lib/twilio-ruby/rest/api/v2010/account/application.rb +22 -3
  12. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/local.rb +2 -2
  13. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/machine_to_machine.rb +2 -2
  14. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb +2 -2
  15. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/national.rb +2 -2
  16. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/shared_cost.rb +2 -2
  17. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/toll_free.rb +2 -2
  18. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/voip.rb +2 -2
  19. data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +1 -1
  20. data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +5 -5
  21. data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +6 -6
  22. data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +2 -2
  23. data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message.rb +160 -0
  24. data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message_subscription.rb +251 -0
  25. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +59 -7
  26. data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +56 -17
  27. data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +1 -1
  28. data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +5 -5
  29. data/lib/twilio-ruby/rest/api/v2010/account/message.rb +18 -3
  30. data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +2 -2
  31. data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +3 -3
  32. data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +1 -1
  33. data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +8 -1
  34. data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +5 -5
  35. data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +3 -3
  36. data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +1 -1
  37. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +1 -1
  38. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +1 -1
  39. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +1 -1
  40. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +1 -1
  41. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +1 -1
  42. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +1 -1
  43. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +1 -1
  44. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +1 -1
  45. data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +1 -1
  46. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_statistics.rb +2 -2
  47. data/lib/twilio-ruby/rest/bulkexports/v1/export/day.rb +1 -1
  48. data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +1 -1
  49. data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +2 -2
  50. data/lib/twilio-ruby/rest/chat/v1/service/user.rb +1 -1
  51. data/lib/twilio-ruby/rest/chat/v1/service.rb +2 -2
  52. data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +1 -1
  53. data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +2 -2
  54. data/lib/twilio-ruby/rest/chat/v2/service/user.rb +1 -1
  55. data/lib/twilio-ruby/rest/chat/v2/service.rb +4 -4
  56. data/lib/twilio-ruby/rest/chat/v3/channel.rb +2 -2
  57. data/lib/twilio-ruby/rest/client.rb +35 -12
  58. data/lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb +195 -0
  59. data/lib/twilio-ruby/rest/content/v1/content.rb +346 -0
  60. data/lib/twilio-ruby/rest/content/v1/legacy_content.rb +254 -0
  61. data/lib/twilio-ruby/rest/content/v1.rb +52 -0
  62. data/lib/twilio-ruby/rest/content.rb +53 -0
  63. data/lib/twilio-ruby/rest/conversations/v1/address_configuration.rb +12 -5
  64. data/lib/twilio-ruby/rest/conversations/v1/conversation/message/delivery_receipt.rb +1 -1
  65. data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +17 -2
  66. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message/delivery_receipt.rb +1 -1
  67. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +17 -2
  68. data/lib/twilio-ruby/rest/events/v1/schema/version.rb +1 -1
  69. data/lib/twilio-ruby/rest/events/v1/schema.rb +1 -1
  70. data/lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb +1 -1
  71. data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +397 -0
  72. data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +14 -0
  73. data/lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb +314 -0
  74. data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb +394 -0
  75. data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb +313 -0
  76. data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb +390 -0
  77. data/lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb +413 -0
  78. data/lib/twilio-ruby/rest/{preview/trusted_comms/brands_information.rb → flex_api/v1/insights_session.rb} +58 -55
  79. data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_answersets.rb +144 -0
  80. data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb +130 -0
  81. data/lib/twilio-ruby/rest/{preview/trusted_comms/cps.rb → flex_api/v1/insights_user_roles.rb} +42 -54
  82. data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.rb +9 -9
  83. data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel.rb +44 -16
  84. data/lib/twilio-ruby/rest/flex_api/v1/interaction.rb +1 -1
  85. data/lib/twilio-ruby/rest/flex_api/v1.rb +115 -0
  86. data/lib/twilio-ruby/rest/flex_api/v2/web_channels.rb +133 -0
  87. data/lib/twilio-ruby/rest/flex_api/v2.rb +35 -0
  88. data/lib/twilio-ruby/rest/flex_api.rb +84 -1
  89. data/lib/twilio-ruby/rest/insights/v1/call/annotation.rb +322 -0
  90. data/lib/twilio-ruby/rest/insights/v1/call/summary.rb +14 -0
  91. data/lib/twilio-ruby/rest/insights/v1/call.rb +16 -8
  92. data/lib/twilio-ruby/rest/insights/v1/call_summaries.rb +7 -0
  93. data/lib/twilio-ruby/rest/insights/v1/room/participant.rb +1 -1
  94. data/lib/twilio-ruby/rest/insights/v1/room.rb +3 -3
  95. data/lib/twilio-ruby/rest/insights/v1.rb +0 -16
  96. data/lib/twilio-ruby/rest/insights.rb +0 -8
  97. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +1 -1
  98. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +2 -2
  99. data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +1 -1
  100. data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +2 -2
  101. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +1 -1
  102. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +2 -2
  103. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +1 -1
  104. data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +4 -4
  105. data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +350 -0
  106. data/lib/twilio-ruby/rest/lookups/v2.rb +45 -0
  107. data/lib/twilio-ruby/rest/lookups.rb +7 -0
  108. data/lib/twilio-ruby/rest/media/v1/media_processor.rb +2 -2
  109. data/lib/twilio-ruby/rest/media/v1/media_recording.rb +5 -12
  110. data/lib/twilio-ruby/rest/media/v1/player_streamer.rb +5 -5
  111. data/lib/twilio-ruby/rest/messaging/v1/domain_cert.rb +257 -0
  112. data/lib/twilio-ruby/rest/messaging/v1/domain_config.rb +267 -0
  113. data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +2 -2
  114. data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +98 -3
  115. data/lib/twilio-ruby/rest/messaging/v1/service.rb +1 -1
  116. data/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb +709 -0
  117. data/lib/twilio-ruby/rest/messaging/v1.rb +50 -0
  118. data/lib/twilio-ruby/rest/messaging.rb +26 -0
  119. data/lib/twilio-ruby/rest/microvisor/v1/account_config.rb +317 -0
  120. data/lib/twilio-ruby/rest/microvisor/v1/account_secret.rb +310 -0
  121. data/lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb +192 -0
  122. data/lib/twilio-ruby/rest/microvisor/v1/app.rb +330 -0
  123. data/lib/twilio-ruby/rest/{fax/v1/fax/fax_media.rb → microvisor/v1/device/device_config.rb} +118 -90
  124. data/lib/twilio-ruby/rest/{preview/bulk_exports/export/day.rb → microvisor/v1/device/device_secret.rb} +125 -84
  125. data/lib/twilio-ruby/rest/microvisor/v1/device.rb +393 -0
  126. data/lib/twilio-ruby/rest/microvisor/v1.rb +92 -0
  127. data/lib/twilio-ruby/rest/microvisor.rb +70 -0
  128. data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +1 -1
  129. data/lib/twilio-ruby/rest/oauth/v1/device_code.rb +153 -0
  130. data/lib/twilio-ruby/rest/oauth/v1/oauth.rb +162 -0
  131. data/lib/twilio-ruby/rest/oauth/v1/openid_discovery.rb +242 -0
  132. data/lib/twilio-ruby/rest/oauth/v1/token.rb +157 -0
  133. data/lib/twilio-ruby/rest/oauth/v1/user_info.rb +193 -0
  134. data/lib/twilio-ruby/rest/oauth/v1.rb +63 -0
  135. data/lib/twilio-ruby/rest/oauth.rb +68 -0
  136. data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb +2 -2
  137. data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +2 -2
  138. data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +1 -1
  139. data/lib/twilio-ruby/rest/preview/understand/assistant/task/task_statistics.rb +2 -2
  140. data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +1 -1
  141. data/lib/twilio-ruby/rest/preview.rb +0 -58
  142. data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +1 -1
  143. data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +1 -14
  144. data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +5 -46
  145. data/lib/twilio-ruby/rest/proxy/v1/service.rb +1 -1
  146. data/lib/twilio-ruby/rest/routes/v2/phone_number.rb +235 -0
  147. data/lib/twilio-ruby/rest/routes/v2/sip_domain.rb +231 -0
  148. data/lib/twilio-ruby/rest/routes/v2/trunk.rb +235 -0
  149. data/lib/twilio-ruby/rest/routes/v2.rb +76 -0
  150. data/lib/twilio-ruby/rest/routes.rb +62 -0
  151. data/lib/twilio-ruby/rest/studio/v1/flow.rb +1 -1
  152. data/lib/twilio-ruby/rest/studio/v2/flow/flow_revision.rb +1 -1
  153. data/lib/twilio-ruby/rest/studio/v2/flow.rb +1 -1
  154. data/lib/twilio-ruby/rest/supersim/v1/esim_profile.rb +23 -3
  155. data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +17 -7
  156. data/lib/twilio-ruby/rest/supersim/v1/ip_command.rb +5 -2
  157. data/lib/twilio-ruby/rest/supersim/v1/settings_update.rb +247 -0
  158. data/lib/twilio-ruby/rest/supersim/v1/sim/sim_ip_address.rb +195 -0
  159. data/lib/twilio-ruby/rest/supersim/v1/sim.rb +20 -0
  160. data/lib/twilio-ruby/rest/supersim/v1/sms_command.rb +3 -3
  161. data/lib/twilio-ruby/rest/supersim/v1/usage_record.rb +17 -3
  162. data/lib/twilio-ruby/rest/supersim/v1.rb +7 -0
  163. data/lib/twilio-ruby/rest/supersim.rb +6 -0
  164. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +1 -1
  165. data/lib/twilio-ruby/rest/sync/v1/service.rb +1 -1
  166. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +1 -1
  167. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +18 -5
  168. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +3 -3
  169. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +12 -12
  170. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +5 -5
  171. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +10 -4
  172. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +3 -3
  173. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +6 -6
  174. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +1 -1
  175. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +9 -3
  176. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +13 -13
  177. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +2 -2
  178. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +1 -1
  179. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +13 -13
  180. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +3 -3
  181. data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +2 -2
  182. data/lib/twilio-ruby/rest/verify/v2/safelist.rb +215 -0
  183. data/lib/twilio-ruby/rest/verify/v2/service/access_token.rb +1 -9
  184. data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb +1 -7
  185. data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +0 -8
  186. data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +0 -8
  187. data/lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb +0 -6
  188. data/lib/twilio-ruby/rest/verify/v2/service/entity.rb +0 -8
  189. data/lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb +2 -2
  190. data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +23 -11
  191. data/lib/twilio-ruby/rest/verify/v2/service/verification_check.rb +8 -1
  192. data/lib/twilio-ruby/rest/verify/v2/service/webhook.rb +0 -8
  193. data/lib/twilio-ruby/rest/verify/v2/service.rb +11 -7
  194. data/lib/twilio-ruby/rest/verify/v2/template.rb +7 -0
  195. data/lib/twilio-ruby/rest/verify/v2/verification_attempts_summary.rb +234 -0
  196. data/lib/twilio-ruby/rest/verify/v2.rb +25 -0
  197. data/lib/twilio-ruby/rest/verify.rb +14 -0
  198. data/lib/twilio-ruby/rest/video/v1/composition.rb +3 -3
  199. data/lib/twilio-ruby/rest/video/v1/recording.rb +2 -2
  200. data/lib/twilio-ruby/rest/video/v1/room/recording.rb +2 -2
  201. data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_anonymize.rb +240 -0
  202. data/lib/twilio-ruby/rest/video/v1/room/room_participant.rb +16 -0
  203. data/lib/twilio-ruby/rest/video/v1/room.rb +15 -5
  204. data/lib/twilio-ruby/rest/voice/v1/connection_policy/connection_policy_target.rb +2 -2
  205. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb +1 -1
  206. data/lib/twilio-ruby/rest/voice/v1/ip_record.rb +1 -1
  207. data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +3 -3
  208. data/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb +2 -2
  209. data/lib/twilio-ruby/security/request_validator.rb +1 -1
  210. data/lib/twilio-ruby/twiml/voice_response.rb +201 -38
  211. data/lib/twilio-ruby/version.rb +1 -1
  212. data/lib/twilio-ruby.rb +1 -1
  213. data/twilio-ruby.gemspec +2 -2
  214. metadata +58 -23
  215. data/lib/twilio-ruby/rest/fax/v1/fax.rb +0 -459
  216. data/lib/twilio-ruby/rest/fax/v1.rb +0 -45
  217. data/lib/twilio-ruby/rest/fax.rb +0 -47
  218. data/lib/twilio-ruby/rest/insights/v1/annotation.rb +0 -271
  219. data/lib/twilio-ruby/rest/preview/bulk_exports/export/export_custom_job.rb +0 -275
  220. data/lib/twilio-ruby/rest/preview/bulk_exports/export/job.rb +0 -249
  221. data/lib/twilio-ruby/rest/preview/bulk_exports/export.rb +0 -251
  222. data/lib/twilio-ruby/rest/preview/bulk_exports/export_configuration.rb +0 -234
  223. data/lib/twilio-ruby/rest/preview/bulk_exports.rb +0 -62
  224. data/lib/twilio-ruby/rest/preview/trusted_comms/branded_channel/channel.rb +0 -165
  225. data/lib/twilio-ruby/rest/preview/trusted_comms/branded_channel.rb +0 -225
  226. data/lib/twilio-ruby/rest/preview/trusted_comms/current_call.rb +0 -277
  227. data/lib/twilio-ruby/rest/preview/trusted_comms.rb +0 -65
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 05d747e6afb3147d260dc189582592a19e650957
4
- data.tar.gz: 07114f3240dfeebbdd9d3128a6631d6b40255a41
3
+ metadata.gz: 7018019e5270ca1565d431219da291876017fc73
4
+ data.tar.gz: c821fa40d85a91e7ca3947bda93dd7e1ab0d8528
5
5
  SHA512:
6
- metadata.gz: cceca2b0801fc90db7e7671ef014bfd0d962e44a732be30b6d8e32fa00006cfb9cbcf9742e3ca4848b35f6cf2ea7ca8c6cf3e9a5b078a3a9dd3f900ed19f9f9a
7
- data.tar.gz: 8d735e1c20ec6c1d5b151ffb100bcad25413bd67e935104bf0b3d6fc4070fc1598c8c8e66427295e54507dcf7fd456a71e45de4b3ef4fc58af8eddadad280bfb
6
+ metadata.gz: f80521099336899dcbec4975deff99dc40d24e8b2f4eccab23554a234e73b1bc046a693a0c030d2a9e496f539f0817f446d32afb7dfe9f1389dc266213e76af5
7
+ data.tar.gz: f9f78b1cb2eb9c737f82c86adf2e492e7012740ccba69a653ab0236c2a8a9832d916b6699358da0703f41caeaf4213405ab8629ab39aace9b26ab55a6f7a644b
@@ -0,0 +1,21 @@
1
+ name: Lint PR
2
+ on:
3
+ pull_request_target:
4
+ types: [ opened, edited, synchronize, reopened ]
5
+
6
+ jobs:
7
+ validate:
8
+ name: Validate title
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: amannn/action-semantic-pull-request@v5
12
+ with:
13
+ types: |
14
+ chore
15
+ docs
16
+ fix
17
+ feat
18
+ misc
19
+ test
20
+ env:
21
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -20,7 +20,7 @@ jobs:
20
20
  ruby: [ '2.4', '2.5', '2.6', '2.7', '3.0', '3.1', 'ruby-head', 'jruby-9.2' ]
21
21
  steps:
22
22
  - name: Checkout twilio-ruby
23
- uses: actions/checkout@v2
23
+ uses: actions/checkout@v3
24
24
  with:
25
25
  fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
26
26
 
@@ -65,7 +65,7 @@ jobs:
65
65
  runs-on: ubuntu-latest
66
66
  steps:
67
67
  - name: Checkout twilio-ruby
68
- uses: actions/checkout@v2
68
+ uses: actions/checkout@v3
69
69
  with:
70
70
  fetch-depth: 0
71
71
 
@@ -78,7 +78,7 @@ jobs:
78
78
  - run: bundle install
79
79
 
80
80
  - name: Login to Docker Hub
81
- uses: docker/login-action@v1
81
+ uses: docker/login-action@v2
82
82
  with:
83
83
  username: ${{ secrets.DOCKER_USERNAME }}
84
84
  password: ${{ secrets.DOCKER_AUTH_TOKEN }}
data/CHANGES.md CHANGED
@@ -1,6 +1,363 @@
1
1
  twilio-ruby changelog
2
2
  =====================
3
3
 
4
+ [2023-03-09] Version 5.74.5
5
+ ---------------------------
6
+ **Api**
7
+ - Add new categories for whatsapp template
8
+
9
+ **Lookups**
10
+ - Remove `validation_results` from the `default_output_properties`
11
+
12
+ **Supersim**
13
+ - Add ESimProfile's `matching_id` and `activation_code` parameters to libraries
14
+
15
+
16
+ [2023-02-22] Version 5.74.4
17
+ ---------------------------
18
+ **Api**
19
+ - Remove `scheduled_for` property from message resource
20
+ - Add `scheduled_for` property to message resource
21
+
22
+
23
+ [2023-02-08] Version 5.74.3
24
+ ---------------------------
25
+ **Lookups**
26
+ - Add `disposable_phone_number_risk` package to the lookup response
27
+ - Add `sms_pumping_risk` package to the lookup response
28
+
29
+
30
+ [2023-01-25] Version 5.74.2
31
+ ---------------------------
32
+ **Api**
33
+ - Add `public_application_connect_enabled` param to Application resource
34
+
35
+ **Messaging**
36
+ - Add new tollfree verification API property (ExternalReferenceId)]
37
+
38
+ **Verify**
39
+ - Add `device_ip` parameter and channel `auto` for sna/sms orchestration
40
+
41
+ **Twiml**
42
+ - Add support for `<Application>` noun and `<ApplicationSid>` noun, nested `<Parameter>` to `<Hangup>` and `<Leave>` verb
43
+
44
+
45
+ [2023-01-11] Version 5.74.1
46
+ ---------------------------
47
+ **Library - Chore**
48
+ - [PR #626](https://github.com/twilio/twilio-ruby/pull/626): Bump jwt version max version to 2.6. Thanks to [@MarcPer](https://github.com/MarcPer)!
49
+
50
+ **Conversations**
51
+ - Add support for creating Multi-Channel Rich Content Messages
52
+
53
+ **Lookups**
54
+ - Changed the no data message for match postal code from `no_data` to `data_not_available` in identity match package
55
+
56
+ **Messaging**
57
+ - Add update/edit tollfree verification API
58
+
59
+
60
+ [2022-12-14] Version 5.74.0
61
+ ---------------------------
62
+ **Api**
63
+ - Add `street_secondary` param to address create and update
64
+ - Make `method` optional for user defined message subscription **(breaking change)**
65
+
66
+ **Flex**
67
+ - Flex Conversations is now Generally Available
68
+ - Adding the ie1 mapping for authorization api, updating service base uri and base url response attribute **(breaking change)**
69
+ - Change web channels to GA and library visibility to public
70
+ - Changing the uri for authorization api from using Accounts to Insights **(breaking change)**
71
+
72
+ **Media**
73
+ - Gate Twilio Live endpoints behind beta_feature for EOS
74
+
75
+ **Messaging**
76
+ - Mark `MessageFlow` as a required field for Campaign Creation **(breaking change)**
77
+
78
+ **Oauth**
79
+ - updated openid discovery endpoint uri **(breaking change)**
80
+ - Added device code authorization endpoint
81
+
82
+ **Supersim**
83
+ - Allow filtering the SettingsUpdates resource by `status`
84
+
85
+ **Twiml**
86
+ - Add new Polly Neural voices
87
+ - Add tr-TR, ar-AE, yue-CN, fi-FI languages to SSML `<lang>` element.
88
+ - Add x-amazon-jyutping, x-amazon-pinyin, x-amazon-pron-kana, x-amazon-yomigana alphabets to SSML `<phoneme>` element.
89
+ - Rename `character` value for SSML `<say-as>` `interpret-as` attribute to `characters`. **(breaking change)**
90
+ - Rename `role` attribute to `format` in SSML `<say-as>` element. **(breaking change)**
91
+
92
+
93
+ [2022-11-30] Version 5.73.4
94
+ ---------------------------
95
+ **Flex**
96
+ - Adding new `assessments` api in version `v1`
97
+
98
+ **Lookups**
99
+ - Add `identity_match` package to the lookup response
100
+
101
+ **Messaging**
102
+ - Added `validated` parameter to Link Shortening API
103
+
104
+ **Serverless**
105
+ - Add node16 as a valid Build runtime
106
+ - Add ie1 and au1 as supported regions for all endpoints.
107
+
108
+
109
+ [2022-11-16] Version 5.73.3
110
+ ---------------------------
111
+ **Library - Chore**
112
+ - [PR #621](https://github.com/twilio/twilio-ruby/pull/621): upgrade GitHub Actions dependencies. Thanks to [@childish-sambino](https://github.com/childish-sambino)!
113
+
114
+ **Api**
115
+ - Set the Content resource to have public visibility as Preview
116
+
117
+ **Flex**
118
+ - Adding new parameter `base_url` to 'gooddata' response in version `v1`
119
+
120
+ **Insights**
121
+ - Added `answered_by` field in List Call Summary
122
+ - Added `answered_by` field in call summary
123
+
124
+
125
+ [2022-11-10] Version 5.73.2
126
+ ---------------------------
127
+ **Flex**
128
+ - Adding two new authorization API 'user_roles' and 'gooddata' in version `v1`
129
+
130
+ **Messaging**
131
+ - Add new Campaign properties (MessageFlow, OptInMessage, OptInKeywords, OptOutMessage, OptOutKeywords, HelpMessage, HelpKeywords)
132
+
133
+ **Twiml**
134
+ - Add new speech models to `Gather`.
135
+
136
+
137
+ [2022-10-31] Version 5.73.1
138
+ ---------------------------
139
+ **Api**
140
+ - Added `contentSid` and `contentVariables` to Message resource with public visibility as Beta
141
+ - Add `UserDefinedMessageSubscription` and `UserDefinedMessage` resource
142
+
143
+ **Proxy**
144
+ - Remove FailOnParticipantConflict param from Proxy Session create and update and Proxy Participant create
145
+
146
+ **Supersim**
147
+ - Update SettingsUpdates resource to remove PackageSid
148
+
149
+ **Taskrouter**
150
+ - Add `Ordering` query parameter to Workers and TaskQueues for sorting by
151
+ - Add `worker_sid` query param for list reservations endpoint
152
+
153
+ **Twiml**
154
+ - Add `url` and `method` attributes to `<Conversation>`
155
+
156
+
157
+ [2022-10-19] Version 5.73.0
158
+ ---------------------------
159
+ **Library - Feature**
160
+ - [PR #619](https://github.com/twilio/twilio-ruby/pull/619): check numeric properties for nil before converting. Thanks to [@childish-sambino](https://github.com/childish-sambino)!
161
+
162
+ **Api**
163
+ - Make link shortening parameters public **(breaking change)**
164
+
165
+ **Oauth**
166
+ - added oauth JWKS endpoint
167
+ - Get userinfo resource
168
+ - OpenID discovery resource
169
+ - Add new API for token endpoint
170
+
171
+ **Supersim**
172
+ - Add SettingsUpdates resource
173
+
174
+ **Verify**
175
+ - Update Verify Push endpoints to `ga` maturity
176
+ - Verify BYOT add Channels property to the Get Templates response
177
+
178
+ **Twiml**
179
+ - Add `requireMatchingInputs` attribute and `input-matching-failed` errorType to `<Prompt>`
180
+
181
+
182
+ [2022-10-05] Version 5.72.1
183
+ ---------------------------
184
+ **Api**
185
+ - Added `virtual-agent` to `usage_record` API.
186
+ - Add AMD attributes to participant create request
187
+
188
+ **Twiml**
189
+ - Add AMD attributes to `Number` and `Sip`
190
+
191
+
192
+ [2022-09-07] Version 5.72.0
193
+ ---------------------------
194
+ **Flex**
195
+ - Removed redundant `close` status from Flex Interactions flow **(breaking change)**
196
+ - Adding `debugger_integration` and `flex_ui_status_report` to Flex Configuration
197
+
198
+ **Messaging**
199
+ - Add create, list and get tollfree verification API
200
+
201
+ **Verify**
202
+ - Verify SafeList API endpoints added.
203
+
204
+ **Video**
205
+ - Add `Anonymize` API
206
+
207
+ **Twiml**
208
+ - Update `event` value `call-in-progress` to `call-answered`
209
+
210
+
211
+ [2022-08-24] Version 5.71.0
212
+ ---------------------------
213
+ **Library - Test**
214
+ - [PR #615](https://github.com/twilio/twilio-ruby/pull/615): add test-docker rule. Thanks to [@beebzz](https://github.com/beebzz)!
215
+
216
+ **Api**
217
+ - Remove `beta feature` from scheduling params and remove optimize parameters. **(breaking change)**
218
+
219
+ **Routes**
220
+ - Remove Duplicate Create Method - Update Method will work even if Inbound Processing Region is currently empty/404. **(breaking change)**
221
+
222
+ **Twiml**
223
+ - Add new Polly Neural voices
224
+ - Add new languages to SSML `<lang>`.
225
+
226
+
227
+ [2022-08-10] Version 5.70.1
228
+ ---------------------------
229
+ **Library - Fix**
230
+ - [PR #614](https://github.com/twilio/twilio-ruby/pull/614): Make RequestValidator#validate fail if URL has no query params. Thanks to [@haffla](https://github.com/haffla)!
231
+
232
+ **Routes**
233
+ - Inbound Proccessing Region API - Public GA
234
+
235
+ **Supersim**
236
+ - Allow updating `DataLimit` on a Fleet
237
+
238
+
239
+ [2022-07-21] Version 5.70.0
240
+ ---------------------------
241
+ **Flex**
242
+ - Add `status`, `error_code`, and `error_message` fields to Interaction `Channel`
243
+ - Adding `messenger` and `gbm` as supported channels for Interactions API
244
+
245
+ **Messaging**
246
+ - Update alpha_sender docs with new valid characters
247
+
248
+ **Verify**
249
+ - Reorder Verification Check parameters so `code` stays as the first parameter **(breaking change)**
250
+ - Rollback List Attempts API V2 back to pilot stage.
251
+
252
+
253
+ [2022-07-13] Version 5.69.0
254
+ ---------------------------
255
+ **Library - Fix**
256
+ - [PR #612](https://github.com/twilio/twilio-ruby/pull/612): useragent regrex unit test for RC branch. Thanks to [@claudiachua](https://github.com/claudiachua)!
257
+
258
+ **Library - Test**
259
+ - [PR #610](https://github.com/twilio/twilio-ruby/pull/610): Adding misc as PR type. Thanks to [@rakatyal](https://github.com/rakatyal)!
260
+
261
+ **Conversations**
262
+ - Allowed to use `identity` as part of Participant's resource **(breaking change)**
263
+
264
+ **Lookups**
265
+ - Remove `enhanced_line_type` from the lookup response **(breaking change)**
266
+
267
+ **Supersim**
268
+ - Add support for `sim_ip_addresses` resource to helper libraries
269
+
270
+ **Verify**
271
+ - Changed summary param `service_sid` to `verify_service_sid` to be consistent with list attempts API **(breaking change)**
272
+ - Make `code` optional on Verification check to support `sna` attempts. **(breaking change)**
273
+
274
+
275
+ [2022-06-29] Version 5.68.0
276
+ ---------------------------
277
+ **Api**
278
+ - Added `amazon-polly` to `usage_record` API.
279
+
280
+ **Insights**
281
+ - Added `annotation` field in call summary
282
+ - Added new endpoint to fetch/create/update Call Annotations
283
+
284
+ **Verify**
285
+ - Remove `api.verify.totp` beta flag and set maturity to `beta` for Verify TOTP properties and parameters. **(breaking change)**
286
+ - Changed summary param `verify_service_sid` to `service_sid` to be consistent with list attempts API **(breaking change)**
287
+
288
+ **Twiml**
289
+ - Add `maxQueueSize` to `Enqueue`
290
+
291
+
292
+ [2022-06-15] Version 5.67.3
293
+ ---------------------------
294
+ **Lookups**
295
+ - Adding support for Lookup V2 API
296
+
297
+ **Studio**
298
+ - Corrected PII labels to be 30 days and added context to be PII
299
+
300
+ **Twiml**
301
+ - Add `statusCallbackMethod` attribute, nested `<Config` and `<Parameter>` elements to `<VirtualAgent>` noun.
302
+ - Add support for new Amazon Polly voices (Q2 2022) for `Say` verb
303
+ - Add support for `<Conversation>` noun
304
+
305
+
306
+ [2022-06-01] Version 5.67.2
307
+ ---------------------------
308
+ **Library - Chore**
309
+ - [PR #608](https://github.com/twilio/twilio-ruby/pull/608): use Docker 'rc' tag for release candidate images. Thanks to [@childish-sambino](https://github.com/childish-sambino)!
310
+
311
+
312
+ [2022-05-18] Version 5.67.1
313
+ ---------------------------
314
+ **Api**
315
+ - Add property `media_url` to the recording resources
316
+
317
+ **Verify**
318
+ - Include `silent` as a channel type in the verifications API.
319
+
320
+
321
+ [2022-05-04] Version 5.67.0
322
+ ---------------------------
323
+ **Library - Fix**
324
+ - [PR #607](https://github.com/twilio/twilio-ruby/pull/607): Retrieval of OS Info with Ruby Config for User Agent string. Thanks to [@claudiachua](https://github.com/claudiachua)!
325
+ - [PR #606](https://github.com/twilio/twilio-ruby/pull/606): Only require twilio_webhook_authentication if Rack version > 2. Thanks to [@jasonnoble](https://github.com/jasonnoble)!
326
+ - [PR #582](https://github.com/twilio/twilio-ruby/pull/582): avoid JSON::ParserError for all server errors. Thanks to [@dan-jensen](https://github.com/dan-jensen)!
327
+
328
+ **Library - Feature**
329
+ - [PR #591](https://github.com/twilio/twilio-ruby/pull/591): Add Faraday 2.0 support. Thanks to [@tconst](https://github.com/tconst)!
330
+
331
+ **Conversations**
332
+ - Expose query parameter `type` in list operation on Address Configurations resource
333
+
334
+ **Supersim**
335
+ - Add `data_total_billed` and `billed_units` fields to Super SIM UsageRecords API response.
336
+ - Change ESimProfiles `Eid` parameter to optional to enable Activation Code download method support **(breaking change)**
337
+
338
+ **Verify**
339
+ - Deprecate `push.include_date` parameter in create and update service.
340
+
341
+
342
+ [2022-04-20] Version 5.66.2
343
+ ---------------------------
344
+ **Library - Chore**
345
+ - [PR #604](https://github.com/twilio/twilio-ruby/pull/604): update the user agent string for twilio-ruby. Thanks to [@claudiachua](https://github.com/claudiachua)!
346
+
347
+
348
+ [2022-04-06] Version 5.66.1
349
+ ---------------------------
350
+ **Api**
351
+ - Updated `provider_sid` visibility to private
352
+
353
+ **Verify**
354
+ - Verify List Attempts API summary endpoint added.
355
+ - Update PII documentation for `AccessTokens` `factor_friendly_name` property.
356
+
357
+ **Voice**
358
+ - make annotation parameter from /Calls API private
359
+
360
+
4
361
  [2022-03-23] Version 5.66.0
5
362
  ---------------------------
6
363
  **Api**
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (C) 2021, Twilio, Inc. <help@twilio.com>
3
+ Copyright (C) 2023, Twilio, Inc. <help@twilio.com>
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy of
6
6
  this software and associated documentation files (the "Software"), to deal in
data/Makefile CHANGED
@@ -1,4 +1,4 @@
1
- .PHONY: githooks install test lint docs docker-build docker-push
1
+ .PHONY: githooks install test test-docker lint docs docker-build docker-push
2
2
 
3
3
  githooks:
4
4
  ln -sf ../../githooks/pre-commit .git/hooks/pre-commit
@@ -9,6 +9,10 @@ install:
9
9
  test:
10
10
  bundle exec rake spec
11
11
 
12
+ test-docker:
13
+ docker build -t twilio/twilio-ruby .
14
+ docker run twilio/twilio-ruby bundle exec rake spec
15
+
12
16
  docs:
13
17
  bundle exec yard doc --output-dir ./doc
14
18
 
@@ -17,13 +21,14 @@ authors:
17
21
  git log --raw | grep "^Author: " | cut -d ' ' -f2- | cut -d '<' -f1 | sed 's/^/- /' | sort | uniq >> AUTHORS.md
18
22
 
19
23
  API_DEFINITIONS_SHA=$(shell git log --oneline | grep Regenerated | head -n1 | cut -d ' ' -f 5)
24
+ CURRENT_TAG=$(shell expr "${GITHUB_TAG}" : ".*-rc.*" >/dev/null && echo "rc" || echo "latest")
20
25
  docker-build:
21
26
  docker build -t twilio/twilio-ruby .
22
27
  docker tag twilio/twilio-ruby twilio/twilio-ruby:${GITHUB_TAG}
23
28
  docker tag twilio/twilio-ruby twilio/twilio-ruby:apidefs-${API_DEFINITIONS_SHA}
24
- docker tag twilio/twilio-ruby twilio/twilio-ruby:latest
29
+ docker tag twilio/twilio-ruby twilio/twilio-ruby:${CURRENT_TAG}
25
30
 
26
31
  docker-push:
27
32
  docker push twilio/twilio-ruby:${GITHUB_TAG}
28
33
  docker push twilio/twilio-ruby:apidefs-${API_DEFINITIONS_SHA}
29
- docker push twilio/twilio-ruby:latest
34
+ docker push twilio/twilio-ruby:${CURRENT_TAG}
@@ -3,7 +3,7 @@ We appreciate the effort for this pull request but before that please make sure
3
3
 
4
4
  Please format the PR title appropriately based on the type of change:
5
5
  <type>[!]: <description>
6
- Where <type> is one of: docs, chore, feat, fix, test.
6
+ Where <type> is one of: docs, chore, feat, fix, test, misc.
7
7
  Add a '!' after the type for breaking changes (e.g. feat!: new breaking feature).
8
8
 
9
9
  **All third-party contributors acknowledge that any contributions they provide will be made under the same open-source license that the open-source project is provided under.**
data/README.md CHANGED
@@ -4,8 +4,6 @@
4
4
  [![Gem Version](https://img.shields.io/gem/v/twilio-ruby.svg)](https://rubygems.org/gems/twilio-ruby)
5
5
  [![Learn with TwilioQuest](https://img.shields.io/static/v1?label=TwilioQuest&message=Learn%20to%20contribute%21&color=F22F46&labelColor=1f243c&style=flat-square&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAAASFBMVEUAAAAZGRkcHBwjIyMoKCgAAABgYGBoaGiAgICMjIyzs7PJycnMzMzNzc3UoBfd3d3m5ubqrhfrMEDu7u739/f4vSb/3AD///9tbdyEAAAABXRSTlMAAAAAAMJrBrEAAAKoSURBVHgB7ZrRcuI6EESdyxXGYoNFvMD//+l2bSszRgyUYpFAsXOeiJGmj4NkuWx1Qeh+Ekl9DgEXOBwOx+Px5xyQhDykfgq4wG63MxxaR4ddIkg6Ul3g84vCIcjPBA5gmUMeXESrlukuoK33+33uID8TWeLAdOWsKpJYzwVMB7bOzYSGOciyUlXSn0/ABXTosJ1M1SbypZ4O4MbZuIDMU02PMbauhhHMHXbmebmALIiEbbbbbUrpF1gwE9kFfRNAJaP+FQEXCCTGyJ4ngDrjOFo3jEL5JdqjF/pueR4cCeCGgAtwmuRS6gDwaRiGvu+DMFwSBLTE3+jF8JyuV1okPZ+AC4hDFhCHyHQjdjPHUKFDlHSJkHQXMB3KpSwXNGJPcwwTdZiXlRN0gSp0zpWxNtM0beYE0nRH6QIbO7rawwXaBYz0j78gxjokDuv12gVeUuBD0MDi0OQCLvDaAho4juP1Q/jkAncXqIcCfd+7gAu4QLMACCLxpRsSuQh0igu0C9Svhi7weAGZg50L3IE3cai4IfkNZAC8dfdhsUD3CgKBVC9JE5ABAFzg4QL/taYPAAWrHdYcgfLaIgAXWJ7OV38n1LEF8tt2TH29E+QAoDoO5Ve/LtCQDmKM9kPbvCEBApK+IXzbcSJ0cIGF6e8gpcRhUDogWZ8JnaWjPXc/fNnBBUKRngiHgTUSivSzDRDgHZQOLvBQgf8rRt+VdBUUhwkU6VpJ+xcOwQUqZr+mR0kvBUgv6cB4+37hQAkXqE8PwGisGhJtN4xAHMzrsgvI7rccXqSvKh6jltGlrOHA3Xk1At3LC4QiPdX9/0ndHpGVvTjR4bZA1ypAKgVcwE5vx74ulwIugDt8e/X7JgfkucBMIAr26ndnB4UCLnDOqvteQsHlgX9N4A+c4cW3DXSPbwAAAABJRU5ErkJggg==)](https://twil.io/learn-open-source)
6
6
 
7
- **The default branch name for this repository has been changed to `main` as of 07/27/2020.**
8
-
9
7
  ## Documentation
10
8
 
11
9
  The documentation for the Twilio API can be found [here][apidocs].
@@ -36,13 +34,13 @@ This library supports the following Ruby implementations:
36
34
  To install using [Bundler][bundler] grab the latest stable version:
37
35
 
38
36
  ```ruby
39
- gem 'twilio-ruby', '~> 5.66.0'
37
+ gem 'twilio-ruby', '~> 5.74.5'
40
38
  ```
41
39
 
42
40
  To manually install `twilio-ruby` via [Rubygems][rubygems] simply gem install:
43
41
 
44
42
  ```bash
45
- gem install twilio-ruby -v 5.66.0
43
+ gem install twilio-ruby -v 5.74.5
46
44
  ```
47
45
 
48
46
  To build and install the development branch yourself from the latest source:
@@ -26,12 +26,16 @@ module Twilio
26
26
  nil
27
27
  end
28
28
 
29
- def _request(request)
29
+ def _request(request) # rubocop:disable Metrics/MethodLength
30
30
  @connection = Faraday.new(url: request.host + ':' + request.port.to_s, ssl: { verify: true }) do |f|
31
31
  f.options.params_encoder = Faraday::FlatParamsEncoder
32
32
  f.request :url_encoded
33
33
  f.headers = request.headers
34
- f.request(:basic_auth, request.auth[0], request.auth[1])
34
+ if Faraday::VERSION.start_with?('2.')
35
+ f.request(:authorization, :basic, request.auth[0], request.auth[1])
36
+ else
37
+ f.request(:basic_auth, request.auth[0], request.auth[1])
38
+ end
35
39
  f.proxy = "#{@proxy_prot}://#{@proxy_auth}#{@proxy_path}" if @proxy_prot && @proxy_path
36
40
  f.options.open_timeout = request.timeout || @timeout
37
41
  f.options.timeout = request.timeout || @timeout
@@ -44,8 +48,8 @@ module Twilio
44
48
  @last_response = nil
45
49
 
46
50
  response = send(request)
47
- if response.status == 504
48
- object = { message: 'Request timeout', code: 504 }.to_json
51
+ if (500..599).include?(response.status)
52
+ object = { message: "Server error (#{response.status})", code: response.status }.to_json
49
53
  elsif response.body && !response.body.empty?
50
54
  object = response.body
51
55
  elsif response.status == 400
@@ -43,8 +43,10 @@ module Twilio
43
43
  # the address. Can be: `true` or `false` and the default is `true`. If empty or
44
44
  # `true`, we will correct the address you provide if necessary. If `false`, we
45
45
  # won't alter the address you provide.
46
+ # @param [String] street_secondary The additional number and street address of the
47
+ # address.
46
48
  # @return [AddressInstance] Created AddressInstance
47
- def create(customer_name: nil, street: nil, city: nil, region: nil, postal_code: nil, iso_country: nil, friendly_name: :unset, emergency_enabled: :unset, auto_correct_address: :unset)
49
+ def create(customer_name: nil, street: nil, city: nil, region: nil, postal_code: nil, iso_country: nil, friendly_name: :unset, emergency_enabled: :unset, auto_correct_address: :unset, street_secondary: :unset)
48
50
  data = Twilio::Values.of({
49
51
  'CustomerName' => customer_name,
50
52
  'Street' => street,
@@ -55,6 +57,7 @@ module Twilio
55
57
  'FriendlyName' => friendly_name,
56
58
  'EmergencyEnabled' => emergency_enabled,
57
59
  'AutoCorrectAddress' => auto_correct_address,
60
+ 'StreetSecondary' => street_secondary,
58
61
  })
59
62
 
60
63
  payload = @version.create('POST', @uri, data: data)
@@ -262,8 +265,10 @@ module Twilio
262
265
  # the address. Can be: `true` or `false` and the default is `true`. If empty or
263
266
  # `true`, we will correct the address you provide if necessary. If `false`, we
264
267
  # won't alter the address you provide.
268
+ # @param [String] street_secondary The additional number and street address of the
269
+ # address.
265
270
  # @return [AddressInstance] Updated AddressInstance
266
- def update(friendly_name: :unset, customer_name: :unset, street: :unset, city: :unset, region: :unset, postal_code: :unset, emergency_enabled: :unset, auto_correct_address: :unset)
271
+ def update(friendly_name: :unset, customer_name: :unset, street: :unset, city: :unset, region: :unset, postal_code: :unset, emergency_enabled: :unset, auto_correct_address: :unset, street_secondary: :unset)
267
272
  data = Twilio::Values.of({
268
273
  'FriendlyName' => friendly_name,
269
274
  'CustomerName' => customer_name,
@@ -273,6 +278,7 @@ module Twilio
273
278
  'PostalCode' => postal_code,
274
279
  'EmergencyEnabled' => emergency_enabled,
275
280
  'AutoCorrectAddress' => auto_correct_address,
281
+ 'StreetSecondary' => street_secondary,
276
282
  })
277
283
 
278
284
  payload = @version.update('POST', @uri, data: data)
@@ -342,6 +348,7 @@ module Twilio
342
348
  'emergency_enabled' => payload['emergency_enabled'],
343
349
  'validated' => payload['validated'],
344
350
  'verified' => payload['verified'],
351
+ 'street_secondary' => payload['street_secondary'],
345
352
  }
346
353
 
347
354
  # Context
@@ -450,6 +457,12 @@ module Twilio
450
457
  @properties['verified']
451
458
  end
452
459
 
460
+ ##
461
+ # @return [String] The additional number and street address of the address
462
+ def street_secondary
463
+ @properties['street_secondary']
464
+ end
465
+
453
466
  ##
454
467
  # Delete the AddressInstance
455
468
  # @return [Boolean] true if delete succeeds, false otherwise
@@ -479,8 +492,10 @@ module Twilio
479
492
  # the address. Can be: `true` or `false` and the default is `true`. If empty or
480
493
  # `true`, we will correct the address you provide if necessary. If `false`, we
481
494
  # won't alter the address you provide.
495
+ # @param [String] street_secondary The additional number and street address of the
496
+ # address.
482
497
  # @return [AddressInstance] Updated AddressInstance
483
- def update(friendly_name: :unset, customer_name: :unset, street: :unset, city: :unset, region: :unset, postal_code: :unset, emergency_enabled: :unset, auto_correct_address: :unset)
498
+ def update(friendly_name: :unset, customer_name: :unset, street: :unset, city: :unset, region: :unset, postal_code: :unset, emergency_enabled: :unset, auto_correct_address: :unset, street_secondary: :unset)
484
499
  context.update(
485
500
  friendly_name: friendly_name,
486
501
  customer_name: customer_name,
@@ -490,6 +505,7 @@ module Twilio
490
505
  postal_code: postal_code,
491
506
  emergency_enabled: emergency_enabled,
492
507
  auto_correct_address: auto_correct_address,
508
+ street_secondary: street_secondary,
493
509
  )
494
510
  end
495
511