File Coverage

lib/eBay/API/XML/Call/AddLiveAuctionItem.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::AddLiveAuctionItem;
4              
5 1     1   2417 use strict;
  1         2  
  1         33  
6 1     1   5 use warnings;
  1         2  
  1         38  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. AddLiveAuctionItem.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::AddLiveAuctionItem
21              
22             =head1 DESCRIPTION
23              
24              
25              
26             =head1 SYNOPSIS
27              
28             =cut
29              
30              
31             =head1 INHERITANCE
32              
33             eBay::API::XML::Call::AddLiveAuctionItem inherits from the L class
34              
35             =cut
36              
37 1     1   36 use eBay::API::XML::BaseCall;
  0            
  0            
38             our @ISA = ("eBay::API::XML::BaseCall");
39              
40             use eBay::API::XML::Call::AddLiveAuctionItem::AddLiveAuctionItemRequestType;
41             use eBay::API::XML::Call::AddLiveAuctionItem::AddLiveAuctionItemResponseType;
42              
43              
44             =head1 Subroutines:
45              
46             =cut
47              
48             sub getApiCallName {
49             return 'AddLiveAuctionItem';
50             }
51             sub getRequestDataTypeFullPackage {
52             return 'eBay::API::XML::Call::AddLiveAuctionItem::AddLiveAuctionItemRequestType';
53             }
54             sub getResponseDataTypeFullPackage {
55             return 'eBay::API::XML::Call::AddLiveAuctionItem::AddLiveAuctionItemResponseType';
56             }
57              
58             #
59             # input properties
60             #
61              
62             =head2 setItem()
63              
64             Specifies the values that define the new lot item.
65             Item is a required input.
66              
67             RequiredInput: Yes
68             # Argument: 'ns:ItemType'
69              
70             =cut
71            
72             sub setItem {
73             my $self = shift;
74             my $pItem = shift;
75             $self->getRequestDataType()->setItem($pItem);
76             }
77              
78              
79              
80             #
81             # output properties
82             #
83              
84             =head2 getCategory2ID()
85              
86             ID of the secondary category in which the item was listed.
87             Only returned if you set Item.CategoryMappingAllowed to true in the request
88             and the ID you passed in SecondaryCategory was mapped to a new ID by eBay.
89             If the secondary category has not changed or it has expired with no replacement,
90             Category2ID does not return a value.
91              
92             Returned: Conditionally
93             # Returns: 'xs:string'
94              
95             =cut
96            
97             sub getCategory2ID {
98             my $self = shift;
99             return $self->getResponseDataType()->getCategory2ID();
100             }
101              
102             =head2 getCategoryID()
103              
104             ID of the primary category in which the item was listed.
105             Only returned if you set Item.CategoryMappingAllowed to true in the request
106             and the ID you passed in PrimaryCategory was mapped to a new ID by eBay.
107             If the primary category has not changed or it has expired with no replacement,
108             CategoryID does not return a value.
109              
110             Returned: Conditionally
111             # Returns: 'xs:string'
112              
113             =cut
114            
115             sub getCategoryID {
116             my $self = shift;
117             return $self->getResponseDataType()->getCategoryID();
118             }
119              
120             =head2 getFees()
121              
122             Child elements contain the estimated listing fees for the new item listing.
123             The fees do not include the Final Value Fee (FVF), which cannot be determined
124             until an item is sold.
125             For consistency in the response, the call returns the same kinds of fees
126             as other listing calls, but some fees are not applicable to eBay Live Auctions listings.
127             See "Fees Resulting from Listing an Item" in the eBay Web Services guide
128             for information about fees.
129              
130             Returned: Always
131             # Returns: 'ns:FeesType'
132              
133             =cut
134            
135             sub getFees {
136             my $self = shift;
137             return $self->getResponseDataType()->getFees();
138             }
139              
140             =head2 getItemID()
141              
142             The item ID of the lot.
143              
144             Returned: Always
145             # Returns: 'ns:ItemIDType'
146              
147             =cut
148            
149             sub getItemID {
150             my $self = shift;
151             return $self->getResponseDataType()->getItemID();
152             }
153              
154              
155              
156              
157              
158             1;