Example #1
0
        public virtual ShipmentItemStateMergePatchedDto ToShipmentItemStateMergePatchedDto(IShipmentItemStateMergePatched e)
        {
            var dto = new ShipmentItemStateMergePatchedDto();

            dto.ShipmentItemEventId        = e.ShipmentItemEventId;
            dto.CreatedAt                  = e.CreatedAt;
            dto.CreatedBy                  = e.CreatedBy;
            dto.Version                    = e.Version;
            dto.CommandId                  = e.CommandId;
            dto.ProductId                  = e.ProductId;
            dto.AttributeSetInstanceId     = e.AttributeSetInstanceId;
            dto.Quantity                   = e.Quantity;
            dto.ShipmentContentDescription = e.ShipmentContentDescription;
            dto.Active = e.Active;
            dto.IsPropertyProductIdRemoved = e.IsPropertyProductIdRemoved;
            dto.IsPropertyAttributeSetInstanceIdRemoved = e.IsPropertyAttributeSetInstanceIdRemoved;
            dto.IsPropertyQuantityRemoved = e.IsPropertyQuantityRemoved;
            dto.IsPropertyShipmentContentDescriptionRemoved = e.IsPropertyShipmentContentDescriptionRemoved;
            dto.IsPropertyActiveRemoved = e.IsPropertyActiveRemoved;

            return(dto);
        }