NAME

Business::CPI::Account::Business - Business::CPI representation of corporations

VERSION

version 0.905

SYNOPSIS

$cpi->create_account({
    # ...
    business => {
        corporate_name => 'MyCompany Ltd.',
        trading_name   => 'MyCompany',
        phone          => '11 11110000',
        address        => {
            street     => 'Alameda Santos',
            number     => '321',
            complement => '3º andar',
            district   => 'Bairro Y',
            city       => 'São Paulo',
            state      => 'SP',
            country    => 'br',
        },
    },
    # ...
});

DESCRIPTION

This class represents information about businesses in the context of accounts in gateways. You shouldn't have to instantiate this yourself, but use the helpers provided by the gateway driver.

ATTRIBUTES

corporate_name

The complete corporate name of the company.

trading_name

The common trading name as the company is known.

phone

A phone number of the company.

address

See Business::CPI::Account::Address. You should provide a HashRef with the attributes, according to the Address class, and it will be inflated for you.

METHODS

BUILDARGS

Used to inflate address key in the constructor.

SPONSORED BY

Estante Virtual - http://www.estantevirtual.com.br

SEE ALSO

Business::CPI, Business::CPI::Account, Business::CPI::Account::Address

AUTHOR

André Walker <andre@andrewalker.net>

COPYRIGHT AND LICENSE

This software is copyright (c) 2013 by André Walker.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.