All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ebay.sdk.call.GetAllBiddersCall Maven / Gradle / Ivy

Go to download

This SDK enables you to use Java to make API calls in the eBay Trading API, which is an XML API. This maven build is provided by tonicsoft for convenience and is an exact copy of version 981 of the project distributed by eBay via the official eBay SDK website.

The newest version!
/*
Copyright (c) 2013 eBay, Inc.
This program is licensed under the terms of the eBay Common Development and
Distribution License (CDDL) Version 1.0 (the "License") and any subsequent  version 
thereof released by eBay.  The then-current version of the License can be found 
at http://www.opensource.org/licenses/cddl1.php and in the eBaySDKLicense file that 
is under the root directory at /LICENSE.txt.
*/

package com.ebay.sdk.call;

import java.lang.Boolean;

import com.ebay.sdk.*;
import com.ebay.soap.eBLBaseComponents.*;
/**
 * Wrapper class of the GetAllBidders call of eBay SOAP API.
 * 
*

Title: SOAP API wrapper library.

*

Description: Contains wrapper classes for eBay SOAP APIs.

*

Copyright: Copyright (c) 2009

*

Company: eBay Inc.

*
Input property: ItemID - This is the unique identifier of the auction listing for which bidders are being retrieved. This auction listing can be active or recently ended. However, to retrieve bidders for an active auction listing, the only CallMode enumeration value that can be used is ViewAll. *
Input property: CallMode - The enumeration value that is passed into this field will control the set of bidders that will be retrieved in the response. To retrieve bidders from a recently-ended auction listing, any of the three values can be used. To retrieve bidders for an active auction listing, only the ViewAll enumeration value can be used. These values are discussed in more detail below. *
Input property: IncludeBiddingSummary - The user must include this field and set its value to true if the user wishes to retrieve the BiddingSummary container for each bidder. The BiddingSummary container consists of more detailed bidding information on each bidder. *
Output property: ReturnedBidArray - Contains a list of OfferType objects. Each * OfferType object represents the data for one bidder and bid. *
Output property: ReturnedHighBidder - eBay user ID for the user with the highest bid (or the earliest timestamp, in the event of a tie); a second chance offer candidate. *
Output property: ReturnedHighestBid - Bid amount offered by the HighBidder. *
Output property: ReturnedListingStatus - Specifies an active or ended listing's status in eBay's processing workflow. * If a listing ends with a sale (or sales), eBay needs to update the sale details (e.g., winning bidder) and other information. This processing * can take several minutes. If you retrieve a sold item, use this listing status information to determine whether eBay has finished processing the listing so that you can be sure the winning bidder and other details are correct and complete. * * @author Ron Murphy * @version 1.0 */ public class GetAllBiddersCall extends com.ebay.sdk.ApiCall { private String itemID = null; private GetAllBiddersModeCodeType callMode = null; private Boolean includeBiddingSummary = null; private OfferType[] returnedBidArray=null; private String returnedHighBidder=null; private AmountType returnedHighestBid=null; private ListingStatusCodeType returnedListingStatus=null; /** * Constructor. */ public GetAllBiddersCall() { } /** * Constructor. * @param apiContext The ApiContext object to be used to make the call. */ public GetAllBiddersCall(ApiContext apiContext) { super(apiContext); } /** * This is the base request type for the GetAllBidders call, which is used to retrieve bidders from an active or recently-ended auction listing. * *
* @throws ApiException * @throws SdkException * @throws Exception * @return The OfferType[] object. */ public OfferType[] getAllBidders() throws com.ebay.sdk.ApiException, com.ebay.sdk.SdkException, java.lang.Exception { GetAllBiddersRequestType req; req = new GetAllBiddersRequestType(); req.setDetailLevel(this.getDetailLevel()); if (this.itemID != null) req.setItemID(this.itemID); if (this.callMode != null) req.setCallMode(this.callMode); if (this.includeBiddingSummary != null) req.setIncludeBiddingSummary(this.includeBiddingSummary); GetAllBiddersResponseType resp = (GetAllBiddersResponseType) execute(req); this.returnedBidArray = (resp.getBidArray() == null? null: resp.getBidArray().getOffer()); this.returnedHighBidder = resp.getHighBidder(); this.returnedHighestBid = resp.getHighestBid(); this.returnedListingStatus = resp.getListingStatus(); return this.getReturnedBidArray(); } /** * Gets the GetAllBiddersRequestType.callMode. * @return GetAllBiddersModeCodeType */ public GetAllBiddersModeCodeType getCallMode() { return this.callMode; } /** * Sets the GetAllBiddersRequestType.callMode. * @param callMode GetAllBiddersModeCodeType */ public void setCallMode(GetAllBiddersModeCodeType callMode) { this.callMode = callMode; } /** * Gets the GetAllBiddersRequestType.includeBiddingSummary. * @return Boolean */ public Boolean getIncludeBiddingSummary() { return this.includeBiddingSummary; } /** * Sets the GetAllBiddersRequestType.includeBiddingSummary. * @param includeBiddingSummary Boolean */ public void setIncludeBiddingSummary(Boolean includeBiddingSummary) { this.includeBiddingSummary = includeBiddingSummary; } /** * Gets the GetAllBiddersRequestType.itemID. * @return String */ public String getItemID() { return this.itemID; } /** * Sets the GetAllBiddersRequestType.itemID. * @param itemID String */ public void setItemID(String itemID) { this.itemID = itemID; } /** * Valid after executing the API. * Gets the returned GetAllBiddersResponseType.returnedBidArray. * * @return OfferType[] */ public OfferType[] getReturnedBidArray() { return this.returnedBidArray; } /** * Valid after executing the API. * Gets the returned GetAllBiddersResponseType.returnedHighBidder. * * @return String */ public String getReturnedHighBidder() { return this.returnedHighBidder; } /** * Valid after executing the API. * Gets the returned GetAllBiddersResponseType.returnedHighestBid. * * @return AmountType */ public AmountType getReturnedHighestBid() { return this.returnedHighestBid; } /** * Valid after executing the API. * Gets the returned GetAllBiddersResponseType.returnedListingStatus. * * @return ListingStatusCodeType */ public ListingStatusCodeType getReturnedListingStatus() { return this.returnedListingStatus; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy