tech.deepdreams.worker.api.dtos.EmployeePayslipDTO Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of worker-api Show documentation
Show all versions of worker-api Show documentation
Payroll Worker API project for Java 17
package tech.deepdreams.worker.api.dtos;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import tech.deepdreams.worker.api.dtos.EmployeeDTO;
import tech.deepdreams.worker.api.dtos.PayslipDTO;
import org.openapitools.jackson.nullable.JsonNullable;
/**
* EmployeePayslipDTO
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-09-27T12:27:26.661192300-04:00[America/Toronto]")
public class EmployeePayslipDTO {
@JsonProperty("employee")
private EmployeeDTO employee;
@JsonProperty("payslip")
private PayslipDTO payslip;
public EmployeePayslipDTO employee(EmployeeDTO employee) {
this.employee = employee;
return this;
}
/**
* Get employee
* @return employee
*/
@ApiModelProperty(value = "")
public EmployeeDTO getEmployee() {
return employee;
}
public void setEmployee(EmployeeDTO employee) {
this.employee = employee;
}
public EmployeePayslipDTO payslip(PayslipDTO payslip) {
this.payslip = payslip;
return this;
}
/**
* Get payslip
* @return payslip
*/
@ApiModelProperty(value = "")
public PayslipDTO getPayslip() {
return payslip;
}
public void setPayslip(PayslipDTO payslip) {
this.payslip = payslip;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
EmployeePayslipDTO employeePayslip = (EmployeePayslipDTO) o;
return Objects.equals(this.employee, employeePayslip.employee) &&
Objects.equals(this.payslip, employeePayslip.payslip);
}
@Override
public int hashCode() {
return Objects.hash(employee, payslip);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class EmployeePayslipDTO {\n");
sb.append(" employee: ").append(toIndentedString(employee)).append("\n");
sb.append(" payslip: ").append(toIndentedString(payslip)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}