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

com.ebay.sdk.call.SetStoreCategoriesCall 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.lang.Long;

import com.ebay.sdk.*;
import com.ebay.soap.eBLBaseComponents.*;
/**
 * Wrapper class of the SetStoreCategories 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: Action - Specifies the type of action (Add, Move, Delete, or Rename) to carry out * for the specified eBay Store categories. *
Input property: ItemDestinationCategoryID - Items can only be contained within child categories. A parent category * cannot contain items. If adding, moving, or deleting categories displaces * items, you must specify a destination child category under which the * displaced items will be moved. The destination category must have no * child categories. *
Input property: DestinationParentCategoryID - When adding or moving store categories, specifies the category under * which the listed categories will be located. To add or move categories to * the top level, set the value to -999. *
Input property: StoreCategories - Specifies the store categories on which to act. *
Output property: ReturnedTaskID - The task ID associated with the category structure change request. For a * simple change, the SetStoreCategories call is processed synchronously. * That is, simple changes are made immediately and then the response is * returned. For synchronous processing, the task ID in the response is 0. * If the category structure changes affect many listings, the changes will * be processed asynchronously and the task ID will be a positive number. * Use the non-zero task ID with GetStoreCategoryUpdateStatus to monitor * the status of asynchronously processed changes. *
Output property: ReturnedStatus - When an eBay Store category structure change is processed synchronously, the status * is returned as 'Complete' or 'Failed'. For asynchronously processed changes, * the status is reported as 'InProgress' or 'Pending'. Use GetStoreCategoryUpdateStatus to * monitor the status of asynchronously processed changes. *
Output property: ReturnedCustomCategory - Contains hierarchy data for eBay Store categories that you have created/modified. * * @author Ron Murphy * @version 1.0 */ public class SetStoreCategoriesCall extends com.ebay.sdk.ApiCall { private StoreCategoryUpdateActionCodeType action = null; private Long itemDestinationCategoryID = null; private Long destinationParentCategoryID = null; private StoreCustomCategoryArrayType storeCategories = null; private long returnedTaskID=0; private TaskStatusCodeType returnedStatus=null; private StoreCustomCategoryArrayType returnedCustomCategory=null; /** * Constructor. */ public SetStoreCategoriesCall() { } /** * Constructor. * @param apiContext The ApiContext object to be used to make the call. */ public SetStoreCategoriesCall(ApiContext apiContext) { super(apiContext); } /** * This call allows you to set or modify the category structure of an eBay Store. Sellers must have an eBay Store subscription in order to use this call. * *
* @throws ApiException * @throws SdkException * @throws Exception * @return The long object. */ public long setStoreCategories() throws com.ebay.sdk.ApiException, com.ebay.sdk.SdkException, java.lang.Exception { SetStoreCategoriesRequestType req; req = new SetStoreCategoriesRequestType(); if (this.action != null) req.setAction(this.action); if (this.itemDestinationCategoryID != null) req.setItemDestinationCategoryID(this.itemDestinationCategoryID); if (this.destinationParentCategoryID != null) req.setDestinationParentCategoryID(this.destinationParentCategoryID); if (this.storeCategories != null) req.setStoreCategories(this.storeCategories); SetStoreCategoriesResponseType resp = (SetStoreCategoriesResponseType) execute(req); this.returnedTaskID = (resp.getTaskID() == null? 0: resp.getTaskID().longValue()); this.returnedStatus = resp.getStatus(); this.returnedCustomCategory = resp.getCustomCategory(); return this.getReturnedTaskID(); } /** * Gets the SetStoreCategoriesRequestType.action. * @return StoreCategoryUpdateActionCodeType */ public StoreCategoryUpdateActionCodeType getAction() { return this.action; } /** * Sets the SetStoreCategoriesRequestType.action. * @param action StoreCategoryUpdateActionCodeType */ public void setAction(StoreCategoryUpdateActionCodeType action) { this.action = action; } /** * Gets the SetStoreCategoriesRequestType.destinationParentCategoryID. * @return Long */ public Long getDestinationParentCategoryID() { return this.destinationParentCategoryID; } /** * Sets the SetStoreCategoriesRequestType.destinationParentCategoryID. * @param destinationParentCategoryID Long */ public void setDestinationParentCategoryID(Long destinationParentCategoryID) { this.destinationParentCategoryID = destinationParentCategoryID; } /** * Gets the SetStoreCategoriesRequestType.itemDestinationCategoryID. * @return Long */ public Long getItemDestinationCategoryID() { return this.itemDestinationCategoryID; } /** * Sets the SetStoreCategoriesRequestType.itemDestinationCategoryID. * @param itemDestinationCategoryID Long */ public void setItemDestinationCategoryID(Long itemDestinationCategoryID) { this.itemDestinationCategoryID = itemDestinationCategoryID; } /** * Gets the SetStoreCategoriesRequestType.storeCategories. * @return StoreCustomCategoryArrayType */ public StoreCustomCategoryArrayType getStoreCategories() { return this.storeCategories; } /** * Sets the SetStoreCategoriesRequestType.storeCategories. * @param storeCategories StoreCustomCategoryArrayType */ public void setStoreCategories(StoreCustomCategoryArrayType storeCategories) { this.storeCategories = storeCategories; } /** * Valid after executing the API. * Gets the returned SetStoreCategoriesResponseType.returnedCustomCategory. * * @return StoreCustomCategoryArrayType */ public StoreCustomCategoryArrayType getReturnedCustomCategory() { return this.returnedCustomCategory; } /** * Valid after executing the API. * Gets the returned SetStoreCategoriesResponseType.returnedStatus. * * @return TaskStatusCodeType */ public TaskStatusCodeType getReturnedStatus() { return this.returnedStatus; } /** * Valid after executing the API. * Gets the returned SetStoreCategoriesResponseType.returnedTaskID. * * @return long */ public long getReturnedTaskID() { return this.returnedTaskID; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy