Skip to content

Commit

Permalink
Merge pull request #288 from mkesmetzis/payBill/newEntites-v2
Browse files Browse the repository at this point in the history
Pay bill/new entites v2
  • Loading branch information
johnsully83 authored Apr 27, 2020
2 parents fb77f04 + 5f41c59 commit d43ca53
Show file tree
Hide file tree
Showing 189 changed files with 47,894 additions and 435 deletions.
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.3.3-SNAPSHOT</version>
<version>1.3.4-SNAPSHOT</version>
<packaging>jar</packaging>

<name>Bullhorn REST SDK</name>
Expand Down
183 changes: 97 additions & 86 deletions src/main/java/com/bullhornsdk/data/api/mock/MockDataLoader.groovy

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,236 @@
package com.bullhornsdk.data.model.entity.core.certificationrequirement;

import com.bullhornsdk.data.model.entity.core.paybill.optionslookup.SpecializedOptionsLookup;
import com.bullhornsdk.data.model.entity.core.standard.CandidateCertification;
import com.bullhornsdk.data.model.entity.core.standard.Certification;
import com.bullhornsdk.data.model.entity.core.standard.CorporateUser;
import com.bullhornsdk.data.model.entity.core.type.*;
import com.bullhornsdk.data.model.entity.customfields.CustomFieldsG;
import com.bullhornsdk.data.model.entity.embedded.OneToMany;
import com.bullhornsdk.data.model.entity.file.CandidateFileAttachment;
import com.bullhornsdk.data.model.entity.file.CertificationFileAttachment;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.joda.time.DateTime;

import javax.validation.constraints.Size;
import java.util.Objects;

/**
* Created by mkesmetzis 27-Apr-20
*/
public class AbstractRequirement extends CustomFieldsG implements UpdateEntity, CreateEntity, QueryEntity,
AssociationEntity, EditHistoryEntity {

private Integer id;
private CandidateCertification candidateCertification;
private Certification certification;
private OneToMany<CertificationFileAttachment> certificationFileAttachments;
private DateTime dateAdded;
private DateTime dateExpiration;
private DateTime documentDeadline;
private OneToMany<CandidateFileAttachment> fileAttachments;
private Integer matchingCredentialCount;
private CorporateUser modifyingUser;
private CorporateUser owner;
private SpecializedOptionsLookup status;
@Size(max = 100)
private String userCertificationName;
@Size(max = 30)
private String userCertificationStatus;

public AbstractRequirement() {
}

public AbstractRequirement(Integer id) {
this.id = id;
}

@Override
@JsonProperty("id")
public Integer getId() {
return id;
}

@Override
@JsonProperty("id")
public void setId(Integer id) {
this.id = id;
}

@JsonProperty("candidateCertification")
public CandidateCertification getCandidateCertification() {
return candidateCertification;
}

@JsonProperty("candidateCertification")
public void setCandidateCertification(CandidateCertification candidateCertification) {
this.candidateCertification = candidateCertification;
}

@JsonProperty("certification")
public Certification getCertification() {
return certification;
}

@JsonProperty("certification")
public void setCertification(Certification certification) {
this.certification = certification;
}

@JsonProperty("certificationFileAttachments")
public OneToMany<CertificationFileAttachment> getCertificationFileAttachments() {
return certificationFileAttachments;
}

@JsonProperty("certificationFileAttachments")
public void setCertificationFileAttachments(OneToMany<CertificationFileAttachment> certificationFileAttachments) {
this.certificationFileAttachments = certificationFileAttachments;
}

@JsonProperty("dateAdded")
public DateTime getDateAdded() {
return dateAdded;
}

@JsonProperty("dateAdded")
public void setDateAdded(DateTime dateAdded) {
this.dateAdded = dateAdded;
}

@JsonProperty("dateExpiration")
public DateTime getDateExpiration() {
return dateExpiration;
}

@JsonProperty("dateExpiration")
public void setDateExpiration(DateTime dateExpiration) {
this.dateExpiration = dateExpiration;
}

@JsonProperty("documentDeadline")
public DateTime getDocumentDeadline() {
return documentDeadline;
}

@JsonProperty("documentDeadline")
public void setDocumentDeadline(DateTime documentDeadline) {
this.documentDeadline = documentDeadline;
}

@JsonProperty("fileAttachments")
public OneToMany<CandidateFileAttachment> getFileAttachments() {
return fileAttachments;
}

@JsonProperty("fileAttachments")
public void setFileAttachments(OneToMany<CandidateFileAttachment> fileAttachments) {
this.fileAttachments = fileAttachments;
}

@JsonProperty("matchingCredentialCount")
public Integer getMatchingCredentialCount() {
return matchingCredentialCount;
}

@JsonProperty("matchingCredentialCount")
public void setMatchingCredentialCount(Integer matchingCredentialCount) {
this.matchingCredentialCount = matchingCredentialCount;
}

@JsonProperty("modifyingUser")
public CorporateUser getModifyingUser() {
return modifyingUser;
}

@JsonProperty("modifyingUser")
public void setModifyingUser(CorporateUser modifyingUser) {
this.modifyingUser = modifyingUser;
}

@JsonProperty("owner")
public CorporateUser getOwner() {
return owner;
}

@JsonProperty("owner")
public void setOwner(CorporateUser owner) {
this.owner = owner;
}

@JsonProperty("status")
public SpecializedOptionsLookup getStatus() {
return status;
}

@JsonProperty("status")
public void setStatus(SpecializedOptionsLookup status) {
this.status = status;
}

@JsonProperty("userCertificationName")
public String getUserCertificationName() {
return userCertificationName;
}

@JsonProperty("userCertificationName")
public void setUserCertificationName(String userCertificationName) {
this.userCertificationName = userCertificationName;
}

@JsonProperty("userCertificationStatus")
public String getUserCertificationStatus() {
return userCertificationStatus;
}

@JsonProperty("userCertificationStatus")
public void setUserCertificationStatus(String userCertificationStatus) {
this.userCertificationStatus = userCertificationStatus;
}

@Override
public String toString() {
return "CandidateCertificationRequirement{" +
"id=" + id +
", candidateCertification=" + candidateCertification +
", certification=" + certification +
", certificationFileAttachments=" + certificationFileAttachments +
", dateAdded=" + dateAdded +
", dateExpiration=" + dateExpiration +
", documentDeadline=" + documentDeadline +
", fileAttachments=" + fileAttachments +
", matchingCredentialCount=" + matchingCredentialCount +
", modifyingUser=" + modifyingUser +
", owner=" + owner +
", status=" + status +
", userCertificationName='" + userCertificationName + '\'' +
", userCertificationStatus='" + userCertificationStatus + '\'' +
'}';
}

@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
if (!super.equals(o)) return false;
AbstractRequirement that = (AbstractRequirement) o;
return Objects.equals(id, that.id) &&
Objects.equals(candidateCertification, that.candidateCertification) &&
Objects.equals(certification, that.certification) &&
Objects.equals(certificationFileAttachments, that.certificationFileAttachments) &&
Objects.equals(dateAdded, that.dateAdded) &&
Objects.equals(dateExpiration, that.dateExpiration) &&
Objects.equals(documentDeadline, that.documentDeadline) &&
Objects.equals(fileAttachments, that.fileAttachments) &&
Objects.equals(matchingCredentialCount, that.matchingCredentialCount) &&
Objects.equals(modifyingUser, that.modifyingUser) &&
Objects.equals(owner, that.owner) &&
Objects.equals(status, that.status) &&
Objects.equals(userCertificationName, that.userCertificationName) &&
Objects.equals(userCertificationStatus, that.userCertificationStatus);
}

