From 6f297ab149633b6e8d05468324b79f7053e0cb3e Mon Sep 17 00:00:00 2001 From: Oleksandr Naumov Date: Thu, 22 Feb 2024 21:58:10 +0100 Subject: [PATCH] PS-42243: BTE Time & Labor entities (#455) --- pom.xml | 2 +- .../data/api/mock/MockDataLoader.groovy | 28 + .../data/model/entity/core/bte/Holiday.java | 33 + .../entity/core/bte/HolidayInstance.java | 22 + .../rules/ClientCorporationBillRuleset.java | 31 + .../ClientCorporationBillRulesetVersion.java | 27 + .../rules/ClientCorporationPayRuleset.java | 31 + .../ClientCorporationPayRulesetVersion.java | 27 + .../core/bte/rules/TimeLaborEvalRule.java | 43 + .../bte/rules/TimeLaborEvalRuleTemplate.java | 31 + .../data/model/enums/BullhornEntityInfo.java | 19 +- ...ientCorporationBillRulesetListWrapper.java | 11 + ...porationBillRulesetVersionListWrapper.java | 11 + ...lientCorporationPayRulesetListWrapper.java | 11 + ...rporationPayRulesetVersionListWrapper.java | 11 + .../list/HolidayInstanceListWrapper.java | 11 + .../response/list/HolidayListWrapper.java | 11 + .../list/TimeLaborEvalRuleListWrapper.java | 11 + .../TimeLaborEvalRuleTemplateListWrapper.java | 11 + ...tCorporationBillRulesetVersionWrapper.java | 6 + .../ClientCorporationBillRulesetWrapper.java | 6 + ...ntCorporationPayRulesetVersionWrapper.java | 6 + .../ClientCorporationPayRulesetWrapper.java | 6 + .../single/HolidayInstanceWrapper.java | 6 + .../model/response/single/HolidayWrapper.java | 6 + .../TimeLaborEvalRuleTemplateWrapper.java | 6 + .../single/TimeLaborEvalRuleWrapper.java | 6 + .../testdata/rest/bte/holiday-data.txt | 667 +++++++++ .../rest/bte/holidayinstance-data.txt | 327 +++++ .../clientcorporationbillruleset-data.txt | 527 +++++++ ...ientcorporationbillrulesetversion-data.txt | 247 ++++ .../clientcorporationpayruleset-data.txt | 527 +++++++ ...lientcorporationpayrulesetversion-data.txt | 247 ++++ .../rest/bte/rules/timelaborevalrule-data.txt | 1254 +++++++++++++++++ .../rules/timelaborevalruletemplate-data.txt | 607 ++++++++ .../rest/meta/bte/holiday-meta-data.txt | 536 +++++++ .../meta/bte/holidayinstance-meta-data.txt | 203 +++ ...clientcorporationbillruleset-meta-data.txt | 350 +++++ ...orporationbillrulesetversion-meta-data.txt | 198 +++ .../clientcorporationpayruleset-meta-data.txt | 350 +++++ ...corporationpayrulesetversion-meta-data.txt | 198 +++ .../bte/rules/timelaborevalrule-meta-data.txt | 864 ++++++++++++ .../timelaborevalruletemplate-meta-data.txt | 540 +++++++ 43 files changed, 8068 insertions(+), 4 deletions(-) create mode 100644 src/main/java/com/bullhornsdk/data/model/entity/core/bte/Holiday.java create mode 100644 src/main/java/com/bullhornsdk/data/model/entity/core/bte/HolidayInstance.java create mode 100644 src/main/java/com/bullhornsdk/data/model/entity/core/bte/rules/ClientCorporationBillRuleset.java create mode 100644 src/main/java/com/bullhornsdk/data/model/entity/core/bte/rules/ClientCorporationBillRulesetVersion.java create mode 100644 src/main/java/com/bullhornsdk/data/model/entity/core/bte/rules/ClientCorporationPayRuleset.java create mode 100644 src/main/java/com/bullhornsdk/data/model/entity/core/bte/rules/ClientCorporationPayRulesetVersion.java create mode 100644 src/main/java/com/bullhornsdk/data/model/entity/core/bte/rules/TimeLaborEvalRule.java create mode 100644 src/main/java/com/bullhornsdk/data/model/entity/core/bte/rules/TimeLaborEvalRuleTemplate.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/list/ClientCorporationBillRulesetListWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/list/ClientCorporationBillRulesetVersionListWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/list/ClientCorporationPayRulesetListWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/list/ClientCorporationPayRulesetVersionListWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/list/HolidayInstanceListWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/list/HolidayListWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/list/TimeLaborEvalRuleListWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/list/TimeLaborEvalRuleTemplateListWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/single/ClientCorporationBillRulesetVersionWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/single/ClientCorporationBillRulesetWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/single/ClientCorporationPayRulesetVersionWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/single/ClientCorporationPayRulesetWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/single/HolidayInstanceWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/single/HolidayWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/single/TimeLaborEvalRuleTemplateWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/single/TimeLaborEvalRuleWrapper.java create mode 100644 src/test/resources/testdata/rest/bte/holiday-data.txt create mode 100644 src/test/resources/testdata/rest/bte/holidayinstance-data.txt create mode 100644 src/test/resources/testdata/rest/bte/rules/clientcorporationbillruleset-data.txt create mode 100644 src/test/resources/testdata/rest/bte/rules/clientcorporationbillrulesetversion-data.txt create mode 100644 src/test/resources/testdata/rest/bte/rules/clientcorporationpayruleset-data.txt create mode 100644 src/test/resources/testdata/rest/bte/rules/clientcorporationpayrulesetversion-data.txt create mode 100644 src/test/resources/testdata/rest/bte/rules/timelaborevalrule-data.txt create mode 100644 src/test/resources/testdata/rest/bte/rules/timelaborevalruletemplate-data.txt create mode 100644 src/test/resources/testdata/rest/meta/bte/holiday-meta-data.txt create mode 100644 src/test/resources/testdata/rest/meta/bte/holidayinstance-meta-data.txt create mode 100644 src/test/resources/testdata/rest/meta/bte/rules/clientcorporationbillruleset-meta-data.txt create mode 100644 src/test/resources/testdata/rest/meta/bte/rules/clientcorporationbillrulesetversion-meta-data.txt create mode 100644 src/test/resources/testdata/rest/meta/bte/rules/clientcorporationpayruleset-meta-data.txt create mode 100644 src/test/resources/testdata/rest/meta/bte/rules/clientcorporationpayrulesetversion-meta-data.txt create mode 100644 src/test/resources/testdata/rest/meta/bte/rules/timelaborevalrule-meta-data.txt create mode 100644 src/test/resources/testdata/rest/meta/bte/rules/timelaborevalruletemplate-meta-data.txt diff --git a/pom.xml b/pom.xml index 573062b4..efe58be7 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ com.bullhorn sdk-rest - 2.3.6 + 2.3.7 jar Bullhorn REST SDK diff --git a/src/main/java/com/bullhornsdk/data/api/mock/MockDataLoader.groovy b/src/main/java/com/bullhornsdk/data/api/mock/MockDataLoader.groovy index b3ec13b9..37f1ce9a 100644 --- a/src/main/java/com/bullhornsdk/data/api/mock/MockDataLoader.groovy +++ b/src/main/java/com/bullhornsdk/data/api/mock/MockDataLoader.groovy @@ -3,6 +3,14 @@ package com.bullhornsdk.data.api.mock import com.bullhornsdk.data.api.helper.RestJsonConverter import com.bullhornsdk.data.api.helper.concurrency.ConcurrencyService import com.bullhornsdk.data.api.helper.concurrency.standard.RestConcurrencyService +import com.bullhornsdk.data.model.entity.core.bte.Holiday +import com.bullhornsdk.data.model.entity.core.bte.HolidayInstance +import com.bullhornsdk.data.model.entity.core.bte.rules.ClientCorporationBillRuleset +import com.bullhornsdk.data.model.entity.core.bte.rules.ClientCorporationBillRulesetVersion +import com.bullhornsdk.data.model.entity.core.bte.rules.ClientCorporationPayRuleset +import com.bullhornsdk.data.model.entity.core.bte.rules.ClientCorporationPayRulesetVersion +import com.bullhornsdk.data.model.entity.core.bte.rules.TimeLaborEvalRule +import com.bullhornsdk.data.model.entity.core.bte.rules.TimeLaborEvalRuleTemplate import com.bullhornsdk.data.model.entity.core.certificationrequirement.CandidateCertificationRequirement import com.bullhornsdk.data.model.entity.core.certificationrequirement.CertificationRequirement import com.bullhornsdk.data.model.entity.core.certificationrequirement.JobSubmissionCertificationRequirement @@ -714,6 +722,16 @@ public class MockDataLoader { entityFiles.put(EdsEntityTypeSchemaVersion.class, "eds/entitytypeschemaversion-data.txt"); entityFiles.put(EdsSourceSystem.class, "eds/sourcesystem-data.txt"); + // bte + entityFiles.put(ClientCorporationBillRuleset.class, "bte/rules/clientcorporationbillruleset-data.txt"); + entityFiles.put(ClientCorporationBillRulesetVersion.class, "bte/rules/clientcorporationbillrulesetversion-data.txt"); + entityFiles.put(ClientCorporationPayRuleset.class, "bte/rules/clientcorporationpayruleset-data.txt"); + entityFiles.put(ClientCorporationPayRulesetVersion.class, "bte/rules/clientcorporationpayrulesetversion-data.txt"); + entityFiles.put(TimeLaborEvalRule.class, "bte/rules/timelaborevalrule-data.txt"); + entityFiles.put(TimeLaborEvalRuleTemplate.class, "bte/rules/timelaborevalruletemplate-data.txt"); + entityFiles.put(Holiday.class, "bte/holiday-data.txt"); + entityFiles.put(HolidayInstance.class, "bte/holidayinstance-data.txt"); + return entityFiles; } @@ -981,6 +999,16 @@ public class MockDataLoader { entityMetaFiles.put(EdsEntityTypeSchemaVersion.class, "meta/eds/entitytypeschemaversion-meta-data.txt"); entityMetaFiles.put(EdsSourceSystem.class, "meta/eds/sourcesystem-meta-data.txt"); + // bte + entityMetaFiles.put(ClientCorporationBillRuleset.class, "meta/bte/rules/clientcorporationbillruleset-meta-data.txt"); + entityMetaFiles.put(ClientCorporationBillRulesetVersion.class, "meta/bte/rules/clientcorporationbillrulesetversion-meta-data.txt"); + entityMetaFiles.put(ClientCorporationPayRuleset.class, "meta/bte/rules/clientcorporationpayruleset-meta-data.txt"); + entityMetaFiles.put(ClientCorporationPayRulesetVersion.class, "meta/bte/rules/clientcorporationpayrulesetversion-meta-data.txt"); + entityMetaFiles.put(TimeLaborEvalRule.class, "meta/bte/rules/timelaborevalrule-meta-data.txt"); + entityMetaFiles.put(TimeLaborEvalRuleTemplate.class, "meta/bte/rules/timelaborevalruletemplate-meta-data.txt"); + entityMetaFiles.put(Holiday.class, "meta/bte/holiday-meta-data.txt"); + entityMetaFiles.put(HolidayInstance.class, "meta/bte/holidayinstance-meta-data.txt"); + return entityMetaFiles; } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/bte/Holiday.java b/src/main/java/com/bullhornsdk/data/model/entity/core/bte/Holiday.java new file mode 100644 index 00000000..6cda8a14 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/bte/Holiday.java @@ -0,0 +1,33 @@ +package com.bullhornsdk.data.model.entity.core.bte; + +import com.bullhornsdk.data.api.helper.json.DynamicNullValueFilter; +import com.bullhornsdk.data.model.entity.core.bte.rules.TimeLaborEvalRule; +import com.bullhornsdk.data.model.entity.core.paybill.optionslookup.SimplifiedOptionsLookup; +import com.bullhornsdk.data.model.entity.core.standard.CorporateUser; +import com.bullhornsdk.data.model.entity.core.type.*; +import com.bullhornsdk.data.model.entity.embedded.OneToMany; +import com.fasterxml.jackson.annotation.JsonFilter; +import lombok.Data; +import lombok.EqualsAndHashCode; +import org.joda.time.DateTime; + +@Data +@JsonFilter(DynamicNullValueFilter.FILTER_NAME) +@EqualsAndHashCode(callSuper = false) +public class Holiday extends AbstractEntity implements QueryEntity, UpdateEntity, CreateEntity, DateLastModifiedEntity, SoftDeleteEntity, AssociationEntity { + Integer id; + String cronExpression; + DateTime dateAdded; + DateTime dateLastModified; + String description; + Integer duration; + SimplifiedOptionsLookup holidayCategoryLookup; + OneToMany holidayInstances; + SimplifiedOptionsLookup holidayStatusLookup; + Boolean isDeleted; + Boolean isRun; + String label; + CorporateUser modifyingUser; + DateTime nextOccurrence; + OneToMany timeLaborEvalRules; +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/bte/HolidayInstance.java b/src/main/java/com/bullhornsdk/data/model/entity/core/bte/HolidayInstance.java new file mode 100644 index 00000000..faa9d628 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/bte/HolidayInstance.java @@ -0,0 +1,22 @@ +package com.bullhornsdk.data.model.entity.core.bte; + +import com.bullhornsdk.data.api.helper.json.DynamicNullValueFilter; +import com.bullhornsdk.data.model.entity.core.standard.CorporateUser; +import com.bullhornsdk.data.model.entity.core.type.*; +import com.fasterxml.jackson.annotation.JsonFilter; +import lombok.Data; +import lombok.EqualsAndHashCode; +import org.joda.time.DateTime; + +@Data +@JsonFilter(DynamicNullValueFilter.FILTER_NAME) +@EqualsAndHashCode(callSuper = false) +public class HolidayInstance extends AbstractEntity implements QueryEntity, UpdateEntity, CreateEntity, DateLastModifiedEntity, AssociationEntity { + Integer id; + DateTime dateAdded; + DateTime dateLastModified; + DateTime endAt; + Holiday holiday; + CorporateUser modifyingUser; + DateTime startAt; +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/bte/rules/ClientCorporationBillRuleset.java b/src/main/java/com/bullhornsdk/data/model/entity/core/bte/rules/ClientCorporationBillRuleset.java new file mode 100644 index 00000000..0db08d16 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/bte/rules/ClientCorporationBillRuleset.java @@ -0,0 +1,31 @@ +package com.bullhornsdk.data.model.entity.core.bte.rules; + +import com.bullhornsdk.data.api.helper.RestOneToManySerializer; +import com.bullhornsdk.data.api.helper.json.DynamicNullValueFilter; +import com.bullhornsdk.data.model.entity.core.standard.ClientCorporation; +import com.bullhornsdk.data.model.entity.core.standard.CorporateUser; +import com.bullhornsdk.data.model.entity.core.type.*; +import com.bullhornsdk.data.model.entity.embedded.OneToMany; +import com.fasterxml.jackson.annotation.JsonFilter; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import lombok.Data; +import lombok.EqualsAndHashCode; +import org.joda.time.DateTime; + +@Data +@JsonFilter(DynamicNullValueFilter.FILTER_NAME) +@EqualsAndHashCode(callSuper = false) +public class ClientCorporationBillRuleset extends AbstractEntity implements QueryEntity, UpdateEntity, CreateEntity, EditHistoryEntity, DateLastModifiedEntity, EffectiveDateEntity, SoftDeleteEntity, AssociationEntity { + Integer id; + ClientCorporation clientCorporation; + DateTime dateAdded; + DateTime dateLastModified; + String effectiveDate; + String effectiveEndDate; + Boolean isDeleted; + CorporateUser owner; + @JsonSerialize(using = RestOneToManySerializer.class) + OneToMany timeLaborEvalRules; + Integer versionID; + OneToMany versions; +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/bte/rules/ClientCorporationBillRulesetVersion.java b/src/main/java/com/bullhornsdk/data/model/entity/core/bte/rules/ClientCorporationBillRulesetVersion.java new file mode 100644 index 00000000..5e582b18 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/bte/rules/ClientCorporationBillRulesetVersion.java @@ -0,0 +1,27 @@ +package com.bullhornsdk.data.model.entity.core.bte.rules; + +import com.bullhornsdk.data.api.helper.RestOneToManySerializer; +import com.bullhornsdk.data.api.helper.json.DynamicNullValueFilter; +import com.bullhornsdk.data.model.entity.core.standard.ClientCorporation; +import com.bullhornsdk.data.model.entity.core.type.*; +import com.bullhornsdk.data.model.entity.embedded.OneToMany; +import com.fasterxml.jackson.annotation.JsonFilter; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import lombok.Data; +import lombok.EqualsAndHashCode; +import org.joda.time.DateTime; + +@Data +@JsonFilter(DynamicNullValueFilter.FILTER_NAME) +@EqualsAndHashCode(callSuper = false) +public class ClientCorporationBillRulesetVersion extends AbstractEntity implements QueryEntity, UpdateEntity, CreateEntity, DateLastModifiedEntity, EffectiveDateEntity, AssociationEntity { + Integer id; + ClientCorporation clientCorporation; + DateTime dateAdded; + DateTime dateLastModified; + String effectiveDate; + String effectiveEndDate; + Boolean isFirst; + @JsonSerialize(using = RestOneToManySerializer.class) + OneToMany timeLaborEvalRules; +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/bte/rules/ClientCorporationPayRuleset.java b/src/main/java/com/bullhornsdk/data/model/entity/core/bte/rules/ClientCorporationPayRuleset.java new file mode 100644 index 00000000..d40bfdad --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/bte/rules/ClientCorporationPayRuleset.java @@ -0,0 +1,31 @@ +package com.bullhornsdk.data.model.entity.core.bte.rules; + +import com.bullhornsdk.data.api.helper.RestOneToManySerializer; +import com.bullhornsdk.data.api.helper.json.DynamicNullValueFilter; +import com.bullhornsdk.data.model.entity.core.standard.ClientCorporation; +import com.bullhornsdk.data.model.entity.core.standard.CorporateUser; +import com.bullhornsdk.data.model.entity.core.type.*; +import com.bullhornsdk.data.model.entity.embedded.OneToMany; +import com.fasterxml.jackson.annotation.JsonFilter; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import lombok.Data; +import lombok.EqualsAndHashCode; +import org.joda.time.DateTime; + +@Data +@JsonFilter(DynamicNullValueFilter.FILTER_NAME) +@EqualsAndHashCode(callSuper = false) +public class ClientCorporationPayRuleset extends AbstractEntity implements QueryEntity, UpdateEntity, CreateEntity, EditHistoryEntity, DateLastModifiedEntity, EffectiveDateEntity, SoftDeleteEntity, AssociationEntity { + Integer id; + ClientCorporation clientCorporation; + DateTime dateAdded; + DateTime dateLastModified; + String effectiveDate; + String effectiveEndDate; + Boolean isDeleted; + CorporateUser owner; + @JsonSerialize(using = RestOneToManySerializer.class) + OneToMany timeLaborEvalRules; + Integer versionID; + OneToMany versions; +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/bte/rules/ClientCorporationPayRulesetVersion.java b/src/main/java/com/bullhornsdk/data/model/entity/core/bte/rules/ClientCorporationPayRulesetVersion.java new file mode 100644 index 00000000..fc4cc0e2 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/bte/rules/ClientCorporationPayRulesetVersion.java @@ -0,0 +1,27 @@ +package com.bullhornsdk.data.model.entity.core.bte.rules; + +import com.bullhornsdk.data.api.helper.RestOneToManySerializer; +import com.bullhornsdk.data.api.helper.json.DynamicNullValueFilter; +import com.bullhornsdk.data.model.entity.core.standard.ClientCorporation; +import com.bullhornsdk.data.model.entity.core.type.*; +import com.bullhornsdk.data.model.entity.embedded.OneToMany; +import com.fasterxml.jackson.annotation.JsonFilter; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import lombok.Data; +import lombok.EqualsAndHashCode; +import org.joda.time.DateTime; + +@Data +@JsonFilter(DynamicNullValueFilter.FILTER_NAME) +@EqualsAndHashCode(callSuper = false) +public class ClientCorporationPayRulesetVersion extends AbstractEntity implements QueryEntity, UpdateEntity, CreateEntity, DateLastModifiedEntity, EffectiveDateEntity, AssociationEntity { + Integer id; + ClientCorporation clientCorporation; + DateTime dateAdded; + DateTime dateLastModified; + String effectiveDate; + String effectiveEndDate; + Boolean isFirst; + @JsonSerialize(using = RestOneToManySerializer.class) + OneToMany timeLaborEvalRules; +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/bte/rules/TimeLaborEvalRule.java b/src/main/java/com/bullhornsdk/data/model/entity/core/bte/rules/TimeLaborEvalRule.java new file mode 100644 index 00000000..cfa5b09c --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/bte/rules/TimeLaborEvalRule.java @@ -0,0 +1,43 @@ +package com.bullhornsdk.data.model.entity.core.bte.rules; + +import com.bullhornsdk.data.api.helper.RestOneToManySerializer; +import com.bullhornsdk.data.api.helper.json.DynamicNullValueFilter; +import com.bullhornsdk.data.model.entity.core.bte.Holiday; +import com.bullhornsdk.data.model.entity.core.paybill.optionslookup.SimplifiedOptionsLookup; +import com.bullhornsdk.data.model.entity.core.standard.CorporateUser; +import com.bullhornsdk.data.model.entity.core.standard.State; +import com.bullhornsdk.data.model.entity.core.type.*; +import com.bullhornsdk.data.model.entity.embedded.OneToMany; +import com.fasterxml.jackson.annotation.JsonFilter; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import lombok.Data; +import lombok.EqualsAndHashCode; +import org.joda.time.DateTime; + +import java.util.Map; + +@Data +@JsonFilter(DynamicNullValueFilter.FILTER_NAME) +@EqualsAndHashCode(callSuper = false) +public class TimeLaborEvalRule extends AbstractEntity implements QueryEntity, UpdateEntity, CreateEntity, AssociationEntity { + Integer id; + DateTime addedAtUtc; + CorporateUser addedByUser; + String description; + @JsonSerialize(using = RestOneToManySerializer.class) + OneToMany holidays; + Boolean isRun; + DateTime lastModifiedAtUtc; + CorporateUser modifyingUser; + String name; + Map parameters; + @JsonSerialize(using = RestOneToManySerializer.class) + OneToMany states; + SimplifiedOptionsLookup timeLaborCalcTypeLookup; + SimplifiedOptionsLookup timeLaborEvalRuleCategoryLookup; + SimplifiedOptionsLookup timeLaborEvalRuleCombineCriteriaLookup; + SimplifiedOptionsLookup timeLaborEvalRuleStatusLookup; + OneToMany timeLaborEvalRuleTemplates; + SimplifiedOptionsLookup timeLaborEvalRuleTypeLookup; + +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/bte/rules/TimeLaborEvalRuleTemplate.java b/src/main/java/com/bullhornsdk/data/model/entity/core/bte/rules/TimeLaborEvalRuleTemplate.java new file mode 100644 index 00000000..69079ad5 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/bte/rules/TimeLaborEvalRuleTemplate.java @@ -0,0 +1,31 @@ +package com.bullhornsdk.data.model.entity.core.bte.rules; + +import com.bullhornsdk.data.api.helper.RestOneToManySerializer; +import com.bullhornsdk.data.api.helper.json.DynamicNullValueFilter; +import com.bullhornsdk.data.model.entity.core.paybill.optionslookup.SimplifiedOptionsLookup; +import com.bullhornsdk.data.model.entity.core.standard.CorporateUser; +import com.bullhornsdk.data.model.entity.core.type.*; +import com.bullhornsdk.data.model.entity.embedded.OneToMany; +import com.fasterxml.jackson.annotation.JsonFilter; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import lombok.Data; +import lombok.EqualsAndHashCode; +import org.joda.time.DateTime; + +@Data +@JsonFilter(DynamicNullValueFilter.FILTER_NAME) +@EqualsAndHashCode(callSuper = false) +public class TimeLaborEvalRuleTemplate extends AbstractEntity implements QueryEntity, UpdateEntity, CreateEntity, EditHistoryEntity, AssociationEntity { + Integer id; + DateTime addedAtUtc; + CorporateUser addedByUser; + String description; + Boolean isDefault; + DateTime lastModifiedAtUtc; + CorporateUser modifyingUser; + String name; + @JsonSerialize(using = RestOneToManySerializer.class) + OneToMany timeLaborEvalRules; + OneToMany timeLaborEvalRulesCalcTypes; + OneToMany timeLaborEvalRulesCategories; +} diff --git a/src/main/java/com/bullhornsdk/data/model/enums/BullhornEntityInfo.java b/src/main/java/com/bullhornsdk/data/model/enums/BullhornEntityInfo.java index b88c3e78..bd5e1d45 100644 --- a/src/main/java/com/bullhornsdk/data/model/enums/BullhornEntityInfo.java +++ b/src/main/java/com/bullhornsdk/data/model/enums/BullhornEntityInfo.java @@ -6,6 +6,9 @@ import java.util.List; import java.util.Map; +import com.bullhornsdk.data.model.entity.core.bte.Holiday; +import com.bullhornsdk.data.model.entity.core.bte.HolidayInstance; +import com.bullhornsdk.data.model.entity.core.bte.rules.*; import com.bullhornsdk.data.model.entity.core.certificationrequirement.CandidateCertificationRequirement; import com.bullhornsdk.data.model.entity.core.certificationrequirement.CertificationRequirement; import com.bullhornsdk.data.model.entity.core.certificationrequirement.JobSubmissionCertificationRequirement; @@ -301,7 +304,7 @@ public enum BullhornEntityInfo { PLACEMENT_SHIFT_SET("PlacementShiftSet", PlacementShiftSet.class, PlacementShiftSetWrapper.class, PlacementShiftSetListWrapper.class, "PlacementShiftSetEditHistory", "PlacementShiftSetEditHistoryFieldChange"), PLACEMENT_SHIFT_SET_VERSION("PlacementShiftSetVersion", PlacementShiftSetVersion.class, PlacementShiftSetVersionWrapper.class, PlacementShiftSetVersionListWrapper.class, "PlacementShiftSetVersionEditHistory", "PlacementShiftSetVersionEditHistoryFieldChange"), - // PayBill Entities + // PayBill Entities LOCATION("Location", Location.class, LocationWrapper.class, LocationListWrapper.class, "LocationEditHistory", "LocationEditHistoryFieldChange"), BILLING_PROFILE("BillingProfile", BillingProfile.class, BillingProfileWrapper.class, BillingProfileListWrapper.class, null, null), GENERAL_LEDGER_ACCOUNT("GeneralLedgerAccount", GeneralLedgerAccount.class, GeneralLedgerAccountWrapper.class, GeneralLedgerAccountListWrapper.class, null, null), @@ -510,8 +513,18 @@ public enum BullhornEntityInfo { EDS_DATA("EdsData", EdsData.class, EdsDataWrapper.class, EdsDataListWrapper.class, null, null), EDS_ENTITY_TYPE("EdsEntityType", EdsEntityType.class, EdsEntityTypeWrapper.class, EdsEntityTypeListWrapper.class, null, null), EDS_ENTITY_TYPE_SCHEMA_VERSION("EdsEntityTypeSchemaVersion", EdsEntityTypeSchemaVersion.class, EdsEntityTypeSchemaVersionWrapper.class, EdsEntityTypeSchemaVersionListWrapper.class, null, null), - EDS_SOURCE_SYSTEM("EdsSourceSystem", EdsSourceSystem.class, EdsSourceSystemWrapper.class, EdsSourceSystemListWrapper.class, null, null); - + EDS_SOURCE_SYSTEM("EdsSourceSystem", EdsSourceSystem.class, EdsSourceSystemWrapper.class, EdsSourceSystemListWrapper.class, null, null), + + // BTE + CLIENT_CORPORATION_BILL_RULESET("ClientCorporationBillRuleset", ClientCorporationBillRuleset.class, ClientCorporationBillRulesetWrapper.class, ClientCorporationBillRulesetListWrapper.class, "ClientCorporationBillRulesetEditHistory", "ClientCorporationBillRulesetEditHistoryFieldChange"), + CLIENT_CORPORATION_BILL_RULESET_VERSION("ClientCorporationBillRulesetVersion", ClientCorporationBillRulesetVersion.class, ClientCorporationBillRulesetVersionWrapper.class, ClientCorporationBillRulesetVersionListWrapper.class, null, null), + CLIENT_CORPORATION_PAY_RULESET("ClientCorporationPayRuleset", ClientCorporationPayRuleset.class, ClientCorporationPayRulesetWrapper.class, ClientCorporationPayRulesetListWrapper.class, "ClientCorporationPayRulesetEditHistory", "ClientCorporationPayRulesetEditHistoryFieldChange"), + CLIENT_CORPORATION_PAY_RULESET_VERSION("ClientCorporationPayRulesetVersion", ClientCorporationPayRulesetVersion.class, ClientCorporationPayRulesetVersionWrapper.class, ClientCorporationPayRulesetVersionListWrapper.class, null, null), + TIME_LABOR_EVAL_RULE("TimeLaborEvalRule", TimeLaborEvalRule.class, TimeLaborEvalRuleWrapper.class, TimeLaborEvalRuleListWrapper.class, null, null), + TIME_LABOR_EVAL_RULE_TEMPLATE("TimeLaborEvalRuleTemplate", TimeLaborEvalRuleTemplate.class, TimeLaborEvalRuleTemplateWrapper.class, TimeLaborEvalRuleTemplateListWrapper.class, null, null), + HOLIDAY("Holiday", Holiday.class, HolidayWrapper.class, HolidayListWrapper.class, null, null), + HOLIDAY_INSTANCE("HolidayInstance", HolidayInstance.class, HolidayInstanceWrapper.class, HolidayInstanceListWrapper.class, null, null), + ; private final String name; private final Class type; diff --git a/src/main/java/com/bullhornsdk/data/model/response/list/ClientCorporationBillRulesetListWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/list/ClientCorporationBillRulesetListWrapper.java new file mode 100644 index 00000000..2f004422 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/list/ClientCorporationBillRulesetListWrapper.java @@ -0,0 +1,11 @@ +package com.bullhornsdk.data.model.response.list; + +import com.bullhornsdk.data.model.entity.core.bte.rules.ClientCorporationBillRuleset; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({"data", "count", "start"}) +public class ClientCorporationBillRulesetListWrapper extends StandardListWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/list/ClientCorporationBillRulesetVersionListWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/list/ClientCorporationBillRulesetVersionListWrapper.java new file mode 100644 index 00000000..f884fc3e --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/list/ClientCorporationBillRulesetVersionListWrapper.java @@ -0,0 +1,11 @@ +package com.bullhornsdk.data.model.response.list; + +import com.bullhornsdk.data.model.entity.core.bte.rules.ClientCorporationBillRulesetVersion; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({"data", "count", "start"}) +public class ClientCorporationBillRulesetVersionListWrapper extends StandardListWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/list/ClientCorporationPayRulesetListWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/list/ClientCorporationPayRulesetListWrapper.java new file mode 100644 index 00000000..e3b9ad70 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/list/ClientCorporationPayRulesetListWrapper.java @@ -0,0 +1,11 @@ +package com.bullhornsdk.data.model.response.list; + +import com.bullhornsdk.data.model.entity.core.bte.rules.ClientCorporationPayRuleset; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({"data", "count", "start"}) +public class ClientCorporationPayRulesetListWrapper extends StandardListWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/list/ClientCorporationPayRulesetVersionListWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/list/ClientCorporationPayRulesetVersionListWrapper.java new file mode 100644 index 00000000..4e6d02a3 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/list/ClientCorporationPayRulesetVersionListWrapper.java @@ -0,0 +1,11 @@ +package com.bullhornsdk.data.model.response.list; + +import com.bullhornsdk.data.model.entity.core.bte.rules.ClientCorporationPayRulesetVersion; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({"data", "count", "start"}) +public class ClientCorporationPayRulesetVersionListWrapper extends StandardListWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/list/HolidayInstanceListWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/list/HolidayInstanceListWrapper.java new file mode 100644 index 00000000..b1769a53 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/list/HolidayInstanceListWrapper.java @@ -0,0 +1,11 @@ +package com.bullhornsdk.data.model.response.list; + +import com.bullhornsdk.data.model.entity.core.bte.HolidayInstance; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({"data", "count", "start"}) +public class HolidayInstanceListWrapper extends StandardListWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/list/HolidayListWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/list/HolidayListWrapper.java new file mode 100644 index 00000000..a1bd8140 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/list/HolidayListWrapper.java @@ -0,0 +1,11 @@ +package com.bullhornsdk.data.model.response.list; + +import com.bullhornsdk.data.model.entity.core.bte.Holiday; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({"data", "count", "start"}) +public class HolidayListWrapper extends StandardListWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/list/TimeLaborEvalRuleListWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/list/TimeLaborEvalRuleListWrapper.java new file mode 100644 index 00000000..234863d6 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/list/TimeLaborEvalRuleListWrapper.java @@ -0,0 +1,11 @@ +package com.bullhornsdk.data.model.response.list; + +import com.bullhornsdk.data.model.entity.core.bte.rules.TimeLaborEvalRule; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({"data", "count", "start"}) +public class TimeLaborEvalRuleListWrapper extends StandardListWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/list/TimeLaborEvalRuleTemplateListWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/list/TimeLaborEvalRuleTemplateListWrapper.java new file mode 100644 index 00000000..2955e1c1 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/list/TimeLaborEvalRuleTemplateListWrapper.java @@ -0,0 +1,11 @@ +package com.bullhornsdk.data.model.response.list; + +import com.bullhornsdk.data.model.entity.core.bte.rules.TimeLaborEvalRuleTemplate; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({"data", "count", "start"}) +public class TimeLaborEvalRuleTemplateListWrapper extends StandardListWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/single/ClientCorporationBillRulesetVersionWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/single/ClientCorporationBillRulesetVersionWrapper.java new file mode 100644 index 00000000..14650336 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/single/ClientCorporationBillRulesetVersionWrapper.java @@ -0,0 +1,6 @@ +package com.bullhornsdk.data.model.response.single; + +import com.bullhornsdk.data.model.entity.core.bte.rules.ClientCorporationBillRulesetVersion; + +public class ClientCorporationBillRulesetVersionWrapper extends StandardWrapper { +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/single/ClientCorporationBillRulesetWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/single/ClientCorporationBillRulesetWrapper.java new file mode 100644 index 00000000..c5afafc2 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/single/ClientCorporationBillRulesetWrapper.java @@ -0,0 +1,6 @@ +package com.bullhornsdk.data.model.response.single; + +import com.bullhornsdk.data.model.entity.core.bte.rules.ClientCorporationBillRuleset; + +public class ClientCorporationBillRulesetWrapper extends StandardWrapper { +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/single/ClientCorporationPayRulesetVersionWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/single/ClientCorporationPayRulesetVersionWrapper.java new file mode 100644 index 00000000..c257cadf --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/single/ClientCorporationPayRulesetVersionWrapper.java @@ -0,0 +1,6 @@ +package com.bullhornsdk.data.model.response.single; + +import com.bullhornsdk.data.model.entity.core.bte.rules.ClientCorporationPayRulesetVersion; + +public class ClientCorporationPayRulesetVersionWrapper extends StandardWrapper { +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/single/ClientCorporationPayRulesetWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/single/ClientCorporationPayRulesetWrapper.java new file mode 100644 index 00000000..3b305bbd --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/single/ClientCorporationPayRulesetWrapper.java @@ -0,0 +1,6 @@ +package com.bullhornsdk.data.model.response.single; + +import com.bullhornsdk.data.model.entity.core.bte.rules.ClientCorporationPayRuleset; + +public class ClientCorporationPayRulesetWrapper extends StandardWrapper { +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/single/HolidayInstanceWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/single/HolidayInstanceWrapper.java new file mode 100644 index 00000000..2216a3ef --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/single/HolidayInstanceWrapper.java @@ -0,0 +1,6 @@ +package com.bullhornsdk.data.model.response.single; + +import com.bullhornsdk.data.model.entity.core.bte.HolidayInstance; + +public class HolidayInstanceWrapper extends StandardWrapper { +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/single/HolidayWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/single/HolidayWrapper.java new file mode 100644 index 00000000..09dc4650 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/single/HolidayWrapper.java @@ -0,0 +1,6 @@ +package com.bullhornsdk.data.model.response.single; + +import com.bullhornsdk.data.model.entity.core.bte.Holiday; + +public class HolidayWrapper extends StandardWrapper { +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/single/TimeLaborEvalRuleTemplateWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/single/TimeLaborEvalRuleTemplateWrapper.java new file mode 100644 index 00000000..3b38bcb9 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/single/TimeLaborEvalRuleTemplateWrapper.java @@ -0,0 +1,6 @@ +package com.bullhornsdk.data.model.response.single; + +import com.bullhornsdk.data.model.entity.core.bte.rules.TimeLaborEvalRuleTemplate; + +public class TimeLaborEvalRuleTemplateWrapper extends StandardWrapper { +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/single/TimeLaborEvalRuleWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/single/TimeLaborEvalRuleWrapper.java new file mode 100644 index 00000000..d4d9a748 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/single/TimeLaborEvalRuleWrapper.java @@ -0,0 +1,6 @@ +package com.bullhornsdk.data.model.response.single; + +import com.bullhornsdk.data.model.entity.core.bte.rules.TimeLaborEvalRule; + +public class TimeLaborEvalRuleWrapper extends StandardWrapper { +} diff --git a/src/test/resources/testdata/rest/bte/holiday-data.txt b/src/test/resources/testdata/rest/bte/holiday-data.txt new file mode 100644 index 00000000..d10394fa --- /dev/null +++ b/src/test/resources/testdata/rest/bte/holiday-data.txt @@ -0,0 +1,667 @@ +{ + "total": 20, + "start": 0, + "count": 20, + "data": [ + { + "id": 1, + "cronExpression": null, + "dateAdded": 1703193008975, + "dateLastModified": 1703193687726, + "description": "New Years hours paid/billed from 3pm NYE to 11pm New Years Day", + "duration": null, + "holidayCategoryLookup": { + "id": 4, + "label": "Company" + }, + "holidayInstances": { + "total": 1, + "data": [] + }, + "holidayStatusLookup": { + "id": 1, + "label": "Active" + }, + "isDeleted": false, + "isRun": false, + "label": "New Years - Starts 3PM NYE to 11PM New Years Day", + "modifyingUser": { + "id": 247367, + "firstName": "Jay", + "lastName": "Zawislak" + }, + "nextOccurrence": null, + "timeLaborEvalRules": { + "total": 1, + "data": [] + } + }, + { + "id": 2, + "cronExpression": null, + "dateAdded": 1703193827676, + "dateLastModified": 1703193827679, + "description": "Christmas hours paid/billed from 3pm Christmas Eve to 11pm Christmas Day", + "duration": null, + "holidayCategoryLookup": { + "id": 4, + "label": "Company" + }, + "holidayInstances": { + "total": 1, + "data": [] + }, + "holidayStatusLookup": { + "id": 1, + "label": "Active" + }, + "isDeleted": false, + "isRun": false, + "label": "Christmas - Starts 3PM Christmas Eve to 11PM Christmas Day", + "modifyingUser": { + "id": 247367, + "firstName": "Jay", + "lastName": "Zawislak" + }, + "nextOccurrence": null, + "timeLaborEvalRules": { + "total": 1, + "data": [] + } + }, + { + "id": 3, + "cronExpression": null, + "dateAdded": 1703193827676, + "dateLastModified": 1703193827679, + "description": "Christmas hours paid/billed from 3pm Christmas Eve to 11pm Christmas Day", + "duration": null, + "holidayCategoryLookup": { + "id": 4, + "label": "Company" + }, + "holidayInstances": { + "total": 1, + "data": [] + }, + "holidayStatusLookup": { + "id": 1, + "label": "Active" + }, + "isDeleted": false, + "isRun": false, + "label": "Christmas - Starts 3PM Christmas Eve to 11PM Christmas Day", + "modifyingUser": { + "id": 247367, + "firstName": "Jay", + "lastName": "Zawislak" + }, + "nextOccurrence": null, + "timeLaborEvalRules": { + "total": 1, + "data": [] + } + }, + { + "id": 4, + "cronExpression": null, + "dateAdded": 1703193827676, + "dateLastModified": 1703193827679, + "description": "Christmas hours paid/billed from 3pm Christmas Eve to 11pm Christmas Day", + "duration": null, + "holidayCategoryLookup": { + "id": 4, + "label": "Company" + }, + "holidayInstances": { + "total": 1, + "data": [] + }, + "holidayStatusLookup": { + "id": 1, + "label": "Active" + }, + "isDeleted": false, + "isRun": false, + "label": "Christmas - Starts 3PM Christmas Eve to 11PM Christmas Day", + "modifyingUser": { + "id": 247367, + "firstName": "Jay", + "lastName": "Zawislak" + }, + "nextOccurrence": null, + "timeLaborEvalRules": { + "total": 1, + "data": [] + } + }, + { + "id": 5, + "cronExpression": null, + "dateAdded": 1703193827676, + "dateLastModified": 1703193827679, + "description": "Christmas hours paid/billed from 3pm Christmas Eve to 11pm Christmas Day", + "duration": null, + "holidayCategoryLookup": { + "id": 4, + "label": "Company" + }, + "holidayInstances": { + "total": 1, + "data": [] + }, + "holidayStatusLookup": { + "id": 1, + "label": "Active" + }, + "isDeleted": false, + "isRun": false, + "label": "Christmas - Starts 3PM Christmas Eve to 11PM Christmas Day", + "modifyingUser": { + "id": 247367, + "firstName": "Jay", + "lastName": "Zawislak" + }, + "nextOccurrence": null, + "timeLaborEvalRules": { + "total": 1, + "data": [] + } + }, + { + "id": 6, + "cronExpression": null, + "dateAdded": 1703193827676, + "dateLastModified": 1703193827679, + "description": "Christmas hours paid/billed from 3pm Christmas Eve to 11pm Christmas Day", + "duration": null, + "holidayCategoryLookup": { + "id": 4, + "label": "Company" + }, + "holidayInstances": { + "total": 1, + "data": [] + }, + "holidayStatusLookup": { + "id": 1, + "label": "Active" + }, + "isDeleted": false, + "isRun": false, + "label": "Christmas - Starts 3PM Christmas Eve to 11PM Christmas Day", + "modifyingUser": { + "id": 247367, + "firstName": "Jay", + "lastName": "Zawislak" + }, + "nextOccurrence": null, + "timeLaborEvalRules": { + "total": 1, + "data": [] + } + }, + { + "id": 7, + "cronExpression": null, + "dateAdded": 1703193827676, + "dateLastModified": 1703193827679, + "description": "Christmas hours paid/billed from 3pm Christmas Eve to 11pm Christmas Day", + "duration": null, + "holidayCategoryLookup": { + "id": 4, + "label": "Company" + }, + "holidayInstances": { + "total": 1, + "data": [] + }, + "holidayStatusLookup": { + "id": 1, + "label": "Active" + }, + "isDeleted": false, + "isRun": false, + "label": "Christmas - Starts 3PM Christmas Eve to 11PM Christmas Day", + "modifyingUser": { + "id": 247367, + "firstName": "Jay", + "lastName": "Zawislak" + }, + "nextOccurrence": null, + "timeLaborEvalRules": { + "total": 1, + "data": [] + } + }, + { + "id": 8, + "cronExpression": null, + "dateAdded": 1703193827676, + "dateLastModified": 1703193827679, + "description": "Christmas hours paid/billed from 3pm Christmas Eve to 11pm Christmas Day", + "duration": null, + "holidayCategoryLookup": { + "id": 4, + "label": "Company" + }, + "holidayInstances": { + "total": 1, + "data": [] + }, + "holidayStatusLookup": { + "id": 1, + "label": "Active" + }, + "isDeleted": false, + "isRun": false, + "label": "Christmas - Starts 3PM Christmas Eve to 11PM Christmas Day", + "modifyingUser": { + "id": 247367, + "firstName": "Jay", + "lastName": "Zawislak" + }, + "nextOccurrence": null, + "timeLaborEvalRules": { + "total": 1, + "data": [] + } + }, + { + "id": 9, + "cronExpression": null, + "dateAdded": 1703193827676, + "dateLastModified": 1703193827679, + "description": "Christmas hours paid/billed from 3pm Christmas Eve to 11pm Christmas Day", + "duration": null, + "holidayCategoryLookup": { + "id": 4, + "label": "Company" + }, + "holidayInstances": { + "total": 1, + "data": [] + }, + "holidayStatusLookup": { + "id": 1, + "label": "Active" + }, + "isDeleted": false, + "isRun": false, + "label": "Christmas - Starts 3PM Christmas Eve to 11PM Christmas Day", + "modifyingUser": { + "id": 247367, + "firstName": "Jay", + "lastName": "Zawislak" + }, + "nextOccurrence": null, + "timeLaborEvalRules": { + "total": 1, + "data": [] + } + }, + { + "id": 10, + "cronExpression": null, + "dateAdded": 1703193827676, + "dateLastModified": 1703193827679, + "description": "Christmas hours paid/billed from 3pm Christmas Eve to 11pm Christmas Day", + "duration": null, + "holidayCategoryLookup": { + "id": 4, + "label": "Company" + }, + "holidayInstances": { + "total": 1, + "data": [] + }, + "holidayStatusLookup": { + "id": 1, + "label": "Active" + }, + "isDeleted": false, + "isRun": false, + "label": "Christmas - Starts 3PM Christmas Eve to 11PM Christmas Day", + "modifyingUser": { + "id": 247367, + "firstName": "Jay", + "lastName": "Zawislak" + }, + "nextOccurrence": null, + "timeLaborEvalRules": { + "total": 1, + "data": [] + } + }, + { + "id": 11, + "cronExpression": null, + "dateAdded": 1703193827676, + "dateLastModified": 1703193827679, + "description": "Christmas hours paid/billed from 3pm Christmas Eve to 11pm Christmas Day", + "duration": null, + "holidayCategoryLookup": { + "id": 4, + "label": "Company" + }, + "holidayInstances": { + "total": 1, + "data": [] + }, + "holidayStatusLookup": { + "id": 1, + "label": "Active" + }, + "isDeleted": false, + "isRun": false, + "label": "Christmas - Starts 3PM Christmas Eve to 11PM Christmas Day", + "modifyingUser": { + "id": 247367, + "firstName": "Jay", + "lastName": "Zawislak" + }, + "nextOccurrence": null, + "timeLaborEvalRules": { + "total": 1, + "data": [] + } + }, + { + "id": 12, + "cronExpression": null, + "dateAdded": 1703193827676, + "dateLastModified": 1703193827679, + "description": "Christmas hours paid/billed from 3pm Christmas Eve to 11pm Christmas Day", + "duration": null, + "holidayCategoryLookup": { + "id": 4, + "label": "Company" + }, + "holidayInstances": { + "total": 1, + "data": [] + }, + "holidayStatusLookup": { + "id": 1, + "label": "Active" + }, + "isDeleted": false, + "isRun": false, + "label": "Christmas - Starts 3PM Christmas Eve to 11PM Christmas Day", + "modifyingUser": { + "id": 247367, + "firstName": "Jay", + "lastName": "Zawislak" + }, + "nextOccurrence": null, + "timeLaborEvalRules": { + "total": 1, + "data": [] + } + }, + { + "id": 13, + "cronExpression": null, + "dateAdded": 1703193827676, + "dateLastModified": 1703193827679, + "description": "Christmas hours paid/billed from 3pm Christmas Eve to 11pm Christmas Day", + "duration": null, + "holidayCategoryLookup": { + "id": 4, + "label": "Company" + }, + "holidayInstances": { + "total": 1, + "data": [] + }, + "holidayStatusLookup": { + "id": 1, + "label": "Active" + }, + "isDeleted": false, + "isRun": false, + "label": "Christmas - Starts 3PM Christmas Eve to 11PM Christmas Day", + "modifyingUser": { + "id": 247367, + "firstName": "Jay", + "lastName": "Zawislak" + }, + "nextOccurrence": null, + "timeLaborEvalRules": { + "total": 1, + "data": [] + } + }, + { + "id": 14, + "cronExpression": null, + "dateAdded": 1703193827676, + "dateLastModified": 1703193827679, + "description": "Christmas hours paid/billed from 3pm Christmas Eve to 11pm Christmas Day", + "duration": null, + "holidayCategoryLookup": { + "id": 4, + "label": "Company" + }, + "holidayInstances": { + "total": 1, + "data": [] + }, + "holidayStatusLookup": { + "id": 1, + "label": "Active" + }, + "isDeleted": false, + "isRun": false, + "label": "Christmas - Starts 3PM Christmas Eve to 11PM Christmas Day", + "modifyingUser": { + "id": 247367, + "firstName": "Jay", + "lastName": "Zawislak" + }, + "nextOccurrence": null, + "timeLaborEvalRules": { + "total": 1, + "data": [] + } + }, + { + "id": 15, + "cronExpression": null, + "dateAdded": 1703193827676, + "dateLastModified": 1703193827679, + "description": "Christmas hours paid/billed from 3pm Christmas Eve to 11pm Christmas Day", + "duration": null, + "holidayCategoryLookup": { + "id": 4, + "label": "Company" + }, + "holidayInstances": { + "total": 1, + "data": [] + }, + "holidayStatusLookup": { + "id": 1, + "label": "Active" + }, + "isDeleted": false, + "isRun": false, + "label": "Christmas - Starts 3PM Christmas Eve to 11PM Christmas Day", + "modifyingUser": { + "id": 247367, + "firstName": "Jay", + "lastName": "Zawislak" + }, + "nextOccurrence": null, + "timeLaborEvalRules": { + "total": 1, + "data": [] + } + }, + { + "id": 16, + "cronExpression": null, + "dateAdded": 1703193827676, + "dateLastModified": 1703193827679, + "description": "Christmas hours paid/billed from 3pm Christmas Eve to 11pm Christmas Day", + "duration": null, + "holidayCategoryLookup": { + "id": 4, + "label": "Company" + }, + "holidayInstances": { + "total": 1, + "data": [] + }, + "holidayStatusLookup": { + "id": 1, + "label": "Active" + }, + "isDeleted": false, + "isRun": false, + "label": "Christmas - Starts 3PM Christmas Eve to 11PM Christmas Day", + "modifyingUser": { + "id": 247367, + "firstName": "Jay", + "lastName": "Zawislak" + }, + "nextOccurrence": null, + "timeLaborEvalRules": { + "total": 1, + "data": [] + } + }, + { + "id": 17, + "cronExpression": null, + "dateAdded": 1703193827676, + "dateLastModified": 1703193827679, + "description": "Christmas hours paid/billed from 3pm Christmas Eve to 11pm Christmas Day", + "duration": null, + "holidayCategoryLookup": { + "id": 4, + "label": "Company" + }, + "holidayInstances": { + "total": 1, + "data": [] + }, + "holidayStatusLookup": { + "id": 1, + "label": "Active" + }, + "isDeleted": false, + "isRun": false, + "label": "Christmas - Starts 3PM Christmas Eve to 11PM Christmas Day", + "modifyingUser": { + "id": 247367, + "firstName": "Jay", + "lastName": "Zawislak" + }, + "nextOccurrence": null, + "timeLaborEvalRules": { + "total": 1, + "data": [] + } + }, + { + "id": 18, + "cronExpression": null, + "dateAdded": 1703193827676, + "dateLastModified": 1703193827679, + "description": "Christmas hours paid/billed from 3pm Christmas Eve to 11pm Christmas Day", + "duration": null, + "holidayCategoryLookup": { + "id": 4, + "label": "Company" + }, + "holidayInstances": { + "total": 1, + "data": [] + }, + "holidayStatusLookup": { + "id": 1, + "label": "Active" + }, + "isDeleted": false, + "isRun": false, + "label": "Christmas - Starts 3PM Christmas Eve to 11PM Christmas Day", + "modifyingUser": { + "id": 247367, + "firstName": "Jay", + "lastName": "Zawislak" + }, + "nextOccurrence": null, + "timeLaborEvalRules": { + "total": 1, + "data": [] + } + }, + { + "id": 19, + "cronExpression": null, + "dateAdded": 1703193827676, + "dateLastModified": 1703193827679, + "description": "Christmas hours paid/billed from 3pm Christmas Eve to 11pm Christmas Day", + "duration": null, + "holidayCategoryLookup": { + "id": 4, + "label": "Company" + }, + "holidayInstances": { + "total": 1, + "data": [] + }, + "holidayStatusLookup": { + "id": 1, + "label": "Active" + }, + "isDeleted": false, + "isRun": false, + "label": "Christmas - Starts 3PM Christmas Eve to 11PM Christmas Day", + "modifyingUser": { + "id": 247367, + "firstName": "Jay", + "lastName": "Zawislak" + }, + "nextOccurrence": null, + "timeLaborEvalRules": { + "total": 1, + "data": [] + } + }, + { + "id": 20, + "cronExpression": null, + "dateAdded": 1703193827676, + "dateLastModified": 1703193827679, + "description": "Christmas hours paid/billed from 3pm Christmas Eve to 11pm Christmas Day", + "duration": null, + "holidayCategoryLookup": { + "id": 4, + "label": "Company" + }, + "holidayInstances": { + "total": 1, + "data": [] + }, + "holidayStatusLookup": { + "id": 1, + "label": "Active" + }, + "isDeleted": false, + "isRun": false, + "label": "Christmas - Starts 3PM Christmas Eve to 11PM Christmas Day", + "modifyingUser": { + "id": 247367, + "firstName": "Jay", + "lastName": "Zawislak" + }, + "nextOccurrence": null, + "timeLaborEvalRules": { + "total": 1, + "data": [] + } + } + ] +} diff --git a/src/test/resources/testdata/rest/bte/holidayinstance-data.txt b/src/test/resources/testdata/rest/bte/holidayinstance-data.txt new file mode 100644 index 00000000..8b76f196 --- /dev/null +++ b/src/test/resources/testdata/rest/bte/holidayinstance-data.txt @@ -0,0 +1,327 @@ +{ + "total": 20, + "start": 0, + "count": 20, + "data": [ + { + "id": 1, + "dateAdded": 1703193565303, + "dateLastModified": 1703193565303, + "endAt": 1704168000000, + "holiday": { + "id": 1, + "label": "New Years - Starts 3PM NYE to 11PM New Years Day" + }, + "modifyingUser": { + "id": 247367, + "firstName": "Jay", + "lastName": "Zawislak" + }, + "startAt": 1704052800000 + }, + { + "id": 2, + "dateAdded": 1703193827776, + "dateLastModified": 1703193827776, + "endAt": 1703563200000, + "holiday": { + "id": 2, + "label": "Christmas - Starts 3PM Christmas Eve to 11PM Christmas Day" + }, + "modifyingUser": { + "id": 247367, + "firstName": "Jay", + "lastName": "Zawislak" + }, + "startAt": 1703448000000 + }, + { + "id": 3, + "dateAdded": 1703193827776, + "dateLastModified": 1703193827776, + "endAt": 1703563200000, + "holiday": { + "id": 2, + "label": "Christmas - Starts 3PM Christmas Eve to 11PM Christmas Day" + }, + "modifyingUser": { + "id": 247367, + "firstName": "Jay", + "lastName": "Zawislak" + }, + "startAt": 1703448000000 + }, + { + "id": 4, + "dateAdded": 1703193827776, + "dateLastModified": 1703193827776, + "endAt": 1703563200000, + "holiday": { + "id": 2, + "label": "Christmas - Starts 3PM Christmas Eve to 11PM Christmas Day" + }, + "modifyingUser": { + "id": 247367, + "firstName": "Jay", + "lastName": "Zawislak" + }, + "startAt": 1703448000000 + }, + { + "id": 5, + "dateAdded": 1703193827776, + "dateLastModified": 1703193827776, + "endAt": 1703563200000, + "holiday": { + "id": 2, + "label": "Christmas - Starts 3PM Christmas Eve to 11PM Christmas Day" + }, + "modifyingUser": { + "id": 247367, + "firstName": "Jay", + "lastName": "Zawislak" + }, + "startAt": 1703448000000 + }, + { + "id": 6, + "dateAdded": 1703193827776, + "dateLastModified": 1703193827776, + "endAt": 1703563200000, + "holiday": { + "id": 2, + "label": "Christmas - Starts 3PM Christmas Eve to 11PM Christmas Day" + }, + "modifyingUser": { + "id": 247367, + "firstName": "Jay", + "lastName": "Zawislak" + }, + "startAt": 1703448000000 + }, + { + "id": 7, + "dateAdded": 1703193827776, + "dateLastModified": 1703193827776, + "endAt": 1703563200000, + "holiday": { + "id": 2, + "label": "Christmas - Starts 3PM Christmas Eve to 11PM Christmas Day" + }, + "modifyingUser": { + "id": 247367, + "firstName": "Jay", + "lastName": "Zawislak" + }, + "startAt": 1703448000000 + }, + { + "id": 8, + "dateAdded": 1703193827776, + "dateLastModified": 1703193827776, + "endAt": 1703563200000, + "holiday": { + "id": 2, + "label": "Christmas - Starts 3PM Christmas Eve to 11PM Christmas Day" + }, + "modifyingUser": { + "id": 247367, + "firstName": "Jay", + "lastName": "Zawislak" + }, + "startAt": 1703448000000 + }, + { + "id": 9, + "dateAdded": 1703193827776, + "dateLastModified": 1703193827776, + "endAt": 1703563200000, + "holiday": { + "id": 2, + "label": "Christmas - Starts 3PM Christmas Eve to 11PM Christmas Day" + }, + "modifyingUser": { + "id": 247367, + "firstName": "Jay", + "lastName": "Zawislak" + }, + "startAt": 1703448000000 + }, + { + "id": 10, + "dateAdded": 1703193827776, + "dateLastModified": 1703193827776, + "endAt": 1703563200000, + "holiday": { + "id": 2, + "label": "Christmas - Starts 3PM Christmas Eve to 11PM Christmas Day" + }, + "modifyingUser": { + "id": 247367, + "firstName": "Jay", + "lastName": "Zawislak" + }, + "startAt": 1703448000000 + }, + { + "id": 11, + "dateAdded": 1703193827776, + "dateLastModified": 1703193827776, + "endAt": 1703563200000, + "holiday": { + "id": 2, + "label": "Christmas - Starts 3PM Christmas Eve to 11PM Christmas Day" + }, + "modifyingUser": { + "id": 247367, + "firstName": "Jay", + "lastName": "Zawislak" + }, + "startAt": 1703448000000 + }, + { + "id": 12, + "dateAdded": 1703193827776, + "dateLastModified": 1703193827776, + "endAt": 1703563200000, + "holiday": { + "id": 2, + "label": "Christmas - Starts 3PM Christmas Eve to 11PM Christmas Day" + }, + "modifyingUser": { + "id": 247367, + "firstName": "Jay", + "lastName": "Zawislak" + }, + "startAt": 1703448000000 + }, + { + "id": 13, + "dateAdded": 1703193827776, + "dateLastModified": 1703193827776, + "endAt": 1703563200000, + "holiday": { + "id": 2, + "label": "Christmas - Starts 3PM Christmas Eve to 11PM Christmas Day" + }, + "modifyingUser": { + "id": 247367, + "firstName": "Jay", + "lastName": "Zawislak" + }, + "startAt": 1703448000000 + }, + { + "id": 14, + "dateAdded": 1703193827776, + "dateLastModified": 1703193827776, + "endAt": 1703563200000, + "holiday": { + "id": 2, + "label": "Christmas - Starts 3PM Christmas Eve to 11PM Christmas Day" + }, + "modifyingUser": { + "id": 247367, + "firstName": "Jay", + "lastName": "Zawislak" + }, + "startAt": 1703448000000 + }, + { + "id": 15, + "dateAdded": 1703193827776, + "dateLastModified": 1703193827776, + "endAt": 1703563200000, + "holiday": { + "id": 2, + "label": "Christmas - Starts 3PM Christmas Eve to 11PM Christmas Day" + }, + "modifyingUser": { + "id": 247367, + "firstName": "Jay", + "lastName": "Zawislak" + }, + "startAt": 1703448000000 + }, + { + "id": 16, + "dateAdded": 1703193827776, + "dateLastModified": 1703193827776, + "endAt": 1703563200000, + "holiday": { + "id": 2, + "label": "Christmas - Starts 3PM Christmas Eve to 11PM Christmas Day" + }, + "modifyingUser": { + "id": 247367, + "firstName": "Jay", + "lastName": "Zawislak" + }, + "startAt": 1703448000000 + }, + { + "id": 17, + "dateAdded": 1703193827776, + "dateLastModified": 1703193827776, + "endAt": 1703563200000, + "holiday": { + "id": 2, + "label": "Christmas - Starts 3PM Christmas Eve to 11PM Christmas Day" + }, + "modifyingUser": { + "id": 247367, + "firstName": "Jay", + "lastName": "Zawislak" + }, + "startAt": 1703448000000 + }, + { + "id": 18, + "dateAdded": 1703193827776, + "dateLastModified": 1703193827776, + "endAt": 1703563200000, + "holiday": { + "id": 2, + "label": "Christmas - Starts 3PM Christmas Eve to 11PM Christmas Day" + }, + "modifyingUser": { + "id": 247367, + "firstName": "Jay", + "lastName": "Zawislak" + }, + "startAt": 1703448000000 + }, + { + "id": 19, + "dateAdded": 1703193827776, + "dateLastModified": 1703193827776, + "endAt": 1703563200000, + "holiday": { + "id": 2, + "label": "Christmas - Starts 3PM Christmas Eve to 11PM Christmas Day" + }, + "modifyingUser": { + "id": 247367, + "firstName": "Jay", + "lastName": "Zawislak" + }, + "startAt": 1703448000000 + }, + { + "id": 20, + "dateAdded": 1703193827776, + "dateLastModified": 1703193827776, + "endAt": 1703563200000, + "holiday": { + "id": 2, + "label": "Christmas - Starts 3PM Christmas Eve to 11PM Christmas Day" + }, + "modifyingUser": { + "id": 247367, + "firstName": "Jay", + "lastName": "Zawislak" + }, + "startAt": 1703448000000 + } + ] +} diff --git a/src/test/resources/testdata/rest/bte/rules/clientcorporationbillruleset-data.txt b/src/test/resources/testdata/rest/bte/rules/clientcorporationbillruleset-data.txt new file mode 100644 index 00000000..4646efff --- /dev/null +++ b/src/test/resources/testdata/rest/bte/rules/clientcorporationbillruleset-data.txt @@ -0,0 +1,527 @@ +{ + "total": 20, + "start": 0, + "count": 20, + "data": [ + { + "id": 20, + "clientCorporation": { + "id": 64183, + "name": "Jake's Test Contract" + }, + "dateAdded": 1708514531980, + "dateLastModified": 1708514532211, + "effectiveDate": "2024-02-22", + "effectiveEndDate": "2999-12-31", + "isDeleted": false, + "owner": { + "id": 696155, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "timeLaborEvalRules": { + "total": 2, + "data": [] + }, + "versionID": 5, + "versions": { + "total": 2, + "data": [] + } + }, + { + "id": 19, + "clientCorporation": { + "id": 64183, + "name": "Jake's Test Contract" + }, + "dateAdded": 1708514531980, + "dateLastModified": 1708514532211, + "effectiveDate": "2024-02-22", + "effectiveEndDate": "2999-12-31", + "isDeleted": false, + "owner": { + "id": 696155, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "timeLaborEvalRules": { + "total": 2, + "data": [] + }, + "versionID": 5, + "versions": { + "total": 2, + "data": [] + } + }, + { + "id": 18, + "clientCorporation": { + "id": 64183, + "name": "Jake's Test Contract" + }, + "dateAdded": 1708514531980, + "dateLastModified": 1708514532211, + "effectiveDate": "2024-02-22", + "effectiveEndDate": "2999-12-31", + "isDeleted": false, + "owner": { + "id": 696155, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "timeLaborEvalRules": { + "total": 2, + "data": [] + }, + "versionID": 5, + "versions": { + "total": 2, + "data": [] + } + }, + { + "id": 17, + "clientCorporation": { + "id": 64183, + "name": "Jake's Test Contract" + }, + "dateAdded": 1708514531980, + "dateLastModified": 1708514532211, + "effectiveDate": "2024-02-22", + "effectiveEndDate": "2999-12-31", + "isDeleted": false, + "owner": { + "id": 696155, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "timeLaborEvalRules": { + "total": 2, + "data": [] + }, + "versionID": 5, + "versions": { + "total": 2, + "data": [] + } + }, + { + "id": 16, + "clientCorporation": { + "id": 64183, + "name": "Jake's Test Contract" + }, + "dateAdded": 1708514531980, + "dateLastModified": 1708514532211, + "effectiveDate": "2024-02-22", + "effectiveEndDate": "2999-12-31", + "isDeleted": false, + "owner": { + "id": 696155, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "timeLaborEvalRules": { + "total": 2, + "data": [] + }, + "versionID": 5, + "versions": { + "total": 2, + "data": [] + } + }, + { + "id": 15, + "clientCorporation": { + "id": 64183, + "name": "Jake's Test Contract" + }, + "dateAdded": 1708514531980, + "dateLastModified": 1708514532211, + "effectiveDate": "2024-02-22", + "effectiveEndDate": "2999-12-31", + "isDeleted": false, + "owner": { + "id": 696155, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "timeLaborEvalRules": { + "total": 2, + "data": [] + }, + "versionID": 5, + "versions": { + "total": 2, + "data": [] + } + }, + { + "id": 14, + "clientCorporation": { + "id": 64183, + "name": "Jake's Test Contract" + }, + "dateAdded": 1708514531980, + "dateLastModified": 1708514532211, + "effectiveDate": "2024-02-22", + "effectiveEndDate": "2999-12-31", + "isDeleted": false, + "owner": { + "id": 696155, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "timeLaborEvalRules": { + "total": 2, + "data": [] + }, + "versionID": 5, + "versions": { + "total": 2, + "data": [] + } + }, + { + "id": 13, + "clientCorporation": { + "id": 64183, + "name": "Jake's Test Contract" + }, + "dateAdded": 1708514531980, + "dateLastModified": 1708514532211, + "effectiveDate": "2024-02-22", + "effectiveEndDate": "2999-12-31", + "isDeleted": false, + "owner": { + "id": 696155, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "timeLaborEvalRules": { + "total": 2, + "data": [] + }, + "versionID": 5, + "versions": { + "total": 2, + "data": [] + } + }, + { + "id": 12, + "clientCorporation": { + "id": 64183, + "name": "Jake's Test Contract" + }, + "dateAdded": 1708514531980, + "dateLastModified": 1708514532211, + "effectiveDate": "2024-02-22", + "effectiveEndDate": "2999-12-31", + "isDeleted": false, + "owner": { + "id": 696155, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "timeLaborEvalRules": { + "total": 2, + "data": [] + }, + "versionID": 5, + "versions": { + "total": 2, + "data": [] + } + }, + { + "id": 11, + "clientCorporation": { + "id": 64183, + "name": "Jake's Test Contract" + }, + "dateAdded": 1708514531980, + "dateLastModified": 1708514532211, + "effectiveDate": "2024-02-22", + "effectiveEndDate": "2999-12-31", + "isDeleted": false, + "owner": { + "id": 696155, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "timeLaborEvalRules": { + "total": 2, + "data": [] + }, + "versionID": 5, + "versions": { + "total": 2, + "data": [] + } + }, + { + "id": 10, + "clientCorporation": { + "id": 64183, + "name": "Jake's Test Contract" + }, + "dateAdded": 1708514531980, + "dateLastModified": 1708514532211, + "effectiveDate": "2024-02-22", + "effectiveEndDate": "2999-12-31", + "isDeleted": false, + "owner": { + "id": 696155, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "timeLaborEvalRules": { + "total": 2, + "data": [] + }, + "versionID": 5, + "versions": { + "total": 2, + "data": [] + } + }, + { + "id": 9, + "clientCorporation": { + "id": 64183, + "name": "Jake's Test Contract" + }, + "dateAdded": 1708514531980, + "dateLastModified": 1708514532211, + "effectiveDate": "2024-02-22", + "effectiveEndDate": "2999-12-31", + "isDeleted": false, + "owner": { + "id": 696155, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "timeLaborEvalRules": { + "total": 2, + "data": [] + }, + "versionID": 5, + "versions": { + "total": 2, + "data": [] + } + }, + { + "id": 8, + "clientCorporation": { + "id": 64183, + "name": "Jake's Test Contract" + }, + "dateAdded": 1708514531980, + "dateLastModified": 1708514532211, + "effectiveDate": "2024-02-22", + "effectiveEndDate": "2999-12-31", + "isDeleted": false, + "owner": { + "id": 696155, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "timeLaborEvalRules": { + "total": 2, + "data": [] + }, + "versionID": 5, + "versions": { + "total": 2, + "data": [] + } + }, + { + "id": 7, + "clientCorporation": { + "id": 64183, + "name": "Jake's Test Contract" + }, + "dateAdded": 1708514531980, + "dateLastModified": 1708514532211, + "effectiveDate": "2024-02-22", + "effectiveEndDate": "2999-12-31", + "isDeleted": false, + "owner": { + "id": 696155, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "timeLaborEvalRules": { + "total": 2, + "data": [] + }, + "versionID": 5, + "versions": { + "total": 2, + "data": [] + } + }, + { + "id": 6, + "clientCorporation": { + "id": 64183, + "name": "Jake's Test Contract" + }, + "dateAdded": 1708514531980, + "dateLastModified": 1708514532211, + "effectiveDate": "2024-02-22", + "effectiveEndDate": "2999-12-31", + "isDeleted": false, + "owner": { + "id": 696155, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "timeLaborEvalRules": { + "total": 2, + "data": [] + }, + "versionID": 5, + "versions": { + "total": 2, + "data": [] + } + }, + { + "id": 5, + "clientCorporation": { + "id": 64183, + "name": "Jake's Test Contract" + }, + "dateAdded": 1708514531980, + "dateLastModified": 1708514532211, + "effectiveDate": "2024-02-22", + "effectiveEndDate": "2999-12-31", + "isDeleted": false, + "owner": { + "id": 696155, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "timeLaborEvalRules": { + "total": 2, + "data": [] + }, + "versionID": 5, + "versions": { + "total": 2, + "data": [] + } + }, + { + "id": 4, + "clientCorporation": { + "id": 64183, + "name": "Jake's Test Contract" + }, + "dateAdded": 1708514531980, + "dateLastModified": 1708514532211, + "effectiveDate": "2024-02-22", + "effectiveEndDate": "2999-12-31", + "isDeleted": false, + "owner": { + "id": 696155, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "timeLaborEvalRules": { + "total": 2, + "data": [] + }, + "versionID": 5, + "versions": { + "total": 2, + "data": [] + } + }, + { + "id": 3, + "clientCorporation": { + "id": 64183, + "name": "Jake's Test Contract" + }, + "dateAdded": 1708514531980, + "dateLastModified": 1708514532211, + "effectiveDate": "2024-02-22", + "effectiveEndDate": "2999-12-31", + "isDeleted": false, + "owner": { + "id": 696155, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "timeLaborEvalRules": { + "total": 2, + "data": [] + }, + "versionID": 5, + "versions": { + "total": 2, + "data": [] + } + }, + { + "id": 2, + "clientCorporation": { + "id": 13688, + "name": "HealthTrust Workforce Solutions, LLC (GRANDPARENT)" + }, + "dateAdded": 1708445021006, + "dateLastModified": 1708514519840, + "effectiveDate": "2024-02-22", + "effectiveEndDate": "2999-12-31", + "isDeleted": false, + "owner": { + "id": 696155, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "timeLaborEvalRules": { + "total": 2, + "data": [] + }, + "versionID": 3, + "versions": { + "total": 1, + "data": [] + } + }, + { + "id": 1, + "clientCorporation": { + "id": 4564, + "name": "Sharp Chula Vista Medical Center" + }, + "dateAdded": 1706214866759, + "dateLastModified": 1706214867057, + "effectiveDate": "2024-01-21", + "effectiveEndDate": "2999-12-31", + "isDeleted": false, + "owner": { + "id": 616656, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "timeLaborEvalRules": { + "total": 3, + "data": [] + }, + "versionID": 2, + "versions": { + "total": 2, + "data": [] + } + } + ] +} diff --git a/src/test/resources/testdata/rest/bte/rules/clientcorporationbillrulesetversion-data.txt b/src/test/resources/testdata/rest/bte/rules/clientcorporationbillrulesetversion-data.txt new file mode 100644 index 00000000..c38699b2 --- /dev/null +++ b/src/test/resources/testdata/rest/bte/rules/clientcorporationbillrulesetversion-data.txt @@ -0,0 +1,247 @@ +{ + "total": 20, + "start": 0, + "count": 20, + "data": [ + { + "id": 1, + "dateAdded": 1696534043759, + "dateLastModified": 1696534507830, + "effectiveDate": "2023-09-03", + "effectiveEndDate": "2024-01-20", + "isFirst": true, + "timeLaborEvalRules": { + "total": 4, + "data": [] + } + }, + { + "id": 2, + "dateAdded": 1706214866759, + "dateLastModified": 1706214867057, + "effectiveDate": "2024-01-21", + "effectiveEndDate": "2999-12-31", + "isFirst": false, + "timeLaborEvalRules": { + "total": 3, + "data": [] + } + }, + { + "id": 3, + "dateAdded": 1708445021006, + "dateLastModified": 1708514519840, + "effectiveDate": "2024-02-22", + "effectiveEndDate": "2999-12-31", + "isFirst": true, + "timeLaborEvalRules": { + "total": 2, + "data": [] + } + }, + { + "id": 4, + "dateAdded": 1708514047430, + "dateLastModified": 1708514359858, + "effectiveDate": "2024-02-20", + "effectiveEndDate": "2024-02-21", + "isFirst": true, + "timeLaborEvalRules": { + "total": 2, + "data": [] + } + }, + { + "id": 5, + "dateAdded": 1708514531980, + "dateLastModified": 1708514532211, + "effectiveDate": "2024-02-22", + "effectiveEndDate": "2999-12-31", + "isFirst": false, + "timeLaborEvalRules": { + "total": 2, + "data": [] + } + }, + { + "id": 6, + "dateAdded": 1708514531980, + "dateLastModified": 1708514532211, + "effectiveDate": "2024-02-22", + "effectiveEndDate": "2999-12-31", + "isFirst": false, + "timeLaborEvalRules": { + "total": 2, + "data": [] + } + }, + { + "id": 7, + "dateAdded": 1708514531980, + "dateLastModified": 1708514532211, + "effectiveDate": "2024-02-22", + "effectiveEndDate": "2999-12-31", + "isFirst": false, + "timeLaborEvalRules": { + "total": 2, + "data": [] + } + }, + { + "id": 8, + "dateAdded": 1708514531980, + "dateLastModified": 1708514532211, + "effectiveDate": "2024-02-22", + "effectiveEndDate": "2999-12-31", + "isFirst": false, + "timeLaborEvalRules": { + "total": 2, + "data": [] + } + }, + { + "id": 9, + "dateAdded": 1708514531980, + "dateLastModified": 1708514532211, + "effectiveDate": "2024-02-22", + "effectiveEndDate": "2999-12-31", + "isFirst": false, + "timeLaborEvalRules": { + "total": 2, + "data": [] + } + }, + { + "id": 10, + "dateAdded": 1708514531980, + "dateLastModified": 1708514532211, + "effectiveDate": "2024-02-22", + "effectiveEndDate": "2999-12-31", + "isFirst": false, + "timeLaborEvalRules": { + "total": 2, + "data": [] + } + }, + { + "id": 11, + "dateAdded": 1708514531980, + "dateLastModified": 1708514532211, + "effectiveDate": "2024-02-22", + "effectiveEndDate": "2999-12-31", + "isFirst": false, + "timeLaborEvalRules": { + "total": 2, + "data": [] + } + }, + { + "id": 12, + "dateAdded": 1708514531980, + "dateLastModified": 1708514532211, + "effectiveDate": "2024-02-22", + "effectiveEndDate": "2999-12-31", + "isFirst": false, + "timeLaborEvalRules": { + "total": 2, + "data": [] + } + }, + { + "id": 13, + "dateAdded": 1708514531980, + "dateLastModified": 1708514532211, + "effectiveDate": "2024-02-22", + "effectiveEndDate": "2999-12-31", + "isFirst": false, + "timeLaborEvalRules": { + "total": 2, + "data": [] + } + }, + { + "id": 14, + "dateAdded": 1708514531980, + "dateLastModified": 1708514532211, + "effectiveDate": "2024-02-22", + "effectiveEndDate": "2999-12-31", + "isFirst": false, + "timeLaborEvalRules": { + "total": 2, + "data": [] + } + }, + { + "id": 15, + "dateAdded": 1708514531980, + "dateLastModified": 1708514532211, + "effectiveDate": "2024-02-22", + "effectiveEndDate": "2999-12-31", + "isFirst": false, + "timeLaborEvalRules": { + "total": 2, + "data": [] + } + }, + { + "id": 16, + "dateAdded": 1708514531980, + "dateLastModified": 1708514532211, + "effectiveDate": "2024-02-22", + "effectiveEndDate": "2999-12-31", + "isFirst": false, + "timeLaborEvalRules": { + "total": 2, + "data": [] + } + }, + { + "id": 17, + "dateAdded": 1708514531980, + "dateLastModified": 1708514532211, + "effectiveDate": "2024-02-22", + "effectiveEndDate": "2999-12-31", + "isFirst": false, + "timeLaborEvalRules": { + "total": 2, + "data": [] + } + }, + { + "id": 18, + "dateAdded": 1708514531980, + "dateLastModified": 1708514532211, + "effectiveDate": "2024-02-22", + "effectiveEndDate": "2999-12-31", + "isFirst": false, + "timeLaborEvalRules": { + "total": 2, + "data": [] + } + }, + { + "id": 19, + "dateAdded": 1708514531980, + "dateLastModified": 1708514532211, + "effectiveDate": "2024-02-22", + "effectiveEndDate": "2999-12-31", + "isFirst": false, + "timeLaborEvalRules": { + "total": 2, + "data": [] + } + }, + { + "id": 20, + "dateAdded": 1708514531980, + "dateLastModified": 1708514532211, + "effectiveDate": "2024-02-22", + "effectiveEndDate": "2999-12-31", + "isFirst": false, + "timeLaborEvalRules": { + "total": 2, + "data": [] + } + } + ] +} diff --git a/src/test/resources/testdata/rest/bte/rules/clientcorporationpayruleset-data.txt b/src/test/resources/testdata/rest/bte/rules/clientcorporationpayruleset-data.txt new file mode 100644 index 00000000..776f79f5 --- /dev/null +++ b/src/test/resources/testdata/rest/bte/rules/clientcorporationpayruleset-data.txt @@ -0,0 +1,527 @@ +{ + "total": 20, + "start": 0, + "count": 20, + "data": [ + { + "id": 1, + "clientCorporation": { + "id": 4564, + "name": "Sharp Chula Vista Medical Center" + }, + "dateAdded": 1706128680034, + "dateLastModified": 1706128680293, + "effectiveDate": "2024-01-21", + "effectiveEndDate": "2999-12-31", + "isDeleted": false, + "owner": { + "id": 616656, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "timeLaborEvalRules": { + "total": 4, + "data": [] + }, + "versionID": 2, + "versions": { + "total": 2, + "data": [] + } + }, + { + "id": 2, + "clientCorporation": { + "id": 64162, + "name": "Villa Healthcare (HQ PARENT) - AHSA - Trio" + }, + "dateAdded": 1706215397993, + "dateLastModified": 1706215398195, + "effectiveDate": "2024-01-25", + "effectiveEndDate": "2999-12-31", + "isDeleted": false, + "owner": { + "id": 250407, + "firstName": "BH", + "lastName": "Support" + }, + "timeLaborEvalRules": { + "total": 5, + "data": [] + }, + "versionID": 3, + "versions": { + "total": 1, + "data": [] + } + }, + { + "id": 3, + "clientCorporation": { + "id": 114187, + "name": "Test Bump" + }, + "dateAdded": 1707217492710, + "dateLastModified": 1707217640873, + "effectiveDate": "2024-02-06", + "effectiveEndDate": "2999-12-31", + "isDeleted": false, + "owner": { + "id": 696155, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "timeLaborEvalRules": { + "total": 1, + "data": [] + }, + "versionID": 4, + "versions": { + "total": 1, + "data": [] + } + }, + { + "id": 4, + "clientCorporation": { + "id": 13688, + "name": "HealthTrust Workforce Solutions, LLC (GRANDPARENT)" + }, + "dateAdded": 1708445004262, + "dateLastModified": 1708514106115, + "effectiveDate": "2024-02-20", + "effectiveEndDate": "2999-12-31", + "isDeleted": false, + "owner": { + "id": 696155, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "timeLaborEvalRules": { + "total": 2, + "data": [] + }, + "versionID": 5, + "versions": { + "total": 2, + "data": [] + } + }, + { + "id": 5, + "clientCorporation": { + "id": 64169, + "name": "TheKey" + }, + "dateAdded": 1708512643393, + "dateLastModified": 1708512643512, + "effectiveDate": "2024-02-21", + "effectiveEndDate": "2999-12-31", + "isDeleted": false, + "owner": { + "id": 696155, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "timeLaborEvalRules": { + "total": 2, + "data": [] + }, + "versionID": 7, + "versions": { + "total": 1, + "data": [] + } + }, + { + "id": 6, + "clientCorporation": { + "id": 64183, + "name": "Jake's Test Contract" + }, + "dateAdded": 1708514047289, + "dateLastModified": 1708516621605, + "effectiveDate": "2024-02-20", + "effectiveEndDate": "2999-12-31", + "isDeleted": false, + "owner": { + "id": 696155, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "timeLaborEvalRules": { + "total": 2, + "data": [] + }, + "versionID": 8, + "versions": { + "total": 1, + "data": [] + } + }, + { + "id": 7, + "clientCorporation": { + "id": 64183, + "name": "Jake's Test Contract" + }, + "dateAdded": 1708514047289, + "dateLastModified": 1708516621605, + "effectiveDate": "2024-02-20", + "effectiveEndDate": "2999-12-31", + "isDeleted": false, + "owner": { + "id": 696155, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "timeLaborEvalRules": { + "total": 2, + "data": [] + }, + "versionID": 8, + "versions": { + "total": 1, + "data": [] + } + }, + { + "id": 8, + "clientCorporation": { + "id": 64183, + "name": "Jake's Test Contract" + }, + "dateAdded": 1708514047289, + "dateLastModified": 1708516621605, + "effectiveDate": "2024-02-20", + "effectiveEndDate": "2999-12-31", + "isDeleted": false, + "owner": { + "id": 696155, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "timeLaborEvalRules": { + "total": 2, + "data": [] + }, + "versionID": 8, + "versions": { + "total": 1, + "data": [] + } + }, + { + "id": 9, + "clientCorporation": { + "id": 64183, + "name": "Jake's Test Contract" + }, + "dateAdded": 1708514047289, + "dateLastModified": 1708516621605, + "effectiveDate": "2024-02-20", + "effectiveEndDate": "2999-12-31", + "isDeleted": false, + "owner": { + "id": 696155, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "timeLaborEvalRules": { + "total": 2, + "data": [] + }, + "versionID": 8, + "versions": { + "total": 1, + "data": [] + } + }, + { + "id": 10, + "clientCorporation": { + "id": 64183, + "name": "Jake's Test Contract" + }, + "dateAdded": 1708514047289, + "dateLastModified": 1708516621605, + "effectiveDate": "2024-02-20", + "effectiveEndDate": "2999-12-31", + "isDeleted": false, + "owner": { + "id": 696155, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "timeLaborEvalRules": { + "total": 2, + "data": [] + }, + "versionID": 8, + "versions": { + "total": 1, + "data": [] + } + }, + { + "id": 11, + "clientCorporation": { + "id": 64183, + "name": "Jake's Test Contract" + }, + "dateAdded": 1708514047289, + "dateLastModified": 1708516621605, + "effectiveDate": "2024-02-20", + "effectiveEndDate": "2999-12-31", + "isDeleted": false, + "owner": { + "id": 696155, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "timeLaborEvalRules": { + "total": 2, + "data": [] + }, + "versionID": 8, + "versions": { + "total": 1, + "data": [] + } + }, + { + "id": 12, + "clientCorporation": { + "id": 64183, + "name": "Jake's Test Contract" + }, + "dateAdded": 1708514047289, + "dateLastModified": 1708516621605, + "effectiveDate": "2024-02-20", + "effectiveEndDate": "2999-12-31", + "isDeleted": false, + "owner": { + "id": 696155, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "timeLaborEvalRules": { + "total": 2, + "data": [] + }, + "versionID": 8, + "versions": { + "total": 1, + "data": [] + } + }, + { + "id": 13, + "clientCorporation": { + "id": 64183, + "name": "Jake's Test Contract" + }, + "dateAdded": 1708514047289, + "dateLastModified": 1708516621605, + "effectiveDate": "2024-02-20", + "effectiveEndDate": "2999-12-31", + "isDeleted": false, + "owner": { + "id": 696155, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "timeLaborEvalRules": { + "total": 2, + "data": [] + }, + "versionID": 8, + "versions": { + "total": 1, + "data": [] + } + }, + { + "id": 14, + "clientCorporation": { + "id": 64183, + "name": "Jake's Test Contract" + }, + "dateAdded": 1708514047289, + "dateLastModified": 1708516621605, + "effectiveDate": "2024-02-20", + "effectiveEndDate": "2999-12-31", + "isDeleted": false, + "owner": { + "id": 696155, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "timeLaborEvalRules": { + "total": 2, + "data": [] + }, + "versionID": 8, + "versions": { + "total": 1, + "data": [] + } + }, + { + "id": 15, + "clientCorporation": { + "id": 64183, + "name": "Jake's Test Contract" + }, + "dateAdded": 1708514047289, + "dateLastModified": 1708516621605, + "effectiveDate": "2024-02-20", + "effectiveEndDate": "2999-12-31", + "isDeleted": false, + "owner": { + "id": 696155, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "timeLaborEvalRules": { + "total": 2, + "data": [] + }, + "versionID": 8, + "versions": { + "total": 1, + "data": [] + } + }, + { + "id": 16, + "clientCorporation": { + "id": 64183, + "name": "Jake's Test Contract" + }, + "dateAdded": 1708514047289, + "dateLastModified": 1708516621605, + "effectiveDate": "2024-02-20", + "effectiveEndDate": "2999-12-31", + "isDeleted": false, + "owner": { + "id": 696155, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "timeLaborEvalRules": { + "total": 2, + "data": [] + }, + "versionID": 8, + "versions": { + "total": 1, + "data": [] + } + }, + { + "id": 17, + "clientCorporation": { + "id": 64183, + "name": "Jake's Test Contract" + }, + "dateAdded": 1708514047289, + "dateLastModified": 1708516621605, + "effectiveDate": "2024-02-20", + "effectiveEndDate": "2999-12-31", + "isDeleted": false, + "owner": { + "id": 696155, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "timeLaborEvalRules": { + "total": 2, + "data": [] + }, + "versionID": 8, + "versions": { + "total": 1, + "data": [] + } + }, + { + "id": 18, + "clientCorporation": { + "id": 64183, + "name": "Jake's Test Contract" + }, + "dateAdded": 1708514047289, + "dateLastModified": 1708516621605, + "effectiveDate": "2024-02-20", + "effectiveEndDate": "2999-12-31", + "isDeleted": false, + "owner": { + "id": 696155, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "timeLaborEvalRules": { + "total": 2, + "data": [] + }, + "versionID": 8, + "versions": { + "total": 1, + "data": [] + } + }, + { + "id": 19, + "clientCorporation": { + "id": 64183, + "name": "Jake's Test Contract" + }, + "dateAdded": 1708514047289, + "dateLastModified": 1708516621605, + "effectiveDate": "2024-02-20", + "effectiveEndDate": "2999-12-31", + "isDeleted": false, + "owner": { + "id": 696155, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "timeLaborEvalRules": { + "total": 2, + "data": [] + }, + "versionID": 8, + "versions": { + "total": 1, + "data": [] + } + }, + { + "id": 20, + "clientCorporation": { + "id": 64183, + "name": "Jake's Test Contract" + }, + "dateAdded": 1708514047289, + "dateLastModified": 1708516621605, + "effectiveDate": "2024-02-20", + "effectiveEndDate": "2999-12-31", + "isDeleted": false, + "owner": { + "id": 696155, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "timeLaborEvalRules": { + "total": 2, + "data": [] + }, + "versionID": 8, + "versions": { + "total": 1, + "data": [] + } + } + ] +} diff --git a/src/test/resources/testdata/rest/bte/rules/clientcorporationpayrulesetversion-data.txt b/src/test/resources/testdata/rest/bte/rules/clientcorporationpayrulesetversion-data.txt new file mode 100644 index 00000000..cf370c4a --- /dev/null +++ b/src/test/resources/testdata/rest/bte/rules/clientcorporationpayrulesetversion-data.txt @@ -0,0 +1,247 @@ +{ + "total": 20, + "start": 0, + "count": 20, + "data": [ + { + "id": 1, + "dateAdded": 1696534021602, + "dateLastModified": 1696534495223, + "effectiveDate": "2023-09-03", + "effectiveEndDate": "2024-01-20", + "isFirst": true, + "timeLaborEvalRules": { + "total": 3, + "data": [] + } + }, + { + "id": 2, + "dateAdded": 1706128680034, + "dateLastModified": 1706128680293, + "effectiveDate": "2024-01-21", + "effectiveEndDate": "2999-12-31", + "isFirst": false, + "timeLaborEvalRules": { + "total": 4, + "data": [] + } + }, + { + "id": 3, + "dateAdded": 1706215397993, + "dateLastModified": 1706215398195, + "effectiveDate": "2024-01-25", + "effectiveEndDate": "2999-12-31", + "isFirst": true, + "timeLaborEvalRules": { + "total": 5, + "data": [] + } + }, + { + "id": 4, + "dateAdded": 1707217492710, + "dateLastModified": 1707217640873, + "effectiveDate": "2024-02-06", + "effectiveEndDate": "2999-12-31", + "isFirst": true, + "timeLaborEvalRules": { + "total": 1, + "data": [] + } + }, + { + "id": 5, + "dateAdded": 1708445004262, + "dateLastModified": 1708514106115, + "effectiveDate": "2024-02-20", + "effectiveEndDate": "2999-12-31", + "isFirst": false, + "timeLaborEvalRules": { + "total": 2, + "data": [] + } + }, + { + "id": 6, + "dateAdded": 1708510203286, + "dateLastModified": 1708510203527, + "effectiveDate": "2024-02-01", + "effectiveEndDate": "2024-02-19", + "isFirst": true, + "timeLaborEvalRules": { + "total": 2, + "data": [] + } + }, + { + "id": 7, + "dateAdded": 1708512643393, + "dateLastModified": 1708512643512, + "effectiveDate": "2024-02-21", + "effectiveEndDate": "2999-12-31", + "isFirst": true, + "timeLaborEvalRules": { + "total": 2, + "data": [] + } + }, + { + "id": 8, + "dateAdded": 1708514047289, + "dateLastModified": 1708516621605, + "effectiveDate": "2024-02-20", + "effectiveEndDate": "2999-12-31", + "isFirst": true, + "timeLaborEvalRules": { + "total": 2, + "data": [] + } + }, + { + "id": 9, + "dateAdded": 1708514047289, + "dateLastModified": 1708516621605, + "effectiveDate": "2024-02-20", + "effectiveEndDate": "2999-12-31", + "isFirst": true, + "timeLaborEvalRules": { + "total": 2, + "data": [] + } + }, + { + "id": 10, + "dateAdded": 1708514047289, + "dateLastModified": 1708516621605, + "effectiveDate": "2024-02-20", + "effectiveEndDate": "2999-12-31", + "isFirst": true, + "timeLaborEvalRules": { + "total": 2, + "data": [] + } + }, + { + "id": 11, + "dateAdded": 1708514047289, + "dateLastModified": 1708516621605, + "effectiveDate": "2024-02-20", + "effectiveEndDate": "2999-12-31", + "isFirst": true, + "timeLaborEvalRules": { + "total": 2, + "data": [] + } + }, + { + "id": 12, + "dateAdded": 1708514047289, + "dateLastModified": 1708516621605, + "effectiveDate": "2024-02-20", + "effectiveEndDate": "2999-12-31", + "isFirst": true, + "timeLaborEvalRules": { + "total": 2, + "data": [] + } + }, + { + "id": 13, + "dateAdded": 1708514047289, + "dateLastModified": 1708516621605, + "effectiveDate": "2024-02-20", + "effectiveEndDate": "2999-12-31", + "isFirst": true, + "timeLaborEvalRules": { + "total": 2, + "data": [] + } + }, + { + "id": 14, + "dateAdded": 1708514047289, + "dateLastModified": 1708516621605, + "effectiveDate": "2024-02-20", + "effectiveEndDate": "2999-12-31", + "isFirst": true, + "timeLaborEvalRules": { + "total": 2, + "data": [] + } + }, + { + "id": 15, + "dateAdded": 1708514047289, + "dateLastModified": 1708516621605, + "effectiveDate": "2024-02-20", + "effectiveEndDate": "2999-12-31", + "isFirst": true, + "timeLaborEvalRules": { + "total": 2, + "data": [] + } + }, + { + "id": 16, + "dateAdded": 1708514047289, + "dateLastModified": 1708516621605, + "effectiveDate": "2024-02-20", + "effectiveEndDate": "2999-12-31", + "isFirst": true, + "timeLaborEvalRules": { + "total": 2, + "data": [] + } + }, + { + "id": 17, + "dateAdded": 1708514047289, + "dateLastModified": 1708516621605, + "effectiveDate": "2024-02-20", + "effectiveEndDate": "2999-12-31", + "isFirst": true, + "timeLaborEvalRules": { + "total": 2, + "data": [] + } + }, + { + "id": 18, + "dateAdded": 1708514047289, + "dateLastModified": 1708516621605, + "effectiveDate": "2024-02-20", + "effectiveEndDate": "2999-12-31", + "isFirst": true, + "timeLaborEvalRules": { + "total": 2, + "data": [] + } + }, + { + "id": 19, + "dateAdded": 1708514047289, + "dateLastModified": 1708516621605, + "effectiveDate": "2024-02-20", + "effectiveEndDate": "2999-12-31", + "isFirst": true, + "timeLaborEvalRules": { + "total": 2, + "data": [] + } + }, + { + "id": 20, + "dateAdded": 1708514047289, + "dateLastModified": 1708516621605, + "effectiveDate": "2024-02-20", + "effectiveEndDate": "2999-12-31", + "isFirst": true, + "timeLaborEvalRules": { + "total": 2, + "data": [] + } + } + ] +} diff --git a/src/test/resources/testdata/rest/bte/rules/timelaborevalrule-data.txt b/src/test/resources/testdata/rest/bte/rules/timelaborevalrule-data.txt new file mode 100644 index 00000000..68eb8546 --- /dev/null +++ b/src/test/resources/testdata/rest/bte/rules/timelaborevalrule-data.txt @@ -0,0 +1,1254 @@ +{ + "total": 20, + "start": 0, + "count": 20, + "data": [ + { + "id": 1, + "addedAtUtc": 1618084806760, + "addedByUser": null, + "description": "Built-in rule", + "holidays": { + "total": 0, + "data": [] + }, + "isRun": true, + "lastModifiedAtUtc": 1618084806760, + "modifyingUser": null, + "name": "Reversal", + "parameters": {}, + "states": { + "total": 0, + "data": [] + }, + "timeLaborCalcTypeLookup": { + "id": 3, + "label": "Pay & Bill" + }, + "timeLaborEvalRuleCategoryLookup": { + "id": 1, + "label": "Threshold" + }, + "timeLaborEvalRuleCombineCriteriaLookup": { + "id": 1, + "label": "Candidate" + }, + "timeLaborEvalRuleStatusLookup": { + "id": 1, + "label": "Active" + }, + "timeLaborEvalRuleTemplates": { + "total": 0, + "data": [] + }, + "timeLaborEvalRuleTypeLookup": { + "id": 106, + "label": "Reversal" + } + }, + { + "id": 2, + "addedAtUtc": 1618084806760, + "addedByUser": null, + "description": "Built-in rule", + "holidays": { + "total": 0, + "data": [] + }, + "isRun": true, + "lastModifiedAtUtc": 1618084806760, + "modifyingUser": null, + "name": "Expense Passthrough", + "parameters": {}, + "states": { + "total": 0, + "data": [] + }, + "timeLaborCalcTypeLookup": { + "id": 3, + "label": "Pay & Bill" + }, + "timeLaborEvalRuleCategoryLookup": { + "id": 5, + "label": "Expenses" + }, + "timeLaborEvalRuleCombineCriteriaLookup": { + "id": 1, + "label": "Candidate" + }, + "timeLaborEvalRuleStatusLookup": { + "id": 1, + "label": "Active" + }, + "timeLaborEvalRuleTemplates": { + "total": 0, + "data": [] + }, + "timeLaborEvalRuleTypeLookup": { + "id": 500, + "label": "Expense Passthrough" + } + }, + { + "id": 3, + "addedAtUtc": 1618084806760, + "addedByUser": null, + "description": "Built-in rule", + "holidays": { + "total": 0, + "data": [] + }, + "isRun": true, + "lastModifiedAtUtc": 1618084806760, + "modifyingUser": null, + "name": "Passthrough", + "parameters": {}, + "states": { + "total": 0, + "data": [] + }, + "timeLaborCalcTypeLookup": { + "id": 3, + "label": "Pay & Bill" + }, + "timeLaborEvalRuleCategoryLookup": { + "id": 1, + "label": "Threshold" + }, + "timeLaborEvalRuleCombineCriteriaLookup": { + "id": 1, + "label": "Candidate" + }, + "timeLaborEvalRuleStatusLookup": { + "id": 1, + "label": "Active" + }, + "timeLaborEvalRuleTemplates": { + "total": 0, + "data": [] + }, + "timeLaborEvalRuleTypeLookup": { + "id": 100, + "label": "Passthrough" + } + }, + { + "id": 4, + "addedAtUtc": 1618084806760, + "addedByUser": null, + "description": "Built-in rule", + "holidays": { + "total": 0, + "data": [] + }, + "isRun": true, + "lastModifiedAtUtc": 1618084806760, + "modifyingUser": null, + "name": "Eliminator", + "parameters": {}, + "states": { + "total": 0, + "data": [] + }, + "timeLaborCalcTypeLookup": { + "id": 3, + "label": "Pay & Bill" + }, + "timeLaborEvalRuleCategoryLookup": { + "id": 1, + "label": "Threshold" + }, + "timeLaborEvalRuleCombineCriteriaLookup": { + "id": 1, + "label": "Candidate" + }, + "timeLaborEvalRuleStatusLookup": { + "id": 1, + "label": "Active" + }, + "timeLaborEvalRuleTemplates": { + "total": 0, + "data": [] + }, + "timeLaborEvalRuleTypeLookup": { + "id": 114, + "label": "Eliminator" + } + }, + { + "id": 5, + "addedAtUtc": 1622923094344, + "addedByUser": null, + "description": "Built-in rule", + "holidays": { + "total": 0, + "data": [] + }, + "isRun": true, + "lastModifiedAtUtc": 1622923094344, + "modifyingUser": null, + "name": "NegligibleQuantity", + "parameters": {}, + "states": { + "total": 0, + "data": [] + }, + "timeLaborCalcTypeLookup": { + "id": 3, + "label": "Pay & Bill" + }, + "timeLaborEvalRuleCategoryLookup": { + "id": 1, + "label": "Threshold" + }, + "timeLaborEvalRuleCombineCriteriaLookup": { + "id": 1, + "label": "Candidate" + }, + "timeLaborEvalRuleStatusLookup": { + "id": 1, + "label": "Active" + }, + "timeLaborEvalRuleTemplates": { + "total": 0, + "data": [] + }, + "timeLaborEvalRuleTypeLookup": { + "id": 117, + "label": "Negligible Quantity" + } + }, + { + "id": 6, + "addedAtUtc": 1644099264361, + "addedByUser": null, + "description": "

Group similar attributions together. Grouping criteria:

  • Work date
  • Sheet
  • Rate
  • Earn code
  • External sheet
  • Version
", + "holidays": { + "total": 0, + "data": [] + }, + "isRun": true, + "lastModifiedAtUtc": 1644099264361, + "modifyingUser": null, + "name": "Summarization", + "parameters": {}, + "states": { + "total": 0, + "data": [] + }, + "timeLaborCalcTypeLookup": { + "id": 3, + "label": "Pay & Bill" + }, + "timeLaborEvalRuleCategoryLookup": { + "id": 1, + "label": "Threshold" + }, + "timeLaborEvalRuleCombineCriteriaLookup": { + "id": 1, + "label": "Candidate" + }, + "timeLaborEvalRuleStatusLookup": { + "id": 1, + "label": "Active" + }, + "timeLaborEvalRuleTemplates": { + "total": 0, + "data": [] + }, + "timeLaborEvalRuleTypeLookup": { + "id": 115, + "label": "Summarization" + } + }, + { + "id": 7, + "addedAtUtc": 1696104927277, + "addedByUser": null, + "description": "Built-in rule", + "holidays": { + "total": 0, + "data": [] + }, + "isRun": true, + "lastModifiedAtUtc": 1696104927277, + "modifyingUser": null, + "name": "Shift Pricing", + "parameters": {}, + "states": { + "total": 0, + "data": [] + }, + "timeLaborCalcTypeLookup": { + "id": 3, + "label": "Pay & Bill" + }, + "timeLaborEvalRuleCategoryLookup": { + "id": 12, + "label": "System" + }, + "timeLaborEvalRuleCombineCriteriaLookup": { + "id": 1, + "label": "Candidate" + }, + "timeLaborEvalRuleStatusLookup": { + "id": 1, + "label": "Active" + }, + "timeLaborEvalRuleTemplates": { + "total": 0, + "data": [] + }, + "timeLaborEvalRuleTypeLookup": { + "id": 1200, + "label": "Shift Pricing" + } + }, + { + "id": 100, + "addedAtUtc": 1694025316409, + "addedByUser": { + "id": 620861, + "firstName": "Bullhorn", + "lastName": "Admin 2022 NPE" + }, + "description": "{\"templateParts\":{\"first\":\"When a time reporter reports time under {source} and the sum of hours is greater than {threshold{ctr}} hours in a period, then all hours after {threshold{ctr}} are attributed to {target}\",\"repeating\":\" until the sum of hours is greater than {threshold{ctr}}.

Hours after {threshold{ctr}} are attributed to {target}\",\"last\":\".\"},\"tags\":{\"source\":{\"_key\":\"{earnCodeLevel}\",\"1\":\"the earn code(s) {sourceEarnCodes}\",\"2\":\"any {sourceEarnCodes} earn code\"},\"target\":{\"_key\":\"{earnCodeLevel}\",\"1\":\"{thresholdTargetEarnCode{ctr}}\",\"2\":\"the corresponding {thresholdTargetEarnCode{ctr}} earn code\"}}}", + "holidays": { + "total": 0, + "data": [] + }, + "isRun": true, + "lastModifiedAtUtc": 1694025316409, + "modifyingUser": { + "id": 620861, + "firstName": "Bullhorn", + "lastName": "Admin 2022 NPE" + }, + "name": "OT after 40", + "parameters": { + "sourceEarnCodes": { + "type": 2, + "ids": [ + 1 + ] + }, + "targetEarnCodeTiers": [ + { + "earnCode": { + "type": 2, + "id": 2 + }, + "threshold": 40.0 + } + ], + "earnCodeLevel": 2, + "isSkippable": false + }, + "states": { + "total": 0, + "data": [] + }, + "timeLaborCalcTypeLookup": { + "id": 3, + "label": "Pay & Bill" + }, + "timeLaborEvalRuleCategoryLookup": { + "id": 1, + "label": "Threshold" + }, + "timeLaborEvalRuleCombineCriteriaLookup": { + "id": 1, + "label": "Candidate" + }, + "timeLaborEvalRuleStatusLookup": { + "id": 1, + "label": "Active" + }, + "timeLaborEvalRuleTemplates": { + "total": 4, + "data": [] + }, + "timeLaborEvalRuleTypeLookup": { + "id": 101, + "label": "Period Threshold" + } + }, + { + "id": 101, + "addedAtUtc": 1694025396338, + "addedByUser": { + "id": 620861, + "firstName": "Bullhorn", + "lastName": "Admin 2022 NPE" + }, + "description": "Description defined in Novo", + "holidays": { + "total": 0, + "data": [] + }, + "isRun": true, + "lastModifiedAtUtc": 1694025822280, + "modifyingUser": { + "id": 620861, + "firstName": "Bullhorn", + "lastName": "Admin 2022 NPE" + }, + "name": "CA OT > 8, DT > 12 Daily", + "parameters": { + "sourceEarnCodes": { + "type": 2, + "ids": [ + 1 + ] + }, + "minWagePremiumAmount": null, + "targetEarnCodeTiers": [ + { + "earnCode": { + "type": 2, + "id": 2 + }, + "threshold": 8.0 + }, + { + "earnCode": { + "type": 2, + "id": 3 + }, + "threshold": 12.0 + } + ], + "earnCodeLevel": 2, + "isSkippable": false + }, + "states": { + "total": 1, + "data": [] + }, + "timeLaborCalcTypeLookup": { + "id": 3, + "label": "Pay & Bill" + }, + "timeLaborEvalRuleCategoryLookup": { + "id": 1, + "label": "Threshold" + }, + "timeLaborEvalRuleCombineCriteriaLookup": { + "id": 1, + "label": "Candidate" + }, + "timeLaborEvalRuleStatusLookup": { + "id": 1, + "label": "Active" + }, + "timeLaborEvalRuleTemplates": { + "total": 9, + "data": [] + }, + "timeLaborEvalRuleTypeLookup": { + "id": 118, + "label": "Daily Threshold" + } + }, + { + "id": 103, + "addedAtUtc": 1694026245160, + "addedByUser": { + "id": 620861, + "firstName": "Bullhorn", + "lastName": "Admin 2022 NPE" + }, + "description": "When a time reporter works seven consecutive days and reports time under earn codes {sourceEarnCodes} in a given workweek, the first 8.0 hours worked on the seventh day are attributed under earn code {targetEarnCode1}, while hours worked on the seventh day in excess of 8.0 are attributed under earn code {targetEarnCode2}", + "holidays": { + "total": 0, + "data": [] + }, + "isRun": true, + "lastModifiedAtUtc": 1694026475904, + "modifyingUser": { + "id": 620861, + "firstName": "Bullhorn", + "lastName": "Admin 2022 NPE" + }, + "name": "CA 7th Day", + "parameters": { + "sourceEarnCodes": { + "type": 1, + "ids": [ + 1, + 11, + 14, + 18, + 21, + 76, + 8 + ] + }, + "targetEarnCode1": { + "type": 1, + "id": 2 + }, + "targetEarnCode2": { + "type": 1, + "id": 3 + }, + "threshold": 8, + "consecutiveDays": 7, + "firstNthDayOnly": false, + "isSkippable": false + }, + "states": { + "total": 1, + "data": [] + }, + "timeLaborCalcTypeLookup": { + "id": 3, + "label": "Pay & Bill" + }, + "timeLaborEvalRuleCategoryLookup": { + "id": 1, + "label": "Threshold" + }, + "timeLaborEvalRuleCombineCriteriaLookup": { + "id": 1, + "label": "Candidate" + }, + "timeLaborEvalRuleStatusLookup": { + "id": 1, + "label": "Active" + }, + "timeLaborEvalRuleTemplates": { + "total": 9, + "data": [] + }, + "timeLaborEvalRuleTypeLookup": { + "id": 104, + "label": "7th Day Threshold" + } + }, + { + "id": 104, + "addedAtUtc": 1694108939991, + "addedByUser": { + "id": 620861, + "firstName": "Bullhorn", + "lastName": "Admin 2022 NPE" + }, + "description": "{\"first\":\"When a time reporter reports time under the earn code(s) {sourceEarnCodes}, then the first {threshold} hours get attributed to {thresholdTargetEarnCode}.\",\"repeating\":\"

The next {threshold} hours will be attributed to {thresholdTargetEarnCode}.\",\"last\":\"

Any remaining hours will be attributed to original {sourceEarnCodes}.\"}", + "holidays": { + "total": 0, + "data": [] + }, + "isRun": true, + "lastModifiedAtUtc": 1694474077670, + "modifyingUser": { + "id": 616656, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "name": "Orientation", + "parameters": { + "sourceEarnCodes": { + "type": 1, + "ids": [ + 11 + ] + }, + "targetEarnCodeTiers": [ + { + "earnCode": { + "type": 1, + "id": 11 + }, + "threshold": 16.0 + }, + { + "earnCode": { + "type": 1, + "id": 95 + }, + "threshold": 24.0 + } + ], + "durationDays": 365, + "isSkippable": false + }, + "states": { + "total": 0, + "data": [] + }, + "timeLaborCalcTypeLookup": { + "id": 3, + "label": "Pay & Bill" + }, + "timeLaborEvalRuleCategoryLookup": { + "id": 10, + "label": "Orientation" + }, + "timeLaborEvalRuleCombineCriteriaLookup": { + "id": 2, + "label": "Placement" + }, + "timeLaborEvalRuleStatusLookup": { + "id": 1, + "label": "Active" + }, + "timeLaborEvalRuleTemplates": { + "total": 3, + "data": [] + }, + "timeLaborEvalRuleTypeLookup": { + "id": 1000, + "label": "Orientation" + } + }, + { + "id": 105, + "addedAtUtc": 1694109246305, + "addedByUser": { + "id": 620861, + "firstName": "Bullhorn", + "lastName": "Admin 2022 NPE" + }, + "description": "The candidate is guaranteed to be paid {guaranteedHours} hours per period. If the reported hours under earn code(s) {sourceEarnCodes} are less than {guaranteedHours}, the difference will be paid as {targetEarnCode}.", + "holidays": { + "total": 0, + "data": [] + }, + "isRun": true, + "lastModifiedAtUtc": 1694109246305, + "modifyingUser": { + "id": 620861, + "firstName": "Bullhorn", + "lastName": "Admin 2022 NPE" + }, + "name": "Guaranteed Hours", + "parameters": { + "sourceEarnCodes": { + "type": 1, + "ids": [ + 1, + 21, + 14 + ] + }, + "targetEarnCode": { + "type": 1, + "id": 1 + }, + "guaranteedHours": 32.0, + "frequency": 1, + "numberOfDays": null, + "isSkippable": false + }, + "states": { + "total": 0, + "data": [] + }, + "timeLaborCalcTypeLookup": { + "id": 3, + "label": "Pay & Bill" + }, + "timeLaborEvalRuleCategoryLookup": { + "id": 9, + "label": "Exempt" + }, + "timeLaborEvalRuleCombineCriteriaLookup": { + "id": 2, + "label": "Placement" + }, + "timeLaborEvalRuleStatusLookup": { + "id": 1, + "label": "Active" + }, + "timeLaborEvalRuleTemplates": { + "total": 7, + "data": [] + }, + "timeLaborEvalRuleTypeLookup": { + "id": 903, + "label": "Guaranteed Hours" + } + }, + { + "id": 107, + "addedAtUtc": 1694443735926, + "addedByUser": { + "id": 616656, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "description": "{\"templateParts\":{\"first\":\"When a time reporter reports time under {source} and the sum of hours is greater than {threshold{ctr}} hours in a period, then all hours after {threshold{ctr}} are attributed to {target}\",\"repeating\":\" until the sum of hours is greater than {threshold{ctr}}.

Hours after {threshold{ctr}} are attributed to {target}\",\"last\":\".\"},\"tags\":{\"source\":{\"_key\":\"{earnCodeLevel}\",\"1\":\"the earn code(s) {sourceEarnCodes}\",\"2\":\"any {sourceEarnCodes} earn code\"},\"target\":{\"_key\":\"{earnCodeLevel}\",\"1\":\"{thresholdTargetEarnCode{ctr}}\",\"2\":\"the corresponding {thresholdTargetEarnCode{ctr}} earn code\"}}}", + "holidays": { + "total": 0, + "data": [] + }, + "isRun": true, + "lastModifiedAtUtc": 1694443859122, + "modifyingUser": { + "id": 616656, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "name": "Weekly over 48", + "parameters": { + "sourceEarnCodes": { + "type": 2, + "ids": [ + 1 + ] + }, + "targetEarnCodeTiers": [ + { + "earnCode": { + "type": 2, + "id": 2 + }, + "threshold": 48.0 + } + ], + "earnCodeLevel": 2, + "isSkippable": false + }, + "states": { + "total": 0, + "data": [] + }, + "timeLaborCalcTypeLookup": { + "id": 2, + "label": "Bill" + }, + "timeLaborEvalRuleCategoryLookup": { + "id": 1, + "label": "Threshold" + }, + "timeLaborEvalRuleCombineCriteriaLookup": { + "id": 1, + "label": "Candidate" + }, + "timeLaborEvalRuleStatusLookup": { + "id": 1, + "label": "Active" + }, + "timeLaborEvalRuleTemplates": { + "total": 1, + "data": [] + }, + "timeLaborEvalRuleTypeLookup": { + "id": 101, + "label": "Period Threshold" + } + }, + { + "id": 108, + "addedAtUtc": 1694443980141, + "addedByUser": { + "id": 616656, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "description": "{\"templateParts\":{\"first\":\"When a time reporter reports time under {source} and the sum of hours is greater than {threshold{ctr}} hours in a period, then all hours after {threshold{ctr}} are attributed to {target}\",\"repeating\":\" until the sum of hours is greater than {threshold{ctr}}.

Hours after {threshold{ctr}} are attributed to {target}\",\"last\":\".\"},\"tags\":{\"source\":{\"_key\":\"{earnCodeLevel}\",\"1\":\"the earn code(s) {sourceEarnCodes}\",\"2\":\"any {sourceEarnCodes} earn code\"},\"target\":{\"_key\":\"{earnCodeLevel}\",\"1\":\"{thresholdTargetEarnCode{ctr}}\",\"2\":\"the corresponding {thresholdTargetEarnCode{ctr}} earn code\"}}}", + "holidays": { + "total": 0, + "data": [] + }, + "isRun": true, + "lastModifiedAtUtc": 1694443980141, + "modifyingUser": { + "id": 616656, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "name": "Weekly ot over 40", + "parameters": { + "sourceEarnCodes": { + "type": 2, + "ids": [ + 1 + ] + }, + "targetEarnCodeTiers": [ + { + "earnCode": { + "type": 2, + "id": 2 + }, + "threshold": 40.0 + } + ], + "earnCodeLevel": 2, + "isSkippable": false + }, + "states": { + "total": 0, + "data": [] + }, + "timeLaborCalcTypeLookup": { + "id": 1, + "label": "Pay" + }, + "timeLaborEvalRuleCategoryLookup": { + "id": 1, + "label": "Threshold" + }, + "timeLaborEvalRuleCombineCriteriaLookup": { + "id": 1, + "label": "Candidate" + }, + "timeLaborEvalRuleStatusLookup": { + "id": 1, + "label": "Active" + }, + "timeLaborEvalRuleTemplates": { + "total": 2, + "data": [] + }, + "timeLaborEvalRuleTypeLookup": { + "id": 101, + "label": "Period Threshold" + } + }, + { + "id": 109, + "addedAtUtc": 1694446638040, + "addedByUser": { + "id": 616656, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "description": "{\"first\":\"When a time reporter reports time under the earn code(s) {sourceEarnCodes}, then the first {threshold} hours get attributed to {thresholdTargetEarnCode}.\",\"repeating\":\"

The next {threshold} hours will be attributed to {thresholdTargetEarnCode}.\",\"last\":\"

Any remaining hours will be attributed to original {sourceEarnCodes}.\"}", + "holidays": { + "total": 0, + "data": [] + }, + "isRun": false, + "lastModifiedAtUtc": 1694473806503, + "modifyingUser": { + "id": 616656, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "name": "Orientation 16 billed over non billable", + "parameters": { + "sourceEarnCodes": { + "type": 1, + "ids": [ + 11 + ] + }, + "targetEarnCodeTiers": [ + { + "earnCode": { + "type": 1, + "id": 11 + }, + "threshold": 16.0 + }, + { + "earnCode": { + "type": 1, + "id": 95 + }, + "threshold": 24.0 + } + ], + "durationDays": 365, + "isSkippable": false + }, + "states": { + "total": 0, + "data": [] + }, + "timeLaborCalcTypeLookup": { + "id": 1, + "label": "Pay" + }, + "timeLaborEvalRuleCategoryLookup": { + "id": 10, + "label": "Orientation" + }, + "timeLaborEvalRuleCombineCriteriaLookup": { + "id": 1, + "label": "Candidate" + }, + "timeLaborEvalRuleStatusLookup": { + "id": 1, + "label": "Active" + }, + "timeLaborEvalRuleTemplates": { + "total": 2, + "data": [] + }, + "timeLaborEvalRuleTypeLookup": { + "id": 1000, + "label": "Orientation" + } + }, + { + "id": 110, + "addedAtUtc": 1694446801399, + "addedByUser": { + "id": 616656, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "description": "{\"first\":\"When a time reporter reports time under the earn code(s) {sourceEarnCodes}, then the first {threshold} hours get attributed to {thresholdTargetEarnCode}.\",\"repeating\":\"

The next {threshold} hours will be attributed to {thresholdTargetEarnCode}.\",\"last\":\"

Any remaining hours will be attributed to original {sourceEarnCodes}.\"}", + "holidays": { + "total": 0, + "data": [] + }, + "isRun": false, + "lastModifiedAtUtc": 1694446801399, + "modifyingUser": { + "id": 616656, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "name": "Orientation Bill up to 16", + "parameters": { + "sourceEarnCodes": { + "type": 1, + "ids": [ + 11 + ] + }, + "targetEarnCodeTiers": [ + { + "earnCode": { + "type": 1, + "id": 11 + }, + "threshold": 16.0 + } + ], + "durationDays": 365, + "isSkippable": false + }, + "states": { + "total": 0, + "data": [] + }, + "timeLaborCalcTypeLookup": { + "id": 2, + "label": "Bill" + }, + "timeLaborEvalRuleCategoryLookup": { + "id": 10, + "label": "Orientation" + }, + "timeLaborEvalRuleCombineCriteriaLookup": { + "id": 2, + "label": "Placement" + }, + "timeLaborEvalRuleStatusLookup": { + "id": 1, + "label": "Active" + }, + "timeLaborEvalRuleTemplates": { + "total": 0, + "data": [] + }, + "timeLaborEvalRuleTypeLookup": { + "id": 1000, + "label": "Orientation" + } + }, + { + "id": 111, + "addedAtUtc": 1694467570802, + "addedByUser": { + "id": 616656, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "description": "{\"first\":\"When a time reporter reports time under the earn code(s) {sourceEarnCodes}, then the first {threshold} hours get attributed to {thresholdTargetEarnCode}.\",\"repeating\":\"

The next {threshold} hours will be attributed to {thresholdTargetEarnCode}.\",\"last\":\"

Any remaining hours will be attributed to original {sourceEarnCodes}.\"}", + "holidays": { + "total": 0, + "data": [] + }, + "isRun": true, + "lastModifiedAtUtc": 1694467570802, + "modifyingUser": { + "id": 616656, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "name": "Orientations 16 hrs Billable Cap", + "parameters": { + "sourceEarnCodes": { + "type": 1, + "ids": [ + 11 + ] + }, + "targetEarnCodeTiers": [ + { + "earnCode": { + "type": 1, + "id": 11 + }, + "threshold": 16.0 + }, + { + "earnCode": { + "type": 1, + "id": 95 + }, + "threshold": 30.0 + } + ], + "durationDays": 365, + "isSkippable": false + }, + "states": { + "total": 0, + "data": [] + }, + "timeLaborCalcTypeLookup": { + "id": 3, + "label": "Pay & Bill" + }, + "timeLaborEvalRuleCategoryLookup": { + "id": 10, + "label": "Orientation" + }, + "timeLaborEvalRuleCombineCriteriaLookup": { + "id": 1, + "label": "Candidate" + }, + "timeLaborEvalRuleStatusLookup": { + "id": 1, + "label": "Active" + }, + "timeLaborEvalRuleTemplates": { + "total": 2, + "data": [] + }, + "timeLaborEvalRuleTypeLookup": { + "id": 1000, + "label": "Orientation" + } + }, + { + "id": 112, + "addedAtUtc": 1694470815360, + "addedByUser": { + "id": 616656, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "description": "{\"templateParts\":{\"first\":\"When a time reporter reports time under {source} and the sum of hours is greater than {threshold{ctr}} hours in a period, then all hours after {threshold{ctr}} are attributed to {target}\",\"repeating\":\" until the sum of hours is greater than {threshold{ctr}}.

Hours after {threshold{ctr}} are attributed to {target}\",\"last\":\".\"},\"tags\":{\"source\":{\"_key\":\"{earnCodeLevel}\",\"1\":\"the earn code(s) {sourceEarnCodes}\",\"2\":\"any {sourceEarnCodes} earn code\"},\"target\":{\"_key\":\"{earnCodeLevel}\",\"1\":\"{thresholdTargetEarnCode{ctr}}\",\"2\":\"the corresponding {thresholdTargetEarnCode{ctr}} earn code\"}}}", + "holidays": { + "total": 0, + "data": [] + }, + "isRun": true, + "lastModifiedAtUtc": 1694470815360, + "modifyingUser": { + "id": 616656, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "name": "Weekly OT Bill 45", + "parameters": { + "sourceEarnCodes": { + "type": 2, + "ids": [ + 1 + ] + }, + "targetEarnCodeTiers": [ + { + "earnCode": { + "type": 2, + "id": 2 + }, + "threshold": 45.0 + } + ], + "earnCodeLevel": 2, + "isSkippable": false + }, + "states": { + "total": 0, + "data": [] + }, + "timeLaborCalcTypeLookup": { + "id": 2, + "label": "Bill" + }, + "timeLaborEvalRuleCategoryLookup": { + "id": 1, + "label": "Threshold" + }, + "timeLaborEvalRuleCombineCriteriaLookup": { + "id": 2, + "label": "Placement" + }, + "timeLaborEvalRuleStatusLookup": { + "id": 1, + "label": "Active" + }, + "timeLaborEvalRuleTemplates": { + "total": 1, + "data": [] + }, + "timeLaborEvalRuleTypeLookup": { + "id": 101, + "label": "Period Threshold" + } + }, + { + "id": 113, + "addedAtUtc": 1696545471629, + "addedByUser": { + "id": 616656, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "description": "{\"templateParts\":{\"first\":\"When a time reporter reports time under {source} and the sum of hours is greater than {threshold{ctr}} hours in a period, then all hours after {threshold{ctr}} are attributed to {target}\",\"repeating\":\" until the sum of hours is greater than {threshold{ctr}}.

Hours after {threshold{ctr}} are attributed to {target}\",\"last\":\".\"},\"tags\":{\"source\":{\"_key\":\"{earnCodeLevel}\",\"1\":\"the earn code(s) {sourceEarnCodes}\",\"2\":\"any {sourceEarnCodes} earn code\"},\"target\":{\"_key\":\"{earnCodeLevel}\",\"1\":\"{thresholdTargetEarnCode{ctr}}\",\"2\":\"the corresponding {thresholdTargetEarnCode{ctr}} earn code\"}}}", + "holidays": { + "total": 0, + "data": [] + }, + "isRun": false, + "lastModifiedAtUtc": 1696545471629, + "modifyingUser": { + "id": 616656, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "name": "Over after 50 Bill", + "parameters": { + "sourceEarnCodes": { + "type": 2, + "ids": [ + 1 + ] + }, + "targetEarnCodeTiers": [ + { + "earnCode": { + "type": 2, + "id": 2 + }, + "threshold": 50.0 + } + ], + "earnCodeLevel": 2, + "isSkippable": false + }, + "states": { + "total": 0, + "data": [] + }, + "timeLaborCalcTypeLookup": { + "id": 2, + "label": "Bill" + }, + "timeLaborEvalRuleCategoryLookup": { + "id": 1, + "label": "Threshold" + }, + "timeLaborEvalRuleCombineCriteriaLookup": { + "id": 2, + "label": "Placement" + }, + "timeLaborEvalRuleStatusLookup": { + "id": 1, + "label": "Active" + }, + "timeLaborEvalRuleTemplates": { + "total": 1, + "data": [] + }, + "timeLaborEvalRuleTypeLookup": { + "id": 101, + "label": "Period Threshold" + } + }, + { + "id": 114, + "addedAtUtc": 1696547153774, + "addedByUser": { + "id": 616656, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "description": "{\"first\":\"When a time reporter reports time under the earn code(s) {sourceEarnCodes}, then the first {threshold} hours get attributed to {thresholdTargetEarnCode}.\",\"repeating\":\"

The next {threshold} hours will be attributed to {thresholdTargetEarnCode}.\",\"last\":\"

Any remaining hours will be attributed to original {sourceEarnCodes}.\"}", + "holidays": { + "total": 0, + "data": [] + }, + "isRun": true, + "lastModifiedAtUtc": 1696547153774, + "modifyingUser": { + "id": 616656, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "name": "Orient 8 non billable 32", + "parameters": { + "sourceEarnCodes": { + "type": 1, + "ids": [ + 11 + ] + }, + "targetEarnCodeTiers": [ + { + "earnCode": { + "type": 1, + "id": 8 + }, + "threshold": 8.0 + }, + { + "earnCode": { + "type": 1, + "id": 11 + }, + "threshold": 32.0 + }, + { + "earnCode": { + "type": 1, + "id": 10 + }, + "threshold": 4.0 + } + ], + "durationDays": 365, + "isSkippable": false + }, + "states": { + "total": 0, + "data": [] + }, + "timeLaborCalcTypeLookup": { + "id": 2, + "label": "Bill" + }, + "timeLaborEvalRuleCategoryLookup": { + "id": 10, + "label": "Orientation" + }, + "timeLaborEvalRuleCombineCriteriaLookup": { + "id": 1, + "label": "Candidate" + }, + "timeLaborEvalRuleStatusLookup": { + "id": 1, + "label": "Active" + }, + "timeLaborEvalRuleTemplates": { + "total": 4, + "data": [] + }, + "timeLaborEvalRuleTypeLookup": { + "id": 1000, + "label": "Orientation" + } + } + ] +} diff --git a/src/test/resources/testdata/rest/bte/rules/timelaborevalruletemplate-data.txt b/src/test/resources/testdata/rest/bte/rules/timelaborevalruletemplate-data.txt new file mode 100644 index 00000000..fb5a7d9d --- /dev/null +++ b/src/test/resources/testdata/rest/bte/rules/timelaborevalruletemplate-data.txt @@ -0,0 +1,607 @@ +{ + "total": 20, + "start": 0, + "count": 20, + "data": [ + { + "id": 1, + "addedAtUtc": 1694012276580, + "addedByUser": { + "id": 620861, + "firstName": "Bullhorn", + "lastName": "Admin 2022 NPE" + }, + "description": "All States OT after 40 and California", + "isDefault": false, + "lastModifiedAtUtc": 1694094918952, + "modifyingUser": { + "id": 620861, + "firstName": "Bullhorn", + "lastName": "Admin 2022 NPE" + }, + "name": "Standard Rule Set", + "timeLaborEvalRules": { + "total": 5, + "data": [] + }, + "timeLaborEvalRulesCalcTypes": { + "total": 1, + "data": [] + }, + "timeLaborEvalRulesCategories": { + "total": 3, + "data": [] + } + }, + { + "id": 2, + "addedAtUtc": 1694429484785, + "addedByUser": { + "id": 616656, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "description": "Bill over 48 hours", + "isDefault": false, + "lastModifiedAtUtc": 1694429542433, + "modifyingUser": { + "id": 616656, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "name": "Bill over 48 hours", + "timeLaborEvalRules": { + "total": 5, + "data": [] + }, + "timeLaborEvalRulesCalcTypes": { + "total": 2, + "data": [] + }, + "timeLaborEvalRulesCategories": { + "total": 3, + "data": [] + } + }, + { + "id": 3, + "addedAtUtc": 1694429724256, + "addedByUser": { + "id": 616656, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "description": "weekly ot over 40", + "isDefault": false, + "lastModifiedAtUtc": 1694429752868, + "modifyingUser": { + "id": 616656, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "name": "weekly ot over 40", + "timeLaborEvalRules": { + "total": 5, + "data": [] + }, + "timeLaborEvalRulesCalcTypes": { + "total": 2, + "data": [] + }, + "timeLaborEvalRulesCategories": { + "total": 3, + "data": [] + } + }, + { + "id": 4, + "addedAtUtc": 1694432713519, + "addedByUser": { + "id": 616656, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "description": "Orientation 16 bill ", + "isDefault": false, + "lastModifiedAtUtc": 1694432713622, + "modifyingUser": { + "id": 616656, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "name": "Orientation 16 bill ", + "timeLaborEvalRules": { + "total": 5, + "data": [] + }, + "timeLaborEvalRulesCalcTypes": { + "total": 2, + "data": [] + }, + "timeLaborEvalRulesCategories": { + "total": 3, + "data": [] + } + }, + { + "id": 5, + "addedAtUtc": 1694432776555, + "addedByUser": { + "id": 616656, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "description": "Weekly OT 40 Orientation bill up to 16", + "isDefault": false, + "lastModifiedAtUtc": 1694433017539, + "modifyingUser": { + "id": 616656, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "name": "Weekly OT 40 Orientation bill up to 16", + "timeLaborEvalRules": { + "total": 5, + "data": [] + }, + "timeLaborEvalRulesCalcTypes": { + "total": 2, + "data": [] + }, + "timeLaborEvalRulesCategories": { + "total": 3, + "data": [] + } + }, + { + "id": 6, + "addedAtUtc": 1694453292400, + "addedByUser": { + "id": 616656, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "description": "Orientations 16 hrs billable cap", + "isDefault": false, + "lastModifiedAtUtc": 1694453292482, + "modifyingUser": { + "id": 616656, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "name": "Orientations 16 hrs billable cap", + "timeLaborEvalRules": { + "total": 5, + "data": [] + }, + "timeLaborEvalRulesCalcTypes": { + "total": 1, + "data": [] + }, + "timeLaborEvalRulesCategories": { + "total": 3, + "data": [] + } + }, + { + "id": 7, + "addedAtUtc": 1694456614516, + "addedByUser": { + "id": 616656, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "description": "Weekly OT BIll > 45", + "isDefault": false, + "lastModifiedAtUtc": 1694456614582, + "modifyingUser": { + "id": 616656, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "name": "Weekly OT BIll > 45", + "timeLaborEvalRules": { + "total": 5, + "data": [] + }, + "timeLaborEvalRulesCalcTypes": { + "total": 2, + "data": [] + }, + "timeLaborEvalRulesCategories": { + "total": 3, + "data": [] + } + }, + { + "id": 8, + "addedAtUtc": 1696531195497, + "addedByUser": { + "id": 616656, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "description": "OT over 50 Bill", + "isDefault": false, + "lastModifiedAtUtc": 1696531195703, + "modifyingUser": { + "id": 616656, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "name": "OT over 50 Bill", + "timeLaborEvalRules": { + "total": 3, + "data": [] + }, + "timeLaborEvalRulesCalcTypes": { + "total": 2, + "data": [] + }, + "timeLaborEvalRulesCategories": { + "total": 1, + "data": [] + } + }, + { + "id": 9, + "addedAtUtc": 1696533597058, + "addedByUser": { + "id": 616656, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "description": "Sharp Chula - All Shifts hours daily Pay Rule", + "isDefault": false, + "lastModifiedAtUtc": 1696533719187, + "modifyingUser": { + "id": 616656, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "name": "Sharp Chula - All Shifts hours daily Pay Rule", + "timeLaborEvalRules": { + "total": 4, + "data": [] + }, + "timeLaborEvalRulesCalcTypes": { + "total": 3, + "data": [] + }, + "timeLaborEvalRulesCategories": { + "total": 2, + "data": [] + } + }, + { + "id": 10, + "addedAtUtc": 1696533693290, + "addedByUser": { + "id": 616656, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "description": "Sharp Chula Shift 8 daily Bill Rule", + "isDefault": false, + "lastModifiedAtUtc": 1696533693381, + "modifyingUser": { + "id": 616656, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "name": "Sharp Chula Shift 8 daily BIll Rule", + "timeLaborEvalRules": { + "total": 2, + "data": [] + }, + "timeLaborEvalRulesCalcTypes": { + "total": 1, + "data": [] + }, + "timeLaborEvalRulesCategories": { + "total": 2, + "data": [] + } + }, + { + "id": 11, + "addedAtUtc": 1696533949619, + "addedByUser": { + "id": 616656, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "description": "Sharp Chula Shift 10 hours Bill Rule", + "isDefault": false, + "lastModifiedAtUtc": 1696533949760, + "modifyingUser": { + "id": 616656, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "name": "Sharp Chula Shift 10 hours Bill Rule", + "timeLaborEvalRules": { + "total": 2, + "data": [] + }, + "timeLaborEvalRulesCalcTypes": { + "total": 1, + "data": [] + }, + "timeLaborEvalRulesCategories": { + "total": 2, + "data": [] + } + }, + { + "id": 12, + "addedAtUtc": 1696533989091, + "addedByUser": { + "id": 616656, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "description": "Sharp Chula Shift 12 hrs BIll Rule", + "isDefault": false, + "lastModifiedAtUtc": 1696533989165, + "modifyingUser": { + "id": 616656, + "firstName": "BH2020", + "lastName": "Admin User NPE" + }, + "name": "Sharp Chula Shift 12 hrs BIll Rule", + "timeLaborEvalRules": { + "total": 2, + "data": [] + }, + "timeLaborEvalRulesCalcTypes": { + "total": 1, + "data": [] + }, + "timeLaborEvalRulesCategories": { + "total": 2, + "data": [] + } + }, + { + "id": 13, + "addedAtUtc": 1701710310740, + "addedByUser": { + "id": 247367, + "firstName": "Jay", + "lastName": "Zawislak" + }, + "description": "Call Back hours worked not counted towards Overtime threshold on Bill Side", + "isDefault": false, + "lastModifiedAtUtc": 1701711492254, + "modifyingUser": { + "id": 247367, + "firstName": "Jay", + "lastName": "Zawislak" + }, + "name": "Call Back Billing Not Counted Towards OT", + "timeLaborEvalRules": { + "total": 1, + "data": [] + }, + "timeLaborEvalRulesCalcTypes": { + "total": 1, + "data": [] + }, + "timeLaborEvalRulesCategories": { + "total": 1, + "data": [] + } + }, + { + "id": 14, + "addedAtUtc": 1701710310740, + "addedByUser": { + "id": 247367, + "firstName": "Jay", + "lastName": "Zawislak" + }, + "description": "Call Back hours worked not counted towards Overtime threshold on Bill Side", + "isDefault": false, + "lastModifiedAtUtc": 1701711492254, + "modifyingUser": { + "id": 247367, + "firstName": "Jay", + "lastName": "Zawislak" + }, + "name": "Call Back Billing Not Counted Towards OT", + "timeLaborEvalRules": { + "total": 1, + "data": [] + }, + "timeLaborEvalRulesCalcTypes": { + "total": 1, + "data": [] + }, + "timeLaborEvalRulesCategories": { + "total": 1, + "data": [] + } + }, + { + "id": 15, + "addedAtUtc": 1701710310740, + "addedByUser": { + "id": 247367, + "firstName": "Jay", + "lastName": "Zawislak" + }, + "description": "Call Back hours worked not counted towards Overtime threshold on Bill Side", + "isDefault": false, + "lastModifiedAtUtc": 1701711492254, + "modifyingUser": { + "id": 247367, + "firstName": "Jay", + "lastName": "Zawislak" + }, + "name": "Call Back Billing Not Counted Towards OT", + "timeLaborEvalRules": { + "total": 1, + "data": [] + }, + "timeLaborEvalRulesCalcTypes": { + "total": 1, + "data": [] + }, + "timeLaborEvalRulesCategories": { + "total": 1, + "data": [] + } + }, + { + "id": 16, + "addedAtUtc": 1701710310740, + "addedByUser": { + "id": 247367, + "firstName": "Jay", + "lastName": "Zawislak" + }, + "description": "Call Back hours worked not counted towards Overtime threshold on Bill Side", + "isDefault": false, + "lastModifiedAtUtc": 1701711492254, + "modifyingUser": { + "id": 247367, + "firstName": "Jay", + "lastName": "Zawislak" + }, + "name": "Call Back Billing Not Counted Towards OT", + "timeLaborEvalRules": { + "total": 1, + "data": [] + }, + "timeLaborEvalRulesCalcTypes": { + "total": 1, + "data": [] + }, + "timeLaborEvalRulesCategories": { + "total": 1, + "data": [] + } + }, + { + "id": 17, + "addedAtUtc": 1701710310740, + "addedByUser": { + "id": 247367, + "firstName": "Jay", + "lastName": "Zawislak" + }, + "description": "Call Back hours worked not counted towards Overtime threshold on Bill Side", + "isDefault": false, + "lastModifiedAtUtc": 1701711492254, + "modifyingUser": { + "id": 247367, + "firstName": "Jay", + "lastName": "Zawislak" + }, + "name": "Call Back Billing Not Counted Towards OT", + "timeLaborEvalRules": { + "total": 1, + "data": [] + }, + "timeLaborEvalRulesCalcTypes": { + "total": 1, + "data": [] + }, + "timeLaborEvalRulesCategories": { + "total": 1, + "data": [] + } + }, + { + "id": 18, + "addedAtUtc": 1701710310740, + "addedByUser": { + "id": 247367, + "firstName": "Jay", + "lastName": "Zawislak" + }, + "description": "Call Back hours worked not counted towards Overtime threshold on Bill Side", + "isDefault": false, + "lastModifiedAtUtc": 1701711492254, + "modifyingUser": { + "id": 247367, + "firstName": "Jay", + "lastName": "Zawislak" + }, + "name": "Call Back Billing Not Counted Towards OT", + "timeLaborEvalRules": { + "total": 1, + "data": [] + }, + "timeLaborEvalRulesCalcTypes": { + "total": 1, + "data": [] + }, + "timeLaborEvalRulesCategories": { + "total": 1, + "data": [] + } + }, + { + "id": 19, + "addedAtUtc": 1701710310740, + "addedByUser": { + "id": 247367, + "firstName": "Jay", + "lastName": "Zawislak" + }, + "description": "Call Back hours worked not counted towards Overtime threshold on Bill Side", + "isDefault": false, + "lastModifiedAtUtc": 1701711492254, + "modifyingUser": { + "id": 247367, + "firstName": "Jay", + "lastName": "Zawislak" + }, + "name": "Call Back Billing Not Counted Towards OT", + "timeLaborEvalRules": { + "total": 1, + "data": [] + }, + "timeLaborEvalRulesCalcTypes": { + "total": 1, + "data": [] + }, + "timeLaborEvalRulesCategories": { + "total": 1, + "data": [] + } + }, + { + "id": 20, + "addedAtUtc": 1701710310740, + "addedByUser": { + "id": 247367, + "firstName": "Jay", + "lastName": "Zawislak" + }, + "description": "Call Back hours worked not counted towards Overtime threshold on Bill Side", + "isDefault": false, + "lastModifiedAtUtc": 1701711492254, + "modifyingUser": { + "id": 247367, + "firstName": "Jay", + "lastName": "Zawislak" + }, + "name": "Call Back Billing Not Counted Towards OT", + "timeLaborEvalRules": { + "total": 1, + "data": [] + }, + "timeLaborEvalRulesCalcTypes": { + "total": 1, + "data": [] + }, + "timeLaborEvalRulesCategories": { + "total": 1, + "data": [] + } + } + ] +} diff --git a/src/test/resources/testdata/rest/meta/bte/holiday-meta-data.txt b/src/test/resources/testdata/rest/meta/bte/holiday-meta-data.txt new file mode 100644 index 00000000..ba1163e4 --- /dev/null +++ b/src/test/resources/testdata/rest/meta/bte/holiday-meta-data.txt @@ -0,0 +1,536 @@ +{ + "entity": "Holiday", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/meta/Holiday?fields=*", + "label": "Holiday", + "dateLastModified": "1708444962046", + "layouts": [ + { + "name": "ListExpandedLeft", + "label": "List - Expanded Left", + "enabled": true + }, + { + "name": "ListRow", + "label": "List - Row", + "enabled": true + } + ], + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer", + "optional": false, + "label": "ID" + }, + { + "name": "cronExpression", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "dataSpecialization": "SYSTEM", + "confidential": false, + "optional": true, + "label": "Cron Expression", + "required": false, + "readOnly": true, + "multiValue": false, + "hideFromSearch": false, + "sortOrder": 70, + "hint": "", + "description": "", + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "dateAdded", + "type": "SCALAR", + "dataType": "Timestamp", + "dataSpecialization": "SYSTEM", + "confidential": false, + "optional": false, + "label": "Date Added", + "required": false, + "readOnly": true, + "multiValue": false, + "hideFromSearch": false, + "sortOrder": 50, + "hint": "", + "description": "", + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "dateLastModified", + "type": "SCALAR", + "dataType": "Timestamp", + "dataSpecialization": "SYSTEM", + "confidential": false, + "optional": false, + "label": "Date Last Modified", + "required": false, + "readOnly": true, + "multiValue": false, + "hideFromSearch": false, + "sortOrder": 60, + "hint": "", + "description": "", + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "description", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "optional": false, + "label": "Description", + "required": true, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "sortOrder": 90, + "hint": "", + "description": "", + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "duration", + "type": "SCALAR", + "dataType": "Integer", + "dataSpecialization": "SYSTEM", + "confidential": false, + "optional": true, + "label": "Duration", + "required": false, + "readOnly": true, + "multiValue": false, + "hideFromSearch": false, + "sortOrder": 80, + "hint": "", + "description": "", + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "holidayCategoryLookup", + "type": "TO_ONE", + "dataType": "SpecializedOptionsLookup", + "confidential": false, + "optional": true, + "label": "Category", + "required": false, + "readOnly": false, + "multiValue": false, + "inputType": "SELECT", + "optionsType": "HolidayCategoryLookup", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/options/HolidayCategoryLookup", + "options": [ + { + "value": 1, + "label": "Federal", + "readOnly": false + }, + { + "value": 2, + "label": "State", + "readOnly": false + }, + { + "value": 3, + "label": "Regional", + "readOnly": false + }, + { + "value": 4, + "label": "Company", + "readOnly": false + } + ], + "hideFromSearch": false, + "sortOrder": 100, + "hint": "", + "description": "", + "systemRequired": false, + "shouldAddCustomEntityLabel": false, + "associatedEntity": { + "entity": "HolidayCategoryLookup", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/meta/HolidayCategoryLookup?fields=*", + "label": "Holiday Category Lookup", + "dateLastModified": "1708444967091", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer", + "optional": false, + "label": "ID" + }, + { + "name": "label", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "optional": true, + "label": "Label", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false + } + ] + } + }, + { + "name": "holidayInstances", + "type": "TO_MANY", + "confidential": false, + "optional": true, + "label": "Holiday Instances", + "required": false, + "readOnly": true, + "multiValue": false, + "optionsType": "HolidayInstance", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/options/HolidayInstance", + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false, + "associatedEntity": { + "entity": "HolidayInstance", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/meta/HolidayInstance?fields=*", + "label": "Holiday Occurrence", + "dateLastModified": "1708547788163", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer", + "optional": false, + "label": "ID" + } + ] + } + }, + { + "name": "holidayStatusLookup", + "type": "TO_ONE", + "dataType": "SimplifiedOptionsLookup", + "confidential": false, + "optional": false, + "label": "Status", + "required": true, + "readOnly": false, + "multiValue": false, + "inputType": "TILES", + "optionsType": "HolidayStatusLookup", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/options/HolidayStatusLookup", + "options": [ + { + "value": 1, + "label": "Active", + "readOnly": false + }, + { + "value": 2, + "label": "Inactive", + "readOnly": false + } + ], + "defaultValue": 1, + "hideFromSearch": false, + "sortOrder": 30, + "hint": "", + "description": "", + "systemRequired": false, + "shouldAddCustomEntityLabel": false, + "associatedEntity": { + "entity": "HolidayStatusLookup", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/meta/HolidayStatusLookup?fields=*", + "label": "Holiday Status Lookup", + "dateLastModified": "1708547788188", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer", + "optional": false, + "label": "ID" + }, + { + "name": "label", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "optional": true, + "label": "Label", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false + } + ] + } + }, + { + "name": "isDeleted", + "type": "SCALAR", + "dataType": "Boolean", + "dataSpecialization": "SYSTEM", + "confidential": false, + "optional": false, + "label": "Is Deleted", + "required": false, + "readOnly": true, + "multiValue": false, + "hideFromSearch": false, + "sortOrder": 40, + "hint": "", + "description": "", + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "isRun", + "type": "SCALAR", + "dataType": "Boolean", + "dataSpecialization": "SYSTEM", + "confidential": false, + "optional": false, + "label": "Display Name", + "required": false, + "readOnly": true, + "multiValue": false, + "hideFromSearch": false, + "sortOrder": 130, + "hint": "", + "description": "", + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "label", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "optional": false, + "label": "Holiday Name", + "required": true, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "sortOrder": 20, + "hint": "", + "description": "", + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "modifyingUser", + "type": "TO_ONE", + "dataSpecialization": "SYSTEM", + "confidential": false, + "optional": true, + "label": "Modified By User", + "required": false, + "readOnly": true, + "multiValue": false, + "optionsType": "CorporateUser", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/options/CorporateUser", + "hideFromSearch": false, + "sortOrder": 110, + "hint": "", + "description": "", + "systemRequired": false, + "shouldAddCustomEntityLabel": false, + "associatedEntity": { + "entity": "CorporateUser", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/meta/CorporateUser?fields=*", + "label": "Corporate User", + "dateLastModified": "1708054449646", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer", + "optional": false, + "label": "ID" + }, + { + "name": "firstName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "optional": true, + "label": "First Name", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "lastName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "optional": true, + "label": "Last Name", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false + } + ] + } + }, + { + "name": "nextOccurrence", + "type": "SCALAR", + "dataType": "Timestamp", + "dataSpecialization": "SYSTEM", + "confidential": false, + "optional": true, + "label": "Next Occurrence", + "required": false, + "readOnly": true, + "multiValue": false, + "hideFromSearch": false, + "sortOrder": 120, + "hint": "", + "description": "", + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "timeLaborEvalRules", + "type": "TO_MANY", + "dataSpecialization": "SYSTEM", + "confidential": false, + "optional": true, + "label": "Time Labor Eval Rules", + "required": false, + "readOnly": true, + "multiValue": false, + "optionsType": "TimeLaborEvalRule", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/options/TimeLaborEvalRule", + "hideFromSearch": false, + "sortOrder": 140, + "hint": "", + "description": "", + "systemRequired": false, + "shouldAddCustomEntityLabel": false, + "associatedEntity": { + "entity": "TimeLaborEvalRule", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/meta/TimeLaborEvalRule?fields=*", + "label": "Time & Labor Rule", + "dateLastModified": "1708435729237", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer", + "optional": false, + "label": "ID" + }, + { + "name": "name", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "dataSpecialization": "SYSTEM", + "confidential": false, + "optional": false, + "label": "Name", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "sortOrder": 20, + "hint": "", + "description": "", + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "states", + "type": "TO_MANY", + "confidential": false, + "optional": true, + "label": "Applicable States", + "required": false, + "readOnly": true, + "multiValue": true, + "inputType": "SELECT", + "optionsType": "NorthAmericaState", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/options/NorthAmericaState", + "hideFromSearch": false, + "sortOrder": 130, + "hint": "", + "description": "", + "systemRequired": false, + "shouldAddCustomEntityLabel": false, + "associatedEntity": { + "entity": "State", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/meta/State?fields=*", + "label": "State", + "dateLastModified": "1708079181969", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer", + "optional": false, + "label": "ID" + }, + { + "name": "name", + "type": "SCALAR", + "dataType": "String", + "maxLength": 255, + "confidential": false, + "optional": false, + "label": "Name", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "code", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "optional": true, + "label": "Code", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false + } + ] + } + } + ] + } + } + ] +} diff --git a/src/test/resources/testdata/rest/meta/bte/holidayinstance-meta-data.txt b/src/test/resources/testdata/rest/meta/bte/holidayinstance-meta-data.txt new file mode 100644 index 00000000..8c9c4a28 --- /dev/null +++ b/src/test/resources/testdata/rest/meta/bte/holidayinstance-meta-data.txt @@ -0,0 +1,203 @@ +{ + "entity": "HolidayInstance", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/meta/HolidayInstance?fields=*", + "label": "Holiday Occurrence", + "dateLastModified": "1708547788163", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer", + "optional": false, + "label": "ID" + }, + { + "name": "dateAdded", + "type": "SCALAR", + "dataType": "Timestamp", + "dataSpecialization": "SYSTEM", + "confidential": false, + "optional": false, + "label": "Date Added", + "required": false, + "readOnly": true, + "multiValue": false, + "hideFromSearch": false, + "sortOrder": 60, + "hint": "", + "description": "", + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "dateLastModified", + "type": "SCALAR", + "dataType": "Timestamp", + "dataSpecialization": "SYSTEM", + "confidential": false, + "optional": false, + "label": "Date Last Modified", + "required": false, + "readOnly": true, + "multiValue": false, + "hideFromSearch": false, + "sortOrder": 70, + "hint": "", + "description": "", + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "endAt", + "type": "SCALAR", + "dataType": "Timestamp", + "dataSpecialization": "SYSTEM", + "confidential": false, + "optional": false, + "label": "End Date", + "required": false, + "readOnly": true, + "multiValue": false, + "hideFromSearch": false, + "sortOrder": 50, + "hint": "", + "description": "", + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "holiday", + "type": "TO_ONE", + "dataSpecialization": "SYSTEM", + "confidential": false, + "optional": false, + "label": "Holiday", + "required": false, + "readOnly": true, + "multiValue": false, + "optionsType": "Holiday", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/options/Holiday", + "hideFromSearch": false, + "sortOrder": 20, + "hint": "", + "description": "", + "systemRequired": false, + "shouldAddCustomEntityLabel": false, + "associatedEntity": { + "entity": "Holiday", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/meta/Holiday?fields=*", + "label": "Holiday", + "dateLastModified": "1708444962046", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer", + "optional": false, + "label": "ID" + }, + { + "name": "label", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "optional": false, + "label": "Holiday Name", + "required": true, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "sortOrder": 20, + "hint": "", + "description": "", + "systemRequired": false, + "shouldAddCustomEntityLabel": false + } + ] + } + }, + { + "name": "modifyingUser", + "type": "TO_ONE", + "dataSpecialization": "SYSTEM", + "confidential": false, + "optional": true, + "label": "Modified By User", + "required": false, + "readOnly": true, + "multiValue": false, + "optionsType": "CorporateUser", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/options/CorporateUser", + "hideFromSearch": false, + "sortOrder": 80, + "hint": "", + "description": "", + "systemRequired": false, + "shouldAddCustomEntityLabel": false, + "associatedEntity": { + "entity": "CorporateUser", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/meta/CorporateUser?fields=*", + "label": "Corporate User", + "dateLastModified": "1708054449646", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer", + "optional": false, + "label": "ID" + }, + { + "name": "firstName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "optional": true, + "label": "First Name", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "lastName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "optional": true, + "label": "Last Name", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false + } + ] + } + }, + { + "name": "startAt", + "type": "SCALAR", + "dataType": "Timestamp", + "dataSpecialization": "SYSTEM", + "confidential": false, + "optional": false, + "label": "Start Date", + "required": false, + "readOnly": true, + "multiValue": false, + "hideFromSearch": false, + "sortOrder": 40, + "hint": "", + "description": "", + "systemRequired": false, + "shouldAddCustomEntityLabel": false + } + ] +} diff --git a/src/test/resources/testdata/rest/meta/bte/rules/clientcorporationbillruleset-meta-data.txt b/src/test/resources/testdata/rest/meta/bte/rules/clientcorporationbillruleset-meta-data.txt new file mode 100644 index 00000000..d6a844d2 --- /dev/null +++ b/src/test/resources/testdata/rest/meta/bte/rules/clientcorporationbillruleset-meta-data.txt @@ -0,0 +1,350 @@ +{ + "entity": "ClientCorporationBillRuleset", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/meta/ClientCorporationBillRuleset?fields=*", + "label": "Client Corporation Bill Ruleset", + "dateLastModified": "1708359184128", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer", + "optional": false, + "label": "ID" + }, + { + "name": "clientCorporation", + "type": "TO_ONE", + "confidential": false, + "optional": false, + "label": "Client Corporation", + "required": false, + "readOnly": false, + "multiValue": false, + "optionsType": "ClientCorporation", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/options/ClientCorporation", + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false, + "associatedEntity": { + "entity": "ClientCorporation", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/meta/ClientCorporation?fields=*", + "label": "Facilities", + "dateLastModified": "1708054271830", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer", + "optional": false, + "label": "ID" + }, + { + "name": "name", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "optional": false, + "label": "Facility Name", + "required": true, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "sortOrder": 10, + "hint": "", + "description": "", + "systemRequired": false, + "shouldAddCustomEntityLabel": false + } + ] + } + }, + { + "name": "dateAdded", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "optional": false, + "label": "Date Added", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "dateLastModified", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "optional": false, + "label": "Date Last Modified", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "effectiveDate", + "type": "SCALAR", + "dataType": "Date", + "confidential": false, + "optional": false, + "label": "Effective Date", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "effectiveEndDate", + "type": "SCALAR", + "dataType": "Date", + "confidential": false, + "optional": true, + "label": "Effective End Date", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "isDeleted", + "type": "SCALAR", + "dataType": "Boolean", + "confidential": false, + "optional": false, + "label": "Is Deleted", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "owner", + "type": "TO_ONE", + "confidential": false, + "optional": false, + "label": "Owner", + "required": false, + "readOnly": false, + "multiValue": false, + "optionsType": "CorporateUser", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/options/CorporateUser", + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false, + "associatedEntity": { + "entity": "CorporateUser", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/meta/CorporateUser?fields=*", + "label": "Corporate User", + "dateLastModified": "1708054449646", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer", + "optional": false, + "label": "ID" + }, + { + "name": "firstName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "optional": true, + "label": "First Name", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "lastName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "optional": true, + "label": "Last Name", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false + } + ] + } + }, + { + "name": "timeLaborEvalRules", + "type": "TO_MANY", + "confidential": false, + "optional": true, + "label": "Time Labor Eval Rules", + "required": false, + "readOnly": false, + "multiValue": false, + "optionsType": "TimeLaborEvalRule", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/options/TimeLaborEvalRule", + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false, + "associatedEntity": { + "entity": "TimeLaborEvalRule", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/meta/TimeLaborEvalRule?fields=*", + "label": "Time & Labor Rule", + "dateLastModified": "1708435729237", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer", + "optional": false, + "label": "ID" + }, + { + "name": "name", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "dataSpecialization": "SYSTEM", + "confidential": false, + "optional": false, + "label": "Name", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "sortOrder": 20, + "hint": "", + "description": "", + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "states", + "type": "TO_MANY", + "confidential": false, + "optional": true, + "label": "Applicable States", + "required": false, + "readOnly": true, + "multiValue": true, + "inputType": "SELECT", + "optionsType": "NorthAmericaState", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/options/NorthAmericaState", + "hideFromSearch": false, + "sortOrder": 130, + "hint": "", + "description": "", + "systemRequired": false, + "shouldAddCustomEntityLabel": false, + "associatedEntity": { + "entity": "State", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/meta/State?fields=*", + "label": "State", + "dateLastModified": "1708079181969", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer", + "optional": false, + "label": "ID" + }, + { + "name": "name", + "type": "SCALAR", + "dataType": "String", + "maxLength": 255, + "confidential": false, + "optional": false, + "label": "Name", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "code", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "optional": true, + "label": "Code", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false + } + ] + } + } + ] + } + }, + { + "name": "versionID", + "type": "SCALAR", + "dataType": "Integer", + "confidential": false, + "optional": false, + "label": "Version ID", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "versions", + "type": "TO_MANY", + "confidential": false, + "optional": true, + "label": "Versions", + "required": false, + "readOnly": true, + "multiValue": false, + "optionsType": "ClientCorporationBillRulesetVersion", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/options/ClientCorporationBillRulesetVersion", + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false, + "associatedEntity": { + "entity": "ClientCorporationBillRulesetVersion", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/meta/ClientCorporationBillRulesetVersion?fields=*", + "label": "Client Corporation Bill Ruleset Version", + "dateLastModified": "1708435729345", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer", + "optional": false, + "label": "ID" + } + ] + } + } + ] +} diff --git a/src/test/resources/testdata/rest/meta/bte/rules/clientcorporationbillrulesetversion-meta-data.txt b/src/test/resources/testdata/rest/meta/bte/rules/clientcorporationbillrulesetversion-meta-data.txt new file mode 100644 index 00000000..9cd9b636 --- /dev/null +++ b/src/test/resources/testdata/rest/meta/bte/rules/clientcorporationbillrulesetversion-meta-data.txt @@ -0,0 +1,198 @@ +{ + "entity": "ClientCorporationBillRulesetVersion", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/meta/ClientCorporationBillRulesetVersion?fields=*", + "label": "Client Corporation Bill Ruleset Version", + "dateLastModified": "1708435729345", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer", + "optional": false, + "label": "ID" + }, + { + "name": "dateAdded", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "optional": false, + "label": "Date Added", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "dateLastModified", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "optional": false, + "label": "Date Last Modified", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "effectiveDate", + "type": "SCALAR", + "dataType": "Date", + "confidential": false, + "optional": false, + "label": "Effective Date", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "effectiveEndDate", + "type": "SCALAR", + "dataType": "Date", + "confidential": false, + "optional": true, + "label": "Effective End Date", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "isFirst", + "type": "SCALAR", + "dataType": "Boolean", + "confidential": false, + "optional": false, + "label": "Is First", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "timeLaborEvalRules", + "type": "TO_MANY", + "confidential": false, + "optional": true, + "label": "Time Labor Eval Rules", + "required": false, + "readOnly": false, + "multiValue": false, + "optionsType": "TimeLaborEvalRule", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/options/TimeLaborEvalRule", + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false, + "associatedEntity": { + "entity": "TimeLaborEvalRule", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/meta/TimeLaborEvalRule?fields=*", + "label": "Time & Labor Rule", + "dateLastModified": "1708435729237", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer", + "optional": false, + "label": "ID" + }, + { + "name": "name", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "dataSpecialization": "SYSTEM", + "confidential": false, + "optional": false, + "label": "Name", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "sortOrder": 20, + "hint": "", + "description": "", + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "states", + "type": "TO_MANY", + "confidential": false, + "optional": true, + "label": "Applicable States", + "required": false, + "readOnly": true, + "multiValue": true, + "inputType": "SELECT", + "optionsType": "NorthAmericaState", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/options/NorthAmericaState", + "hideFromSearch": false, + "sortOrder": 130, + "hint": "", + "description": "", + "systemRequired": false, + "shouldAddCustomEntityLabel": false, + "associatedEntity": { + "entity": "State", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/meta/State?fields=*", + "label": "State", + "dateLastModified": "1708079181969", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer", + "optional": false, + "label": "ID" + }, + { + "name": "name", + "type": "SCALAR", + "dataType": "String", + "maxLength": 255, + "confidential": false, + "optional": false, + "label": "Name", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "code", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "optional": true, + "label": "Code", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false + } + ] + } + } + ] + } + } + ] +} diff --git a/src/test/resources/testdata/rest/meta/bte/rules/clientcorporationpayruleset-meta-data.txt b/src/test/resources/testdata/rest/meta/bte/rules/clientcorporationpayruleset-meta-data.txt new file mode 100644 index 00000000..824d176c --- /dev/null +++ b/src/test/resources/testdata/rest/meta/bte/rules/clientcorporationpayruleset-meta-data.txt @@ -0,0 +1,350 @@ +{ + "entity": "ClientCorporationPayRuleset", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/meta/ClientCorporationPayRuleset?fields=*", + "label": "Client Corporation Pay Ruleset", + "dateLastModified": "1708359184077", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer", + "optional": false, + "label": "ID" + }, + { + "name": "clientCorporation", + "type": "TO_ONE", + "confidential": false, + "optional": false, + "label": "Client Corporation", + "required": false, + "readOnly": false, + "multiValue": false, + "optionsType": "ClientCorporation", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/options/ClientCorporation", + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false, + "associatedEntity": { + "entity": "ClientCorporation", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/meta/ClientCorporation?fields=*", + "label": "Facilities", + "dateLastModified": "1708054271830", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer", + "optional": false, + "label": "ID" + }, + { + "name": "name", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "optional": false, + "label": "Facility Name", + "required": true, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "sortOrder": 10, + "hint": "", + "description": "", + "systemRequired": false, + "shouldAddCustomEntityLabel": false + } + ] + } + }, + { + "name": "dateAdded", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "optional": false, + "label": "Date Added", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "dateLastModified", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "optional": false, + "label": "Date Last Modified", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "effectiveDate", + "type": "SCALAR", + "dataType": "Date", + "confidential": false, + "optional": false, + "label": "Effective Date", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "effectiveEndDate", + "type": "SCALAR", + "dataType": "Date", + "confidential": false, + "optional": true, + "label": "Effective End Date", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "isDeleted", + "type": "SCALAR", + "dataType": "Boolean", + "confidential": false, + "optional": false, + "label": "Is Deleted", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "owner", + "type": "TO_ONE", + "confidential": false, + "optional": false, + "label": "Owner", + "required": false, + "readOnly": false, + "multiValue": false, + "optionsType": "CorporateUser", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/options/CorporateUser", + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false, + "associatedEntity": { + "entity": "CorporateUser", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/meta/CorporateUser?fields=*", + "label": "Corporate User", + "dateLastModified": "1708054449646", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer", + "optional": false, + "label": "ID" + }, + { + "name": "firstName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "optional": true, + "label": "First Name", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "lastName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "optional": true, + "label": "Last Name", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false + } + ] + } + }, + { + "name": "timeLaborEvalRules", + "type": "TO_MANY", + "confidential": false, + "optional": true, + "label": "Time Labor Eval Rules", + "required": false, + "readOnly": false, + "multiValue": false, + "optionsType": "TimeLaborEvalRule", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/options/TimeLaborEvalRule", + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false, + "associatedEntity": { + "entity": "TimeLaborEvalRule", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/meta/TimeLaborEvalRule?fields=*", + "label": "Time & Labor Rule", + "dateLastModified": "1708435729237", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer", + "optional": false, + "label": "ID" + }, + { + "name": "name", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "dataSpecialization": "SYSTEM", + "confidential": false, + "optional": false, + "label": "Name", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "sortOrder": 20, + "hint": "", + "description": "", + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "states", + "type": "TO_MANY", + "confidential": false, + "optional": true, + "label": "Applicable States", + "required": false, + "readOnly": true, + "multiValue": true, + "inputType": "SELECT", + "optionsType": "NorthAmericaState", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/options/NorthAmericaState", + "hideFromSearch": false, + "sortOrder": 130, + "hint": "", + "description": "", + "systemRequired": false, + "shouldAddCustomEntityLabel": false, + "associatedEntity": { + "entity": "State", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/meta/State?fields=*", + "label": "State", + "dateLastModified": "1708079181969", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer", + "optional": false, + "label": "ID" + }, + { + "name": "name", + "type": "SCALAR", + "dataType": "String", + "maxLength": 255, + "confidential": false, + "optional": false, + "label": "Name", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "code", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "optional": true, + "label": "Code", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false + } + ] + } + } + ] + } + }, + { + "name": "versionID", + "type": "SCALAR", + "dataType": "Integer", + "confidential": false, + "optional": false, + "label": "Version ID", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "versions", + "type": "TO_MANY", + "confidential": false, + "optional": true, + "label": "Versions", + "required": false, + "readOnly": true, + "multiValue": false, + "optionsType": "ClientCorporationPayRulesetVersion", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/options/ClientCorporationPayRulesetVersion", + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false, + "associatedEntity": { + "entity": "ClientCorporationPayRulesetVersion", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/meta/ClientCorporationPayRulesetVersion?fields=*", + "label": "Client Corporation Pay Ruleset Version", + "dateLastModified": "1708444958840", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer", + "optional": false, + "label": "ID" + } + ] + } + } + ] +} diff --git a/src/test/resources/testdata/rest/meta/bte/rules/clientcorporationpayrulesetversion-meta-data.txt b/src/test/resources/testdata/rest/meta/bte/rules/clientcorporationpayrulesetversion-meta-data.txt new file mode 100644 index 00000000..bf207450 --- /dev/null +++ b/src/test/resources/testdata/rest/meta/bte/rules/clientcorporationpayrulesetversion-meta-data.txt @@ -0,0 +1,198 @@ +{ + "entity": "ClientCorporationPayRulesetVersion", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/meta/ClientCorporationPayRulesetVersion?fields=*", + "label": "Client Corporation Pay Ruleset Version", + "dateLastModified": "1708444958840", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer", + "optional": false, + "label": "ID" + }, + { + "name": "dateAdded", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "optional": false, + "label": "Date Added", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "dateLastModified", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "optional": false, + "label": "Date Last Modified", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "effectiveDate", + "type": "SCALAR", + "dataType": "Date", + "confidential": false, + "optional": false, + "label": "Effective Date", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "effectiveEndDate", + "type": "SCALAR", + "dataType": "Date", + "confidential": false, + "optional": true, + "label": "Effective End Date", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "isFirst", + "type": "SCALAR", + "dataType": "Boolean", + "confidential": false, + "optional": false, + "label": "Is First", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "timeLaborEvalRules", + "type": "TO_MANY", + "confidential": false, + "optional": true, + "label": "Time Labor Eval Rules", + "required": false, + "readOnly": false, + "multiValue": false, + "optionsType": "TimeLaborEvalRule", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/options/TimeLaborEvalRule", + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false, + "associatedEntity": { + "entity": "TimeLaborEvalRule", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/meta/TimeLaborEvalRule?fields=*", + "label": "Time & Labor Rule", + "dateLastModified": "1708435729237", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer", + "optional": false, + "label": "ID" + }, + { + "name": "name", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "dataSpecialization": "SYSTEM", + "confidential": false, + "optional": false, + "label": "Name", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "sortOrder": 20, + "hint": "", + "description": "", + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "states", + "type": "TO_MANY", + "confidential": false, + "optional": true, + "label": "Applicable States", + "required": false, + "readOnly": true, + "multiValue": true, + "inputType": "SELECT", + "optionsType": "NorthAmericaState", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/options/NorthAmericaState", + "hideFromSearch": false, + "sortOrder": 130, + "hint": "", + "description": "", + "systemRequired": false, + "shouldAddCustomEntityLabel": false, + "associatedEntity": { + "entity": "State", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/meta/State?fields=*", + "label": "State", + "dateLastModified": "1708079181969", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer", + "optional": false, + "label": "ID" + }, + { + "name": "name", + "type": "SCALAR", + "dataType": "String", + "maxLength": 255, + "confidential": false, + "optional": false, + "label": "Name", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "code", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "optional": true, + "label": "Code", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false + } + ] + } + } + ] + } + } + ] +} diff --git a/src/test/resources/testdata/rest/meta/bte/rules/timelaborevalrule-meta-data.txt b/src/test/resources/testdata/rest/meta/bte/rules/timelaborevalrule-meta-data.txt new file mode 100644 index 00000000..f2dbadd4 --- /dev/null +++ b/src/test/resources/testdata/rest/meta/bte/rules/timelaborevalrule-meta-data.txt @@ -0,0 +1,864 @@ +{ + "entity": "TimeLaborEvalRule", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/meta/TimeLaborEvalRule?fields=*", + "label": "Time & Labor Rule", + "dateLastModified": "1708435729237", + "layouts": [ + { + "name": "ListExpandedLeft", + "label": "List - Expanded Left", + "enabled": true + }, + { + "name": "ListRow", + "label": "List - Row", + "enabled": true + }, + { + "name": "ProfileHeader", + "label": "Profile - Header", + "enabled": true + } + ], + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer", + "optional": false, + "label": "ID" + }, + { + "name": "addedAtUtc", + "type": "SCALAR", + "dataType": "Timestamp", + "dataSpecialization": "SYSTEM", + "confidential": false, + "optional": false, + "label": "Date Added", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "sortOrder": 90, + "hint": "", + "description": "", + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "addedByUser", + "type": "TO_ONE", + "dataSpecialization": "SYSTEM", + "confidential": false, + "optional": true, + "label": "Added By User", + "required": false, + "readOnly": false, + "multiValue": false, + "optionsType": "CorporateUser", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/options/CorporateUser", + "hideFromSearch": false, + "sortOrder": 80, + "hint": "", + "description": "", + "systemRequired": false, + "shouldAddCustomEntityLabel": false, + "associatedEntity": { + "entity": "CorporateUser", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/meta/CorporateUser?fields=*", + "label": "Corporate User", + "dateLastModified": "1708054449646", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer", + "optional": false, + "label": "ID" + }, + { + "name": "firstName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "optional": true, + "label": "First Name", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "lastName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "optional": true, + "label": "Last Name", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false + } + ] + } + }, + { + "name": "description", + "type": "SCALAR", + "dataType": "String", + "maxLength": 4000, + "dataSpecialization": "SYSTEM", + "confidential": false, + "optional": false, + "label": "Description", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "sortOrder": 150, + "hint": "", + "description": "", + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "holidays", + "type": "TO_MANY", + "confidential": false, + "optional": true, + "label": "Holidays", + "required": false, + "readOnly": false, + "multiValue": false, + "optionsType": "Holiday", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/options/Holiday", + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false, + "associatedEntity": { + "entity": "Holiday", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/meta/Holiday?fields=*", + "label": "Holiday", + "dateLastModified": "1708444962046", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer", + "optional": false, + "label": "ID" + }, + { + "name": "label", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "optional": false, + "label": "Holiday Name", + "required": true, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "sortOrder": 20, + "hint": "", + "description": "", + "systemRequired": false, + "shouldAddCustomEntityLabel": false + } + ] + } + }, + { + "name": "isRun", + "type": "SCALAR", + "dataType": "Boolean", + "dataSpecialization": "SYSTEM", + "confidential": false, + "optional": false, + "label": "isRun", + "required": false, + "readOnly": true, + "multiValue": false, + "hideFromSearch": false, + "sortOrder": 160, + "hint": "", + "description": "", + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "lastModifiedAtUtc", + "type": "SCALAR", + "dataType": "Timestamp", + "dataSpecialization": "SYSTEM", + "confidential": false, + "optional": false, + "label": "Last Modified", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "sortOrder": 110, + "hint": "", + "description": "", + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "modifyingUser", + "type": "TO_ONE", + "dataSpecialization": "SYSTEM", + "confidential": false, + "optional": true, + "label": "Last Modified By", + "required": false, + "readOnly": false, + "multiValue": false, + "optionsType": "CorporateUser", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/options/CorporateUser", + "hideFromSearch": false, + "sortOrder": 100, + "hint": "", + "description": "", + "systemRequired": false, + "shouldAddCustomEntityLabel": false, + "associatedEntity": { + "entity": "CorporateUser", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/meta/CorporateUser?fields=*", + "label": "Corporate User", + "dateLastModified": "1708054449646", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer", + "optional": false, + "label": "ID" + }, + { + "name": "firstName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "optional": true, + "label": "First Name", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "lastName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "optional": true, + "label": "Last Name", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false + } + ] + } + }, + { + "name": "name", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "dataSpecialization": "SYSTEM", + "confidential": false, + "optional": false, + "label": "Name", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "sortOrder": 20, + "hint": "", + "description": "", + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "parameters", + "type": "SCALAR", + "dataType": "Map", + "dataSpecialization": "SYSTEM", + "confidential": false, + "optional": true, + "label": "Parameters", + "required": false, + "readOnly": true, + "multiValue": false, + "hideFromSearch": false, + "sortOrder": 40, + "hint": "", + "description": "", + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "states", + "type": "TO_MANY", + "confidential": false, + "optional": true, + "label": "Applicable States", + "required": false, + "readOnly": false, + "multiValue": true, + "inputType": "SELECT", + "optionsType": "NorthAmericaState", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/options/NorthAmericaState", + "hideFromSearch": false, + "sortOrder": 130, + "hint": "", + "description": "", + "systemRequired": false, + "shouldAddCustomEntityLabel": false, + "associatedEntity": { + "entity": "State", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/meta/State?fields=*", + "label": "State", + "dateLastModified": "1708079181969", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer", + "optional": false, + "label": "ID" + }, + { + "name": "name", + "type": "SCALAR", + "dataType": "String", + "maxLength": 255, + "confidential": false, + "optional": false, + "label": "Name", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "code", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "optional": true, + "label": "Code", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false + } + ] + } + }, + { + "name": "timeLaborCalcTypeLookup", + "type": "TO_ONE", + "dataType": "SimplifiedOptionsLookup", + "confidential": false, + "optional": false, + "label": "Calculation Type", + "required": false, + "readOnly": false, + "multiValue": false, + "inputType": "SELECT", + "optionsType": "TimeLaborCalcTypeLookup", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/options/TimeLaborCalcTypeLookup", + "options": [ + { + "value": 1, + "label": "Pay", + "readOnly": false + }, + { + "value": 2, + "label": "Bill", + "readOnly": false + }, + { + "value": 3, + "label": "Pay & Bill", + "readOnly": false + } + ], + "hideFromSearch": false, + "sortOrder": 70, + "hint": "", + "description": "", + "systemRequired": false, + "shouldAddCustomEntityLabel": false, + "associatedEntity": { + "entity": "TimeLaborCalcTypeLookup", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/meta/TimeLaborCalcTypeLookup?fields=*", + "label": "Time Labor Calc Type Lookup", + "dateLastModified": "1708444962145", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer", + "optional": false, + "label": "ID" + }, + { + "name": "label", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "optional": true, + "label": "Label", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false + } + ] + } + }, + { + "name": "timeLaborEvalRuleCategoryLookup", + "type": "TO_ONE", + "dataType": "SimplifiedOptionsLookup", + "confidential": false, + "optional": true, + "label": "Category", + "required": false, + "readOnly": false, + "multiValue": false, + "inputType": "SELECT", + "optionsType": "TimeLaborEvalRuleCategoryLookup", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/options/TimeLaborEvalRuleCategoryLookup", + "options": [ + { + "value": 0, + "label": "None", + "readOnly": false + }, + { + "value": 1, + "label": "Threshold", + "readOnly": false + }, + { + "value": 2, + "label": "PerDiem", + "readOnly": false + }, + { + "value": 3, + "label": "PeriodBasedRate", + "readOnly": false + }, + { + "value": 4, + "label": "Surplus", + "readOnly": false + }, + { + "value": 5, + "label": "Expenses", + "readOnly": false + }, + { + "value": 6, + "label": "Penalties", + "readOnly": false + }, + { + "value": 7, + "label": "Holidays", + "readOnly": false + }, + { + "value": 8, + "label": "Validation", + "readOnly": false + }, + { + "value": 9, + "label": "Exempt", + "readOnly": false + }, + { + "value": 10, + "label": "Orientation", + "readOnly": false + }, + { + "value": 11, + "label": "FLSA", + "readOnly": false + }, + { + "value": 12, + "label": "System", + "readOnly": false + } + ], + "hideFromSearch": false, + "sortOrder": 140, + "hint": "", + "description": "", + "systemRequired": false, + "shouldAddCustomEntityLabel": false, + "associatedEntity": { + "entity": "TimeLaborEvalRuleCategoryLookup", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/meta/TimeLaborEvalRuleCategoryLookup?fields=*", + "label": "Time Labor Eval Rule Category Lookup", + "dateLastModified": "1708444962164", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer", + "optional": false, + "label": "ID" + }, + { + "name": "label", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "optional": true, + "label": "Label", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false + } + ] + } + }, + { + "name": "timeLaborEvalRuleCombineCriteriaLookup", + "type": "TO_ONE", + "dataType": "SimplifiedOptionsLookup", + "confidential": false, + "optional": false, + "label": "Combine Criteria", + "required": false, + "readOnly": false, + "multiValue": false, + "inputType": "SELECT", + "optionsType": "TimeLaborEvalRuleCombineCriteriaLookup", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/options/TimeLaborEvalRuleCombineCriteriaLookup", + "options": [ + { + "value": 1, + "label": "Candidate", + "readOnly": false + }, + { + "value": 2, + "label": "Placement", + "readOnly": false + }, + { + "value": 3, + "label": "Sheet", + "readOnly": false + } + ], + "hideFromSearch": false, + "sortOrder": 50, + "hint": "", + "description": "", + "systemRequired": false, + "shouldAddCustomEntityLabel": false, + "associatedEntity": { + "entity": "TimeLaborEvalRuleCombineCriteriaLookup", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/meta/TimeLaborEvalRuleCombineCriteriaLookup?fields=*", + "label": "Time Labor Eval Rule Combine Criteria Lookup", + "dateLastModified": "1708444962184", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer", + "optional": false, + "label": "ID" + }, + { + "name": "label", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "optional": true, + "label": "Label", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false + } + ] + } + }, + { + "name": "timeLaborEvalRuleStatusLookup", + "type": "TO_ONE", + "dataType": "SimplifiedOptionsLookup", + "confidential": false, + "optional": false, + "label": "Status", + "required": false, + "readOnly": false, + "multiValue": false, + "inputType": "SELECT", + "optionsType": "TimeLaborEvalRuleStatusLookup", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/options/TimeLaborEvalRuleStatusLookup", + "options": [ + { + "value": 1, + "label": "Active", + "readOnly": false + }, + { + "value": 2, + "label": "Inactive", + "readOnly": false + } + ], + "hideFromSearch": false, + "sortOrder": 60, + "hint": "", + "description": "", + "systemRequired": false, + "shouldAddCustomEntityLabel": false, + "associatedEntity": { + "entity": "TimeLaborEvalRuleStatusLookup", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/meta/TimeLaborEvalRuleStatusLookup?fields=*", + "label": "Time Labor Eval Rule Status Lookup", + "dateLastModified": "1708444962203", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer", + "optional": false, + "label": "ID" + }, + { + "name": "label", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "optional": true, + "label": "Label", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false + } + ] + } + }, + { + "name": "timeLaborEvalRuleTemplates", + "type": "TO_MANY", + "dataSpecialization": "SYSTEM", + "confidential": false, + "optional": true, + "label": "Used on Templates", + "required": false, + "readOnly": true, + "multiValue": false, + "optionsType": "TimeLaborEvalRuleTemplate", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/options/TimeLaborEvalRuleTemplate", + "hideFromSearch": false, + "sortOrder": 170, + "hint": "", + "description": "", + "systemRequired": false, + "shouldAddCustomEntityLabel": false, + "associatedEntity": { + "entity": "TimeLaborEvalRuleTemplate", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/meta/TimeLaborEvalRuleTemplate?fields=*", + "label": "Time & Labor Rule Template", + "dateLastModified": "1708079181919", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer", + "optional": false, + "label": "ID" + }, + { + "name": "name", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "optional": false, + "label": "Name", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "sortOrder": 20, + "hint": "", + "description": "", + "systemRequired": false, + "shouldAddCustomEntityLabel": false + } + ] + } + }, + { + "name": "timeLaborEvalRuleTypeLookup", + "type": "TO_ONE", + "dataType": "SimplifiedOptionsLookup", + "dataSpecialization": "SYSTEM", + "confidential": false, + "optional": false, + "label": "Rule Type", + "required": false, + "readOnly": false, + "multiValue": false, + "optionsType": "TimeLaborEvalRuleTypeLookup", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/options/TimeLaborEvalRuleTypeLookup", + "options": [ + { + "value": 101, + "label": "Period Threshold", + "readOnly": false + }, + { + "value": 104, + "label": "7th Day Threshold", + "readOnly": false + }, + { + "value": 105, + "label": "Days of Week Premium", + "readOnly": false + }, + { + "value": 107, + "label": "Daily Min Wage Basis Threshold", + "readOnly": false + }, + { + "value": 111, + "label": "Non-scheduled Workday", + "readOnly": false + }, + { + "value": 118, + "label": "Daily Threshold", + "readOnly": false + }, + { + "value": 119, + "label": "Low Census", + "readOnly": false + }, + { + "value": 300, + "label": "Period Based Quantity", + "readOnly": false + }, + { + "value": 700, + "label": "Worked Holiday", + "readOnly": false + }, + { + "value": 701, + "label": "Worked Holiday Threshold", + "readOnly": false + }, + { + "value": 903, + "label": "Guaranteed Hours", + "readOnly": false + }, + { + "value": 1000, + "label": "Orientation", + "readOnly": false + }, + { + "value": 1100, + "label": "FLSA Adjustment", + "readOnly": false + } + ], + "hideFromSearch": false, + "sortOrder": 30, + "hint": "", + "description": "", + "systemRequired": false, + "shouldAddCustomEntityLabel": false, + "associatedEntity": { + "entity": "TimeLaborEvalRuleTypeLookup", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/meta/TimeLaborEvalRuleTypeLookup?fields=*", + "label": "Time Labor Eval Rule Type Lookup", + "dateLastModified": "1708444962222", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer", + "optional": false, + "label": "ID" + }, + { + "name": "label", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "optional": true, + "label": "Label", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false + } + ] + } + } + ] +} diff --git a/src/test/resources/testdata/rest/meta/bte/rules/timelaborevalruletemplate-meta-data.txt b/src/test/resources/testdata/rest/meta/bte/rules/timelaborevalruletemplate-meta-data.txt new file mode 100644 index 00000000..b258093f --- /dev/null +++ b/src/test/resources/testdata/rest/meta/bte/rules/timelaborevalruletemplate-meta-data.txt @@ -0,0 +1,540 @@ +{ + "entity": "TimeLaborEvalRuleTemplate", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/meta/TimeLaborEvalRuleTemplate?fields=*", + "label": "Time & Labor Rule Template", + "dateLastModified": "1708079181919", + "layouts": [ + { + "name": "ListExpandedLeft", + "label": "List - Expanded Left", + "enabled": true + }, + { + "name": "ListRow", + "label": "List - Row", + "enabled": true + } + ], + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer", + "optional": false, + "label": "ID" + }, + { + "name": "addedAtUtc", + "type": "SCALAR", + "dataType": "Timestamp", + "dataSpecialization": "SYSTEM", + "confidential": false, + "optional": false, + "label": "Added At Utc", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "sortOrder": 60, + "hint": "", + "description": "", + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "addedByUser", + "type": "TO_ONE", + "dataSpecialization": "SYSTEM", + "confidential": false, + "optional": false, + "label": "Added By User", + "required": false, + "readOnly": false, + "multiValue": false, + "optionsType": "CorporateUser", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/options/CorporateUser", + "hideFromSearch": false, + "sortOrder": 50, + "hint": "", + "description": "", + "systemRequired": false, + "shouldAddCustomEntityLabel": false, + "associatedEntity": { + "entity": "CorporateUser", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/meta/CorporateUser?fields=*", + "label": "Corporate User", + "dateLastModified": "1708054449646", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer", + "optional": false, + "label": "ID" + }, + { + "name": "firstName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "optional": true, + "label": "First Name", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "lastName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "optional": true, + "label": "Last Name", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false + } + ] + } + }, + { + "name": "description", + "type": "SCALAR", + "dataType": "String", + "maxLength": 500, + "confidential": false, + "optional": true, + "label": "Description", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "sortOrder": 30, + "hint": "", + "description": "", + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "isDefault", + "type": "SCALAR", + "dataType": "Boolean", + "dataSpecialization": "SYSTEM", + "confidential": false, + "optional": true, + "label": "Is Default", + "required": false, + "readOnly": true, + "multiValue": false, + "hideFromSearch": false, + "sortOrder": 40, + "hint": "", + "description": "", + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "lastModifiedAtUtc", + "type": "SCALAR", + "dataType": "Timestamp", + "dataSpecialization": "SYSTEM", + "confidential": false, + "optional": false, + "label": "Last Modified At Utc", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "sortOrder": 80, + "hint": "", + "description": "", + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "modifyingUser", + "type": "TO_ONE", + "dataSpecialization": "SYSTEM", + "confidential": false, + "optional": false, + "label": "Modifying User", + "required": false, + "readOnly": false, + "multiValue": false, + "optionsType": "CorporateUser", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/options/CorporateUser", + "hideFromSearch": false, + "sortOrder": 70, + "hint": "", + "description": "", + "systemRequired": false, + "shouldAddCustomEntityLabel": false, + "associatedEntity": { + "entity": "CorporateUser", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/meta/CorporateUser?fields=*", + "label": "Corporate User", + "dateLastModified": "1708054449646", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer", + "optional": false, + "label": "ID" + }, + { + "name": "firstName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "optional": true, + "label": "First Name", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "lastName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "optional": true, + "label": "Last Name", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false + } + ] + } + }, + { + "name": "name", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "optional": false, + "label": "Name", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "sortOrder": 20, + "hint": "", + "description": "", + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "timeLaborEvalRules", + "type": "TO_MANY", + "confidential": false, + "optional": true, + "label": "Time Labor Eval Rules", + "required": false, + "readOnly": false, + "multiValue": false, + "optionsType": "TimeLaborEvalRule", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/options/TimeLaborEvalRule", + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false, + "associatedEntity": { + "entity": "TimeLaborEvalRule", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/meta/TimeLaborEvalRule?fields=*", + "label": "Time & Labor Rule", + "dateLastModified": "1708435729237", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer", + "optional": false, + "label": "ID" + }, + { + "name": "name", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "dataSpecialization": "SYSTEM", + "confidential": false, + "optional": false, + "label": "Name", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "sortOrder": 20, + "hint": "", + "description": "", + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "states", + "type": "TO_MANY", + "confidential": false, + "optional": true, + "label": "Applicable States", + "required": false, + "readOnly": true, + "multiValue": true, + "inputType": "SELECT", + "optionsType": "NorthAmericaState", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/options/NorthAmericaState", + "hideFromSearch": false, + "sortOrder": 130, + "hint": "", + "description": "", + "systemRequired": false, + "shouldAddCustomEntityLabel": false, + "associatedEntity": { + "entity": "State", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/meta/State?fields=*", + "label": "State", + "dateLastModified": "1708079181969", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer", + "optional": false, + "label": "ID" + }, + { + "name": "name", + "type": "SCALAR", + "dataType": "String", + "maxLength": 255, + "confidential": false, + "optional": false, + "label": "Name", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "code", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "optional": true, + "label": "Code", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false + } + ] + } + } + ] + } + }, + { + "name": "timeLaborEvalRulesCalcTypes", + "type": "TO_MANY", + "dataType": "SimplifiedOptionsLookup", + "confidential": false, + "optional": true, + "label": "Calculation Types", + "required": false, + "readOnly": false, + "multiValue": false, + "optionsType": "TimeLaborCalcTypeLookup", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/options/TimeLaborCalcTypeLookup", + "options": [ + { + "value": 1, + "label": "Pay", + "readOnly": false + }, + { + "value": 2, + "label": "Bill", + "readOnly": false + }, + { + "value": 3, + "label": "Pay & Bill", + "readOnly": false + } + ], + "hideFromSearch": false, + "sortOrder": 100, + "hint": "", + "description": "", + "systemRequired": false, + "shouldAddCustomEntityLabel": false, + "associatedEntity": { + "entity": "TimeLaborCalcTypeLookup", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/meta/TimeLaborCalcTypeLookup?fields=*", + "label": "Time Labor Calc Type Lookup", + "dateLastModified": "1708444962145", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer", + "optional": false, + "label": "ID" + }, + { + "name": "label", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "optional": true, + "label": "Label", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false + } + ] + } + }, + { + "name": "timeLaborEvalRulesCategories", + "type": "TO_MANY", + "dataType": "SimplifiedOptionsLookup", + "confidential": false, + "optional": true, + "label": "Categories", + "required": false, + "readOnly": false, + "multiValue": false, + "optionsType": "TimeLaborEvalRuleCategoryLookup", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/options/TimeLaborEvalRuleCategoryLookup", + "options": [ + { + "value": 0, + "label": "None", + "readOnly": false + }, + { + "value": 1, + "label": "Threshold", + "readOnly": false + }, + { + "value": 2, + "label": "PerDiem", + "readOnly": false + }, + { + "value": 3, + "label": "PeriodBasedRate", + "readOnly": false + }, + { + "value": 4, + "label": "Surplus", + "readOnly": false + }, + { + "value": 5, + "label": "Expenses", + "readOnly": false + }, + { + "value": 6, + "label": "Penalties", + "readOnly": false + }, + { + "value": 7, + "label": "Holidays", + "readOnly": false + }, + { + "value": 8, + "label": "Validation", + "readOnly": false + }, + { + "value": 9, + "label": "Exempt", + "readOnly": false + }, + { + "value": 10, + "label": "Orientation", + "readOnly": false + }, + { + "value": 11, + "label": "FLSA", + "readOnly": false + }, + { + "value": 12, + "label": "System", + "readOnly": false + } + ], + "hideFromSearch": false, + "sortOrder": 110, + "hint": "", + "description": "", + "systemRequired": false, + "shouldAddCustomEntityLabel": false, + "associatedEntity": { + "entity": "TimeLaborEvalRuleCategoryLookup", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/2ppp4p/meta/TimeLaborEvalRuleCategoryLookup?fields=*", + "label": "Time Labor Eval Rule Category Lookup", + "dateLastModified": "1708444962164", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer", + "optional": false, + "label": "ID" + }, + { + "name": "label", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "optional": true, + "label": "Label", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false + } + ] + } + } + ] +}