public void _003_TestSaleRetrieve() { try { var ServiceObject = new SaleService(); var ArgsObject = new SaleRetrieveServiceOptions(); ArgsObject.sale_id = sale_id; var result = ServiceObject.Retrieve(ArgsObject); Assert.IsInstanceOf<Sale>(result); } catch (TwoCheckoutException e) { Assert.IsInstanceOf<TwoCheckoutException>(e); } }
public Sale Retrieve(SaleRetrieveServiceOptions options) { string Result = TwoCheckoutUtil.Request("api/sales/detail_sale", "GET", "admin", options); return(TwoCheckoutUtil.MapToObject <Sale>(Result, "sale")); }
public Sale Retrieve(SaleRetrieveServiceOptions options) { String Result = TwoCheckoutUtil.Request("api/sales/detail_sale", "GET", "admin", options); return TwoCheckoutUtil.MapToObject<Sale>(Result, "sale"); }