File Coverage

lib/eBay/API/XML/Call/GetBestOffers/GetBestOffersRequestType.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::GetBestOffers::GetBestOffersRequestType;
4              
5 1     1   1347 use strict;
  1         2  
  1         24  
6 1     1   3 use warnings;
  1         2  
  1         25  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. GetBestOffersRequestType.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::GetBestOffers::GetBestOffersRequestType
21              
22             =head1 DESCRIPTION
23              
24             Retrieves the best offers associated with an ItemID, according to the
25             BestOfferStatus filter, where Active is the default value.
26             You can specify a best offer ID to retrieve the details for a specific best offer.
27             A buyer can use GetBestOffers to see the buyer's best offer (BestOfferID, etc.)
28             and the current state of the best offer (e.g., whether the seller has made a counter offer).
29              
30              
31              
32             =head1 SYNOPSIS
33              
34             =cut
35              
36              
37             =head1 INHERITANCE
38              
39             eBay::API::XML::Call::GetBestOffers::GetBestOffersRequestType inherits from the L class
40              
41             =cut
42              
43 1     1   31 use eBay::API::XML::RequestDataType;
  0            
  0            
44             our @ISA = ("eBay::API::XML::RequestDataType");
45              
46             use eBay::API::XML::DataType::BestOfferIDType;
47             use eBay::API::XML::DataType::ItemIDType;
48             use eBay::API::XML::DataType::Enum::BestOfferStatusCodeType;
49              
50              
51             my @gaProperties = ( [ 'BestOfferID', 'ns:BestOfferIDType', ''
52             ,'eBay::API::XML::DataType::BestOfferIDType', '1' ]
53             , [ 'BestOfferStatus', 'ns:BestOfferStatusCodeType', ''
54             ,'eBay::API::XML::DataType::Enum::BestOfferStatusCodeType', '' ]
55             , [ 'ItemID', 'ns:ItemIDType', ''
56             ,'eBay::API::XML::DataType::ItemIDType', '1' ]
57             );
58             push @gaProperties, @{eBay::API::XML::RequestDataType::getPropertiesList()};
59              
60             my @gaAttributes = (
61             );
62             push @gaAttributes, @{eBay::API::XML::RequestDataType::getAttributesList()};
63              
64             =head1 Subroutines:
65              
66             =cut
67              
68             sub new {
69             my $classname = shift;
70             my %args = @_;
71             my $self = $classname->SUPER::new(%args);
72             return $self;
73             }
74              
75             sub isScalar {
76             return 0;
77             }
78              
79              
80              
81             =head2 setBestOfferID()
82              
83             Need not be specified by a buyer or a seller.
84             The BestOfferID is the specific Best Offer you want information about.
85             If you are the seller, you can get a list of all best offers
86             (according to BestOfferStatus) by omitting this field.
87              
88             RequiredInput: No
89             # Argument: 'ns:BestOfferIDType'
90              
91             =cut
92              
93             sub setBestOfferID {
94             my $self = shift;
95             $self->{'BestOfferID'} = shift
96             }
97              
98             =head2 getBestOfferID()
99              
100             # Returns: 'ns:BestOfferIDType'
101              
102             =cut
103              
104             sub getBestOfferID {
105             my $self = shift;
106             return $self->_getDataTypeInstance( 'BestOfferID'
107             ,'eBay::API::XML::DataType::BestOfferIDType');
108             }
109              
110              
111             =head2 setBestOfferStatus()
112              
113             A filter determining which Best Offers to return for an item. Active is the default.
114              
115             RequiredInput: No
116             OnlyTheseValues: All, Active
117             # Argument: 'ns:BestOfferStatusCodeType'
118              
119             =cut
120              
121             sub setBestOfferStatus {
122             my $self = shift;
123             $self->{'BestOfferStatus'} = shift
124             }
125              
126             =head2 getBestOfferStatus()
127              
128             # Returns: 'ns:BestOfferStatusCodeType'
129              
130             =cut
131              
132             sub getBestOfferStatus {
133             my $self = shift;
134             return $self->{'BestOfferStatus'};
135             }
136              
137              
138             =head2 setItemID()
139              
140             The item for which Best Offer information is to be returned.
141             If you are a buyer and you have a valid best offer,
142             then your best-offer information will be returned for the item you specify.
143              
144             MaxLength: 19 (Note: The eBay database specifies 38. Currently, Item IDs are usually 9 to 12 digits)
145              
146             RequiredInput: Yes
147             # Argument: 'ns:ItemIDType'
148              
149             =cut
150              
151             sub setItemID {
152             my $self = shift;
153             $self->{'ItemID'} = shift
154             }
155              
156             =head2 getItemID()
157              
158             # Returns: 'ns:ItemIDType'
159              
160             =cut
161              
162             sub getItemID {
163             my $self = shift;
164             return $self->_getDataTypeInstance( 'ItemID'
165             ,'eBay::API::XML::DataType::ItemIDType');
166             }
167              
168              
169              
170              
171              
172             ## Attribute and Property lists
173             sub getPropertiesList {
174             my $self = shift;
175             return \@gaProperties;
176             }
177              
178             sub getAttributesList {
179             my $self = shift;
180             return \@gaAttributes;
181             }
182              
183              
184              
185             1;