Example #1
0
        protected OrderShipGroupMvoStateDeleted NewOrderShipGroupMvoStateDeleted(long version, string commandId, string requesterId)
        {
            var stateEventId = new OrderShipGroupMvoEventId(_state.OrderShipGroupId, version);
            var e            = NewOrderShipGroupMvoStateDeleted(stateEventId);

            e.CommandId = commandId;

            e.CreatedBy = (string)requesterId;
            e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>();

            return(e);
        }
Example #2
0
        protected virtual IOrderShipGroupMvoStateDeleted Map(IDeleteOrderShipGroupMvo c)
        {
            var stateEventId = new OrderShipGroupMvoEventId(c.OrderShipGroupId, c.OrderVersion);
            IOrderShipGroupMvoStateDeleted e = NewOrderShipGroupMvoStateDeleted(stateEventId);

            e.CommandId = c.CommandId;


            e.CreatedBy = (string)c.RequesterId;
            e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>();


            return(e);
        }
Example #3
0
        public override bool Equals(object obj)
        {
            if (Object.ReferenceEquals(this, obj))
            {
                return(true);
            }

            OrderShipGroupMvoEventId other = obj as OrderShipGroupMvoEventId;

            if (other == null)
            {
                return(false);
            }

            return(true &&
                   Object.Equals(this.OrderShipGroupId, other.OrderShipGroupId) &&
                   Object.Equals(this.OrderVersion, other.OrderVersion)
                   );
        }
Example #4
0
 private OrderShipGroupMvoStateDeleted NewOrderShipGroupMvoStateDeleted(OrderShipGroupMvoEventId stateEventId)
 {
     return(new OrderShipGroupMvoStateDeleted(stateEventId));
 }
Example #5
0
 private OrderShipGroupMvoStateMergePatched NewOrderShipGroupMvoStateMergePatched(OrderShipGroupMvoEventId stateEventId)
 {
     return(new OrderShipGroupMvoStateMergePatched(stateEventId));
 }
