twilio-ruby 6.12.1 → 7.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (154) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/test-and-deploy.yml +5 -5
  3. data/CHANGES.md +72 -1
  4. data/README.md +2 -2
  5. data/UPGRADE.md +11 -0
  6. data/lib/twilio-ruby/framework/request.rb +8 -1
  7. data/lib/twilio-ruby/http/http_client.rb +10 -3
  8. data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +0 -2
  9. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +22 -22
  10. data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +7 -0
  11. data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +22 -22
  12. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +0 -2
  13. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +0 -2
  14. data/lib/twilio-ruby/rest/client.rb +8 -3
  15. data/lib/twilio-ruby/rest/content/v1/content/approval_create.rb +184 -0
  16. data/lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb +11 -13
  17. data/lib/twilio-ruby/rest/content/v1/content.rb +422 -3
  18. data/lib/twilio-ruby/rest/content/v1/content_and_approvals.rb +1 -1
  19. data/lib/twilio-ruby/rest/content/v1/legacy_content.rb +1 -1
  20. data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +6 -6
  21. data/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb +6 -6
  22. data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +0 -2
  23. data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +26 -0
  24. data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb +0 -2
  25. data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb +0 -2
  26. data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb +0 -2
  27. data/lib/twilio-ruby/rest/flex_api/v1/insights_session.rb +0 -2
  28. data/lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.rb +0 -2
  29. data/lib/twilio-ruby/rest/flex_api/v1/plugin/plugin_versions.rb +6 -0
  30. data/lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb +0 -2
  31. data/lib/twilio-ruby/rest/frontline_api/v1/user.rb +0 -2
  32. data/lib/twilio-ruby/rest/insights/v1/call/annotation.rb +0 -2
  33. data/lib/twilio-ruby/rest/insights/v1/room/participant.rb +0 -2
  34. data/lib/twilio-ruby/rest/insights/v1/room.rb +0 -2
  35. data/lib/twilio-ruby/rest/intelligence/v2/service.rb +0 -2
  36. data/lib/twilio-ruby/rest/intelligence/v2/transcript/media.rb +0 -2
  37. data/lib/twilio-ruby/rest/intelligence/v2/transcript/operator_result.rb +0 -2
  38. data/lib/twilio-ruby/rest/intelligence/v2/transcript.rb +0 -2
  39. data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +17 -6
  40. data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_vetting.rb +0 -2
  41. data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +0 -2
  42. data/lib/twilio-ruby/rest/messaging/v1/domain_certs.rb +0 -2
  43. data/lib/twilio-ruby/rest/messaging/v1/domain_config.rb +0 -2
  44. data/lib/twilio-ruby/rest/messaging/v1/domain_config_messaging_service.rb +0 -2
  45. data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service.rb +0 -2
  46. data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service_domain_association.rb +0 -2
  47. data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +0 -2
  48. data/lib/twilio-ruby/rest/messaging/v1/service/channel_sender.rb +0 -2
  49. data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +0 -2
  50. data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +0 -2
  51. data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +0 -2
  52. data/lib/twilio-ruby/rest/messaging/v1/service.rb +7 -2
  53. data/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb +0 -2
  54. data/lib/twilio-ruby/rest/microvisor/v1/account_config.rb +0 -2
  55. data/lib/twilio-ruby/rest/microvisor/v1/account_secret.rb +0 -2
  56. data/lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb +0 -2
  57. data/lib/twilio-ruby/rest/microvisor/v1/app.rb +0 -2
  58. data/lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb +0 -2
  59. data/lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb +0 -2
  60. data/lib/twilio-ruby/rest/microvisor/v1/device.rb +0 -2
  61. data/lib/twilio-ruby/rest/notify/v1/credential.rb +0 -2
  62. data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +0 -2
  63. data/lib/twilio-ruby/rest/notify/v1/service.rb +0 -2
  64. data/lib/twilio-ruby/rest/numbers/v1/bulk_eligibility.rb +16 -3
  65. data/lib/twilio-ruby/rest/numbers/v1/eligibility.rb +127 -0
  66. data/lib/twilio-ruby/rest/numbers/v1/porting_bulk_portability.rb +0 -2
  67. data/lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb +134 -0
  68. data/lib/twilio-ruby/rest/numbers/v1/porting_port_in_fetch.rb +7 -2
  69. data/lib/twilio-ruby/rest/numbers/v1/porting_portability.rb +0 -2
  70. data/lib/twilio-ruby/rest/numbers/v1.rb +12 -0
  71. data/lib/twilio-ruby/rest/numbers/v2/authorization_document.rb +0 -2
  72. data/lib/twilio-ruby/rest/numbers/v2/bulk_hosted_number_order.rb +16 -3
  73. data/lib/twilio-ruby/rest/numbers/v2/hosted_number_order.rb +0 -2
  74. data/lib/twilio-ruby/rest/oauth/v1/authorize.rb +143 -0
  75. data/lib/twilio-ruby/rest/oauth/v1/token.rb +181 -0
  76. data/lib/twilio-ruby/rest/oauth/v1.rb +46 -0
  77. data/lib/twilio-ruby/rest/{media.rb → oauth.rb} +1 -1
  78. data/lib/twilio-ruby/rest/{media_base.rb → oauth_base.rb} +6 -6
  79. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/certificate.rb +0 -2
  80. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/deployment.rb +0 -2
  81. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/device.rb +0 -2
  82. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/key.rb +0 -2
  83. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +0 -2
  84. data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +0 -2
  85. data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +0 -2
  86. data/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb +0 -2
  87. data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +0 -2
  88. data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb +0 -2
  89. data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +0 -2
  90. data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +0 -2
  91. data/lib/twilio-ruby/rest/preview/sync/service/document.rb +0 -2
  92. data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +0 -2
  93. data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +0 -2
  94. data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +0 -2
  95. data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +0 -2
  96. data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +0 -2
  97. data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +0 -2
  98. data/lib/twilio-ruby/rest/preview/sync/service.rb +0 -2
  99. data/lib/twilio-ruby/rest/preview/wireless/command.rb +0 -2
  100. data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +0 -2
  101. data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +0 -2
  102. data/lib/twilio-ruby/rest/preview/wireless/sim.rb +0 -2
  103. data/lib/twilio-ruby/rest/preview_messaging/v1/broadcast.rb +164 -0
  104. data/lib/twilio-ruby/rest/preview_messaging/v1/message.rb +235 -0
  105. data/lib/twilio-ruby/rest/preview_messaging/v1.rb +46 -0
  106. data/lib/twilio-ruby/rest/preview_messaging.rb +12 -0
  107. data/lib/twilio-ruby/rest/preview_messaging_base.rb +38 -0
  108. data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +0 -2
  109. data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +0 -2
  110. data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +0 -2
  111. data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +0 -2
  112. data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +0 -2
  113. data/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb +0 -2
  114. data/lib/twilio-ruby/rest/proxy/v1/service.rb +0 -2
  115. data/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +0 -2
  116. data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +0 -2
  117. data/lib/twilio-ruby/rest/serverless/v1/service/build/build_status.rb +0 -2
  118. data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +0 -2
  119. data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +0 -2
  120. data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +0 -2
  121. data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +0 -2
  122. data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +0 -2
  123. data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb +0 -2
  124. data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +0 -2
  125. data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +0 -2
  126. data/lib/twilio-ruby/rest/serverless/v1/service.rb +0 -2
  127. data/lib/twilio-ruby/rest/supersim/v1/esim_profile.rb +0 -2
  128. data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +0 -2
  129. data/lib/twilio-ruby/rest/supersim/v1/ip_command.rb +0 -2
  130. data/lib/twilio-ruby/rest/supersim/v1/network.rb +0 -2
  131. data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +0 -2
  132. data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +0 -2
  133. data/lib/twilio-ruby/rest/supersim/v1/sim.rb +0 -2
  134. data/lib/twilio-ruby/rest/supersim/v1/sms_command.rb +0 -2
  135. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_bulk_real_time_statistics.rb +163 -0
  136. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +8 -8
  137. data/lib/twilio-ruby/rest/trusthub/v1/compliance_registration_inquiries.rb +95 -4
  138. data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb +9 -3
  139. data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_entity_assignments.rb +9 -3
  140. data/lib/twilio-ruby/rest/trusthub/v1/trust_products.rb +18 -18
  141. data/lib/twilio-ruby/rest/trusthub/v1.rb +12 -3
  142. data/lib/twilio-ruby/rest/verify/v2/form.rb +0 -2
  143. data/lib/twilio-ruby/rest/verify/v2/safelist.rb +0 -2
  144. data/lib/twilio-ruby/rest/verify/v2/service.rb +25 -0
  145. data/lib/twilio-ruby/rest/voice/v1/archived_call.rb +0 -2
  146. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +0 -2
  147. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/settings.rb +0 -2
  148. data/lib/twilio-ruby/version.rb +1 -1
  149. metadata +16 -9
  150. data/lib/twilio-ruby/rest/media/v1/media_processor.rb +0 -424
  151. data/lib/twilio-ruby/rest/media/v1/media_recording.rb +0 -407
  152. data/lib/twilio-ruby/rest/media/v1/player_streamer/playback_grant.rb +0 -255
  153. data/lib/twilio-ruby/rest/media/v1/player_streamer.rb +0 -436
  154. data/lib/twilio-ruby/rest/media/v1.rb +0 -79
