public void _002_TestSaleList() { try { var ServiceObject = new SaleService(); var ArgsObject = new SaleListServiceOptions(); ArgsObject.customer_email = "*****@*****.**"; var result = ServiceObject.List(ArgsObject); Assert.IsInstanceOf<SaleList>(result); } catch (TwoCheckoutException e) { Assert.IsInstanceOf<TwoCheckoutException>(e); } }
public SaleList List(SaleListServiceOptions options = null) { string Result = TwoCheckoutUtil.Request("api/sales/list_sales", "GET", "admin", options); return(TwoCheckoutUtil.MapToObject <SaleList>(Result)); }
public SaleList List(SaleListServiceOptions options = null) { String Result = TwoCheckoutUtil.Request("api/sales/list_sales", "GET", "admin", options); return TwoCheckoutUtil.MapToObject<SaleList>(Result); }