line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
1
|
|
|
1
|
|
122319
|
use utf8; |
|
1
|
|
|
|
|
25
|
|
|
1
|
|
|
|
|
6
|
|
2
|
|
|
|
|
|
|
package WebService::KvKAPI::Search; |
3
|
|
|
|
|
|
|
our $VERSION = '0.105'; |
4
|
|
|
|
|
|
|
# ABSTRACT: WebService::KvKAPI::Search package needs a propper abstract |
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
63
|
use v5.26; |
|
1
|
|
|
|
|
3
|
|
7
|
1
|
|
|
1
|
|
614
|
use Object::Pad; |
|
1
|
|
|
|
|
11301
|
|
|
1
|
|
|
|
|
6
|
|
8
|
1
|
|
|
1
|
|
525
|
use WebService::KvKAPI::Formatters ':all'; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
186
|
|
9
|
|
|
|
|
|
|
|
10
|
1
|
|
|
1
|
|
411
|
class WebService::KvKAPI::Search :does(WebService::KvKAPI::Roles::OpenAPI); |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
76
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
my @valid_params = qw( |
13
|
|
|
|
|
|
|
kvkNummer |
14
|
|
|
|
|
|
|
rsin |
15
|
|
|
|
|
|
|
vestigingsnummer |
16
|
|
|
|
|
|
|
handelsnaam |
17
|
|
|
|
|
|
|
straatnaam |
18
|
|
|
|
|
|
|
plaats |
19
|
|
|
|
|
|
|
postcode |
20
|
|
|
|
|
|
|
huisnummer |
21
|
|
|
|
|
|
|
type |
22
|
|
|
|
|
|
|
InclusiefInactieveRegistraties |
23
|
|
|
|
|
|
|
pagina |
24
|
|
|
|
|
|
|
aantal |
25
|
|
|
|
|
|
|
); |
26
|
|
|
|
|
|
|
|
27
|
1
|
|
|
1
|
1
|
134
|
method search { |
28
|
1
|
|
|
|
|
7
|
my %args = @_; |
29
|
|
|
|
|
|
|
|
30
|
1
|
50
|
|
|
|
6
|
if ($args{kvkNummer}) { |
31
|
1
|
|
|
|
|
8
|
$args{kvkNummer} = format_kvk_number($args{kvkNummer}); |
32
|
|
|
|
|
|
|
} |
33
|
1
|
50
|
|
|
|
5
|
if ($args{rsin}) { |
34
|
1
|
|
|
|
|
7
|
$args{rsin} = format_rsin($args{rsin}); |
35
|
|
|
|
|
|
|
} |
36
|
1
|
50
|
|
|
|
4
|
if ($args{vestigingsnummer}) { |
37
|
1
|
|
|
|
|
5
|
$args{vestigingsnummer} = format_location_number($args{vestigingsnummer}); |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
1
|
|
|
|
|
3
|
my %params; |
41
|
1
|
|
|
|
|
4
|
foreach (@valid_params) { |
42
|
12
|
100
|
|
|
|
34
|
next unless exists $args{$_}; |
43
|
3
|
|
|
|
|
9
|
$params{$_} = delete $args{$_}; |
44
|
|
|
|
|
|
|
} |
45
|
|
|
|
|
|
|
|
46
|
1
|
|
|
|
|
8
|
return $self->api_call('getResults', %params); |
47
|
|
|
|
|
|
|
} |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
1; |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=pod |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=encoding UTF-8 |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=head1 NAME |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
WebService::KvKAPI::Search - WebService::KvKAPI::Search package needs a propper abstract |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=head1 VERSION |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
version 0.105 |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=head1 AUTHOR |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
Wesley Schwengle |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
This software is Copyright (c) 2018 by Mintlab / Zaaksysteem.nl / xxllnc, see CONTRIBUTORS file for others. |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
This is free software, licensed under: |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
The European Union Public License (EUPL) v1.1 |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=cut |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
__DATA__ |