Beispiel #1
0
        protected OrderItemShipGroupAssociationMvoStateDeleted NewOrderItemShipGroupAssociationMvoStateDeleted(long version, string commandId, string requesterId)
        {
            var stateEventId = new OrderItemShipGroupAssociationMvoEventId(_state.OrderItemShipGroupAssociationId, version);
            var e            = NewOrderItemShipGroupAssociationMvoStateDeleted(stateEventId);

            e.CommandId = commandId;

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

            return(e);
        }
Beispiel #2
0
        protected virtual IOrderItemShipGroupAssociationMvoStateDeleted Map(IDeleteOrderItemShipGroupAssociationMvo c)
        {
            var stateEventId = new OrderItemShipGroupAssociationMvoEventId(c.OrderItemShipGroupAssociationId, c.OrderVersion);
            IOrderItemShipGroupAssociationMvoStateDeleted e = NewOrderItemShipGroupAssociationMvoStateDeleted(stateEventId);

            e.CommandId = c.CommandId;


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


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

            OrderItemShipGroupAssociationMvoEventId other = obj as OrderItemShipGroupAssociationMvoEventId;

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

            return(true &&
                   Object.Equals(this.OrderItemShipGroupAssociationId, other.OrderItemShipGroupAssociationId) &&
                   Object.Equals(this.OrderVersion, other.OrderVersion)
                   );
        }
Beispiel #4
0
 protected OrderItemShipGroupAssociationMvoEventBase(OrderItemShipGroupAssociationMvoEventId stateEventId)
 {
     this.OrderItemShipGroupAssociationMvoEventId = stateEventId;
 }
Beispiel #5
0
 public OrderItemShipGroupAssociationMvoStateDeleted(OrderItemShipGroupAssociationMvoEventId stateEventId) : base(stateEventId)
 {
 }
Beispiel #6
0
 public OrderItemShipGroupAssociationMvoStateMergePatched(OrderItemShipGroupAssociationMvoEventId stateEventId) : base(stateEventId)
 {
 }
Beispiel #7
0
 protected OrderItemShipGroupAssociationMvoStateEventBase(OrderItemShipGroupAssociationMvoEventId stateEventId) : base(stateEventId)
 {
 }
Beispiel #8
0
 private OrderItemShipGroupAssociationMvoStateDeleted NewOrderItemShipGroupAssociationMvoStateDeleted(OrderItemShipGroupAssociationMvoEventId stateEventId)
 {
     return(new OrderItemShipGroupAssociationMvoStateDeleted(stateEventId));
 }
