« Twilio/Rest/Marketplace/V1/ModuleData.pm
↑ Summary
Twilio/Rest/Video/V1/Room/Participant/Anonymize.pm »
| 1 | # Generated by tools/generate.pl from Twilio's OpenAPI specs. Do not edit this file. | ||||||||||||
| 2 | package Twilio::Rest::Verify::V2::Service::VerificationCheck; | ||||||||||||
| 3 | |||||||||||||
| 4 | 3 | ▶ | use 5.016; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 5 | 3 | ▶ | use warnings; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 6 | |||||||||||||
| 7 | 3 | our $VERSION = '2.001'; | |||||||||||
| 8 | |||||||||||||
| 9 | package Twilio::Rest::Verify::V2::Service::VerificationCheckList; | ||||||||||||
| 10 | |||||||||||||
| 11 | 3 | ▶ | use parent 'Twilio::ListResource'; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 12 | |||||||||||||
| 13 | 3 | ▶ | use Twilio::Serialize; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 14 | |||||||||||||
| 15 | 3 | ▶ | sub new { | ||||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
| |||||||||||||
| 16 | 3 | my ($class, $version, $service_sid) = @_; | |||||||||||
| 17 | 3 | my $self = $class->SUPER::new($version); | |||||||||||
| 18 | 3 | $self->{solution} = { service_sid => $service_sid }; | |||||||||||
| 19 | 3 | $self->{uri} = join q{}, '/Services/', Twilio::Serialize::path_segment($service_sid), | |||||||||||
| 20 | '/VerificationCheck'; | ||||||||||||
| 21 | 3 | return $self; | |||||||||||
| 22 | } | ||||||||||||
| 23 | |||||||||||||
| 24 | 3 | ▶ | sub create { | ||||||||||
|
Subroutine
create: called CC=2 SCAR=7.0
| |||||||||||||
| 25 | 3 | my ($self, $options) = @_; | |||||||||||
| 26 | 3 | ▶ | $options //= {}; | ||||||||||
|
Condition50%1/2
$options //= {}
MC/DC0%0/1
$options //= {}
$options
Truth table50%1/2
A
A= $options
| |||||||||||||
| 27 | |||||||||||||
| 28 | my $data = { | ||||||||||||
| 29 | Amount => $options->{amount}, | ||||||||||||
| 30 | Code => $options->{code}, | ||||||||||||
| 31 | Payee => $options->{payee}, | ||||||||||||
| 32 | SnaClientToken => $options->{sna_client_token}, | ||||||||||||
| 33 | To => $options->{to}, | ||||||||||||
| 34 | VerificationSid => $options->{verification_sid}, | ||||||||||||
| 35 | 3 | }; | |||||||||||
| 36 | |||||||||||||
| 37 | my $response = | ||||||||||||
| 38 | 3 | $self->{version}->handle_request('POST', $self->{uri}, 'create', { data => $data }); | |||||||||||
| 39 | return Twilio::Rest::Verify::V2::Service::VerificationCheckInstance->new($self->{version}, | ||||||||||||
| 40 | 3 | $response->get_content, $self->{solution}{service_sid}); | |||||||||||
| 41 | } | ||||||||||||
| 42 | |||||||||||||
| 43 | package Twilio::Rest::Verify::V2::Service::VerificationCheckInstance; | ||||||||||||
| 44 | |||||||||||||
| 45 | 3 | ▶ | use parent 'Twilio::InstanceResource'; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 46 | |||||||||||||
| 47 | 3 | ▶ | use Twilio::Deserialize; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 48 | |||||||||||||
| 49 | 3 | ▶ | sub new { | ||||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
| |||||||||||||
| 50 | 3 | my ($class, $version, $payload, $service_sid) = @_; | |||||||||||
| 51 | 3 | my $self = $class->SUPER::new($version, $payload); | |||||||||||
| 52 | 3 | $self->{solution} = { service_sid => $service_sid }; | |||||||||||
| 53 | 3 | return $self; | |||||||||||
| 54 | } | ||||||||||||
| 55 | |||||||||||||
| 56 | 2 | ▶ | sub account_sid { return $_[0]{properties}{account_sid} } | ||||||||||
|
Subroutine
account_sid: called CC=1 SCAR=0.0
| |||||||||||||
| 57 | 2 | ▶ | sub amount { return $_[0]{properties}{amount} } | ||||||||||
|
Subroutine
amount: called CC=1 SCAR=0.0
| |||||||||||||
| 58 | 2 | ▶ | sub channel { return $_[0]{properties}{channel} } | ||||||||||
|
Subroutine
channel: called CC=1 SCAR=0.0
| |||||||||||||
| 59 | 2 | ▶ | sub date_created { return Twilio::Deserialize::date_time($_[0]{properties}{date_created}) } | ||||||||||
|
Subroutine
date_created: called CC=1 SCAR=0.0
| |||||||||||||
| 60 | 2 | ▶ | sub date_updated { return Twilio::Deserialize::date_time($_[0]{properties}{date_updated}) } | ||||||||||
|
Subroutine
date_updated: called CC=1 SCAR=0.0
| |||||||||||||
| 61 | 2 | ▶ | sub payee { return $_[0]{properties}{payee} } | ||||||||||
|
Subroutine
payee: called CC=1 SCAR=0.0
| |||||||||||||
| 62 | 2 | ▶ | sub service_sid { return $_[0]{properties}{service_sid} } | ||||||||||
|
Subroutine
service_sid: called CC=1 SCAR=0.0
| |||||||||||||
| 63 | 2 | ▶ | sub sid { return $_[0]{properties}{sid} } | ||||||||||
|
Subroutine
sid: called CC=1 SCAR=0.0
| |||||||||||||
| 64 | 2 | ▶ | sub sna_attempts_error_codes { return $_[0]{properties}{sna_attempts_error_codes} } | ||||||||||
|
Subroutine
sna_attempts_error_codes: called CC=1 SCAR=0.0
| |||||||||||||
| 65 | 3 | ▶ | sub status { return $_[0]{properties}{status} } | ||||||||||
|
Subroutine
status: called CC=1 SCAR=0.0
| |||||||||||||
| 66 | 2 | ▶ | sub to { return $_[0]{properties}{to} } | ||||||||||
|
Subroutine
to: called CC=1 SCAR=0.0
| |||||||||||||
| 67 | 2 | ▶ | sub valid { return $_[0]{properties}{valid} } | ||||||||||
|
Subroutine
valid: called CC=1 SCAR=0.0
| |||||||||||||
| 68 | |||||||||||||
| 69 | 3 | 1; | |||||||||||
| 70 | |||||||||||||
| 71 | __END__ | ||||||||||||