line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#!/usr/bin/perl |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package eBay::API::XML::DataType::ExternalTransactionType; |
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
2015
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
32
|
|
6
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
76
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
########################################################################## |
9
|
|
|
|
|
|
|
# |
10
|
|
|
|
|
|
|
# Module: ............... eBay/API/XML |
11
|
|
|
|
|
|
|
# File: ................. ExternalTransactionType.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::ExternalTransactionType |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head1 DESCRIPTION |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
Container for external transaction information. |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=head1 SYNOPSIS |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=cut |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head1 INHERITANCE |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
eBay::API::XML::DataType::ExternalTransactionType inherits from the L class |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=cut |
38
|
|
|
|
|
|
|
|
39
|
1
|
|
|
1
|
|
50
|
use eBay::API::XML::BaseDataType; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
our @ISA = ("eBay::API::XML::BaseDataType"); |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
use eBay::API::XML::DataType::AmountType; |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
my @gaProperties = ( [ 'ExternalTransactionID', 'xs:string', '', '', '' ] |
46
|
|
|
|
|
|
|
, [ 'ExternalTransactionTime', 'xs:dateTime', '', '', '' ] |
47
|
|
|
|
|
|
|
, [ 'FeeOrCreditAmount', 'ns:AmountType', '' |
48
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::AmountType', '1' ] |
49
|
|
|
|
|
|
|
, [ 'PaymentOrRefundAmount', 'ns:AmountType', '' |
50
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::AmountType', '1' ] |
51
|
|
|
|
|
|
|
); |
52
|
|
|
|
|
|
|
push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()}; |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
my @gaAttributes = ( |
55
|
|
|
|
|
|
|
); |
56
|
|
|
|
|
|
|
push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()}; |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=head1 Subroutines: |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=cut |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
sub new { |
63
|
|
|
|
|
|
|
my $classname = shift; |
64
|
|
|
|
|
|
|
my %args = @_; |
65
|
|
|
|
|
|
|
my $self = $classname->SUPER::new(%args); |
66
|
|
|
|
|
|
|
return $self; |
67
|
|
|
|
|
|
|
} |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
sub isScalar { |
70
|
|
|
|
|
|
|
return 0; |
71
|
|
|
|
|
|
|
} |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=head2 setExternalTransactionID() |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
Unique payment transaction ID. |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
# Argument: 'xs:string' |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
=cut |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
sub setExternalTransactionID { |
84
|
|
|
|
|
|
|
my $self = shift; |
85
|
|
|
|
|
|
|
$self->{'ExternalTransactionID'} = shift |
86
|
|
|
|
|
|
|
} |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
=head2 getExternalTransactionID() |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
Calls: GetItemTransactions |
91
|
|
|
|
|
|
|
GetSellerTransactions |
92
|
|
|
|
|
|
|
Returned: Conditionally |
93
|
|
|
|
|
|
|
Details: DetailLevel: ReturnAll |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
Calls: GetOrders |
96
|
|
|
|
|
|
|
Returned: Conditionally |
97
|
|
|
|
|
|
|
Details: DetailLevel: none, ReturnAll |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
Calls: GetOrderTransactions |
100
|
|
|
|
|
|
|
Returned: Conditionally |
101
|
|
|
|
|
|
|
Details: DetailLevel: ReturnAll |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
# Returns: 'xs:string' |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
=cut |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
sub getExternalTransactionID { |
108
|
|
|
|
|
|
|
my $self = shift; |
109
|
|
|
|
|
|
|
return $self->{'ExternalTransactionID'}; |
110
|
|
|
|
|
|
|
} |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
=head2 setExternalTransactionTime() |
114
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
Date on which transaction occurs in PayPal. |
116
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
# Argument: 'xs:dateTime' |
118
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
=cut |
120
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
sub setExternalTransactionTime { |
122
|
|
|
|
|
|
|
my $self = shift; |
123
|
|
|
|
|
|
|
$self->{'ExternalTransactionTime'} = shift |
124
|
|
|
|
|
|
|
} |
125
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
=head2 getExternalTransactionTime() |
127
|
|
|
|
|
|
|
|
128
|
|
|
|
|
|
|
Calls: GetItemTransactions |
129
|
|
|
|
|
|
|
GetSellerTransactions |
130
|
|
|
|
|
|
|
Returned: Conditionally |
131
|
|
|
|
|
|
|
Details: DetailLevel: ReturnAll |
132
|
|
|
|
|
|
|
|
133
|
|
|
|
|
|
|
Calls: GetOrders |
134
|
|
|
|
|
|
|
Returned: Conditionally |
135
|
|
|
|
|
|
|
Details: DetailLevel: none, ReturnAll |
136
|
|
|
|
|
|
|
|
137
|
|
|
|
|
|
|
Calls: GetOrderTransactions |
138
|
|
|
|
|
|
|
Returned: Conditionally |
139
|
|
|
|
|
|
|
Details: DetailLevel: ReturnAll |
140
|
|
|
|
|
|
|
|
141
|
|
|
|
|
|
|
# Returns: 'xs:dateTime' |
142
|
|
|
|
|
|
|
|
143
|
|
|
|
|
|
|
=cut |
144
|
|
|
|
|
|
|
|
145
|
|
|
|
|
|
|
sub getExternalTransactionTime { |
146
|
|
|
|
|
|
|
my $self = shift; |
147
|
|
|
|
|
|
|
return $self->{'ExternalTransactionTime'}; |
148
|
|
|
|
|
|
|
} |
149
|
|
|
|
|
|
|
|
150
|
|
|
|
|
|
|
|
151
|
|
|
|
|
|
|
=head2 setFeeOrCreditAmount() |
152
|
|
|
|
|
|
|
|
153
|
|
|
|
|
|
|
# Argument: 'ns:AmountType' |
154
|
|
|
|
|
|
|
|
155
|
|
|
|
|
|
|
=cut |
156
|
|
|
|
|
|
|
|
157
|
|
|
|
|
|
|
sub setFeeOrCreditAmount { |
158
|
|
|
|
|
|
|
my $self = shift; |
159
|
|
|
|
|
|
|
$self->{'FeeOrCreditAmount'} = shift |
160
|
|
|
|
|
|
|
} |
161
|
|
|
|
|
|
|
|
162
|
|
|
|
|
|
|
=head2 getFeeOrCreditAmount() |
163
|
|
|
|
|
|
|
|
164
|
|
|
|
|
|
|
Calls: GetItemTransactions |
165
|
|
|
|
|
|
|
GetSellerTransactions |
166
|
|
|
|
|
|
|
Returned: Conditionally |
167
|
|
|
|
|
|
|
Details: DetailLevel: ReturnAll |
168
|
|
|
|
|
|
|
|
169
|
|
|
|
|
|
|
Calls: GetOrders |
170
|
|
|
|
|
|
|
Returned: Conditionally |
171
|
|
|
|
|
|
|
Details: DetailLevel: none, ReturnAll |
172
|
|
|
|
|
|
|
|
173
|
|
|
|
|
|
|
Calls: GetOrderTransactions |
174
|
|
|
|
|
|
|
Returned: Conditionally |
175
|
|
|
|
|
|
|
Details: DetailLevel: ReturnAll |
176
|
|
|
|
|
|
|
|
177
|
|
|
|
|
|
|
# Returns: 'ns:AmountType' |
178
|
|
|
|
|
|
|
|
179
|
|
|
|
|
|
|
=cut |
180
|
|
|
|
|
|
|
|
181
|
|
|
|
|
|
|
sub getFeeOrCreditAmount { |
182
|
|
|
|
|
|
|
my $self = shift; |
183
|
|
|
|
|
|
|
return $self->_getDataTypeInstance( 'FeeOrCreditAmount' |
184
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::AmountType'); |
185
|
|
|
|
|
|
|
} |
186
|
|
|
|
|
|
|
|
187
|
|
|
|
|
|
|
|
188
|
|
|
|
|
|
|
=head2 setPaymentOrRefundAmount() |
189
|
|
|
|
|
|
|
|
190
|
|
|
|
|
|
|
If positive, the amount the buyer pays |
191
|
|
|
|
|
|
|
the seller through PayPal on the purchase of items. If |
192
|
|
|
|
|
|
|
negative, the amount refunded the buyer. Default = 0. |
193
|
|
|
|
|
|
|
|
194
|
|
|
|
|
|
|
# Argument: 'ns:AmountType' |
195
|
|
|
|
|
|
|
|
196
|
|
|
|
|
|
|
=cut |
197
|
|
|
|
|
|
|
|
198
|
|
|
|
|
|
|
sub setPaymentOrRefundAmount { |
199
|
|
|
|
|
|
|
my $self = shift; |
200
|
|
|
|
|
|
|
$self->{'PaymentOrRefundAmount'} = shift |
201
|
|
|
|
|
|
|
} |
202
|
|
|
|
|
|
|
|
203
|
|
|
|
|
|
|
=head2 getPaymentOrRefundAmount() |
204
|
|
|
|
|
|
|
|
205
|
|
|
|
|
|
|
Calls: GetItemTransactions |
206
|
|
|
|
|
|
|
GetSellerTransactions |
207
|
|
|
|
|
|
|
Returned: Conditionally |
208
|
|
|
|
|
|
|
Details: DetailLevel: ReturnAll |
209
|
|
|
|
|
|
|
|
210
|
|
|
|
|
|
|
Calls: GetOrders |
211
|
|
|
|
|
|
|
Returned: Conditionally |
212
|
|
|
|
|
|
|
Details: DetailLevel: none, ReturnAll |
213
|
|
|
|
|
|
|
|
214
|
|
|
|
|
|
|
Calls: GetOrderTransactions |
215
|
|
|
|
|
|
|
Returned: Conditionally |
216
|
|
|
|
|
|
|
Details: DetailLevel: ReturnAll |
217
|
|
|
|
|
|
|
|
218
|
|
|
|
|
|
|
# Returns: 'ns:AmountType' |
219
|
|
|
|
|
|
|
|
220
|
|
|
|
|
|
|
=cut |
221
|
|
|
|
|
|
|
|
222
|
|
|
|
|
|
|
sub getPaymentOrRefundAmount { |
223
|
|
|
|
|
|
|
my $self = shift; |
224
|
|
|
|
|
|
|
return $self->_getDataTypeInstance( 'PaymentOrRefundAmount' |
225
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::AmountType'); |
226
|
|
|
|
|
|
|
} |
227
|
|
|
|
|
|
|
|
228
|
|
|
|
|
|
|
|
229
|
|
|
|
|
|
|
|
230
|
|
|
|
|
|
|
|
231
|
|
|
|
|
|
|
|
232
|
|
|
|
|
|
|
## Attribute and Property lists |
233
|
|
|
|
|
|
|
sub getPropertiesList { |
234
|
|
|
|
|
|
|
my $self = shift; |
235
|
|
|
|
|
|
|
return \@gaProperties; |
236
|
|
|
|
|
|
|
} |
237
|
|
|
|
|
|
|
|
238
|
|
|
|
|
|
|
sub getAttributesList { |
239
|
|
|
|
|
|
|
my $self = shift; |
240
|
|
|
|
|
|
|
return \@gaAttributes; |
241
|
|
|
|
|
|
|
} |
242
|
|
|
|
|
|
|
|
243
|
|
|
|
|
|
|
|
244
|
|
|
|
|
|
|
|
245
|
|
|
|
|
|
|
1; |