public void GetMyeBayBuying() { GetMyeBayBuyingCall api = new GetMyeBayBuyingCall(this.apiContext); if (this.apiContext.SoapApiServerUrl.IndexOf("sandbox") != -1) { return; } GetMyeBayBuyingRequestType req = new GetMyeBayBuyingRequestType(); api.ApiRequest = req; ItemListCustomizationType lc = new ItemListCustomizationType(); lc.Include = true; lc.IncludeSpecified = true; lc.IncludeNotes = true; lc.IncludeNotesSpecified = true; lc.Sort = ItemSortTypeCodeType.EndTime; req.BestOfferList = lc; lc = new ItemListCustomizationType(); lc.Include = true; lc.IncludeSpecified = true; lc.IncludeNotes = true; lc.IncludeNotesSpecified = true; lc.Sort = ItemSortTypeCodeType.BidCount; req.BidList = lc; lc = new ItemListCustomizationType(); lc.Include = true; lc.IncludeSpecified = true; lc.IncludeNotes = true; lc.IncludeNotesSpecified = true; lc.Sort = ItemSortTypeCodeType.EndTime; req.LostList = lc; lc = new ItemListCustomizationType(); lc.Include = true; lc.IncludeSpecified = true; lc.IncludeNotes = true; lc.IncludeNotesSpecified = true; lc.Sort = ItemSortTypeCodeType.Price; req.WonList = lc; MyeBaySelectionType selection = new MyeBaySelectionType(); selection.Include = true; selection.IncludeSpecified = true; selection.Sort = SortOrderCodeType.Ascending; req.FavoriteSearches = selection; MyeBaySelectionType sellerSel = new MyeBaySelectionType(); sellerSel.Include = true; sellerSel.IncludeSpecified = true; sellerSel.Sort = SortOrderCodeType.Ascending; req.FavoriteSellers = sellerSel; // Make API call. api.GetMyeBayBuying(); GetMyeBayBuyingResponseType resp = api.ApiResponse; }
public void GetMyeBayBuying() { GetMyeBayBuyingCall api = new GetMyeBayBuyingCall(this.apiContext); if (this.apiContext.SoapApiServerUrl.IndexOf("sandbox") != -1) return; GetMyeBayBuyingRequestType req = new GetMyeBayBuyingRequestType(); api.ApiRequest = req; ItemListCustomizationType lc = new ItemListCustomizationType(); lc.Include = true; lc.IncludeSpecified = true; lc.IncludeNotes = true; lc.IncludeNotesSpecified = true; lc.Sort = ItemSortTypeCodeType.EndTime; req.BestOfferList = lc; lc = new ItemListCustomizationType(); lc.Include = true; lc.IncludeSpecified = true; lc.IncludeNotes = true; lc.IncludeNotesSpecified = true; lc.Sort = ItemSortTypeCodeType.BidCount; req.BidList = lc; lc = new ItemListCustomizationType(); lc.Include = true; lc.IncludeSpecified = true; lc.IncludeNotes = true; lc.IncludeNotesSpecified = true; lc.Sort = ItemSortTypeCodeType.EndTime; req.LostList = lc; lc = new ItemListCustomizationType(); lc.Include = true; lc.IncludeSpecified = true; lc.IncludeNotes = true; lc.IncludeNotesSpecified = true; lc.Sort = ItemSortTypeCodeType.Price; req.WonList = lc; MyeBaySelectionType selection = new MyeBaySelectionType(); selection.Include = true; selection.IncludeSpecified = true; selection.Sort = SortOrderCodeType.Ascending; req.FavoriteSearches = selection; MyeBaySelectionType sellerSel = new MyeBaySelectionType(); sellerSel.Include = true; sellerSel.IncludeSpecified = true; sellerSel.Sort = SortOrderCodeType.Ascending; req.FavoriteSellers = sellerSel; // Make API call. api.GetMyeBayBuying(); GetMyeBayBuyingResponseType resp = api.ApiResponse; }
/// <summary> /// For backward compatibility with old wrappers. /// </summary> public BuyingSummaryType GetMyeBayBuying(ItemListCustomizationType WatchList, ItemListCustomizationType BidList, ItemListCustomizationType BestOfferList, ItemListCustomizationType WonList, ItemListCustomizationType LostList, MyeBaySelectionType FavoriteSearches, MyeBaySelectionType FavoriteSellers, MyeBaySelectionType SecondChanceOffer) { this.WatchList = WatchList; this.BidList = BidList; this.BestOfferList = BestOfferList; this.WonList = WonList; this.LostList = LostList; this.FavoriteSearches = FavoriteSearches; this.FavoriteSellers = FavoriteSellers; this.SecondChanceOffer = SecondChanceOffer; Execute(); return(ApiResponse.BuyingSummary); }
/// <summary> /// Retrieves information regarding a user's buying activity, such as items they are watching, bidding on, have won, did not win, and have made Best Offers on. /// </summary> /// /// <param name="WatchList"> /// Include this container and set the <b>WatchList.Include</b> field to <code>true</code> to return the list of items on the eBay user's Watch List. /// /// The user also has the option of using pagination and sorting for the list of watched items that will be returned. /// </param> /// /// <param name="BidList"> /// Include this container and set the <b>BidList.Include</b> field to <code>true</code> to return the list of auction items on which the eBay user has bid. /// /// The user also has the option of using pagination and sorting for the list of auction items that will be returned. /// </param> /// /// <param name="BestOfferList"> /// Include this container and set the <b>BestOfferList.Include</b> field to <code>true</code> to return the list of items on which the eBay user has made a Best Offer. /// /// The user also has the option of using pagination and sorting for the list of items that will be returned. /// </param> /// /// <param name="WonList"> /// Include this container and set the <b>WonList.Include</b> field to <code>true</code> to return the list of auction items on which the eBay user has bid on and won. /// /// The user also has the option of using pagination and sorting for the list of auction items that will be returned. /// </param> /// /// <param name="LostList"> /// Include this container and set the <b>LostList.Include</b> field to <code>true</code> to return the list of auction items on which the eBay user has bid on and lost. /// /// The user also has the option of using pagination and sorting for the list of auction items that will be returned. /// </param> /// /// <param name="FavoriteSearches"> /// Include this container and set the <b>FavoriteSearches.Include</b> field to <code>true</code> to return the list of the eBay user's saved searches. /// </param> /// /// <param name="FavoriteSellers"> /// Include this container and set the <b>FavoriteSellers.Include</b> field to <code>true</code> to return the list of the eBay user's saved sellers. /// </param> /// /// <param name="SecondChanceOffer"> /// Include this container and set the <b>SecondChanceOffer.Include</b> field to <code>true</code> to return any Second Chance Offers that the eBay user has received. /// </param> /// /// <param name="BidAssistantList"> /// This field is deprecated. /// </param> /// /// <param name="DeletedFromWonList"> /// Include this container and set the <b>DeletedFromWonList.Include</b> field to <code>true</code> to return the list of auction items on which the eBay user has bid on and won, but has deleted from their My eBay page. /// /// The user also has the option of using pagination and sorting for the list of auction items that will be returned. /// </param> /// /// <param name="DeletedFromLostList"> /// Include this container and set the <b>DeletedFromLostList.Include</b> field to <code>true</code> to return the list of auction items on which the eBay user has bid on and lost, and has deleted from their My eBay page. /// /// The user also has the option of using pagination and sorting for the list of auction items that will be returned. /// </param> /// /// <param name="BuyingSummary"> /// Include this container and set the <b>BuyingSummary.Include</b> field to <code>true</code> to return the <b>BuyingSummary</b> container in the response. The <b>BuyingSummary</b> container consists of buying/bidding activity counts and values. /// </param> /// /// <param name="UserDefinedLists"> /// Include this container and set the <b>UserDefinedLists.Include</b> field to <code>true</code> to return one or more user-defined lists. User-defined lists are lists created by the user in My eBay and consists of a combination of items, saved sellers, and/or saved searches. /// </param> /// /// <param name="HideVariations"> /// If this field is included and set to <code>true</code>, the <b>Variations</b> node (and all variation data) is omitted for all multiple-variation listings in the response. If this field is omitted or set to <code>false</code>, the <b>Variations</b> node is returned for all multiple-variation listings in the response. /// /// </param> /// public BuyingSummaryType GetMyeBayBuying(ItemListCustomizationType WatchList, ItemListCustomizationType BidList, ItemListCustomizationType BestOfferList, ItemListCustomizationType WonList, ItemListCustomizationType LostList, MyeBaySelectionType FavoriteSearches, MyeBaySelectionType FavoriteSellers, MyeBaySelectionType SecondChanceOffer, BidAssistantListType BidAssistantList, ItemListCustomizationType DeletedFromWonList, ItemListCustomizationType DeletedFromLostList, ItemListCustomizationType BuyingSummary, MyeBaySelectionType UserDefinedLists, bool HideVariations) { this.WatchList = WatchList; this.BidList = BidList; this.BestOfferList = BestOfferList; this.WonList = WonList; this.LostList = LostList; this.FavoriteSearches = FavoriteSearches; this.FavoriteSellers = FavoriteSellers; this.SecondChanceOffer = SecondChanceOffer; this.BidAssistantList = BidAssistantList; this.DeletedFromWonList = DeletedFromWonList; this.DeletedFromLostList = DeletedFromLostList; this.BuyingSummary = BuyingSummary; this.UserDefinedLists = UserDefinedLists; this.HideVariations = HideVariations; Execute(); return(ApiResponse.BuyingSummary); }
/// <summary> /// For backward compatibility with old wrappers. /// </summary> public BuyingSummaryType GetMyeBayBuying(ItemListCustomizationType WatchList, ItemListCustomizationType BidList, ItemListCustomizationType BestOfferList, ItemListCustomizationType WonList, ItemListCustomizationType LostList, MyeBaySelectionType FavoriteSearches, MyeBaySelectionType FavoriteSellers, MyeBaySelectionType SecondChanceOffer) { this.WatchList = WatchList; this.BidList = BidList; this.BestOfferList = BestOfferList; this.WonList = WonList; this.LostList = LostList; this.FavoriteSearches = FavoriteSearches; this.FavoriteSellers = FavoriteSellers; this.SecondChanceOffer = SecondChanceOffer; Execute(); return ApiResponse.BuyingSummary; }
/// <summary> /// Returns items from the Buying section of the user's My eBay /// account, including items that the user is watching, bidding on, has /// won, has not won, and has made best offers on. /// </summary> /// /// <param name="WatchList"> /// Returns the list of items being watched by the user. /// /// Set Include to true to return the default response set. /// </param> /// /// <param name="BidList"> /// Returns the list of items on which the user has bid. /// /// Set Include to true to return the default response set. /// </param> /// /// <param name="BestOfferList"> /// Returns the list of items on which the user has placed best offers. /// /// Set Include to true to return the default response set. /// </param> /// /// <param name="WonList"> /// Returns the list of items on which the use has bid. /// /// Set Include to true to return the default response set. /// </param> /// /// <param name="LostList"> /// Returns the list of items on which the user has bid on and lost. /// /// Set Include to true to return the default response set. /// </param> /// /// <param name="FavoriteSearches"> /// Returns the list of searches that the user has saved in My eBay. Returned /// only if the user has saved searches. /// /// Set Include to true to return the default response set. /// </param> /// /// <param name="FavoriteSellers"> /// Returns the list of favorite sellers that the user has saved in My eBay. /// Returned only if the user has saved a list of favorite sellers. /// /// Set Include to true to return the default response set. /// </param> /// /// <param name="SecondChanceOffer"> /// Returns the list of second chance offers made by the user. Returned only /// if the user has made second chance offers. /// /// Set Include to true to return the default response set. /// </param> /// /// <param name="BidAssistantList"> /// Indicates whether or not the Bid Assistant feature is being used. /// </param> /// /// <param name="DeletedFromWonList"> /// Returns the list of items the user has won, and subsequently deleted from /// their My eBay page. /// /// Set Include to true to return the default response set. /// </param> /// /// <param name="DeletedFromLostList"> /// Returns the list of items (auctions) the user did not win and were /// subsequently deleted from their My eBay page. /// /// Set Include to true to return the default response set. /// </param> /// /// <param name="BuyingSummary"> /// Returns a summary of the user's buying activity. /// /// With a request version of 605 or higher, the buying summary container is /// not included in the response by default. Add a BuyingSummary element in /// the request with an Include field set to true to receive a BuyingSummary /// container in your response. /// /// With a request version lower than 605, the BuyingSummary is always /// returned by default. Add a BuyingSummary element with an Include field /// set to false to exclude the BuyingSummary from your response. /// </param> /// /// <param name="UserDefinedLists"> /// Returns the user defined lists, which are lists created by the user in the eBay /// UI and filled with items, or sellers, or searches using the /// "Add to List" feature. /// /// Set Include to true to return the default response set. /// </param> /// /// <param name="HideVariations"> /// If true, the Variations node is omitted for all multi-variation /// listings in the response. /// If false, the Variations node is returned for all /// multi-variation listings in the response. /// /// Please note that if the seller includes a large number of /// variations in many listings, retrieving variations (setting this /// flag to false) may degrade the call's performance. Therefore, /// when this is false, you may need to reduce the total /// number of items you're requesting at once (by using other input /// fields, such as Pagination). /// </param> /// public BuyingSummaryType GetMyeBayBuying(ItemListCustomizationType WatchList, ItemListCustomizationType BidList, ItemListCustomizationType BestOfferList, ItemListCustomizationType WonList, ItemListCustomizationType LostList, MyeBaySelectionType FavoriteSearches, MyeBaySelectionType FavoriteSellers, MyeBaySelectionType SecondChanceOffer, BidAssistantListType BidAssistantList, ItemListCustomizationType DeletedFromWonList, ItemListCustomizationType DeletedFromLostList, ItemListCustomizationType BuyingSummary, MyeBaySelectionType UserDefinedLists, bool HideVariations) { this.WatchList = WatchList; this.BidList = BidList; this.BestOfferList = BestOfferList; this.WonList = WonList; this.LostList = LostList; this.FavoriteSearches = FavoriteSearches; this.FavoriteSellers = FavoriteSellers; this.SecondChanceOffer = SecondChanceOffer; this.BidAssistantList = BidAssistantList; this.DeletedFromWonList = DeletedFromWonList; this.DeletedFromLostList = DeletedFromLostList; this.BuyingSummary = BuyingSummary; this.UserDefinedLists = UserDefinedLists; this.HideVariations = HideVariations; Execute(); return ApiResponse.BuyingSummary; }