Iugu/Invoices.pm untested

filter: Statementstmt 0.0% 0 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 17 SCAR 6.9
CC
1
Cov
0%
cancel
2.0
refund
2.0
BEGIN
2.0
CRAP 2.0
1 package Net::Iugu::Invoices;
2 $Net::Iugu::Invoices::VERSION = '0.000001';
3 use Moo;
4 extends 'Net::Iugu::CRUD';
5  
6 sub cancel {
7 my ( $self, $invoice_id ) = @_;
8  
9 my $uri = $self->endpoint . '/' . $invoice_id . '/cancel';
10  
11 return $self->request( PUT => $uri );
12 }
13  
14 sub refund {
15 my ( $self, $invoice_id ) = @_;
16  
17 my $uri = $self->endpoint . '/' . $invoice_id . '/refund';
18  
19 return $self->request( POST => $uri );
20 }
21  
22 1;
23  
24 # ABSTRACT: Net::Iugu::Invoices - Methods to manage invoices
25  
26 __END__