File Coverage

blib/lib/Stancer/Sepa/Check/Status.pm
Criterion Covered Total %
statement 17 17 100.0
branch n/a
condition n/a
subroutine 6 6 100.0
pod n/a
total 23 23 100.0


line stmt bran cond sub pod time code
1             package Stancer::Sepa::Check::Status;
2              
3 19     19   350729 use 5.020;
  19         78  
4 19     19   170 use strict;
  19         43  
  19         590  
5 19     19   89 use warnings;
  19         64  
  19         1533  
6              
7             # ABSTRACT: Sepa check status values
8             our $VERSION = '1.0.3'; # VERSION
9              
10 19     19   1899 use Moo;
  19         20836  
  19         281  
11 19     19   14842 use namespace::clean;
  19         39343  
  19         285  
12              
13             use constant {
14 19         2674 AVAILABLE => 'available',
15             CHECK_ERROR => 'check_error',
16             CHECK_SENT => 'check_sent',
17             CHECKED => 'checked',
18             UNAVAILABLE => 'unavailable',
19 19     19   7453 };
  19         50  
20              
21             1;
22              
23             __END__
24              
25             =pod
26              
27             =encoding UTF-8
28              
29             =head1 NAME
30              
31             Stancer::Sepa::Check::Status - Sepa check status values
32              
33             =head1 VERSION
34              
35             version 1.0.3
36              
37             =head1 USAGE
38              
39             =head2 Logging
40              
41              
42              
43             We use the L<Log::Any> framework for logging events.
44             You may tell where it should log using any available L<Log::Any::Adapter> module.
45              
46             For example, to log everything to a file you just have to add a line to your script, like this:
47             #! /usr/bin/env perl
48             use Log::Any::Adapter (File => '/var/log/payment.log');
49             use Stancer::Sepa::Check::Status;
50              
51             You must import C<Log::Any::Adapter> before our libraries, to initialize the logger instance before use.
52              
53             You can choose your log level on import directly:
54             use Log::Any::Adapter (File => '/var/log/payment.log', log_level => 'info');
55              
56             Read the L<Log::Any> documentation to know what other options you have.
57              
58             =cut
59              
60             =head1 SECURITY
61              
62             =over
63              
64             =item *
65              
66             Never, never, NEVER register a card or a bank account number in your database.
67              
68             =item *
69              
70             Always uses HTTPS in card/SEPA in communication.
71              
72             =item *
73              
74             Our API will never give you a complete card/SEPA number, only the last four digits.
75             If you need to keep track, use these last four digit.
76              
77             =back
78              
79             =cut
80              
81             =head1 BUGS
82              
83             Please report any bugs or feature requests on the bugtracker website
84             L<https://gitlab.com/wearestancer/library/lib-perl/-/issues> or by email to
85             L<bug-stancer@rt.cpan.org|mailto:bug-stancer@rt.cpan.org>.
86              
87             When submitting a bug or request, please include a test-file or a
88             patch to an existing test-file that illustrates the bug or desired
89             feature.
90              
91             =head1 AUTHOR
92              
93             Joel Da Silva <jdasilva@cpan.org>
94              
95             =head1 COPYRIGHT AND LICENSE
96              
97             This software is Copyright (c) 2018-2024 by Stancer / Iliad78.
98              
99             This is free software, licensed under:
100              
101             The Artistic License 2.0 (GPL Compatible)
102              
103             =cut