| 1 | # Generated by tools/generate.pl from Twilio's OpenAPI specs. Do not edit this file. | ||||||||||||
| 2 | package Twilio::Rest::Memory::V1::IdentityResolutionSetting; | ||||||||||||
| 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::Memory::V1::IdentityResolutionSettingList; | ||||||||||||
| 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 | 2 | ▶ | sub new { | ||||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
| |||||||||||||
| 16 | 2 | my ($class, $version, $store_id) = @_; | |||||||||||
| 17 | 2 | my $self = $class->SUPER::new($version); | |||||||||||
| 18 | 2 | $self->{solution} = { store_id => $store_id }; | |||||||||||
| 19 | 2 | $self->{uri} = join q{}, '/ControlPlane/Stores/', Twilio::Serialize::path_segment($store_id), | |||||||||||
| 20 | '/IdentityResolutionSettings'; | ||||||||||||
| 21 | 2 | return $self; | |||||||||||
| 22 | } | ||||||||||||
| 23 | |||||||||||||
| 24 | 1 | ▶ | sub fetch { | ||||||||||
|
Subroutine
fetch: called CC=1 SCAR=0.0
| |||||||||||||
| 25 | 1 | my ($self) = @_; | |||||||||||
| 26 | |||||||||||||
| 27 | 1 | my $response = $self->{version}->handle_request('GET', $self->{uri}, 'fetch'); | |||||||||||
| 28 | return Twilio::Rest::Memory::V1::IdentityResolutionSettingInstance->new($self->{version}, | ||||||||||||
| 29 | 1 | $response->get_content, $self->{solution}{store_id}); | |||||||||||
| 30 | } | ||||||||||||
| 31 | |||||||||||||
| 32 | 1 | ▶ | sub update { | ||||||||||
|
Subroutine
update: called CC=2 SCAR=7.0
| |||||||||||||
| 33 | 1 | my ($self, $body, $options) = @_; | |||||||||||
| 34 | 1 | ▶ | $options //= {}; | ||||||||||
|
Condition50%1/2
$options //= {}
MC/DC0%0/1
$options //= {}
$options
Truth table50%1/2
A
A= $options
| |||||||||||||
| 35 | |||||||||||||
| 36 | 1 | my $data = Twilio::Serialize::json_body($body, {}); | |||||||||||
| 37 | |||||||||||||
| 38 | my $response = $self->{version}->handle_request( | ||||||||||||
| 39 | 'PUT', | ||||||||||||
| 40 | $self->{uri}, | ||||||||||||
| 41 | 'update', | ||||||||||||
| 42 | { | ||||||||||||
| 43 | data => $data, | ||||||||||||
| 44 | headers => { | ||||||||||||
| 45 | 'Content-Type' => 'application/json', | ||||||||||||
| 46 | 'If-Match' => $options->{if_match}, | ||||||||||||
| 47 | } | ||||||||||||
| 48 | } | ||||||||||||
| 49 | 1 | ); | |||||||||||
| 50 | return Twilio::Rest::Memory::V1::UpdateIdentityResolutionSettings202ResponseInstance->new( | ||||||||||||
| 51 | 1 | $self->{version}, $response->get_content); | |||||||||||
| 52 | } | ||||||||||||
| 53 | |||||||||||||
| 54 | package Twilio::Rest::Memory::V1::IdentityResolutionSettingInstance; | ||||||||||||
| 55 | |||||||||||||
| 56 | 2 | ▶ | use parent 'Twilio::InstanceResource'; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 57 | |||||||||||||
| 58 | 2 | ▶ | use Twilio::Deserialize; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 59 | |||||||||||||
| 60 | 1 | ▶ | sub new { | ||||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
| |||||||||||||
| 61 | 1 | my ($class, $version, $payload, $store_id) = @_; | |||||||||||
| 62 | 1 | my $self = $class->SUPER::new($version, $payload); | |||||||||||
| 63 | 1 | $self->{solution} = { store_id => $store_id }; | |||||||||||
| 64 | 1 | return $self; | |||||||||||
| 65 | } | ||||||||||||
| 66 | |||||||||||||
| 67 | 1 | ▶ | sub identifier_configs { return $_[0]{properties}{identifierConfigs} } | ||||||||||
|
Subroutine
identifier_configs: called CC=1 SCAR=0.0
| |||||||||||||
| 68 | 1 | ▶ | sub matching_rules { return $_[0]{properties}{matchingRules} } | ||||||||||
|
Subroutine
matching_rules: called CC=1 SCAR=0.0
| |||||||||||||
| 69 | 1 | ▶ | sub version { return $_[0]{properties}{version} } | ||||||||||
|
Subroutine
version: called CC=1 SCAR=0.0
| |||||||||||||
| 70 | |||||||||||||
| 71 | package Twilio::Rest::Memory::V1::UpdateIdentityResolutionSettings202ResponseInstance; | ||||||||||||
| 72 | |||||||||||||
| 73 | 2 | ▶ | use parent 'Twilio::InstanceResource'; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 74 | |||||||||||||
| 75 | 2 | ▶ | use Twilio::Deserialize; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 76 | |||||||||||||
| 77 | 1 | ▶ | sub message { return $_[0]{properties}{message} } | ||||||||||
|
Subroutine
message: called CC=1 SCAR=0.0
| |||||||||||||
| 78 | 1 | ▶ | sub status_url { return $_[0]{properties}{statusUrl} } | ||||||||||
|
Subroutine
status_url: called CC=1 SCAR=0.0
| |||||||||||||
| 79 | |||||||||||||
| 80 | 2 | 1; | |||||||||||
| 81 | |||||||||||||
| 82 | __END__ | ||||||||||||