com.ebay.sdk.call.SetSellingManagerTemplateAutomationRuleCall Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ebaysdkcore939 Show documentation
Show all versions of ebaysdkcore939 Show documentation
Repack of the eBay SDK version 939 for repository use
/*
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.lang.Long;
import com.ebay.sdk.*;
import com.ebay.soap.eBLBaseComponents.*;
/**
* Wrapper class of the SetSellingManagerTemplateAutomationRule 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
- The ID of the Selling Manager template whose automation rules
* you want to change. You can obtain a SaleTemplateID by calling
* GetSellingManagerInventory.
*
Input property: AutomatedListingRule
- The information for the automated listing rule to be associated with the template.
*
Input property: AutomatedRelistingRule
- The information for the automated relisting rule to be associated with the template.
*
Input property: AutomatedSecondChanceOfferRule
- The information for the automated second chance offer rule to be associated with the template.
*
Output property: ReturnedAutomatedListingRule
- Contains the automated listing rule associated with this template.
*
Output property: ReturnedAutomatedRelistingRule
- Contains the automated relisting rule associated with this template.
*
Output property: ReturnedAutomatedSecondChanceOfferRule
- Contains the automated second chance offer rule associated with this template.
*
Output property: ReturnedFees
- Contains fees that may be incurred when items are listed using the
* automation rules (e.g., a scheduled listing fee). Use of an automation rule
* does not in itself have a fee, but use can result in a fee.
*
* @author Ron Murphy
* @version 1.0
*/
public class SetSellingManagerTemplateAutomationRuleCall extends com.ebay.sdk.ApiCall
{
private Long saleTemplateID = null;
private SellingManagerAutoListType automatedListingRule = null;
private SellingManagerAutoRelistType automatedRelistingRule = null;
private SellingManagerAutoSecondChanceOfferType automatedSecondChanceOfferRule = null;
private SellingManagerAutoListType returnedAutomatedListingRule=null;
private SellingManagerAutoRelistType returnedAutomatedRelistingRule=null;
private SellingManagerAutoSecondChanceOfferType returnedAutomatedSecondChanceOfferRule=null;
private FeesType returnedFees=null;
/**
* Constructor.
*/
public SetSellingManagerTemplateAutomationRuleCall() {
}
/**
* Constructor.
* @param apiContext The ApiContext object to be used to make the call.
*/
public SetSellingManagerTemplateAutomationRuleCall(ApiContext apiContext) {
super(apiContext);
}
/**
* Revises, or adds to, the Selling Manager automation
* rules associated with a template.
*
*
* This call is subject to change without notice; the
* deprecation process is inapplicable to this call.
*
*
* Using this call, you can add either an autorelist rule or
* an autolist rule, but not both.
* You also can add a second chance
* offer rule (restricted to auction items and auction templates).
*
*
* This call also enables you to specify particular information about automation
* rules.
*
*
* If a node is not passed in the call, the setting for the corresponding
* automation rule remains unchanged.
*
*
* Although this call can revise (overwrite) an existing rule,
* this call cannot delete an automation rule.
* (Instead, use DeleteSellingManagerTemplateAutomationRule.)
*
*
* @throws ApiException
* @throws SdkException
* @throws Exception
* @return The SellingManagerAutoListType object.
*/
public SellingManagerAutoListType setSellingManagerTemplateAutomationRule()
throws com.ebay.sdk.ApiException, com.ebay.sdk.SdkException, java.lang.Exception
{
SetSellingManagerTemplateAutomationRuleRequestType req;
req = new SetSellingManagerTemplateAutomationRuleRequestType();
if (this.saleTemplateID != null)
req.setSaleTemplateID(this.saleTemplateID);
if (this.automatedListingRule != null)
req.setAutomatedListingRule(this.automatedListingRule);
if (this.automatedRelistingRule != null)
req.setAutomatedRelistingRule(this.automatedRelistingRule);
if (this.automatedSecondChanceOfferRule != null)
req.setAutomatedSecondChanceOfferRule(this.automatedSecondChanceOfferRule);
SetSellingManagerTemplateAutomationRuleResponseType resp = (SetSellingManagerTemplateAutomationRuleResponseType) execute(req);
this.returnedAutomatedListingRule = resp.getAutomatedListingRule();
this.returnedAutomatedRelistingRule = resp.getAutomatedRelistingRule();
this.returnedAutomatedSecondChanceOfferRule = resp.getAutomatedSecondChanceOfferRule();
this.returnedFees = resp.getFees();
return this.getReturnedAutomatedListingRule();
}
/**
* Gets the SetSellingManagerTemplateAutomationRuleRequestType.automatedListingRule.
* @return SellingManagerAutoListType
*/
public SellingManagerAutoListType getAutomatedListingRule()
{
return this.automatedListingRule;
}
/**
* Sets the SetSellingManagerTemplateAutomationRuleRequestType.automatedListingRule.
* @param automatedListingRule SellingManagerAutoListType
*/
public void setAutomatedListingRule(SellingManagerAutoListType automatedListingRule)
{
this.automatedListingRule = automatedListingRule;
}
/**
* Gets the SetSellingManagerTemplateAutomationRuleRequestType.automatedRelistingRule.
* @return SellingManagerAutoRelistType
*/
public SellingManagerAutoRelistType getAutomatedRelistingRule()
{
return this.automatedRelistingRule;
}
/**
* Sets the SetSellingManagerTemplateAutomationRuleRequestType.automatedRelistingRule.
* @param automatedRelistingRule SellingManagerAutoRelistType
*/
public void setAutomatedRelistingRule(SellingManagerAutoRelistType automatedRelistingRule)
{
this.automatedRelistingRule = automatedRelistingRule;
}
/**
* Gets the SetSellingManagerTemplateAutomationRuleRequestType.automatedSecondChanceOfferRule.
* @return SellingManagerAutoSecondChanceOfferType
*/
public SellingManagerAutoSecondChanceOfferType getAutomatedSecondChanceOfferRule()
{
return this.automatedSecondChanceOfferRule;
}
/**
* Sets the SetSellingManagerTemplateAutomationRuleRequestType.automatedSecondChanceOfferRule.
* @param automatedSecondChanceOfferRule SellingManagerAutoSecondChanceOfferType
*/
public void setAutomatedSecondChanceOfferRule(SellingManagerAutoSecondChanceOfferType automatedSecondChanceOfferRule)
{
this.automatedSecondChanceOfferRule = automatedSecondChanceOfferRule;
}
/**
* Gets the SetSellingManagerTemplateAutomationRuleRequestType.saleTemplateID.
* @return Long
*/
public Long getSaleTemplateID()
{
return this.saleTemplateID;
}
/**
* Sets the SetSellingManagerTemplateAutomationRuleRequestType.saleTemplateID.
* @param saleTemplateID Long
*/
public void setSaleTemplateID(Long saleTemplateID)
{
this.saleTemplateID = saleTemplateID;
}
/**
* Valid after executing the API.
* Gets the returned SetSellingManagerTemplateAutomationRuleResponseType.returnedAutomatedListingRule.
*
* @return SellingManagerAutoListType
*/
public SellingManagerAutoListType getReturnedAutomatedListingRule()
{
return this.returnedAutomatedListingRule;
}
/**
* Valid after executing the API.
* Gets the returned SetSellingManagerTemplateAutomationRuleResponseType.returnedAutomatedRelistingRule.
*
* @return SellingManagerAutoRelistType
*/
public SellingManagerAutoRelistType getReturnedAutomatedRelistingRule()
{
return this.returnedAutomatedRelistingRule;
}
/**
* Valid after executing the API.
* Gets the returned SetSellingManagerTemplateAutomationRuleResponseType.returnedAutomatedSecondChanceOfferRule.
*
* @return SellingManagerAutoSecondChanceOfferType
*/
public SellingManagerAutoSecondChanceOfferType getReturnedAutomatedSecondChanceOfferRule()
{
return this.returnedAutomatedSecondChanceOfferRule;
}
/**
* Valid after executing the API.
* Gets the returned SetSellingManagerTemplateAutomationRuleResponseType.returnedFees.
*
* @return FeesType
*/
public FeesType getReturnedFees()
{
return this.returnedFees;
}
}