コード例 #1
0
 public void _011_TestSaleComment()
 {
     try
     {
         var ServiceObject = new SaleService();
         var ArgsObject = new SaleCommentServiceOptions();
         ArgsObject.sale_id = sale_id;
         ArgsObject.sale_comment = "Test";
         var result = ServiceObject.Comment(ArgsObject);
         Assert.IsInstanceOf<TwoCheckoutResponse>(result);
     }
     catch (TwoCheckoutException e)
     {
         Assert.IsInstanceOf<TwoCheckoutException>(e);
     }
 }
コード例 #2
0
        public TwoCheckoutResponse Comment(SaleCommentServiceOptions options)
        {
            string Result = TwoCheckoutUtil.Request("api/sales/create_comment", "POST", "admin", options);

            return(TwoCheckoutUtil.MapToObject <TwoCheckoutResponse>(Result));
        }
コード例 #3
0
 public TwoCheckoutResponse Comment(SaleCommentServiceOptions options)
 {
     String Result = TwoCheckoutUtil.Request("api/sales/create_comment", "POST", "admin", options);
     return TwoCheckoutUtil.MapToObject<TwoCheckoutResponse>(Result);
 }