« Twilio/Rest/Api/V2010/Account/ValidationRequest.pm
↑ Summary
Twilio/Rest/Preview/HostedNumbers/AuthorizationDocument/DependentHostedNumberOrder.pm »
| 1 | # Generated by tools/generate.pl from Twilio's OpenAPI specs. Do not edit this file. | ||||||||||||
| 2 | package Twilio::Rest::FlexApi::V1::InsightsSegments; | ||||||||||||
| 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::FlexApi::V1::InsightsSegmentsList; | ||||||||||||
| 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) = @_; | |||||||||||
| 17 | 1 | my $self = $class->SUPER::new($version); | |||||||||||
| 18 | 1 | $self->{solution} = {}; | |||||||||||
| 19 | 1 | $self->{uri} = '/Insights/Segments'; | |||||||||||
| 20 | 1 | return $self; | |||||||||||
| 21 | } | ||||||||||||
| 22 | |||||||||||||
| 23 | 0 | ▶ | sub read { | ||||||||||
|
Subroutine
read: not called CC=1 SCAR=6.9
| |||||||||||||
| 24 | 0 | my ($self, @arguments) = @_; | |||||||||||
| 25 | 0 | return $self->read_records(@arguments); | |||||||||||
| 26 | } | ||||||||||||
| 27 | |||||||||||||
| 28 | 0 | ▶ | sub stream { | ||||||||||
|
Subroutine
stream: not called CC=1 SCAR=6.9
| |||||||||||||
| 29 | 0 | my ($self, @arguments) = @_; | |||||||||||
| 30 | 0 | return $self->stream_records(@arguments); | |||||||||||
| 31 | } | ||||||||||||
| 32 | |||||||||||||
| 33 | 1 | ▶ | sub page { | ||||||||||
|
Subroutine
page: called CC=2 SCAR=7.0
| |||||||||||||
| 34 | 1 | my ($self, $options, $page_size, $page_token, $page_number) = @_; | |||||||||||
| 35 | 1 | ▶ | $options //= {}; | ||||||||||
|
Condition50%1/2
$options //= {}
MC/DC0%0/1
$options //= {}
$options
Truth table50%1/2
A
A= $options
| |||||||||||||
| 36 | |||||||||||||
| 37 | my $params = { | ||||||||||||
| 38 | ReservationId => $options->{reservation_id}, | ||||||||||||
| 39 | SegmentId => $options->{segment_id}, | ||||||||||||
| 40 | 1 | PageToken => $page_token, | |||||||||||
| 41 | Page => $page_number, | ||||||||||||
| 42 | PageSize => $page_size, | ||||||||||||
| 43 | }; | ||||||||||||
| 44 | |||||||||||||
| 45 | my $response = $self->{version}->page( | ||||||||||||
| 46 | 'GET', | ||||||||||||
| 47 | $self->{uri}, | ||||||||||||
| 48 | { | ||||||||||||
| 49 | params => $params, | ||||||||||||
| 50 | headers => { Authorization => $options->{authorization}, } | ||||||||||||
| 51 | } | ||||||||||||
| 52 | 1 | ); | |||||||||||
| 53 | 1 | return $self->_build_page($response); | |||||||||||
| 54 | } | ||||||||||||
| 55 | |||||||||||||
| 56 | 0 | ▶ | sub get_page { | ||||||||||
|
Subroutine
get_page: not called CC=1 SCAR=6.9
| |||||||||||||
| 57 | 0 | my ($self, $target_url) = @_; | |||||||||||
| 58 | 0 | my $client = $self->{version}->get_domain->get_client; | |||||||||||
| 59 | 0 | return $self->_build_page($client->request('GET', $target_url)); | |||||||||||
| 60 | } | ||||||||||||
| 61 | |||||||||||||
| 62 | 1 | ▶ | sub _build_page { | ||||||||||
|
Subroutine
_build_page: called CC=1 SCAR=0.0
| |||||||||||||
| 63 | 1 | my ($self, $response) = @_; | |||||||||||
| 64 | return Twilio::Rest::FlexApi::V1::InsightsSegmentsPage->new($self->{version}, $response, | ||||||||||||
| 65 | 1 | $self->{solution}); | |||||||||||
| 66 | } | ||||||||||||
| 67 | |||||||||||||
| 68 | package Twilio::Rest::FlexApi::V1::InsightsSegmentsPage; | ||||||||||||
| 69 | |||||||||||||
| 70 | 2 | ▶ | use parent 'Twilio::Page'; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 71 | |||||||||||||
| 72 | 1 | ▶ | sub records_key { return 'segments' } | ||||||||||
|
Subroutine
records_key: called CC=1 SCAR=0.0
| |||||||||||||
| 73 | |||||||||||||
| 74 | 1 | ▶ | sub build_instance { | ||||||||||
|
Subroutine
build_instance: called CC=1 SCAR=0.0
| |||||||||||||
| 75 | 1 | my ($self, $payload) = @_; | |||||||||||
| 76 | 1 | return Twilio::Rest::FlexApi::V1::InsightsSegmentsInstance->new($self->{version}, $payload); | |||||||||||
| 77 | } | ||||||||||||
| 78 | |||||||||||||
| 79 | package Twilio::Rest::FlexApi::V1::InsightsSegmentsInstance; | ||||||||||||
| 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) = @_; | |||||||||||
| 87 | 1 | my $self = $class->SUPER::new($version, $payload); | |||||||||||
| 88 | 1 | $self->{solution} = {}; | |||||||||||
| 89 | 1 | return $self; | |||||||||||
| 90 | } | ||||||||||||
| 91 | |||||||||||||
| 92 | 1 | ▶ | sub account_id { return $_[0]{properties}{account_id} } | ||||||||||
|
Subroutine
account_id: called CC=1 SCAR=0.0
| |||||||||||||
| 93 | 1 | ▶ | sub agent_id { return $_[0]{properties}{agent_id} } | ||||||||||
|
Subroutine
agent_id: called CC=1 SCAR=0.0
| |||||||||||||
| 94 | 1 | ▶ | sub agent_link { return $_[0]{properties}{agent_link} } | ||||||||||
|
Subroutine
agent_link: called CC=1 SCAR=0.0
| |||||||||||||
| 95 | 1 | ▶ | sub agent_name { return $_[0]{properties}{agent_name} } | ||||||||||
|
Subroutine
agent_name: called CC=1 SCAR=0.0
| |||||||||||||
| 96 | 1 | ▶ | sub agent_phone { return $_[0]{properties}{agent_phone} } | ||||||||||
|
Subroutine
agent_phone: called CC=1 SCAR=0.0
| |||||||||||||
| 97 | 1 | ▶ | sub agent_team_name { return $_[0]{properties}{agent_team_name} } | ||||||||||
|
Subroutine
agent_team_name: called CC=1 SCAR=0.0
| |||||||||||||
| 98 | 1 | ▶ | sub agent_team_name_in_hierarchy { return $_[0]{properties}{agent_team_name_in_hierarchy} } | ||||||||||
|
Subroutine
agent_team_name_in_hierarchy: called CC=1 SCAR=0.0
| |||||||||||||
| 99 | 1 | ▶ | sub assessment_percentage { return $_[0]{properties}{assessment_percentage} } | ||||||||||
|
Subroutine
assessment_percentage: called CC=1 SCAR=0.0
| |||||||||||||
| 100 | 1 | ▶ | sub assessment_type { return $_[0]{properties}{assessment_type} } | ||||||||||
|
Subroutine
assessment_type: called CC=1 SCAR=0.0
| |||||||||||||
| 101 | 1 | ▶ | sub customer_link { return $_[0]{properties}{customer_link} } | ||||||||||
|
Subroutine
customer_link: called CC=1 SCAR=0.0
| |||||||||||||
| 102 | 1 | ▶ | sub customer_name { return $_[0]{properties}{customer_name} } | ||||||||||
|
Subroutine
customer_name: called CC=1 SCAR=0.0
| |||||||||||||
| 103 | 1 | ▶ | sub customer_phone { return $_[0]{properties}{customer_phone} } | ||||||||||
|
Subroutine
customer_phone: called CC=1 SCAR=0.0
| |||||||||||||
| 104 | 1 | ▶ | sub date { return $_[0]{properties}{date} } | ||||||||||
|
Subroutine
date: called CC=1 SCAR=0.0
| |||||||||||||
| 105 | 1 | ▶ | sub external_contact { return $_[0]{properties}{external_contact} } | ||||||||||
|
Subroutine
external_contact: called CC=1 SCAR=0.0
| |||||||||||||
| 106 | 1 | ▶ | sub external_id { return $_[0]{properties}{external_id} } | ||||||||||
|
Subroutine
external_id: called CC=1 SCAR=0.0
| |||||||||||||
| 107 | 1 | ▶ | sub external_segment_link { return $_[0]{properties}{external_segment_link} } | ||||||||||
|
Subroutine
external_segment_link: called CC=1 SCAR=0.0
| |||||||||||||
| 108 | 1 | ▶ | sub external_segment_link_id { return $_[0]{properties}{external_segment_link_id} } | ||||||||||
|
Subroutine
external_segment_link_id: called CC=1 SCAR=0.0
| |||||||||||||
| 109 | 1 | ▶ | sub media { return $_[0]{properties}{media} } | ||||||||||
|
Subroutine
media: called CC=1 SCAR=0.0
| |||||||||||||
| 110 | 1 | ▶ | sub queue { return $_[0]{properties}{queue} } | ||||||||||
|
Subroutine
queue: called CC=1 SCAR=0.0
| |||||||||||||
| 111 | 1 | ▶ | sub segment_id { return $_[0]{properties}{segment_id} } | ||||||||||
|
Subroutine
segment_id: called CC=1 SCAR=0.0
| |||||||||||||
| 112 | 1 | ▶ | sub segment_recording_offset { return $_[0]{properties}{segment_recording_offset} } | ||||||||||
|
Subroutine
segment_recording_offset: called CC=1 SCAR=0.0
| |||||||||||||
| 113 | 1 | ▶ | sub url { return $_[0]{properties}{url} } | ||||||||||
|
Subroutine
url: called CC=1 SCAR=0.0
| |||||||||||||
| 114 | |||||||||||||
| 115 | 2 | 1; | |||||||||||
| 116 | |||||||||||||
| 117 | __END__ | ||||||||||||