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
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
##
|
|
2
|
+
# This code was generated by
|
|
3
|
+
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
|
4
|
+
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
|
5
|
+
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
6
|
+
#
|
|
7
|
+
# Twilio - Numbers
|
|
8
|
+
# This is the public Twilio REST API.
|
|
9
|
+
#
|
|
10
|
+
# NOTE: This class is auto generated by OpenAPI Generator.
|
|
11
|
+
# https://openapi-generator.tech
|
|
12
|
+
# Do not edit the class manually.
|
|
13
|
+
#
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
module Twilio
|
|
17
|
+
module REST
|
|
18
|
+
class Numbers < NumbersBase
|
|
19
|
+
class V1 < Version
|
|
20
|
+
class EligibilityList < ListResource
|
|
21
|
+
|
|
22
|
+
##
|
|
23
|
+
# Initialize the EligibilityList
|
|
24
|
+
# @param [Version] version Version that contains the resource
|
|
25
|
+
# @return [EligibilityList] EligibilityList
|
|
26
|
+
def initialize(version)
|
|
27
|
+
super(version)
|
|
28
|
+
# Path Solution
|
|
29
|
+
@solution = { }
|
|
30
|
+
@uri = "/HostedNumber/Eligibility"
|
|
31
|
+
|
|
32
|
+
end
|
|
33
|
+
##
|
|
34
|
+
# Create the EligibilityInstance
|
|
35
|
+
# @param [Object] body
|
|
36
|
+
# @return [EligibilityInstance] Created EligibilityInstance
|
|
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
|
+
EligibilityInstance.new(
|
|
43
|
+
@version,
|
|
44
|
+
payload,
|
|
45
|
+
)
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
# Provide a user friendly representation
|
|
52
|
+
def to_s
|
|
53
|
+
'#<Twilio.Numbers.V1.EligibilityList>'
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
class EligibilityPage < Page
|
|
58
|
+
##
|
|
59
|
+
# Initialize the EligibilityPage
|
|
60
|
+
# @param [Version] version Version that contains the resource
|
|
61
|
+
# @param [Response] response Response from the API
|
|
62
|
+
# @param [Hash] solution Path solution for the resource
|
|
63
|
+
# @return [EligibilityPage] EligibilityPage
|
|
64
|
+
def initialize(version, response, solution)
|
|
65
|
+
super(version, response)
|
|
66
|
+
|
|
67
|
+
# Path Solution
|
|
68
|
+
@solution = solution
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
##
|
|
72
|
+
# Build an instance of EligibilityInstance
|
|
73
|
+
# @param [Hash] payload Payload response from the API
|
|
74
|
+
# @return [EligibilityInstance] EligibilityInstance
|
|
75
|
+
def get_instance(payload)
|
|
76
|
+
EligibilityInstance.new(@version, payload)
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
##
|
|
80
|
+
# Provide a user friendly representation
|
|
81
|
+
def to_s
|
|
82
|
+
'<Twilio.Numbers.V1.EligibilityPage>'
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
class EligibilityInstance < InstanceResource
|
|
86
|
+
##
|
|
87
|
+
# Initialize the EligibilityInstance
|
|
88
|
+
# @param [Version] version Version that contains the resource
|
|
89
|
+
# @param [Hash] payload payload that contains response from Twilio
|
|
90
|
+
# @param [String] account_sid The SID of the
|
|
91
|
+
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this Eligibility
|
|
92
|
+
# resource.
|
|
93
|
+
# @param [String] sid The SID of the Call resource to fetch.
|
|
94
|
+
# @return [EligibilityInstance] EligibilityInstance
|
|
95
|
+
def initialize(version, payload )
|
|
96
|
+
super(version)
|
|
97
|
+
|
|
98
|
+
# Marshaled Properties
|
|
99
|
+
@properties = {
|
|
100
|
+
'results' => payload['results'],
|
|
101
|
+
}
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
##
|
|
106
|
+
# @return [Array<Hash>] The result set that contains the eligibility check response for the requested number, each result has at least the following attributes: phone_number: The requested phone number ,hosting_account_sid: The account sid where the phone number will be hosted, date_last_checked: Datetime (ISO 8601) when the PN was last checked for eligibility, country: Phone number’s country, eligibility_status: Indicates the eligibility status of the PN (Eligible/Ineligible), eligibility_sub_status: Indicates the sub status of the eligibility , ineligibility_reason: Reason for number's ineligibility (if applicable), next_step: Suggested next step in the hosting process based on the eligibility status.
|
|
107
|
+
def results
|
|
108
|
+
@properties['results']
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
##
|
|
112
|
+
# Provide a user friendly representation
|
|
113
|
+
def to_s
|
|
114
|
+
"<Twilio.Numbers.V1.EligibilityInstance>"
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
##
|
|
118
|
+
# Provide a detailed, user friendly representation
|
|
119
|
+
def inspect
|
|
120
|
+
"<Twilio.Numbers.V1.EligibilityInstance>"
|
|
121
|
+
end
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
end
|
|
125
|
+
end
|
|
126
|
+
end
|
|
127
|
+
end
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
##
|
|
2
|
+
# This code was generated by
|
|
3
|
+
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
|
4
|
+
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
|
5
|
+
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
6
|
+
#
|
|
7
|
+
# Twilio - Numbers
|
|
8
|
+
# This is the public Twilio REST API.
|
|
9
|
+
#
|
|
10
|
+
# NOTE: This class is auto generated by OpenAPI Generator.
|
|
11
|
+
# https://openapi-generator.tech
|
|
12
|
+
# Do not edit the class manually.
|
|
13
|
+
#
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
module Twilio
|
|
17
|
+
module REST
|
|
18
|
+
class Numbers < NumbersBase
|
|
19
|
+
class V1 < Version
|
|
20
|
+
class PortingPortInList < ListResource
|
|
21
|
+
|
|
22
|
+
##
|
|
23
|
+
# Initialize the PortingPortInList
|
|
24
|
+
# @param [Version] version Version that contains the resource
|
|
25
|
+
# @return [PortingPortInList] PortingPortInList
|
|
26
|
+
def initialize(version)
|
|
27
|
+
super(version)
|
|
28
|
+
# Path Solution
|
|
29
|
+
@solution = { }
|
|
30
|
+
@uri = "/Porting/PortIn"
|
|
31
|
+
|
|
32
|
+
end
|
|
33
|
+
##
|
|
34
|
+
# Create the PortingPortInInstance
|
|
35
|
+
# @param [Object] body
|
|
36
|
+
# @return [PortingPortInInstance] Created PortingPortInInstance
|
|
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
|
+
PortingPortInInstance.new(
|
|
43
|
+
@version,
|
|
44
|
+
payload,
|
|
45
|
+
)
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
# Provide a user friendly representation
|
|
52
|
+
def to_s
|
|
53
|
+
'#<Twilio.Numbers.V1.PortingPortInList>'
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
class PortingPortInPage < Page
|
|
58
|
+
##
|
|
59
|
+
# Initialize the PortingPortInPage
|
|
60
|
+
# @param [Version] version Version that contains the resource
|
|
61
|
+
# @param [Response] response Response from the API
|
|
62
|
+
# @param [Hash] solution Path solution for the resource
|
|
63
|
+
# @return [PortingPortInPage] PortingPortInPage
|
|
64
|
+
def initialize(version, response, solution)
|
|
65
|
+
super(version, response)
|
|
66
|
+
|
|
67
|
+
# Path Solution
|
|
68
|
+
@solution = solution
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
##
|
|
72
|
+
# Build an instance of PortingPortInInstance
|
|
73
|
+
# @param [Hash] payload Payload response from the API
|
|
74
|
+
# @return [PortingPortInInstance] PortingPortInInstance
|
|
75
|
+
def get_instance(payload)
|
|
76
|
+
PortingPortInInstance.new(@version, payload)
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
##
|
|
80
|
+
# Provide a user friendly representation
|
|
81
|
+
def to_s
|
|
82
|
+
'<Twilio.Numbers.V1.PortingPortInPage>'
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
class PortingPortInInstance < InstanceResource
|
|
86
|
+
##
|
|
87
|
+
# Initialize the PortingPortInInstance
|
|
88
|
+
# @param [Version] version Version that contains the resource
|
|
89
|
+
# @param [Hash] payload payload that contains response from Twilio
|
|
90
|
+
# @param [String] account_sid The SID of the
|
|
91
|
+
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this PortingPortIn
|
|
92
|
+
# resource.
|
|
93
|
+
# @param [String] sid The SID of the Call resource to fetch.
|
|
94
|
+
# @return [PortingPortInInstance] PortingPortInInstance
|
|
95
|
+
def initialize(version, payload )
|
|
96
|
+
super(version)
|
|
97
|
+
|
|
98
|
+
# Marshaled Properties
|
|
99
|
+
@properties = {
|
|
100
|
+
'port_in_request_sid' => payload['port_in_request_sid'],
|
|
101
|
+
'url' => payload['url'],
|
|
102
|
+
}
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
##
|
|
107
|
+
# @return [String] The SID of the Port In request. This is a unique identifier of the port in request.
|
|
108
|
+
def port_in_request_sid
|
|
109
|
+
@properties['port_in_request_sid']
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
##
|
|
113
|
+
# @return [String]
|
|
114
|
+
def url
|
|
115
|
+
@properties['url']
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
##
|
|
119
|
+
# Provide a user friendly representation
|
|
120
|
+
def to_s
|
|
121
|
+
"<Twilio.Numbers.V1.PortingPortInInstance>"
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
##
|
|
125
|
+
# Provide a detailed, user friendly representation
|
|
126
|
+
def inspect
|
|
127
|
+
"<Twilio.Numbers.V1.PortingPortInInstance>"
|
|
128
|
+
end
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
end
|
|
132
|
+
end
|
|
133
|
+
end
|
|
134
|
+
end
|
|
@@ -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 PortingPortInFetchContext < InstanceContext
|
|
46
44
|
##
|
|
47
45
|
# Initialize the PortingPortInFetchContext
|
|
@@ -137,6 +135,7 @@ module Twilio
|
|
|
137
135
|
'target_port_in_date' => Twilio.deserialize_iso8601_date(payload['target_port_in_date']),
|
|
138
136
|
'target_port_in_time_range_start' => payload['target_port_in_time_range_start'],
|
|
139
137
|
'target_port_in_time_range_end' => payload['target_port_in_time_range_end'],
|
|
138
|
+
'port_in_request_status' => payload['port_in_request_status'],
|
|
140
139
|
'losing_carrier_information' => payload['losing_carrier_information'],
|
|
141
140
|
'phone_numbers' => payload['phone_numbers'],
|
|
142
141
|
'documents' => payload['documents'],
|
|
@@ -200,6 +199,12 @@ module Twilio
|
|
|
200
199
|
@properties['target_port_in_time_range_end']
|
|
201
200
|
end
|
|
202
201
|
|
|
202
|
+
##
|
|
203
|
+
# @return [String] The status of the port in request. The possible values are: In progress, Completed, Expired, In review, Waiting for Signature, Action Required, and Canceled.
|
|
204
|
+
def port_in_request_status
|
|
205
|
+
@properties['port_in_request_status']
|
|
206
|
+
end
|
|
207
|
+
|
|
203
208
|
##
|
|
204
209
|
# @return [Hash] The information for the losing carrier.
|
|
205
210
|
def losing_carrier_information
|
|
@@ -22,7 +22,9 @@ module Twilio
|
|
|
22
22
|
super
|
|
23
23
|
@version = 'v1'
|
|
24
24
|
@bulk_eligibilities = nil
|
|
25
|
+
@eligibilities = nil
|
|
25
26
|
@porting_bulk_portabilities = nil
|
|
27
|
+
@porting_port_ins = nil
|
|
26
28
|
@porting_port_ins_fetch = nil
|
|
27
29
|
@porting_portabilities = nil
|
|
28
30
|
end
|
|
@@ -42,6 +44,11 @@ module Twilio
|
|
|
42
44
|
end
|
|
43
45
|
end
|
|
44
46
|
##
|
|
47
|
+
# @return [Twilio::REST::Numbers::V1::EligibilityList]
|
|
48
|
+
def eligibilities
|
|
49
|
+
@eligibilities ||= EligibilityList.new self
|
|
50
|
+
end
|
|
51
|
+
##
|
|
45
52
|
# @param [String] sid A 34 character string that uniquely identifies the Portability check.
|
|
46
53
|
# @return [Twilio::REST::Numbers::V1::PortingBulkPortabilityContext] if sid was passed.
|
|
47
54
|
# @return [Twilio::REST::Numbers::V1::PortingBulkPortabilityList]
|
|
@@ -56,6 +63,11 @@ module Twilio
|
|
|
56
63
|
end
|
|
57
64
|
end
|
|
58
65
|
##
|
|
66
|
+
# @return [Twilio::REST::Numbers::V1::PortingPortInList]
|
|
67
|
+
def porting_port_ins
|
|
68
|
+
@porting_port_ins ||= PortingPortInList.new self
|
|
69
|
+
end
|
|
70
|
+
##
|
|
59
71
|
# @param [String] port_in_request_sid The SID of the Port In request. This is a unique identifier of the port in request.
|
|
60
72
|
# @return [Twilio::REST::Numbers::V1::PortingPortInFetchContext] if portInRequestSid was passed.
|
|
61
73
|
# @return [Twilio::REST::Numbers::V1::PortingPortInFetchList]
|
|
@@ -171,8 +171,6 @@ module Twilio
|
|
|
171
171
|
end
|
|
172
172
|
|
|
173
173
|
|
|
174
|
-
##
|
|
175
|
-
#PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
|
176
174
|
class AuthorizationDocumentContext < InstanceContext
|
|
177
175
|
##
|
|
178
176
|
# Initialize the AuthorizationDocumentContext
|
|
@@ -27,9 +27,24 @@ module Twilio
|
|
|
27
27
|
super(version)
|
|
28
28
|
# Path Solution
|
|
29
29
|
@solution = { }
|
|
30
|
+
@uri = "/HostedNumber/Orders/Bulk"
|
|
30
31
|
|
|
31
|
-
|
|
32
32
|
end
|
|
33
|
+
##
|
|
34
|
+
# Create the BulkHostedNumberOrderInstance
|
|
35
|
+
# @param [Object] body
|
|
36
|
+
# @return [BulkHostedNumberOrderInstance] Created BulkHostedNumberOrderInstance
|
|
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
|
+
BulkHostedNumberOrderInstance.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 BulkHostedNumberOrderContext < InstanceContext
|
|
46
59
|
##
|
|
47
60
|
# Initialize the BulkHostedNumberOrderContext
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
##
|
|
2
|
+
# This code was generated by
|
|
3
|
+
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
|
4
|
+
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
|
5
|
+
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
6
|
+
#
|
|
7
|
+
# Twilio - Oauth
|
|
8
|
+
# This is the public Twilio REST API.
|
|
9
|
+
#
|
|
10
|
+
# NOTE: This class is auto generated by OpenAPI Generator.
|
|
11
|
+
# https://openapi-generator.tech
|
|
12
|
+
# Do not edit the class manually.
|
|
13
|
+
#
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
module Twilio
|
|
17
|
+
module REST
|
|
18
|
+
class Oauth < OauthBase
|
|
19
|
+
class V1 < Version
|
|
20
|
+
class AuthorizeList < ListResource
|
|
21
|
+
|
|
22
|
+
##
|
|
23
|
+
# Initialize the AuthorizeList
|
|
24
|
+
# @param [Version] version Version that contains the resource
|
|
25
|
+
# @return [AuthorizeList] AuthorizeList
|
|
26
|
+
def initialize(version)
|
|
27
|
+
super(version)
|
|
28
|
+
# Path Solution
|
|
29
|
+
@solution = { }
|
|
30
|
+
@uri = "/authorize"
|
|
31
|
+
|
|
32
|
+
end
|
|
33
|
+
##
|
|
34
|
+
# Fetch the AuthorizeInstance
|
|
35
|
+
# @param [String] response_type Response Type
|
|
36
|
+
# @param [String] client_id The Client Identifier
|
|
37
|
+
# @param [String] redirect_uri The url to which response will be redirected to
|
|
38
|
+
# @param [String] scope The scope of the access request
|
|
39
|
+
# @param [String] state An opaque value which can be used to maintain state between the request and callback
|
|
40
|
+
# @return [AuthorizeInstance] Fetched AuthorizeInstance
|
|
41
|
+
def fetch(
|
|
42
|
+
response_type: :unset,
|
|
43
|
+
client_id: :unset,
|
|
44
|
+
redirect_uri: :unset,
|
|
45
|
+
scope: :unset,
|
|
46
|
+
state: :unset
|
|
47
|
+
)
|
|
48
|
+
|
|
49
|
+
params = Twilio::Values.of({
|
|
50
|
+
'ResponseType' => response_type,
|
|
51
|
+
'ClientId' => client_id,
|
|
52
|
+
'RedirectUri' => redirect_uri,
|
|
53
|
+
'Scope' => scope,
|
|
54
|
+
'State' => state,
|
|
55
|
+
})
|
|
56
|
+
|
|
57
|
+
payload = @version.fetch('GET', @uri, params: params)
|
|
58
|
+
AuthorizeInstance.new(
|
|
59
|
+
@version,
|
|
60
|
+
payload,
|
|
61
|
+
)
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
# Provide a user friendly representation
|
|
68
|
+
def to_s
|
|
69
|
+
'#<Twilio.Oauth.V1.AuthorizeList>'
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
class AuthorizePage < Page
|
|
74
|
+
##
|
|
75
|
+
# Initialize the AuthorizePage
|
|
76
|
+
# @param [Version] version Version that contains the resource
|
|
77
|
+
# @param [Response] response Response from the API
|
|
78
|
+
# @param [Hash] solution Path solution for the resource
|
|
79
|
+
# @return [AuthorizePage] AuthorizePage
|
|
80
|
+
def initialize(version, response, solution)
|
|
81
|
+
super(version, response)
|
|
82
|
+
|
|
83
|
+
# Path Solution
|
|
84
|
+
@solution = solution
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
##
|
|
88
|
+
# Build an instance of AuthorizeInstance
|
|
89
|
+
# @param [Hash] payload Payload response from the API
|
|
90
|
+
# @return [AuthorizeInstance] AuthorizeInstance
|
|
91
|
+
def get_instance(payload)
|
|
92
|
+
AuthorizeInstance.new(@version, payload)
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
##
|
|
96
|
+
# Provide a user friendly representation
|
|
97
|
+
def to_s
|
|
98
|
+
'<Twilio.Oauth.V1.AuthorizePage>'
|
|
99
|
+
end
|
|
100
|
+
end
|
|
101
|
+
class AuthorizeInstance < InstanceResource
|
|
102
|
+
##
|
|
103
|
+
# Initialize the AuthorizeInstance
|
|
104
|
+
# @param [Version] version Version that contains the resource
|
|
105
|
+
# @param [Hash] payload payload that contains response from Twilio
|
|
106
|
+
# @param [String] account_sid The SID of the
|
|
107
|
+
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this Authorize
|
|
108
|
+
# resource.
|
|
109
|
+
# @param [String] sid The SID of the Call resource to fetch.
|
|
110
|
+
# @return [AuthorizeInstance] AuthorizeInstance
|
|
111
|
+
def initialize(version, payload )
|
|
112
|
+
super(version)
|
|
113
|
+
|
|
114
|
+
# Marshaled Properties
|
|
115
|
+
@properties = {
|
|
116
|
+
'redirect_to' => payload['redirect_to'],
|
|
117
|
+
}
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
##
|
|
122
|
+
# @return [String] The callback URL
|
|
123
|
+
def redirect_to
|
|
124
|
+
@properties['redirect_to']
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
##
|
|
128
|
+
# Provide a user friendly representation
|
|
129
|
+
def to_s
|
|
130
|
+
"<Twilio.Oauth.V1.AuthorizeInstance>"
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
##
|
|
134
|
+
# Provide a detailed, user friendly representation
|
|
135
|
+
def inspect
|
|
136
|
+
"<Twilio.Oauth.V1.AuthorizeInstance>"
|
|
137
|
+
end
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
end
|
|
141
|
+
end
|
|
142
|
+
end
|
|
143
|
+
end
|