Docusign/changeEnvelopeStatus.pm

filter: Statementstmt 59.0% 13 / 22 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 0.0% 0 / 1 totaltotal 56.6% 17 / 30 CC 2 SCAR 9.8
CC
2
Cov
54%
new
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.7
« Docusign/requestSignatureFromTemplate.pm ↑ Summary Docusign/getEnvelopeRecipients.pm »
1 package Document::eSign::Docusign::changeEnvelopeStatus;
2 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use Data::Dumper;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 =head1 NAME
8  
9 Document::eSign::Docusign::changeEnvelopeStatus - Changes an envelope status.
10  
11 =head1 VERSION
12  
13 Version 0.02
14  
15 =cut
16  
17 =head1 functions
18  
19 =head2 changeEnvelopeStatus($hashref)
20  
21 my $response = $ds->changeEnvelopeStatus(
22 {
23 accountId => $ds->accountid,
24 envelopeId => 'envelopeId',
25 status => 'sent' # or voided
26 }
27 );
28
29 For more complicated examples, refer to Docusign's API Documentation.
30  
31 =cut
32  
33 0 ▶sub new {
Subroutine new: not called CC=2 SCAR=17.9
Pod undocumented
34 0 ▶ carp("Got sign template request: " . Dumper(@_)) if $_[1]->debug;
Branch: 1 branch
BranchTrueFalseTotal
if $_[1]->debug 0 0 0
35 0 my $class = shift;
36 0 my $main = shift;
37 0 my $vars = shift;
38
39 0 my $self = bless {}, $class;
40
41 0 my $uri = '/envelopes/' . $vars->{envelopeId};
42
43 0 my $creds = $main->buildCredentials();
44
45 0 my $response = $main->sendRequest('PUT', 'application/json', $creds, $main->baseUrl . $uri, $vars);
46
47 0 return $response;
48 }
49  
50  
51 1 1;
« Docusign/requestSignatureFromTemplate.pm ↑ Summary Docusign/getEnvelopeRecipients.pm »