File Coverage

blib/lib/Stancer/Exceptions/InvalidExpirationMonth.pm
Criterion Covered Total %
statement 14 14 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod n/a
total 19 19 100.0


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