public void _005_TestProductUpdate() { var ServiceObject = new ProductService(); var ArgsObject = new ProductUpdateServiceOptions(); ArgsObject.approved_url = "http://www.example.com/update"; ArgsObject.description = "Test123"; ArgsObject.product_id = product_id; var result = ServiceObject.Update(ArgsObject); Assert.IsInstanceOf<TwoCheckoutResponse>(result); }
public TwoCheckoutResponse Update(ProductUpdateServiceOptions options = null) { string Result = TwoCheckoutUtil.Request("api/products/update_product", "POST", "admin", options); return(TwoCheckoutUtil.MapToObject <TwoCheckoutResponse>(Result)); }
public TwoCheckoutResponse Update(ProductUpdateServiceOptions options = null) { String Result = TwoCheckoutUtil.Request("api/products/update_product", "POST", "admin", options); return TwoCheckoutUtil.MapToObject<TwoCheckoutResponse>(Result); }