//理货结果被否决事件
        public void InStockCountResultRejected(RestfulMessage msg)
        {
            var requestId = Guid.Parse(msg.Content);

            Api <IInStockRequestApi> .Instance.UpdateStatus(requestId, InStockRequestStatus.WaitingCount, InStockRequestChangeType.CountResultRejected);
        }
        //报关完成申报,修改入库申请状态为待理货
        public void ImportDeclarationProcessed(RestfulMessage msg)
        {
            var requestId = Guid.Parse(msg.Content);

            Api <IInStockRequestApi> .Instance.UpdateStatus(requestId, InStockRequestStatus.WaitingCount, InStockRequestChangeType.CustomsDeclared);
        }
        //入库申请作废事件
        public void ImportDeclarationAbandoned(RestfulMessage msg)
        {
            var requestId = Guid.Parse(msg.Content);

            Api <IInStockRequestApi> .Instance.UpdateStatus(requestId, InStockRequestStatus.Abandoned, InStockRequestChangeType.Abandoned);
        }
        //报关申报事件,创建入库申请
        public void ImportDeclarationSubmited(RestfulMessage msg)
        {
            var request = msg.GetData <InStockRequest>(SerializerType.Xml);

            Api <IInStockRequestApi> .Instance.Create(request);
        }