Business/CyberSource/RequestPart/PurchaseTotals.pm

filter: Statementstmt 100% 22 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 27 / 27 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Business/CyberSource/RequestPart/Item.pm ↑ Summary Business/CyberSource/RequestPart/Service/Auth.pm »
1 package Business::CyberSource::RequestPart::PurchaseTotals;
2 9 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 9 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 9 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 9 our $VERSION = '0.010007'; # VERSION
7  
8 9 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 9 extends 'Business::CyberSource::MessagePart';
10 9 with 'MooseX::RemoteHelper::CompositeSerialization';
11  
12 9 with qw(
13 Business::CyberSource::Role::Currency
14 Business::CyberSource::Role::ForeignCurrency
15 );
16  
17 9 ▶use MooseX::Types::Common::Numeric qw( PositiveOrZeroNum );
Subroutine BEGIN: called CC=1 SCAR=0.0
18  
19 9 has total => (
20 isa => PositiveOrZeroNum,
21 remote_name => 'grandTotalAmount',
22 traits => [ 'SetOnce' ],
23 is => 'rw',
24 predicate => 'has_total',
25  
26 );
27  
28 9 __PACKAGE__->meta->make_immutable;
29 9 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
« Business/CyberSource/RequestPart/Item.pm ↑ Summary Business/CyberSource/RequestPart/Service/Auth.pm »