diff --git a/pom.xml b/pom.xml index 411804c8..4860dfbf 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ com.bullhorn sdk-rest - 1.4.38 + 1.4.39 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 48b46ad5..8197b098 100644 --- a/src/main/java/com/bullhornsdk/data/api/mock/MockDataLoader.groovy +++ b/src/main/java/com/bullhornsdk/data/api/mock/MockDataLoader.groovy @@ -679,6 +679,8 @@ public class MockDataLoader { entityFiles.put(CandidateAvailability.class, "candidateavailability-data.txt"); + entityFiles.put(LegalBusinessEntity.class, "legalbusinessentity-data.txt"); + return entityFiles; } @@ -930,6 +932,8 @@ public class MockDataLoader { entityMetaFiles.put(CandidateAvailability.class, "meta/candidateavailability-meta-data.txt"); + entityMetaFiles.put(LegalBusinessEntity.class, "meta/legalbusinessentity-meta-data.txt"); + return entityMetaFiles; } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/LegalBusinessEntity.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/LegalBusinessEntity.java new file mode 100644 index 00000000..c792a656 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/LegalBusinessEntity.java @@ -0,0 +1,186 @@ +package com.bullhornsdk.data.model.entity.core.standard; + +import com.bullhornsdk.data.model.entity.core.paybill.optionslookup.SimplifiedOptionsLookup; +import com.bullhornsdk.data.model.entity.core.paybill.unit.CurrencyUnit; +import com.bullhornsdk.data.model.entity.core.type.CreateEntity; +import com.bullhornsdk.data.model.entity.core.type.QueryEntity; +import com.bullhornsdk.data.model.entity.core.type.UpdateEntity; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonRootName; +import org.joda.time.DateTime; + +import javax.validation.constraints.Size; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonRootName(value = "data") +@JsonPropertyOrder({"id", "countryID", "dateAdded", "dateLastModified", "defaultCurrencyUnit", + "isDeleted", "legalEntityNumber", "legalName", "shortName", "statusLookup"}) +public class LegalBusinessEntity implements QueryEntity, UpdateEntity, CreateEntity { + + private Integer id; + + private Integer countryID; + + private DateTime dateAdded; + + private DateTime dateLastModified; + + private CurrencyUnit defaultCurrencyUnit; + + private Boolean isDeleted; + + @Size(max = 200) + private String legalEntityNumber; + + @Size(max = 200) + private String legalName; + + @Size(max = 30) + private String shortName; + + private SimplifiedOptionsLookup statusLookup; + + @Override + @JsonProperty("id") + public Integer getId() { + return id; + } + + @Override + @JsonProperty("id") + public void setId(Integer id) { + this.id = id; + } + + @JsonProperty("countryID") + public Integer getCountryID() { + return countryID; + } + + @JsonProperty("countryID") + public void setCountryID(Integer countryID) { + this.countryID = countryID; + } + + @JsonProperty("dateAdded") + public DateTime getDateAdded() { + return dateAdded; + } + + @JsonProperty("dateAdded") + public void setDateAdded(DateTime dateAdded) { + this.dateAdded = dateAdded; + } + + @JsonProperty("dateLastModified") + public DateTime getDateLastModified() { + return dateLastModified; + } + + @JsonProperty("dateLastModified") + public void setDateLastModified(DateTime dateLastModified) { + this.dateLastModified = dateLastModified; + } + + @JsonProperty("defaultCurrencyUnit") + public CurrencyUnit getDefaultCurrencyUnit() { + return defaultCurrencyUnit; + } + + @JsonProperty("defaultCurrencyUnit") + public void setDefaultCurrencyUnit(CurrencyUnit defaultCurrencyUnit) { + this.defaultCurrencyUnit = defaultCurrencyUnit; + } + + @JsonProperty("isDeleted") + public Boolean getIsDeleted() { + return isDeleted; + } + + @JsonProperty("isDeleted") + public void setIsDeleted(Boolean isDeleted) { + this.isDeleted = isDeleted; + } + + @JsonProperty("legalEntityNumber") + public String getLegalEntityNumber() { + return legalEntityNumber; + } + + @JsonProperty("legalEntityNumber") + public void setLegalEntityNumber(String legalEntityNumber) { + this.legalEntityNumber = legalEntityNumber; + } + + @JsonProperty("legalName") + public String getLegalName() { + return legalName; + } + + @JsonProperty("legalName") + public void setLegalName(String legalName) { + this.legalName = legalName; + } + + @JsonProperty("shortName") + public String getShortName() { + return shortName; + } + + @JsonProperty("shortName") + public void setShortName(String shortName) { + this.shortName = shortName; + } + + @JsonProperty("statusLookup") + public SimplifiedOptionsLookup getStatusLookup() { + return statusLookup; + } + + @JsonProperty("statusLookup") + public void setStatusLookup(SimplifiedOptionsLookup statusLookup) { + this.statusLookup = statusLookup; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + LegalBusinessEntity that = (LegalBusinessEntity) o; + return Objects.equals(id, that.id) + && Objects.equals(countryID, that.countryID) + && Objects.equals(dateAdded, that.dateAdded) + && Objects.equals(dateLastModified, that.dateLastModified) + && Objects.equals(defaultCurrencyUnit, that.defaultCurrencyUnit) + && Objects.equals(isDeleted, that.isDeleted) + && Objects.equals(legalEntityNumber, that.legalEntityNumber) + && Objects.equals(legalName, that.legalName) + && Objects.equals(shortName, that.shortName) + && Objects.equals(statusLookup, that.statusLookup); + } + + @Override + public int hashCode() { + return Objects.hash(id, countryID, dateAdded, dateLastModified, defaultCurrencyUnit, + isDeleted, legalEntityNumber, legalName, shortName, statusLookup); + } + + @Override + public String toString() { + return "LegalBusinessEntity{" + + "id=" + id + + ", countryID=" + countryID + + ", dateAdded=" + dateAdded + + ", dateLastModified=" + dateLastModified + + ", defaultCurrencyUnit=" + defaultCurrencyUnit + + ", isDeleted=" + isDeleted + + ", legalEntityNumber='" + legalEntityNumber + '\'' + + ", legalName='" + legalName + '\'' + + ", shortName='" + shortName + '\'' + + ", statusLookup=" + statusLookup + + '}'; + } +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Placement.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Placement.java index 1ebc07ff..6061ad86 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Placement.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/Placement.java @@ -76,7 +76,8 @@ "recruitingManagerPercentGrossMargin", "referralFee", "referralFeeType", "reportTo", "reportedMargin", "salary", "salaryUnit", "salesManagerPercentGrossMargin", "statementClientContact", "status", "tasks", "taxRate", "taxState", "terminationReason", "timeUnits", "vendorClientCorporation", "workWeekStart", "workersCompensationRate", "customObject1s", "customObject2s", "customObject3s", "customObject4s", - "customObject5s", "customObject6s", "customObject7s", "customObject8s", "customObject9s", "customObject10s", "location", "timeAndExpense" }) + "customObject5s", "customObject6s", "customObject7s", "customObject8s", "customObject9s", "customObject10s", "location", "timeAndExpense", + "legalBusinessEntity" }) public class Placement extends CustomFieldsD implements SearchEntity, QueryEntity, UpdateEntity, CreateEntity, HardDeleteEntity, FileEntity, AssociationEntity, DateLastModifiedEntity, EditHistoryEntity { @@ -257,6 +258,8 @@ public class Placement extends CustomFieldsD implements SearchEntity, QueryEntit private WorkersCompensationRate workersCompensationRate; + private LegalBusinessEntity legalBusinessEntity; + private OneToMany customObject1s; private OneToMany customObject2s; @@ -1039,6 +1042,16 @@ public void setWorkersCompensationRate(WorkersCompensationRate workersCompensati this.workersCompensationRate = workersCompensationRate; } + @JsonProperty("legalBusinessEntity") + public LegalBusinessEntity getLegalBusinessEntityID() { + return legalBusinessEntity; + } + + @JsonProperty("legalBusinessEntity") + public void setLegalBusinessEntity(LegalBusinessEntity legalBusinessEntity) { + this.legalBusinessEntity = legalBusinessEntity; + } + @JsonProperty("fileAttachments") public OneToMany getFileAttachments() { return fileAttachments; @@ -1271,6 +1284,7 @@ public boolean equals(Object o) { Objects.equals(vendorClientCorporation, placement.vendorClientCorporation) && Objects.equals(workWeekStart, placement.workWeekStart) && Objects.equals(workersCompensationRate, placement.workersCompensationRate) && + Objects.equals(legalBusinessEntity, placement.legalBusinessEntity) && Objects.equals(customObject1s, placement.customObject1s) && Objects.equals(customObject2s, placement.customObject2s) && Objects.equals(customObject3s, placement.customObject3s) && @@ -1286,7 +1300,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(super.hashCode(), id, appointments, approvingClientContact, backupApprovingClientContact, billingClientContact, billingProfile, billingFrequency, bonusPackage, branch, candidate, placementCertifications, changeRequests, clientBillRate, clientOvertimeRate, comments, commissions, location, timeAndExpense, costCenter, dateAdded, dateBegin, dateClientEffective, dateEffective, dateEnd, dateLastModified, daysGuaranteed, daysProRated, durationWeeks, employeeType, employmentType, fee, flatFee, fileAttachments, hoursOfOperation, hoursPerDay, housingManagerID, housingStatus, invoiceGroupName, jobOrder, jobSubmission, migrateGUID, optionsPackage, onboardingDocumentReceivedCount, onboardingDocumentSentCount, onboardingPercentComplete, onboardingReceivedSent, onboardingStatus, otExemption, otherHourlyFee, markUpPercentage, notes, otherHourlyFeeComments, overtimeMarkUpPercentage, overtimeRate, payGroup, payRate, projectCodeList, recruitingManagerPercentGrossMargin, referralFee, referralFeeType, reportTo, reportedMargin, salary, salaryUnit, salesManagerPercentGrossMargin, statementClientContact, status, tasks, taxRate, taxState, terminationReason, timeUnits, vendorClientCorporation, workWeekStart, workersCompensationRate, customObject1s, customObject2s, customObject3s, customObject4s, customObject5s, customObject6s, customObject7s, customObject8s, customObject9s, customObject10s); + return Objects.hash(super.hashCode(), id, appointments, approvingClientContact, backupApprovingClientContact, billingClientContact, billingProfile, billingFrequency, bonusPackage, branch, candidate, placementCertifications, changeRequests, clientBillRate, clientOvertimeRate, comments, commissions, location, timeAndExpense, costCenter, dateAdded, dateBegin, dateClientEffective, dateEffective, dateEnd, dateLastModified, daysGuaranteed, daysProRated, durationWeeks, employeeType, employmentType, fee, flatFee, fileAttachments, hoursOfOperation, hoursPerDay, housingManagerID, housingStatus, invoiceGroupName, jobOrder, jobSubmission, migrateGUID, optionsPackage, onboardingDocumentReceivedCount, onboardingDocumentSentCount, onboardingPercentComplete, onboardingReceivedSent, onboardingStatus, otExemption, otherHourlyFee, markUpPercentage, notes, otherHourlyFeeComments, overtimeMarkUpPercentage, overtimeRate, payGroup, payRate, projectCodeList, recruitingManagerPercentGrossMargin, referralFee, referralFeeType, reportTo, reportedMargin, salary, salaryUnit, salesManagerPercentGrossMargin, statementClientContact, status, tasks, taxRate, taxState, terminationReason, timeUnits, vendorClientCorporation, workWeekStart, workersCompensationRate, legalBusinessEntity, customObject1s, customObject2s, customObject3s, customObject4s, customObject5s, customObject6s, customObject7s, customObject8s, customObject9s, customObject10s); } @Override @@ -1367,6 +1381,7 @@ public String toString() { ", vendorClientCorporation=" + vendorClientCorporation + ", workWeekStart=" + workWeekStart + ", workersCompensationRate=" + workersCompensationRate + + ", legalBusinessEntity=" + legalBusinessEntity + ", customObject1s=" + customObject1s + ", customObject2s=" + customObject2s + ", customObject3s=" + customObject3s + 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 40f576e0..19e3fcfc 100644 --- a/src/main/java/com/bullhornsdk/data/model/enums/BullhornEntityInfo.java +++ b/src/main/java/com/bullhornsdk/data/model/enums/BullhornEntityInfo.java @@ -230,6 +230,7 @@ public enum BullhornEntityInfo { JOB_SUBMISSION_HISTORY("JobSubmissionHistory", JobSubmissionHistory.class, JobSubmissionHistoryWrapper.class, JobSubmissionHistoryListWrapper.class, null, null), LEAD("Lead", Lead.class, LeadWrapper.class, LeadListWrapper.class, "UserEditHistory", "UserEditHistoryFieldChange"), + LEGAL_BUSINESS_ENTITY("LegalBusinessEntity", LegalBusinessEntity.class, LegalBusinessEntityWrapper.class, LegalBusinessEntityListWrapper.class, null, null), LOGIN_RESTRICTIONS("LoginRestrictions", null, null, null, null, null), NOTE("Note", Note.class, NoteWrapper.class, NoteListWrapper.class, null, null), NOTE_ENTITY("NoteEntity", NoteEntity.class, NoteEntityWrapper.class, NoteEntityListWrapper.class, null, null), diff --git a/src/main/java/com/bullhornsdk/data/model/response/list/LegalBusinessEntityListWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/list/LegalBusinessEntityListWrapper.java new file mode 100644 index 00000000..479a52f3 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/list/LegalBusinessEntityListWrapper.java @@ -0,0 +1,11 @@ +package com.bullhornsdk.data.model.response.list; + +import com.bullhornsdk.data.model.entity.core.standard.LegalBusinessEntity; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({"data", "count", "start"}) +public class LegalBusinessEntityListWrapper extends StandardListWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/single/LegalBusinessEntityWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/single/LegalBusinessEntityWrapper.java new file mode 100644 index 00000000..80126278 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/single/LegalBusinessEntityWrapper.java @@ -0,0 +1,7 @@ +package com.bullhornsdk.data.model.response.single; + +import com.bullhornsdk.data.model.entity.core.standard.LegalBusinessEntity; + +public class LegalBusinessEntityWrapper extends StandardWrapper { + +} diff --git a/src/test/resources/testdata/rest/legalbusinessentity-data.txt b/src/test/resources/testdata/rest/legalbusinessentity-data.txt new file mode 100644 index 00000000..c213d843 --- /dev/null +++ b/src/test/resources/testdata/rest/legalbusinessentity-data.txt @@ -0,0 +1,347 @@ +{ + "total":20, + "start":0, + "count":20, + "data":[ + { + "id":1, + "countryID":1, + "dateAdded":1502895495743, + "defaultCurrencyUnit":{ + "id":166, + "alphabeticCode":"USD", + "name":"US Dollar" + }, + "isDeleted":false, + "legalEntityNumber":"1", + "legalName":"Softworld", + "shortName":"sd", + "statusLookup":{ + "id":3 + } + }, + { + "id":2, + "countryID":1, + "dateAdded":1502895495743, + "defaultCurrencyUnit":{ + "id":166, + "alphabeticCode":"USD", + "name":"US Dollar" + }, + "isDeleted":false, + "legalEntityNumber":"2", + "legalName":"Softworld2", + "shortName":"sd", + "statusLookup":{ + "id":3 + } + }, + { + "id":3, + "countryID":1, + "dateAdded":1502895495743, + "defaultCurrencyUnit":{ + "id":166, + "alphabeticCode":"USD", + "name":"US Dollar" + }, + "isDeleted":false, + "legalEntityNumber":"3", + "legalName":"Softworld3", + "shortName":"sd", + "statusLookup":{ + "id":3 + } + }, + { + "id":4, + "countryID":1, + "dateAdded":1502895495743, + "defaultCurrencyUnit":{ + "id":166, + "alphabeticCode":"USD", + "name":"US Dollar" + }, + "isDeleted":false, + "legalEntityNumber":"4", + "legalName":"Softworld4", + "shortName":"sd", + "statusLookup":{ + "id":3 + } + }, + { + "id":5, + "countryID":1, + "dateAdded":1502895495743, + "defaultCurrencyUnit":{ + "id":166, + "alphabeticCode":"USD", + "name":"US Dollar" + }, + "isDeleted":false, + "legalEntityNumber":"5", + "legalName":"Softworld5", + "shortName":"sd", + "statusLookup":{ + "id":3 + } + }, + { + "id":6, + "countryID":1, + "dateAdded":1502895495743, + "defaultCurrencyUnit":{ + "id":166, + "alphabeticCode":"USD", + "name":"US Dollar" + }, + "isDeleted":false, + "legalEntityNumber":"6", + "legalName":"Softworld6", + "shortName":"sd", + "statusLookup":{ + "id":3 + } + }, + { + "id":7, + "countryID":1, + "dateAdded":1502895495743, + "defaultCurrencyUnit":{ + "id":166, + "alphabeticCode":"USD", + "name":"US Dollar" + }, + "isDeleted":false, + "legalEntityNumber":"7", + "legalName":"Softworld7", + "shortName":"sd", + "statusLookup":{ + "id":3 + } + }, + { + "id":8, + "countryID":1, + "dateAdded":1502895495743, + "defaultCurrencyUnit":{ + "id":166, + "alphabeticCode":"USD", + "name":"US Dollar" + }, + "isDeleted":false, + "legalEntityNumber":"8", + "legalName":"Softworld8", + "shortName":"sd", + "statusLookup":{ + "id":3 + } + }, + { + "id":9, + "countryID":1, + "dateAdded":1502895495743, + "defaultCurrencyUnit":{ + "id":166, + "alphabeticCode":"USD", + "name":"US Dollar" + }, + "isDeleted":false, + "legalEntityNumber":"9", + "legalName":"Softworld9", + "shortName":"sd", + "statusLookup":{ + "id":3 + } + }, + { + "id":10, + "countryID":1, + "dateAdded":1502895495743, + "defaultCurrencyUnit":{ + "id":166, + "alphabeticCode":"USD", + "name":"US Dollar" + }, + "isDeleted":false, + "legalEntityNumber":"10", + "legalName":"Softworld10", + "shortName":"sd", + "statusLookup":{ + "id":3 + } + }, + { + "id":11, + "countryID":1, + "dateAdded":1502895495743, + "defaultCurrencyUnit":{ + "id":166, + "alphabeticCode":"USD", + "name":"US Dollar" + }, + "isDeleted":false, + "legalEntityNumber":"11", + "legalName":"Softworld11", + "shortName":"sd", + "statusLookup":{ + "id":3 + } + }, + { + "id":12, + "countryID":1, + "dateAdded":1502895495743, + "defaultCurrencyUnit":{ + "id":166, + "alphabeticCode":"USD", + "name":"US Dollar" + }, + "isDeleted":false, + "legalEntityNumber":"12", + "legalName":"Softworld12", + "shortName":"sd", + "statusLookup":{ + "id":3 + } + }, + { + "id":13, + "countryID":1, + "dateAdded":1502895495743, + "defaultCurrencyUnit":{ + "id":166, + "alphabeticCode":"USD", + "name":"US Dollar" + }, + "isDeleted":false, + "legalEntityNumber":"13", + "legalName":"Softworld13", + "shortName":"sd", + "statusLookup":{ + "id":3 + } + }, + { + "id":14, + "countryID":1, + "dateAdded":1502895495743, + "defaultCurrencyUnit":{ + "id":166, + "alphabeticCode":"USD", + "name":"US Dollar" + }, + "isDeleted":false, + "legalEntityNumber":"14", + "legalName":"Softworld14", + "shortName":"sd", + "statusLookup":{ + "id":3 + } + }, + { + "id":15, + "countryID":1, + "dateAdded":1502895495743, + "defaultCurrencyUnit":{ + "id":166, + "alphabeticCode":"USD", + "name":"US Dollar" + }, + "isDeleted":false, + "legalEntityNumber":"15", + "legalName":"Softworld15", + "shortName":"sd", + "statusLookup":{ + "id":3 + } + }, + { + "id":16, + "countryID":1, + "dateAdded":1502895495743, + "defaultCurrencyUnit":{ + "id":166, + "alphabeticCode":"USD", + "name":"US Dollar" + }, + "isDeleted":false, + "legalEntityNumber":"16", + "legalName":"Softworld16", + "shortName":"sd", + "statusLookup":{ + "id":3 + } + }, + { + "id":17, + "countryID":1, + "dateAdded":1502895495743, + "defaultCurrencyUnit":{ + "id":166, + "alphabeticCode":"USD", + "name":"US Dollar" + }, + "isDeleted":false, + "legalEntityNumber":"17", + "legalName":"Softworld17", + "shortName":"sd", + "statusLookup":{ + "id":3 + } + }, + { + "id":18, + "countryID":1, + "dateAdded":1502895495743, + "defaultCurrencyUnit":{ + "id":166, + "alphabeticCode":"USD", + "name":"US Dollar" + }, + "isDeleted":false, + "legalEntityNumber":"18", + "legalName":"Softworld18", + "shortName":"sd", + "statusLookup":{ + "id":3 + } + }, + { + "id":19, + "countryID":1, + "dateAdded":1502895495743, + "defaultCurrencyUnit":{ + "id":166, + "alphabeticCode":"USD", + "name":"US Dollar" + }, + "isDeleted":false, + "legalEntityNumber":"19", + "legalName":"Softworld19", + "shortName":"sd", + "statusLookup":{ + "id":3 + } + }, + { + "id":20, + "countryID":1, + "dateAdded":1502895495743, + "defaultCurrencyUnit":{ + "id":166, + "alphabeticCode":"USD", + "name":"US Dollar" + }, + "isDeleted":false, + "legalEntityNumber":"20", + "legalName":"Softworld20", + "shortName":"sd", + "statusLookup":{ + "id":3 + } + } + ] +} diff --git a/src/test/resources/testdata/rest/meta/legalbusinessentity-meta-data.txt b/src/test/resources/testdata/rest/meta/legalbusinessentity-meta-data.txt new file mode 100644 index 00000000..b6cd1c0d --- /dev/null +++ b/src/test/resources/testdata/rest/meta/legalbusinessentity-meta-data.txt @@ -0,0 +1,219 @@ +{ + "entity": "LegalBusinessEntity", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/724kgg/meta/LegalBusinessEntity?fields=*", + "label": "Legal Business Entity", + "dateLastModified": "1651524719774", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer", + "optional": false + }, + { + "name": "countryID", + "type": "SCALAR", + "dataType": "Integer", + "confidential": false, + "optional": false, + "label": "Country ID", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "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": true, + "label": "Date Last Modified", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "defaultCurrencyUnit", + "type": "TO_ONE", + "confidential": false, + "optional": false, + "label": "Default Currency Unit", + "required": false, + "readOnly": false, + "multiValue": false, + "optionsType": "CurrencyUnit", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/724kgg/options/CurrencyUnit", + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false, + "associatedEntity": { + "entity": "CurrencyUnit", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/724kgg/meta/CurrencyUnit?fields=*", + "label": "Currency Unit", + "dateLastModified": "1651525365252", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer", + "optional": false + }, + { + "name": "alphabeticCode", + "type": "SCALAR", + "dataType": "String", + "maxLength": 3, + "confidential": false, + "optional": false, + "label": "Alphabetic Code", + "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, + "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": "legalEntityNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 200, + "confidential": false, + "optional": false, + "label": "Legal Entity Number", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "legalName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 200, + "confidential": false, + "optional": false, + "label": "Legal Name", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "shortName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 30, + "confidential": false, + "optional": false, + "label": "Short Name", + "required": false, + "readOnly": false, + "multiValue": false, + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false + }, + { + "name": "statusLookup", + "type": "TO_ONE", + "dataType": "SimplifiedOptionsLookup", + "confidential": false, + "optional": false, + "label": "Status Lookup", + "required": false, + "readOnly": false, + "multiValue": false, + "optionsType": "StatusLookup", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/724kgg/options/StatusLookup", + "hideFromSearch": false, + "systemRequired": false, + "shouldAddCustomEntityLabel": false, + "associatedEntity": { + "entity": "StatusLookup", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/724kgg/meta/StatusLookup?fields=*", + "label": "Status Lookup", + "dateLastModified": "1651525370102", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer", + "optional": false + }, + { + "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/placement-data.txt b/src/test/resources/testdata/rest/placement-data.txt index 3fe6f058..65daa621 100644 --- a/src/test/resources/testdata/rest/placement-data.txt +++ b/src/test/resources/testdata/rest/placement-data.txt @@ -214,7 +214,10 @@ "id": 1, "name": "ACME Corporation" }, - "workWeekStart": 0 + "workWeekStart": 0, + "legalBusinessEntity": { + "id":1 + } }, { "id": 2,