NAME
Net::Iugu::Plans - Net::Iugu::Plans - Methods to manage plans
VERSION
version 0.000002
SYNOPSIS
Implements the API calls to manage plans of Iugu accounts. It is used by the main module Net::Iugu and shouldn'tb e instantiated directly.
use Net::Iugu::Plans;
my $plans = Net::Iugu::Plans->new(
token => 'my_api_token'
);
my $res;
$res = $plans->create( $data );
$res = $plans->read( $plan_id );
$res = $plans->read_by_identifier( $plan_id );
$res = $plans->update( $plan_id, $data );
$res = $plans->delete( $plan_id );
$res = $plans->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 plan.
read( $plan_id )
Inherited from Net::Iugu::CRUD, returns data of a plan.
read_by_identifier( $identifier_id )
Returns data of a plan using an identifier ID.
update( $plan_id, $data )
Inherited from Net::Iugu::CRUD, updates a plan.
delete( $plan_id )
Inherited from Net::Iugu::CRUD, removes a plan.
list( $params )
Inherited from Net::Iugu::CRUD, lists all plans.
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.