public void _011_TestSaleComment() { try { var ServiceObject = new SaleService(); var ArgsObject = new SaleCommentServiceOptions(); ArgsObject.sale_id = sale_id; ArgsObject.sale_comment = "Test"; var result = ServiceObject.Comment(ArgsObject); Assert.IsInstanceOf<TwoCheckoutResponse>(result); } catch (TwoCheckoutException e) { Assert.IsInstanceOf<TwoCheckoutException>(e); } }
public TwoCheckoutResponse Comment(SaleCommentServiceOptions options) { string Result = TwoCheckoutUtil.Request("api/sales/create_comment", "POST", "admin", options); return(TwoCheckoutUtil.MapToObject <TwoCheckoutResponse>(Result)); }
public TwoCheckoutResponse Comment(SaleCommentServiceOptions options) { String Result = TwoCheckoutUtil.Request("api/sales/create_comment", "POST", "admin", options); return TwoCheckoutUtil.MapToObject<TwoCheckoutResponse>(Result); }