| POST | /v1/coverage/gaps/{CoverageGapId}/assign |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class CoverageAssignRequest
{
public Integer CoverageGapId = null;
public Integer ContactId = null;
public Boolean ConfirmOverride = null;
public Integer getCoverageGapId() { return CoverageGapId; }
public CoverageAssignRequest setCoverageGapId(Integer value) { this.CoverageGapId = value; return this; }
public Integer getContactId() { return ContactId; }
public CoverageAssignRequest setContactId(Integer value) { this.ContactId = value; return this; }
public Boolean isConfirmOverride() { return ConfirmOverride; }
public CoverageAssignRequest setConfirmOverride(Boolean value) { this.ConfirmOverride = value; return this; }
}
public static class CoverageGapResponse
{
public CoverageGap Gap = null;
public Integer ChainedPreview = null;
public Boolean CanSeePay = null;
public ResponseStatus ResponseStatus = null;
public CoverageGap getGap() { return Gap; }
public CoverageGapResponse setGap(CoverageGap value) { this.Gap = value; return this; }
public Integer getChainedPreview() { return ChainedPreview; }
public CoverageGapResponse setChainedPreview(Integer value) { this.ChainedPreview = value; return this; }
public Boolean isCanSeePay() { return CanSeePay; }
public CoverageGapResponse setCanSeePay(Boolean value) { this.CanSeePay = value; return this; }
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public CoverageGapResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
}
public static class CoverageGap
{
public Integer CoverageGapId = null;
public UUID CoverageGapUID = null;
public UUID BranchId = null;
public String Status = null;
public String Track = null;
public Integer OutContactID = null;
public String OutName = null;
public String OutInitials = null;
public Integer JobID = null;
public String JobName = null;
public Integer ProjectID = null;
public Integer WorkerScheduleItemID = null;
public Date WindowStart = null;
public Date WindowEnd = null;
public String Reason = null;
public Boolean MustFill = null;
public CoverageExplanation MustFillExpl = null;
public Integer FilledByContactID = null;
public String FilledByName = null;
public String RecordNo = null;
public Integer DecidedPolicyVersionId = null;
public Date CreatedAt = null;
public Date UpdatedAt = null;
public String QualifiedLine = null;
public ArrayList<CoverageCandidate> Candidates = new ArrayList<CoverageCandidate>();
public ArrayList<CoverageBlockedCandidate> Blocked = new ArrayList<CoverageBlockedCandidate>();
public ArrayList<CoverageOfferInfo> Offers = new ArrayList<CoverageOfferInfo>();
public ArrayList<CoverageApprovalInfo> Approvals = new ArrayList<CoverageApprovalInfo>();
public ArrayList<CoverageGapEventInfo> Timeline = new ArrayList<CoverageGapEventInfo>();
public ArrayList<CoverageMoveOption> MoveOptions = new ArrayList<CoverageMoveOption>();
public CoverageExplanation OrderExpl = null;
public String AssignmentMode = null;
public CoverageNoShowState NoShow = null;
public CoverageLeaveState Leave = null;
public String CustomerName = null;
public Integer getCoverageGapId() { return CoverageGapId; }
public CoverageGap setCoverageGapId(Integer value) { this.CoverageGapId = value; return this; }
public UUID getCoverageGapUID() { return CoverageGapUID; }
public CoverageGap setCoverageGapUID(UUID value) { this.CoverageGapUID = value; return this; }
public UUID getBranchId() { return BranchId; }
public CoverageGap setBranchId(UUID value) { this.BranchId = value; return this; }
public String getStatus() { return Status; }
public CoverageGap setStatus(String value) { this.Status = value; return this; }
public String getTrack() { return Track; }
public CoverageGap setTrack(String value) { this.Track = value; return this; }
public Integer getOutContactID() { return OutContactID; }
public CoverageGap setOutContactID(Integer value) { this.OutContactID = value; return this; }
public String getOutName() { return OutName; }
public CoverageGap setOutName(String value) { this.OutName = value; return this; }
public String getOutInitials() { return OutInitials; }
public CoverageGap setOutInitials(String value) { this.OutInitials = value; return this; }
public Integer getJobID() { return JobID; }
public CoverageGap setJobID(Integer value) { this.JobID = value; return this; }
public String getJobName() { return JobName; }
public CoverageGap setJobName(String value) { this.JobName = value; return this; }
public Integer getProjectID() { return ProjectID; }
public CoverageGap setProjectID(Integer value) { this.ProjectID = value; return this; }
public Integer getWorkerScheduleItemID() { return WorkerScheduleItemID; }
public CoverageGap setWorkerScheduleItemID(Integer value) { this.WorkerScheduleItemID = value; return this; }
public Date getWindowStart() { return WindowStart; }
public CoverageGap setWindowStart(Date value) { this.WindowStart = value; return this; }
public Date getWindowEnd() { return WindowEnd; }
public CoverageGap setWindowEnd(Date value) { this.WindowEnd = value; return this; }
public String getReason() { return Reason; }
public CoverageGap setReason(String value) { this.Reason = value; return this; }
public Boolean isMustFill() { return MustFill; }
public CoverageGap setMustFill(Boolean value) { this.MustFill = value; return this; }
public CoverageExplanation getMustFillExpl() { return MustFillExpl; }
public CoverageGap setMustFillExpl(CoverageExplanation value) { this.MustFillExpl = value; return this; }
public Integer getFilledByContactID() { return FilledByContactID; }
public CoverageGap setFilledByContactID(Integer value) { this.FilledByContactID = value; return this; }
public String getFilledByName() { return FilledByName; }
public CoverageGap setFilledByName(String value) { this.FilledByName = value; return this; }
public String getRecordNo() { return RecordNo; }
public CoverageGap setRecordNo(String value) { this.RecordNo = value; return this; }
public Integer getDecidedPolicyVersionId() { return DecidedPolicyVersionId; }
public CoverageGap setDecidedPolicyVersionId(Integer value) { this.DecidedPolicyVersionId = value; return this; }
public Date getCreatedAt() { return CreatedAt; }
public CoverageGap setCreatedAt(Date value) { this.CreatedAt = value; return this; }
public Date getUpdatedAt() { return UpdatedAt; }
public CoverageGap setUpdatedAt(Date value) { this.UpdatedAt = value; return this; }
public String getQualifiedLine() { return QualifiedLine; }
public CoverageGap setQualifiedLine(String value) { this.QualifiedLine = value; return this; }
public ArrayList<CoverageCandidate> getCandidates() { return Candidates; }
public CoverageGap setCandidates(ArrayList<CoverageCandidate> value) { this.Candidates = value; return this; }
public ArrayList<CoverageBlockedCandidate> getBlocked() { return Blocked; }
public CoverageGap setBlocked(ArrayList<CoverageBlockedCandidate> value) { this.Blocked = value; return this; }
public ArrayList<CoverageOfferInfo> getOffers() { return Offers; }
public CoverageGap setOffers(ArrayList<CoverageOfferInfo> value) { this.Offers = value; return this; }
public ArrayList<CoverageApprovalInfo> getApprovals() { return Approvals; }
public CoverageGap setApprovals(ArrayList<CoverageApprovalInfo> value) { this.Approvals = value; return this; }
public ArrayList<CoverageGapEventInfo> getTimeline() { return Timeline; }
public CoverageGap setTimeline(ArrayList<CoverageGapEventInfo> value) { this.Timeline = value; return this; }
public ArrayList<CoverageMoveOption> getMoveOptions() { return MoveOptions; }
public CoverageGap setMoveOptions(ArrayList<CoverageMoveOption> value) { this.MoveOptions = value; return this; }
public CoverageExplanation getOrderExpl() { return OrderExpl; }
public CoverageGap setOrderExpl(CoverageExplanation value) { this.OrderExpl = value; return this; }
public String getAssignmentMode() { return AssignmentMode; }
public CoverageGap setAssignmentMode(String value) { this.AssignmentMode = value; return this; }
public CoverageNoShowState getNoShow() { return NoShow; }
public CoverageGap setNoShow(CoverageNoShowState value) { this.NoShow = value; return this; }
public CoverageLeaveState getLeave() { return Leave; }
public CoverageGap setLeave(CoverageLeaveState value) { this.Leave = value; return this; }
public String getCustomerName() { return CustomerName; }
public CoverageGap setCustomerName(String value) { this.CustomerName = value; return this; }
}
public static class CoverageExplanation
{
public String PlainSentence = null;
public String RuleId = null;
public String RuleName = null;
public String Demand = null;
public CoverageExplanationSource Source = null;
public String Kind = null;
public String WhyItExists = null;
public String WhatWouldChangeIt = null;
public CoverageExplanationOverride Override = null;
public String Drill = null;
public String getPlainSentence() { return PlainSentence; }
public CoverageExplanation setPlainSentence(String value) { this.PlainSentence = value; return this; }
public String getRuleId() { return RuleId; }
public CoverageExplanation setRuleId(String value) { this.RuleId = value; return this; }
public String getRuleName() { return RuleName; }
public CoverageExplanation setRuleName(String value) { this.RuleName = value; return this; }
public String getDemand() { return Demand; }
public CoverageExplanation setDemand(String value) { this.Demand = value; return this; }
public CoverageExplanationSource getSource() { return Source; }
public CoverageExplanation setSource(CoverageExplanationSource value) { this.Source = value; return this; }
public String getKind() { return Kind; }
public CoverageExplanation setKind(String value) { this.Kind = value; return this; }
public String getWhyItExists() { return WhyItExists; }
public CoverageExplanation setWhyItExists(String value) { this.WhyItExists = value; return this; }
public String getWhatWouldChangeIt() { return WhatWouldChangeIt; }
public CoverageExplanation setWhatWouldChangeIt(String value) { this.WhatWouldChangeIt = value; return this; }
public CoverageExplanationOverride getOverride() { return Override; }
public CoverageExplanation setOverride(CoverageExplanationOverride value) { this.Override = value; return this; }
public String getDrill() { return Drill; }
public CoverageExplanation setDrill(String value) { this.Drill = value; return this; }
}
public static class CoverageExplanationSource
{
public String PolicyName = null;
public String CascadeLevel = null;
public String getPolicyName() { return PolicyName; }
public CoverageExplanationSource setPolicyName(String value) { this.PolicyName = value; return this; }
public String getCascadeLevel() { return CascadeLevel; }
public CoverageExplanationSource setCascadeLevel(String value) { this.CascadeLevel = value; return this; }
}
public static class CoverageExplanationOverride
{
public String Who = null;
public String Consequence = null;
public String getWho() { return Who; }
public CoverageExplanationOverride setWho(String value) { this.Who = value; return this; }
public String getConsequence() { return Consequence; }
public CoverageExplanationOverride setConsequence(String value) { this.Consequence = value; return this; }
}
public static class CoverageCandidate
{
public Integer ContactId = null;
public String Name = null;
public String FirstName = null;
public String Initials = null;
public Integer Rank = null;
public String DiffLine = null;
public String CostLine = null;
public String CostTone = null;
public CoverageExplanation RankExpl = null;
public BigDecimal MarginPct = null;
public String MarginTone = null;
public BigDecimal Loaded = null;
public BigDecimal Billed = null;
public BigDecimal OtHours = null;
public BigDecimal OtPremium = null;
public ArrayList<CoverageCandidateCheck> Checks = new ArrayList<CoverageCandidateCheck>();
public ArrayList<CoverageEffect> Preview = new ArrayList<CoverageEffect>();
public ArrayList<CoverageEffect> Confirm = new ArrayList<CoverageEffect>();
public Boolean HasWarn = null;
public Integer getContactId() { return ContactId; }
public CoverageCandidate setContactId(Integer value) { this.ContactId = value; return this; }
public String getName() { return Name; }
public CoverageCandidate setName(String value) { this.Name = value; return this; }
public String getFirstName() { return FirstName; }
public CoverageCandidate setFirstName(String value) { this.FirstName = value; return this; }
public String getInitials() { return Initials; }
public CoverageCandidate setInitials(String value) { this.Initials = value; return this; }
public Integer getRank() { return Rank; }
public CoverageCandidate setRank(Integer value) { this.Rank = value; return this; }
public String getDiffLine() { return DiffLine; }
public CoverageCandidate setDiffLine(String value) { this.DiffLine = value; return this; }
public String getCostLine() { return CostLine; }
public CoverageCandidate setCostLine(String value) { this.CostLine = value; return this; }
public String getCostTone() { return CostTone; }
public CoverageCandidate setCostTone(String value) { this.CostTone = value; return this; }
public CoverageExplanation getRankExpl() { return RankExpl; }
public CoverageCandidate setRankExpl(CoverageExplanation value) { this.RankExpl = value; return this; }
public BigDecimal getMarginPct() { return MarginPct; }
public CoverageCandidate setMarginPct(BigDecimal value) { this.MarginPct = value; return this; }
public String getMarginTone() { return MarginTone; }
public CoverageCandidate setMarginTone(String value) { this.MarginTone = value; return this; }
public BigDecimal getLoaded() { return Loaded; }
public CoverageCandidate setLoaded(BigDecimal value) { this.Loaded = value; return this; }
public BigDecimal getBilled() { return Billed; }
public CoverageCandidate setBilled(BigDecimal value) { this.Billed = value; return this; }
public BigDecimal getOtHours() { return OtHours; }
public CoverageCandidate setOtHours(BigDecimal value) { this.OtHours = value; return this; }
public BigDecimal getOtPremium() { return OtPremium; }
public CoverageCandidate setOtPremium(BigDecimal value) { this.OtPremium = value; return this; }
public ArrayList<CoverageCandidateCheck> getChecks() { return Checks; }
public CoverageCandidate setChecks(ArrayList<CoverageCandidateCheck> value) { this.Checks = value; return this; }
public ArrayList<CoverageEffect> getPreview() { return Preview; }
public CoverageCandidate setPreview(ArrayList<CoverageEffect> value) { this.Preview = value; return this; }
public ArrayList<CoverageEffect> getConfirm() { return Confirm; }
public CoverageCandidate setConfirm(ArrayList<CoverageEffect> value) { this.Confirm = value; return this; }
public Boolean isHasWarn() { return HasWarn; }
public CoverageCandidate setHasWarn(Boolean value) { this.HasWarn = value; return this; }
}
public static class CoverageCandidateCheck
{
public String CheckId = null;
public String Result = null;
public CoverageExplanation Expl = null;
public String getCheckId() { return CheckId; }
public CoverageCandidateCheck setCheckId(String value) { this.CheckId = value; return this; }
public String getResult() { return Result; }
public CoverageCandidateCheck setResult(String value) { this.Result = value; return this; }
public CoverageExplanation getExpl() { return Expl; }
public CoverageCandidateCheck setExpl(CoverageExplanation value) { this.Expl = value; return this; }
}
public static class CoverageEffect
{
public String Icon = null;
public String Text = null;
public String RuleId = null;
public CoverageExplanation Expl = null;
public String getIcon() { return Icon; }
public CoverageEffect setIcon(String value) { this.Icon = value; return this; }
public String getText() { return Text; }
public CoverageEffect setText(String value) { this.Text = value; return this; }
public String getRuleId() { return RuleId; }
public CoverageEffect setRuleId(String value) { this.RuleId = value; return this; }
public CoverageExplanation getExpl() { return Expl; }
public CoverageEffect setExpl(CoverageExplanation value) { this.Expl = value; return this; }
}
public static class CoverageBlockedCandidate
{
public Integer ContactId = null;
public String Name = null;
public String Initials = null;
public String Reason = null;
public String ChangeChip = null;
public CoverageExplanation Expl = null;
public Integer getContactId() { return ContactId; }
public CoverageBlockedCandidate setContactId(Integer value) { this.ContactId = value; return this; }
public String getName() { return Name; }
public CoverageBlockedCandidate setName(String value) { this.Name = value; return this; }
public String getInitials() { return Initials; }
public CoverageBlockedCandidate setInitials(String value) { this.Initials = value; return this; }
public String getReason() { return Reason; }
public CoverageBlockedCandidate setReason(String value) { this.Reason = value; return this; }
public String getChangeChip() { return ChangeChip; }
public CoverageBlockedCandidate setChangeChip(String value) { this.ChangeChip = value; return this; }
public CoverageExplanation getExpl() { return Expl; }
public CoverageBlockedCandidate setExpl(CoverageExplanation value) { this.Expl = value; return this; }
}
public static class CoverageOfferInfo
{
public Integer CoverageOfferId = null;
public Integer ContactId = null;
public String Name = null;
public Integer Ring = null;
public String Channel = null;
public String Status = null;
public Date SentAtUtc = null;
public Date RespondedAtUtc = null;
public Integer getCoverageOfferId() { return CoverageOfferId; }
public CoverageOfferInfo setCoverageOfferId(Integer value) { this.CoverageOfferId = value; return this; }
public Integer getContactId() { return ContactId; }
public CoverageOfferInfo setContactId(Integer value) { this.ContactId = value; return this; }
public String getName() { return Name; }
public CoverageOfferInfo setName(String value) { this.Name = value; return this; }
public Integer getRing() { return Ring; }
public CoverageOfferInfo setRing(Integer value) { this.Ring = value; return this; }
public String getChannel() { return Channel; }
public CoverageOfferInfo setChannel(String value) { this.Channel = value; return this; }
public String getStatus() { return Status; }
public CoverageOfferInfo setStatus(String value) { this.Status = value; return this; }
public Date getSentAtUtc() { return SentAtUtc; }
public CoverageOfferInfo setSentAtUtc(Date value) { this.SentAtUtc = value; return this; }
public Date getRespondedAtUtc() { return RespondedAtUtc; }
public CoverageOfferInfo setRespondedAtUtc(Date value) { this.RespondedAtUtc = value; return this; }
}
public static class CoverageApprovalInfo
{
public Integer CoverageApprovalId = null;
public Integer CoverageGapId = null;
public String Type = null;
public String Status = null;
public Date RequestedAtUtc = null;
public ArrayList<CoverageEffect> Effects = new ArrayList<CoverageEffect>();
public Integer ContactId = null;
public String ContactName = null;
public Date DecidedAtUtc = null;
public String DecisionNote = null;
public Integer getCoverageApprovalId() { return CoverageApprovalId; }
public CoverageApprovalInfo setCoverageApprovalId(Integer value) { this.CoverageApprovalId = value; return this; }
public Integer getCoverageGapId() { return CoverageGapId; }
public CoverageApprovalInfo setCoverageGapId(Integer value) { this.CoverageGapId = value; return this; }
public String getType() { return Type; }
public CoverageApprovalInfo setType(String value) { this.Type = value; return this; }
public String getStatus() { return Status; }
public CoverageApprovalInfo setStatus(String value) { this.Status = value; return this; }
public Date getRequestedAtUtc() { return RequestedAtUtc; }
public CoverageApprovalInfo setRequestedAtUtc(Date value) { this.RequestedAtUtc = value; return this; }
public ArrayList<CoverageEffect> getEffects() { return Effects; }
public CoverageApprovalInfo setEffects(ArrayList<CoverageEffect> value) { this.Effects = value; return this; }
public Integer getContactId() { return ContactId; }
public CoverageApprovalInfo setContactId(Integer value) { this.ContactId = value; return this; }
public String getContactName() { return ContactName; }
public CoverageApprovalInfo setContactName(String value) { this.ContactName = value; return this; }
public Date getDecidedAtUtc() { return DecidedAtUtc; }
public CoverageApprovalInfo setDecidedAtUtc(Date value) { this.DecidedAtUtc = value; return this; }
public String getDecisionNote() { return DecisionNote; }
public CoverageApprovalInfo setDecisionNote(String value) { this.DecisionNote = value; return this; }
}
public static class CoverageGapEventInfo
{
public String EventType = null;
public String Channel = null;
public String Detail = null;
public String ContactName = null;
public Date AtUtc = null;
public String getEventType() { return EventType; }
public CoverageGapEventInfo setEventType(String value) { this.EventType = value; return this; }
public String getChannel() { return Channel; }
public CoverageGapEventInfo setChannel(String value) { this.Channel = value; return this; }
public String getDetail() { return Detail; }
public CoverageGapEventInfo setDetail(String value) { this.Detail = value; return this; }
public String getContactName() { return ContactName; }
public CoverageGapEventInfo setContactName(String value) { this.ContactName = value; return this; }
public Date getAtUtc() { return AtUtc; }
public CoverageGapEventInfo setAtUtc(Date value) { this.AtUtc = value; return this; }
}
public static class CoverageMoveOption
{
public String Key = null;
public String Label = null;
public String Detail = null;
public CoverageExplanation Expl = null;
public String getKey() { return Key; }
public CoverageMoveOption setKey(String value) { this.Key = value; return this; }
public String getLabel() { return Label; }
public CoverageMoveOption setLabel(String value) { this.Label = value; return this; }
public String getDetail() { return Detail; }
public CoverageMoveOption setDetail(String value) { this.Detail = value; return this; }
public CoverageExplanation getExpl() { return Expl; }
public CoverageMoveOption setExpl(CoverageExplanation value) { this.Expl = value; return this; }
}
public static class CoverageNoShowState
{
public Date GraceUntilUtc = null;
public ArrayList<CoverageNoShowAttempt> Attempts = new ArrayList<CoverageNoShowAttempt>();
public Date DeclaredAtUtc = null;
public Boolean AttendanceNote = null;
public Boolean FalseAlarm = null;
public Date getGraceUntilUtc() { return GraceUntilUtc; }
public CoverageNoShowState setGraceUntilUtc(Date value) { this.GraceUntilUtc = value; return this; }
public ArrayList<CoverageNoShowAttempt> getAttempts() { return Attempts; }
public CoverageNoShowState setAttempts(ArrayList<CoverageNoShowAttempt> value) { this.Attempts = value; return this; }
public Date getDeclaredAtUtc() { return DeclaredAtUtc; }
public CoverageNoShowState setDeclaredAtUtc(Date value) { this.DeclaredAtUtc = value; return this; }
public Boolean isAttendanceNote() { return AttendanceNote; }
public CoverageNoShowState setAttendanceNote(Boolean value) { this.AttendanceNote = value; return this; }
public Boolean isFalseAlarm() { return FalseAlarm; }
public CoverageNoShowState setFalseAlarm(Boolean value) { this.FalseAlarm = value; return this; }
}
public static class CoverageNoShowAttempt
{
public Date AtUtc = null;
public String Channel = null;
public String Note = null;
public Date getAtUtc() { return AtUtc; }
public CoverageNoShowAttempt setAtUtc(Date value) { this.AtUtc = value; return this; }
public String getChannel() { return Channel; }
public CoverageNoShowAttempt setChannel(String value) { this.Channel = value; return this; }
public String getNote() { return Note; }
public CoverageNoShowAttempt setNote(String value) { this.Note = value; return this; }
}
public static class CoverageLeaveState
{
public Boolean Fmla = null;
public Date Began = null;
public Date EstReturn = null;
public Integer CheckpointDays = null;
public Date NextCheckpointUtc = null;
public ArrayList<CoverageLeaveCheckpoint> Checkpoints = new ArrayList<CoverageLeaveCheckpoint>();
public Integer InterimContactId = null;
public String InterimName = null;
public Date InterimStart = null;
public Date InterimEnd = null;
public Boolean RequisitionOpened = null;
public Integer StaffPostingId = null;
public ArrayList<Integer> ChainedGapIds = new ArrayList<Integer>();
public Integer ParentLeaveGapId = null;
public Date RestoredAtUtc = null;
public Boolean isFmla() { return Fmla; }
public CoverageLeaveState setFmla(Boolean value) { this.Fmla = value; return this; }
public Date getBegan() { return Began; }
public CoverageLeaveState setBegan(Date value) { this.Began = value; return this; }
public Date getEstReturn() { return EstReturn; }
public CoverageLeaveState setEstReturn(Date value) { this.EstReturn = value; return this; }
public Integer getCheckpointDays() { return CheckpointDays; }
public CoverageLeaveState setCheckpointDays(Integer value) { this.CheckpointDays = value; return this; }
public Date getNextCheckpointUtc() { return NextCheckpointUtc; }
public CoverageLeaveState setNextCheckpointUtc(Date value) { this.NextCheckpointUtc = value; return this; }
public ArrayList<CoverageLeaveCheckpoint> getCheckpoints() { return Checkpoints; }
public CoverageLeaveState setCheckpoints(ArrayList<CoverageLeaveCheckpoint> value) { this.Checkpoints = value; return this; }
public Integer getInterimContactId() { return InterimContactId; }
public CoverageLeaveState setInterimContactId(Integer value) { this.InterimContactId = value; return this; }
public String getInterimName() { return InterimName; }
public CoverageLeaveState setInterimName(String value) { this.InterimName = value; return this; }
public Date getInterimStart() { return InterimStart; }
public CoverageLeaveState setInterimStart(Date value) { this.InterimStart = value; return this; }
public Date getInterimEnd() { return InterimEnd; }
public CoverageLeaveState setInterimEnd(Date value) { this.InterimEnd = value; return this; }
public Boolean isRequisitionOpened() { return RequisitionOpened; }
public CoverageLeaveState setRequisitionOpened(Boolean value) { this.RequisitionOpened = value; return this; }
public Integer getStaffPostingId() { return StaffPostingId; }
public CoverageLeaveState setStaffPostingId(Integer value) { this.StaffPostingId = value; return this; }
public ArrayList<Integer> getChainedGapIds() { return ChainedGapIds; }
public CoverageLeaveState setChainedGapIds(ArrayList<Integer> value) { this.ChainedGapIds = value; return this; }
public Integer getParentLeaveGapId() { return ParentLeaveGapId; }
public CoverageLeaveState setParentLeaveGapId(Integer value) { this.ParentLeaveGapId = value; return this; }
public Date getRestoredAtUtc() { return RestoredAtUtc; }
public CoverageLeaveState setRestoredAtUtc(Date value) { this.RestoredAtUtc = value; return this; }
}
public static class CoverageLeaveCheckpoint
{
public Date AtUtc = null;
public String Note = null;
public String ByName = null;
public Date getAtUtc() { return AtUtc; }
public CoverageLeaveCheckpoint setAtUtc(Date value) { this.AtUtc = value; return this; }
public String getNote() { return Note; }
public CoverageLeaveCheckpoint setNote(String value) { this.Note = value; return this; }
public String getByName() { return ByName; }
public CoverageLeaveCheckpoint setByName(String value) { this.ByName = value; return this; }
}
}
Java CoverageAssignRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/coverage/gaps/{CoverageGapId}/assign HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<CoverageAssignRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<ConfirmOverride>false</ConfirmOverride>
<ContactId>0</ContactId>
<CoverageGapId>0</CoverageGapId>
</CoverageAssignRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<CoverageGapResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<CanSeePay>false</CanSeePay>
<ChainedPreview>0</ChainedPreview>
<Gap>
<Approvals>
<CoverageApprovalInfo>
<ContactId>0</ContactId>
<ContactName>String</ContactName>
<CoverageApprovalId>0</CoverageApprovalId>
<CoverageGapId>0</CoverageGapId>
<DecidedAtUtc>0001-01-01T00:00:00</DecidedAtUtc>
<DecisionNote>String</DecisionNote>
<Effects>
<CoverageEffect>
<Expl>
<Demand>String</Demand>
<Drill>String</Drill>
<Kind>String</Kind>
<Override>
<Consequence>String</Consequence>
<Who>String</Who>
</Override>
<PlainSentence>String</PlainSentence>
<RuleId>String</RuleId>
<RuleName>String</RuleName>
<Source>
<CascadeLevel>String</CascadeLevel>
<PolicyName>String</PolicyName>
</Source>
<WhatWouldChangeIt>String</WhatWouldChangeIt>
<WhyItExists>String</WhyItExists>
</Expl>
<Icon>String</Icon>
<RuleId>String</RuleId>
<Text>String</Text>
</CoverageEffect>
</Effects>
<RequestedAtUtc>0001-01-01T00:00:00</RequestedAtUtc>
<Status>String</Status>
<Type>String</Type>
</CoverageApprovalInfo>
</Approvals>
<AssignmentMode>String</AssignmentMode>
<Blocked>
<CoverageBlockedCandidate>
<ChangeChip>String</ChangeChip>
<ContactId>0</ContactId>
<Expl>
<Demand>String</Demand>
<Drill>String</Drill>
<Kind>String</Kind>
<Override>
<Consequence>String</Consequence>
<Who>String</Who>
</Override>
<PlainSentence>String</PlainSentence>
<RuleId>String</RuleId>
<RuleName>String</RuleName>
<Source>
<CascadeLevel>String</CascadeLevel>
<PolicyName>String</PolicyName>
</Source>
<WhatWouldChangeIt>String</WhatWouldChangeIt>
<WhyItExists>String</WhyItExists>
</Expl>
<Initials>String</Initials>
<Name>String</Name>
<Reason>String</Reason>
</CoverageBlockedCandidate>
</Blocked>
<BranchId>00000000-0000-0000-0000-000000000000</BranchId>
<Candidates>
<CoverageCandidate>
<Billed>0</Billed>
<Checks>
<CoverageCandidateCheck>
<CheckId>String</CheckId>
<Expl>
<Demand>String</Demand>
<Drill>String</Drill>
<Kind>String</Kind>
<Override>
<Consequence>String</Consequence>
<Who>String</Who>
</Override>
<PlainSentence>String</PlainSentence>
<RuleId>String</RuleId>
<RuleName>String</RuleName>
<Source>
<CascadeLevel>String</CascadeLevel>
<PolicyName>String</PolicyName>
</Source>
<WhatWouldChangeIt>String</WhatWouldChangeIt>
<WhyItExists>String</WhyItExists>
</Expl>
<Result>String</Result>
</CoverageCandidateCheck>
</Checks>
<Confirm>
<CoverageEffect>
<Expl>
<Demand>String</Demand>
<Drill>String</Drill>
<Kind>String</Kind>
<Override>
<Consequence>String</Consequence>
<Who>String</Who>
</Override>
<PlainSentence>String</PlainSentence>
<RuleId>String</RuleId>
<RuleName>String</RuleName>
<Source>
<CascadeLevel>String</CascadeLevel>
<PolicyName>String</PolicyName>
</Source>
<WhatWouldChangeIt>String</WhatWouldChangeIt>
<WhyItExists>String</WhyItExists>
</Expl>
<Icon>String</Icon>
<RuleId>String</RuleId>
<Text>String</Text>
</CoverageEffect>
</Confirm>
<ContactId>0</ContactId>
<CostLine>String</CostLine>
<CostTone>String</CostTone>
<DiffLine>String</DiffLine>
<FirstName>String</FirstName>
<HasWarn>false</HasWarn>
<Initials>String</Initials>
<Loaded>0</Loaded>
<MarginPct>0</MarginPct>
<MarginTone>String</MarginTone>
<Name>String</Name>
<OtHours>0</OtHours>
<OtPremium>0</OtPremium>
<Preview>
<CoverageEffect>
<Expl>
<Demand>String</Demand>
<Drill>String</Drill>
<Kind>String</Kind>
<Override>
<Consequence>String</Consequence>
<Who>String</Who>
</Override>
<PlainSentence>String</PlainSentence>
<RuleId>String</RuleId>
<RuleName>String</RuleName>
<Source>
<CascadeLevel>String</CascadeLevel>
<PolicyName>String</PolicyName>
</Source>
<WhatWouldChangeIt>String</WhatWouldChangeIt>
<WhyItExists>String</WhyItExists>
</Expl>
<Icon>String</Icon>
<RuleId>String</RuleId>
<Text>String</Text>
</CoverageEffect>
</Preview>
<Rank>0</Rank>
<RankExpl>
<Demand>String</Demand>
<Drill>String</Drill>
<Kind>String</Kind>
<Override>
<Consequence>String</Consequence>
<Who>String</Who>
</Override>
<PlainSentence>String</PlainSentence>
<RuleId>String</RuleId>
<RuleName>String</RuleName>
<Source>
<CascadeLevel>String</CascadeLevel>
<PolicyName>String</PolicyName>
</Source>
<WhatWouldChangeIt>String</WhatWouldChangeIt>
<WhyItExists>String</WhyItExists>
</RankExpl>
</CoverageCandidate>
</Candidates>
<CoverageGapId>0</CoverageGapId>
<CoverageGapUID>00000000-0000-0000-0000-000000000000</CoverageGapUID>
<CreatedAt>0001-01-01T00:00:00</CreatedAt>
<CustomerName>String</CustomerName>
<DecidedPolicyVersionId>0</DecidedPolicyVersionId>
<FilledByContactID>0</FilledByContactID>
<FilledByName>String</FilledByName>
<JobID>0</JobID>
<JobName>String</JobName>
<Leave>
<Began>0001-01-01T00:00:00</Began>
<ChainedGapIds xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:int>0</d4p1:int>
</ChainedGapIds>
<CheckpointDays>0</CheckpointDays>
<Checkpoints>
<CoverageLeaveCheckpoint>
<AtUtc>0001-01-01T00:00:00</AtUtc>
<ByName>String</ByName>
<Note>String</Note>
</CoverageLeaveCheckpoint>
</Checkpoints>
<EstReturn>0001-01-01T00:00:00</EstReturn>
<Fmla>false</Fmla>
<InterimContactId>0</InterimContactId>
<InterimEnd>0001-01-01T00:00:00</InterimEnd>
<InterimName>String</InterimName>
<InterimStart>0001-01-01T00:00:00</InterimStart>
<NextCheckpointUtc>0001-01-01T00:00:00</NextCheckpointUtc>
<ParentLeaveGapId>0</ParentLeaveGapId>
<RequisitionOpened>false</RequisitionOpened>
<RestoredAtUtc>0001-01-01T00:00:00</RestoredAtUtc>
<StaffPostingId>0</StaffPostingId>
</Leave>
<MoveOptions>
<CoverageMoveOption>
<Detail>String</Detail>
<Expl>
<Demand>String</Demand>
<Drill>String</Drill>
<Kind>String</Kind>
<Override>
<Consequence>String</Consequence>
<Who>String</Who>
</Override>
<PlainSentence>String</PlainSentence>
<RuleId>String</RuleId>
<RuleName>String</RuleName>
<Source>
<CascadeLevel>String</CascadeLevel>
<PolicyName>String</PolicyName>
</Source>
<WhatWouldChangeIt>String</WhatWouldChangeIt>
<WhyItExists>String</WhyItExists>
</Expl>
<Key>String</Key>
<Label>String</Label>
</CoverageMoveOption>
</MoveOptions>
<MustFill>false</MustFill>
<MustFillExpl>
<Demand>String</Demand>
<Drill>String</Drill>
<Kind>String</Kind>
<Override>
<Consequence>String</Consequence>
<Who>String</Who>
</Override>
<PlainSentence>String</PlainSentence>
<RuleId>String</RuleId>
<RuleName>String</RuleName>
<Source>
<CascadeLevel>String</CascadeLevel>
<PolicyName>String</PolicyName>
</Source>
<WhatWouldChangeIt>String</WhatWouldChangeIt>
<WhyItExists>String</WhyItExists>
</MustFillExpl>
<NoShow>
<Attempts>
<CoverageNoShowAttempt>
<AtUtc>0001-01-01T00:00:00</AtUtc>
<Channel>String</Channel>
<Note>String</Note>
</CoverageNoShowAttempt>
</Attempts>
<AttendanceNote>false</AttendanceNote>
<DeclaredAtUtc>0001-01-01T00:00:00</DeclaredAtUtc>
<FalseAlarm>false</FalseAlarm>
<GraceUntilUtc>0001-01-01T00:00:00</GraceUntilUtc>
</NoShow>
<Offers>
<CoverageOfferInfo>
<Channel>String</Channel>
<ContactId>0</ContactId>
<CoverageOfferId>0</CoverageOfferId>
<Name>String</Name>
<RespondedAtUtc>0001-01-01T00:00:00</RespondedAtUtc>
<Ring>0</Ring>
<SentAtUtc>0001-01-01T00:00:00</SentAtUtc>
<Status>String</Status>
</CoverageOfferInfo>
</Offers>
<OrderExpl>
<Demand>String</Demand>
<Drill>String</Drill>
<Kind>String</Kind>
<Override>
<Consequence>String</Consequence>
<Who>String</Who>
</Override>
<PlainSentence>String</PlainSentence>
<RuleId>String</RuleId>
<RuleName>String</RuleName>
<Source>
<CascadeLevel>String</CascadeLevel>
<PolicyName>String</PolicyName>
</Source>
<WhatWouldChangeIt>String</WhatWouldChangeIt>
<WhyItExists>String</WhyItExists>
</OrderExpl>
<OutContactID>0</OutContactID>
<OutInitials>String</OutInitials>
<OutName>String</OutName>
<ProjectID>0</ProjectID>
<QualifiedLine>String</QualifiedLine>
<Reason>String</Reason>
<RecordNo>String</RecordNo>
<Status>String</Status>
<Timeline>
<CoverageGapEventInfo>
<AtUtc>0001-01-01T00:00:00</AtUtc>
<Channel>String</Channel>
<ContactName>String</ContactName>
<Detail>String</Detail>
<EventType>String</EventType>
</CoverageGapEventInfo>
</Timeline>
<Track>String</Track>
<UpdatedAt>0001-01-01T00:00:00</UpdatedAt>
<WindowEnd>0001-01-01T00:00:00</WindowEnd>
<WindowStart>0001-01-01T00:00:00</WindowStart>
<WorkerScheduleItemID>0</WorkerScheduleItemID>
</Gap>
<ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:Message>String</d2p1:Message>
<d2p1:StackTrace>String</d2p1:StackTrace>
<d2p1:Errors>
<d2p1:ResponseError>
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:FieldName>String</d2p1:FieldName>
<d2p1:Message>String</d2p1:Message>
<d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:KeyValueOfstringstring>
<d5p1:Key>String</d5p1:Key>
<d5p1:Value>String</d5p1:Value>
</d5p1:KeyValueOfstringstring>
</d2p1:Meta>
</d2p1:ResponseError>
</d2p1:Errors>
<d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfstringstring>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>String</d3p1:Value>
</d3p1:KeyValueOfstringstring>
</d2p1:Meta>
</ResponseStatus>
</CoverageGapResponse>