@@ -40,8 +40,6 @@ module Twilio
40
40
  end
41
41
 
42
42
 
43
- ##
44
- #PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
45
43
  class InsightsSessionContext < InstanceContext
46
44
  ##
47
45
  # Initialize the InsightsSessionContext
@@ -40,8 +40,6 @@ module Twilio
40
40
  end
41
41
 
42
42
 
43
- ##
44
- #PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
45
43
  class InsightsUserRolesContext < InstanceContext
46
44
  ##
47
45
  # Initialize the InsightsUserRolesContext
@@ -38,6 +38,8 @@ module Twilio
38
38
  # @param [String] plugin_url The URL of the Flex Plugin Version bundle
39
39
  # @param [String] changelog The changelog of the Flex Plugin Version.
40
40
  # @param [Boolean] private Whether this Flex Plugin Version requires authorization.
41
+ # @param [String] cli_version The version of Flex Plugins CLI used to create this plugin
42
+ # @param [String] validate_status The validation status of the plugin, indicating whether it has been validated
41
43
  # @param [String] flex_metadata The Flex-Metadata HTTP request header
42
44
  # @return [PluginVersionsInstance] Created PluginVersionsInstance
43
45
  def create(
@@ -45,6 +47,8 @@ module Twilio
45
47
  plugin_url: nil,
46
48
  changelog: :unset,
47
49
  private: :unset,
50
+ cli_version: :unset,
51
+ validate_status: :unset,
48
52
  flex_metadata: :unset
49
53
  )
