public async Task UpdatePricesInBulk() { System.IO.Stream stream = GetRequestStub("V3.requestStub.priceBulkUpdate"); FeedAcknowledgement result = await priceApi.UpdateBulkPrices(stream); Assert.IsType <FeedAcknowledgement>(result); Assert.NotEmpty(result.FeedId); }
/*public string UpdatePromotionalPrice(Dictionary<string, object> args) * { * return ""; * }*/ public string UpdateBulkPrice(Dictionary <string, object> args) { var path = (string)args["path"]; if (Settings.SelectedApiVersion == ApiVersion.V2) { var taskV2 = EndpointV2.UpdateBulkPrices(File.OpenRead(path)); return(GetResult <FeedAcknowledgement, V2.Api.Exception.ApiException>(taskV2)); } var taskV3 = EndpointV3.UpdateBulkPrices(File.OpenRead(path)); return(GetResult <V3.Payload.Feed.FeedAcknowledgement, V3.Api.Exception.ApiException>(taskV3)); }