File Coverage

lib/eBay/API/XML/Call/GetAccount.pm
Criterion Covered Total %
statement 7 9 77.7
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 10 12 83.3


line stmt bran cond sub pod time code
1             #!/usr/bin/perl
2              
3             package eBay::API::XML::Call::GetAccount;
4              
5 1     1   2298 use strict;
  1         2  
  1         26  
6 1     1   4 use warnings;
  1         1  
  1         24  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. GetAccount.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::GetAccount
21              
22             =head1 DESCRIPTION
23              
24              
25              
26             =head1 SYNOPSIS
27              
28             =cut
29              
30              
31             =head1 INHERITANCE
32              
33             eBay::API::XML::Call::GetAccount inherits from the L class
34              
35             =cut
36              
37 1     1   31 use eBay::API::XML::BaseCall;
  0            
  0            
38             our @ISA = ("eBay::API::XML::BaseCall");
39              
40             use eBay::API::XML::Call::GetAccount::GetAccountRequestType;
41             use eBay::API::XML::Call::GetAccount::GetAccountResponseType;
42              
43              
44             =head1 Subroutines:
45              
46             =cut
47              
48             sub getApiCallName {
49             return 'GetAccount';
50             }
51             sub getRequestDataTypeFullPackage {
52             return 'eBay::API::XML::Call::GetAccount::GetAccountRequestType';
53             }
54             sub getResponseDataTypeFullPackage {
55             return 'eBay::API::XML::Call::GetAccount::GetAccountResponseType';
56             }
57              
58             #
59             # input properties
60             #
61              
62             =head2 setAccountEntrySortType()
63              
64             Specifies how account entries should be sorted in
65             the response, by an element and then in ascending or
66             descending order.
67              
68             RequiredInput: No
69             # Argument: 'ns:AccountEntrySortTypeCodeType'
70              
71             =cut
72            
73             sub setAccountEntrySortType {
74             my $self = shift;
75             my $sAccountEntrySortType = shift;
76             $self->getRequestDataType()->setAccountEntrySortType($sAccountEntrySortType);
77             }
78              
79             =head2 setAccountHistorySelection()
80              
81             Specifies the report format in which to return account entries.
82              
83             RequiredInput: Conditionally
84             # Argument: 'ns:AccountHistorySelectionCodeType'
85              
86             =cut
87            
88             sub setAccountHistorySelection {
89             my $self = shift;
90             my $sAccountHistorySelection = shift;
91             $self->getRequestDataType()->setAccountHistorySelection($sAccountHistorySelection);
92             }
93              
94             =head2 setBeginDate()
95              
96             Specifies the beginning of a date range during which a credit or debit
97             occurred. Used when AccountHistorySelection is BetweenSpecifiedDates.
98             Value must be less than or equal to the value specified in EndDate. The allowed date
99             formats are YYYY-MM-DD and YYYY-MM-DD HH:mm:ss.
100             You can retrieve information that is up to 4 months old.
101              
102             RequiredInput: Conditionally
103             # Argument: 'xs:dateTime'
104              
105             =cut
106            
107             sub setBeginDate {
108             my $self = shift;
109             my $sBeginDate = shift;
110             $self->getRequestDataType()->setBeginDate($sBeginDate);
111             }
112              
113             =head2 setCurrency()
114              
115             Specifies the currency used in the account report. Do not specify Currency in the request
116             unless the following conditions are met. First, the user has or had multiple accounts under
117             the same UserID. Second, the account identified in the request uses the currency you specify in the request. An error is returned if no account is found that uses the currency you specify in the request.
118              
119             RequiredInput: No
120             # Argument: 'ns:CurrencyCodeType'
121              
122             =cut
123            
124             sub setCurrency {
125             my $self = shift;
126             my $sCurrency = shift;
127             $self->getRequestDataType()->setCurrency($sCurrency);
128             }
129              
130             =head2 setEndDate()
131              
132             Specifies the end of a date range during which a credit or debit
133             occurred. Used when AccountHistorySelection is BetweenSpecifiedDates.
134             Value must be greater than or equal to the value specified in BeginDate. The
135             allowed date formats are YYYY-MM-DD and YYYY-MM-DD HH:mm:ss.
136              
137             RequiredInput: Conditionally
138             # Argument: 'xs:dateTime'
139              
140             =cut
141            
142             sub setEndDate {
143             my $self = shift;
144             my $sEndDate = shift;
145             $self->getRequestDataType()->setEndDate($sEndDate);
146             }
147              
148             =head2 setExcludeBalance()
149              
150             Specifies whether to calculate balances. Default is
151             false, which calculates balances. The value true means
152             do not calculate balances. If true, AccountEntry.Balance and
153             AccountSummary.CurrentBalance are never returned in the response.
154              
155             RequiredInput: No
156             # Argument: 'xs:boolean'
157              
158             =cut
159            
160             sub setExcludeBalance {
161             my $self = shift;
162             my $sExcludeBalance = shift;
163             $self->getRequestDataType()->setExcludeBalance($sExcludeBalance);
164             }
165              
166             =head2 setExcludeSummary()
167              
168             Specifies whether to return account summary information in an
169             AccountSummary node. Default is true, to return AccountSummary.
170              
171             RequiredInput: No
172             # Argument: 'xs:boolean'
173              
174             =cut
175            
176             sub setExcludeSummary {
177             my $self = shift;
178             my $sExcludeSummary = shift;
179             $self->getRequestDataType()->setExcludeSummary($sExcludeSummary);
180             }
181              
182             =head2 setInvoiceDate()
183              
184             Specifies the month and year of the invoice requested. The report
185             includes only the entries that appear on the seller's invoice in the specified month
186             and year. An entry can occur in one month and appear on the next month's
187             invoice. Used with SpecifiedInvoice reports.
188              
189             RequiredInput: Conditionally
190             # Argument: 'xs:dateTime'
191              
192             =cut
193            
194             sub setInvoiceDate {
195             my $self = shift;
196             my $sInvoiceDate = shift;
197             $self->getRequestDataType()->setInvoiceDate($sInvoiceDate);
198             }
199              
200             =head2 setItemID()
201              
202             Specifies the item ID for which to return account entries. If ItemID is used, all other filters in the request
203             are ignored. If the specified item does not exist or if the requesting user is not the seller of the item, an error is returned.
204              
205             RequiredInput: No
206             # Argument: 'ns:ItemIDType'
207              
208             =cut
209            
210             sub setItemID {
211             my $self = shift;
212             my $pItemID = shift;
213             $self->getRequestDataType()->setItemID($pItemID);
214             }
215              
216             =head2 setPagination()
217              
218             Controls pagination of the response. For this request, the valid values
219             of Pagination.EntriesPerPage are 0 to 2000, with a default of 500.
220              
221             RequiredInput: No
222             # Argument: 'ns:PaginationType'
223              
224             =cut
225            
226             sub setPagination {
227             my $self = shift;
228             my $pPagination = shift;
229             $self->getRequestDataType()->setPagination($pPagination);
230             }
231              
232              
233              
234             #
235             # output properties
236             #
237              
238             =head2 getAccountEntries()
239              
240             Contains individual account entries, according to the report's scope and date range.
241             Each account entry represents one credit, debit, or administrative account action.
242              
243             Returned: Conditionally
244             # Returns: 'ns:AccountEntriesType'
245              
246             =cut
247            
248             sub getAccountEntries {
249             my $self = shift;
250             return $self->getResponseDataType()->getAccountEntries();
251             }
252              
253             =head2 getAccountID()
254              
255             Specifies the seller's unique account number.
256              
257             Returned: Always
258             # Returns: 'xs:string'
259              
260             =cut
261            
262             sub getAccountID {
263             my $self = shift;
264             return $self->getResponseDataType()->getAccountID();
265             }
266              
267             =head2 getAccountSummary()
268              
269             Contains summary data for the seller's account, such as the overall
270             balance, bank account and credit card information, and amount and
271             date of any past due balances. Can also contain data for
272             one or more additional accounts, if the user has changed country
273             of residence.
274              
275             Returned: Conditionally
276             # Returns: 'ns:AccountSummaryType'
277              
278             =cut
279            
280             sub getAccountSummary {
281             my $self = shift;
282             return $self->getResponseDataType()->getAccountSummary();
283             }
284              
285             =head2 getCurrency()
286              
287             Indicates the currency used for monetary amounts in the report.
288              
289             Returned: Always
290             # Returns: 'ns:CurrencyCodeType'
291              
292             =cut
293            
294             sub getCurrency {
295             my $self = shift;
296             return $self->getResponseDataType()->getCurrency();
297             }
298              
299             =head2 getEntriesPerPage()
300              
301             Specifies the number of items that are being returned per virtual page of date.
302             Value is the same as that specified in Pagination.EntriesPerPage.
303              
304             Returned: Always
305             # Returns: 'xs:int'
306              
307             =cut
308            
309             sub getEntriesPerPage {
310             my $self = shift;
311             return $self->getResponseDataType()->getEntriesPerPage();
312             }
313              
314             =head2 isHasMoreEntries()
315              
316             Indicates whether there are more items yet to be retrieved. Additional calls
317             must be made to retrieve those items.
318              
319             Returned: Conditionally
320             # Returns: 'xs:boolean'
321              
322             =cut
323            
324             sub isHasMoreEntries {
325             my $self = shift;
326             return $self->getResponseDataType()->isHasMoreEntries();
327             }
328              
329             =head2 getPageNumber()
330              
331             Indicates which page of data was just returned. Value is the same as the value
332             specified in Pagination.PageNumber. If PageNumber in the request is higher than
333             the total number of pages, the call fails with an error.)
334              
335             Returned: Always
336             # Returns: 'xs:int'
337              
338             =cut
339            
340             sub getPageNumber {
341             my $self = shift;
342             return $self->getResponseDataType()->getPageNumber();
343             }
344              
345             =head2 getPaginationResult()
346              
347             Contains the total number of pages (TotalNumberOfPages) and the total
348             number of account entries (TotalNumberOfEntries) that can be returned
349             on repeated calls with the same format and report criteria.
350              
351             Returned: Always
352             # Returns: 'ns:PaginationResultType'
353              
354             =cut
355            
356             sub getPaginationResult {
357             my $self = shift;
358             return $self->getResponseDataType()->getPaginationResult();
359             }
360              
361              
362              
363              
364              
365             1;