| 1 | # Generated by tools/generate.pl from Twilio's OpenAPI specs. Do not edit this file. | ||
| 2 | package Twilio::Rest::Verify::V2::Service::NewVerifyFactor; | ||
| 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::NewVerifyFactorList; | ||
| 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/VerifyFactor'; | ||
| 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::NewVerifyFactorInstance->new($self->{version}, | ||
| 39 | 1 | $response->get_content, $self->{solution}{service_sid}); | |
| 40 | } | ||
| 41 | |||
| 42 | package Twilio::Rest::Verify::V2::Service::NewVerifyFactorInstance; | ||
| 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 config { return $_[0]{properties}{config} } |
|
Subroutine
config: called CC=1 SCAR=0.0
| |||
| 57 | 1 | ▶ | sub date_created { return Twilio::Deserialize::date_time($_[0]{properties}{date_created}) } |
|
Subroutine
date_created: 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 entity_sid { return $_[0]{properties}{entity_sid} } |
|
Subroutine
entity_sid: called CC=1 SCAR=0.0
| |||
| 60 | 1 | ▶ | sub factor_type { return $_[0]{properties}{factor_type} } |
|
Subroutine
factor_type: called CC=1 SCAR=0.0
| |||
| 61 | 1 | ▶ | sub friendly_name { return $_[0]{properties}{friendly_name} } |
|
Subroutine
friendly_name: called CC=1 SCAR=0.0
| |||
| 62 | 1 | ▶ | sub identity { return $_[0]{properties}{identity} } |
|
Subroutine
identity: called CC=1 SCAR=0.0
| |||
| 63 | 1 | ▶ | sub metadata { return $_[0]{properties}{metadata} } |
|
Subroutine
metadata: called CC=1 SCAR=0.0
| |||
| 64 | 1 | ▶ | sub service_sid { return $_[0]{properties}{service_sid} } |
|
Subroutine
service_sid: called CC=1 SCAR=0.0
| |||
| 65 | 1 | ▶ | sub sid { return $_[0]{properties}{sid} } |
|
Subroutine
sid: called CC=1 SCAR=0.0
| |||
| 66 | 1 | ▶ | sub status { return $_[0]{properties}{status} } |
|
Subroutine
status: called CC=1 SCAR=0.0
| |||
| 67 | 1 | ▶ | sub url { return $_[0]{properties}{url} } |
|
Subroutine
url: called CC=1 SCAR=0.0
| |||
| 68 | |||
| 69 | 2 | 1; | |
| 70 | |||
| 71 | __END__ | ||