« Twilio/Rest/FlexApi/V1/ProvisioningStatus.pm
↑ Summary
Twilio/Rest/Intelligence/V2/OperatorAttachments.pm »
| 1 | # Generated by tools/generate.pl from Twilio's OpenAPI specs. Do not edit this file. | ||||||||||||||||||||
| 2 | package Twilio::Rest::Numbers::V1::PortingPortInPhoneNumber; | ||||||||||||||||||||
| 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::Numbers::V1::PortingPortInPhoneNumberList; | ||||||||||||||||||||
| 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 | 2 | ▶ | sub new { | ||||||||||||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 16 | 2 | my ($class, $version, $port_in_request_sid) = @_; | |||||||||||||||||||
| 17 | 2 | my $self = $class->SUPER::new($version); | |||||||||||||||||||
| 18 | 2 | $self->{solution} = { port_in_request_sid => $port_in_request_sid }; | |||||||||||||||||||
| 19 | 2 | $self->{uri} = join q{}, '/Porting/PortIn/', | |||||||||||||||||||
| 20 | Twilio::Serialize::path_segment($port_in_request_sid), '/PhoneNumber'; | ||||||||||||||||||||
| 21 | 2 | return $self; | |||||||||||||||||||
| 22 | } | ||||||||||||||||||||
| 23 | |||||||||||||||||||||
| 24 | 2 | ▶ | sub get_context { | ||||||||||||||||||
|
Subroutine
get_context: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 25 | 2 | my ($self, $phone_number_sid) = @_; | |||||||||||||||||||
| 26 | return Twilio::Rest::Numbers::V1::PortingPortInPhoneNumberContext->new($self->{version}, | ||||||||||||||||||||
| 27 | $self->{solution}{port_in_request_sid}, | ||||||||||||||||||||
| 28 | 2 | $phone_number_sid); | |||||||||||||||||||
| 29 | } | ||||||||||||||||||||
| 30 | |||||||||||||||||||||
| 31 | package Twilio::Rest::Numbers::V1::PortingPortInPhoneNumberContext; | ||||||||||||||||||||
| 32 | |||||||||||||||||||||
| 33 | 2 | ▶ | use parent 'Twilio::InstanceContext'; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 34 | |||||||||||||||||||||
| 35 | 2 | ▶ | use Twilio::Serialize; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 36 | |||||||||||||||||||||
| 37 | 2 | ▶ | sub new { | ||||||||||||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 38 | 2 | my ($class, $version, $port_in_request_sid, $phone_number_sid) = @_; | |||||||||||||||||||
| 39 | 2 | my $self = $class->SUPER::new($version); | |||||||||||||||||||
| 40 | $self->{solution} = | ||||||||||||||||||||
| 41 | 2 | { port_in_request_sid => $port_in_request_sid, phone_number_sid => $phone_number_sid }; | |||||||||||||||||||
| 42 | 2 | $self->{uri} = join q{}, '/Porting/PortIn/', | |||||||||||||||||||
| 43 | Twilio::Serialize::path_segment($port_in_request_sid), '/PhoneNumber/', | ||||||||||||||||||||
| 44 | Twilio::Serialize::path_segment($phone_number_sid); | ||||||||||||||||||||
| 45 | 2 | return $self; | |||||||||||||||||||
| 46 | } | ||||||||||||||||||||
| 47 | |||||||||||||||||||||
| 48 | 1 | ▶ | sub delete { | ||||||||||||||||||
|
Subroutine
delete: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 49 | 1 | my ($self) = @_; | |||||||||||||||||||
| 50 | 1 | $self->{version}->handle_request('DELETE', $self->{uri}, 'delete'); | |||||||||||||||||||
| 51 | 1 | return 1; | |||||||||||||||||||
| 52 | } | ||||||||||||||||||||
| 53 | |||||||||||||||||||||
| 54 | 1 | ▶ | sub fetch { | ||||||||||||||||||
|
Subroutine
fetch: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 55 | 1 | my ($self) = @_; | |||||||||||||||||||
| 56 | |||||||||||||||||||||
| 57 | 1 | my $response = $self->{version}->handle_request('GET', $self->{uri}, 'fetch'); | |||||||||||||||||||
| 58 | 1 | return $self->_build_instance($response); | |||||||||||||||||||
| 59 | } | ||||||||||||||||||||
| 60 | |||||||||||||||||||||
| 61 | 1 | ▶ | sub _build_instance { | ||||||||||||||||||
|
Subroutine
_build_instance: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 62 | 1 | my ($self, $response) = @_; | |||||||||||||||||||
| 63 | return Twilio::Rest::Numbers::V1::PortingPortInPhoneNumberInstance->new( | ||||||||||||||||||||
| 64 | $self->{version}, $response->get_content, | ||||||||||||||||||||
| 65 | $self->{solution}{port_in_request_sid}, | ||||||||||||||||||||
| 66 | $self->{solution}{phone_number_sid} | ||||||||||||||||||||
| 67 | 1 | ); | |||||||||||||||||||
| 68 | } | ||||||||||||||||||||
| 69 | |||||||||||||||||||||
| 70 | package Twilio::Rest::Numbers::V1::PortingPortInPhoneNumberInstance; | ||||||||||||||||||||
| 71 | |||||||||||||||||||||
| 72 | 2 | ▶ | use parent 'Twilio::InstanceResource'; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 73 | |||||||||||||||||||||
| 74 | 2 | ▶ | use Twilio::Deserialize; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 75 | |||||||||||||||||||||
| 76 | 1 | ▶ | sub new { | ||||||||||||||||||
|
Subroutine
new: called CC=2 SCAR=7.4
| |||||||||||||||||||||
| 77 | 1 | my ($class, $version, $payload, $port_in_request_sid, $phone_number_sid) = @_; | |||||||||||||||||||
| 78 | 1 | my $self = $class->SUPER::new($version, $payload); | |||||||||||||||||||
| 79 | $self->{solution} = { | ||||||||||||||||||||
| 80 | port_in_request_sid => $port_in_request_sid, | ||||||||||||||||||||
| 81 | phone_number_sid => $phone_number_sid // $self->{properties}{phone_number_sid} | ||||||||||||||||||||
| 82 | 1 | ▶ | }; | ||||||||||||||||||
|
Condition33%1/3
$phone_number_sid // $self->{"properties"}{"phone_number_sid"}
MC/DC0%0/2
$phone_number_sid // $self->{"properties"}{"phone_number_sid"}
$phone_number_sid
$self->{"properties"}{"phone_number_sid"}
Truth table33%1/3
A // B
A= $phone_number_sidB= $self->{"properties"}{"phone_number_sid"}
| |||||||||||||||||||||
| 83 | 1 | return $self; | |||||||||||||||||||
| 84 | } | ||||||||||||||||||||
| 85 | |||||||||||||||||||||
| 86 | 0 | ▶ | sub delete { | ||||||||||||||||||
|
Subroutine
delete: not called CC=1 SCAR=6.9
| |||||||||||||||||||||
| 87 | 0 | my ($self, @arguments) = @_; | |||||||||||||||||||
| 88 | 0 | return $self->_context->delete(@arguments); | |||||||||||||||||||
| 89 | } | ||||||||||||||||||||
| 90 | |||||||||||||||||||||
| 91 | 0 | ▶ | sub fetch { | ||||||||||||||||||
|
Subroutine
fetch: not called CC=1 SCAR=6.9
| |||||||||||||||||||||
| 92 | 0 | my ($self, @arguments) = @_; | |||||||||||||||||||
| 93 | 0 | return $self->_context->fetch(@arguments); | |||||||||||||||||||
| 94 | } | ||||||||||||||||||||
| 95 | |||||||||||||||||||||
| 96 | 0 | ▶ | sub _context { | ||||||||||||||||||
|
Subroutine
_context: not called CC=1 SCAR=6.9
| |||||||||||||||||||||
| 97 | 0 | my ($self) = @_; | |||||||||||||||||||
| 98 | return Twilio::Rest::Numbers::V1::PortingPortInPhoneNumberContext->new( | ||||||||||||||||||||
| 99 | $self->{version}, | ||||||||||||||||||||
| 100 | $self->{solution}{port_in_request_sid}, | ||||||||||||||||||||
| 101 | $self->{solution}{phone_number_sid} | ||||||||||||||||||||
| 102 | 0 | ); | |||||||||||||||||||
| 103 | } | ||||||||||||||||||||
| 104 | |||||||||||||||||||||
| 105 | 1 | ▶ | sub account_sid { return $_[0]{properties}{account_sid} } | ||||||||||||||||||
|
Subroutine
account_sid: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 106 | 1 | ▶ | sub country { return $_[0]{properties}{country} } | ||||||||||||||||||
|
Subroutine
country: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 107 | 1 | ▶ | sub date_created { return Twilio::Deserialize::date_time($_[0]{properties}{date_created}) } | ||||||||||||||||||
|
Subroutine
date_created: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 108 | 1 | ▶ | sub last_updated { return Twilio::Deserialize::date_time($_[0]{properties}{last_updated}) } | ||||||||||||||||||
|
Subroutine
last_updated: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 109 | 1 | ▶ | sub missing_required_fields { return $_[0]{properties}{missing_required_fields} } | ||||||||||||||||||
|
Subroutine
missing_required_fields: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 110 | 1 | ▶ | sub not_portability_reason { return $_[0]{properties}{not_portability_reason} } | ||||||||||||||||||
|
Subroutine
not_portability_reason: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 111 | 1 | ▶ | sub not_portability_reason_code { return $_[0]{properties}{not_portability_reason_code} } | ||||||||||||||||||
|
Subroutine
not_portability_reason_code: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 112 | 1 | ▶ | sub phone_number { return $_[0]{properties}{phone_number} } | ||||||||||||||||||
|
Subroutine
phone_number: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 113 | 1 | ▶ | sub phone_number_sid { return $_[0]{properties}{phone_number_sid} } | ||||||||||||||||||
|
Subroutine
phone_number_sid: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 114 | 1 | ▶ | sub phone_number_type { return $_[0]{properties}{phone_number_type} } | ||||||||||||||||||
|
Subroutine
phone_number_type: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 115 | 1 | ▶ | sub port_date { return Twilio::Deserialize::date_time($_[0]{properties}{port_date}) } | ||||||||||||||||||
|
Subroutine
port_date: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 116 | 1 | ▶ | sub port_in_phone_number_status { return $_[0]{properties}{port_in_phone_number_status} } | ||||||||||||||||||
|
Subroutine
port_in_phone_number_status: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 117 | 1 | ▶ | sub port_in_request_sid { return $_[0]{properties}{port_in_request_sid} } | ||||||||||||||||||
|
Subroutine
port_in_request_sid: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 118 | 1 | ▶ | sub port_out_pin { return $_[0]{properties}{port_out_pin} } | ||||||||||||||||||
|
Subroutine
port_out_pin: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 119 | 1 | ▶ | sub portable { return $_[0]{properties}{portable} } | ||||||||||||||||||
|
Subroutine
portable: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 120 | 1 | ▶ | sub rejection_reason { return $_[0]{properties}{rejection_reason} } | ||||||||||||||||||
|
Subroutine
rejection_reason: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 121 | 1 | ▶ | sub rejection_reason_code { return $_[0]{properties}{rejection_reason_code} } | ||||||||||||||||||
|
Subroutine
rejection_reason_code: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 122 | 1 | ▶ | sub url { return $_[0]{properties}{url} } | ||||||||||||||||||
|
Subroutine
url: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 123 | |||||||||||||||||||||
| 124 | 2 | 1; | |||||||||||||||||||
| 125 | |||||||||||||||||||||
| 126 | __END__ | ||||||||||||||||||||