File Coverage

lib/eBay/API/XML/Call/ReviseLiveAuctionItem.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::ReviseLiveAuctionItem;
4              
5 1     1   2303 use strict;
  1         2  
  1         25  
6 1     1   5 use warnings;
  1         2  
  1         25  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. ReviseLiveAuctionItem.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::ReviseLiveAuctionItem
21              
22             =head1 DESCRIPTION
23              
24              
25              
26             =head1 SYNOPSIS
27              
28             =cut
29              
30              
31             =head1 INHERITANCE
32              
33             eBay::API::XML::Call::ReviseLiveAuctionItem inherits from the L class
34              
35             =cut
36              
37 1     1   34 use eBay::API::XML::BaseCall;
  0            
  0            
38             our @ISA = ("eBay::API::XML::BaseCall");
39              
40             use eBay::API::XML::Call::ReviseLiveAuctionItem::ReviseLiveAuctionItemRequestType;
41             use eBay::API::XML::Call::ReviseLiveAuctionItem::ReviseLiveAuctionItemResponseType;
42              
43              
44             =head1 Subroutines:
45              
46             =cut
47              
48             sub getApiCallName {
49             return 'ReviseLiveAuctionItem';
50             }
51             sub getRequestDataTypeFullPackage {
52             return 'eBay::API::XML::Call::ReviseLiveAuctionItem::ReviseLiveAuctionItemRequestType';
53             }
54             sub getResponseDataTypeFullPackage {
55             return 'eBay::API::XML::Call::ReviseLiveAuctionItem::ReviseLiveAuctionItemResponseType';
56             }
57              
58             #
59             # input properties
60             #
61              
62             =head2 setDeletedField()
63              
64             Reserved for future use.
65              
66             RequiredInput: No
67             # Argument: reference to an array
68             of 'xs:string'
69              
70             =cut
71            
72             sub setDeletedField {
73             my $self = shift;
74             my $sDeletedField = shift;
75             $self->getRequestDataType()->setDeletedField($sDeletedField);
76             }
77              
78             =head2 setItem()
79              
80             Child elements hold the values for properties that are changing.
81             The Item.ID property must always be set to the ID of the listing
82             being changed. Set other fields in the Item object only for those
83             properties that are changing.
84              
85             RequiredInput: Yes
86             # Argument: 'ns:ItemType'
87              
88             =cut
89            
90             sub setItem {
91             my $self = shift;
92             my $pItem = shift;
93             $self->getRequestDataType()->setItem($pItem);
94             }
95              
96              
97              
98             #
99             # output properties
100             #
101              
102             =head2 getCategory2ID()
103              
104             ID of the secondary category in which the item was listed.
105             Only returned if you set Item.CategoryMappingAllowed to true in the request
106             and the ID passed in Item.SecondaryCategory was mapped to a new ID by eBay.
107             If the secondary category has not changed or it has expired with no replacement,
108             Category2ID does not return a value.
109              
110             Returned: Conditionally
111             # Returns: 'xs:string'
112              
113             =cut
114            
115             sub getCategory2ID {
116             my $self = shift;
117             return $self->getResponseDataType()->getCategory2ID();
118             }
119              
120             =head2 getCategoryID()
121              
122             ID of the primary category in which the item was listed.
123             Only returned if you set Item.CategoryMappingAllowed to true in the request
124             and the ID passed in Item.PrimaryCategory was mapped to a new ID by eBay.
125             If the primary category has not changed or it has expired with no replacement,
126             CategoryID does not return a value.
127              
128             Returned: Conditionally
129             # Returns: 'xs:string'
130              
131             =cut
132            
133             sub getCategoryID {
134             my $self = shift;
135             return $self->getResponseDataType()->getCategoryID();
136             }
137              
138             =head2 getFees()
139              
140             Child elements contain the estimated listing fees for the revised item
141             listing. The fees do not include the Final Value Fee (FVF), which cannot
142             be determined until an item is sold. Revising an item does not itself
143             incur a fee. However, certain item properties are fee-based and result
144             in the return of fees in the call's response.
145              
146             Returned: Always
147             # Returns: 'ns:FeesType'
148              
149             =cut
150            
151             sub getFees {
152             my $self = shift;
153             return $self->getResponseDataType()->getFees();
154             }
155              
156             =head2 getItemID()
157              
158             Item ID that uniquely identifies the item listing that was revised.
159             Provided for confirmation purposes. The value returned should be the
160             same as the item ID specified in the ItemID property of the Item object
161             specified as input for the call.
162              
163             Returned: Always
164             # Returns: 'ns:ItemIDType'
165              
166             =cut
167            
168             sub getItemID {
169             my $self = shift;
170             return $self->getResponseDataType()->getItemID();
171             }
172              
173              
174              
175              
176              
177             1;