Exemple #1
0
        /// <summary>
        /// Gets details of a single product
        /// </summary>
        /// <param name="id">The id of the article to deliver.</param>
        /// <param name="type">The type if the id. Whether it is the internal id or the sku.</param>
        /// <returns></returns>
        public ApiResult <Product> GetProduct(string id, ProductIdType type = ProductIdType.id)
        {
            NameValueCollection parameters = new NameValueCollection();

            parameters.Add("lookupBy", type.ToString());

            return(requestResource <ApiResult <Product> >($"/products/{id}", parameters));
        }
Exemple #2
0
            public override bool Equals(object obj)
            {
                ProductIdType that = obj as ProductIdType;

                return(that != null && that.orgid == orgid && that.productnumber == productnumber);
            }