예제 #1
0
 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);
     }
 }
예제 #2
0
        public TwoCheckoutResponse Ship(SaleShipServiceOptions options)
        {
            string Result = TwoCheckoutUtil.Request("api/sales/mark_shipped", "POST", "admin", options);

            return(TwoCheckoutUtil.MapToObject <TwoCheckoutResponse>(Result));
        }
예제 #3
0
 public TwoCheckoutResponse Ship(SaleShipServiceOptions options)
 {
     String Result = TwoCheckoutUtil.Request("api/sales/mark_shipped", "POST", "admin", options);
     return TwoCheckoutUtil.MapToObject<TwoCheckoutResponse>(Result);
 }