| 1 | # Generated by tools/generate.pl from Twilio's OpenAPI specs. Do not edit this file. | ||||||||||||
| 2 | package Twilio::Rest::Messaging::V1::Service::UsAppToPersonUsecase; | ||||||||||||
| 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::Messaging::V1::Service::UsAppToPersonUsecaseList; | ||||||||||||
| 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, $messaging_service_sid) = @_; | |||||||||||
| 17 | 1 | my $self = $class->SUPER::new($version); | |||||||||||
| 18 | 1 | $self->{solution} = { messaging_service_sid => $messaging_service_sid }; | |||||||||||
| 19 | 1 | $self->{uri} = join q{}, '/Services/', Twilio::Serialize::path_segment($messaging_service_sid), | |||||||||||
| 20 | '/Compliance/Usa2p/Usecases'; | ||||||||||||
| 21 | 1 | return $self; | |||||||||||
| 22 | } | ||||||||||||
| 23 | |||||||||||||
| 24 | 1 | ▶ | sub fetch { | ||||||||||
|
Subroutine
fetch: called CC=2 SCAR=7.0
| |||||||||||||
| 25 | 1 | my ($self, $options) = @_; | |||||||||||
| 26 | 1 | ▶ | $options //= {}; | ||||||||||
|
Condition50%1/2
$options //= {}
MC/DC0%0/1
$options //= {}
$options
Truth table50%1/2
A
A= $options
| |||||||||||||
| 27 | |||||||||||||
| 28 | my $response = $self->{version}->handle_request('GET', $self->{uri}, 'fetch', | ||||||||||||
| 29 | 1 | { params => { BrandRegistrationSid => $options->{brand_registration_sid}, } }); | |||||||||||
| 30 | return Twilio::Rest::Messaging::V1::Service::UsAppToPersonUsecaseInstance->new($self->{version}, | ||||||||||||
| 31 | 1 | $response->get_content, $self->{solution}{messaging_service_sid}); | |||||||||||
| 32 | } | ||||||||||||
| 33 | |||||||||||||
| 34 | package Twilio::Rest::Messaging::V1::Service::UsAppToPersonUsecaseInstance; | ||||||||||||
| 35 | |||||||||||||
| 36 | 2 | ▶ | use parent 'Twilio::InstanceResource'; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 37 | |||||||||||||
| 38 | 2 | ▶ | use Twilio::Deserialize; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 39 | |||||||||||||
| 40 | 1 | ▶ | sub new { | ||||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
| |||||||||||||
| 41 | 1 | my ($class, $version, $payload, $messaging_service_sid) = @_; | |||||||||||
| 42 | 1 | my $self = $class->SUPER::new($version, $payload); | |||||||||||
| 43 | 1 | $self->{solution} = { messaging_service_sid => $messaging_service_sid }; | |||||||||||
| 44 | 1 | return $self; | |||||||||||
| 45 | } | ||||||||||||
| 46 | |||||||||||||
| 47 | 1 | ▶ | sub us_app_to_person_usecases { return $_[0]{properties}{us_app_to_person_usecases} } | ||||||||||
|
Subroutine
us_app_to_person_usecases: called CC=1 SCAR=0.0
| |||||||||||||
| 48 | |||||||||||||
| 49 | 2 | 1; | |||||||||||
| 50 | |||||||||||||
| 51 | __END__ | ||||||||||||