line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#!/usr/bin/perl |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package eBay::API::XML::DataType::AdditionalAccountType; |
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
1195
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
25
|
|
6
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
27
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
########################################################################## |
9
|
|
|
|
|
|
|
# |
10
|
|
|
|
|
|
|
# Module: ............... eBay/API/XML |
11
|
|
|
|
|
|
|
# File: ................. AdditionalAccountType.pm |
12
|
|
|
|
|
|
|
# Generated by: ......... genEBayApiDataTypes.pl |
13
|
|
|
|
|
|
|
# Last Generated: ....... 08/24/2008 16:44 |
14
|
|
|
|
|
|
|
# API Release Number: ... 579 |
15
|
|
|
|
|
|
|
# |
16
|
|
|
|
|
|
|
########################################################################## |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=head1 NAME |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
eBay::API::XML::DataType::AdditionalAccountType |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head1 DESCRIPTION |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
Contains the data for one additional account. An additional account is |
25
|
|
|
|
|
|
|
created when the user has an active account and changes country of |
26
|
|
|
|
|
|
|
registry (i.e., registers with the eBay site for the new country). A |
27
|
|
|
|
|
|
|
new account is created and the old account becomes inactive as an |
28
|
|
|
|
|
|
|
additional account. A user who never changes country of residency while |
29
|
|
|
|
|
|
|
having an account will never have any additional accounts. |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head1 SYNOPSIS |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=cut |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=head1 INHERITANCE |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
eBay::API::XML::DataType::AdditionalAccountType inherits from the L class |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=cut |
43
|
|
|
|
|
|
|
|
44
|
1
|
|
|
1
|
|
34
|
use eBay::API::XML::BaseDataType; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
our @ISA = ("eBay::API::XML::BaseDataType"); |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
use eBay::API::XML::DataType::AmountType; |
48
|
|
|
|
|
|
|
use eBay::API::XML::DataType::Enum::CurrencyCodeType; |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
my @gaProperties = ( [ 'AccountCode', 'xs:string', '', '', '' ] |
52
|
|
|
|
|
|
|
, [ 'Balance', 'ns:AmountType', '' |
53
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::AmountType', '1' ] |
54
|
|
|
|
|
|
|
, [ 'Currency', 'ns:CurrencyCodeType', '' |
55
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::Enum::CurrencyCodeType', '' ] |
56
|
|
|
|
|
|
|
); |
57
|
|
|
|
|
|
|
push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()}; |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
my @gaAttributes = ( |
60
|
|
|
|
|
|
|
); |
61
|
|
|
|
|
|
|
push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()}; |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=head1 Subroutines: |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=cut |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
sub new { |
68
|
|
|
|
|
|
|
my $classname = shift; |
69
|
|
|
|
|
|
|
my %args = @_; |
70
|
|
|
|
|
|
|
my $self = $classname->SUPER::new(%args); |
71
|
|
|
|
|
|
|
return $self; |
72
|
|
|
|
|
|
|
} |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
sub isScalar { |
75
|
|
|
|
|
|
|
return 0; |
76
|
|
|
|
|
|
|
} |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
=head2 setAccountCode() |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
Indicates the unique identifier for the additional account (the account ID). |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
# Argument: 'xs:string' |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
=cut |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
sub setAccountCode { |
89
|
|
|
|
|
|
|
my $self = shift; |
90
|
|
|
|
|
|
|
$self->{'AccountCode'} = shift |
91
|
|
|
|
|
|
|
} |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
=head2 getAccountCode() |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
Calls: GetAccount |
96
|
|
|
|
|
|
|
Returned: Conditionally |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
# Returns: 'xs:string' |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
=cut |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
sub getAccountCode { |
103
|
|
|
|
|
|
|
my $self = shift; |
104
|
|
|
|
|
|
|
return $self->{'AccountCode'}; |
105
|
|
|
|
|
|
|
} |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
=head2 setBalance() |
109
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
Indicates the current balance of the additional account. |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
# Argument: 'ns:AmountType' |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
=cut |
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
sub setBalance { |
117
|
|
|
|
|
|
|
my $self = shift; |
118
|
|
|
|
|
|
|
$self->{'Balance'} = shift |
119
|
|
|
|
|
|
|
} |
120
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
=head2 getBalance() |
122
|
|
|
|
|
|
|
|
123
|
|
|
|
|
|
|
Calls: GetAccount |
124
|
|
|
|
|
|
|
Returned: Conditionally |
125
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
# Returns: 'ns:AmountType' |
127
|
|
|
|
|
|
|
|
128
|
|
|
|
|
|
|
=cut |
129
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
sub getBalance { |
131
|
|
|
|
|
|
|
my $self = shift; |
132
|
|
|
|
|
|
|
return $self->_getDataTypeInstance( 'Balance' |
133
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::AmountType'); |
134
|
|
|
|
|
|
|
} |
135
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
|
137
|
|
|
|
|
|
|
=head2 setCurrency() |
138
|
|
|
|
|
|
|
|
139
|
|
|
|
|
|
|
Indicates the currency in which monetary amounts for the additional account |
140
|
|
|
|
|
|
|
are expressed. |
141
|
|
|
|
|
|
|
|
142
|
|
|
|
|
|
|
# Argument: 'ns:CurrencyCodeType' |
143
|
|
|
|
|
|
|
|
144
|
|
|
|
|
|
|
=cut |
145
|
|
|
|
|
|
|
|
146
|
|
|
|
|
|
|
sub setCurrency { |
147
|
|
|
|
|
|
|
my $self = shift; |
148
|
|
|
|
|
|
|
$self->{'Currency'} = shift |
149
|
|
|
|
|
|
|
} |
150
|
|
|
|
|
|
|
|
151
|
|
|
|
|
|
|
=head2 getCurrency() |
152
|
|
|
|
|
|
|
|
153
|
|
|
|
|
|
|
Calls: GetAccount |
154
|
|
|
|
|
|
|
Returned: Conditionally |
155
|
|
|
|
|
|
|
|
156
|
|
|
|
|
|
|
# Returns: 'ns:CurrencyCodeType' |
157
|
|
|
|
|
|
|
|
158
|
|
|
|
|
|
|
=cut |
159
|
|
|
|
|
|
|
|
160
|
|
|
|
|
|
|
sub getCurrency { |
161
|
|
|
|
|
|
|
my $self = shift; |
162
|
|
|
|
|
|
|
return $self->{'Currency'}; |
163
|
|
|
|
|
|
|
} |
164
|
|
|
|
|
|
|
|
165
|
|
|
|
|
|
|
|
166
|
|
|
|
|
|
|
|
167
|
|
|
|
|
|
|
|
168
|
|
|
|
|
|
|
|
169
|
|
|
|
|
|
|
## Attribute and Property lists |
170
|
|
|
|
|
|
|
sub getPropertiesList { |
171
|
|
|
|
|
|
|
my $self = shift; |
172
|
|
|
|
|
|
|
return \@gaProperties; |
173
|
|
|
|
|
|
|
} |
174
|
|
|
|
|
|
|
|
175
|
|
|
|
|
|
|
sub getAttributesList { |
176
|
|
|
|
|
|
|
my $self = shift; |
177
|
|
|
|
|
|
|
return \@gaAttributes; |
178
|
|
|
|
|
|
|
} |
179
|
|
|
|
|
|
|
|
180
|
|
|
|
|
|
|
|
181
|
|
|
|
|
|
|
|
182
|
|
|
|
|
|
|
1; |