public async Task <UpdateInventoryandPriceResponse> UpdateInventoryandPrice(UpdateInventoryandPriceRequest reqModel) { var request = CreateRequest <UpdateInventoryandPriceRequest>(reqModel); request.URI = "contentmgmt/item/inventoryandprice"; var response = await client.PutAsync(request); var result = await ProcessResponse <UpdateInventoryandPriceResponse>(response); return(result); }
[Fact]//XML B2B public async Task UpdateInventoryandPriceB2BCAN_XML_B2B() { UpdateInventoryandPriceRequest UpdateItemInventoryRequest = new UpdateInventoryandPriceRequest() { Type = ItemQueryType.NewEggItemNumber, Value = "9SIA44S8HT5827", Inventory = 100, MSRP = 250, MAP = 230, CheckoutMAP = CheckoutMAP.False, SellingPrice = 200, EnableFreeShipping = FreeShipping.Free_Shipping, Active = ItemActive.InActive, // FulfillmentOption= FulfillmentOption.ShipByNewegg, Condition = ItemCondition.New }; CheckRequestString <UpdateInventoryandPriceRequest>(UpdateItemInventoryRequest); // var body = await B2Bapi.UpdateInventoryandPrice(UpdateItemInventoryRequest); var body = await fadeAPI_B2B_XML.UpdateInventoryandPrice(UpdateItemInventoryRequest); Assert.IsType <UpdateInventoryandPriceResponse>(body); }