Business::CPI::Role::Account::Address - Business::CPI role for Addresses
version 0.917
$cpi->create_account({ # ... address => { street => 'Av. ABC', number => '1000', complement => '7º andar', district => 'Bairro XYZ', city => 'Rio de Janeiro', state => 'RJ', country => 'br', }, # ... });
This role represents addresses in the context of accounts in gateways, both of individuals and companies.
The first line of the complete address. This may be set directly in the constructor, or it will be generated automatically using the other fields.
Second line of the complete address. As with the first line, it can be automatically generated using the other fields.
The name of the street, route, avenue, etc.
The address number in the street.
District, borough or neighborhood.
Complement, such as the apartment number, for example.
Zip or postal code.
The city of the address.
The state in which the city is located. Business::CPI will always store the code of the state, if it exists, even if the gateway expects the full name.
Locale::Country code for the country. You can set using the ISO 3166-1 two-letter code, or the full name in English. It will coerce it and store the ISO 3166-1 two-letter code.
Estante Virtual - http://www.estantevirtual.com.br
Business::CPI, Business::CPI::Role::Account, Business::CPI::Role::Account::Business
André Walker <andre@andrewalker.net>
This software is copyright (c) 2014 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.
To install Business::CPI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Business::CPI
CPAN shell
perl -MCPAN -e shell install Business::CPI
For more information on module installation, please visit the detailed CPAN module installation guide.