50
54
 
@@ -53,6 +57,8 @@ module Twilio
53
57
  'PluginUrl' => plugin_url,
54
58
  'Changelog' => changelog,
55
59
  'Private' => private,
60
+ 'CliVersion' => cli_version,
61
+ 'ValidateStatus' => validate_status,
56
62
  })
57
63
 
58
64
 
@@ -40,8 +40,6 @@ module Twilio
40
40
  end
41
41
 
42
42
 
43
- ##
44
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
45
43
  class ProvisioningStatusContext < InstanceContext
46
44
  ##
47
45
  # Initialize the ProvisioningStatusContext
@@ -40,8 +40,6 @@ module Twilio
40
40
  end
41
41
 
42
42
 
43
- ##
44
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
45
43
  class UserContext < InstanceContext
46
44
  ##
47
45
  # Initialize the UserContext
@@ -42,8 +42,6 @@ module Twilio
42
42
  end
43
43
 
44
44
 
45
- ##
46
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
47
45
  class AnnotationContext < InstanceContext
48
46
  ##
49
47
  # Initialize the AnnotationContext
@@ -126,8 +126,6 @@ module Twilio
126
126
  end
127
127
 
128
128
 
129
- ##
130
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
131
129
  class ParticipantContext < InstanceContext
132
130
  ##
