line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#--------------------------------------------------------------------- |
2
|
|
|
|
|
|
|
package WebService::NFSN::Account; |
3
|
|
|
|
|
|
|
# |
4
|
|
|
|
|
|
|
# Copyright 2010 Christopher J. Madsen |
5
|
|
|
|
|
|
|
# |
6
|
|
|
|
|
|
|
# Author: Christopher J. Madsen |
7
|
|
|
|
|
|
|
# Created: 3 Apr 2007 |
8
|
|
|
|
|
|
|
# |
9
|
|
|
|
|
|
|
# This program is free software; you can redistribute it and/or modify |
10
|
|
|
|
|
|
|
# it under the same terms as Perl itself. |
11
|
|
|
|
|
|
|
# |
12
|
|
|
|
|
|
|
# This program is distributed in the hope that it will be useful, |
13
|
|
|
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
14
|
|
|
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See either the |
15
|
|
|
|
|
|
|
# GNU General Public License or the Artistic License for more details. |
16
|
|
|
|
|
|
|
# |
17
|
|
|
|
|
|
|
# ABSTRACT: Access NFSN account information |
18
|
|
|
|
|
|
|
#--------------------------------------------------------------------- |
19
|
|
|
|
|
|
|
|
20
|
1
|
|
|
1
|
|
1165
|
use 5.006; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
47
|
|
21
|
1
|
|
|
1
|
|
6
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
37
|
|
22
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
35
|
|
23
|
|
|
|
|
|
|
|
24
|
1
|
|
|
1
|
|
916
|
use parent 'WebService::NFSN::Object'; |
|
1
|
|
|
|
|
373
|
|
|
1
|
|
|
|
|
9
|
|
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
#===================================================================== |
27
|
|
|
|
|
|
|
# Package Global Variables: |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
our $VERSION = '1.03'; # VERSION |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
#===================================================================== |
32
|
|
|
|
|
|
|
BEGIN { |
33
|
1
|
|
|
1
|
|
11288
|
__PACKAGE__->_define( |
34
|
|
|
|
|
|
|
type => 'account', |
35
|
|
|
|
|
|
|
ro => [qw(balance balanceCash balanceCredit balanceHigh |
36
|
|
|
|
|
|
|
status:JSON sites:JSON)], |
37
|
|
|
|
|
|
|
rw => [qw(friendlyName)], |
38
|
|
|
|
|
|
|
methods => { |
39
|
|
|
|
|
|
|
addSite => [qw(site)], |
40
|
|
|
|
|
|
|
addWarning => [qw(balance)], |
41
|
|
|
|
|
|
|
removeWarning => [qw(balance)], |
42
|
|
|
|
|
|
|
} |
43
|
|
|
|
|
|
|
); |
44
|
|
|
|
|
|
|
} # end BEGIN |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
#===================================================================== |
47
|
|
|
|
|
|
|
# Package Return Value: |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
1; |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
__END__ |