« Twilio/Rest/FlexApi/V1/InsightsSegments.pm
↑ Summary
Twilio/Rest/Content/V1/Content/ApprovalFetch.pm »
| 1 | # Generated by tools/generate.pl from Twilio's OpenAPI specs. Do not edit this file. | ||||||||||||
| 2 | package Twilio::Rest::Preview::HostedNumbers::AuthorizationDocument::DependentHostedNumberOrder; | ||||||||||||
| 3 | |||||||||||||
| 4 | 2 | ▶ | use 5.016; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 5 | 2 | ▶ | use warnings; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 6 | |||||||||||||
| 7 | 2 | our $VERSION = '2.001'; | |||||||||||
| 8 | |||||||||||||
| 9 | package Twilio::Rest::Preview::HostedNumbers::AuthorizationDocument::DependentHostedNumberOrderList; | ||||||||||||
| 10 | |||||||||||||
| 11 | 2 | ▶ | use parent 'Twilio::ListResource'; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 12 | |||||||||||||
| 13 | 2 | ▶ | use Twilio::Serialize; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 14 | |||||||||||||
| 15 | 1 | ▶ | sub new { | ||||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
| |||||||||||||
| 16 | 1 | my ($class, $version, $signing_document_sid) = @_; | |||||||||||
| 17 | 1 | my $self = $class->SUPER::new($version); | |||||||||||
| 18 | 1 | $self->{solution} = { signing_document_sid => $signing_document_sid }; | |||||||||||
| 19 | 1 | $self->{uri} = join q{}, '/AuthorizationDocuments/', | |||||||||||
| 20 | Twilio::Serialize::path_segment($signing_document_sid), '/DependentHostedNumberOrders'; | ||||||||||||
| 21 | 1 | return $self; | |||||||||||
| 22 | } | ||||||||||||
| 23 | |||||||||||||
| 24 | 0 | ▶ | sub read { | ||||||||||
|
Subroutine
read: not called CC=1 SCAR=6.9
| |||||||||||||
| 25 | 0 | my ($self, @arguments) = @_; | |||||||||||
| 26 | 0 | return $self->read_records(@arguments); | |||||||||||
| 27 | } | ||||||||||||
| 28 | |||||||||||||
| 29 | 0 | ▶ | sub stream { | ||||||||||
|
Subroutine
stream: not called CC=1 SCAR=6.9
| |||||||||||||
| 30 | 0 | my ($self, @arguments) = @_; | |||||||||||
| 31 | 0 | return $self->stream_records(@arguments); | |||||||||||
| 32 | } | ||||||||||||
| 33 | |||||||||||||
| 34 | 1 | ▶ | sub page { | ||||||||||
|
Subroutine
page: called CC=2 SCAR=7.0
| |||||||||||||
| 35 | 1 | my ($self, $options, $page_size, $page_token, $page_number) = @_; | |||||||||||
| 36 | 1 | ▶ | $options //= {}; | ||||||||||
|
Condition50%1/2
$options //= {}
MC/DC0%0/1
$options //= {}
$options
Truth table50%1/2
A
A= $options
| |||||||||||||
| 37 | |||||||||||||
| 38 | my $params = { | ||||||||||||
| 39 | FriendlyName => $options->{friendly_name}, | ||||||||||||
| 40 | IncomingPhoneNumberSid => $options->{incoming_phone_number_sid}, | ||||||||||||
| 41 | PhoneNumber => $options->{phone_number}, | ||||||||||||
| 42 | Status => $options->{status}, | ||||||||||||
| 43 | UniqueName => $options->{unique_name}, | ||||||||||||
| 44 | 1 | PageToken => $page_token, | |||||||||||
| 45 | Page => $page_number, | ||||||||||||
| 46 | PageSize => $page_size, | ||||||||||||
| 47 | }; | ||||||||||||
| 48 | |||||||||||||
| 49 | 1 | my $response = $self->{version}->page('GET', $self->{uri}, { params => $params }); | |||||||||||
| 50 | 1 | return $self->_build_page($response); | |||||||||||
| 51 | } | ||||||||||||
| 52 | |||||||||||||
| 53 | 0 | ▶ | sub get_page { | ||||||||||
|
Subroutine
get_page: not called CC=1 SCAR=6.9
| |||||||||||||
| 54 | 0 | my ($self, $target_url) = @_; | |||||||||||
| 55 | 0 | my $client = $self->{version}->get_domain->get_client; | |||||||||||
| 56 | 0 | return $self->_build_page($client->request('GET', $target_url)); | |||||||||||
| 57 | } | ||||||||||||
| 58 | |||||||||||||
| 59 | 1 | ▶ | sub _build_page { | ||||||||||
|
Subroutine
_build_page: called CC=1 SCAR=0.0
| |||||||||||||
| 60 | 1 | my ($self, $response) = @_; | |||||||||||
| 61 | return | ||||||||||||
| 62 | Twilio::Rest::Preview::HostedNumbers::AuthorizationDocument::DependentHostedNumberOrderPage | ||||||||||||
| 63 | 1 | ->new($self->{version}, $response, $self->{solution}); | |||||||||||
| 64 | } | ||||||||||||
| 65 | |||||||||||||
| 66 | package Twilio::Rest::Preview::HostedNumbers::AuthorizationDocument::DependentHostedNumberOrderPage; | ||||||||||||
| 67 | |||||||||||||
| 68 | 2 | ▶ | use parent 'Twilio::Page'; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 69 | |||||||||||||
| 70 | 1 | ▶ | sub records_key { return 'items' } | ||||||||||
|
Subroutine
records_key: called CC=1 SCAR=0.0
| |||||||||||||
| 71 | |||||||||||||
| 72 | 1 | ▶ | sub build_instance { | ||||||||||
|
Subroutine
build_instance: called CC=1 SCAR=0.0
| |||||||||||||
| 73 | 1 | my ($self, $payload) = @_; | |||||||||||
| 74 | return | ||||||||||||
| 75 | Twilio::Rest::Preview::HostedNumbers::AuthorizationDocument::DependentHostedNumberOrderInstance | ||||||||||||
| 76 | 1 | ->new($self->{version}, $payload, $self->{solution}{signing_document_sid}); | |||||||||||
| 77 | } | ||||||||||||
| 78 | |||||||||||||
| 79 | package Twilio::Rest::Preview::HostedNumbers::AuthorizationDocument::DependentHostedNumberOrderInstance; | ||||||||||||
| 80 | |||||||||||||
| 81 | 2 | ▶ | use parent 'Twilio::InstanceResource'; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 82 | |||||||||||||
| 83 | 2 | ▶ | use Twilio::Deserialize; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 84 | |||||||||||||
| 85 | 1 | ▶ | sub new { | ||||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
| |||||||||||||
| 86 | 1 | my ($class, $version, $payload, $signing_document_sid) = @_; | |||||||||||
| 87 | 1 | my $self = $class->SUPER::new($version, $payload); | |||||||||||
| 88 | 1 | $self->{solution} = { signing_document_sid => $signing_document_sid }; | |||||||||||
| 89 | 1 | return $self; | |||||||||||
| 90 | } | ||||||||||||
| 91 | |||||||||||||
| 92 | 1 | ▶ | sub account_sid { return $_[0]{properties}{account_sid} } | ||||||||||
|
Subroutine
account_sid: called CC=1 SCAR=0.0
| |||||||||||||
| 93 | 1 | ▶ | sub address_sid { return $_[0]{properties}{address_sid} } | ||||||||||
|
Subroutine
address_sid: called CC=1 SCAR=0.0
| |||||||||||||
| 94 | 1 | ▶ | sub call_delay { return $_[0]{properties}{call_delay} } | ||||||||||
|
Subroutine
call_delay: called CC=1 SCAR=0.0
| |||||||||||||
| 95 | |||||||||||||
| 96 | 1 | ▶ | sub capabilities { | ||||||||||
|
Subroutine
capabilities: called CC=1 SCAR=0.0
| |||||||||||||
| 97 | 1 | return Twilio::Deserialize::phone_number_capabilities($_[0]{properties}{capabilities}); | |||||||||||
| 98 | } | ||||||||||||
| 99 | 1 | ▶ | sub cc_emails { return $_[0]{properties}{cc_emails} } | ||||||||||
|
Subroutine
cc_emails: called CC=1 SCAR=0.0
| |||||||||||||
| 100 | 1 | ▶ | sub date_created { return Twilio::Deserialize::date_time($_[0]{properties}{date_created}) } | ||||||||||
|
Subroutine
date_created: called CC=1 SCAR=0.0
| |||||||||||||
| 101 | 1 | ▶ | sub date_updated { return Twilio::Deserialize::date_time($_[0]{properties}{date_updated}) } | ||||||||||
|
Subroutine
date_updated: called CC=1 SCAR=0.0
| |||||||||||||
| 102 | 1 | ▶ | sub email { return $_[0]{properties}{email} } | ||||||||||
|
Subroutine
email: called CC=1 SCAR=0.0
| |||||||||||||
| 103 | 1 | ▶ | sub extension { return $_[0]{properties}{extension} } | ||||||||||
|
Subroutine
extension: called CC=1 SCAR=0.0
| |||||||||||||
| 104 | 1 | ▶ | sub failure_reason { return $_[0]{properties}{failure_reason} } | ||||||||||
|
Subroutine
failure_reason: called CC=1 SCAR=0.0
| |||||||||||||
| 105 | 1 | ▶ | sub friendly_name { return $_[0]{properties}{friendly_name} } | ||||||||||
|
Subroutine
friendly_name: called CC=1 SCAR=0.0
| |||||||||||||
| 106 | 1 | ▶ | sub incoming_phone_number_sid { return $_[0]{properties}{incoming_phone_number_sid} } | ||||||||||
|
Subroutine
incoming_phone_number_sid: called CC=1 SCAR=0.0
| |||||||||||||
| 107 | 1 | ▶ | sub phone_number { return $_[0]{properties}{phone_number} } | ||||||||||
|
Subroutine
phone_number: called CC=1 SCAR=0.0
| |||||||||||||
| 108 | 1 | ▶ | sub sid { return $_[0]{properties}{sid} } | ||||||||||
|
Subroutine
sid: called CC=1 SCAR=0.0
| |||||||||||||
| 109 | 1 | ▶ | sub signing_document_sid { return $_[0]{properties}{signing_document_sid} } | ||||||||||
|
Subroutine
signing_document_sid: called CC=1 SCAR=0.0
| |||||||||||||
| 110 | 1 | ▶ | sub status { return $_[0]{properties}{status} } | ||||||||||
|
Subroutine
status: called CC=1 SCAR=0.0
| |||||||||||||
| 111 | 1 | ▶ | sub unique_name { return $_[0]{properties}{unique_name} } | ||||||||||
|
Subroutine
unique_name: called CC=1 SCAR=0.0
| |||||||||||||
| 112 | 1 | ▶ | sub verification_attempts { return $_[0]{properties}{verification_attempts} } | ||||||||||
|
Subroutine
verification_attempts: called CC=1 SCAR=0.0
| |||||||||||||
| 113 | 1 | ▶ | sub verification_call_sids { return $_[0]{properties}{verification_call_sids} } | ||||||||||
|
Subroutine
verification_call_sids: called CC=1 SCAR=0.0
| |||||||||||||
| 114 | 1 | ▶ | sub verification_code { return $_[0]{properties}{verification_code} } | ||||||||||
|
Subroutine
verification_code: called CC=1 SCAR=0.0
| |||||||||||||
| 115 | 1 | ▶ | sub verification_document_sid { return $_[0]{properties}{verification_document_sid} } | ||||||||||
|
Subroutine
verification_document_sid: called CC=1 SCAR=0.0
| |||||||||||||
| 116 | 1 | ▶ | sub verification_type { return $_[0]{properties}{verification_type} } | ||||||||||
|
Subroutine
verification_type: called CC=1 SCAR=0.0
| |||||||||||||
| 117 | |||||||||||||
| 118 | 2 | 1; | |||||||||||
| 119 | |||||||||||||
| 120 | __END__ | ||||||||||||