File Coverage

blib/lib/Paymill/REST/Preauthorizations.pm
Criterion Covered Total %
statement 3 3 100.0
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 4 4 100.0


line stmt bran cond sub pod time code
1             package Paymill::REST::Preauthorizations;
2              
3 9     9   6536 use Moose;
  9         27  
  9         98  
4             with 'Paymill::REST::Base';
5             with 'Paymill::REST::Operations::Delete';
6              
7             has '+type' => (default => 'preauthorization');
8             has _type_create => (is => 'ro', isa => 'Str', default => 'transaction');
9              
10             __PACKAGE__->meta->make_immutable;
11             1;
12              
13             __END__
14              
15             =encoding utf-8
16              
17             =head1 NAME
18              
19             Paymill::REST::Preauthorizations - Item factory for preauthorizations
20              
21             =head1 AVAILABLE OPERATIONS
22              
23             =over 4
24              
25             =item create
26              
27             L<Paymill::REST::Operations::Create>
28              
29             B<IMPORTANT:> The C<create> operation returns an transaction item
30             instead of a preauthorization item. This is due to PAYMILL's API
31             which also returns transaction objects via this endpoint.
32              
33             =item delete
34              
35             L<Paymill::REST::Operations::Delete>
36              
37             =item find
38              
39             L<Paymill::REST::Operations::Find>
40              
41             =item list
42              
43             L<Paymill::REST::Operations::List>
44              
45             =back
46              
47             =head1 SEE ALSO
48              
49             L<Paymill::REST> for more documentation.
50              
51             =head1 AUTHOR
52              
53             Matthias Dietrich E<lt>perl@rainboxx.deE<gt>
54              
55             =head1 COPYRIGHT
56              
57             Copyright 2013 - Matthias Dietrich
58              
59             =head1 LICENSE
60              
61             This library is free software; you can redistribute it and/or modify
62             it under the same terms as Perl itself.