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