Exemple #1
0
        public async Task UpdatePrice()
        {
            var result = await priceApi.UpdatePrice("test", "USD", 400.0);

            Assert.IsType <ItemPriceResponse>(result);
            Assert.NotEmpty(result.Amount);
            Assert.NotEmpty(result.Message);
            Assert.NotEmpty(result.Sku);
        }
        public string UpdatePriceV2(Dictionary <string, object> args)
        {
            var sku      = (string)args["sku"];
            var currency = (string)args["currency"];
            var price    = (double)args["price"];
            var taskV2   = EndpointV2.UpdatePrice(sku, currency, price);

            return(GetResult <ItemPriceResponse, V2.Api.Exception.ApiException>(taskV2));
        }