File Coverage

lib/eBay/API/XML/Call/SetPromotionalSaleListings.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::SetPromotionalSaleListings;
4              
5 1     1   2661 use strict;
  1         2  
  1         31  
6 1     1   6 use warnings;
  1         2  
  1         26  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. SetPromotionalSaleListings.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::SetPromotionalSaleListings
21              
22             =head1 DESCRIPTION
23              
24              
25              
26             =head1 SYNOPSIS
27              
28             =cut
29              
30              
31             =head1 INHERITANCE
32              
33             eBay::API::XML::Call::SetPromotionalSaleListings 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::SetPromotionalSaleListings::SetPromotionalSaleListingsRequestType;
41             use eBay::API::XML::Call::SetPromotionalSaleListings::SetPromotionalSaleListingsResponseType;
42              
43              
44             =head1 Subroutines:
45              
46             =cut
47              
48             sub getApiCallName {
49             return 'SetPromotionalSaleListings';
50             }
51             sub getRequestDataTypeFullPackage {
52             return 'eBay::API::XML::Call::SetPromotionalSaleListings::SetPromotionalSaleListingsRequestType';
53             }
54             sub getResponseDataTypeFullPackage {
55             return 'eBay::API::XML::Call::SetPromotionalSaleListings::SetPromotionalSaleListingsResponseType';
56             }
57              
58             #
59             # input properties
60             #
61              
62             =head2 setAction()
63              
64             You must specify either Add or Delete.
65             This field determines whether you are adding listings to,
66             or deleting listings from,
67             the promotional sale you specify in the PromotionalSaleID field.
68             If you specify Delete, you must specify
69             PromotionalSaleItemIDArray. Delete is applicable only in
70             cases where you specify PromotionalSaleItemIDArray.
71             Auction or auction/BIN format listings cannot be added to or deleted
72             from a promotional sale if the item has bids.
73              
74             RequiredInput: Yes
75             OnlyTheseValues: Add, Delete
76             # Argument: 'ns:ModifyActionCodeType'
77              
78             =cut
79            
80             sub setAction {
81             my $self = shift;
82             my $sAction = shift;
83             $self->getRequestDataType()->setAction($sAction);
84             }
85              
86             =head2 setAllAuctionItems()
87              
88             Adds to the promotional sale all the seller's item listings
89             that are auction items. Auction and auction/BIN format listings
90             can be added to free shipping sales only.
91             Requires that you specify Add in the Action field.
92              
93             RequiredInput: No
94             # Argument: 'xs:boolean'
95              
96             =cut
97            
98             sub setAllAuctionItems {
99             my $self = shift;
100             my $sAllAuctionItems = shift;
101             $self->getRequestDataType()->setAllAuctionItems($sAllAuctionItems);
102             }
103              
104             =head2 setAllFixedPriceItems()
105              
106             Adds to the promotional sale all the seller's item listings
107             that are fixed price items.
108             Requires that you specify Add in the Action field.
109              
110             RequiredInput: No
111             # Argument: 'xs:boolean'
112              
113             =cut
114            
115             sub setAllFixedPriceItems {
116             my $self = shift;
117             my $sAllFixedPriceItems = shift;
118             $self->getRequestDataType()->setAllFixedPriceItems($sAllFixedPriceItems);
119             }
120              
121             =head2 setAllStoreInventoryItems()
122              
123             Adds to the promotional sale all the seller's item listings
124             that are store inventory items.
125             Requires that you specify Add in the Action field.
126              
127             RequiredInput: No
128             # Argument: 'xs:boolean'
129              
130             =cut
131            
132             sub setAllStoreInventoryItems {
133             my $self = shift;
134             my $sAllStoreInventoryItems = shift;
135             $self->getRequestDataType()->setAllStoreInventoryItems($sAllStoreInventoryItems);
136             }
137              
138             =head2 setCategoryID()
139              
140             Adds to the promotional sale all the seller's item listings with
141             the CategoryID specified in this field.
142             Requires that you specify Add in the Action field.
143              
144             RequiredInput: No
145             # Argument: 'xs:long'
146              
147             =cut
148            
149             sub setCategoryID {
150             my $self = shift;
151             my $sCategoryID = shift;
152             $self->getRequestDataType()->setCategoryID($sCategoryID);
153             }
154              
155             =head2 setPromotionalSaleID()
156              
157             The ID of the promotional sale that you want to add listings to or
158             delete listings from.
159              
160             RequiredInput: Yes
161             # Argument: 'xs:long'
162              
163             =cut
164            
165             sub setPromotionalSaleID {
166             my $self = shift;
167             my $sPromotionalSaleID = shift;
168             $self->getRequestDataType()->setPromotionalSaleID($sPromotionalSaleID);
169             }
170              
171             =head2 setPromotionalSaleItemIDArray()
172              
173             The IDs of the item listings to be affected
174             by the action you specify in the Action field.
175              
176             RequiredInput: Conditionally
177             # Argument: 'ns:ItemIDArrayType'
178              
179             =cut
180            
181             sub setPromotionalSaleItemIDArray {
182             my $self = shift;
183             my $pPromotionalSaleItemIDArray = shift;
184             $self->getRequestDataType()->setPromotionalSaleItemIDArray($pPromotionalSaleItemIDArray);
185             }
186              
187             =head2 setStoreCategoryID()
188              
189             Adds to the promotional sale all the seller's item listings with
190             the StoreCategoryID specified in this field.
191             Requires that you specify Add in the Action field.
192              
193             RequiredInput: No
194             # Argument: 'xs:long'
195              
196             =cut
197            
198             sub setStoreCategoryID {
199             my $self = shift;
200             my $sStoreCategoryID = shift;
201             $self->getRequestDataType()->setStoreCategoryID($sStoreCategoryID);
202             }
203              
204              
205              
206             #
207             # output properties
208             #
209              
210             =head2 getStatus()
211              
212             Contains the status of a promotional sale.
213              
214             Returned: Always
215             # Returns: 'ns:PromotionalSaleStatusCodeType'
216              
217             =cut
218            
219             sub getStatus {
220             my $self = shift;
221             return $self->getResponseDataType()->getStatus();
222             }
223              
224              
225              
226              
227              
228             1;