line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
2
|
|
|
2
|
|
257965
|
use utf8; |
|
2
|
|
|
|
|
69
|
|
|
2
|
|
|
|
|
11
|
|
2
|
|
|
|
|
|
|
package WebService::KvKAPI::BasicProfile; |
3
|
|
|
|
|
|
|
our $VERSION = '0.105'; |
4
|
|
|
|
|
|
|
# ABSTRACT: Instance of OpenAPI client for Basisprofiel API of the KvK. |
5
|
|
|
|
|
|
|
|
6
|
2
|
|
|
2
|
|
128
|
use v5.26; |
|
2
|
|
|
|
|
8
|
|
7
|
2
|
|
|
2
|
|
1302
|
use Object::Pad; |
|
2
|
|
|
|
|
23595
|
|
|
2
|
|
|
|
|
10
|
|
8
|
2
|
|
|
2
|
|
1175
|
use WebService::KvKAPI::Formatters qw(format_kvk_number); |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
226
|
|
9
|
|
|
|
|
|
|
|
10
|
2
|
|
|
2
|
|
883
|
class WebService::KvKAPI::BasicProfile :does(WebService::KvKAPI::Roles::OpenAPI); |
|
2
|
|
|
|
|
9
|
|
|
2
|
|
|
|
|
180
|
|
11
|
|
|
|
|
|
|
|
12
|
6
|
|
|
6
|
1
|
32133
|
method get_basic_profile { |
13
|
6
|
|
|
|
|
20
|
my ($kvk, $geo) = @_; |
14
|
6
|
|
|
|
|
20
|
return $self->_api_call('getBasisprofielByKvkNummer', $kvk, $geo); |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
2
|
|
|
2
|
1
|
7506
|
method get_owner { |
18
|
2
|
|
|
|
|
8
|
my ($kvk, $geo) = @_; |
19
|
2
|
|
|
|
|
7
|
return $self->_api_call('getEigenaar', $kvk, $geo); |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
2
|
|
|
2
|
1
|
7483
|
method get_main_location { |
23
|
2
|
|
|
|
|
12
|
my ($kvk, $geo) = @_; |
24
|
2
|
|
|
|
|
8
|
return $self->_api_call('getHoofdvestiging', $kvk, $geo); |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
1
|
|
|
1
|
1
|
3969
|
method get_locations { |
28
|
1
|
|
|
|
|
4
|
my $kvk = shift; |
29
|
1
|
|
|
|
|
5
|
return $self->_api_call('getVestigingen', $kvk); |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
11
|
|
|
11
|
|
26
|
method _api_call { |
33
|
11
|
|
|
|
|
30
|
my ($op, $kvk, $geo) = @_; |
34
|
11
|
|
|
|
|
42
|
$kvk = format_kvk_number($kvk); |
35
|
11
|
100
|
|
|
|
34
|
$geo = $geo ? 1 : 0; |
36
|
11
|
100
|
|
|
|
60
|
return $self->api_call( |
37
|
|
|
|
|
|
|
$op, |
38
|
|
|
|
|
|
|
kvkNummer => $kvk, |
39
|
|
|
|
|
|
|
$geo ? (geoData => $geo) : (), |
40
|
|
|
|
|
|
|
); |
41
|
|
|
|
|
|
|
} |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
1; |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=pod |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=encoding UTF-8 |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head1 NAME |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
WebService::KvKAPI::BasicProfile - Instance of OpenAPI client for Basisprofiel API of the KvK. |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=head1 VERSION |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
version 0.105 |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=head1 AUTHOR |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
Wesley Schwengle |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
This software is Copyright (c) 2018 by Mintlab / Zaaksysteem.nl / xxllnc, see CONTRIBUTORS file for others. |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
This is free software, licensed under: |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
The European Union Public License (EUPL) v1.1 |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=cut |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
__DATA__ |