File Coverage

lib/eBay/API/XML/Call/PlaceOffer/PlaceOfferRequestType.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::PlaceOffer::PlaceOfferRequestType;
4              
5 1     1   1593 use strict;
  1         3  
  1         41  
6 1     1   5 use warnings;
  1         3  
  1         50  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. PlaceOfferRequestType.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::PlaceOffer::PlaceOfferRequestType
21              
22             =head1 DESCRIPTION
23              
24             Enables a user to bid (make an offer) on an item or make a best offer.
25             For competitive-bidding listings
26             (Chinese and Dutch auctions), a user can make a bid. For fixed-price listings
27             (Basic Fixed-Price and eBay Stores Inventory listings), a user can purchase
28             an item. A user can make a best offer on an item for which Best Offer is enabled.
29             For information about the Best Offer feature (including rules for counteroffers),
30             see Enabling Best Offer.
31            
32            
33             For more information about each use of PlaceOffer (including
34             information about making a best offer or counteroffer, and information about
35             accepting or declining a counteroffer), please see
36             PlaceOffer Input.
37            
38            
39             Important note: Before using this call, please carefully review
40             the PlaceOffer Policies and Guidelines.
41             The PlaceOffer Policies are required for use of PlaceOffer in the production environment.
42             Please carefully write your application to follow all the PlaceOffer Policies.
43            
44            
45             Note: PlaceOffer is available
46             for evaluation by all in the Sandbox (test) environment.
47            

48             For information about becoming authorized to use PlaceOffer in the Production environment,
49             please contact Developer Relations, developer-relations@ebay.com.
50            
51            
52             Important notes:
53             When you use PlaceOffer to make a best offer,
54             no affiliate-related commissions are paid. Affiliate-commission functionality
55             is not available in the Sandbox environment. Affiliate commissions from PlaceOffer require
56             that the call be made to the site on which the item is listed. Affiliate commissions from
57             PlaceOffer also require that the affiliate has signed up with the eBay Partner Network
58             for the site on which the item is listed.
59            
60            
61             If you make a PlaceOffer request and eBay returns a BotBlock container, your application
62             must use the contents of the BotBlock container to show that the application-user is a human and not a bot.
63            
64            
65             Capture the contents of the BotBlock container
66             (BotBlockUrl, BotBlockAudioUrl, and BotBlockToken) returned by PlaceOffer.
67             The application-user must input the value for BotBlockUrl or BotBlockAudioUrl.
68             Your application must capture this value and,
69             in the next PlaceOffer call, include a BotBlock container (containing
70             the user-input value and the token you captured from the BotBlockToken field).
71             eBay then uses your BotBlock container (in your second PlaceOffer call) to validate
72             that the user is a human and not a bot.
73            
74            
75             You can use GetChallengeToken to test your application's ability
76             to show that a PlaceOffer user is a human and not a bot.
77             Make a GetChallengeToken request and capture ChallengeToken, ImageChallengeURL,
78             and AudioChallengeURL. The application-user must input the value for ImageChallengeURL
79             or AudioChallengeURL. Your application must capture this value and,
80             in a PlaceOffer call, include a BotBlock container. The BotBlock container will contain
81             the user-input value along with the value from ChallengeToken (from the GetChallengeToken response).
82             eBay then uses your BotBlock container to validate that the user is a human and not a bot.
83            
84            
85             If PayPal is the required payment method, then the user making a bid or purchase must have a PayPal account.
86            
87            
88             If a user has placed a bid on an item with Bid Assistant (available on the eBay site),
89             then a subsequent PlaceOffer call on behalf of that user, on that item, will not succeed.
90              
91              
92              
93             =head1 SYNOPSIS
94              
95             =cut
96              
97              
98             =head1 INHERITANCE
99              
100             eBay::API::XML::Call::PlaceOffer::PlaceOfferRequestType inherits from the L class
101              
102             =cut
103              
104 1     1   54 use eBay::API::XML::RequestDataType;
  0            
  0            
105             our @ISA = ("eBay::API::XML::RequestDataType");
106              
107             use eBay::API::XML::DataType::AffiliateTrackingDetailsType;
108             use eBay::API::XML::DataType::ItemIDType;
109             use eBay::API::XML::DataType::OfferType;
110              
111              
112             my @gaProperties = ( [ 'AffiliateTrackingDetails', 'ns:AffiliateTrackingDetailsType', ''
113             ,'eBay::API::XML::DataType::AffiliateTrackingDetailsType', '1' ]
114             , [ 'BlockOnWarning', 'xs:boolean', '', '', '' ]
115             , [ 'ItemID', 'ns:ItemIDType', ''
116             ,'eBay::API::XML::DataType::ItemIDType', '1' ]
117             , [ 'Offer', 'ns:OfferType', ''
118             ,'eBay::API::XML::DataType::OfferType', '1' ]
119             );
120             push @gaProperties, @{eBay::API::XML::RequestDataType::getPropertiesList()};
121              
122             my @gaAttributes = (
123             );
124             push @gaAttributes, @{eBay::API::XML::RequestDataType::getAttributesList()};
125              
126             =head1 Subroutines:
127              
128             =cut
129              
130             sub new {
131             my $classname = shift;
132             my %args = @_;
133             my $self = $classname->SUPER::new(%args);
134             return $self;
135             }
136              
137             sub isScalar {
138             return 0;
139             }
140              
141              
142              
143             =head2 setAffiliateTrackingDetails()
144              
145             Container for affiliate-related tags, which enable the tracking of user activity.
146             If you include AffiliateTrackingDetails in your PlaceOffer call,
147             then it is possible to receive affiliate commissions based on calls made
148             by your application.
149             (See the
150             eBay Partner Network
151             for information about commissions.)
152             Please note that affiliate tracking is not available in the Sandbox environment, and that
153             affiliate tracking is not available when you make a best offer.
154              
155             SeeLink: URL: http://developer.ebay.com/DevZone/XML/docs/WebHelp/index.htm?context=eBay_XML_API&topic=AffiliateTrackingConcepts
156             Title: Affiliate Tracking Concepts
157              
158             RequiredInput: No
159             # Argument: 'ns:AffiliateTrackingDetailsType'
160              
161             =cut
162              
163             sub setAffiliateTrackingDetails {
164             my $self = shift;
165             $self->{'AffiliateTrackingDetails'} = shift
166             }
167              
168             =head2 getAffiliateTrackingDetails()
169              
170             # Returns: 'ns:AffiliateTrackingDetailsType'
171              
172             =cut
173              
174             sub getAffiliateTrackingDetails {
175             my $self = shift;
176             return $self->_getDataTypeInstance( 'AffiliateTrackingDetails'
177             ,'eBay::API::XML::DataType::AffiliateTrackingDetailsType');
178             }
179              
180              
181             =head2 setBlockOnWarning()
182              
183             If a warning message exists and BlockOnWarning is true,
184             the warning message is returned and the bid is blocked. If no warning message
185             exists and BlockOnWarning is true, the bid is placed. If BlockOnWarning
186             is false, the bid is placed, regardless of warning.
187              
188             RequiredInput: No
189             # Argument: 'xs:boolean'
190              
191             =cut
192              
193             sub setBlockOnWarning {
194             my $self = shift;
195             $self->{'BlockOnWarning'} = shift
196             }
197              
198             =head2 isBlockOnWarning()
199              
200             # Returns: 'xs:boolean'
201              
202             =cut
203              
204             sub isBlockOnWarning {
205             my $self = shift;
206             return $self->{'BlockOnWarning'};
207             }
208              
209              
210             =head2 setItemID()
211              
212             Unique item ID that identifies the item listing for which the offer is
213             being submitted.
214              
215             MaxLength: 19 (Note: The eBay database specifies 38. Currently, Item IDs are usually 9 to 12 digits)
216              
217             RequiredInput: Yes
218             # Argument: 'ns:ItemIDType'
219              
220             =cut
221              
222             sub setItemID {
223             my $self = shift;
224             $self->{'ItemID'} = shift
225             }
226              
227             =head2 getItemID()
228              
229             # Returns: 'ns:ItemIDType'
230              
231             =cut
232              
233             sub getItemID {
234             my $self = shift;
235             return $self->_getDataTypeInstance( 'ItemID'
236             ,'eBay::API::XML::DataType::ItemIDType');
237             }
238              
239              
240             =head2 setOffer()
241              
242             Specifies the type of offer being made. If the item is a
243             competitive-bidding listing, the offer is a bid. If the item is a
244             fixed-price listing, then the offer purchases the item. If the item is a
245             competitive-bidding listing and the offer is of type with an active,
246             unexercised Buy It Now option, then the offer can either purchase the
247             item or be a bid. See the schema documentation for OfferType for details
248             on its properties and their meanings.
249              
250             RequiredInput: Yes
251             # Argument: 'ns:OfferType'
252              
253             =cut
254              
255             sub setOffer {
256             my $self = shift;
257             $self->{'Offer'} = shift
258             }
259              
260             =head2 getOffer()
261              
262             # Returns: 'ns:OfferType'
263              
264             =cut
265              
266             sub getOffer {
267             my $self = shift;
268             return $self->_getDataTypeInstance( 'Offer'
269             ,'eBay::API::XML::DataType::OfferType');
270             }
271              
272              
273              
274              
275              
276             ## Attribute and Property lists
277             sub getPropertiesList {
278             my $self = shift;
279             return \@gaProperties;
280             }
281              
282             sub getAttributesList {
283             my $self = shift;
284             return \@gaAttributes;
285             }
286              
287              
288              
289             1;