App-IndonesianNumberUtils
view release on metacpan or search on metacpan
script/parse-nop-pbb view on Meta::CPAN
#!perl
# Note: This script is a CLI for Riap function /Business/ID/NOPPBB/validate_nop_pbb
# and generated automatically using Perinci::CmdLine::Gen version 0.502
use 5.010001;
use strict;
use warnings;
use Log::ger;
use Perinci::CmdLine::Any;
our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
our $DATE = '2024-08-05'; # DATE
our $DIST = 'App-IndonesianNumberUtils'; # DIST
our $VERSION = '0.033'; # VERSION
my $cmdline = Perinci::CmdLine::Any->new(
url => "/Business/ID/NOPPBB/validate_nop_pbb",
program_name => "parse-nop-pbb",
log => 1,
read_config => 0,
read_env => 0,
);
$cmdline->run;
# ABSTRACT: Validate (and parse) Indonesian property tax number (NOP PBB)
# PODNAME: parse-nop-pbb
__END__
=pod
=encoding UTF-8
=head1 NAME
parse-nop-pbb - Validate (and parse) Indonesian property tax number (NOP PBB)
=head1 VERSION
This document describes version 0.033 of parse-nop-pbb (from Perl distribution App-IndonesianNumberUtils), released on 2024-08-05.
=head1 SYNOPSIS
B<parse-nop-pbb> B<L<--help|/"--help, -h, -?">> (or B<L<-h|/"--help, -h, -?">>, B<L<-?|/"--help, -h, -?">>)
B<parse-nop-pbb> B<L<--version|/"--version, -v">> (or B<L<-v|/"--version, -v">>)
B<parse-nop-pbb> [B<L<--debug|/"--debug">>|B<L<--log-level|/"--log-level=s">>=I<level>|B<L<--quiet|/"--quiet">>|B<L<--trace|/"--trace">>|B<L<--verbose|/"--verbose">>] [B<L<--format|/"--format=s">>=I<name>|B<L<--json|/"--json">>] [B<L<--(no)naked-res|...
=head1 DESCRIPTION
Indonesian property tax object number, or Nomor Objek Pajak Pajak Bumi dan
Bangunan, is a number given to a tax object (a piece of land with its
house/building).
NOP PBB is composed of 18 digits as follow:
AA.BB.CCC.DDD.EEE-XXXX.Y
AA is the province code from BPS. BB is locality (city/regency a.k.a
kota/kabupaten) code from BPS. CCC is district (kecamatan) code from BPS. DDD is
village (desa/kelurahan) code from BPS. EEE is block code. XXXX is the object
number. Y is a special code (it is most likely not a check digit, since it is
almost always has the value of 0).
The function will return status 200 if syntax is valid and return the parsed
information hash. Otherwise it will return 400.
Currently the length and AA code is checked against valid province code. There
is currently no way to check whether a specific NOP PBB actually exists, because
you would need to query Dirjen Pajak's database for that.
=head1 OPTIONS
C<*> marks required options.
( run in 0.945 second using v1.01-cache-2.11-cpan-39bf76dae61 )