line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#!/usr/bin/perl |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package eBay::API::XML::Call::GetSellerPayments::GetSellerPaymentsRequestType; |
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
1494
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
32
|
|
6
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
31
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
########################################################################## |
9
|
|
|
|
|
|
|
# |
10
|
|
|
|
|
|
|
# Module: ............... eBay/API/XML |
11
|
|
|
|
|
|
|
# File: ................. GetSellerPaymentsRequestType.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::Call::GetSellerPayments::GetSellerPaymentsRequestType |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head1 DESCRIPTION |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
Retrieves a summary of pending or paid payments that Half.com created for the |
25
|
|
|
|
|
|
|
seller identified by the authentication token in the request. Only retrieves |
26
|
|
|
|
|
|
|
payments that occurred within a particular pay period. Each payment is for one |
27
|
|
|
|
|
|
|
transaction for one item in one order. An order can contain transactions for |
28
|
|
|
|
|
|
|
multiple items from multiple sellers, but this call only retrieves payments that |
29
|
|
|
|
|
|
|
are relevant to one seller. The financial value of a payment is typically based on |
30
|
|
|
|
|
|
|
an amount that a buyer paid to Half.com for a transaction, with adjustments for |
31
|
|
|
|
|
|
|
shipping costs and Half.com's commission. For most sellers, each month contains |
32
|
|
|
|
|
|
|
two pay periods: One from the 1st to the 15th of the month, and one from the 16th |
33
|
|
|
|
|
|
|
to the last day of the month. Sellers can refer to their account information on |
34
|
|
|
|
|
|
|
the Half.com site to determine their pay periods. (You cannot retrieve a seller's |
35
|
|
|
|
|
|
|
pay periods by using eBay Web Services.) When a buyer makes a purchase and an |
36
|
|
|
|
|
|
|
order is created, Half.com creates a payment for the seller and marks it as |
37
|
|
|
|
|
|
|
Pending in the seller's Half.com account. Within a certain number of days after |
38
|
|
|
|
|
|
|
the pay period ends, Half.com settles payments for that period and marks each |
39
|
|
|
|
|
|
|
completed payment as Paid. See the Half.com Web site online help for more |
40
|
|
|
|
|
|
|
information about how payments are managed. |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 SYNOPSIS |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=cut |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=head1 INHERITANCE |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
eBay::API::XML::Call::GetSellerPayments::GetSellerPaymentsRequestType inherits from the L class |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=cut |
54
|
|
|
|
|
|
|
|
55
|
1
|
|
|
1
|
|
36
|
use eBay::API::XML::RequestDataType; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
our @ISA = ("eBay::API::XML::RequestDataType"); |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
use eBay::API::XML::DataType::PaginationType; |
59
|
|
|
|
|
|
|
use eBay::API::XML::DataType::Enum::RCSPaymentStatusCodeType; |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
my @gaProperties = ( [ 'Pagination', 'ns:PaginationType', '' |
63
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::PaginationType', '1' ] |
64
|
|
|
|
|
|
|
, [ 'PaymentStatus', 'ns:RCSPaymentStatusCodeType', '' |
65
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::Enum::RCSPaymentStatusCodeType', '' ] |
66
|
|
|
|
|
|
|
, [ 'PaymentTimeFrom', 'xs:dateTime', '', '', '' ] |
67
|
|
|
|
|
|
|
, [ 'PaymentTimeTo', 'xs:dateTime', '', '', '' ] |
68
|
|
|
|
|
|
|
); |
69
|
|
|
|
|
|
|
push @gaProperties, @{eBay::API::XML::RequestDataType::getPropertiesList()}; |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
my @gaAttributes = ( |
72
|
|
|
|
|
|
|
); |
73
|
|
|
|
|
|
|
push @gaAttributes, @{eBay::API::XML::RequestDataType::getAttributesList()}; |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=head1 Subroutines: |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
=cut |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
sub new { |
80
|
|
|
|
|
|
|
my $classname = shift; |
81
|
|
|
|
|
|
|
my %args = @_; |
82
|
|
|
|
|
|
|
my $self = $classname->SUPER::new(%args); |
83
|
|
|
|
|
|
|
return $self; |
84
|
|
|
|
|
|
|
} |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
sub isScalar { |
87
|
|
|
|
|
|
|
return 0; |
88
|
|
|
|
|
|
|
} |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
=head2 setPagination() |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
If many payments are available, you may need to call GetSellerPayments |
95
|
|
|
|
|
|
|
multiple times to retrieve all the data. Each result set is returned as a |
96
|
|
|
|
|
|
|
page of entries. Use this Pagination information to indicate the maximum |
97
|
|
|
|
|
|
|
number of entries to retrieve per page (i.e., per call), the page number |
98
|
|
|
|
|
|
|
to retrieve, and other data. |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
RequiredInput: No |
101
|
|
|
|
|
|
|
# Argument: 'ns:PaginationType' |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
=cut |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
sub setPagination { |
106
|
|
|
|
|
|
|
my $self = shift; |
107
|
|
|
|
|
|
|
$self->{'Pagination'} = shift |
108
|
|
|
|
|
|
|
} |
109
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
=head2 getPagination() |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
# Returns: 'ns:PaginationType' |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
=cut |
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
sub getPagination { |
117
|
|
|
|
|
|
|
my $self = shift; |
118
|
|
|
|
|
|
|
return $self->_getDataTypeInstance( 'Pagination' |
119
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::PaginationType'); |
120
|
|
|
|
|
|
|
} |
121
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
|
123
|
|
|
|
|
|
|
=head2 setPaymentStatus() |
124
|
|
|
|
|
|
|
|
125
|
|
|
|
|
|
|
Filter to retrieve only items with the specified payment status (Paid or |
126
|
|
|
|
|
|
|
Pending). "Pending payments" are payments that Half.com has created but |
127
|
|
|
|
|
|
|
that have not yet been sent to the seller's financial institution. Pending |
128
|
|
|
|
|
|
|
payments are typically available once a buyer pays for an order. As |
129
|
|
|
|
|
|
|
Half.com processes payments by using periodic batch jobs, the |
130
|
|
|
|
|
|
|
GetSellerPayments response might not include a transaction's payment for |
131
|
|
|
|
|
|
|
up to 20 minutes after the buyer has paid. You can retrieve pending |
132
|
|
|
|
|
|
|
payments for the current pay period. Pending payments that have not been |
133
|
|
|
|
|
|
|
settled yet can also be retrieved for previous pay periods. "Paid |
134
|
|
|
|
|
|
|
payments" are payments that Half.com processed during previous pay |
135
|
|
|
|
|
|
|
periods. Paid payments might not appear in the seller's financial |
136
|
|
|
|
|
|
|
institution account balance until a certain number of days after the |
137
|
|
|
|
|
|
|
current pay period ends (see the Half.com online help for details). You |
138
|
|
|
|
|
|
|
can only retrieve paid payments for one previous pay period at a time. |
139
|
|
|
|
|
|
|
|
140
|
|
|
|
|
|
|
RequiredInput: Yes |
141
|
|
|
|
|
|
|
AllValuesExcept: Canceled |
142
|
|
|
|
|
|
|
# Argument: 'ns:RCSPaymentStatusCodeType' |
143
|
|
|
|
|
|
|
|
144
|
|
|
|
|
|
|
=cut |
145
|
|
|
|
|
|
|
|
146
|
|
|
|
|
|
|
sub setPaymentStatus { |
147
|
|
|
|
|
|
|
my $self = shift; |
148
|
|
|
|
|
|
|
$self->{'PaymentStatus'} = shift |
149
|
|
|
|
|
|
|
} |
150
|
|
|
|
|
|
|
|
151
|
|
|
|
|
|
|
=head2 getPaymentStatus() |
152
|
|
|
|
|
|
|
|
153
|
|
|
|
|
|
|
# Returns: 'ns:RCSPaymentStatusCodeType' |
154
|
|
|
|
|
|
|
|
155
|
|
|
|
|
|
|
=cut |
156
|
|
|
|
|
|
|
|
157
|
|
|
|
|
|
|
sub getPaymentStatus { |
158
|
|
|
|
|
|
|
my $self = shift; |
159
|
|
|
|
|
|
|
return $self->{'PaymentStatus'}; |
160
|
|
|
|
|
|
|
} |
161
|
|
|
|
|
|
|
|
162
|
|
|
|
|
|
|
|
163
|
|
|
|
|
|
|
=head2 setPaymentTimeFrom() |
164
|
|
|
|
|
|
|
|
165
|
|
|
|
|
|
|
Time range filter that retrieves Half.com payments that were created within |
166
|
|
|
|
|
|
|
a single pay period. Sellers can refer to the Half.com site to determine |
167
|
|
|
|
|
|
|
their pay periods. PaymentTimeFrom is the earliest (oldest) time and |
168
|
|
|
|
|
|
|
PaymentTimeTo is the latest (most recent) time in the range. Half.com pay |
169
|
|
|
|
|
|
|
periods start and end at midnight Pacific time, but the time values are |
170
|
|
|
|
|
|
|
stored in the database in GMT (not Pacific time). See "Time Values" in the |
171
|
|
|
|
|
|
|
eBay Web Services guide for information about converting between GMT and |
172
|
|
|
|
|
|
|
Pacific time. |
173
|
|
|
|
|
|
|
|
174
|
|
|
|
|
|
|
If you specify a PaymentStatus of Pending, add a buffer of one hour (or one |
175
|
|
|
|
|
|
|
day) to both ends of the time range to retrieve more data than you need, and |
176
|
|
|
|
|
|
|
then filter the results on the client side as needed. If any pending |
177
|
|
|
|
|
|
|
payments match the request, the response may include all payments since the |
178
|
|
|
|
|
|
|
beginning of the period. |
179
|
|
|
|
|
|
|
|
180
|
|
|
|
|
|
|
If you specify a PaymentStatus of Paid, the time range must contain one |
181
|
|
|
|
|
|
|
full pay period. That is, PaymentTimeFrom must be earlier or equal the |
182
|
|
|
|
|
|
|
start time of the pay period, and PaymentTimeTo must be later than or |
183
|
|
|
|
|
|
|
equal to the end time of the pay period. Otherwise, no paid payments are |
184
|
|
|
|
|
|
|
returned. For example, if the pay period starts on 2005-09-16 and ends on |
185
|
|
|
|
|
|
|
2005-09-30, you could specify an earlier PaymentTimeFrom value of |
186
|
|
|
|
|
|
|
2005-09-16T00:00:00.000Z and a later PaymentTimeTo value of |
187
|
|
|
|
|
|
|
2005-10-01T12:00:00.000Z. |
188
|
|
|
|
|
|
|
|
189
|
|
|
|
|
|
|
If you specify a time range that covers two pay periods, only the payments |
190
|
|
|
|
|
|
|
from the most recent pay period are returned. The earliest time you can |
191
|
|
|
|
|
|
|
specify is 18 months ago. |
192
|
|
|
|
|
|
|
|
193
|
|
|
|
|
|
|
RequiredInput: Yes |
194
|
|
|
|
|
|
|
# Argument: 'xs:dateTime' |
195
|
|
|
|
|
|
|
|
196
|
|
|
|
|
|
|
=cut |
197
|
|
|
|
|
|
|
|
198
|
|
|
|
|
|
|
sub setPaymentTimeFrom { |
199
|
|
|
|
|
|
|
my $self = shift; |
200
|
|
|
|
|
|
|
$self->{'PaymentTimeFrom'} = shift |
201
|
|
|
|
|
|
|
} |
202
|
|
|
|
|
|
|
|
203
|
|
|
|
|
|
|
=head2 getPaymentTimeFrom() |
204
|
|
|
|
|
|
|
|
205
|
|
|
|
|
|
|
# Returns: 'xs:dateTime' |
206
|
|
|
|
|
|
|
|
207
|
|
|
|
|
|
|
=cut |
208
|
|
|
|
|
|
|
|
209
|
|
|
|
|
|
|
sub getPaymentTimeFrom { |
210
|
|
|
|
|
|
|
my $self = shift; |
211
|
|
|
|
|
|
|
return $self->{'PaymentTimeFrom'}; |
212
|
|
|
|
|
|
|
} |
213
|
|
|
|
|
|
|
|
214
|
|
|
|
|
|
|
|
215
|
|
|
|
|
|
|
=head2 setPaymentTimeTo() |
216
|
|
|
|
|
|
|
|
217
|
|
|
|
|
|
|
Time range filter that retrieves Half.com payments for a single pay |
218
|
|
|
|
|
|
|
period. See the description of PaymentTimeTo for details about using this |
219
|
|
|
|
|
|
|
time range filter. For paid payments, this value should be equal to or |
220
|
|
|
|
|
|
|
later than the end of the last day of the pay period, where the time is |
221
|
|
|
|
|
|
|
converted to GMT. For example, if the period ends on 2005-09-30, you could |
222
|
|
|
|
|
|
|
specify 2005-10-01T09:00:00.000Z, which is later than the end of the last |
223
|
|
|
|
|
|
|
day. |
224
|
|
|
|
|
|
|
|
225
|
|
|
|
|
|
|
RequiredInput: Yes |
226
|
|
|
|
|
|
|
# Argument: 'xs:dateTime' |
227
|
|
|
|
|
|
|
|
228
|
|
|
|
|
|
|
=cut |
229
|
|
|
|
|
|
|
|
230
|
|
|
|
|
|
|
sub setPaymentTimeTo { |
231
|
|
|
|
|
|
|
my $self = shift; |
232
|
|
|
|
|
|
|
$self->{'PaymentTimeTo'} = shift |
233
|
|
|
|
|
|
|
} |
234
|
|
|
|
|
|
|
|
235
|
|
|
|
|
|
|
=head2 getPaymentTimeTo() |
236
|
|
|
|
|
|
|
|
237
|
|
|
|
|
|
|
# Returns: 'xs:dateTime' |
238
|
|
|
|
|
|
|
|
239
|
|
|
|
|
|
|
=cut |
240
|
|
|
|
|
|
|
|
241
|
|
|
|
|
|
|
sub getPaymentTimeTo { |
242
|
|
|
|
|
|
|
my $self = shift; |
243
|
|
|
|
|
|
|
return $self->{'PaymentTimeTo'}; |
244
|
|
|
|
|
|
|
} |
245
|
|
|
|
|
|
|
|
246
|
|
|
|
|
|
|
|
247
|
|
|
|
|
|
|
|
248
|
|
|
|
|
|
|
|
249
|
|
|
|
|
|
|
|
250
|
|
|
|
|
|
|
## Attribute and Property lists |
251
|
|
|
|
|
|
|
sub getPropertiesList { |
252
|
|
|
|
|
|
|
my $self = shift; |
253
|
|
|
|
|
|
|
return \@gaProperties; |
254
|
|
|
|
|
|
|
} |
255
|
|
|
|
|
|
|
|
256
|
|
|
|
|
|
|
sub getAttributesList { |
257
|
|
|
|
|
|
|
my $self = shift; |
258
|
|
|
|
|
|
|
return \@gaAttributes; |
259
|
|
|
|
|
|
|
} |
260
|
|
|
|
|
|
|
|
261
|
|
|
|
|
|
|
|
262
|
|
|
|
|
|
|
|
263
|
|
|
|
|
|
|
1; |