File Coverage

blib/lib/Business/CyberSource/RequestPart/Service/Credit.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::RequestPart::Service::Credit;
2 1     1   640 use strict;
  1         2  
  1         28  
3 1     1   3 use warnings;
  1         1  
  1         26  
4 1     1   4 use namespace::autoclean;
  1         1  
  1         8  
5              
6             our $VERSION = '0.010008'; # VERSION
7              
8 1     1   88 use Moose;
  1         1  
  1         7  
9             extends 'Business::CyberSource::RequestPart::Service';
10              
11 1     1   4393 use MooseX::Types::CyberSource qw( RequestID );
  1         1  
  1         10  
12              
13             has request_id => (
14             isa => RequestID,
15             remote_name => 'captureRequestID',
16             predicate => 'has_request_id',
17             is => 'rw',
18             required => 0,
19             traits => ['SetOnce'],
20             );
21              
22             __PACKAGE__->meta->make_immutable;
23             1;
24              
25             # ABSTRACT: Credit Service
26              
27             __END__
28              
29             =pod
30              
31             =encoding UTF-8
32              
33             =head1 NAME
34              
35             Business::CyberSource::RequestPart::Service::Credit - Credit Service
36              
37             =head1 VERSION
38              
39             version 0.010008
40              
41             =head1 ATTRIBUTES
42              
43             =head2 request_id
44              
45             The L<request_id|Business::CyberSource::Response/"request_id"> returned from a
46             previous request for capture. Creates a follow-on credit by linking the credit
47             to the previous capture. If you send this field, you do not need to send
48             several other credit request fields.
49              
50             =head1 BUGS
51              
52             Please report any bugs or feature requests on the bugtracker website
53             https://github.com/hostgator/business-cybersource/issues
54              
55             When submitting a bug or request, please include a test-file or a
56             patch to an existing test-file that illustrates the bug or desired
57             feature.
58              
59             =head1 AUTHOR
60              
61             Caleb Cushing <xenoterracide@gmail.com>
62              
63             =head1 COPYRIGHT AND LICENSE
64              
65             This software is Copyright (c) 2017 by Caleb Cushing <xenoterracide@gmail.com>.
66              
67             This is free software, licensed under:
68              
69             The Artistic License 2.0 (GPL Compatible)
70              
71             =cut