Business/CyberSource/RequestPart/Service.pm

filter: Statementstmt 100% 21 / 21 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod n/a totaltotal 96.5% 28 / 29 CC 2 SCAR 2.7
CC
2
Cov
96%
__ANON__
2.1
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« MooseX/Types/CyberSource.pm ↑ Summary Business/CyberSource/RequestPart/BusinessRules.pm »
1 package Business::CyberSource::RequestPart::Service;
2 13 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 13 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 13 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 13 our $VERSION = '0.010007'; # VERSION
7  
8 13 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 13 extends 'Business::CyberSource::MessagePart';
10 13 with 'MooseX::RemoteHelper::CompositeSerialization';
11  
12 has run => (
13 isa => 'Bool',
14 remote_name => 'run',
15 is => 'ro',
16 lazy => 1,
17 init_arg => undef,
18 reader => undef,
19 writer => undef,
20 9 ▶ default => sub { 1 },
Subroutine __ANON__: called CC=1 SCAR=0.0
21 serializer => sub {
22 9 ▶ my ( $attr, $instance ) = @_;
Subroutine __ANON__: called CC=2 SCAR=7.2
23 9 ▶ return $attr->get_value( $instance ) ? 'true' : 'false';
Branch: 1 branch
BranchTrueFalseTotal
$attr->get_value($instance) ? : 9 0 9
24 },
25 13 );
26  
27 13 __PACKAGE__->meta->make_immutable;
28 13 1;
29  
30 # ABSTRACT: Service Request Part
31  
32 __END__
33  
34 =pod
35  
36 =encoding UTF-8
37  
38 =head1 NAME
39  
40 Business::CyberSource::RequestPart::Service - Service Request Part
41  
42 =head1 VERSION
43  
44 version 0.010007
45  
46 =head1 DESCRIPTION
47  
48 Service provides support for the portion of requests that are named as
49 C<cc*Service> this tells CyberSource which type of request to make. All of the
50 L<Business::CyberSource::Request> based classes will add this correctly.
51 Depending on the request type you may have to set either
52 L<capture_request_id|/"capture_request_id"> or
53 L<auth_request_id|/"auth_request_id">
54  
55 =head1 EXTENDS
56  
57 L<Business::CyberSource::MessagePart>
58  
59 =head1 ATTRIBUTES
60  
61 =head2 run
62  
63 run will be set correctly by default on ever request
64  
65 =head1 BUGS
66  
67 Please report any bugs or feature requests on the bugtracker website
68 https://github.com/xenoterracide/business-cybersource/issues
69  
70 When submitting a bug or request, please include a test-file or a
71 patch to an existing test-file that illustrates the bug or desired
72 feature.
73  
74 =head1 AUTHOR
75  
76 Caleb Cushing <xenoterracide@gmail.com>
77  
78 =head1 COPYRIGHT AND LICENSE
79  
80 This software is Copyright (c) 2016 by Caleb Cushing <xenoterracide@gmail.com>.
81  
82 This is free software, licensed under:
83  
84 The Artistic License 2.0 (GPL Compatible)
85  
86 =cut
« MooseX/Types/CyberSource.pm ↑ Summary Business/CyberSource/RequestPart/BusinessRules.pm »