File Coverage

blib/lib/Business/CyberSource/RequestPart/OtherTax.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::OtherTax;
2 4     4   11487 use strict;
  4         8  
  4         116  
3 4     4   12 use warnings;
  4         7  
  4         114  
4 4     4   389 use namespace::autoclean;
  4         6229  
  4         27  
5              
6             our $VERSION = '0.010008'; # VERSION
7              
8 4     4   729 use Moose;
  4         217456  
  4         25  
9             extends 'Business::CyberSource::MessagePart';
10             with 'MooseX::RemoteHelper::CompositeSerialization';
11              
12 4     4   20171 use MooseX::Types::Common::Numeric qw( PositiveOrZeroNum );
  4         71706  
  4         41  
13              
14             has 'alternate_tax_amount' => (
15             isa => PositiveOrZeroNum,
16             is => 'ro',
17             remote_name => 'alternateTaxAmount',
18             );
19              
20             has 'alternate_tax_indicator' => (
21             isa => 'Bool',
22             is => 'ro',
23             remote_name => 'alternateTaxIndicator',
24             serializer => sub {
25             my ( $attr, $instance ) = @_;
26              
27             return $attr->get_value( $instance ) ? '1' : '0';
28             }
29             );
30              
31             has 'vat_tax_amount' => (
32             isa => PositiveOrZeroNum,
33             is => 'ro',
34             remote_name => 'vatTaxAmount',
35             );
36              
37             has 'vat_tax_rate' => (
38             isa => PositiveOrZeroNum,
39             is => 'ro',
40             remote_name => 'vatTaxRate',
41             );
42              
43             __PACKAGE__->meta->make_immutable;
44             1;
45              
46             # ABSTRACT: OtherTax information
47              
48             __END__
49              
50             =pod
51              
52             =encoding UTF-8
53              
54             =head1 NAME
55              
56             Business::CyberSource::RequestPart::OtherTax - OtherTax information
57              
58             =head1 VERSION
59              
60             version 0.010008
61              
62             =head1 EXTENDS
63              
64             L<Business::CyberSource::MessagePart>
65              
66             =head1 ATTRIBUTES
67              
68             =head2 alternate_tax_amount
69              
70             Amount of all taxes, excluding the local tax and national tax
71              
72             =head2 alternate_tax_indicator
73              
74             Flag that indicates whether the alternate tax amount is included in the request.
75              
76             =head2 vat_tax_amount
77              
78             Total amount of VAT or other tax on freight or shipping only
79              
80             =head2 vat_tax_rate
81              
82             Total amount of VAT or other tax on freight or shipping only
83              
84             =for Pod::Coverage BUILD
85              
86             =head1 BUGS
87              
88             Please report any bugs or feature requests on the bugtracker website
89             https://github.com/hostgator/business-cybersource/issues
90              
91             When submitting a bug or request, please include a test-file or a
92             patch to an existing test-file that illustrates the bug or desired
93             feature.
94              
95             =head1 AUTHOR
96              
97             Caleb Cushing <xenoterracide@gmail.com>
98              
99             =head1 COPYRIGHT AND LICENSE
100              
101             This software is Copyright (c) 2017 by Caleb Cushing <xenoterracide@gmail.com>.
102              
103             This is free software, licensed under:
104              
105             The Artistic License 2.0 (GPL Compatible)
106              
107             =cut