The SellingMethods class These methods allow you to list an item on the site. When selling you can choose to either list and not view the fees that you will be charged, or get a response back to confirm the total fees for the particular listing you are creating.
Exemplo n.º 1
0
        /// <summary>
        /// <para>Returns the fees that will be charged for a listing once the auction or classified has been created.
        /// </para><para>
        /// There are several endpoints that should be used to get information needed to list an item. 
        /// Check Category information, Legal Notice information, attributes, fees and listing duration options.
        /// </para>
        /// REQUIRES AUTHENTICATION.
        /// </summary>
        /// <param name="request">The object that will be serialized into xml and then sent in a POST message.</param>
        /// <returns>XDocument: FeeResponse</returns>
        public XDocument GetFeesForListingItems(ListingRequest request)
        {
            if (_selling == null)
            {
                _selling = new SellingMethods(_connection);
            }

            return _selling.GetFeesForListingItems(request);
        }
Exemplo n.º 2
0
        /// <summary>
        /// <para>Edit an auction or classified that you have created.
        /// </para><para>
        /// You will need to resubmit the complete sell form as used when you created the listing but with the fields you wish to edit modified.
        /// Request format will error if fields are locked and cannot be edited.
        /// </para>
        /// REQUIRES AUTHENTICATION.
        /// </summary>
        /// <param name="request">The object that will be serialized into xml and then sent in a POST message.</param>
        /// <returns>XDocument: ListingResponse</returns>
        public XDocument EditListedItem(EditListingRequest request)
        {
            if (_selling == null)
            {
                _selling = new SellingMethods(_connection);
            }

            return _selling.EditListedItem(request);
        }
Exemplo n.º 3
0
        /// <summary>
        /// <para>Withdraw a listing from Trade Me for either being sold or unsold.
        /// </para>
        /// REQUIRES AUTHENTICATION.
        /// </summary>
        /// <param name="request">The object that will be serialized into xml and then sent in a POST message.</param>
        /// <returns>XDocument: ListingResponse</returns>
        public XDocument WithdrawListedItem(WithdrawRequest request)
        {
            if (_selling == null)
            {
                _selling = new SellingMethods(_connection);
            }

            return _selling.WithdrawListedItem(request);
        }
Exemplo n.º 4
0
        /// <summary>
        /// <para>Sell similar from an existing or expired auction or classified. 
        /// Creates a new listing without modifying editable fields.Relist an item that has expired. 
        /// Relists an item without modifying editable fields.
        /// </para><para>
        /// Sell similar from an existing or expired auction or classified. 
        /// Creates a new listing without modifying editable fields.
        /// </para>
        /// REQUIRES AUTHENTICATION.
        /// </summary>
        /// <param name="request">The object that will be serialized into xml and then sent in a POST message.</param>
        /// <returns>XDocument: ListingResponse</returns>
        public XDocument SellSimilarItem(SellSimilarListingRequest request)
        {
            if (_selling == null)
            {
                _selling = new SellingMethods(_connection);
            }

            return _selling.SellSimilarItem(request);
        }
Exemplo n.º 5
0
        /// <summary>
        /// <para>List a DVD using listing details that are sourced from the Trade Me DVD catalogue.
        /// </para>
        /// REQUIRES AUTHENTICATION.
        /// </summary>
        /// <param name="request">The object that will be serialized into xml and then sent in a POST message.</param>
        /// <returns>XDocument: ListingResponse</returns>
        public XDocument SellDvdFromCatalogue(SellCatalogueRequest request)
        {
            if (_selling == null)
            {
                _selling = new SellingMethods(_connection);
            }

            return _selling.SellDvdFromCatalogue(request);
        }
Exemplo n.º 6
0
        /// <summary>
        /// <para>Relist an item that has expired. Relists an item without modifying editable fields.
        /// </para><para>
        /// Relist copies all data from original listing and applies them to the new listing. 
        /// The only exceptions are where there are default durations that are applied on relisted items.
        /// </para>
        /// REQUIRES AUTHENTICATION.
        /// </summary>
        /// <param name="request">The object that will be serialized into xml and then sent in a POST message.</param>
        /// <returns>XDocument: ListingResponse</returns>
        public XDocument RelistItem(RelistListingRequest request)
        {
            if (_selling == null)
            {
                _selling = new SellingMethods(_connection);
            }

            return _selling.RelistItem(request);
        }