« Twilio/Rest/Numbers/V1/VoiceVerification.pm
↑ Summary
Twilio/Rest/Numbers/V2/RegulatoryCompliance/Bundle/ReplaceItems.pm »
| 1 | # Generated by tools/generate.pl from Twilio's OpenAPI specs. Do not edit this file. | ||
| 2 | package Twilio::Rest::Numbers::V1::Webhook; | ||
| 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::WebhookList; | ||
| 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} = '/Porting/Configuration/Webhook'; | |
| 20 | 1 | return $self; | |
| 21 | } | ||
| 22 | |||
| 23 | 1 | ▶ | sub fetch { |
|
Subroutine
fetch: called CC=1 SCAR=0.0
| |||
| 24 | 1 | my ($self) = @_; | |
| 25 | |||
| 26 | 1 | my $response = $self->{version}->handle_request('GET', $self->{uri}, 'fetch'); | |
| 27 | 1 | return Twilio::Rest::Numbers::V1::WebhookInstance->new($self->{version}, $response->get_content); | |
| 28 | } | ||
| 29 | |||
| 30 | package Twilio::Rest::Numbers::V1::WebhookInstance; | ||
| 31 | |||
| 32 | 2 | ▶ | use parent 'Twilio::InstanceResource'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 33 | |||
| 34 | 2 | ▶ | use Twilio::Deserialize; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 35 | |||
| 36 | 1 | ▶ | sub new { |
|
Subroutine
new: called CC=1 SCAR=0.0
| |||
| 37 | 1 | my ($class, $version, $payload) = @_; | |
| 38 | 1 | my $self = $class->SUPER::new($version, $payload); | |
| 39 | 1 | $self->{solution} = {}; | |
| 40 | 1 | return $self; | |
| 41 | } | ||
| 42 | |||
| 43 | 1 | ▶ | sub notifications_of { return $_[0]{properties}{notifications_of} } |
|
Subroutine
notifications_of: called CC=1 SCAR=0.0
| |||
| 44 | |||
| 45 | 1 | ▶ | sub port_in_target_date_created { |
|
Subroutine
port_in_target_date_created: called CC=1 SCAR=0.0
| |||
| 46 | 1 | return Twilio::Deserialize::date_time($_[0]{properties}{port_in_target_date_created}); | |
| 47 | } | ||
| 48 | 1 | ▶ | sub port_in_target_url { return $_[0]{properties}{port_in_target_url} } |
|
Subroutine
port_in_target_url: called CC=1 SCAR=0.0
| |||
| 49 | |||
| 50 | 1 | ▶ | sub port_out_target_date_created { |
|
Subroutine
port_out_target_date_created: called CC=1 SCAR=0.0
| |||
| 51 | 1 | return Twilio::Deserialize::date_time($_[0]{properties}{port_out_target_date_created}); | |
| 52 | } | ||
| 53 | 1 | ▶ | sub port_out_target_url { return $_[0]{properties}{port_out_target_url} } |
|
Subroutine
port_out_target_url: called CC=1 SCAR=0.0
| |||
| 54 | 1 | ▶ | sub url { return $_[0]{properties}{url} } |
|
Subroutine
url: called CC=1 SCAR=0.0
| |||
| 55 | |||
| 56 | 2 | 1; | |
| 57 | |||
| 58 | __END__ | ||