Beispiel #9
0
        protected virtual IOrderItemShipGroupAssociationMvoStateMergePatched Map(IMergePatchOrderItemShipGroupAssociationMvo c)
        {
            var stateEventId = new OrderItemShipGroupAssociationMvoEventId(c.OrderItemShipGroupAssociationId, c.OrderVersion);
            IOrderItemShipGroupAssociationMvoStateMergePatched e = NewOrderItemShipGroupAssociationMvoStateMergePatched(stateEventId);

            e.Quantity       = c.Quantity;
            e.CancelQuantity = c.CancelQuantity;
            e.Version        = c.Version;
            e.Active         = c.Active;
            e.OrderShipGroupShipmentMethodTypeId = c.OrderShipGroupShipmentMethodTypeId;
            e.OrderShipGroupSupplierPartyId      = c.OrderShipGroupSupplierPartyId;
            e.OrderShipGroupVendorPartyId        = c.OrderShipGroupVendorPartyId;
            e.OrderShipGroupCarrierPartyId       = c.OrderShipGroupCarrierPartyId;
            e.OrderShipGroupCarrierRoleTypeId    = c.OrderShipGroupCarrierRoleTypeId;
            e.OrderShipGroupFacilityId           = c.OrderShipGroupFacilityId;
            e.OrderShipGroupContactMechId        = c.OrderShipGroupContactMechId;
            e.OrderShipGroupTelecomContactMechId = c.OrderShipGroupTelecomContactMechId;
            e.OrderShipGroupTrackingNumber       = c.OrderShipGroupTrackingNumber;
            e.OrderShipGroupShippingInstructions = c.OrderShipGroupShippingInstructions;
            e.OrderShipGroupMaySplit             = c.OrderShipGroupMaySplit;
            e.OrderShipGroupGiftMessage          = c.OrderShipGroupGiftMessage;
            e.OrderShipGroupIsGift                = c.OrderShipGroupIsGift;
            e.OrderShipGroupShipAfterDate         = c.OrderShipGroupShipAfterDate;
            e.OrderShipGroupShipByDate            = c.OrderShipGroupShipByDate;
            e.OrderShipGroupEstimatedShipDate     = c.OrderShipGroupEstimatedShipDate;
            e.OrderShipGroupEstimatedDeliveryDate = c.OrderShipGroupEstimatedDeliveryDate;
            e.OrderShipGroupPickwaveId            = c.OrderShipGroupPickwaveId;
            e.OrderShipGroupVersion               = c.OrderShipGroupVersion;
            e.OrderShipGroupCreatedBy             = c.OrderShipGroupCreatedBy;
            e.OrderShipGroupCreatedAt             = c.OrderShipGroupCreatedAt;
            e.OrderShipGroupUpdatedBy             = c.OrderShipGroupUpdatedBy;
            e.OrderShipGroupUpdatedAt             = c.OrderShipGroupUpdatedAt;
            e.OrderShipGroupActive                = c.OrderShipGroupActive;
            e.OrderShipGroupDeleted               = c.OrderShipGroupDeleted;
            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.IsPropertyQuantityRemoved       = c.IsPropertyQuantityRemoved;
            e.IsPropertyCancelQuantityRemoved = c.IsPropertyCancelQuantityRemoved;
            e.IsPropertyVersionRemoved        = c.IsPropertyVersionRemoved;
            e.IsPropertyActiveRemoved         = c.IsPropertyActiveRemoved;
            e.IsPropertyOrderShipGroupShipmentMethodTypeIdRemoved = c.IsPropertyOrderShipGroupShipmentMethodTypeIdRemoved;
            e.IsPropertyOrderShipGroupSupplierPartyIdRemoved      = c.IsPropertyOrderShipGroupSupplierPartyIdRemoved;
            e.IsPropertyOrderShipGroupVendorPartyIdRemoved        = c.IsPropertyOrderShipGroupVendorPartyIdRemoved;
            e.IsPropertyOrderShipGroupCarrierPartyIdRemoved       = c.IsPropertyOrderShipGroupCarrierPartyIdRemoved;
            e.IsPropertyOrderShipGroupCarrierRoleTypeIdRemoved    = c.IsPropertyOrderShipGroupCarrierRoleTypeIdRemoved;
            e.IsPropertyOrderShipGroupFacilityIdRemoved           = c.IsPropertyOrderShipGroupFacilityIdRemoved;
            e.IsPropertyOrderShipGroupContactMechIdRemoved        = c.IsPropertyOrderShipGroupContactMechIdRemoved;
            e.IsPropertyOrderShipGroupTelecomContactMechIdRemoved = c.IsPropertyOrderShipGroupTelecomContactMechIdRemoved;
            e.IsPropertyOrderShipGroupTrackingNumberRemoved       = c.IsPropertyOrderShipGroupTrackingNumberRemoved;
            e.IsPropertyOrderShipGroupShippingInstructionsRemoved = c.IsPropertyOrderShipGroupShippingInstructionsRemoved;
            e.IsPropertyOrderShipGroupMaySplitRemoved             = c.IsPropertyOrderShipGroupMaySplitRemoved;
            e.IsPropertyOrderShipGroupGiftMessageRemoved          = c.IsPropertyOrderShipGroupGiftMessageRemoved;
            e.IsPropertyOrderShipGroupIsGiftRemoved                = c.IsPropertyOrderShipGroupIsGiftRemoved;
            e.IsPropertyOrderShipGroupShipAfterDateRemoved         = c.IsPropertyOrderShipGroupShipAfterDateRemoved;
            e.IsPropertyOrderShipGroupShipByDateRemoved            = c.IsPropertyOrderShipGroupShipByDateRemoved;
            e.IsPropertyOrderShipGroupEstimatedShipDateRemoved     = c.IsPropertyOrderShipGroupEstimatedShipDateRemoved;
            e.IsPropertyOrderShipGroupEstimatedDeliveryDateRemoved = c.IsPropertyOrderShipGroupEstimatedDeliveryDateRemoved;
            e.IsPropertyOrderShipGroupPickwaveIdRemoved            = c.IsPropertyOrderShipGroupPickwaveIdRemoved;
            e.IsPropertyOrderShipGroupVersionRemoved               = c.IsPropertyOrderShipGroupVersionRemoved;
            e.IsPropertyOrderShipGroupCreatedByRemoved             = c.IsPropertyOrderShipGroupCreatedByRemoved;
            e.IsPropertyOrderShipGroupCreatedAtRemoved             = c.IsPropertyOrderShipGroupCreatedAtRemoved;
            e.IsPropertyOrderShipGroupUpdatedByRemoved             = c.IsPropertyOrderShipGroupUpdatedByRemoved;
            e.IsPropertyOrderShipGroupUpdatedAtRemoved             = c.IsPropertyOrderShipGroupUpdatedAtRemoved;
            e.IsPropertyOrderShipGroupActiveRemoved                = c.IsPropertyOrderShipGroupActiveRemoved;
            e.IsPropertyOrderShipGroupDeletedRemoved               = c.IsPropertyOrderShipGroupDeletedRemoved;
            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);
        }