| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Stancer::Core::Types; |
|
2
|
|
|
|
|
|
|
|
|
3
|
59
|
|
|
59
|
|
212828
|
use 5.020; |
|
|
59
|
|
|
|
|
260
|
|
|
4
|
59
|
|
|
59
|
|
421
|
use strict; |
|
|
59
|
|
|
|
|
177
|
|
|
|
59
|
|
|
|
|
1675
|
|
|
5
|
59
|
|
|
59
|
|
263
|
use warnings; |
|
|
59
|
|
|
|
|
151
|
|
|
|
59
|
|
|
|
|
4971
|
|
|
6
|
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
# ABSTRACT: Internal types |
|
8
|
|
|
|
|
|
|
our $VERSION = '1.0.3'; # VERSION |
|
9
|
|
|
|
|
|
|
|
|
10
|
59
|
|
|
59
|
|
468
|
use base qw(Exporter); |
|
|
59
|
|
|
|
|
169
|
|
|
|
59
|
|
|
|
|
12032
|
|
|
11
|
|
|
|
|
|
|
our @EXPORT_OK = (); |
|
12
|
|
|
|
|
|
|
|
|
13
|
59
|
|
|
59
|
|
26234
|
use namespace::clean; |
|
|
59
|
|
|
|
|
871854
|
|
|
|
59
|
|
|
|
|
515
|
|
|
14
|
|
|
|
|
|
|
|
|
15
|
59
|
|
|
59
|
|
17834
|
use Exporter qw(import); |
|
|
59
|
|
|
|
|
149
|
|
|
|
59
|
|
|
|
|
2466
|
|
|
16
|
59
|
|
|
59
|
|
32832
|
use Stancer::Core::Types::ApiKeys qw(:all); |
|
|
59
|
|
|
|
|
282
|
|
|
|
59
|
|
|
|
|
14406
|
|
|
17
|
59
|
|
|
59
|
|
40624
|
use Stancer::Core::Types::Bank qw(:all); |
|
|
59
|
|
|
|
|
336
|
|
|
|
59
|
|
|
|
|
17410
|
|
|
18
|
59
|
|
|
59
|
|
35779
|
use Stancer::Core::Types::Bases qw(:all); |
|
|
59
|
|
|
|
|
226
|
|
|
|
59
|
|
|
|
|
15632
|
|
|
19
|
59
|
|
|
59
|
|
36311
|
use Stancer::Core::Types::Dates qw(:all); |
|
|
59
|
|
|
|
|
260
|
|
|
|
59
|
|
|
|
|
10528
|
|
|
20
|
59
|
|
|
59
|
|
588
|
use Stancer::Core::Types::Helper qw(:all); |
|
|
59
|
|
|
|
|
194
|
|
|
|
59
|
|
|
|
|
9343
|
|
|
21
|
59
|
|
|
59
|
|
33729
|
use Stancer::Core::Types::Network qw(:all); |
|
|
59
|
|
|
|
|
271
|
|
|
|
59
|
|
|
|
|
11015
|
|
|
22
|
59
|
|
|
59
|
|
31867
|
use Stancer::Core::Types::Object qw(:all); |
|
|
59
|
|
|
|
|
295
|
|
|
|
59
|
|
|
|
|
15930
|
|
|
23
|
59
|
|
|
59
|
|
37123
|
use Stancer::Core::Types::String qw(:all); |
|
|
59
|
|
|
|
|
276
|
|
|
|
59
|
|
|
|
|
23283
|
|
|
24
|
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
our %EXPORT_TAGS = ( |
|
26
|
|
|
|
|
|
|
all => \@EXPORT_OK, |
|
27
|
|
|
|
|
|
|
api => \@Stancer::Core::Types::ApiKeys::EXPORT_OK, |
|
28
|
|
|
|
|
|
|
bank => \@Stancer::Core::Types::Bank::EXPORT_OK, |
|
29
|
|
|
|
|
|
|
bases => \@Stancer::Core::Types::Bases::EXPORT_OK, |
|
30
|
|
|
|
|
|
|
dates => \@Stancer::Core::Types::Dates::EXPORT_OK, |
|
31
|
|
|
|
|
|
|
helper => \@Stancer::Core::Types::Helper::EXPORT_OK, |
|
32
|
|
|
|
|
|
|
network => \@Stancer::Core::Types::Network::EXPORT_OK, |
|
33
|
|
|
|
|
|
|
object => \@Stancer::Core::Types::Object::EXPORT_OK, |
|
34
|
|
|
|
|
|
|
str => \@Stancer::Core::Types::String::EXPORT_OK, |
|
35
|
|
|
|
|
|
|
); |
|
36
|
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
push @EXPORT_OK, map { @{$_} } values %EXPORT_TAGS; |
|
38
|
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
1; |
|
40
|
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
__END__ |
|
42
|
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=pod |
|
44
|
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=encoding UTF-8 |
|
46
|
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head1 NAME |
|
48
|
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
Stancer::Core::Types - Internal types |
|
50
|
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=head1 VERSION |
|
52
|
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
version 1.0.3 |
|
54
|
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=head1 USAGE |
|
56
|
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head2 Logging |
|
58
|
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
We use the L<Log::Any> framework for logging events. |
|
62
|
|
|
|
|
|
|
You may tell where it should log using any available L<Log::Any::Adapter> module. |
|
63
|
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
For example, to log everything to a file you just have to add a line to your script, like this: |
|
65
|
|
|
|
|
|
|
#! /usr/bin/env perl |
|
66
|
|
|
|
|
|
|
use Log::Any::Adapter (File => '/var/log/payment.log'); |
|
67
|
|
|
|
|
|
|
use Stancer::Core::Types; |
|
68
|
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
You must import C<Log::Any::Adapter> before our libraries, to initialize the logger instance before use. |
|
70
|
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
You can choose your log level on import directly: |
|
72
|
|
|
|
|
|
|
use Log::Any::Adapter (File => '/var/log/payment.log', log_level => 'info'); |
|
73
|
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
Read the L<Log::Any> documentation to know what other options you have. |
|
75
|
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
=cut |
|
77
|
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
=head1 SECURITY |
|
79
|
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
=over |
|
81
|
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
=item * |
|
83
|
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
Never, never, NEVER register a card or a bank account number in your database. |
|
85
|
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
=item * |
|
87
|
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
Always uses HTTPS in card/SEPA in communication. |
|
89
|
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
=item * |
|
91
|
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
Our API will never give you a complete card/SEPA number, only the last four digits. |
|
93
|
|
|
|
|
|
|
If you need to keep track, use these last four digit. |
|
94
|
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
=back |
|
96
|
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
=cut |
|
98
|
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
=head1 BUGS |
|
100
|
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
Please report any bugs or feature requests on the bugtracker website |
|
102
|
|
|
|
|
|
|
L<https://gitlab.com/wearestancer/library/lib-perl/-/issues> or by email to |
|
103
|
|
|
|
|
|
|
L<bug-stancer@rt.cpan.org|mailto:bug-stancer@rt.cpan.org>. |
|
104
|
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
When submitting a bug or request, please include a test-file or a |
|
106
|
|
|
|
|
|
|
patch to an existing test-file that illustrates the bug or desired |
|
107
|
|
|
|
|
|
|
feature. |
|
108
|
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
=head1 AUTHOR |
|
110
|
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
Joel Da Silva <jdasilva@cpan.org> |
|
112
|
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
|
114
|
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
This software is Copyright (c) 2018-2024 by Stancer / Iliad78. |
|
116
|
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
This is free software, licensed under: |
|
118
|
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
The Artistic License 2.0 (GPL Compatible) |
|
120
|
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
=cut |