Пример #1
0
        public void SetPromotionalSaleListings()
        {
            SetPromotionalSaleListingsCall api = new SetPromotionalSaleListingsCall(this.apiContext);
            ItemIDArrayType  itemIDArrayType   = new ItemIDArrayType();
            StringCollection strCollection     = new StringCollection();

            strCollection.Add("445566778L");
            itemIDArrayType.ItemID = strCollection;
            try
            {
                //add a param 'false' at the end by william, 3.13.2008
                PromotionalSaleStatusCodeType resp =
                    api.SetPromotionalSaleListings(16771004L, ModifyActionCodeType.Add,
                                                   itemIDArrayType, 234567890L, 12345L, true, false, false);
            }
            catch (ApiException apie)
            {
                Console.WriteLine("ApiException: " + apie.Message);
            }
            catch (SdkException sdke)
            {
                Assert.Fail("SdkException: " + sdke.Message);
            }
        }
        public void SetPromotionalSaleListings()
        {
            SetPromotionalSaleListingsCall api = new SetPromotionalSaleListingsCall(this.apiContext);
            ItemIDArrayType itemIDArrayType = new ItemIDArrayType();
            StringCollection strCollection = new StringCollection();
            strCollection.Add("445566778L");
            itemIDArrayType.ItemID = strCollection;
            try
            {
                //add a param 'false' at the end by william, 3.13.2008
                PromotionalSaleStatusCodeType resp =
                    api.SetPromotionalSaleListings(16771004L, ModifyActionCodeType.Add,
                                                   itemIDArrayType, 234567890L, 12345L, true, false, false);

            }
            catch(ApiException apie)
            {
                Console.WriteLine("ApiException: " + apie.Message);
            }
            catch(SdkException sdke)
            {
                Assert.Fail("SdkException: " + sdke.Message);
            }
        }
