| 1 | package Net::Zuora::Account; | ||
| 2 | use Net::Zuora::ZObject; | ||
| 3 | use MooseX::Types::Moose qw/Str Num Int/; | ||
| 4 | use Net::Zuora::Types qw/AccountStatus/; | ||
| 5 | use namespace::autoclean; | ||
| 6 | |||
| 7 | has Name => ( isa => Str, is => 'ro', predicate => 'has_Name', index => 17 ); | ||
| 8 | |||
| 9 | has AccountNumber => ( isa => Str, is => 'ro', predicate => 'has_AccountNumber', index => 1 ); | ||
| 10 | |||
| 11 | has Balance => ( isa => Num, is => 'ro', predicate => 'has_Balance', index => 5); | ||
| 12 | |||
| 13 | has Status => ( isa => AccountStatus, is => 'rw', default => 'Draft', index => 23 ); | ||
| 14 | |||
| 15 | has Currency => ( isa => Str, is => 'ro', default => 'gbp', index => 11, ); | ||
| 16 | |||
| 17 | has BillCycleDay => ( isa => Int, is => 'ro', default => 1, index => 7 ); | ||
| 18 | |||
| 19 | 1; | ||
| 20 | |||
| 21 | =head1 NAME | ||
| 22 | |||
| 23 | Net::Zuora::Account - Class representing an Account in the Zuora system | ||
| 24 | |||
| 25 | =head1 AUTHOR | ||
| 26 | |||
| 27 | See L<Net::Zuora> for author information | ||
| 28 | |||
| 29 | =head1 COPYRIGHT & LICENSE | ||
| 30 | |||
| 31 | See L<Net::Zuora> for copyright and license information. | ||
| 32 | |||
| 33 | =cut | ||
| 34 |