From c0d1f06fc32b2bd17f7efc09afbb2263d3858d76 Mon Sep 17 00:00:00 2001 From: Pavel Lisovin Date: Tue, 12 Sep 2023 12:43:24 +0100 Subject: [PATCH] Remove completed field and add send to provider at --- GetIntoTeachingApi/Models/Apply/ApplicationChoice.cs | 3 +++ GetIntoTeachingApi/Models/Apply/ApplicationResponse.cs | 2 -- GetIntoTeachingApi/Models/Crm/ApplicationChoice.cs | 2 ++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/GetIntoTeachingApi/Models/Apply/ApplicationChoice.cs b/GetIntoTeachingApi/Models/Apply/ApplicationChoice.cs index dc8acdaa6..e8f7899be 100644 --- a/GetIntoTeachingApi/Models/Apply/ApplicationChoice.cs +++ b/GetIntoTeachingApi/Models/Apply/ApplicationChoice.cs @@ -23,6 +23,8 @@ public class ApplicationChoice public Course Course { get; set; } [JsonProperty("interviews")] public IEnumerable Interviews { get; set; } + [JsonProperty("sent_to_provider_at")] + public DateTime SendToProviderAt { get; set; } public Crm.ApplicationChoice ToCrmModel() { @@ -35,6 +37,7 @@ public Crm.ApplicationChoice ToCrmModel() CourseId = Course.Id?.ToString(), CourseName = Course.Name, Provider = Provider.Name, + SendToProviderAt = SendToProviderAt, Interviews = Interviews?.Select(c => c.ToCrmModel()).ToList(), }; } diff --git a/GetIntoTeachingApi/Models/Apply/ApplicationResponse.cs b/GetIntoTeachingApi/Models/Apply/ApplicationResponse.cs index dbe449d3a..678d441ed 100644 --- a/GetIntoTeachingApi/Models/Apply/ApplicationResponse.cs +++ b/GetIntoTeachingApi/Models/Apply/ApplicationResponse.cs @@ -6,7 +6,5 @@ public class ApplicationResponse { [JsonProperty("data")] public T Data { get; set; } - [JsonProperty("completed")] - public bool? Completed { get; set; } } } diff --git a/GetIntoTeachingApi/Models/Crm/ApplicationChoice.cs b/GetIntoTeachingApi/Models/Crm/ApplicationChoice.cs index 1ace0ab46..be3960fe3 100644 --- a/GetIntoTeachingApi/Models/Crm/ApplicationChoice.cs +++ b/GetIntoTeachingApi/Models/Crm/ApplicationChoice.cs @@ -48,6 +48,8 @@ public enum Status [EntityField("dfe_applicationchoiceprovider")] public string Provider { get; set; } [EntityField("dfe_name")] + public string SendToProviderAt { get; set; } + [EntityField("dfe_sendtoproviderat")] public string Name { get