Пример #3
0
        /// <summary>
        /// Enables the seller to change the item listings that are affected by a promotional sale. To use this call, the seller must be a registered eBay Store owner.
        /// </summary>
        ///
        /// <param name="PromotionalSaleID">
        /// The unique identifier of the seller's promotional sale. Based on the <b>Action</b>
        /// value, listings will either be added to or removed from the promotional sale.
        /// </param>
        ///
        /// <param name="Action">
        /// This required field determines whether you are adding (specify 'Add') or
        /// removing (specify 'Delete) one or more listings from the promotional sale
        /// identified by the <b>PromotionalSaleID</b> value in the request.
        ///
        /// If you specify 'Delete', you must include one or more <b>ItemID</b> values under the <b>PromotionalSaleItemIDArray</b> container, and you cannot use the other filter options in the request. If you specify 'Add', you can add one or more listings using any of the filtering options in the request. Active auction listings that have one or more bids cannot be added to or removed from a promotional sale.
        /// </param>
        ///
        /// <param name="PromotionalSaleItemIDArrayList">
        /// Container consisting of one or more <b>ItemID</b> values. Based on the <b>Action</b> value, the listings identified by these <b>ItemID</b> values are either added to or removed from the promotional sale.  This container is required if listings are being removed (<b>Action</b>='Delete') from the promotional sale.
        /// </param>
        ///
        /// <param name="StoreCategoryID">
        /// If a <b>StoreCategoryID</b> value is included in the call request, all active items in this eBay Store category are added to the promotional sale. This field cannot be used if the <b>Action</b> field is set to 'Delete'.
        /// </param>
        ///
        /// <param name="CategoryID">
        /// If a <b>CategoryID</b> value is included in the call request, all active items in this eBay category are added to the promotional sale. This field cannot be used if the <b>Action</b> field is set to 'Delete'.
        /// </param>
        ///
        /// <param name="AllFixedPriceItems">
        /// If this field is included and set to 'true' in the call request, all fixed-price listings are added to the promotional sale. This field cannot be used if the <b>Action</b> field is set to 'Delete'.
        /// </param>
        ///
        /// <param name="AllStoreInventoryItems">
        /// This field is deprecated and should no longer be used because Store Inventory is no longer a supported listing format.
        /// </param>
        ///
        /// <param name="AllAuctionItems">
        /// If this field is included and set to 'true' in the call request, all auction listings are added to the promotional sale. This field cannot be used if the <b>Action</b> field is set to 'Delete'.
        /// </param>
        ///
        public PromotionalSaleStatusCodeType SetPromotionalSaleListings(long PromotionalSaleID, ModifyActionCodeType Action, ItemIDArrayType PromotionalSaleItemIDArrayList, long StoreCategoryID, long CategoryID, bool AllFixedPriceItems, bool AllStoreInventoryItems, bool AllAuctionItems)
        {
            this.PromotionalSaleID = PromotionalSaleID;
            this.Action            = Action;
            this.PromotionalSaleItemIDArrayList = PromotionalSaleItemIDArrayList;
            this.StoreCategoryID        = StoreCategoryID;
            this.CategoryID             = CategoryID;
            this.AllFixedPriceItems     = AllFixedPriceItems;
            this.AllStoreInventoryItems = AllStoreInventoryItems;
            this.AllAuctionItems        = AllAuctionItems;

            Execute();
            return(ApiResponse.Status.Value);
        }
		/// <summary>
		/// Enables the seller to change the item listings that are affected by a promotional sale.
		/// </summary>
		/// 
		/// <param name="PromotionalSaleID">
		/// The unique identifier of the seller's promotional sale. Based on the <b>Action</b> 
		/// value, listings will either be added to or removed from the promotional sale.
		/// </param>
		///
		/// <param name="Action">
		/// This required field determines whether you are adding (specify 'Add') or
		/// removing (specify 'Delete) one or more listings from the promotional sale
		/// identified by the <b>PromotionalSaleID</b> value in the request.
		/// 
		/// If you specify 'Delete', you must include one or more <b>ItemID</b>
		/// values under the <b>PromotionalSaleItemIDArray</b> container, and
		/// you cannot use the other filter options in the request. If you specify 'Add',
		/// you can add one or more listings using any of the filtering options in the
		/// request. Active auction listings that have one or more bids cannot be added to
		/// or removed from a promotional sale.
		/// </param>
		///
		/// <param name="PromotionalSaleItemIDArrayList">
		/// Container consisting of one or more <b>ItemID</b> values. Based on
		/// the <b>Action</b> value, the listings identified by these 
		/// <b>ItemID</b> values are either added to or removed from the 
		/// promotional sale.
		/// 
		/// This container is required if listings are being removed (<b>Action</b>='Delete') 
		/// from the promotional sale.
		/// </param>
		///
		/// <param name="StoreCategoryID">
		/// If a <b>StoreCategoryID</b> value is included in the call request,
		/// all active items in this store category are added to the promotional sale. This
		/// field cannot be used if the <b>Action</b> field is set to 'Delete'.
		/// </param>
		///
		/// <param name="CategoryID">
		/// If a <b>CategoryID</b> value is included in the call request,
		/// all active items in this eBay category are added to the promotional sale. This
		/// field cannot be used if the <b>Action</b> field is set to 'Delete'.
		/// </param>
		///
		/// <param name="AllFixedPriceItems">
		/// If this field is included and set to 'true' in the call request, all fixed-price
		/// listings are added to the promotional sale. This field cannot be used if the
		/// <b>Action</b> field is set to 'Delete'.
		/// </param>
		///
		/// <param name="AllStoreInventoryItems">
		/// If this field is included and set to 'true' in the call request, all store inventory
		/// items are added to the promotional sale. This field cannot be used if the
		/// <b>Action</b> field is set to 'Delete'.
		/// </param>
		///
		/// <param name="AllAuctionItems">
		/// If this field is included and set to 'true' in the call request, all auction
		/// listings are added to the promotional sale. This field cannot be used if the
		/// <b>Action</b> field is set to 'Delete'.
		/// </param>
		///
		public PromotionalSaleStatusCodeType SetPromotionalSaleListings(long PromotionalSaleID, ModifyActionCodeType Action, ItemIDArrayType PromotionalSaleItemIDArrayList, long StoreCategoryID, long CategoryID, bool AllFixedPriceItems, bool AllStoreInventoryItems, bool AllAuctionItems)
		{
			this.PromotionalSaleID = PromotionalSaleID;
			this.Action = Action;
			this.PromotionalSaleItemIDArrayList = PromotionalSaleItemIDArrayList;
			this.StoreCategoryID = StoreCategoryID;
			this.CategoryID = CategoryID;
			this.AllFixedPriceItems = AllFixedPriceItems;
			this.AllStoreInventoryItems = AllStoreInventoryItems;
			this.AllAuctionItems = AllAuctionItems;

			Execute();
			return ApiResponse.Status;
		}