Business/CyberSource/Request/FollowOnCredit.pm

filter: Statementstmt 88.8% 16 / 18 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 0.0% 0 / 1 totaltotal 76.9% 20 / 26 CC 2 SCAR 9.8
CC
2
Cov
80%
BUILD
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.7
« Business/CyberSource/RequestPart/Card.pm ↑ Summary Business/CyberSource/Request/StandAloneCredit.pm »
1 package Business::CyberSource::Request::FollowOnCredit;
2 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 our $VERSION = '0.010007'; # VERSION
7  
8 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 1 extends 'Business::CyberSource::Request::Credit';
10  
11 sub BUILD { ## no critic ( Subroutines::RequireFinalReturn )
12 0 ▶ my $self = shift;
Subroutine BUILD: not called CC=2 SCAR=17.9
Pod undocumented
13 0 ▶ die ## no critic ( ErrorHandling::RequireCarping )
Branch: 1 branch
BranchTrueFalseTotal
unless $self->service->has_request_id 0 0 0
14 use_module('Business::CyberSource::Exception::AttributeIsRequiredNotToBeSet')
15 ->new(
16 attribute_name => 'request_id',
17 class_name => __PACKAGE__,
18 message => 'a Follow On Credit should set a request_id',
19 ) unless $self->service->has_request_id;
20 };
21  
22 1 __PACKAGE__->meta->make_immutable;
23 1 1;
24  
25 # ABSTRACT: CyberSource Credit Request Object
26  
27 __END__
28  
29 =pod
30  
31 =encoding UTF-8
32  
33 =head1 NAME
34  
35 Business::CyberSource::Request::FollowOnCredit - CyberSource Credit Request Object
36  
37 =head1 VERSION
38  
39 version 0.010007
40  
41 =head1 SYNOPSIS
42  
43 use Business::CyberSource::Request::FollowOnCredit;
44  
45 my $credit = Business::CyberSource::Request::FollowOnCredit->new({
46 reference_code => 'merchant reference code',
47 purchase_totals => {
48 total => 5.00,
49 currency => 'USD',
50 },
51 service => {
52 request_id => 'capture request_id',
53 },
54 });
55  
56 =head1 DESCRIPTION
57  
58 Follow-On credit Data Transfer Object.
59  
60 =head2 EXTENDS
61  
62 L<Business::CyberSource::Request::Credit>
63  
64 =head1 BUGS
65  
66 Please report any bugs or feature requests on the bugtracker website
67 https://github.com/xenoterracide/business-cybersource/issues
68  
69 When submitting a bug or request, please include a test-file or a
70 patch to an existing test-file that illustrates the bug or desired
71 feature.
72  
73 =head1 AUTHOR
74  
75 Caleb Cushing <xenoterracide@gmail.com>
76  
77 =head1 COPYRIGHT AND LICENSE
78  
79 This software is Copyright (c) 2016 by Caleb Cushing <xenoterracide@gmail.com>.
80  
81 This is free software, licensed under:
82  
83 The Artistic License 2.0 (GPL Compatible)
84  
85 =cut
« Business/CyberSource/RequestPart/Card.pm ↑ Summary Business/CyberSource/Request/StandAloneCredit.pm »