@Override
public int hashCode() {
return Objects.hash(super.hashCode(), id, candidateCertification, certification, certificationFileAttachments, dateAdded, dateExpiration, documentDeadline, fileAttachments, matchingCredentialCount, modifyingUser, owner, status, userCertificationName, userCertificationStatus);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
package com.bullhornsdk.data.model.entity.core.certificationrequirement;

import com.bullhornsdk.data.model.entity.core.standard.Candidate;
import com.bullhornsdk.data.model.entity.core.type.*;
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 java.util.Objects;

/**
* Created by mkesmetzis 27-Apr-20
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonRootName(value = "data")
@JsonPropertyOrder({"id", "candidateCertification", "candidate", "certification", "certificationFileAttachments",
"customDate1", "customDate10", "customDate2", "customDate3", "customDate4", "customDate5", "customDate6",
"customDate7", "customDate8", "customDate9", "customFloat1", "customFloat2", "customFloat3", "customInt1",
"customInt2", "customInt3", "customText1", "customText10", "customText2", "customText3",
"customText4", "customText5", "customText6", "customText7", "customText8", "customText9", "customTextBlock1",
"customTextBlock10", "customTextBlock2", "customTextBlock3", "customTextBlock4", "customTextBlock5", "customTextBlock6",
"customTextBlock7", "customTextBlock8", "customTextBlock9", "dateAdded", "dateExpiration", "documentDeadline",
"fileAttachments", "matchingCredentialCount", "modifyingUser", "owner", "status", "userCertificationName",
"userCertificationStatus"})
public class CandidateCertificationRequirement extends AbstractRequirement implements UpdateEntity, CreateEntity, QueryEntity,
AssociationEntity, EditHistoryEntity {

private Candidate candidate;

public CandidateCertificationRequirement() {
}

public CandidateCertificationRequirement(Integer id) {
super(id);
}

@JsonProperty("candidate")
public Candidate getCandidate() {
return candidate;
}

@JsonProperty("candidate")
public void setCandidate(Candidate candidate) {
this.candidate = candidate;
}

@Override
public String toString() {
return "CandidateCertificationRequirement{" +
"candidate=" + candidate +
'}';
}

@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
if (!super.equals(o)) return false;
CandidateCertificationRequirement that = (CandidateCertificationRequirement) o;
return Objects.equals(candidate, that.candidate);
}

@Override
public int hashCode() {
return Objects.hash(super.hashCode(), candidate);
}
}
Loading

0 comments on commit d43ca53

Please sign in to comment.