Skip to content

Commit

Permalink
Remove completed field and add send to provider at
Browse files Browse the repository at this point in the history
  • Loading branch information
plisovin committed Sep 12, 2023
1 parent 153b9cd commit c0d1f06
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions GetIntoTeachingApi/Models/Apply/ApplicationChoice.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ public class ApplicationChoice
public Course Course { get; set; }
[JsonProperty("interviews")]
public IEnumerable<Interview> Interviews { get; set; }
[JsonProperty("sent_to_provider_at")]
public DateTime SendToProviderAt { get; set; }

public Crm.ApplicationChoice ToCrmModel()
{
Expand All @@ -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(),
};
}
Expand Down
2 changes: 0 additions & 2 deletions GetIntoTeachingApi/Models/Apply/ApplicationResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,5 @@ public class ApplicationResponse<T>
{
[JsonProperty("data")]
public T Data { get; set; }
[JsonProperty("completed")]
public bool? Completed { get; set; }
}
}
2 changes: 2 additions & 0 deletions GetIntoTeachingApi/Models/Crm/ApplicationChoice.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c0d1f06

Please sign in to comment.