Example #1
0
        /// <summary>
        /// 同意退款申请-售后(达成协议前后2次同意都调用此方法)
        /// </summary>
        /// <param name="orderId"></param>
        /// <param name="orderItemId"></param>
        public static ResultDTO ApproveOrderRefundAfterSales(Guid orderId, Guid orderItemId)
        {
            var param = new CancelTheOrderDTO
            {
                OrderId     = orderId,
                OrderItemId = orderItemId,
                State       = 21
            };
            var cf = new Jinher.AMP.BTP.IBP.Facade.CommodityOrderAfterSalesFacade();

            cf.ContextDTO = AuthorizeHelper.InitAuthorizeInfo();
            return(cf.CancelTheOrderAfterSales(param));
        }
Example #2
0
        /// <summary>
        /// 拒绝退款申请-售后(达成协议前后2次拒绝都调用此方法)
        /// </summary>
        /// <param name="orderId"></param>
        /// <param name="orderItemId"></param>
        /// <param name="refuseReason"></param>
        public static ResultDTO RejectOrderRefundAfterSales(Guid orderId, Guid orderItemId, string refuseReason)
        {
            var param = new CancelTheOrderDTO()
            {
                OrderId      = orderId,
                OrderItemId  = orderItemId,
                State        = 2,
                RefuseReason = refuseReason
            };
            var cf = new Jinher.AMP.BTP.IBP.Facade.CommodityOrderAfterSalesFacade();

            cf.ContextDTO = AuthorizeHelper.InitAuthorizeInfo();
            return(cf.RefuseRefundOrderAfterSales(param));
        }
Example #3
0
        public ResultDTO CancelTheOrderAfterSalesCallBack(CancelTheOrderDTO cancelTheOrderDTO)
        {
            //定义返回值
            Jinher.AMP.BTP.Deploy.CustomDTO.ResultDTO result;

            try
            {
                //调用代理方法
                result = base.Channel.CancelTheOrderAfterSalesCallBack(cancelTheOrderDTO);
            }
            catch
            {
                //抛异常
                throw;
            }
            finally
            {
                //关链接
                ChannelClose();
            }            //返回结果
            return(result);
        }
Example #4
0
 /// <summary>
 /// 退款金币回调
 /// </summary>
 /// <param name="cancelTheOrderDTO"></param>
 /// <returns></returns>
 public ResultDTO CancelTheOrderCallBack(CancelTheOrderDTO cancelTheOrderDTO)
 {
     base.Do(false);
     return(this.CancelTheOrderCallBackExt(cancelTheOrderDTO));
 }