File Coverage

blib/lib/Business/CyberSource/Request/AuthReversal.pm
Criterion Covered Total %
statement 15 15 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod n/a
total 20 20 100.0


line stmt bran cond sub pod time code
1             package Business::CyberSource::Request::AuthReversal;
2 1     1   585 use strict;
  1         1  
  1         25  
3 1     1   3 use warnings;
  1         1  
  1         35  
4 1     1   411 use namespace::autoclean;
  1         10744  
  1         4  
5              
6             our $VERSION = '0.010007'; # VERSION
7              
8 1     1   490 use Moose;
  1         278898  
  1         6  
9             extends 'Business::CyberSource::Request';
10              
11 1     1   4971 use MooseX::Types::CyberSource qw( AuthReversalService );
  1         5  
  1         7  
12              
13             has '+service' => (
14             isa => AuthReversalService,
15             remote_name => 'ccAuthReversalService',
16             lazy_build => 0,
17             );
18              
19             __PACKAGE__->meta->make_immutable;
20             1;
21              
22             # ABSTRACT: CyberSource Reverse Authorization request object
23              
24             __END__
25              
26             =pod
27              
28             =encoding UTF-8
29              
30             =head1 NAME
31              
32             Business::CyberSource::Request::AuthReversal - CyberSource Reverse Authorization request object
33              
34             =head1 VERSION
35              
36             version 0.010007
37              
38             =head1 SYNOPSIS
39              
40             use Business::CyberSource::Request::AuthReversal;
41              
42             my $req = Business::CyberSource::Request::AuthReversal->new({
43             reference_code => 'orignal authorization merchant reference code',
44             service => {
45             request_id => 'request id returned by authorization',
46             },
47             purchase_totals {
48             total => 5.00, # same as original authorization amount
49             currency => 'USD', # same as original currency
50             },
51             });
52              
53             =head1 DESCRIPTION
54              
55             This allows you to reverse an authorization request.
56              
57             =head1 EXTENDS
58              
59             L<Business::CyberSource::Request>
60              
61             =head1 BUGS
62              
63             Please report any bugs or feature requests on the bugtracker website
64             https://github.com/xenoterracide/business-cybersource/issues
65              
66             When submitting a bug or request, please include a test-file or a
67             patch to an existing test-file that illustrates the bug or desired
68             feature.
69              
70             =head1 AUTHOR
71              
72             Caleb Cushing <xenoterracide@gmail.com>
73              
74             =head1 COPYRIGHT AND LICENSE
75              
76             This software is Copyright (c) 2016 by Caleb Cushing <xenoterracide@gmail.com>.
77              
78             This is free software, licensed under:
79              
80             The Artistic License 2.0 (GPL Compatible)
81              
82             =cut