tech.deepdreams.worker.api.dtos.BenefitItemDTO 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 java.math.BigDecimal;
import tech.deepdreams.worker.api.dtos.ElementDTO;
import tech.deepdreams.worker.api.dtos.EmployeeDTO;
import tech.deepdreams.worker.api.dtos.PayPeriodDTO;
import tech.deepdreams.worker.api.dtos.PayslipDTO;
import org.openapitools.jackson.nullable.JsonNullable;
/**
* BenefitItemDTO
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-09-24T04:57:07.737051-04:00[America/Toronto]")
public class BenefitItemDTO {
@JsonProperty("id")
private Long id;
@JsonProperty("payPeriod")
private PayPeriodDTO payPeriod;
@JsonProperty("payslip")
private PayslipDTO payslip;
@JsonProperty("employee")
private EmployeeDTO employee;
@JsonProperty("element")
private ElementDTO element;
@JsonProperty("givenInKind")
private Boolean givenInKind;
@JsonProperty("amount")
private BigDecimal amount;
@JsonProperty("number")
private Integer number;
public BenefitItemDTO id(Long id) {
this.id = id;
return this;
}
/**
* Get id
* @return id
*/
@ApiModelProperty(value = "")
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public BenefitItemDTO payPeriod(PayPeriodDTO payPeriod) {
this.payPeriod = payPeriod;
return this;
}
/**
* Get payPeriod
* @return payPeriod
*/
@ApiModelProperty(value = "")
public PayPeriodDTO getPayPeriod() {
return payPeriod;
}
public void setPayPeriod(PayPeriodDTO payPeriod) {
this.payPeriod = payPeriod;
}
public BenefitItemDTO 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;
}
public BenefitItemDTO 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 BenefitItemDTO element(ElementDTO element) {
this.element = element;
return this;
}
/**
* Get element
* @return element
*/
@ApiModelProperty(value = "")
public ElementDTO getElement() {
return element;
}
public void setElement(ElementDTO element) {
this.element = element;
}
public BenefitItemDTO givenInKind(Boolean givenInKind) {
this.givenInKind = givenInKind;
return this;
}
/**
* Get givenInKind
* @return givenInKind
*/
@ApiModelProperty(value = "")
public Boolean getGivenInKind() {
return givenInKind;
}
public void setGivenInKind(Boolean givenInKind) {
this.givenInKind = givenInKind;
}
public BenefitItemDTO amount(BigDecimal amount) {
this.amount = amount;
return this;
}
/**
* Get amount
* @return amount
*/
@ApiModelProperty(value = "")
public BigDecimal getAmount() {
return amount;
}
public void setAmount(BigDecimal amount) {
this.amount = amount;
}
public BenefitItemDTO number(Integer number) {
this.number = number;
return this;
}
/**
* Get number
* @return number
*/
@ApiModelProperty(value = "")
public Integer getNumber() {
return number;
}
public void setNumber(Integer number) {
this.number = number;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
BenefitItemDTO benefitItem = (BenefitItemDTO) o;
return Objects.equals(this.id, benefitItem.id) &&
Objects.equals(this.payPeriod, benefitItem.payPeriod) &&
Objects.equals(this.payslip, benefitItem.payslip) &&
Objects.equals(this.employee, benefitItem.employee) &&
Objects.equals(this.element, benefitItem.element) &&
Objects.equals(this.givenInKind, benefitItem.givenInKind) &&
Objects.equals(this.amount, benefitItem.amount) &&
Objects.equals(this.number, benefitItem.number);
}
@Override
public int hashCode() {
return Objects.hash(id, payPeriod, payslip, employee, element, givenInKind, amount, number);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class BenefitItemDTO {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" payPeriod: ").append(toIndentedString(payPeriod)).append("\n");
sb.append(" payslip: ").append(toIndentedString(payslip)).append("\n");
sb.append(" employee: ").append(toIndentedString(employee)).append("\n");
sb.append(" element: ").append(toIndentedString(element)).append("\n");
sb.append(" givenInKind: ").append(toIndentedString(givenInKind)).append("\n");
sb.append(" amount: ").append(toIndentedString(amount)).append("\n");
sb.append(" number: ").append(toIndentedString(number)).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 ");
}
}