Twilio/Rest/Marketplace/V1/ReferralConversion.pm

filter: Statementstmt 100% 33 / 33 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 10 / 10 Podpod n/a totaltotal 100% 43 / 43 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Twilio/Rest/Marketplace/V1/InstalledAddOn/InstalledAddOnUsage.pm ↑ Summary Twilio/Rest/Memory.pm »
1 # Generated by tools/generate.pl from Twilio's OpenAPI specs. Do not edit this file.
2 package Twilio::Rest::Marketplace::V1::ReferralConversion;
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::Marketplace::V1::ReferralConversionList;
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) = @_;
17 2 my $self = $class->SUPER::new($version);
18 2 $self->{solution} = {};
19 2 $self->{uri} = '/ReferralConversion';
20 2 return $self;
21 }
22  
23 2 ▶sub create {
Subroutine create: called CC=1 SCAR=0.0
24 2 my ($self, $body) = @_;
25  
26 2 my $data = Twilio::Serialize::json_body($body, {});
27  
28 my $response = $self->{version}->handle_request(
29 'POST',
30 $self->{uri},
31 2 'create',
32 {
33 data => $data,
34 headers => { 'Content-Type' => 'application/json', }
35 }
36 );
37 return Twilio::Rest::Marketplace::V1::ReferralConversionInstance->new($self->{version},
38 2 $response->get_content);
39 }
40  
41 package Twilio::Rest::Marketplace::V1::ReferralConversionInstance;
42  
43 2 ▶use parent 'Twilio::InstanceResource';
Subroutine BEGIN: called CC=1 SCAR=0.0
44  
45 2 ▶use Twilio::Deserialize;
Subroutine BEGIN: called CC=1 SCAR=0.0
46  
47 2 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
48 2 my ($class, $version, $payload) = @_;
49 2 my $self = $class->SUPER::new($version, $payload);
50 2 $self->{solution} = {};
51 2 return $self;
52 }
53  
54 2 ▶sub converted_account_sid { return $_[0]{properties}{converted_account_sid} }
Subroutine converted_account_sid: called CC=1 SCAR=0.0
55  
56 2 1;
57  
58 __END__
« Twilio/Rest/Marketplace/V1/InstalledAddOn/InstalledAddOnUsage.pm ↑ Summary Twilio/Rest/Memory.pm »