File Coverage

lib/eBay/API/XML/Call/ApproveLiveAuctionBidders/ApproveLiveAuctionBiddersRequestType.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::ApproveLiveAuctionBidders::ApproveLiveAuctionBiddersRequestType;
4              
5 1     1   1386 use strict;
  1         2  
  1         31  
6 1     1   6 use warnings;
  1         1  
  1         28  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. ApproveLiveAuctionBiddersRequestType.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::ApproveLiveAuctionBidders::ApproveLiveAuctionBiddersRequestType
21              
22             =head1 DESCRIPTION
23              
24             Provides Live Auction sellers with the ability to approve, decline,
25             and set the bidding limit of the bidders that have signed up for a catalog.
26             Includes the list of bidders for the requested item as part of the
27             general item listing data.
28              
29              
30              
31             =head1 SYNOPSIS
32              
33             =cut
34              
35              
36             =head1 INHERITANCE
37              
38             eBay::API::XML::Call::ApproveLiveAuctionBidders::ApproveLiveAuctionBiddersRequestType inherits from the L class
39              
40             =cut
41              
42 1     1   35 use eBay::API::XML::RequestDataType;
  0            
  0            
43             our @ISA = ("eBay::API::XML::RequestDataType");
44              
45             use eBay::API::XML::DataType::AmountType;
46             use eBay::API::XML::DataType::BidApprovalArrayType;
47              
48              
49             my @gaProperties = ( [ 'AllApprovedBiddingLimit', 'ns:AmountType', ''
50             ,'eBay::API::XML::DataType::AmountType', '1' ]
51             , [ 'ApproveAllPending', 'xs:boolean', '', '', '' ]
52             , [ 'BidApproval', 'ns:BidApprovalArrayType', ''
53             ,'eBay::API::XML::DataType::BidApprovalArrayType', '1' ]
54             , [ 'UserCatalogID', 'xs:int', '', '', '' ]
55             );
56             push @gaProperties, @{eBay::API::XML::RequestDataType::getPropertiesList()};
57              
58             my @gaAttributes = (
59             );
60             push @gaAttributes, @{eBay::API::XML::RequestDataType::getAttributesList()};
61              
62             =head1 Subroutines:
63              
64             =cut
65              
66             sub new {
67             my $classname = shift;
68             my %args = @_;
69             my $self = $classname->SUPER::new(%args);
70             return $self;
71             }
72              
73             sub isScalar {
74             return 0;
75             }
76              
77              
78              
79             =head2 setAllApprovedBiddingLimit()
80              
81             This is the amount that bidders are beings approved for.
82             This is required if user has set ApproveAllPending to true.
83             It only applies to bidder requests that are in pending status.
84              
85             RequiredInput: Conditionally
86             # Argument: 'ns:AmountType'
87              
88             =cut
89              
90             sub setAllApprovedBiddingLimit {
91             my $self = shift;
92             $self->{'AllApprovedBiddingLimit'} = shift
93             }
94              
95             =head2 getAllApprovedBiddingLimit()
96              
97             # Returns: 'ns:AmountType'
98              
99             =cut
100              
101             sub getAllApprovedBiddingLimit {
102             my $self = shift;
103             return $self->_getDataTypeInstance( 'AllApprovedBiddingLimit'
104             ,'eBay::API::XML::DataType::AmountType');
105             }
106              
107              
108             =head2 setApproveAllPending()
109              
110             This will approve all bidders in the catalog in the pending status only.
111             This is an optional field. If provided and set to true, do not send BidApproval.
112              
113             RequiredInput: No
114             # Argument: 'xs:boolean'
115              
116             =cut
117              
118             sub setApproveAllPending {
119             my $self = shift;
120             $self->{'ApproveAllPending'} = shift
121             }
122              
123             =head2 isApproveAllPending()
124              
125             # Returns: 'xs:boolean'
126              
127             =cut
128              
129             sub isApproveAllPending {
130             my $self = shift;
131             return $self->{'ApproveAllPending'};
132             }
133              
134              
135             =head2 setBidApproval()
136              
137             Approval details for a specific set of bidders.
138              
139             RequiredInput: No
140             # Argument: 'ns:BidApprovalArrayType'
141              
142             =cut
143              
144             sub setBidApproval {
145             my $self = shift;
146             $self->{'BidApproval'} = shift
147             }
148              
149             =head2 getBidApproval()
150              
151             # Returns: 'ns:BidApprovalArrayType'
152              
153             =cut
154              
155             sub getBidApproval {
156             my $self = shift;
157             return $self->_getDataTypeInstance( 'BidApproval'
158             ,'eBay::API::XML::DataType::BidApprovalArrayType');
159             }
160              
161              
162             =head2 setUserCatalogID()
163              
164             Number that identifies the seller's eBay Live Auctions catalog for which
165             they want to set bidding limits and approve or decline bidders.
166              
167             RequiredInput: Yes
168             # Argument: 'xs:int'
169              
170             =cut
171              
172             sub setUserCatalogID {
173             my $self = shift;
174             $self->{'UserCatalogID'} = shift
175             }
176              
177             =head2 getUserCatalogID()
178              
179             # Returns: 'xs:int'
180              
181             =cut
182              
183             sub getUserCatalogID {
184             my $self = shift;
185             return $self->{'UserCatalogID'};
186             }
187              
188              
189              
190              
191              
192             ## Attribute and Property lists
193             sub getPropertiesList {
194             my $self = shift;
195             return \@gaProperties;
196             }
197              
198             sub getAttributesList {
199             my $self = shift;
200             return \@gaAttributes;
201             }
202              
203              
204              
205             1;