| GET | /v1/workforce/payrules |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class PayRulesCascadeRequest
{
public Integer PayRulePolicyId = null;
public Integer VersionNumber = null;
public Integer getPayRulePolicyId() { return PayRulePolicyId; }
public PayRulesCascadeRequest setPayRulePolicyId(Integer value) { this.PayRulePolicyId = value; return this; }
public Integer getVersionNumber() { return VersionNumber; }
public PayRulesCascadeRequest setVersionNumber(Integer value) { this.VersionNumber = value; return this; }
}
public static class PayRulesCascadeResponse
{
public PayRulePolicy Policy = null;
public PayRulePolicyDoc Doc = null;
public Integer VersionNumber = null;
public ArrayList<PayRulePolicyVersionInfo> Versions = new ArrayList<PayRulePolicyVersionInfo>();
public Boolean CanEditRules = null;
public ResponseStatus ResponseStatus = null;
public PayRulePolicy getPolicy() { return Policy; }
public PayRulesCascadeResponse setPolicy(PayRulePolicy value) { this.Policy = value; return this; }
public PayRulePolicyDoc getDoc() { return Doc; }
public PayRulesCascadeResponse setDoc(PayRulePolicyDoc value) { this.Doc = value; return this; }
public Integer getVersionNumber() { return VersionNumber; }
public PayRulesCascadeResponse setVersionNumber(Integer value) { this.VersionNumber = value; return this; }
public ArrayList<PayRulePolicyVersionInfo> getVersions() { return Versions; }
public PayRulesCascadeResponse setVersions(ArrayList<PayRulePolicyVersionInfo> value) { this.Versions = value; return this; }
public Boolean isCanEditRules() { return CanEditRules; }
public PayRulesCascadeResponse setCanEditRules(Boolean value) { this.CanEditRules = value; return this; }
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public PayRulesCascadeResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
}
public static class PayRulePolicy
{
public Integer PayRulePolicyId = null;
public UUID PayRulePolicyUID = null;
public String Name = null;
public String ScopeLevel = null;
public UUID BranchId = null;
public String JurisdictionKey = null;
public String CbaKey = null;
public String WorkTypeKey = null;
public Integer CurrentVersion = null;
public Boolean IsActive = null;
public String BranchName = null;
public Integer getPayRulePolicyId() { return PayRulePolicyId; }
public PayRulePolicy setPayRulePolicyId(Integer value) { this.PayRulePolicyId = value; return this; }
public UUID getPayRulePolicyUID() { return PayRulePolicyUID; }
public PayRulePolicy setPayRulePolicyUID(UUID value) { this.PayRulePolicyUID = value; return this; }
public String getName() { return Name; }
public PayRulePolicy setName(String value) { this.Name = value; return this; }
public String getScopeLevel() { return ScopeLevel; }
public PayRulePolicy setScopeLevel(String value) { this.ScopeLevel = value; return this; }
public UUID getBranchId() { return BranchId; }
public PayRulePolicy setBranchId(UUID value) { this.BranchId = value; return this; }
public String getJurisdictionKey() { return JurisdictionKey; }
public PayRulePolicy setJurisdictionKey(String value) { this.JurisdictionKey = value; return this; }
public String getCbaKey() { return CbaKey; }
public PayRulePolicy setCbaKey(String value) { this.CbaKey = value; return this; }
public String getWorkTypeKey() { return WorkTypeKey; }
public PayRulePolicy setWorkTypeKey(String value) { this.WorkTypeKey = value; return this; }
public Integer getCurrentVersion() { return CurrentVersion; }
public PayRulePolicy setCurrentVersion(Integer value) { this.CurrentVersion = value; return this; }
public Boolean getIsActive() { return IsActive; }
public PayRulePolicy setIsActive(Boolean value) { this.IsActive = value; return this; }
public String getBranchName() { return BranchName; }
public PayRulePolicy setBranchName(String value) { this.BranchName = value; return this; }
}
public static class PayRulePolicyDoc
{
public String Intro = null;
public String LockLine = null;
public String TemplateName = null;
public ArrayList<PayRuleDef> Rules = new ArrayList<PayRuleDef>();
public String getIntro() { return Intro; }
public PayRulePolicyDoc setIntro(String value) { this.Intro = value; return this; }
public String getLockLine() { return LockLine; }
public PayRulePolicyDoc setLockLine(String value) { this.LockLine = value; return this; }
public String getTemplateName() { return TemplateName; }
public PayRulePolicyDoc setTemplateName(String value) { this.TemplateName = value; return this; }
public ArrayList<PayRuleDef> getRules() { return Rules; }
public PayRulePolicyDoc setRules(ArrayList<PayRuleDef> value) { this.Rules = value; return this; }
}
public static class PayRuleDef
{
public String RuleId = null;
public String Name = null;
public String Kind = null;
public String Demand = null;
public String SourcePolicyName = null;
public String CascadeLevel = null;
public String Why = null;
public String Change = null;
public String OverrideWho = null;
public String OverrideConsequence = null;
public String NoNote = null;
public String LegalVerify = null;
public HashMap<String,String> Params = new HashMap<String,String>();
public ArrayList<PayRuleDocSection> Doc = new ArrayList<PayRuleDocSection>();
public PayRuleTune Tune = null;
public String getRuleId() { return RuleId; }
public PayRuleDef setRuleId(String value) { this.RuleId = value; return this; }
public String getName() { return Name; }
public PayRuleDef setName(String value) { this.Name = value; return this; }
public String getKind() { return Kind; }
public PayRuleDef setKind(String value) { this.Kind = value; return this; }
public String getDemand() { return Demand; }
public PayRuleDef setDemand(String value) { this.Demand = value; return this; }
public String getSourcePolicyName() { return SourcePolicyName; }
public PayRuleDef setSourcePolicyName(String value) { this.SourcePolicyName = value; return this; }
public String getCascadeLevel() { return CascadeLevel; }
public PayRuleDef setCascadeLevel(String value) { this.CascadeLevel = value; return this; }
public String getWhy() { return Why; }
public PayRuleDef setWhy(String value) { this.Why = value; return this; }
public String getChange() { return Change; }
public PayRuleDef setChange(String value) { this.Change = value; return this; }
public String getOverrideWho() { return OverrideWho; }
public PayRuleDef setOverrideWho(String value) { this.OverrideWho = value; return this; }
public String getOverrideConsequence() { return OverrideConsequence; }
public PayRuleDef setOverrideConsequence(String value) { this.OverrideConsequence = value; return this; }
public String getNoNote() { return NoNote; }
public PayRuleDef setNoNote(String value) { this.NoNote = value; return this; }
public String getLegalVerify() { return LegalVerify; }
public PayRuleDef setLegalVerify(String value) { this.LegalVerify = value; return this; }
public HashMap<String,String> getParams() { return Params; }
public PayRuleDef setParams(HashMap<String,String> value) { this.Params = value; return this; }
public ArrayList<PayRuleDocSection> getDoc() { return Doc; }
public PayRuleDef setDoc(ArrayList<PayRuleDocSection> value) { this.Doc = value; return this; }
public PayRuleTune getTune() { return Tune; }
public PayRuleDef setTune(PayRuleTune value) { this.Tune = value; return this; }
}
public static class PayRuleDocSection
{
public String H = null;
public String T = null;
public String getH() { return H; }
public PayRuleDocSection setH(String value) { this.H = value; return this; }
public String getT() { return T; }
public PayRuleDocSection setT(String value) { this.T = value; return this; }
}
public static class PayRuleTune
{
public String Intro = null;
public ArrayList<PayRuleTuneOption> Options = new ArrayList<PayRuleTuneOption>();
public String getIntro() { return Intro; }
public PayRuleTune setIntro(String value) { this.Intro = value; return this; }
public ArrayList<PayRuleTuneOption> getOptions() { return Options; }
public PayRuleTune setOptions(ArrayList<PayRuleTuneOption> value) { this.Options = value; return this; }
}
public static class PayRuleTuneOption
{
public String Label = null;
public String Sub = null;
public String getLabel() { return Label; }
public PayRuleTuneOption setLabel(String value) { this.Label = value; return this; }
public String getSub() { return Sub; }
public PayRuleTuneOption setSub(String value) { this.Sub = value; return this; }
}
public static class PayRulePolicyVersionInfo
{
public Integer PayRulePolicyVersionId = null;
public Integer VersionNumber = null;
public String ChangeNote = null;
public String ChangedByName = null;
public Date CreatedAtUtc = null;
public Integer getPayRulePolicyVersionId() { return PayRulePolicyVersionId; }
public PayRulePolicyVersionInfo setPayRulePolicyVersionId(Integer value) { this.PayRulePolicyVersionId = value; return this; }
public Integer getVersionNumber() { return VersionNumber; }
public PayRulePolicyVersionInfo setVersionNumber(Integer value) { this.VersionNumber = value; return this; }
public String getChangeNote() { return ChangeNote; }
public PayRulePolicyVersionInfo setChangeNote(String value) { this.ChangeNote = value; return this; }
public String getChangedByName() { return ChangedByName; }
public PayRulePolicyVersionInfo setChangedByName(String value) { this.ChangedByName = value; return this; }
public Date getCreatedAtUtc() { return CreatedAtUtc; }
public PayRulePolicyVersionInfo setCreatedAtUtc(Date value) { this.CreatedAtUtc = value; return this; }
}
}
Java PayRulesCascadeRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/workforce/payrules HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"Policy":{"PayRulePolicyId":0,"PayRulePolicyUID":"00000000000000000000000000000000","Name":"String","ScopeLevel":"String","BranchId":"00000000000000000000000000000000","JurisdictionKey":"String","CbaKey":"String","WorkTypeKey":"String","CurrentVersion":0,"IsActive":false,"BranchName":"String"},"Doc":{"Intro":"String","LockLine":"String","TemplateName":"String","Rules":[{"RuleId":"String","Name":"String","Kind":"String","Demand":"String","SourcePolicyName":"String","CascadeLevel":"String","Why":"String","Change":"String","OverrideWho":"String","OverrideConsequence":"String","NoNote":"String","LegalVerify":"String","Params":{"String":"String"},"Doc":[{"H":"String","T":"String"}],"Tune":{"Intro":"String","Options":[{"Label":"String","Sub":"String"}]}}]},"VersionNumber":0,"Versions":[{"PayRulePolicyVersionId":0,"VersionNumber":0,"ChangeNote":"String","ChangedByName":"String","CreatedAtUtc":"0001-01-01T00:00:00.0000000"}],"CanEditRules":false,"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}