Net::Iugu::Subscriptions - Net::Iugu::Subscriptions - Methods to manage subscriptions
version 0.000002
Implements the API calls to manage subscriptions of Iugu accounts. It is used by the main module Net::Iugu and shouldn't be instantiated directly.
use Net::Iugu::Subscriptions; my $subs = Net::Iugu::Subscriptions->new( token => 'my_api_token' ); my $res; $res = $subs->create( $data ); $res = $subs->read( $subscription_id ); $res = $subs->update( $subscription_id, $data ); $res = $subs->delete( $subscription_id ); $res = $subs->list( $params ); $res = $subs->suspend( $subscription_id ); $res = $subs->activate( $subscription_id ); $res = $subs->change_plan( $subscription_id, $plan_id ); $res = $subs->add_credits( $subscription_id, $amount ); $res = $subs->remove_credits( $subscription_id, $amount );
For a detailed reference of params and return values check the Official Documentation.
Inherited from Net::Iugu::CRUD, creates a new subscription.
Inherited from Net::Iugu::CRUD, returns data of a subscription.
Inherited from Net::Iugu::CRUD, updates a subscription.
Inherited from Net::Iugu::CRUD, removes a subscription.
Inherited from Net::Iugu::CRUD, lists all subscriptions.
Suspends a subscription.
Activates a subscription.
Changes the plan of a subscrption.
Adds creditis to a subscription.
Removes credits from a subscription.
Blabos de Blebe <blabos@cpan.org>
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.
To install Net::Iugu, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Iugu
CPAN shell
perl -MCPAN -e shell install Net::Iugu
For more information on module installation, please visit the detailed CPAN module installation guide.