Skip to content

Commit 4ce285c

Browse files
angusyylAngus Yiu
andauthored
PS-33600: add LegalBusinessEntity and PayBillCycle to Placement (#451)
Co-authored-by: Angus Yiu <[email protected]>
1 parent 5ba1513 commit 4ce285c

File tree

3 files changed

+189
-4
lines changed

3 files changed

+189
-4
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>com.bullhorn</groupId>
77
<artifactId>sdk-rest</artifactId>
8-
<version>2.3.2</version>
8+
<version>2.3.3</version>
99
<packaging>jar</packaging>
1010

1111
<name>Bullhorn REST SDK</name>
Lines changed: 155 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,155 @@
1+
package com.bullhornsdk.data.model.entity.core.paybill.legalbusinessentity;
2+
3+
import com.bullhornsdk.data.model.entity.core.paybill.optionslookup.SimplifiedOptionsLookup;
4+
import com.bullhornsdk.data.model.entity.core.paybill.unit.CurrencyUnit;
5+
import com.bullhornsdk.data.model.entity.core.type.*;
6+
import com.bullhornsdk.data.util.ReadOnly;
7+
import com.fasterxml.jackson.annotation.JsonInclude;
8+
import com.fasterxml.jackson.annotation.JsonProperty;
9+
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
10+
import com.fasterxml.jackson.annotation.JsonRootName;
11+
import org.joda.time.DateTime;
12+
13+
import java.util.Objects;
14+
15+
@JsonInclude(JsonInclude.Include.NON_NULL)
16+
@JsonRootName(value = "data")
17+
@JsonPropertyOrder({"id", "countryID", "dateAdded", "dateLastModified", "currencyUnit", "isDeleted", "legalName", "legalEntityNumber", "shortName", "statusLookup"})
18+
public class LegalBusinessEntity implements QueryEntity, UpdateEntity, CreateEntity, DateLastModifiedEntity, EditHistoryEntity {
19+
20+
private Integer id;
21+
private Integer countryID;
22+
private DateTime dateAdded;
23+
private DateTime dateLastModified;
24+
private CurrencyUnit currencyUnit;
25+
private Boolean isDeleted;
26+
private String legalName;
27+
private String legalEntityNumber;
28+
private String shortName;
29+
private SimplifiedOptionsLookup statusLookup;
30+
31+
@Override
32+
@JsonProperty("id")
33+
public Integer getId() {
34+
return id;
35+
}
36+
37+
@ReadOnly
38+
@Override
39+
@JsonProperty("id")
40+
public void setId(Integer id) {
41+
this.id = id;
42+
}
43+
44+
@JsonProperty("countryID")
45+
public Integer getCountryID() {
46+
return countryID;
47+
}
48+
49+
@JsonProperty("countryID")
50+
public void setCountryID(Integer countryID) {
51+
this.countryID = countryID;
52+
}
53+
54+
@JsonProperty("dateAdded")
55+
public DateTime getDateAdded() {
56+
return dateAdded;
57+
}
58+
59+
@JsonProperty("dateAdded")
60+
public void setDateAdded(DateTime dateAdded) {
61+
this.dateAdded = dateAdded;
62+
}
63+
64+
@JsonProperty("dateLastModified")
65+
public DateTime getDateLastModified() {
66+
return dateLastModified;
67+
}
68+
69+
@JsonProperty("dateLastModified")
70+
public void setDateLastModified(DateTime dateLastModified) {
71+
this.dateLastModified = dateLastModified;
72+
}
73+
74+
@JsonProperty("currencyUnit")
75+
public CurrencyUnit getCurrencyUnit() {
76+
return currencyUnit;
77+
}
78+
79+
@JsonProperty("currencyUnit")
80+
public void setCurrencyUnit(CurrencyUnit currencyUnit) {
81+
this.currencyUnit = currencyUnit;
82+
}
83+
84+
@JsonProperty("isDeleted")
85+
public Boolean getDeleted() {
86+
return isDeleted;
87+
}
88+
89+
@JsonProperty("isDeleted")
90+
public void setDeleted(Boolean deleted) {
91+
isDeleted = deleted;
92+
}
93+
94+
@JsonProperty("legalName")
95+
public String getLegalName() {
96+
return legalName;
97+
}
98+
99+
@JsonProperty("legalName")
100+
public void setLegalName(String legalName) {
101+
this.legalName = legalName;
102+
}
103+
104+
@JsonProperty("legalEntityNumber")
105+
public String getLegalEntityNumber() {
106+
return legalEntityNumber;
107+
}
108+
109+
@JsonProperty("legalEntityNumber")
110+
public void setLegalEntityNumber(String legalEntityNumber) {
111+
this.legalEntityNumber = legalEntityNumber;
112+
}
113+
114+
@JsonProperty("shortName")
115+
public String getShortName() {
116+
return shortName;
117+
}
118+
119+
@JsonProperty("shortName")
120+
public void setShortName(String shortName) {
121+
this.shortName = shortName;
122+
}
123+
124+
@JsonProperty("statusLookup")
125+
public SimplifiedOptionsLookup getStatusLookup() {
126+
return statusLookup;
127+
}
128+
129+
@JsonProperty("statusLookup")
130+
public void setStatusLookup(SimplifiedOptionsLookup statusLookup) {
131+
this.statusLookup = statusLookup;
132+
}
133+
134+
@Override
135+
public boolean equals(Object o) {
136+
if (this == o) return true;
137+
if (o == null || getClass() != o.getClass()) return false;
138+
LegalBusinessEntity that = (LegalBusinessEntity) o;
139+
return Objects.equals(id, that.id) &&
140+
Objects.equals(countryID, that.countryID) &&
141+
Objects.equals(dateAdded, that.dateAdded) &&
142+
Objects.equals(dateLastModified, that.dateLastModified) &&
143+
Objects.equals(currencyUnit, that.currencyUnit) &&
144+
Objects.equals(isDeleted, that.isDeleted) &&
145+
Objects.equals(legalName, that.legalName) &&
146+
Objects.equals(legalEntityNumber, that.legalEntityNumber) &&
147+
Objects.equals(shortName, that.shortName) &&
148+
Objects.equals(statusLookup, that.statusLookup);
149+
}
150+
151+
@Override
152+
public int hashCode() {
153+
return Objects.hash(id, countryID, dateAdded, dateLastModified, currencyUnit, isDeleted, legalName, legalEntityNumber, shortName, statusLookup);
154+
}
155+
}

src/main/java/com/bullhornsdk/data/model/entity/core/standard/Placement.java

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
import com.bullhornsdk.data.model.entity.core.onboarding.OnboardingReceivedSent;
1616
import com.bullhornsdk.data.model.entity.core.paybill.BillingProfile;
1717
import com.bullhornsdk.data.model.entity.core.paybill.generalledger.*;
18+
import com.bullhornsdk.data.model.entity.core.paybill.invoice.PayBillCycle;
19+
import com.bullhornsdk.data.model.entity.core.paybill.legalbusinessentity.LegalBusinessEntity;
1820
import com.bullhornsdk.data.model.entity.core.paybill.optionslookup.SimplifiedOptionsLookup;
1921
import com.bullhornsdk.data.model.entity.core.type.AssociationEntity;
2022
import com.bullhornsdk.data.model.entity.core.type.CreateEntity;
@@ -70,14 +72,14 @@
7072
"dateClientEffective", "dateEffective", "dateEnd", "dateLastModified", "daysGuaranteed", "daysProRated", "durationWeeks", "employeeType",
7173
"employmentType", "fee", "flatFee", "fileAttachments", "generalLedgerSegment1", "generalLedgerSegment2", "generalLedgerSegment3", "generalLedgerSegment4",
7274
"generalLedgerSegment5", "hoursOfOperation", "hoursPerDay", "housingManagerID", "housingStatus", "invoiceGroupName",
73-
"jobOrder", "jobSubmission", "lastBteSyncDate", "markUpPercentage", "migrateGUID", "notes", "overtimeMarkUpPercentage", "optionsPackage",
75+
"jobOrder", "jobSubmission", "lastBteSyncDate", "legalBusinessEntity", "markUpPercentage", "migrateGUID", "notes", "overtimeMarkUpPercentage", "optionsPackage",
7476
"onboardingDocumentReceivedCount", "onboardingDocumentSentCount", "onboardingPercentComplete", "onboardingReceivedSent", "onboardingStatus",
7577
"otExemption", "otherHourlyFee", "otherHourlyFeeComments", "overtimeRate", "payRate", "projectCodeList",
7678
"recruitingManagerPercentGrossMargin", "referralFee", "referralFeeType", "reportTo", "reportedMargin", "salary", "salaryUnit",
7779
"salesManagerPercentGrossMargin", "statementClientContact", "status", "tasks", "taxRate", "taxState", "terminationReason",
7880
"timeUnits", "vendorClientCorporation", "workWeekStart", "workersCompensationRate", "customObject1s", "customObject2s", "customObject3s", "customObject4s",
7981
"customObject5s", "customObject6s", "customObject7s", "customObject8s", "customObject9s", "customObject10s", "location", "timeAndExpense", "placementShiftSet",
80-
"approvedChangeRequests", "approvedPlacementRateCardChangeRequests", "benefitGroup", "canEnterTime", "clientContact", "clientCorporation",
82+
"timesheetCycle", "approvedChangeRequests", "approvedPlacementRateCardChangeRequests", "benefitGroup", "canEnterTime", "clientContact", "clientCorporation",
8183
"clientRating", "customText50", "draftPlacementRateCardChangeRequests", "employmentStartDate", "estaffGUID", "estimatedEndDate",
8284
"expiringCredentials", "housingAmenities", "incompleteRequirements", "isMultirate", "isWorkFromHome", "lastApprovedPlacementChangeRequest",
8385
"owner", "owners", "payGroup", "payrollEmployeeType", "payrollSyncStatus", "pendingChangeRequests", "pendingPlacementRateCardChangeRequests",
@@ -192,6 +194,8 @@ public class Placement extends CustomFieldsD implements SearchEntity, QueryEntit
192194

193195
private JobSubmission jobSubmission;
194196

197+
private LegalBusinessEntity legalBusinessEntity;
198+
195199
private Object migrateGUID;
196200

197201
@JsonIgnore
@@ -227,6 +231,8 @@ public class Placement extends CustomFieldsD implements SearchEntity, QueryEntit
227231

228232
private BigDecimal payRate;
229233

234+
private PayBillCycle timesheetCycle;
235+
230236
@JsonIgnore
231237
private String projectCodeList;
232238

@@ -819,6 +825,16 @@ public void setJobSubmission(JobSubmission jobSubmission) {
819825
this.jobSubmission = jobSubmission;
820826
}
821827

828+
@JsonProperty("legalBusinessEntity")
829+
public LegalBusinessEntity getLegalBusinessEntity() {
830+
return legalBusinessEntity;
831+
}
832+
833+
@JsonProperty("legalBusinessEntity")
834+
public void setLegalBusinessEntity(LegalBusinessEntity legalBusinessEntity) {
835+
this.legalBusinessEntity = legalBusinessEntity;
836+
}
837+
822838
@JsonProperty("markUpPercentage")
823839
public BigDecimal getMarkUpPercentage() {
824840
return markUpPercentage;
@@ -990,6 +1006,16 @@ public void setProjectCodeList(String projectCodeList) {
9901006
this.projectCodeList = projectCodeList;
9911007
}
9921008

1009+
@JsonProperty("timesheetCycle")
1010+
public PayBillCycle getTimesheetCycle() {
1011+
return timesheetCycle;
1012+
}
1013+
1014+
@JsonProperty("timesheetCycle")
1015+
public void setTimesheetCycle(PayBillCycle timesheetCycle) {
1016+
this.timesheetCycle = timesheetCycle;
1017+
}
1018+
9931019
@JsonProperty("recruitingManagerPercentGrossMargin")
9941020
public BigDecimal getRecruitingManagerPercentGrossMargin() {
9951021
return recruitingManagerPercentGrossMargin;
@@ -1649,6 +1675,7 @@ public boolean equals(Object o) {
16491675
Objects.equals(invoiceGroupName, placement.invoiceGroupName) &&
16501676
Objects.equals(jobOrder, placement.jobOrder) &&
16511677
Objects.equals(jobSubmission, placement.jobSubmission) &&
1678+
Objects.equals(legalBusinessEntity, placement.legalBusinessEntity) &&
16521679
Objects.equals(migrateGUID, placement.migrateGUID) &&
16531680
Objects.equals(optionsPackage, placement.optionsPackage) &&
16541681
Objects.equals(onboardingDocumentReceivedCount, placement.onboardingDocumentReceivedCount) &&
@@ -1666,6 +1693,7 @@ public boolean equals(Object o) {
16661693
Objects.equals(payGroup, placement.payGroup) &&
16671694
Objects.equals(payRate, placement.payRate) &&
16681695
Objects.equals(projectCodeList, placement.projectCodeList) &&
1696+
Objects.equals(timesheetCycle, placement.timesheetCycle) &&
16691697
Objects.equals(recruitingManagerPercentGrossMargin, placement.recruitingManagerPercentGrossMargin) &&
16701698
Objects.equals(referralFee, placement.referralFee) &&
16711699
Objects.equals(referralFeeType, placement.referralFeeType) &&
@@ -1701,7 +1729,7 @@ public boolean equals(Object o) {
17011729
@Override
17021730
public int hashCode() {
17031731

1704-
return Objects.hash(super.hashCode(), id, appointments, approvingClientContact, backupApprovingClientContact, billingClientContact, billingProfile, billingFrequency, bonusPackage, branch, candidate, placementCertifications, changeRequests, clientBillRate, clientOvertimeRate, comments, commissions, location, timeAndExpense, placementShiftSet, costCenter, dateAdded, dateBegin, dateClientEffective, dateEffective, dateEnd, dateLastModified, daysGuaranteed, daysProRated, durationWeeks, employeeType, employmentType, fee, flatFee, fileAttachments, generalLedgerSegment1, generalLedgerSegment2, generalLedgerSegment3, generalLedgerSegment4, generalLedgerSegment5, 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, bteSyncStatus, lastBteSyncDate);
1732+
return Objects.hash(super.hashCode(), id, appointments, approvingClientContact, backupApprovingClientContact, billingClientContact, billingProfile, billingFrequency, bonusPackage, branch, candidate, placementCertifications, changeRequests, clientBillRate, clientOvertimeRate, comments, commissions, location, timeAndExpense, placementShiftSet, costCenter, dateAdded, dateBegin, dateClientEffective, dateEffective, dateEnd, dateLastModified, daysGuaranteed, daysProRated, durationWeeks, employeeType, employmentType, fee, flatFee, fileAttachments, generalLedgerSegment1, generalLedgerSegment2, generalLedgerSegment3, generalLedgerSegment4, generalLedgerSegment5, hoursOfOperation, hoursPerDay, housingManagerID, housingStatus, invoiceGroupName, jobOrder, jobSubmission, legalBusinessEntity, migrateGUID, optionsPackage, onboardingDocumentReceivedCount, onboardingDocumentSentCount, onboardingPercentComplete, onboardingReceivedSent, onboardingStatus, otExemption, otherHourlyFee, markUpPercentage, notes, otherHourlyFeeComments, overtimeMarkUpPercentage, overtimeRate, payGroup, payRate, projectCodeList, timesheetCycle, 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, bteSyncStatus, lastBteSyncDate);
17051733
}
17061734

17071735
@Override
@@ -1753,6 +1781,7 @@ public String toString() {
17531781
", invoiceGroupName='" + invoiceGroupName + '\'' +
17541782
", jobOrder=" + jobOrder +
17551783
", jobSubmission=" + jobSubmission +
1784+
", legalBusinessEntity=" + legalBusinessEntity +
17561785
", migrateGUID=" + migrateGUID +
17571786
", optionsPackage='" + optionsPackage + '\'' +
17581787
", onboardingDocumentReceivedCount=" + onboardingDocumentReceivedCount +
@@ -1770,6 +1799,7 @@ public String toString() {
17701799
", payGroup=" + payGroup +
17711800
", payRate=" + payRate +
17721801
", projectCodeList='" + projectCodeList + '\'' +
1802+
", timesheetCycle=" + timesheetCycle +
17731803
", recruitingManagerPercentGrossMargin=" + recruitingManagerPercentGrossMargin +
17741804
", referralFee=" + referralFee +
17751805
", referralFeeType='" + referralFeeType + '\'' +

0 commit comments

Comments
 (0)