twilio-ruby 5.45.1 → 5.49.0
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/.travis.yml +1 -0
- data/CHANGES.md +108 -0
- data/LICENSE +1 -1
- data/README.md +16 -2
- data/lib/twilio-ruby/rest/api.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010.rb +5 -4
- data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +8 -8
- data/lib/twilio-ruby/rest/api/v2010/account/call/event.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +17 -17
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +5 -5
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +6 -3
- data/lib/twilio-ruby/rest/api/v2010/account/token.rb +1 -1
- data/lib/twilio-ruby/rest/autopilot/v1.rb +5 -4
- data/lib/twilio-ruby/rest/bulkexports.rb +4 -2
- data/lib/twilio-ruby/rest/bulkexports/v1.rb +14 -10
- data/lib/twilio-ruby/rest/bulkexports/v1/export.rb +7 -4
- data/lib/twilio-ruby/rest/bulkexports/v1/export/day.rb +7 -4
- data/lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb +5 -3
- data/lib/twilio-ruby/rest/bulkexports/v1/export/job.rb +5 -3
- data/lib/twilio-ruby/rest/bulkexports/v1/export_configuration.rb +5 -3
- data/lib/twilio-ruby/rest/chat/v1.rb +10 -8
- data/lib/twilio-ruby/rest/chat/v1/service.rb +5 -5
- data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +6 -6
- data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +3 -3
- data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +3 -3
- data/lib/twilio-ruby/rest/chat/v1/service/role.rb +9 -9
- data/lib/twilio-ruby/rest/chat/v2.rb +10 -8
- data/lib/twilio-ruby/rest/chat/v2/service.rb +5 -5
- data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +7 -7
- data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +6 -6
- data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +3 -3
- data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +3 -3
- data/lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb +27 -24
- data/lib/twilio-ruby/rest/chat/v2/service/role.rb +9 -9
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +10 -10
- data/lib/twilio-ruby/rest/client.rb +8 -1
- data/lib/twilio-ruby/rest/conversations/v1.rb +25 -20
- data/lib/twilio-ruby/rest/conversations/v1/configuration/webhook.rb +9 -9
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +1 -1
- data/lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb +9 -9
- data/lib/twilio-ruby/rest/conversations/v1/role.rb +9 -9
- data/lib/twilio-ruby/rest/conversations/v1/service/binding.rb +7 -7
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +1 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb +9 -9
- data/lib/twilio-ruby/rest/conversations/v1/service/role.rb +9 -9
- data/lib/twilio-ruby/rest/events/v1.rb +20 -16
- data/lib/twilio-ruby/rest/events/v1/event_type.rb +4 -4
- data/lib/twilio-ruby/rest/events/v1/schema.rb +4 -4
- data/lib/twilio-ruby/rest/events/v1/schema/schema_version.rb +4 -4
- data/lib/twilio-ruby/rest/events/v1/sink.rb +8 -6
- data/lib/twilio-ruby/rest/events/v1/sink/sink_test.rb +3 -3
- data/lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb +3 -3
- data/lib/twilio-ruby/rest/events/v1/subscription.rb +7 -6
- data/lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb +3 -3
- data/lib/twilio-ruby/rest/fax/v1.rb +5 -4
- data/lib/twilio-ruby/rest/flex_api/v1.rb +15 -12
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +18 -4
- data/lib/twilio-ruby/rest/insights.rb +1 -1
- data/lib/twilio-ruby/rest/insights/v1.rb +11 -9
- data/lib/twilio-ruby/rest/insights/v1/call/summary.rb +8 -9
- data/lib/twilio-ruby/rest/insights/v1/room.rb +55 -43
- data/lib/twilio-ruby/rest/insights/v1/room/participant.rb +22 -22
- data/lib/twilio-ruby/rest/ip_messaging/v1.rb +10 -8
- data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +3 -3
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +3 -3
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +3 -3
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +3 -3
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +4 -4
- data/lib/twilio-ruby/rest/ip_messaging/v2.rb +10 -8
- data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +3 -3
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +7 -7
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +3 -3
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +3 -3
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +3 -3
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb +6 -6
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +4 -4
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +4 -4
- data/lib/twilio-ruby/rest/lookups/v1.rb +5 -4
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +16 -16
- data/lib/twilio-ruby/rest/messaging.rb +8 -0
- data/lib/twilio-ruby/rest/messaging/v1.rb +21 -4
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +328 -0
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +1 -1
- data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +1 -1
- data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +1 -1
- data/lib/twilio-ruby/rest/monitor/v1.rb +10 -8
- data/lib/twilio-ruby/rest/notify/v1.rb +10 -8
- data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +16 -15
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +18 -18
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/evaluation.rb +1 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user_type.rb +1 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document_type.rb +1 -1
- data/lib/twilio-ruby/rest/preview.rb +4 -2
- data/lib/twilio-ruby/rest/preview/bulk_exports.rb +14 -10
- data/lib/twilio-ruby/rest/preview/bulk_exports/export.rb +7 -4
- data/lib/twilio-ruby/rest/preview/bulk_exports/export/day.rb +7 -4
- data/lib/twilio-ruby/rest/preview/bulk_exports/export/export_custom_job.rb +5 -3
- data/lib/twilio-ruby/rest/preview/bulk_exports/export/job.rb +5 -3
- data/lib/twilio-ruby/rest/preview/bulk_exports/export_configuration.rb +5 -3
- data/lib/twilio-ruby/rest/preview/deployed_devices.rb +5 -4
- data/lib/twilio-ruby/rest/preview/hosted_numbers.rb +10 -8
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +13 -13
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb +2 -2
- data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +8 -8
- data/lib/twilio-ruby/rest/preview/marketplace.rb +10 -8
- data/lib/twilio-ruby/rest/preview/sync.rb +5 -4
- data/lib/twilio-ruby/rest/preview/sync/service/document.rb +4 -8
- data/lib/twilio-ruby/rest/preview/trusted_comms.rb +5 -4
- data/lib/twilio-ruby/rest/preview/understand.rb +5 -4
- data/lib/twilio-ruby/rest/preview/wireless.rb +15 -12
- data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +2 -2
- data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +2 -2
- data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +1 -1
- data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +2 -2
- data/lib/twilio-ruby/rest/pricing/v2/voice/country.rb +2 -2
- data/lib/twilio-ruby/rest/pricing/v2/voice/number.rb +1 -1
- data/lib/twilio-ruby/rest/proxy/v1.rb +5 -4
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +1 -1
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +1 -1
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +1 -1
- data/lib/twilio-ruby/rest/serverless/v1.rb +5 -4
- data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +17 -7
- data/lib/twilio-ruby/rest/studio/v1.rb +5 -4
- data/lib/twilio-ruby/rest/studio/v2.rb +5 -4
- data/lib/twilio-ruby/rest/studio/v2/flow.rb +6 -14
- data/lib/twilio-ruby/rest/studio/v2/flow/execution.rb +0 -8
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_context.rb +0 -8
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb +0 -8
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step/execution_step_context.rb +0 -8
- data/lib/twilio-ruby/rest/studio/v2/flow/flow_revision.rb +2 -10
- data/lib/twilio-ruby/rest/studio/v2/flow/test_user.rb +10 -16
- data/lib/twilio-ruby/rest/studio/v2/flow_validate.rb +6 -11
- data/lib/twilio-ruby/rest/supersim/v1.rb +25 -20
- data/lib/twilio-ruby/rest/supersim/v1/command.rb +4 -4
- data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +33 -12
- data/lib/twilio-ruby/rest/supersim/v1/network.rb +5 -5
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +6 -6
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +5 -5
- data/lib/twilio-ruby/rest/supersim/v1/sim.rb +4 -4
- data/lib/twilio-ruby/rest/supersim/v1/usage_record.rb +3 -3
- data/lib/twilio-ruby/rest/sync/v1.rb +5 -4
- data/lib/twilio-ruby/rest/sync/v1/service.rb +0 -8
- data/lib/twilio-ruby/rest/sync/v1/service/document.rb +25 -52
- data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +0 -8
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +18 -40
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +46 -76
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +0 -8
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +18 -40
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +47 -79
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +1 -9
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +14 -38
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +1 -7
- data/lib/twilio-ruby/rest/taskrouter/v1.rb +5 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +17 -17
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +10 -10
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +10 -10
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +1 -1
- data/lib/twilio-ruby/rest/trunking/v1.rb +5 -4
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +1 -1
- data/lib/twilio-ruby/rest/trusthub.rb +100 -0
- data/lib/twilio-ruby/rest/trusthub/v1.rb +146 -0
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles.rb +523 -0
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.rb +359 -0
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb +330 -0
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.rb +328 -0
- data/lib/twilio-ruby/rest/trusthub/v1/end_user.rb +356 -0
- data/lib/twilio-ruby/rest/trusthub/v1/end_user_type.rb +271 -0
- data/lib/twilio-ruby/rest/trusthub/v1/policies.rb +262 -0
- data/lib/twilio-ruby/rest/trusthub/v1/supporting_document.rb +369 -0
- data/lib/twilio-ruby/rest/trusthub/v1/supporting_document_type.rb +271 -0
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products.rb +523 -0
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment.rb +359 -0
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_entity_assignments.rb +330 -0
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_evaluations.rb +328 -0
- data/lib/twilio-ruby/rest/verify.rb +9 -0
- data/lib/twilio-ruby/rest/verify/v2.rb +26 -8
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +7 -6
- data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +64 -13
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +1 -1
- data/lib/twilio-ruby/rest/verify/v2/service/webhook.rb +10 -10
- data/lib/twilio-ruby/rest/verify/v2/verification_attempt.rb +329 -0
- data/lib/twilio-ruby/rest/video/v1.rb +20 -16
- data/lib/twilio-ruby/rest/video/v1/composition.rb +16 -15
- data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +26 -26
- data/lib/twilio-ruby/rest/video/v1/recording.rb +6 -6
- data/lib/twilio-ruby/rest/video/v1/room.rb +10 -3
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribe_rule.rb +1 -1
- data/lib/twilio-ruby/rest/video/v1/room/room_recording_rule.rb +1 -1
- data/lib/twilio-ruby/rest/voice/v1.rb +20 -16
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +1 -1
- data/lib/twilio-ruby/rest/wireless/v1.rb +15 -12
- data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +4 -4
- data/lib/twilio-ruby/twiml/voice_response.rb +38 -8
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/integration/api/v2010/account/conference_spec.rb +302 -44
- data/spec/integration/api/v2010/account/incoming_phone_number_spec.rb +4 -16
- data/spec/integration/api/v2010/account/message_spec.rb +37 -0
- data/spec/integration/events/v1/sink_spec.rb +14 -0
- data/spec/integration/flex_api/v1/configuration_spec.rb +24 -0
- data/spec/integration/insights/v1/call/summary_spec.rb +1 -0
- data/spec/integration/messaging/v1/brand_registration_spec.rb +143 -0
- data/spec/integration/preview/sync/service/document_spec.rb +1 -3
- data/spec/integration/serverless/v1/service/build_spec.rb +12 -2
- data/spec/integration/supersim/v1/fleet_spec.rb +8 -0
- data/spec/integration/sync/v1/service/document_spec.rb +1 -3
- data/spec/integration/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment_spec.rb +192 -0
- data/spec/integration/trusthub/v1/customer_profiles/customer_profiles_entity_assignments_spec.rb +186 -0
- data/spec/integration/trusthub/v1/customer_profiles/customer_profiles_evaluations_spec.rb +615 -0
- data/spec/integration/trusthub/v1/customer_profiles_spec.rb +255 -0
- data/spec/integration/trusthub/v1/end_user_spec.rb +247 -0
- data/spec/integration/trusthub/v1/end_user_type_spec.rb +176 -0
- data/spec/integration/trusthub/v1/policies_spec.rb +252 -0
- data/spec/integration/trusthub/v1/supporting_document_spec.rb +235 -0
- data/spec/integration/trusthub/v1/supporting_document_type_spec.rb +159 -0
- data/spec/integration/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment_spec.rb +192 -0
- data/spec/integration/trusthub/v1/trust_products/trust_products_entity_assignments_spec.rb +186 -0
- data/spec/integration/trusthub/v1/trust_products/trust_products_evaluations_spec.rb +615 -0
- data/spec/integration/trusthub/v1/trust_products_spec.rb +255 -0
- data/spec/integration/verify/v2/service/entity/factor_spec.rb +3 -3
- data/spec/integration/verify/v2/verification_attempt_spec.rb +146 -0
- data/spec/integration/video/v1/room_spec.rb +5 -0
- data/spec/twiml/voice_response_spec.rb +1 -1
- metadata +49 -2
@@ -26,11 +26,12 @@ module Twilio
|
|
26
26
|
# @return [Twilio::REST::Preview::HostedNumbers::AuthorizationDocumentList]
|
27
27
|
def authorization_documents(sid=:unset)
|
28
28
|
if sid.nil?
|
29
|
-
|
30
|
-
|
31
|
-
|
29
|
+
raise ArgumentError, 'sid cannot be nil'
|
30
|
+
end
|
31
|
+
if sid == :unset
|
32
|
+
@authorization_documents ||= AuthorizationDocumentList.new self
|
32
33
|
else
|
33
|
-
|
34
|
+
AuthorizationDocumentContext.new(self, sid)
|
34
35
|
end
|
35
36
|
end
|
36
37
|
|
@@ -41,11 +42,12 @@ module Twilio
|
|
41
42
|
# @return [Twilio::REST::Preview::HostedNumbers::HostedNumberOrderList]
|
42
43
|
def hosted_number_orders(sid=:unset)
|
43
44
|
if sid.nil?
|
44
|
-
|
45
|
-
|
46
|
-
|
45
|
+
raise ArgumentError, 'sid cannot be nil'
|
46
|
+
end
|
47
|
+
if sid == :unset
|
48
|
+
@hosted_number_orders ||= HostedNumberOrderList.new self
|
47
49
|
else
|
48
|
-
|
50
|
+
HostedNumberOrderContext.new(self, sid)
|
49
51
|
end
|
50
52
|
end
|
51
53
|
|
@@ -130,9 +130,9 @@ module Twilio
|
|
130
130
|
|
131
131
|
##
|
132
132
|
# Create the AuthorizationDocumentInstance
|
133
|
-
# @param [String] hosted_number_order_sids A list of HostedNumberOrder sids
|
134
|
-
# this AuthorizationDocument will authorize for hosting phone number
|
135
|
-
# on Twilio's platform.
|
133
|
+
# @param [Array[String]] hosted_number_order_sids A list of HostedNumberOrder sids
|
134
|
+
# that this AuthorizationDocument will authorize for hosting phone number
|
135
|
+
# capabilities on Twilio's platform.
|
136
136
|
# @param [String] address_sid A 34 character string that uniquely identifies the
|
137
137
|
# Address resource that is associated with this AuthorizationDocument.
|
138
138
|
# @param [String] email Email that this AuthorizationDocument will be sent to for
|
@@ -141,7 +141,7 @@ module Twilio
|
|
141
141
|
# Authorization Document for this phone number.
|
142
142
|
# @param [String] contact_phone_number The contact phone number of the person
|
143
143
|
# authorized to sign the Authorization Document.
|
144
|
-
# @param [String] cc_emails Email recipients who will be informed when an
|
144
|
+
# @param [Array[String]] cc_emails Email recipients who will be informed when an
|
145
145
|
# Authorization Document has been sent and signed.
|
146
146
|
# @return [AuthorizationDocumentInstance] Created AuthorizationDocumentInstance
|
147
147
|
def create(hosted_number_order_sids: nil, address_sid: nil, email: nil, contact_title: nil, contact_phone_number: nil, cc_emails: :unset)
|
@@ -228,14 +228,14 @@ module Twilio
|
|
228
228
|
|
229
229
|
##
|
230
230
|
# Update the AuthorizationDocumentInstance
|
231
|
-
# @param [String] hosted_number_order_sids A list of HostedNumberOrder sids
|
232
|
-
# this AuthorizationDocument will authorize for hosting phone number
|
233
|
-
# on Twilio's platform.
|
231
|
+
# @param [Array[String]] hosted_number_order_sids A list of HostedNumberOrder sids
|
232
|
+
# that this AuthorizationDocument will authorize for hosting phone number
|
233
|
+
# capabilities on Twilio's platform.
|
234
234
|
# @param [String] address_sid A 34 character string that uniquely identifies the
|
235
235
|
# Address resource that is associated with this AuthorizationDocument.
|
236
236
|
# @param [String] email Email that this AuthorizationDocument will be sent to for
|
237
237
|
# signing.
|
238
|
-
# @param [String] cc_emails Email recipients who will be informed when an
|
238
|
+
# @param [Array[String]] cc_emails Email recipients who will be informed when an
|
239
239
|
# Authorization Document has been sent and signed
|
240
240
|
# @param [authorization_document.Status] status Status of an instance resource. It
|
241
241
|
# can hold one of the values: 1. opened 2. signing, 3. signed LOA, 4. canceled, 5.
|
@@ -360,7 +360,7 @@ module Twilio
|
|
360
360
|
end
|
361
361
|
|
362
362
|
##
|
363
|
-
# @return [String] A list of emails.
|
363
|
+
# @return [Array[String]] A list of emails.
|
364
364
|
def cc_emails
|
365
365
|
@properties['cc_emails']
|
366
366
|
end
|
@@ -398,14 +398,14 @@ module Twilio
|
|
398
398
|
|
399
399
|
##
|
400
400
|
# Update the AuthorizationDocumentInstance
|
401
|
-
# @param [String] hosted_number_order_sids A list of HostedNumberOrder sids
|
402
|
-
# this AuthorizationDocument will authorize for hosting phone number
|
403
|
-
# on Twilio's platform.
|
401
|
+
# @param [Array[String]] hosted_number_order_sids A list of HostedNumberOrder sids
|
402
|
+
# that this AuthorizationDocument will authorize for hosting phone number
|
403
|
+
# capabilities on Twilio's platform.
|
404
404
|
# @param [String] address_sid A 34 character string that uniquely identifies the
|
405
405
|
# Address resource that is associated with this AuthorizationDocument.
|
406
406
|
# @param [String] email Email that this AuthorizationDocument will be sent to for
|
407
407
|
# signing.
|
408
|
-
# @param [String] cc_emails Email recipients who will be informed when an
|
408
|
+
# @param [Array[String]] cc_emails Email recipients who will be informed when an
|
409
409
|
# Authorization Document has been sent and signed
|
410
410
|
# @param [authorization_document.Status] status Status of an instance resource. It
|
411
411
|
# can hold one of the values: 1. opened 2. signing, 3. signed LOA, 4. canceled, 5.
|
@@ -343,7 +343,7 @@ module Twilio
|
|
343
343
|
end
|
344
344
|
|
345
345
|
##
|
346
|
-
# @return [String] A list of emails.
|
346
|
+
# @return [Array[String]] A list of emails.
|
347
347
|
def cc_emails
|
348
348
|
@properties['cc_emails']
|
349
349
|
end
|
@@ -379,7 +379,7 @@ module Twilio
|
|
379
379
|
end
|
380
380
|
|
381
381
|
##
|
382
|
-
# @return [String] List of IDs for ownership verification calls.
|
382
|
+
# @return [Array[String]] List of IDs for ownership verification calls.
|
383
383
|
def verification_call_sids
|
384
384
|
@properties['verification_call_sids']
|
385
385
|
end
|
@@ -175,8 +175,8 @@ module Twilio
|
|
175
175
|
# @param [String] unique_name Optional. Provides a unique and addressable name to
|
176
176
|
# be assigned to this HostedNumberOrder, assigned by the developer, to be
|
177
177
|
# optionally used in addition to SID.
|
178
|
-
# @param [String] cc_emails Optional. A list of emails that the LOA
|
179
|
-
# this HostedNumberOrder will be carbon copied to.
|
178
|
+
# @param [Array[String]] cc_emails Optional. A list of emails that the LOA
|
179
|
+
# document for this HostedNumberOrder will be carbon copied to.
|
180
180
|
# @param [String] sms_url The URL that Twilio should request when somebody sends
|
181
181
|
# an SMS to the phone number. This will be copied onto the IncomingPhoneNumber
|
182
182
|
# resource.
|
@@ -315,8 +315,8 @@ module Twilio
|
|
315
315
|
# used in addition to SID.
|
316
316
|
# @param [String] email Email of the owner of this phone number that is being
|
317
317
|
# hosted.
|
318
|
-
# @param [String] cc_emails Optional. A list of emails that LOA document
|
319
|
-
# HostedNumberOrder will be carbon copied to.
|
318
|
+
# @param [Array[String]] cc_emails Optional. A list of emails that LOA document
|
319
|
+
# for this HostedNumberOrder will be carbon copied to.
|
320
320
|
# @param [hosted_number_order.Status] status User can only post to
|
321
321
|
# `pending-verification` status to transition the HostedNumberOrder to initiate a
|
322
322
|
# verification call or verification of ownership with a copy of a phone bill.
|
@@ -513,7 +513,7 @@ module Twilio
|
|
513
513
|
end
|
514
514
|
|
515
515
|
##
|
516
|
-
# @return [String] A list of emails.
|
516
|
+
# @return [Array[String]] A list of emails.
|
517
517
|
def cc_emails
|
518
518
|
@properties['cc_emails']
|
519
519
|
end
|
@@ -555,7 +555,7 @@ module Twilio
|
|
555
555
|
end
|
556
556
|
|
557
557
|
##
|
558
|
-
# @return [String] List of IDs for ownership verification calls.
|
558
|
+
# @return [Array[String]] List of IDs for ownership verification calls.
|
559
559
|
def verification_call_sids
|
560
560
|
@properties['verification_call_sids']
|
561
561
|
end
|
@@ -583,8 +583,8 @@ module Twilio
|
|
583
583
|
# used in addition to SID.
|
584
584
|
# @param [String] email Email of the owner of this phone number that is being
|
585
585
|
# hosted.
|
586
|
-
# @param [String] cc_emails Optional. A list of emails that LOA document
|
587
|
-
# HostedNumberOrder will be carbon copied to.
|
586
|
+
# @param [Array[String]] cc_emails Optional. A list of emails that LOA document
|
587
|
+
# for this HostedNumberOrder will be carbon copied to.
|
588
588
|
# @param [hosted_number_order.Status] status User can only post to
|
589
589
|
# `pending-verification` status to transition the HostedNumberOrder to initiate a
|
590
590
|
# verification call or verification of ownership with a copy of a phone bill.
|
@@ -25,11 +25,12 @@ module Twilio
|
|
25
25
|
# @return [Twilio::REST::Preview::Marketplace::AvailableAddOnList]
|
26
26
|
def available_add_ons(sid=:unset)
|
27
27
|
if sid.nil?
|
28
|
-
|
29
|
-
|
30
|
-
|
28
|
+
raise ArgumentError, 'sid cannot be nil'
|
29
|
+
end
|
30
|
+
if sid == :unset
|
31
|
+
@available_add_ons ||= AvailableAddOnList.new self
|
31
32
|
else
|
32
|
-
|
33
|
+
AvailableAddOnContext.new(self, sid)
|
33
34
|
end
|
34
35
|
end
|
35
36
|
|
@@ -39,11 +40,12 @@ module Twilio
|
|
39
40
|
# @return [Twilio::REST::Preview::Marketplace::InstalledAddOnList]
|
40
41
|
def installed_add_ons(sid=:unset)
|
41
42
|
if sid.nil?
|
42
|
-
|
43
|
-
|
44
|
-
|
43
|
+
raise ArgumentError, 'sid cannot be nil'
|
44
|
+
end
|
45
|
+
if sid == :unset
|
46
|
+
@installed_add_ons ||= InstalledAddOnList.new self
|
45
47
|
else
|
46
|
-
|
48
|
+
InstalledAddOnContext.new(self, sid)
|
47
49
|
end
|
48
50
|
end
|
49
51
|
|
@@ -24,11 +24,12 @@ module Twilio
|
|
24
24
|
# @return [Twilio::REST::Preview::Sync::ServiceList]
|
25
25
|
def services(sid=:unset)
|
26
26
|
if sid.nil?
|
27
|
-
|
28
|
-
|
29
|
-
|
27
|
+
raise ArgumentError, 'sid cannot be nil'
|
28
|
+
end
|
29
|
+
if sid == :unset
|
30
|
+
@services ||= ServiceList.new self
|
30
31
|
else
|
31
|
-
|
32
|
+
ServiceContext.new(self, sid)
|
32
33
|
end
|
33
34
|
end
|
34
35
|
|
@@ -189,12 +189,9 @@ module Twilio
|
|
189
189
|
|
190
190
|
##
|
191
191
|
# Delete the DocumentInstance
|
192
|
-
# @param [String] if_match The If-Match HTTP request header
|
193
192
|
# @return [Boolean] true if delete succeeds, false otherwise
|
194
|
-
def delete
|
195
|
-
|
196
|
-
|
197
|
-
@version.delete('DELETE', @uri, headers: headers)
|
193
|
+
def delete
|
194
|
+
@version.delete('DELETE', @uri)
|
198
195
|
end
|
199
196
|
|
200
197
|
##
|
@@ -367,10 +364,9 @@ module Twilio
|
|
367
364
|
|
368
365
|
##
|
369
366
|
# Delete the DocumentInstance
|
370
|
-
# @param [String] if_match The If-Match HTTP request header
|
371
367
|
# @return [Boolean] true if delete succeeds, false otherwise
|
372
|
-
def delete
|
373
|
-
context.delete
|
368
|
+
def delete
|
369
|
+
context.delete
|
374
370
|
end
|
375
371
|
|
376
372
|
##
|
@@ -27,11 +27,12 @@ module Twilio
|
|
27
27
|
# @return [Twilio::REST::Preview::TrustedComms::BrandedChannelList]
|
28
28
|
def branded_channels(sid=:unset)
|
29
29
|
if sid.nil?
|
30
|
-
|
31
|
-
|
32
|
-
|
30
|
+
raise ArgumentError, 'sid cannot be nil'
|
31
|
+
end
|
32
|
+
if sid == :unset
|
33
|
+
@branded_channels ||= BrandedChannelList.new self
|
33
34
|
else
|
34
|
-
|
35
|
+
BrandedChannelContext.new(self, sid)
|
35
36
|
end
|
36
37
|
end
|
37
38
|
|
@@ -25,11 +25,12 @@ module Twilio
|
|
25
25
|
# @return [Twilio::REST::Preview::Understand::AssistantList]
|
26
26
|
def assistants(sid=:unset)
|
27
27
|
if sid.nil?
|
28
|
-
|
29
|
-
|
30
|
-
|
28
|
+
raise ArgumentError, 'sid cannot be nil'
|
29
|
+
end
|
30
|
+
if sid == :unset
|
31
|
+
@assistants ||= AssistantList.new self
|
31
32
|
else
|
32
|
-
|
33
|
+
AssistantContext.new(self, sid)
|
33
34
|
end
|
34
35
|
end
|
35
36
|
|
@@ -26,11 +26,12 @@ module Twilio
|
|
26
26
|
# @return [Twilio::REST::Preview::Wireless::CommandList]
|
27
27
|
def commands(sid=:unset)
|
28
28
|
if sid.nil?
|
29
|
-
|
30
|
-
|
31
|
-
|
29
|
+
raise ArgumentError, 'sid cannot be nil'
|
30
|
+
end
|
31
|
+
if sid == :unset
|
32
|
+
@commands ||= CommandList.new self
|
32
33
|
else
|
33
|
-
|
34
|
+
CommandContext.new(self, sid)
|
34
35
|
end
|
35
36
|
end
|
36
37
|
|
@@ -40,11 +41,12 @@ module Twilio
|
|
40
41
|
# @return [Twilio::REST::Preview::Wireless::RatePlanList]
|
41
42
|
def rate_plans(sid=:unset)
|
42
43
|
if sid.nil?
|
43
|
-
|
44
|
-
|
45
|
-
|
44
|
+
raise ArgumentError, 'sid cannot be nil'
|
45
|
+
end
|
46
|
+
if sid == :unset
|
47
|
+
@rate_plans ||= RatePlanList.new self
|
46
48
|
else
|
47
|
-
|
49
|
+
RatePlanContext.new(self, sid)
|
48
50
|
end
|
49
51
|
end
|
50
52
|
|
@@ -54,11 +56,12 @@ module Twilio
|
|
54
56
|
# @return [Twilio::REST::Preview::Wireless::SimList]
|
55
57
|
def sims(sid=:unset)
|
56
58
|
if sid.nil?
|
57
|
-
|
58
|
-
|
59
|
-
|
59
|
+
raise ArgumentError, 'sid cannot be nil'
|
60
|
+
end
|
61
|
+
if sid == :unset
|
62
|
+
@sims ||= SimList.new self
|
60
63
|
else
|
61
|
-
|
64
|
+
SimContext.new(self, sid)
|
62
65
|
end
|
63
66
|
end
|
64
67
|
|
@@ -116,7 +116,7 @@ module Twilio
|
|
116
116
|
# @param [Boolean] voice_enabled The voice_enabled
|
117
117
|
# @param [Boolean] commands_enabled The commands_enabled
|
118
118
|
# @param [Boolean] national_roaming_enabled The national_roaming_enabled
|
119
|
-
# @param [String] international_roaming The international_roaming
|
119
|
+
# @param [Array[String]] international_roaming The international_roaming
|
120
120
|
# @return [RatePlanInstance] Created RatePlanInstance
|
121
121
|
def create(unique_name: :unset, friendly_name: :unset, data_enabled: :unset, data_limit: :unset, data_metering: :unset, messaging_enabled: :unset, voice_enabled: :unset, commands_enabled: :unset, national_roaming_enabled: :unset, international_roaming: :unset)
|
122
122
|
data = Twilio::Values.of({
|
@@ -342,7 +342,7 @@ module Twilio
|
|
342
342
|
end
|
343
343
|
|
344
344
|
##
|
345
|
-
# @return [String] The international_roaming
|
345
|
+
# @return [Array[String]] The international_roaming
|
346
346
|
def international_roaming
|
347
347
|
@properties['international_roaming']
|
348
348
|
end
|
@@ -231,13 +231,13 @@ module Twilio
|
|
231
231
|
end
|
232
232
|
|
233
233
|
##
|
234
|
-
# @return [String] The list of OutboundSMSPrice records
|
234
|
+
# @return [Array[String]] The list of OutboundSMSPrice records
|
235
235
|
def outbound_sms_prices
|
236
236
|
@properties['outbound_sms_prices']
|
237
237
|
end
|
238
238
|
|
239
239
|
##
|
240
|
-
# @return [String] The list of InboundPrice records
|
240
|
+
# @return [Array[String]] The list of InboundPrice records
|
241
241
|
def inbound_sms_prices
|
242
242
|
@properties['inbound_sms_prices']
|
243
243
|
end
|
@@ -231,13 +231,13 @@ module Twilio
|
|
231
231
|
end
|
232
232
|
|
233
233
|
##
|
234
|
-
# @return [String] The list of OutboundPrefixPrice records
|
234
|
+
# @return [Array[String]] The list of OutboundPrefixPrice records
|
235
235
|
def outbound_prefix_prices
|
236
236
|
@properties['outbound_prefix_prices']
|
237
237
|
end
|
238
238
|
|
239
239
|
##
|
240
|
-
# @return [String] The list of InboundCallPrice records
|
240
|
+
# @return [Array[String]] The list of InboundCallPrice records
|
241
241
|
def inbound_call_prices
|
242
242
|
@properties['inbound_call_prices']
|
243
243
|
end
|
@@ -231,13 +231,13 @@ module Twilio
|
|
231
231
|
end
|
232
232
|
|
233
233
|
##
|
234
|
-
# @return [String] The list of OutboundPrefixPriceWithOrigin records
|
234
|
+
# @return [Array[String]] The list of OutboundPrefixPriceWithOrigin records
|
235
235
|
def outbound_prefix_prices
|
236
236
|
@properties['outbound_prefix_prices']
|
237
237
|
end
|
238
238
|
|
239
239
|
##
|
240
|
-
# @return [String] The list of InboundCallPrice records
|
240
|
+
# @return [Array[String]] The list of InboundCallPrice records
|
241
241
|
def inbound_call_prices
|
242
242
|
@properties['inbound_call_prices']
|
243
243
|
end
|
@@ -172,7 +172,7 @@ module Twilio
|
|
172
172
|
end
|
173
173
|
|
174
174
|
##
|
175
|
-
# @return [String] The list of OutboundCallPriceWithOrigin records
|
175
|
+
# @return [Array[String]] The list of OutboundCallPriceWithOrigin records
|
176
176
|
def outbound_call_prices
|
177
177
|
@properties['outbound_call_prices']
|
178
178
|
end
|
@@ -25,11 +25,12 @@ module Twilio
|
|
25
25
|
# @return [Twilio::REST::Proxy::V1::ServiceList]
|
26
26
|
def services(sid=:unset)
|
27
27
|
if sid.nil?
|
28
|
-
|
29
|
-
|
30
|
-
|
28
|
+
raise ArgumentError, 'sid cannot be nil'
|
29
|
+
end
|
30
|
+
if sid == :unset
|
31
|
+
@services ||= ServiceList.new self
|
31
32
|
else
|
32
|
-
|
33
|
+
ServiceContext.new(self, sid)
|
33
34
|
end
|
34
35
|
end
|
35
36
|
|