133
131
  # Initialize the ParticipantContext
@@ -156,8 +156,6 @@ module Twilio
156
156
  end
157
157
 
158
158
 
159
- ##
160
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
161
159
  class RoomContext < InstanceContext
162
160
  ##
163
161
  # Initialize the RoomContext
@@ -168,8 +168,6 @@ module Twilio
168
168
  end
169
169
 
170
170
 
171
- ##
172
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
173
171
  class ServiceContext < InstanceContext
174
172
  ##
175
173
  # Initialize the ServiceContext
@@ -42,8 +42,6 @@ module Twilio
42
42
  end
43
43
 
44
44
 
45
- ##
46
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
47
45
  class MediaContext < InstanceContext
48
46
  ##
49
47
  # Initialize the MediaContext
@@ -132,8 +132,6 @@ module Twilio
132
132
  end
133
133
 
134
134
 
135
- ##
136
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
137
135
  class OperatorResultContext < InstanceContext
138
136
  ##
139
137
  # Initialize the OperatorResultContext
@@ -201,8 +201,6 @@ module Twilio
201
201
  end
202
202
 
203
203
 
204
- ##
205
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
206
204
  class TranscriptContext < InstanceContext
207
205
  ##
208
206
  # Initialize the TranscriptContext
@@ -40,8 +40,6 @@ module Twilio
40
40
  end
41
41
 
42
42
 
43
- ##
44
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
45
43
  class PhoneNumberContext < InstanceContext
46
44
  ##
47
45
  # Initialize the PhoneNumberContext
@@ -59,7 +57,7 @@ module Twilio
59
57
  end
60
58
  ##
61
59
  # Fetch the PhoneNumberInstance
62
- # @param [String] fields A comma-separated list of fields to return. Possible values are validation, caller_name, sim_swap, call_forwarding, line_status, line_type_intelligence, identity_match, reassigned_number, sms_pumping_risk, phone_number_quality_score.
60
+ # @param [String] fields A comma-separated list of fields to return. Possible values are validation, caller_name, sim_swap, call_forwarding, line_status, line_type_intelligence, identity_match, reassigned_number, sms_pumping_risk, phone_number_quality_score, pre_fill.
63
61
  # @param [String] country_code The [country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) used if the phone number provided is in national format.
64
62
  # @param [String] first_name User’s first name. This query parameter is only used (optionally) for identity_match package requests.
65
63
  # @param [String] last_name User’s last name. This query parameter is only used (optionally) for identity_match package requests.
@@ -72,6 +70,7 @@ module Twilio
72
70
  # @param [String] national_id User’s national ID, such as SSN or Passport ID. This query parameter is only used (optionally) for identity_match package requests.
73
71
  # @param [String] date_of_birth User’s date of birth, in YYYYMMDD format. This query parameter is only used (optionally) for identity_match package requests.
74
72
  # @param [String] last_verified_date The date you obtained consent to call or text the end-user of the phone number or a date on which you are reasonably certain that the end-user could still be reached at that number. This query parameter is only used (optionally) for reassigned_number package requests.
73
+ # @param [String] verification_sid The unique identifier associated with a verification process through verify API. This query parameter is only used (optionally) for pre_fill package requests.
75
74
  # @return [PhoneNumberInstance] Fetched PhoneNumberInstance
76
75
  def fetch(
77
76
  fields: :unset,
@@ -86,7 +85,8 @@ module Twilio
86
85
  address_country_code: :unset,
87
86
  national_id: :unset,
88
87
  date_of_birth: :unset,
89
- last_verified_date: :unset
88
+ last_verified_date: :unset,
89
+ verification_sid: :unset
90
90
  )
91
91
 
