File Coverage

blib/lib/Business/CyberSource/RequestPart/PurchaseTotals.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::PurchaseTotals;
2 8     8   1078983 use strict;
  8         105  
  8         212  
3 8     8   30 use warnings;
  8         10  
  8         203  
4 8     8   408 use namespace::autoclean;
  8         5368  
  8         54  
5              
6             our $VERSION = '0.010007'; # VERSION
7              
8 8     8   1002 use Moose;
  8         199590  
  8         44  
9             extends 'Business::CyberSource::MessagePart';
10             with 'MooseX::RemoteHelper::CompositeSerialization';
11              
12             with qw(
13             Business::CyberSource::Role::Currency
14             Business::CyberSource::Role::ForeignCurrency
15             );
16              
17 8     8   35438 use MooseX::Types::Common::Numeric qw( PositiveOrZeroNum );
  8         68111  
  8         80  
18              
19             has total => (
20             isa => PositiveOrZeroNum,
21             remote_name => 'grandTotalAmount',
22             traits => [ 'SetOnce' ],
23             is => 'rw',
24             predicate => 'has_total',
25              
26             );
27              
28             __PACKAGE__->meta->make_immutable;
29             1;
30             # ABSTRACT: Purchase Totals
31              
32             __END__
33              
34             =pod
35              
36             =encoding UTF-8
37              
38             =head1 NAME
39              
40             Business::CyberSource::RequestPart::PurchaseTotals - Purchase Totals
41              
42             =head1 VERSION
43              
44             version 0.010007
45              
46             =head1 EXTENDS
47              
48             L<Business::CyberSource::MessagePart>
49              
50             =head1 WITH
51              
52             =over
53              
54             =item L<Business::CyberSource::Role::Currency>
55              
56             =item L<Business::CyberSource::Role::ForeignCurrency>
57              
58             =back
59              
60             =head1 ATTRIBUTES
61              
62             =head2 total
63              
64             Grand total for the order. You must include either this field or
65             L<Item unit price|Business::CyberSource::RequestPart::Item/"unit_price"> in your
66             request.
67              
68             =head1 BUGS
69              
70             Please report any bugs or feature requests on the bugtracker website
71             https://github.com/xenoterracide/business-cybersource/issues
72              
73             When submitting a bug or request, please include a test-file or a
74             patch to an existing test-file that illustrates the bug or desired
75             feature.
76              
77             =head1 AUTHOR
78              
79             Caleb Cushing <xenoterracide@gmail.com>
80              
81             =head1 COPYRIGHT AND LICENSE
82              
83             This software is Copyright (c) 2016 by Caleb Cushing <xenoterracide@gmail.com>.
84              
85             This is free software, licensed under:
86              
87             The Artistic License 2.0 (GPL Compatible)
88              
89             =cut