File Coverage

lib/eBay/API/XML/Call/AddItem.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::AddItem;
4              
5 1     1   2295 use strict;
  1         3  
  1         30  
6 1     1   4 use warnings;
  1         2  
  1         25  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. AddItem.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::AddItem
21              
22             =head1 DESCRIPTION
23              
24              
25              
26             =head1 SYNOPSIS
27              
28             =cut
29              
30              
31             =head1 INHERITANCE
32              
33             eBay::API::XML::Call::AddItem inherits from the L class
34              
35             =cut
36              
37 1     1   35 use eBay::API::XML::BaseCall;
  0            
  0            
38             our @ISA = ("eBay::API::XML::BaseCall");
39              
40             use eBay::API::XML::Call::AddItem::AddItemRequestType;
41             use eBay::API::XML::Call::AddItem::AddItemResponseType;
42              
43              
44             =head1 Subroutines:
45              
46             =cut
47              
48             sub getApiCallName {
49             return 'AddItem';
50             }
51             sub getRequestDataTypeFullPackage {
52             return 'eBay::API::XML::Call::AddItem::AddItemRequestType';
53             }
54             sub getResponseDataTypeFullPackage {
55             return 'eBay::API::XML::Call::AddItem::AddItemResponseType';
56             }
57              
58             #
59             # input properties
60             #
61              
62             =head2 setItem()
63              
64             Child elements hold the values that define the new item. Item is a
65             required input.
66             Also applicable to Half.com.
67              
68             RequiredInput: Yes
69             # Argument: 'ns:ItemType'
70              
71             =cut
72            
73             sub setItem {
74             my $self = shift;
75             my $pItem = shift;
76             $self->getRequestDataType()->setItem($pItem);
77             }
78              
79              
80              
81             #
82             # output properties
83             #
84              
85             =head2 getCategory2ID()
86              
87             ID of the secondary category in which the item was listed.
88             Only returned if you set Item.CategoryMappingAllowed to true in the request
89             and the ID you passed in SecondaryCategory was mapped to a new ID by eBay.
90             If the secondary category has not changed or it has expired with no replacement,
91             Category2ID does not return a value.
92             Not applicable to Half.com.
93              
94             Returned: Conditionally
95             # Returns: 'xs:string'
96              
97             =cut
98            
99             sub getCategory2ID {
100             my $self = shift;
101             return $self->getResponseDataType()->getCategory2ID();
102             }
103              
104             =head2 getCategoryID()
105              
106             ID of the primary category in which the item was listed.
107             Only returned if you set Item.CategoryMappingAllowed to true in the request
108             and the ID you passed in PrimaryCategory was mapped to a new ID by eBay.
109             If the primary category has not changed or it has expired with no replacement,
110             CategoryID does not return a value.
111             Not applicable to Half.com.
112              
113             Returned: Conditionally
114             # Returns: 'xs:string'
115              
116             =cut
117            
118             sub getCategoryID {
119             my $self = shift;
120             return $self->getResponseDataType()->getCategoryID();
121             }
122              
123             =head2 getEndTime()
124              
125             Date and time when the new listing ends. This is the starting time
126             plus the listing duration.
127             Also returned for Half.com, but for Half.com the actual end time is GTC
128             (not the end time returned in the response).
129              
130             Returned: Always
131             # Returns: 'xs:dateTime'
132              
133             =cut
134            
135             sub getEndTime {
136             my $self = shift;
137             return $self->getResponseDataType()->getEndTime();
138             }
139              
140             =head2 getFees()
141              
142             Child elements contain the estimated listing fees for the new item listing.
143             The fees do not include the Final Value Fee (FVF), which cannot be determined
144             until an item is sold.
145             Also returned for Half.com, but the values are not applicable to Half.com listings.
146              
147             Returned: Always
148             # Returns: 'ns:FeesType'
149              
150             =cut
151            
152             sub getFees {
153             my $self = shift;
154             return $self->getResponseDataType()->getFees();
155             }
156              
157             =head2 getItemID()
158              
159             Unique item ID for the new listing.
160             Also applicable to Half.com.
161              
162             Returned: Always
163             # Returns: 'ns:ItemIDType'
164              
165             =cut
166            
167             sub getItemID {
168             my $self = shift;
169             return $self->getResponseDataType()->getItemID();
170             }
171              
172             =head2 getStartTime()
173              
174             Starting date and time for the new listing.
175             Also returned for Half.com (for Half.com, the start time is always the time the item was listed).
176              
177             Returned: Always
178             # Returns: 'xs:dateTime'
179              
180             =cut
181            
182             sub getStartTime {
183             my $self = shift;
184             return $self->getResponseDataType()->getStartTime();
185             }
186              
187              
188              
189              
190              
191             1;