92
92
  params = Twilio::Values.of({
@@ -103,6 +103,7 @@ module Twilio
103
103
  'NationalId' => national_id,
104
104
  'DateOfBirth' => date_of_birth,
105
105
  'LastVerifiedDate' => last_verified_date,
106
+ 'VerificationSid' => verification_sid,
106
107
  })
107
108
 
108
109
  payload = @version.fetch('GET', @uri, params: params)
@@ -187,6 +188,7 @@ module Twilio
187
188
  'reassigned_number' => payload['reassigned_number'],
188
189
  'sms_pumping_risk' => payload['sms_pumping_risk'],
189
190
  'phone_number_quality_score' => payload['phone_number_quality_score'],
191
+ 'pre_fill' => payload['pre_fill'],
190
192
  'url' => payload['url'],
191
193
  }
192
194
 
@@ -296,6 +298,12 @@ module Twilio
296
298
  @properties['phone_number_quality_score']
297
299
  end
298
300
 
301
+ ##
302
+ # @return [Hash] An object that contains pre fill information. pre_fill will return PII information associated with the phone number like first name, last name, address line, country code, state and postal code.
303
+ def pre_fill
304
+ @properties['pre_fill']
305
+ end
306
+
299
307
  ##
300
308
  # @return [String] The absolute URL of the resource.
301
309
  def url
@@ -304,7 +312,7 @@ module Twilio
304
312
 
305
313
  ##
306
314
  # Fetch the PhoneNumberInstance
307
- # @param [String] fields A comma-separated list of fields to return. Possible values are validation, caller_name, sim_swap, call_forwarding, line_status, line_type_intelligence, identity_match, reassigned_number, sms_pumping_risk, phone_number_quality_score.
315
+ # @param [String] fields A comma-separated list of fields to return. Possible values are validation, caller_name, sim_swap, call_forwarding, line_status, line_type_intelligence, identity_match, reassigned_number, sms_pumping_risk, phone_number_quality_score, pre_fill.
308
316
  # @param [String] country_code The [country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) used if the phone number provided is in national format.
309
317
  # @param [String] first_name User’s first name. This query parameter is only used (optionally) for identity_match package requests.
310
318
  # @param [String] last_name User’s last name. This query parameter is only used (optionally) for identity_match package requests.
@@ -317,6 +325,7 @@ module Twilio
317
325
  # @param [String] national_id User’s national ID, such as SSN or Passport ID. This query parameter is only used (optionally) for identity_match package requests.
318
326
  # @param [String] date_of_birth User’s date of birth, in YYYYMMDD format. This query parameter is only used (optionally) for identity_match package requests.
319
327
  # @param [String] last_verified_date The date you obtained consent to call or text the end-user of the phone number or a date on which you are reasonably certain that the end-user could still be reached at that number. This query parameter is only used (optionally) for reassigned_number package requests.
328
+ # @param [String] verification_sid The unique identifier associated with a verification process through verify API. This query parameter is only used (optionally) for pre_fill package requests.
320
329
  # @return [PhoneNumberInstance] Fetched PhoneNumberInstance
321
330
  def fetch(
322
331
  fields: :unset,
@@ -331,7 +340,8 @@ module Twilio
331
340
  address_country_code: :unset,
332
341
  national_id: :unset,
333
342
  date_of_birth: :unset,
334
- last_verified_date: :unset
343
+ last_verified_date: :unset,
344
+ verification_sid: :unset
335
345
  )
336
346
 
337
347
  context.fetch(
@@ -348,6 +358,7 @@ module Twilio
348
358
  national_id: national_id,
349
359
  date_of_birth: date_of_birth,
350
360
  last_verified_date: last_verified_date,
361
+ verification_sid: verification_sid,
351
362
  )
352
363
  end
353
364
 
@@ -156,8 +156,6 @@ module Twilio
156
156
  end
157
157
 
158
158
 
159
- ##
160
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
161
159
  class BrandVettingContext < InstanceContext
162
160
  ##
163
161
  # Initialize the BrandVettingContext
@@ -156,8 +156,6 @@ module Twilio
156
156
  end
157
157
 
158
158
 
