コード例 #1
0
 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);
     }
 }
コード例 #2
0
        public Sale Retrieve(SaleRetrieveServiceOptions options)
        {
            string Result = TwoCheckoutUtil.Request("api/sales/detail_sale", "GET", "admin", options);

            return(TwoCheckoutUtil.MapToObject <Sale>(Result, "sale"));
        }
コード例 #3
0
 public Sale Retrieve(SaleRetrieveServiceOptions options)
 {
     String Result = TwoCheckoutUtil.Request("api/sales/detail_sale", "GET", "admin", options);
     return TwoCheckoutUtil.MapToObject<Sale>(Result, "sale");
 }