| GET,OPTIONS | /v1/projects/{ProjectID}/certified-payroll |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class CertifiedPayrollListRequest
{
public Integer ProjectID = null;
public Integer getProjectID() { return ProjectID; }
public CertifiedPayrollListRequest setProjectID(Integer value) { this.ProjectID = value; return this; }
}
public static class CertifiedPayrollListResponse
{
public ResponseStatus ResponseStatus = null;
public Integer ProjectID = null;
public ArrayList<CertifiedPayroll> Payrolls = new ArrayList<CertifiedPayroll>();
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public CertifiedPayrollListResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
public Integer getProjectID() { return ProjectID; }
public CertifiedPayrollListResponse setProjectID(Integer value) { this.ProjectID = value; return this; }
public ArrayList<CertifiedPayroll> getPayrolls() { return Payrolls; }
public CertifiedPayrollListResponse setPayrolls(ArrayList<CertifiedPayroll> value) { this.Payrolls = value; return this; }
}
public static class CertifiedPayroll
{
public Integer CertifiedPayrollID = null;
public UUID CertifiedPayrollUID = null;
public Integer ProjectID = null;
public Integer PayrollNumber = null;
public Date WeekEnding = null;
public String Status = null;
public BigDecimal DbeParticipationPct = null;
public BigDecimal DbeGoalPct = null;
public BigDecimal OjtApprenticeHours = null;
public BigDecimal OjtApprenticeGoalHours = null;
public Integer WorkerCount = null;
public BigDecimal TotalHoursST = null;
public BigDecimal TotalHoursOT = null;
public BigDecimal TotalGrossPay = null;
public Integer FlaggedCount = null;
public String SubmittedBy = null;
public Date SubmittedAt = null;
public String CreatedBy = null;
public Date CreatedAt = null;
public Date UpdatedAt = null;
public ArrayList<CertifiedPayrollLine> Lines = new ArrayList<CertifiedPayrollLine>();
public String DeterminationNo = null;
public String DeterminationType = null;
public Integer getCertifiedPayrollID() { return CertifiedPayrollID; }
public CertifiedPayroll setCertifiedPayrollID(Integer value) { this.CertifiedPayrollID = value; return this; }
public UUID getCertifiedPayrollUID() { return CertifiedPayrollUID; }
public CertifiedPayroll setCertifiedPayrollUID(UUID value) { this.CertifiedPayrollUID = value; return this; }
public Integer getProjectID() { return ProjectID; }
public CertifiedPayroll setProjectID(Integer value) { this.ProjectID = value; return this; }
public Integer getPayrollNumber() { return PayrollNumber; }
public CertifiedPayroll setPayrollNumber(Integer value) { this.PayrollNumber = value; return this; }
public Date getWeekEnding() { return WeekEnding; }
public CertifiedPayroll setWeekEnding(Date value) { this.WeekEnding = value; return this; }
public String getStatus() { return Status; }
public CertifiedPayroll setStatus(String value) { this.Status = value; return this; }
public BigDecimal getDbeParticipationPct() { return DbeParticipationPct; }
public CertifiedPayroll setDbeParticipationPct(BigDecimal value) { this.DbeParticipationPct = value; return this; }
public BigDecimal getDbeGoalPct() { return DbeGoalPct; }
public CertifiedPayroll setDbeGoalPct(BigDecimal value) { this.DbeGoalPct = value; return this; }
public BigDecimal getOjtApprenticeHours() { return OjtApprenticeHours; }
public CertifiedPayroll setOjtApprenticeHours(BigDecimal value) { this.OjtApprenticeHours = value; return this; }
public BigDecimal getOjtApprenticeGoalHours() { return OjtApprenticeGoalHours; }
public CertifiedPayroll setOjtApprenticeGoalHours(BigDecimal value) { this.OjtApprenticeGoalHours = value; return this; }
public Integer getWorkerCount() { return WorkerCount; }
public CertifiedPayroll setWorkerCount(Integer value) { this.WorkerCount = value; return this; }
public BigDecimal getTotalHoursST() { return TotalHoursST; }
public CertifiedPayroll setTotalHoursST(BigDecimal value) { this.TotalHoursST = value; return this; }
public BigDecimal getTotalHoursOT() { return TotalHoursOT; }
public CertifiedPayroll setTotalHoursOT(BigDecimal value) { this.TotalHoursOT = value; return this; }
public BigDecimal getTotalGrossPay() { return TotalGrossPay; }
public CertifiedPayroll setTotalGrossPay(BigDecimal value) { this.TotalGrossPay = value; return this; }
public Integer getFlaggedCount() { return FlaggedCount; }
public CertifiedPayroll setFlaggedCount(Integer value) { this.FlaggedCount = value; return this; }
public String getSubmittedBy() { return SubmittedBy; }
public CertifiedPayroll setSubmittedBy(String value) { this.SubmittedBy = value; return this; }
public Date getSubmittedAt() { return SubmittedAt; }
public CertifiedPayroll setSubmittedAt(Date value) { this.SubmittedAt = value; return this; }
public String getCreatedBy() { return CreatedBy; }
public CertifiedPayroll setCreatedBy(String value) { this.CreatedBy = value; return this; }
public Date getCreatedAt() { return CreatedAt; }
public CertifiedPayroll setCreatedAt(Date value) { this.CreatedAt = value; return this; }
public Date getUpdatedAt() { return UpdatedAt; }
public CertifiedPayroll setUpdatedAt(Date value) { this.UpdatedAt = value; return this; }
public ArrayList<CertifiedPayrollLine> getLines() { return Lines; }
public CertifiedPayroll setLines(ArrayList<CertifiedPayrollLine> value) { this.Lines = value; return this; }
public String getDeterminationNo() { return DeterminationNo; }
public CertifiedPayroll setDeterminationNo(String value) { this.DeterminationNo = value; return this; }
public String getDeterminationType() { return DeterminationType; }
public CertifiedPayroll setDeterminationType(String value) { this.DeterminationType = value; return this; }
}
public static class CertifiedPayrollLine
{
public Integer CertifiedPayrollLineID = null;
public Integer CertifiedPayrollID = null;
public String WorkerName = null;
public Integer ContactID = null;
public String Classification = null;
public BigDecimal HoursST = null;
public BigDecimal HoursOT = null;
public BigDecimal BaseRate = null;
public BigDecimal FringeRate = null;
public BigDecimal FringeCashRate = null;
public BigDecimal FringePlanRate = null;
public BigDecimal GrossPay = null;
public Boolean Flagged = null;
public BigDecimal RestitutionAmount = null;
public String RestitutionNote = null;
public BigDecimal RequiredBase = null;
public BigDecimal RequiredFringe = null;
public Integer SortOrder = null;
public Integer getCertifiedPayrollLineID() { return CertifiedPayrollLineID; }
public CertifiedPayrollLine setCertifiedPayrollLineID(Integer value) { this.CertifiedPayrollLineID = value; return this; }
public Integer getCertifiedPayrollID() { return CertifiedPayrollID; }
public CertifiedPayrollLine setCertifiedPayrollID(Integer value) { this.CertifiedPayrollID = value; return this; }
public String getWorkerName() { return WorkerName; }
public CertifiedPayrollLine setWorkerName(String value) { this.WorkerName = value; return this; }
public Integer getContactID() { return ContactID; }
public CertifiedPayrollLine setContactID(Integer value) { this.ContactID = value; return this; }
public String getClassification() { return Classification; }
public CertifiedPayrollLine setClassification(String value) { this.Classification = value; return this; }
public BigDecimal getHoursST() { return HoursST; }
public CertifiedPayrollLine setHoursST(BigDecimal value) { this.HoursST = value; return this; }
public BigDecimal getHoursOT() { return HoursOT; }
public CertifiedPayrollLine setHoursOT(BigDecimal value) { this.HoursOT = value; return this; }
public BigDecimal getBaseRate() { return BaseRate; }
public CertifiedPayrollLine setBaseRate(BigDecimal value) { this.BaseRate = value; return this; }
public BigDecimal getFringeRate() { return FringeRate; }
public CertifiedPayrollLine setFringeRate(BigDecimal value) { this.FringeRate = value; return this; }
public BigDecimal getFringeCashRate() { return FringeCashRate; }
public CertifiedPayrollLine setFringeCashRate(BigDecimal value) { this.FringeCashRate = value; return this; }
public BigDecimal getFringePlanRate() { return FringePlanRate; }
public CertifiedPayrollLine setFringePlanRate(BigDecimal value) { this.FringePlanRate = value; return this; }
public BigDecimal getGrossPay() { return GrossPay; }
public CertifiedPayrollLine setGrossPay(BigDecimal value) { this.GrossPay = value; return this; }
public Boolean isFlagged() { return Flagged; }
public CertifiedPayrollLine setFlagged(Boolean value) { this.Flagged = value; return this; }
public BigDecimal getRestitutionAmount() { return RestitutionAmount; }
public CertifiedPayrollLine setRestitutionAmount(BigDecimal value) { this.RestitutionAmount = value; return this; }
public String getRestitutionNote() { return RestitutionNote; }
public CertifiedPayrollLine setRestitutionNote(String value) { this.RestitutionNote = value; return this; }
public BigDecimal getRequiredBase() { return RequiredBase; }
public CertifiedPayrollLine setRequiredBase(BigDecimal value) { this.RequiredBase = value; return this; }
public BigDecimal getRequiredFringe() { return RequiredFringe; }
public CertifiedPayrollLine setRequiredFringe(BigDecimal value) { this.RequiredFringe = value; return this; }
public Integer getSortOrder() { return SortOrder; }
public CertifiedPayrollLine setSortOrder(Integer value) { this.SortOrder = value; return this; }
}
}
Java CertifiedPayrollListRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/projects/{ProjectID}/certified-payroll HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"ProjectID":0,"Payrolls":[{"CertifiedPayrollID":0,"CertifiedPayrollUID":"00000000000000000000000000000000","ProjectID":0,"PayrollNumber":0,"WeekEnding":"0001-01-01T00:00:00.0000000","Status":"String","DbeParticipationPct":0,"DbeGoalPct":0,"OjtApprenticeHours":0,"OjtApprenticeGoalHours":0,"WorkerCount":0,"TotalHoursST":0,"TotalHoursOT":0,"TotalGrossPay":0,"FlaggedCount":0,"SubmittedBy":"String","SubmittedAt":"0001-01-01T00:00:00.0000000","CreatedBy":"String","CreatedAt":"0001-01-01T00:00:00.0000000","UpdatedAt":"0001-01-01T00:00:00.0000000","Lines":[{"CertifiedPayrollLineID":0,"CertifiedPayrollID":0,"WorkerName":"String","ContactID":0,"Classification":"String","HoursST":0,"HoursOT":0,"BaseRate":0,"FringeRate":0,"FringeCashRate":0,"FringePlanRate":0,"GrossPay":0,"Flagged":false,"RestitutionAmount":0,"RestitutionNote":"String","RequiredBase":0,"RequiredFringe":0,"SortOrder":0}],"DeterminationNo":"String","DeterminationType":"String"}]}