159
- ##
160
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
161
159
  class BrandRegistrationContext < InstanceContext
162
160
  ##
163
161
  # Initialize the BrandRegistrationContext
@@ -40,8 +40,6 @@ module Twilio
40
40
  end
41
41
 
42
42
 
43
- ##
44
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
45
43
  class DomainCertsContext < InstanceContext
46
44
  ##
47
45
  # Initialize the DomainCertsContext
@@ -40,8 +40,6 @@ module Twilio
40
40
  end
41
41
 
42
42
 
43
- ##
44
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
45
43
  class DomainConfigContext < InstanceContext
46
44
  ##
47
45
  # Initialize the DomainConfigContext
@@ -40,8 +40,6 @@ module Twilio
40
40
  end
41
41
 
42
42
 
43
- ##
44
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
45
43
  class DomainConfigMessagingServiceContext < InstanceContext
46
44
  ##
47
45
  # Initialize the DomainConfigMessagingServiceContext
@@ -40,8 +40,6 @@ module Twilio
40
40
  end
41
41
 
42
42
 
43
- ##
44
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
45
43
  class LinkshorteningMessagingServiceContext < InstanceContext
46
44
  ##
47
45
  # Initialize the LinkshorteningMessagingServiceContext
@@ -40,8 +40,6 @@ module Twilio
40
40
  end
41
41
 
42
42
 
43
- ##
44
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
45
43
  class LinkshorteningMessagingServiceDomainAssociationContext < InstanceContext
46
44
  ##
47
45
  # Initialize the LinkshorteningMessagingServiceDomainAssociationContext
@@ -147,8 +147,6 @@ module Twilio
147
147
  end
148
148
 
149
149
 
150
- ##
151
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
152
150
  class AlphaSenderContext < InstanceContext
153
151
  ##
154
152
  # Initialize the AlphaSenderContext
@@ -126,8 +126,6 @@ module Twilio
126
126
  end
127
127
 
128
128
 
129
- ##
130
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
131
129
  class ChannelSenderContext < InstanceContext
132
130
  ##
133
131
  # Initialize the ChannelSenderContext
@@ -147,8 +147,6 @@ module Twilio
147
147
  end
148
148
 
149
149
 
150
- ##
151
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
152
150
  class PhoneNumberContext < InstanceContext
153
151
  ##
154
152
  # Initialize the PhoneNumberContext
@@ -147,8 +147,6 @@ module Twilio
147
147
  end
148
148
 
149
149
 
150
- ##
151
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
152
150
  class ShortCodeContext < InstanceContext
153
151
  ##
154
152
  # Initialize the ShortCodeContext
@@ -192,8 +192,6 @@ module Twilio
192
192
  end
193
193
 
194
194
 
195
- ##
196
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
197
195
  class UsAppToPersonContext < InstanceContext
198
196
  ##
199
197
  # Initialize the UsAppToPersonContext
@@ -189,8 +189,6 @@ module Twilio
189
189
  end
190
190
 
191
191
 
192
- ##
193
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
194
192
  class ServiceContext < InstanceContext
195
193
  ##
196
194
  # Initialize the ServiceContext
@@ -489,6 +487,7 @@ module Twilio
489
487
  'usecase' => payload['usecase'],
490
488
  'us_app_to_person_registered' => payload['us_app_to_person_registered'],
491
489
  'use_inbound_webhook_on_number' => payload['use_inbound_webhook_on_number'],
490
+ 'sending_windows' => payload['sending_windows'],
492
491
  }
493
492
 
494
493
  # Context
@@ -645,6 +644,12 @@ module Twilio
645
644
  @properties['use_inbound_webhook_on_number']
646
645
  end
647
646
 
647
+ ##
648
+ # @return [Hash] A list of Sending Windows, which indicate defined time ranges in which a message can be sent, in the UTC time zone. Each window is defined by two strings, labeled \"start_time\" and \"end_time\".
649
+ def sending_windows
650
+ @properties['sending_windows']
651
+ end
652
+
648
653
  ##
