NAME

Net::Iugu::Customers - Net::Iugu::Customers - Methods to manage customers

VERSION

version 0.000002

SYNOPSIS

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

use Net::Iugu::Customers;

my $customers = Net::Iugu::Customers->new(
    token => 'my_api_token'
);

my $res;

$res = $customers->create( $data );
$res = $customers->read( $customer_id );
$res = $customers->update( $customer_id, $data );
$res = $customers->delete( $customer_id );
$res = $customers->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 customer.

read( $customer_id )

Inherited from Net::Iugu::CRUD, returns data of a customer.

update( $customer_id, $data )

Inherited from Net::Iugu::CRUD, updates a customer.

delete( $customer_id )

Inherited from Net::Iugu::CRUD, removes a customer.

list( $params )

Inherited from Net::Iugu::CRUD, lists all customers.

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.