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.
- checksums.yaml +4 -4
- data/.github/workflows/test-and-deploy.yml +5 -5
- data/CHANGES.md +72 -1
- data/README.md +2 -2
- data/UPGRADE.md +11 -0
- data/lib/twilio-ruby/framework/request.rb +8 -1
- data/lib/twilio-ruby/http/http_client.rb +10 -3
- data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +0 -2
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +22 -22
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +22 -22
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +0 -2
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +0 -2
- data/lib/twilio-ruby/rest/client.rb +8 -3
- data/lib/twilio-ruby/rest/content/v1/content/approval_create.rb +184 -0
- data/lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb +11 -13
- data/lib/twilio-ruby/rest/content/v1/content.rb +422 -3
- data/lib/twilio-ruby/rest/content/v1/content_and_approvals.rb +1 -1
- data/lib/twilio-ruby/rest/content/v1/legacy_content.rb +1 -1
- data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +6 -6
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb +6 -6
- data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +0 -2
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +26 -0
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb +0 -2
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb +0 -2
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb +0 -2
- data/lib/twilio-ruby/rest/flex_api/v1/insights_session.rb +0 -2
- data/lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.rb +0 -2
- data/lib/twilio-ruby/rest/flex_api/v1/plugin/plugin_versions.rb +6 -0
- data/lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb +0 -2
- data/lib/twilio-ruby/rest/frontline_api/v1/user.rb +0 -2
- data/lib/twilio-ruby/rest/insights/v1/call/annotation.rb +0 -2
- data/lib/twilio-ruby/rest/insights/v1/room/participant.rb +0 -2
- data/lib/twilio-ruby/rest/insights/v1/room.rb +0 -2
- data/lib/twilio-ruby/rest/intelligence/v2/service.rb +0 -2
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/media.rb +0 -2
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/operator_result.rb +0 -2
- data/lib/twilio-ruby/rest/intelligence/v2/transcript.rb +0 -2
- data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +17 -6
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_vetting.rb +0 -2
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +0 -2
- data/lib/twilio-ruby/rest/messaging/v1/domain_certs.rb +0 -2
- data/lib/twilio-ruby/rest/messaging/v1/domain_config.rb +0 -2
- data/lib/twilio-ruby/rest/messaging/v1/domain_config_messaging_service.rb +0 -2
- data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service.rb +0 -2
- data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service_domain_association.rb +0 -2
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +0 -2
- data/lib/twilio-ruby/rest/messaging/v1/service/channel_sender.rb +0 -2
- data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +0 -2
- data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +0 -2
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +0 -2
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +7 -2
- data/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb +0 -2
- data/lib/twilio-ruby/rest/microvisor/v1/account_config.rb +0 -2
- data/lib/twilio-ruby/rest/microvisor/v1/account_secret.rb +0 -2
- data/lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb +0 -2
- data/lib/twilio-ruby/rest/microvisor/v1/app.rb +0 -2
- data/lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb +0 -2
- data/lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb +0 -2
- data/lib/twilio-ruby/rest/microvisor/v1/device.rb +0 -2
- data/lib/twilio-ruby/rest/notify/v1/credential.rb +0 -2
- data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +0 -2
- data/lib/twilio-ruby/rest/notify/v1/service.rb +0 -2
- data/lib/twilio-ruby/rest/numbers/v1/bulk_eligibility.rb +16 -3
- data/lib/twilio-ruby/rest/numbers/v1/eligibility.rb +127 -0
- data/lib/twilio-ruby/rest/numbers/v1/porting_bulk_portability.rb +0 -2
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb +134 -0
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in_fetch.rb +7 -2
- data/lib/twilio-ruby/rest/numbers/v1/porting_portability.rb +0 -2
- data/lib/twilio-ruby/rest/numbers/v1.rb +12 -0
- data/lib/twilio-ruby/rest/numbers/v2/authorization_document.rb +0 -2
- data/lib/twilio-ruby/rest/numbers/v2/bulk_hosted_number_order.rb +16 -3
- data/lib/twilio-ruby/rest/numbers/v2/hosted_number_order.rb +0 -2
- data/lib/twilio-ruby/rest/oauth/v1/authorize.rb +143 -0
- data/lib/twilio-ruby/rest/oauth/v1/token.rb +181 -0
- data/lib/twilio-ruby/rest/oauth/v1.rb +46 -0
- data/lib/twilio-ruby/rest/{media.rb → oauth.rb} +1 -1
- data/lib/twilio-ruby/rest/{media_base.rb → oauth_base.rb} +6 -6
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/certificate.rb +0 -2
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/deployment.rb +0 -2
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/device.rb +0 -2
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/key.rb +0 -2
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +0 -2
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +0 -2
- data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +0 -2
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb +0 -2
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +0 -2
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb +0 -2
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +0 -2
- data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +0 -2
- data/lib/twilio-ruby/rest/preview/sync/service/document.rb +0 -2
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +0 -2
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +0 -2
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +0 -2
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +0 -2
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +0 -2
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +0 -2
- data/lib/twilio-ruby/rest/preview/sync/service.rb +0 -2
- data/lib/twilio-ruby/rest/preview/wireless/command.rb +0 -2
- data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +0 -2
- data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +0 -2
- data/lib/twilio-ruby/rest/preview/wireless/sim.rb +0 -2
- data/lib/twilio-ruby/rest/preview_messaging/v1/broadcast.rb +164 -0
- data/lib/twilio-ruby/rest/preview_messaging/v1/message.rb +235 -0
- data/lib/twilio-ruby/rest/preview_messaging/v1.rb +46 -0
- data/lib/twilio-ruby/rest/preview_messaging.rb +12 -0
- data/lib/twilio-ruby/rest/preview_messaging_base.rb +38 -0
- data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +0 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +0 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +0 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +0 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +0 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb +0 -2
- data/lib/twilio-ruby/rest/proxy/v1/service.rb +0 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +0 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +0 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/build/build_status.rb +0 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +0 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +0 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +0 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +0 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +0 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb +0 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +0 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +0 -2
- data/lib/twilio-ruby/rest/serverless/v1/service.rb +0 -2
- data/lib/twilio-ruby/rest/supersim/v1/esim_profile.rb +0 -2
- data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +0 -2
- data/lib/twilio-ruby/rest/supersim/v1/ip_command.rb +0 -2
- data/lib/twilio-ruby/rest/supersim/v1/network.rb +0 -2
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +0 -2
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +0 -2
- data/lib/twilio-ruby/rest/supersim/v1/sim.rb +0 -2
- data/lib/twilio-ruby/rest/supersim/v1/sms_command.rb +0 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_bulk_real_time_statistics.rb +163 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +8 -8
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_registration_inquiries.rb +95 -4
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb +9 -3
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_entity_assignments.rb +9 -3
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products.rb +18 -18
- data/lib/twilio-ruby/rest/trusthub/v1.rb +12 -3
- data/lib/twilio-ruby/rest/verify/v2/form.rb +0 -2
- data/lib/twilio-ruby/rest/verify/v2/safelist.rb +0 -2
- data/lib/twilio-ruby/rest/verify/v2/service.rb +25 -0
- data/lib/twilio-ruby/rest/voice/v1/archived_call.rb +0 -2
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +0 -2
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/settings.rb +0 -2
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +16 -9
- data/lib/twilio-ruby/rest/media/v1/media_processor.rb +0 -424
- data/lib/twilio-ruby/rest/media/v1/media_recording.rb +0 -407
- data/lib/twilio-ruby/rest/media/v1/player_streamer/playback_grant.rb +0 -255
- data/lib/twilio-ruby/rest/media/v1/player_streamer.rb +0 -436
- 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 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
|
|
|
@@ -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
|
data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service_domain_association.rb
CHANGED
|
@@ -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
|
|
@@ -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
|
|
@@ -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
|