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

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

There is a newer version: 1131.1
Show 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 eBay SDK ../docs directory.
*/

package com.ebay.sdk.call;

import java.util.Calendar;

import com.ebay.sdk.*;
import com.ebay.soap.eBLBaseComponents.*;
/**
 * Wrapper class of the EndFixedPriceItem 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 - Unique item ID that identifies the listing that you want to end. *

* In the EndFixedPriceItem request, either ItemID or SKU is required. * If both are passed in and they don't refer to the same listing, eBay * ignores SKU and considers only the lt;b>ItemID. *
Input property: EndingReason - The seller's reason for ending the listing early is input into this required field. *
Input property: SKU - The seller-defined SKU (stock keeping unit) value of the item in the listing being ended. The SKU field can only be used to end a listing if that listing was created or relisted with an AddFixedPriceItem or RelistFixedPriceItem call, and the Item.InventoryTrackingMethod was included in the call and set to SKU. *

* In the EndFixedPriceItem request, either ItemID or SKU is required. * If both are passed in and they don't refer to the same listing, eBay * ignores SKU and considers only the lt;b>ItemID. *
Output property: ReturnedEndTime - Timestamp that indicates the date and time (GMT) that the specified listing was ended. *
Output property: ReturnedSKU - If a SKU (stock-keeping unit) exists for the item in the listing, it is returned in the response. * * @author Ron Murphy * @version 1.0 */ public class EndFixedPriceItemCall extends com.ebay.sdk.ApiCall { private String itemID = null; private EndReasonCodeType endingReason = null; private String sKU = null; private Calendar returnedEndTime=null; private String returnedSKU=null; /** * Constructor. */ public EndFixedPriceItemCall() { } /** * Constructor. * @param apiContext The ApiContext object to be used to make the call. */ public EndFixedPriceItemCall(ApiContext apiContext) { super(apiContext); } /** * Ends the specified fixed-price listing before the date and time at which * it would normally end (per the listing duration). * *
* @throws ApiException * @throws SdkException * @throws Exception * @return The Calendar object. */ public Calendar endFixedPriceItem() throws com.ebay.sdk.ApiException, com.ebay.sdk.SdkException, java.lang.Exception { EndFixedPriceItemRequestType req; req = new EndFixedPriceItemRequestType(); if (this.itemID != null) req.setItemID(this.itemID); if (this.endingReason != null) req.setEndingReason(this.endingReason); if (this.sKU != null) req.setSKU(this.sKU); EndFixedPriceItemResponseType resp = (EndFixedPriceItemResponseType) execute(req); this.returnedEndTime = resp.getEndTime(); this.returnedSKU = resp.getSKU(); return this.getReturnedEndTime(); } /** * Gets the EndFixedPriceItemRequestType.endingReason. * @return EndReasonCodeType */ public EndReasonCodeType getEndingReason() { return this.endingReason; } /** * Sets the EndFixedPriceItemRequestType.endingReason. * @param endingReason EndReasonCodeType */ public void setEndingReason(EndReasonCodeType endingReason) { this.endingReason = endingReason; } /** * Gets the EndFixedPriceItemRequestType.itemID. * @return String */ public String getItemID() { return this.itemID; } /** * Sets the EndFixedPriceItemRequestType.itemID. * @param itemID String */ public void setItemID(String itemID) { this.itemID = itemID; } /** * Gets the EndFixedPriceItemRequestType.sKU. * @return String */ public String getSKU() { return this.sKU; } /** * Sets the EndFixedPriceItemRequestType.sKU. * @param sKU String */ public void setSKU(String sKU) { this.sKU = sKU; } /** * Valid after executing the API. * Gets the returned EndFixedPriceItemResponseType.returnedEndTime. * * @return Calendar */ public Calendar getReturnedEndTime() { return this.returnedEndTime; } /** * Valid after executing the API. * Gets the returned EndFixedPriceItemResponseType.returnedSKU. * * @return String */ public String getReturnedSKU() { return this.returnedSKU; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy