File Coverage

lib/eBay/API/XML/Call/PlaceOffer.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;
4              
5 1     1   2386 use strict;
  1         3  
  1         55  
6 1     1   5 use warnings;
  1         3  
  1         30  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. PlaceOffer.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
21              
22             =head1 DESCRIPTION
23              
24              
25              
26             =head1 SYNOPSIS
27              
28             =cut
29              
30              
31             =head1 INHERITANCE
32              
33             eBay::API::XML::Call::PlaceOffer inherits from the L class
34              
35             =cut
36              
37 1     1   36 use eBay::API::XML::BaseCall;
  0            
  0            
38             our @ISA = ("eBay::API::XML::BaseCall");
39              
40             use eBay::API::XML::Call::PlaceOffer::PlaceOfferRequestType;
41             use eBay::API::XML::Call::PlaceOffer::PlaceOfferResponseType;
42              
43              
44             =head1 Subroutines:
45              
46             =cut
47              
48             sub getApiCallName {
49             return 'PlaceOffer';
50             }
51             sub getRequestDataTypeFullPackage {
52             return 'eBay::API::XML::Call::PlaceOffer::PlaceOfferRequestType';
53             }
54             sub getResponseDataTypeFullPackage {
55             return 'eBay::API::XML::Call::PlaceOffer::PlaceOfferResponseType';
56             }
57              
58             #
59             # input properties
60             #
61              
62             =head2 setAffiliateTrackingDetails()
63              
64             Container for affiliate-related tags, which enable the tracking of user activity.
65             If you include AffiliateTrackingDetails in your PlaceOffer call,
66             then it is possible to receive affiliate commissions based on calls made
67             by your application.
68             (See the
69             eBay Partner Network
70             for information about commissions.)
71             Please note that affiliate tracking is not available in the Sandbox environment, and that
72             affiliate tracking is not available when you make a best offer.
73              
74             SeeLink: URL: http://developer.ebay.com/DevZone/XML/docs/WebHelp/index.htm?context=eBay_XML_API&topic=AffiliateTrackingConcepts
75             Title: Affiliate Tracking Concepts
76              
77             RequiredInput: No
78             # Argument: 'ns:AffiliateTrackingDetailsType'
79              
80             =cut
81            
82             sub setAffiliateTrackingDetails {
83             my $self = shift;
84             my $pAffiliateTrackingDetails = shift;
85             $self->getRequestDataType()->setAffiliateTrackingDetails($pAffiliateTrackingDetails);
86             }
87              
88             =head2 setBlockOnWarning()
89              
90             If a warning message exists and BlockOnWarning is true,
91             the warning message is returned and the bid is blocked. If no warning message
92             exists and BlockOnWarning is true, the bid is placed. If BlockOnWarning
93             is false, the bid is placed, regardless of warning.
94              
95             RequiredInput: No
96             # Argument: 'xs:boolean'
97              
98             =cut
99            
100             sub setBlockOnWarning {
101             my $self = shift;
102             my $sBlockOnWarning = shift;
103             $self->getRequestDataType()->setBlockOnWarning($sBlockOnWarning);
104             }
105              
106             =head2 setItemID()
107              
108             Unique item ID that identifies the item listing for which the offer is
109             being submitted.
110              
111             MaxLength: 19 (Note: The eBay database specifies 38. Currently, Item IDs are usually 9 to 12 digits)
112              
113             RequiredInput: Yes
114             # Argument: 'ns:ItemIDType'
115              
116             =cut
117            
118             sub setItemID {
119             my $self = shift;
120             my $pItemID = shift;
121             $self->getRequestDataType()->setItemID($pItemID);
122             }
123              
124             =head2 setOffer()
125              
126             Specifies the type of offer being made. If the item is a
127             competitive-bidding listing, the offer is a bid. If the item is a
128             fixed-price listing, then the offer purchases the item. If the item is a
129             competitive-bidding listing and the offer is of type with an active,
130             unexercised Buy It Now option, then the offer can either purchase the
131             item or be a bid. See the schema documentation for OfferType for details
132             on its properties and their meanings.
133              
134             RequiredInput: Yes
135             # Argument: 'ns:OfferType'
136              
137             =cut
138            
139             sub setOffer {
140             my $self = shift;
141             my $pOffer = shift;
142             $self->getRequestDataType()->setOffer($pOffer);
143             }
144              
145              
146              
147             #
148             # output properties
149             #
150              
151             =head2 getBestOffer()
152              
153             For a best-offer-related action of a buyer using PlaceOffer,
154             contains information about the best-offer-related action.
155              
156             Returned: Conditionally
157             # Returns: 'ns:BestOfferType'
158              
159             =cut
160            
161             sub getBestOffer {
162             my $self = shift;
163             return $self->getResponseDataType()->getBestOffer();
164             }
165              
166             =head2 getSellingStatus()
167              
168             Indicates the current bidding/purchase state of the item listing, as of
169             the offer extended using PlaceOffer. See the schema documentation for
170             the SellingStatus object, the properties of which contain such
171             post-offer information as the current high bidder, the current price for
172             the item, and the bid increment.
173              
174             Returned: Always
175             # Returns: 'ns:SellingStatusType'
176              
177             =cut
178            
179             sub getSellingStatus {
180             my $self = shift;
181             return $self->getResponseDataType()->getSellingStatus();
182             }
183              
184             =head2 getTransactionID()
185              
186             The TransactionID field can be returned if, on input, you specified Purchase in the Action field.
187             The TransactionID field contains the ID of the transaction created.
188             This field applies to the following types of listings:
189             FixedPriceItem and StoresFixedPrice. This field also applies to Chinese BIN
190             if you specified Purchase on input.
191              
192             Returned: Conditionally
193             # Returns: 'xs:string'
194              
195             =cut
196            
197             sub getTransactionID {
198             my $self = shift;
199             return $self->getResponseDataType()->getTransactionID();
200             }
201              
202              
203              
204              
205              
206             1;