Beispiel #1
0
 private void Handle(StoreOrderCreatedEvent evnt)
 {
     _walletId           = evnt.WalletId;
     _storeOwnerWalletId = evnt.StoreOwnerWalletId;
     _info = evnt.Info;
     _expressAddressInfo = evnt.ExpressAddressInfo;
     _orderGoodses       = evnt.OrderGoodses;
     _status             = StoreOrderStatus.Placed;
 }
Beispiel #2
0
 public IEnumerable <StoreOrderDetails> UserStoreOrderDetails(Guid userId, StoreOrderStatus status)
 {
     using (var connection = GetConnection())
     {
         var storeorders = connection.QueryList <StoreOrderDetails>(new { UserId = userId, Status = (int)status }, ConfigSettings.StoreOrderTable);
         foreach (var storeorder in storeorders)
         {
             storeorder.StoreOrderGoodses = connection.QueryList <StoreOrderGoods>(new { OrderId = storeorder.Id }, ConfigSettings.OrderGoodsTable).ToList();
         }
         return(storeorders);
     }
 }
Beispiel #3
0
 private void Handle(AgreeReturnEvent evnt)
 {
     _status = StoreOrderStatus.AgreeReturn;
 }
Beispiel #4
0
 private void Handle(AgreeRefundedEvent evnt)
 {
     _status = StoreOrderStatus.Closed;
 }
Beispiel #5
0
 private void Handle(ApplyReturnAndRefundedEvent evnt)
 {
     _refoundApplyInfo = evnt.RefoundApplyInfo;
     _status           = StoreOrderStatus.ReturnAndRefund;
 }
Beispiel #6
0
 private void Handle(StoreOrderConfirmExpressedEvent evnt)
 {
     _status = StoreOrderStatus.Success;
 }
Beispiel #7
0
 private void Handle(StoreOrderExpressedEvent evnt)
 {
     _status = StoreOrderStatus.Expressing;
 }