| PATCH,PUT,OPTIONS | /v1/projects/{ProjectID}/certified-payroll/{Week} |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class CertifiedPayrollUpdateRequest
{
public Integer ProjectID = null;
public String Week = null;
public BigDecimal DbeParticipationPct = null;
public BigDecimal DbeGoalPct = null;
public BigDecimal OjtApprenticeHours = null;
public BigDecimal OjtApprenticeGoalHours = null;
public ArrayList<CertifiedPayrollLine> Lines = new ArrayList<CertifiedPayrollLine>();
public Boolean SeedFromTime = null;
public Integer getProjectID() { return ProjectID; }
public CertifiedPayrollUpdateRequest setProjectID(Integer value) { this.ProjectID = value; return this; }
public String getWeek() { return Week; }
public CertifiedPayrollUpdateRequest setWeek(String value) { this.Week = value; return this; }
public BigDecimal getDbeParticipationPct() { return DbeParticipationPct; }
public CertifiedPayrollUpdateRequest setDbeParticipationPct(BigDecimal value) { this.DbeParticipationPct = value; return this; }
public BigDecimal getDbeGoalPct() { return DbeGoalPct; }
public CertifiedPayrollUpdateRequest setDbeGoalPct(BigDecimal value) { this.DbeGoalPct = value; return this; }
public BigDecimal getOjtApprenticeHours() { return OjtApprenticeHours; }
public CertifiedPayrollUpdateRequest setOjtApprenticeHours(BigDecimal value) { this.OjtApprenticeHours = value; return this; }
public BigDecimal getOjtApprenticeGoalHours() { return OjtApprenticeGoalHours; }
public CertifiedPayrollUpdateRequest setOjtApprenticeGoalHours(BigDecimal value) { this.OjtApprenticeGoalHours = value; return this; }
public ArrayList<CertifiedPayrollLine> getLines() { return Lines; }
public CertifiedPayrollUpdateRequest setLines(ArrayList<CertifiedPayrollLine> value) { this.Lines = value; return this; }
public Boolean isSeedFromTime() { return SeedFromTime; }
public CertifiedPayrollUpdateRequest setSeedFromTime(Boolean value) { this.SeedFromTime = 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; }
}
public static class CertifiedPayrollResponse
{
public ResponseStatus ResponseStatus = null;
public CertifiedPayroll Payroll = null;
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public CertifiedPayrollResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
public CertifiedPayroll getPayroll() { return Payroll; }
public CertifiedPayrollResponse setPayroll(CertifiedPayroll value) { this.Payroll = 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; }
}
}
Java CertifiedPayrollUpdateRequest 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.
PUT /v1/projects/{ProjectID}/certified-payroll/{Week} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<CertifiedPayrollUpdateRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<DbeGoalPct>0</DbeGoalPct>
<DbeParticipationPct>0</DbeParticipationPct>
<Lines>
<CertifiedPayrollLine>
<BaseRate>0</BaseRate>
<CertifiedPayrollID>0</CertifiedPayrollID>
<CertifiedPayrollLineID>0</CertifiedPayrollLineID>
<Classification>String</Classification>
<ContactID>0</ContactID>
<Flagged>false</Flagged>
<FringeCashRate>0</FringeCashRate>
<FringePlanRate>0</FringePlanRate>
<FringeRate>0</FringeRate>
<GrossPay>0</GrossPay>
<HoursOT>0</HoursOT>
<HoursST>0</HoursST>
<RequiredBase>0</RequiredBase>
<RequiredFringe>0</RequiredFringe>
<RestitutionAmount>0</RestitutionAmount>
<RestitutionNote>String</RestitutionNote>
<SortOrder>0</SortOrder>
<WorkerName>String</WorkerName>
</CertifiedPayrollLine>
</Lines>
<OjtApprenticeGoalHours>0</OjtApprenticeGoalHours>
<OjtApprenticeHours>0</OjtApprenticeHours>
<ProjectID>0</ProjectID>
<SeedFromTime>false</SeedFromTime>
<Week>String</Week>
</CertifiedPayrollUpdateRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<CertifiedPayrollResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<Payroll>
<CertifiedPayrollID>0</CertifiedPayrollID>
<CertifiedPayrollUID>00000000-0000-0000-0000-000000000000</CertifiedPayrollUID>
<CreatedAt>0001-01-01T00:00:00</CreatedAt>
<CreatedBy>String</CreatedBy>
<DbeGoalPct>0</DbeGoalPct>
<DbeParticipationPct>0</DbeParticipationPct>
<DeterminationNo>String</DeterminationNo>
<DeterminationType>String</DeterminationType>
<FlaggedCount>0</FlaggedCount>
<Lines>
<CertifiedPayrollLine>
<BaseRate>0</BaseRate>
<CertifiedPayrollID>0</CertifiedPayrollID>
<CertifiedPayrollLineID>0</CertifiedPayrollLineID>
<Classification>String</Classification>
<ContactID>0</ContactID>
<Flagged>false</Flagged>
<FringeCashRate>0</FringeCashRate>
<FringePlanRate>0</FringePlanRate>
<FringeRate>0</FringeRate>
<GrossPay>0</GrossPay>
<HoursOT>0</HoursOT>
<HoursST>0</HoursST>
<RequiredBase>0</RequiredBase>
<RequiredFringe>0</RequiredFringe>
<RestitutionAmount>0</RestitutionAmount>
<RestitutionNote>String</RestitutionNote>
<SortOrder>0</SortOrder>
<WorkerName>String</WorkerName>
</CertifiedPayrollLine>
</Lines>
<OjtApprenticeGoalHours>0</OjtApprenticeGoalHours>
<OjtApprenticeHours>0</OjtApprenticeHours>
<PayrollNumber>0</PayrollNumber>
<ProjectID>0</ProjectID>
<Status>String</Status>
<SubmittedAt>0001-01-01T00:00:00</SubmittedAt>
<SubmittedBy>String</SubmittedBy>
<TotalGrossPay>0</TotalGrossPay>
<TotalHoursOT>0</TotalHoursOT>
<TotalHoursST>0</TotalHoursST>
<UpdatedAt>0001-01-01T00:00:00</UpdatedAt>
<WeekEnding>0001-01-01T00:00:00</WeekEnding>
<WorkerCount>0</WorkerCount>
</Payroll>
<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>
</CertifiedPayrollResponse>