Zuora/Usage.pm untested

filter: Statementstmt 0.0% 0 / 25 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 30 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Net::Zuora::Usage;
2 use Net::Zuora::ZObject;
3 use MooseX::Types::Moose qw/Str Int/;
4 use MooseX::Types::ISO8601 qw/ISO8601DateTimeStr/;
5 use Moose::Util::TypeConstraints;
6 use namespace::autoclean;
7  
8 subtype 'RbeStatus', as Str, where { /^Pending|Processed$/ };
9  
10 has Quantity => ( isa => Int, is => 'ro', required => 1 );
11  
12 has AccountNumber => ( isa => Str, is => 'ro', required => 1 );
13  
14 has SourceName => ( isa => Str, is => 'ro' );
15  
16 has ChargeNumber => ( isa => Str, is => 'ro', predicate => 'has_ChargeNumber' );
17  
18 has RbeStatus => ( isa => 'RbeStatus', is => 'ro', default => 'Pending' );
19  
20 has UOM => ( isa => Str, is => 'ro' );
21  
22 foreach my $field_name (qw/ StartDateTime SubmissionDateTime EndDateTime /) {
23 has $field_name => (
24 isa => ISO8601DateTimeStr, is => 'ro', required => 1,
25 coerce => 1,
26 );
27 }
28  
29 1;
30  
31 =head1 NAME
32  
33 Net::Zuora::Usage - Class representing a set of Usage data in the Zuora system
34  
35 =head1 AUTHOR
36  
37 See L<Net::Zuora> for author information
38  
39 =head1 COPYRIGHT & LICENSE
40  
41 See L<Net::Zuora> for copyright and license information.
42  
43 =cut
44