NAME
Business::RU::INN
SYNOPSIS
package myDecorator;
use Moose;
has 'inn' => ( is => 'ro', isa => 'Int' );
with 'Business::RU::INN';
...
my $decorator = myDecorator -> new( inn => 123456789 );
if( $decorator -> validate_inn() ) {
... success ...
} else {
... process error ...
}
if( $decorator -> is_company() ) {
... process company data ..
}
if( $decorator -> is_individual() ) {
... process data ..
}
DESCRIPTION
Validate russian individual taxpayer number. NOTE: This role expects that it's consuming class will have a inn()
method.
METHODS
validate_inn()
Validate INN. return true if INN valid
_validate_individual_inn()
Validate short INN. Internal method.
_validate_company_inn()
Validate long INN. Internal method.
is_individual()
Returns true if INN personal
is_company()
Raturns trus if it's company.
SEE ALSO
BUGS
Please report any bugs through the web interface at http://rt.cpan.org or https://github.com/GermanS/Business-RU
AUTHOR
German Semenkov german.semenkov@gmail.com
COPYRIGHT AND LICENSE
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.