com.ebay.sdk.call.DeleteSellingManagerTemplateCall Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ebaysdkcore Show documentation
Show all versions of ebaysdkcore Show documentation
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.Long;
import java.lang.String;
import com.ebay.sdk.*;
import com.ebay.soap.eBLBaseComponents.*;
/**
* Wrapper class of the DeleteSellingManagerTemplate 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: SaleTemplateID
- ID of the template to be deleted.
* You can obtain a SaleTemplateID by calling GetSellingManagerInventory.
*
Output property: ReturnedDeletedSaleTemplateID
- The unique identifier of the template.
*
Output property: ReturnedDeletedSaleTemplateName
- The name of the Selling Manager template.
*
* @author Ron Murphy
* @version 1.0
*/
public class DeleteSellingManagerTemplateCall extends com.ebay.sdk.ApiCall
{
private Long saleTemplateID = null;
private String returnedDeletedSaleTemplateID=null;
private String returnedDeletedSaleTemplateName=null;
/**
* Constructor.
*/
public DeleteSellingManagerTemplateCall() {
}
/**
* Constructor.
* @param apiContext The ApiContext object to be used to make the call.
*/
public DeleteSellingManagerTemplateCall(ApiContext apiContext) {
super(apiContext);
}
/**
* Deletes a Selling Manager template.
* This call is subject to change without notice; the
* deprecation process is inapplicable to this call.
*
*
* @throws ApiException
* @throws SdkException
* @throws Exception
* @return The String object.
*/
public String deleteSellingManagerTemplate()
throws com.ebay.sdk.ApiException, com.ebay.sdk.SdkException, java.lang.Exception
{
DeleteSellingManagerTemplateRequestType req;
req = new DeleteSellingManagerTemplateRequestType();
if (this.saleTemplateID != null)
req.setSaleTemplateID(this.saleTemplateID);
DeleteSellingManagerTemplateResponseType resp = (DeleteSellingManagerTemplateResponseType) execute(req);
this.returnedDeletedSaleTemplateID = resp.getDeletedSaleTemplateID();
this.returnedDeletedSaleTemplateName = resp.getDeletedSaleTemplateName();
return this.getReturnedDeletedSaleTemplateID();
}
/**
* Gets the DeleteSellingManagerTemplateRequestType.saleTemplateID.
* @return Long
*/
public Long getSaleTemplateID()
{
return this.saleTemplateID;
}
/**
* Sets the DeleteSellingManagerTemplateRequestType.saleTemplateID.
* @param saleTemplateID Long
*/
public void setSaleTemplateID(Long saleTemplateID)
{
this.saleTemplateID = saleTemplateID;
}
/**
* Valid after executing the API.
* Gets the returned DeleteSellingManagerTemplateResponseType.returnedDeletedSaleTemplateID.
*
* @return String
*/
public String getReturnedDeletedSaleTemplateID()
{
return this.returnedDeletedSaleTemplateID;
}
/**
* Valid after executing the API.
* Gets the returned DeleteSellingManagerTemplateResponseType.returnedDeletedSaleTemplateName.
*
* @return String
*/
public String getReturnedDeletedSaleTemplateName()
{
return this.returnedDeletedSaleTemplateName;
}
}