diff --git a/src/._Sfa.Das.ApprenticeshipInfoService.sln b/src/._Sfa.Das.ApprenticeshipInfoService.sln new file mode 100644 index 0000000..f6bf52a Binary files /dev/null and b/src/._Sfa.Das.ApprenticeshipInfoService.sln differ diff --git a/src/SFA.DAS.Apprenticeships.Api.Types/Providers/Provider.cs b/src/SFA.DAS.Apprenticeships.Api.Types/Providers/Provider.cs index c0e1d1a..43a9d2b 100644 --- a/src/SFA.DAS.Apprenticeships.Api.Types/Providers/Provider.cs +++ b/src/SFA.DAS.Apprenticeships.Api.Types/Providers/Provider.cs @@ -19,10 +19,12 @@ public class Provider public IEnumerable Aliases { get; set; } - /// - /// Is this provider also an employer - /// - public bool IsEmployerProvider { get; set; } + public bool CurrentlyNotStartingNewApprentices { get; set; } + + /// + /// Is this provider also an employer + /// + public bool IsEmployerProvider { get; set; } public string Uri { get; set; } diff --git a/src/SFA.DAS.Apprenticeships.Api.Types/Providers/ProviderSummary.cs b/src/SFA.DAS.Apprenticeships.Api.Types/Providers/ProviderSummary.cs index 1ebb4cc..1499d51 100644 --- a/src/SFA.DAS.Apprenticeships.Api.Types/Providers/ProviderSummary.cs +++ b/src/SFA.DAS.Apprenticeships.Api.Types/Providers/ProviderSummary.cs @@ -19,6 +19,8 @@ public class ProviderSummary public IEnumerable Aliases { get; set; } + public bool CurrentlyNotStartingNewApprentices { get; set; } + /// /// Is this provider also an employer /// diff --git a/src/Sfa.Das.ApprenticeshipInfoService.Core/Models/FrameworkProviderSearchResultsItem.cs b/src/Sfa.Das.ApprenticeshipInfoService.Core/Models/FrameworkProviderSearchResultsItem.cs index 87bde93..99b677d 100644 --- a/src/Sfa.Das.ApprenticeshipInfoService.Core/Models/FrameworkProviderSearchResultsItem.cs +++ b/src/Sfa.Das.ApprenticeshipInfoService.Core/Models/FrameworkProviderSearchResultsItem.cs @@ -64,5 +64,7 @@ public sealed class FrameworkProviderSearchResultsItem : IApprenticeshipProvider public bool IsNew { get; set; } public bool IsLevyPayerOnly { get; set; } + + public bool CurrentlyNotStartingNewApprentices { get; set; } } } diff --git a/src/Sfa.Das.ApprenticeshipInfoService.Core/Models/IApprenticeshipProviderSearchResultsItem.cs b/src/Sfa.Das.ApprenticeshipInfoService.Core/Models/IApprenticeshipProviderSearchResultsItem.cs index 38ee10c..99efcd6 100644 --- a/src/Sfa.Das.ApprenticeshipInfoService.Core/Models/IApprenticeshipProviderSearchResultsItem.cs +++ b/src/Sfa.Das.ApprenticeshipInfoService.Core/Models/IApprenticeshipProviderSearchResultsItem.cs @@ -53,5 +53,7 @@ public interface IApprenticeshipProviderSearchResultsItem bool IsNew { get; set; } bool IsLevyPayerOnly { get; set; } + + bool CurrentlyNotStartingNewApprentices { get; set; } } } diff --git a/src/Sfa.Das.ApprenticeshipInfoService.Core/Models/ProviderDetail.cs b/src/Sfa.Das.ApprenticeshipInfoService.Core/Models/ProviderDetail.cs index e3eaa65..864aa88 100644 --- a/src/Sfa.Das.ApprenticeshipInfoService.Core/Models/ProviderDetail.cs +++ b/src/Sfa.Das.ApprenticeshipInfoService.Core/Models/ProviderDetail.cs @@ -21,5 +21,7 @@ public sealed class ProviderDetail public bool IsNew { get; set; } public bool IsLevyPayerOnly { get; set; } + + public bool CurrentlyNotStartingNewApprentices { get; set; } } } diff --git a/src/Sfa.Das.ApprenticeshipInfoService.Core/Models/Responses/FrameworkProviderSearchResultsItemResponse.cs b/src/Sfa.Das.ApprenticeshipInfoService.Core/Models/Responses/FrameworkProviderSearchResultsItemResponse.cs index 77354c5..f690483 100644 --- a/src/Sfa.Das.ApprenticeshipInfoService.Core/Models/Responses/FrameworkProviderSearchResultsItemResponse.cs +++ b/src/Sfa.Das.ApprenticeshipInfoService.Core/Models/Responses/FrameworkProviderSearchResultsItemResponse.cs @@ -60,5 +60,7 @@ public sealed class FrameworkProviderSearchResultsItemResponse : IApprenticeship public bool IsNew { get; set; } public bool IsLevyPayerOnly { get; set; } + + public bool CurrentlyNotStartingNewApprentices { get; set; } } } diff --git a/src/Sfa.Das.ApprenticeshipInfoService.Core/Models/Responses/StandardProviderSearchResultsItemResponse.cs b/src/Sfa.Das.ApprenticeshipInfoService.Core/Models/Responses/StandardProviderSearchResultsItemResponse.cs index 9f704ef..6092050 100644 --- a/src/Sfa.Das.ApprenticeshipInfoService.Core/Models/Responses/StandardProviderSearchResultsItemResponse.cs +++ b/src/Sfa.Das.ApprenticeshipInfoService.Core/Models/Responses/StandardProviderSearchResultsItemResponse.cs @@ -52,6 +52,9 @@ public sealed class StandardProviderSearchResultsItemResponse : IApprenticeshipP public bool HasParentCompanyGuarantee { get; set; } public bool IsNew { get; set; } - public bool IsLevyPayerOnly { get; set; } + + public bool IsLevyPayerOnly { get; set; } + + public bool CurrentlyNotStartingNewApprentices { get; set; } } } diff --git a/src/Sfa.Das.ApprenticeshipInfoService.Core/Models/StandardProviderSearchResultsItem.cs b/src/Sfa.Das.ApprenticeshipInfoService.Core/Models/StandardProviderSearchResultsItem.cs index 287e9f9..32efc8d 100644 --- a/src/Sfa.Das.ApprenticeshipInfoService.Core/Models/StandardProviderSearchResultsItem.cs +++ b/src/Sfa.Das.ApprenticeshipInfoService.Core/Models/StandardProviderSearchResultsItem.cs @@ -56,5 +56,7 @@ public sealed class StandardProviderSearchResultsItem : IApprenticeshipProviderS public bool IsNew { get; set; } public bool IsLevyPayerOnly { get; set; } + + public bool CurrentlyNotStartingNewApprentices { get; set; } } } diff --git a/src/Sfa.Das.ApprenticeshipInfoService.Infrastructure/Mapping/ProviderMapping.cs b/src/Sfa.Das.ApprenticeshipInfoService.Infrastructure/Mapping/ProviderMapping.cs index 5f05696..a49d824 100644 --- a/src/Sfa.Das.ApprenticeshipInfoService.Infrastructure/Mapping/ProviderMapping.cs +++ b/src/Sfa.Das.ApprenticeshipInfoService.Infrastructure/Mapping/ProviderMapping.cs @@ -26,6 +26,7 @@ public ProviderSummary MapToProviderDto(Provider provider) Aliases = provider.Aliases, EmployerSatisfaction = provider.EmployerSatisfaction, IsEmployerProvider = provider.IsEmployerProvider, + CurrentlyNotStartingNewApprentices = provider.CurrentlyNotStartingNewApprentices, IsHigherEducationInstitute = provider.IsHigherEducationInstitute, LearnerSatisfaction = provider.LearnerSatisfaction, NationalProvider = provider.NationalProvider, @@ -228,7 +229,8 @@ private ApprenticeshipDetails MapFromInterface(IApprenticeshipProviderSearchResu HasNonLevyContract = item.HasNonLevyContract, HasParentCompanyGuarantee = item.HasParentCompanyGuarantee, IsNew = item.IsNew, - IsLevyPayerOnly = item.IsLevyPayerOnly + IsLevyPayerOnly = item.IsLevyPayerOnly, + CurrentlyNotStartingNewApprentices = item.CurrentlyNotStartingNewApprentices } }; }