File Coverage

blib/lib/Stancer/Refund/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::Refund::Status;
2              
3 16     16   312301 use 5.020;
  16         64  
4 16     16   110 use strict;
  16         31  
  16         831  
5 16     16   118 use warnings;
  16         32  
  16         1377  
6              
7             # ABSTRACT: Refund status values
8             our $VERSION = '1.0.3'; # VERSION
9              
10 16     16   1089 use Moo;
  16         20783  
  16         110  
11 16     16   16004 use namespace::clean;
  16         41443  
  16         154  
12              
13             use constant {
14 16         2021 NOT_HONORED => 'not_honored',
15             PAYMENT_CANCELED => 'payment_canceled',
16             REFUND_SENT => 'refund_sent',
17             REFUNDED => 'refunded',
18             TO_REFUND => 'to_refund',
19 16     16   5525 };
  16         38  
20              
21              
22             1;
23              
24             __END__
25              
26             =pod
27              
28             =encoding UTF-8
29              
30             =head1 NAME
31              
32             Stancer::Refund::Status - Refund status values
33              
34             =head1 VERSION
35              
36             version 1.0.3
37              
38             =head1
39              
40             =head2 failed
41              
42             The refund has failed, refer to the response field for more details.
43              
44             =head2 not_honored
45              
46             When payment is disputed while trying to refund.
47              
48             =head2 refund_sent
49              
50             The refund has been sent to the bank, awaiting an answer.
51              
52             =head2 refunded
53              
54             The amount of the refund have been credited to your account.
55              
56             =head2 to_refund
57              
58             Refund will be processed within the day.
59              
60             =head1 USAGE
61              
62             =head2 Logging
63              
64              
65              
66             We use the L<Log::Any> framework for logging events.
67             You may tell where it should log using any available L<Log::Any::Adapter> module.
68              
69             For example, to log everything to a file you just have to add a line to your script, like this:
70             #! /usr/bin/env perl
71             use Log::Any::Adapter (File => '/var/log/payment.log');
72             use Stancer::Refund::Status;
73              
74             You must import C<Log::Any::Adapter> before our libraries, to initialize the logger instance before use.
75              
76             You can choose your log level on import directly:
77             use Log::Any::Adapter (File => '/var/log/payment.log', log_level => 'info');
78              
79             Read the L<Log::Any> documentation to know what other options you have.
80              
81             =cut
82              
83             =head1 SECURITY
84              
85             =over
86              
87             =item *
88              
89             Never, never, NEVER register a card or a bank account number in your database.
90              
91             =item *
92              
93             Always uses HTTPS in card/SEPA in communication.
94              
95             =item *
96              
97             Our API will never give you a complete card/SEPA number, only the last four digits.
98             If you need to keep track, use these last four digit.
99              
100             =back
101              
102             =cut
103              
104             =head1 BUGS
105              
106             Please report any bugs or feature requests on the bugtracker website
107             L<https://gitlab.com/wearestancer/library/lib-perl/-/issues> or by email to
108             L<bug-stancer@rt.cpan.org|mailto:bug-stancer@rt.cpan.org>.
109              
110             When submitting a bug or request, please include a test-file or a
111             patch to an existing test-file that illustrates the bug or desired
112             feature.
113              
114             =head1 AUTHOR
115              
116             Joel Da Silva <jdasilva@cpan.org>
117              
118             =head1 COPYRIGHT AND LICENSE
119              
120             This software is Copyright (c) 2018-2024 by Stancer / Iliad78.
121              
122             This is free software, licensed under:
123              
124             The Artistic License 2.0 (GPL Compatible)
125              
126             =cut