NAME

Net::Iugu::PaymentMethods - Net::Iugu::PaymentMethods - Methods to manage payment methods

VERSION

version 0.000002

SYNOPSIS

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

use Net::Iugu::PaymentMethods;

my $methods = Net::Iugu::PaymentMethods->new(
    token => 'my_api_token'
);

my $res;

$res = $methods->create( $data );
$res = $methods->read(   $customer_id, $method_id );
$res = $methods->update( $customer_id, $method_id, $data );
$res = $methods->delete( $customer_id, $method_id );
$res = $methods->list( $params );

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

METHODS

create( $data )

Creates a new payment method for a client.

read( $customer_id, $payment_method_id )

Returns data of a payment method of a client.

update( $customer_id, $payment_method_id, $data )

Updates a payment method of a client.

delete( $customer_id, $payment_method_id )

Removes a payment method of a client.

list( $customer_id, $params )

Lists all payment methods of a client.

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.