-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1497 from DFE-Digital/apply-candidate-channel-cre…
…ation update apply api method to set contact creation channel
- Loading branch information
Showing
9 changed files
with
274 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
using GetIntoTeachingApi.Models.Crm; | ||
|
||
namespace GetIntoTeachingApi.Jobs | ||
{ | ||
public class ContactChannelCandidateWrapper : ICreateContactChannel | ||
{ | ||
/// <summary> | ||
/// Provides the default read-only contact creation channel integer value. | ||
/// </summary> | ||
public int? DefaultContactCreationChannel => | ||
(int?)Candidate.Channel.ApplyForTeacherTraining; | ||
|
||
/// <summary> | ||
/// Provides the ability to assign and retrieve the channel source creation identifier. | ||
/// </summary> | ||
public int? CreationChannelSourceId { get; set; } | ||
|
||
/// <summary> | ||
/// Provides the ability to assign and retrieve the channel service creation identifier. | ||
/// </summary> | ||
public int? CreationChannelServiceId { get; set; } | ||
|
||
/// <summary> | ||
/// Provides the ability to assign and retrieve the channel activity creation identifier. | ||
/// </summary> | ||
public int? CreationChannelActivityId { get; set; } | ||
|
||
/// <summary> | ||
/// Provides the ability to retrieve the underlying CRM candidate record. | ||
/// </summary> | ||
public Candidate ScopedCandidate { get; } | ||
|
||
/// <summary> | ||
/// Initialises the instance with an underlying CRM candidate record. | ||
/// </summary> | ||
public ContactChannelCandidateWrapper(Candidate candidate) | ||
{ | ||
ScopedCandidate = candidate; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.