Example #6
0
        protected virtual IOrderShipGroupMvoStateMergePatched Map(IMergePatchOrderShipGroupMvo c)
        {
            var stateEventId = new OrderShipGroupMvoEventId(c.OrderShipGroupId, c.OrderVersion);
            IOrderShipGroupMvoStateMergePatched e = NewOrderShipGroupMvoStateMergePatched(stateEventId);

            e.ShipmentMethodTypeId = c.ShipmentMethodTypeId;
            e.SupplierPartyId      = c.SupplierPartyId;
            e.VendorPartyId        = c.VendorPartyId;
            e.CarrierPartyId       = c.CarrierPartyId;
            e.CarrierRoleTypeId    = c.CarrierRoleTypeId;
            e.FacilityId           = c.FacilityId;
            e.ContactMechId        = c.ContactMechId;
            e.TelecomContactMechId = c.TelecomContactMechId;
            e.TrackingNumber       = c.TrackingNumber;
            e.ShippingInstructions = c.ShippingInstructions;
            e.MaySplit             = c.MaySplit;
            e.GiftMessage          = c.GiftMessage;
            e.IsGift                                        = c.IsGift;
            e.ShipAfterDate                                 = c.ShipAfterDate;
            e.ShipByDate                                    = c.ShipByDate;
            e.EstimatedShipDate                             = c.EstimatedShipDate;
            e.EstimatedDeliveryDate                         = c.EstimatedDeliveryDate;
            e.PickwaveId                                    = c.PickwaveId;
            e.Version                                       = c.Version;
            e.Active                                        = c.Active;
            e.OrderOrderTypeId                              = c.OrderOrderTypeId;
            e.OrderOrderName                                = c.OrderOrderName;
            e.OrderExternalId                               = c.OrderExternalId;
            e.OrderSalesChannelEnumId                       = c.OrderSalesChannelEnumId;
            e.OrderOrderDate                                = c.OrderOrderDate;
            e.OrderPriority                                 = c.OrderPriority;
            e.OrderEntryDate                                = c.OrderEntryDate;
            e.OrderPickSheetPrintedDate                     = c.OrderPickSheetPrintedDate;
            e.OrderStatusId                                 = c.OrderStatusId;
            e.OrderCurrencyUom                              = c.OrderCurrencyUom;
            e.OrderSyncStatusId                             = c.OrderSyncStatusId;
            e.OrderBillingAccountId                         = c.OrderBillingAccountId;
            e.OrderOriginFacilityId                         = c.OrderOriginFacilityId;
            e.OrderWebSiteId                                = c.OrderWebSiteId;
            e.OrderProductStoreId                           = c.OrderProductStoreId;
            e.OrderTerminalId                               = c.OrderTerminalId;
            e.OrderTransactionId                            = c.OrderTransactionId;
            e.OrderAutoOrderShoppingListId                  = c.OrderAutoOrderShoppingListId;
            e.OrderNeedsInventoryIssuance                   = c.OrderNeedsInventoryIssuance;
            e.OrderIsRushOrder                              = c.OrderIsRushOrder;
            e.OrderInternalCode                             = c.OrderInternalCode;
            e.OrderRemainingSubTotal                        = c.OrderRemainingSubTotal;
            e.OrderGrandTotal                               = c.OrderGrandTotal;
            e.OrderInvoicePerShipment                       = c.OrderInvoicePerShipment;
            e.OrderCreatedBy                                = c.OrderCreatedBy;
            e.OrderCreatedAt                                = c.OrderCreatedAt;
            e.OrderUpdatedBy                                = c.OrderUpdatedBy;
            e.OrderUpdatedAt                                = c.OrderUpdatedAt;
            e.OrderActive                                   = c.OrderActive;
            e.IsPropertyShipmentMethodTypeIdRemoved         = c.IsPropertyShipmentMethodTypeIdRemoved;
            e.IsPropertySupplierPartyIdRemoved              = c.IsPropertySupplierPartyIdRemoved;
            e.IsPropertyVendorPartyIdRemoved                = c.IsPropertyVendorPartyIdRemoved;
            e.IsPropertyCarrierPartyIdRemoved               = c.IsPropertyCarrierPartyIdRemoved;
            e.IsPropertyCarrierRoleTypeIdRemoved            = c.IsPropertyCarrierRoleTypeIdRemoved;
            e.IsPropertyFacilityIdRemoved                   = c.IsPropertyFacilityIdRemoved;
            e.IsPropertyContactMechIdRemoved                = c.IsPropertyContactMechIdRemoved;
            e.IsPropertyTelecomContactMechIdRemoved         = c.IsPropertyTelecomContactMechIdRemoved;
            e.IsPropertyTrackingNumberRemoved               = c.IsPropertyTrackingNumberRemoved;
            e.IsPropertyShippingInstructionsRemoved         = c.IsPropertyShippingInstructionsRemoved;
            e.IsPropertyMaySplitRemoved                     = c.IsPropertyMaySplitRemoved;
            e.IsPropertyGiftMessageRemoved                  = c.IsPropertyGiftMessageRemoved;
            e.IsPropertyIsGiftRemoved                       = c.IsPropertyIsGiftRemoved;
            e.IsPropertyShipAfterDateRemoved                = c.IsPropertyShipAfterDateRemoved;
            e.IsPropertyShipByDateRemoved                   = c.IsPropertyShipByDateRemoved;
            e.IsPropertyEstimatedShipDateRemoved            = c.IsPropertyEstimatedShipDateRemoved;
            e.IsPropertyEstimatedDeliveryDateRemoved        = c.IsPropertyEstimatedDeliveryDateRemoved;
            e.IsPropertyPickwaveIdRemoved                   = c.IsPropertyPickwaveIdRemoved;
            e.IsPropertyVersionRemoved                      = c.IsPropertyVersionRemoved;
            e.IsPropertyActiveRemoved                       = c.IsPropertyActiveRemoved;
            e.IsPropertyOrderOrderTypeIdRemoved             = c.IsPropertyOrderOrderTypeIdRemoved;
            e.IsPropertyOrderOrderNameRemoved               = c.IsPropertyOrderOrderNameRemoved;
            e.IsPropertyOrderExternalIdRemoved              = c.IsPropertyOrderExternalIdRemoved;
            e.IsPropertyOrderSalesChannelEnumIdRemoved      = c.IsPropertyOrderSalesChannelEnumIdRemoved;
            e.IsPropertyOrderOrderDateRemoved               = c.IsPropertyOrderOrderDateRemoved;
            e.IsPropertyOrderPriorityRemoved                = c.IsPropertyOrderPriorityRemoved;
            e.IsPropertyOrderEntryDateRemoved               = c.IsPropertyOrderEntryDateRemoved;
            e.IsPropertyOrderPickSheetPrintedDateRemoved    = c.IsPropertyOrderPickSheetPrintedDateRemoved;
            e.IsPropertyOrderStatusIdRemoved                = c.IsPropertyOrderStatusIdRemoved;
            e.IsPropertyOrderCurrencyUomRemoved             = c.IsPropertyOrderCurrencyUomRemoved;
            e.IsPropertyOrderSyncStatusIdRemoved            = c.IsPropertyOrderSyncStatusIdRemoved;
            e.IsPropertyOrderBillingAccountIdRemoved        = c.IsPropertyOrderBillingAccountIdRemoved;
            e.IsPropertyOrderOriginFacilityIdRemoved        = c.IsPropertyOrderOriginFacilityIdRemoved;
            e.IsPropertyOrderWebSiteIdRemoved               = c.IsPropertyOrderWebSiteIdRemoved;
            e.IsPropertyOrderProductStoreIdRemoved          = c.IsPropertyOrderProductStoreIdRemoved;
            e.IsPropertyOrderTerminalIdRemoved              = c.IsPropertyOrderTerminalIdRemoved;
            e.IsPropertyOrderTransactionIdRemoved           = c.IsPropertyOrderTransactionIdRemoved;
            e.IsPropertyOrderAutoOrderShoppingListIdRemoved = c.IsPropertyOrderAutoOrderShoppingListIdRemoved;
            e.IsPropertyOrderNeedsInventoryIssuanceRemoved  = c.IsPropertyOrderNeedsInventoryIssuanceRemoved;
            e.IsPropertyOrderIsRushOrderRemoved             = c.IsPropertyOrderIsRushOrderRemoved;
            e.IsPropertyOrderInternalCodeRemoved            = c.IsPropertyOrderInternalCodeRemoved;
            e.IsPropertyOrderRemainingSubTotalRemoved       = c.IsPropertyOrderRemainingSubTotalRemoved;
            e.IsPropertyOrderGrandTotalRemoved              = c.IsPropertyOrderGrandTotalRemoved;
            e.IsPropertyOrderInvoicePerShipmentRemoved      = c.IsPropertyOrderInvoicePerShipmentRemoved;
            e.IsPropertyOrderCreatedByRemoved               = c.IsPropertyOrderCreatedByRemoved;
            e.IsPropertyOrderCreatedAtRemoved               = c.IsPropertyOrderCreatedAtRemoved;
            e.IsPropertyOrderUpdatedByRemoved               = c.IsPropertyOrderUpdatedByRemoved;
            e.IsPropertyOrderUpdatedAtRemoved               = c.IsPropertyOrderUpdatedAtRemoved;
            e.IsPropertyOrderActiveRemoved                  = c.IsPropertyOrderActiveRemoved;

            e.CommandId = c.CommandId;


            e.CreatedBy = (string)c.RequesterId;
            e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>();

            var orderVersion = c.OrderVersion;


            return(e);
        }
 protected OrderShipGroupMvoStateEventDtoBase(OrderShipGroupMvoEventId stateEventId)
 {
     this.OrderShipGroupMvoEventId = stateEventId;
 }
Example #8
0
 public OrderShipGroupMvoStateDeleted(OrderShipGroupMvoEventId stateEventId) : base(stateEventId)
 {
 }
Example #9
0
 public OrderShipGroupMvoStateMergePatched(OrderShipGroupMvoEventId stateEventId) : base(stateEventId)
 {
 }
Example #10
0
 protected OrderShipGroupMvoStateEventBase(OrderShipGroupMvoEventId stateEventId) : base(stateEventId)
 {
 }