NAME

Net::Iugu::Invoices - Net::Iugu::Invoices - Methods to manage invoices

VERSION

version 0.000002

SYNOPSIS

Implements the API calls to manage invoices of Iugu accounts. It is used by the main module Net::Iugu and shouldn't be instantiated directly.

use Net::Iugu::Invoices;

my $invoices = Net::Iugu::Invoices->new(
    token => 'my_api_token'
);

my $res;

$res = $invoices->create( $data );
$res = $invoices->read( $invoice_id );
$res = $invoices->update( $invoice_id, $data );
$res = $invoices->delete( $invoice_id );
$res = $invoices->cancel( $invoice_id );
$res = $invoices->refund( $invoice_id );
$res = $invoices->list( $params );

For a detailed reference of params and return values check the Official Documentation.

METHODS

create( $data )

Inherited from Net::Iugu::CRUD, creates a new invoice.

read( $invoice_id )

Inherited from Net::Iugu::CRUD, returns data of an invoice.

update( $invoice_id, $data )

Inherited from Net::Iugu::CRUD, updates an invoice.

delete( $invoice_id )

Inherited from Net::Iugu::CRUD, removes an invoice.

cancel( $invoice_id )

Cancels an invoice.

refund( $invoice_id )

Refunds an invoice.

list( $params )

Lists all invoices.

AUTHOR

Blabos de Blebe <blabos@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2015 by Blabos de Blebe.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.