NAME

Net::Iugu::MarketPlace - Net::Iugu::MarketPlace - Methods to manage marketplaces

VERSION

version 0.000002

SYNOPSIS

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

use Net::Iugu::MarketPlaces;

my $mp = Net::Iugu::MarketPlaces->new(
    token => 'my_api_token'
);

my $res;

$res = $mp->create_account( $data );
$res = $mp->request_account_verification( $user_token, $account_id, $data );
$res = $mp->account_info( $account_id );
$res = $mp->configurate_account( $user_token, $data );
$res = $mp->request_withdraw( $account_id, $amount );

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

METHODS

create_account( $data )

Creates a sub account.

request_account_verification( $user_token, $account_id, $data )

Requests a verification of the account $account_id. Note thath you must specify the $user_token of this account.

account_info( $account_id )

Return info about this account.

configurate_account( $user_token, $data )

(Re-)Configurates the account related to $user_token.

request_withdraw( $account_id, $amount )

Requests a withdraw of an amount $amount from the account $account_id.

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.