All Downloads are FREE. Search and download functionalities are using the official Maven repository.

tech.deepdreams.worker.api.dtos.EmployeePayslipDTO Maven / Gradle / Ivy

There is a newer version: 0.1.1-RELEASE
Show newest version
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-24T04:57:07.737051-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    ");
  }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy