Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PS-25410: added legalBusinessEntity #376

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>com.bullhorn</groupId>
<artifactId>sdk-rest</artifactId>
<version>1.4.38</version>
<version>1.4.39</version>
<packaging>jar</packaging>

<name>Bullhorn REST SDK</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -679,6 +679,8 @@ public class MockDataLoader {

entityFiles.put(CandidateAvailability.class, "candidateavailability-data.txt");

entityFiles.put(LegalBusinessEntity.class, "legalbusinessentity-data.txt");

return entityFiles;
}

Expand Down Expand Up @@ -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;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -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 +
'}';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down Expand Up @@ -257,6 +258,8 @@ public class Placement extends CustomFieldsD implements SearchEntity, QueryEntit

private WorkersCompensationRate workersCompensationRate;

private LegalBusinessEntity legalBusinessEntity;

private OneToMany<PlacementCustomObjectInstance1> customObject1s;

private OneToMany<PlacementCustomObjectInstance2> customObject2s;
Expand Down Expand Up @@ -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<StandardFileAttachment> getFileAttachments() {
return fileAttachments;
Expand Down Expand Up @@ -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) &&
Expand All @@ -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
Expand Down Expand Up @@ -1367,6 +1381,7 @@ public String toString() {
", vendorClientCorporation=" + vendorClientCorporation +
", workWeekStart=" + workWeekStart +
", workersCompensationRate=" + workersCompensationRate +
", legalBusinessEntity=" + legalBusinessEntity +
", customObject1s=" + customObject1s +
", customObject2s=" + customObject2s +
", customObject3s=" + customObject3s +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
Original file line number Diff line number Diff line change
@@ -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<LegalBusinessEntity> {

}
Original file line number Diff line number Diff line change
@@ -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<LegalBusinessEntity> {

}
Loading