﻿using System;
using SFA.DAS.CommitmentsV2.Types;

namespace SFA.DAS.CommitmentsV2.Messages.Events
{
    public class EntityStateChangedEvent
    {
        public Guid CorrelationId { get; set; }
        public UserAction StateChangeType { get; set; }
        public string EntityType { get; set; }
        public long EmployerAccountId { get; set; }
        public long ProviderId { get; set; }
        public long EntityId { get; set; }
        public string InitialState { get; set; }
        public string UpdatedState { get; set; }
        public string UpdatingUserId { get; set; }
        public string UpdatingUserName { get; set; }
        public Party UpdatingParty { get; set; }
        public DateTime UpdatedOn { get; set; }
    }

    public enum UserAction
    {
        ApproveCohort,
        SendCohort,
        AddDraftApprenticeship,
        ApprenticeshipCompleted,
        UpdateDraftApprenticeship,
        CreateCohort,
        CreateCohortWithOtherParty,
        DeleteDraftApprenticeship,
		DeleteCohort,
        ApproveTransferRequest,
        RejectTransferRequest,
        CompletionPayment
    }
}

﻿using System;
using SFA.DAS.CommitmentsV2.Types;

namespace SFA.DAS.CommitmentsV2.Messages.Events
{
    public class EntityStateChangedEvent
    {
        public Guid CorrelationId { get; set; }
        public UserAction StateChangeType { get; set; }
        public string EntityType { get; set; }
        public long EmployerAccountId { get; set; }
        public long ProviderId { get; set; }
        public long EntityId { get; set; }
        public string InitialState { get; set; }
        public string UpdatedState { get; set; }
        public string UpdatingUserId { get; set; }
        public string UpdatingUserName { get; set; }
        public Party UpdatingParty { get; set; }
        public DateTime UpdatedOn { get; set; }
    }

    public enum UserAction
    {
        ApproveCohort,
        SendCohort,
        AddDraftApprenticeship,
        UpdateDraftApprenticeship,
        CreateCohort,
        CreateCohortWithOtherParty,
        DeleteDraftApprenticeship,
		DeleteCohort,
        ApproveTransferRequest,
        RejectTransferRequest,
        CompletionPayment
    }
}

Revert "CV-500 Added ApprenticeshipCompleted to UserAction"
Revert "CV-500 Added ApprenticeshipCompleted to UserAction"

This reverts commit 05dd9fbdca31201abe69cd5148508bbc5d129846.