649
654
  # Delete the ServiceInstance
650
655
  # @return [Boolean] True if delete succeeds, false otherwise
@@ -222,8 +222,6 @@ module Twilio
222
222
  end
223
223
 
224
224
 
225
- ##
226
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
227
225
  class TollfreeVerificationContext < InstanceContext
228
226
  ##
229
227
  # Initialize the TollfreeVerificationContext
@@ -147,8 +147,6 @@ module Twilio
147
147
  end
148
148
 
149
149
 
150
- ##
151
- #PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
152
150
  class AccountConfigContext < InstanceContext
153
151
  ##
154
152
  # Initialize the AccountConfigContext
@@ -147,8 +147,6 @@ module Twilio
147
147
  end
148
148
 
149
149
 
150
- ##
151
- #PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
152
150
  class AccountSecretContext < InstanceContext
153
151
  ##
154
152
  # Initialize the AccountSecretContext
@@ -42,8 +42,6 @@ module Twilio
42
42
  end
43
43
 
44
44
 
45
- ##
46
- #PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
47
45
  class AppManifestContext < InstanceContext
48
46
  ##
49
47
  # Initialize the AppManifestContext
@@ -124,8 +124,6 @@ module Twilio
124
124
  end
125
125
 
126
126
 
127
- ##
128
- #PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
129
127
  class AppContext < InstanceContext
130
128
  ##
131
129
  # Initialize the AppContext
@@ -150,8 +150,6 @@ module Twilio
150
150
  end
151
151
 
152
152
 
153
- ##
154
- #PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
155
153
  class DeviceConfigContext < InstanceContext
156
154
  ##
157
155
  # Initialize the DeviceConfigContext
@@ -150,8 +150,6 @@ module Twilio
150
150
  end
151
151
 
152
152
 
153
- ##
154
- #PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
155
153
  class DeviceSecretContext < InstanceContext
156
154
  ##
157
155
  # Initialize the DeviceSecretContext
@@ -124,8 +124,6 @@ module Twilio
124
124
  end
125
125
 
126
126
 
127
- ##
128
- #PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
129
127
  class DeviceContext < InstanceContext
130
128
  ##
131
129
  # Initialize the DeviceContext
@@ -162,8 +162,6 @@ module Twilio
162
162
  end
163
163
 
164
164
 
165
- ##
166
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
167
165
  class CredentialContext < InstanceContext
168
166
  ##
169
167
  # Initialize the CredentialContext
@@ -191,8 +191,6 @@ module Twilio
191
191
  end
192
192
 
193
193
 
194
- ##
195
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
196
194
  class BindingContext < InstanceContext
197
195
  ##
198
196
  # Initialize the BindingContext
@@ -189,8 +189,6 @@ module Twilio
189
189
  end
190
190
 
191
191
 
192
- ##
193
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
194
192
  class ServiceContext < InstanceContext
195
193
  ##
196
194
  # Initialize the ServiceContext
@@ -27,9 +27,24 @@ module Twilio
27
27
  super(version)
28
28
  # Path Solution
29
29
  @solution = { }
30
-
30
+ @uri = "/HostedNumber/Eligibility/Bulk"
31
31
 
32
32
  end
33
+ ##
34
+ # Create the BulkEligibilityInstance
35
+ # @param [Object] body
36
+ # @return [BulkEligibilityInstance] Created BulkEligibilityInstance
37
+ def create(body: :unset
38
+ )
39
+
40
+ headers = Twilio::Values.of({"Content-Type"=> "application/json"})
41
+ payload = @version.create('POST', @uri, data: body.to_json, headers: headers)
42
+ BulkEligibilityInstance.new(
43
+ @version,
44
+ payload,
45
+ )
46
+ end
47
+
33
48
 
34
49
 
35
50
 
@@ -40,8 +55,6 @@ module Twilio
40
55
  end
41
56
 
42
57
 
43
- ##
44
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
45
58
  class BulkEligibilityContext < InstanceContext
46
59
  ##
47
60
  # Initialize the BulkEligibilityContext