Skip to content

Commit

Permalink
BH-76539 adding bte fields to Placement
Browse files Browse the repository at this point in the history
  • Loading branch information
ShylendraPandravisam committed Jul 21, 2022
1 parent 683aac8 commit 8648d07
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import com.bullhornsdk.data.model.entity.core.onboarding.OnboardingReceivedSent;
import com.bullhornsdk.data.model.entity.core.paybill.BillingProfile;
import com.bullhornsdk.data.model.entity.core.paybill.generalledger.*;
import com.bullhornsdk.data.model.entity.core.paybill.optionslookup.SimplifiedOptionsLookup;
import com.bullhornsdk.data.model.entity.core.type.AssociationEntity;
import com.bullhornsdk.data.model.entity.core.type.CreateEntity;
import com.bullhornsdk.data.model.entity.core.type.DateLastModifiedEntity;
Expand Down Expand Up @@ -43,7 +44,7 @@
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonRootName(value = "data")
@JsonPropertyOrder({ "id", "appointments", "approvingClientContact", "backupApprovingClientContact", "billingClientContact",
"billingFrequency", "billingProfile", "bonusPackage", "branch", "candidate", "placementCertifications", "changeRequests", "clientBillRate", "clientOvertimeRate",
"billingFrequency", "billingProfile", "bonusPackage", "branch", "bteSyncStatus", "candidate", "placementCertifications", "changeRequests", "clientBillRate", "clientOvertimeRate",
"comments", "commissions", "correlatedCustomDate1", "correlatedCustomDate2", "correlatedCustomDate3", "correlatedCustomFloat1",
"correlatedCustomFloat2", "correlatedCustomFloat3", "correlatedCustomInt1", "correlatedCustomInt2", "correlatedCustomInt3",
"correlatedCustomText1", "correlatedCustomText10", "correlatedCustomText2", "correlatedCustomText3", "correlatedCustomText4",
Expand Down Expand Up @@ -72,7 +73,7 @@
"dateClientEffective", "dateEffective", "dateEnd", "dateLastModified", "daysGuaranteed", "daysProRated", "durationWeeks", "employeeType",
"employmentType", "fee", "flatFee", "fileAttachments", "generalLedgerSegment1", "generalLedgerSegment2", "generalLedgerSegment3", "generalLedgerSegment4",
"generalLedgerSegment5", "hoursOfOperation", "hoursPerDay", "housingManagerID", "housingStatus", "invoiceGroupName",
"jobOrder", "jobSubmission", "markUpPercentage", "migrateGUID", "notes", "overtimeMarkUpPercentage", "optionsPackage",
"jobOrder", "jobSubmission", "lastBteSyncDate", "markUpPercentage", "migrateGUID", "notes", "overtimeMarkUpPercentage", "optionsPackage",
"onboardingDocumentReceivedCount", "onboardingDocumentSentCount", "onboardingPercentComplete", "onboardingReceivedSent", "onboardingStatus",
"otExemption", "otherHourlyFee", "otherHourlyFeeComments", "overtimeRate", "payRate", "projectCodeList",
"recruitingManagerPercentGrossMargin", "referralFee", "referralFeeType", "reportTo", "reportedMargin", "salary", "salaryUnit",
Expand Down Expand Up @@ -289,6 +290,10 @@ public class Placement extends CustomFieldsD implements SearchEntity, QueryEntit

private OneToMany<PlacementCustomObjectInstance10> customObject10s;

private SimplifiedOptionsLookup bteSyncStatus;

private DateTime lastBteSyncDate;

public Placement() {
super();
}
Expand Down Expand Up @@ -1252,6 +1257,26 @@ public void setTimeAndExpense(PlacementTimeAndExpense timeAndExpense) {
this.timeAndExpense = timeAndExpense;
}

@JsonProperty("bteSyncStatus")
public SimplifiedOptionsLookup getBteSyncStatus() {
return bteSyncStatus;
}

@JsonProperty("bteSyncStatus")
public void setBteSyncStatus(SimplifiedOptionsLookup bteSyncStatus) {
this.bteSyncStatus = bteSyncStatus;
}

@JsonProperty("lastBteSyncDate")
public DateTime getLastBteSyncDate() {
return lastBteSyncDate;
}

@JsonProperty("lastBteSyncDate")
public void setLastBteSyncDate(DateTime lastBteSyncDate) {
this.lastBteSyncDate = lastBteSyncDate;
}

@Override
public boolean equals(Object o) {
if (this == o) return true;
Expand Down
40 changes: 40 additions & 0 deletions src/test/resources/testdata/rest/placement-data.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
},
"billingFrequency": "Weekly",
"bonusPackage": "0",
"bteSyncStatus": null,
"candidate": {
"id": 1,
"firstName": "Toad",
Expand Down Expand Up @@ -165,6 +166,7 @@
"jobSubmission": {
"id": 1
},
"lastBteSyncDate": null,
"migrateGUID": null,
"notes": {
"total": 0,
Expand Down Expand Up @@ -239,6 +241,7 @@
},
"billingFrequency": "Weekly",
"bonusPackage": "0",
"bteSyncStatus": null,
"candidate": {
"id": 1,
"firstName": "Toad",
Expand Down Expand Up @@ -378,6 +381,7 @@
"jobSubmission": {
"id": 2
},
"lastBteSyncDate": null,
"migrateGUID": null,
"notes": {
"total": 0,
Expand Down Expand Up @@ -444,6 +448,7 @@
},
"billingFrequency": null,
"bonusPackage": null,
"bteSyncStatus": null,
"candidate": {
"id": 6,
"firstName": "Fresh",
Expand Down Expand Up @@ -583,6 +588,7 @@
"jobSubmission": {
"id": 1
},
"lastBteSyncDate": null,
"migrateGUID": null,
"notes": {
"total": 0,
Expand Down Expand Up @@ -650,6 +656,7 @@
},
"billingFrequency": "Weekly",
"bonusPackage": "0",
"bteSyncStatus": null,
"candidate": {
"id": 1,
"firstName": "Toad",
Expand Down Expand Up @@ -789,6 +796,7 @@
"jobSubmission": {
"id": 3
},
"lastBteSyncDate": null,
"migrateGUID": null,
"notes": {
"total": 0,
Expand Down Expand Up @@ -863,6 +871,7 @@
},
"billingFrequency": "Weekly",
"bonusPackage": "0",
"bteSyncStatus": null,
"candidate": {
"id": 1,
"firstName": "Toad",
Expand Down Expand Up @@ -1002,6 +1011,7 @@
"jobSubmission": {
"id": 1165
},
"lastBteSyncDate": null,
"migrateGUID": null,
"notes": {
"total": 0,
Expand Down Expand Up @@ -1068,6 +1078,7 @@
},
"billingFrequency": null,
"bonusPackage": null,
"bteSyncStatus": null,
"candidate": {
"id": 6,
"firstName": "Fresh",
Expand Down Expand Up @@ -1207,6 +1218,7 @@
"jobSubmission": {
"id": 1
},
"lastBteSyncDate": null,
"migrateGUID": null,
"notes": {
"total": 0,
Expand Down Expand Up @@ -1274,6 +1286,7 @@
},
"billingFrequency": "Weekly",
"bonusPackage": "0",
"bteSyncStatus": null,
"candidate": {
"id": 1,
"firstName": "Toad",
Expand Down Expand Up @@ -1413,6 +1426,7 @@
"jobSubmission": {
"id": 1
},
"lastBteSyncDate": null,
"migrateGUID": null,
"notes": {
"total": 0,
Expand Down Expand Up @@ -1487,6 +1501,7 @@
},
"billingFrequency": "Weekly",
"bonusPackage": "0",
"bteSyncStatus": null,
"candidate": {
"id": 1,
"firstName": "Toad",
Expand Down Expand Up @@ -1626,6 +1641,7 @@
"jobSubmission": {
"id": 1
},
"lastBteSyncDate": null,
"migrateGUID": null,
"notes": {
"total": 0,
Expand Down Expand Up @@ -1692,6 +1708,7 @@
},
"billingFrequency": null,
"bonusPackage": null,
"bteSyncStatus": null,
"candidate": {
"id": 6,
"firstName": "Fresh",
Expand Down Expand Up @@ -1831,6 +1848,7 @@
"jobSubmission": {
"id": 1
},
"lastBteSyncDate": null,
"migrateGUID": null,
"notes": {
"total": 0,
Expand Down Expand Up @@ -1898,6 +1916,7 @@
},
"billingFrequency": "Weekly",
"bonusPackage": "0",
"bteSyncStatus": null,
"candidate": {
"id": 1,
"firstName": "Toad",
Expand Down Expand Up @@ -2037,6 +2056,7 @@
"jobSubmission": {
"id": 1
},
"lastBteSyncDate": null,
"migrateGUID": null,
"notes": {
"total": 0,
Expand Down Expand Up @@ -2111,6 +2131,7 @@
},
"billingFrequency": "Weekly",
"bonusPackage": "0",
"bteSyncStatus": null,
"candidate": {
"id": 1,
"firstName": "Toad",
Expand Down Expand Up @@ -2250,6 +2271,7 @@
"jobSubmission": {
"id": 1
},
"lastBteSyncDate": null,
"migrateGUID": null,
"notes": {
"total": 0,
Expand Down Expand Up @@ -2316,6 +2338,7 @@
},
"billingFrequency": null,
"bonusPackage": null,
"bteSyncStatus": null,
"candidate": {
"id": 6,
"firstName": "Fresh",
Expand Down Expand Up @@ -2455,6 +2478,7 @@
"jobSubmission": {
"id": 1
},
"lastBteSyncDate": null,
"migrateGUID": null,
"notes": {
"total": 0,
Expand Down Expand Up @@ -2522,6 +2546,7 @@
},
"billingFrequency": "Weekly",
"bonusPackage": "0",
"bteSyncStatus": null,
"candidate": {
"id": 1,
"firstName": "Toad",
Expand Down Expand Up @@ -2661,6 +2686,7 @@
"jobSubmission": {
"id": 1
},
"lastBteSyncDate": null,
"migrateGUID": null,
"notes": {
"total": 0,
Expand Down Expand Up @@ -2727,6 +2753,7 @@
},
"billingFrequency": null,
"bonusPackage": null,
"bteSyncStatus": null,
"candidate": {
"id": 6,
"firstName": "Fresh",
Expand Down Expand Up @@ -2866,6 +2893,7 @@
"jobSubmission": {
"id": 1
},
"lastBteSyncDate": null,
"migrateGUID": null,
"notes": {
"total": 0,
Expand Down Expand Up @@ -2933,6 +2961,7 @@
},
"billingFrequency": "Weekly",
"bonusPackage": "0",
"bteSyncStatus": null,
"candidate": {
"id": 1,
"firstName": "Toad",
Expand Down Expand Up @@ -3072,6 +3101,7 @@
"jobSubmission": {
"id": 1
},
"lastBteSyncDate": null,
"migrateGUID": null,
"notes": {
"total": 0,
Expand Down Expand Up @@ -3146,6 +3176,7 @@
},
"billingFrequency": "Weekly",
"bonusPackage": "0",
"bteSyncStatus": null,
"candidate": {
"id": 1,
"firstName": "Toad",
Expand Down Expand Up @@ -3285,6 +3316,7 @@
"jobSubmission": {
"id": 1
},
"lastBteSyncDate": null,
"migrateGUID": null,
"notes": {
"total": 0,
Expand Down Expand Up @@ -3359,6 +3391,7 @@
},
"billingFrequency": "Weekly",
"bonusPackage": "0",
"bteSyncStatus": null,
"candidate": {
"id": 1,
"firstName": "Toad",
Expand Down Expand Up @@ -3498,6 +3531,7 @@
"jobSubmission": {
"id": 1
},
"lastBteSyncDate": null,
"migrateGUID": null,
"notes": {
"total": 0,
Expand Down Expand Up @@ -3572,6 +3606,7 @@
},
"billingFrequency": "Weekly",
"bonusPackage": "0",
"bteSyncStatus": null,
"candidate": {
"id": 1,
"firstName": "Toad",
Expand Down Expand Up @@ -3711,6 +3746,7 @@
"jobSubmission": {
"id": 1
},
"lastBteSyncDate": null,
"migrateGUID": null,
"notes": {
"total": 0,
Expand Down Expand Up @@ -3777,6 +3813,7 @@
},
"billingFrequency": null,
"bonusPackage": null,
"bteSyncStatus": null,
"candidate": {
"id": 6,
"firstName": "Fresh",
Expand Down Expand Up @@ -3916,6 +3953,7 @@
"jobSubmission": {
"id": 1
},
"lastBteSyncDate": null,
"migrateGUID": null,
"notes": {
"total": 0,
Expand Down Expand Up @@ -3983,6 +4021,7 @@
},
"billingFrequency": "Weekly",
"bonusPackage": "0",
"bteSyncStatus": null,
"candidate": {
"id": 1,
"firstName": "Toad",
Expand Down Expand Up @@ -4122,6 +4161,7 @@
"jobSubmission": {
"id": 4
},
"lastBteSyncDate": null,
"migrateGUID": null,
"notes": {
"total": 0,
Expand Down

0 comments on commit 8648d07

Please sign in to comment.