Twilio/Rest/Verify/V2/Service/ApproveChallenge.pm

filter: Statementstmt 100% 51 / 51 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 28 / 28 Podpod n/a totaltotal 100% 79 / 79 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Twilio/Rest/Verify.pm ↑ Summary Twilio/Rest/Verify/V2/Service/NewFactor.pm »
1 # Generated by tools/generate.pl from Twilio's OpenAPI specs. Do not edit this file.
2 package Twilio::Rest::Verify::V2::Service::ApproveChallenge;
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::Verify::V2::Service::ApproveChallengeList;
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, $service_sid) = @_;
17 1 my $self = $class->SUPER::new($version);
18 1 $self->{solution} = { service_sid => $service_sid };
19 1 $self->{uri} = join q{}, '/Services/', Twilio::Serialize::path_segment($service_sid),
20 '/Passkeys/ApproveChallenge';
21 1 return $self;
22 }
23  
24 1 ▶sub update {
Subroutine update: called CC=1 SCAR=0.0
25 1 my ($self, $body) = @_;
26  
27 1 my $data = Twilio::Serialize::json_body($body, {});
28  
29 my $response = $self->{version}->handle_request(
30 'POST',
31 $self->{uri},
32 1 'update',
33 {
34 data => $data,
35 headers => { 'Content-Type' => 'application/json', }
36 }
37 );
38 return Twilio::Rest::Verify::V2::Service::ApproveChallengeInstance->new($self->{version},
39 1 $response->get_content, $self->{solution}{service_sid});
40 }
41  
42 package Twilio::Rest::Verify::V2::Service::ApproveChallengeInstance;
43  
44 2 ▶use parent 'Twilio::InstanceResource';
Subroutine BEGIN: called CC=1 SCAR=0.0
45  
46 2 ▶use Twilio::Deserialize;
Subroutine BEGIN: called CC=1 SCAR=0.0
47  
48 1 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
49 1 my ($class, $version, $payload, $service_sid) = @_;
50 1 my $self = $class->SUPER::new($version, $payload);
51 1 $self->{solution} = { service_sid => $service_sid };
52 1 return $self;
53 }
54  
55 1 ▶sub account_sid { return $_[0]{properties}{account_sid} }
Subroutine account_sid: called CC=1 SCAR=0.0
56 1 ▶sub date_created { return Twilio::Deserialize::date_time($_[0]{properties}{date_created}) }
Subroutine date_created: called CC=1 SCAR=0.0
57 1 ▶sub date_responded { return Twilio::Deserialize::date_time($_[0]{properties}{date_responded}) }
Subroutine date_responded: called CC=1 SCAR=0.0
58 1 ▶sub date_updated { return Twilio::Deserialize::date_time($_[0]{properties}{date_updated}) }
Subroutine date_updated: called CC=1 SCAR=0.0
59 1 ▶sub details { return $_[0]{properties}{details} }
Subroutine details: called CC=1 SCAR=0.0
60 1 ▶sub entity_sid { return $_[0]{properties}{entity_sid} }
Subroutine entity_sid: called CC=1 SCAR=0.0
61 1 ▶sub expiration_date { return Twilio::Deserialize::date_time($_[0]{properties}{expiration_date}) }
Subroutine expiration_date: called CC=1 SCAR=0.0
62 1 ▶sub factor_sid { return $_[0]{properties}{factor_sid} }
Subroutine factor_sid: called CC=1 SCAR=0.0
63 1 ▶sub factor_type { return $_[0]{properties}{factor_type} }
Subroutine factor_type: called CC=1 SCAR=0.0
64 1 ▶sub hidden_details { return $_[0]{properties}{hidden_details} }
Subroutine hidden_details: called CC=1 SCAR=0.0
65 1 ▶sub identity { return $_[0]{properties}{identity} }
Subroutine identity: called CC=1 SCAR=0.0
66 1 ▶sub links { return $_[0]{properties}{links} }
Subroutine links: called CC=1 SCAR=0.0
67 1 ▶sub metadata { return $_[0]{properties}{metadata} }
Subroutine metadata: called CC=1 SCAR=0.0
68 1 ▶sub options { return $_[0]{properties}{options} }
Subroutine options: called CC=1 SCAR=0.0
69 1 ▶sub responded_reason { return $_[0]{properties}{responded_reason} }
Subroutine responded_reason: called CC=1 SCAR=0.0
70 1 ▶sub service_sid { return $_[0]{properties}{service_sid} }
Subroutine service_sid: called CC=1 SCAR=0.0
71 1 ▶sub sid { return $_[0]{properties}{sid} }
Subroutine sid: called CC=1 SCAR=0.0
72 1 ▶sub status { return $_[0]{properties}{status} }
Subroutine status: called CC=1 SCAR=0.0
73 1 ▶sub url { return $_[0]{properties}{url} }
Subroutine url: called CC=1 SCAR=0.0
74  
75 2 1;
76  
77 __END__
« Twilio/Rest/Verify.pm ↑ Summary Twilio/Rest/Verify/V2/Service/NewFactor.pm »