Trendsic Platform Service

<back to all web services

PayRulesCascadeRequest

Requires Authentication
The following routes are available for this service:
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 .xml suffix or ?format=xml

HTTP + XML

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: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<PayRulesCascadeResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <CanEditRules>false</CanEditRules>
  <Doc>
    <Intro>String</Intro>
    <LockLine>String</LockLine>
    <Rules>
      <PayRuleDef>
        <CascadeLevel>String</CascadeLevel>
        <Change>String</Change>
        <Demand>String</Demand>
        <Doc>
          <PayRuleDocSection>
            <H>String</H>
            <T>String</T>
          </PayRuleDocSection>
        </Doc>
        <Kind>String</Kind>
        <LegalVerify>String</LegalVerify>
        <Name>String</Name>
        <NoNote>String</NoNote>
        <OverrideConsequence>String</OverrideConsequence>
        <OverrideWho>String</OverrideWho>
        <Params xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </Params>
        <RuleId>String</RuleId>
        <SourcePolicyName>String</SourcePolicyName>
        <Tune>
          <Intro>String</Intro>
          <Options>
            <PayRuleTuneOption>
              <Label>String</Label>
              <Sub>String</Sub>
            </PayRuleTuneOption>
          </Options>
        </Tune>
        <Why>String</Why>
      </PayRuleDef>
    </Rules>
    <TemplateName>String</TemplateName>
  </Doc>
  <Policy>
    <BranchId>00000000-0000-0000-0000-000000000000</BranchId>
    <BranchName>String</BranchName>
    <CbaKey>String</CbaKey>
    <CurrentVersion>0</CurrentVersion>
    <IsActive>false</IsActive>
    <JurisdictionKey>String</JurisdictionKey>
    <Name>String</Name>
    <PayRulePolicyId>0</PayRulePolicyId>
    <PayRulePolicyUID>00000000-0000-0000-0000-000000000000</PayRulePolicyUID>
    <ScopeLevel>String</ScopeLevel>
    <WorkTypeKey>String</WorkTypeKey>
  </Policy>
  <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>
  <VersionNumber>0</VersionNumber>
  <Versions>
    <PayRulePolicyVersionInfo>
      <ChangeNote>String</ChangeNote>
      <ChangedByName>String</ChangedByName>
      <CreatedAtUtc>0001-01-01T00:00:00</CreatedAtUtc>
      <PayRulePolicyVersionId>0</PayRulePolicyVersionId>
      <VersionNumber>0</VersionNumber>
    </PayRulePolicyVersionInfo>
  </Versions>
</PayRulesCascadeResponse>