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

tech.deepdreams.worker.api.dtos.PayslipDTO 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 java.math.BigDecimal;
import java.time.OffsetDateTime;
import java.util.ArrayList;
import java.util.List;
import tech.deepdreams.worker.api.dtos.BenefitItemDTO;
import tech.deepdreams.worker.api.dtos.ConstantValueDTO;
import tech.deepdreams.worker.api.dtos.DeductionItemDTO;
import tech.deepdreams.worker.api.dtos.EmployeeDTO;
import tech.deepdreams.worker.api.dtos.PayPeriodDTO;
import org.openapitools.jackson.nullable.JsonNullable;

/**
 * PayslipDTO
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-09-14T12:54:23.701675700-04:00[America/Toronto]")
public class PayslipDTO   {
  @JsonProperty("id")
  private BigDecimal id;

  @JsonProperty("payPeriod")
  private PayPeriodDTO payPeriod;

  @JsonProperty("employee")
  private EmployeeDTO employee;

  @JsonProperty("evalDate")
  @org.springframework.format.annotation.DateTimeFormat(iso = org.springframework.format.annotation.DateTimeFormat.ISO.DATE_TIME)
  private OffsetDateTime evalDate;

  @JsonProperty("grossSalary")
  private BigDecimal grossSalary;

  @JsonProperty("netSalary")
  private BigDecimal netSalary;

  @JsonProperty("employeeDeductions")
  private BigDecimal employeeDeductions;

  @JsonProperty("employerDeductions")
  private BigDecimal employerDeductions;

  @JsonProperty("constantValues")
  
  private List constantValues = null;

  @JsonProperty("benefitItems")
  
  private List benefitItems = null;

  @JsonProperty("deductionItems")
  
  private List deductionItems = null;

  @JsonProperty("algoVersion")
  private Integer algoVersion;

  public PayslipDTO id(BigDecimal id) {
    this.id = id;
    return this;
  }

  /**
   * Get id
   * @return id
  */
  @ApiModelProperty(value = "")
  public BigDecimal getId() {
    return id;
  }

  public void setId(BigDecimal id) {
    this.id = id;
  }

  public PayslipDTO 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 PayslipDTO 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 PayslipDTO evalDate(OffsetDateTime evalDate) {
    this.evalDate = evalDate;
    return this;
  }

  /**
   * Get evalDate
   * @return evalDate
  */
  @ApiModelProperty(value = "")
  public OffsetDateTime getEvalDate() {
    return evalDate;
  }

  public void setEvalDate(OffsetDateTime evalDate) {
    this.evalDate = evalDate;
  }

  public PayslipDTO grossSalary(BigDecimal grossSalary) {
    this.grossSalary = grossSalary;
    return this;
  }

  /**
   * Get grossSalary
   * @return grossSalary
  */
  @ApiModelProperty(value = "")
  public BigDecimal getGrossSalary() {
    return grossSalary;
  }

  public void setGrossSalary(BigDecimal grossSalary) {
    this.grossSalary = grossSalary;
  }

  public PayslipDTO netSalary(BigDecimal netSalary) {
    this.netSalary = netSalary;
    return this;
  }

  /**
   * Get netSalary
   * @return netSalary
  */
  @ApiModelProperty(value = "")
  public BigDecimal getNetSalary() {
    return netSalary;
  }

  public void setNetSalary(BigDecimal netSalary) {
    this.netSalary = netSalary;
  }

  public PayslipDTO employeeDeductions(BigDecimal employeeDeductions) {
    this.employeeDeductions = employeeDeductions;
    return this;
  }

  /**
   * Get employeeDeductions
   * @return employeeDeductions
  */
  @ApiModelProperty(value = "")
  public BigDecimal getEmployeeDeductions() {
    return employeeDeductions;
  }

  public void setEmployeeDeductions(BigDecimal employeeDeductions) {
    this.employeeDeductions = employeeDeductions;
  }

  public PayslipDTO employerDeductions(BigDecimal employerDeductions) {
    this.employerDeductions = employerDeductions;
    return this;
  }

  /**
   * Get employerDeductions
   * @return employerDeductions
  */
  @ApiModelProperty(value = "")
  public BigDecimal getEmployerDeductions() {
    return employerDeductions;
  }

  public void setEmployerDeductions(BigDecimal employerDeductions) {
    this.employerDeductions = employerDeductions;
  }

  public PayslipDTO constantValues(List constantValues) {
    this.constantValues = constantValues;
    return this;
  }

  public PayslipDTO addConstantValuesItem(ConstantValueDTO constantValuesItem) {
    if (this.constantValues == null) {
      this.constantValues = new ArrayList<>();
    }
    this.constantValues.add(constantValuesItem);
    return this;
  }

  /**
   * Get constantValues
   * @return constantValues
  */
  @ApiModelProperty(value = "")
  public List getConstantValues() {
    return constantValues;
  }

  public void setConstantValues(List constantValues) {
    this.constantValues = constantValues;
  }

  public PayslipDTO benefitItems(List benefitItems) {
    this.benefitItems = benefitItems;
    return this;
  }

  public PayslipDTO addBenefitItemsItem(BenefitItemDTO benefitItemsItem) {
    if (this.benefitItems == null) {
      this.benefitItems = new ArrayList<>();
    }
    this.benefitItems.add(benefitItemsItem);
    return this;
  }

  /**
   * Get benefitItems
   * @return benefitItems
  */
  @ApiModelProperty(value = "")
  public List getBenefitItems() {
    return benefitItems;
  }

  public void setBenefitItems(List benefitItems) {
    this.benefitItems = benefitItems;
  }

  public PayslipDTO deductionItems(List deductionItems) {
    this.deductionItems = deductionItems;
    return this;
  }

  public PayslipDTO addDeductionItemsItem(DeductionItemDTO deductionItemsItem) {
    if (this.deductionItems == null) {
      this.deductionItems = new ArrayList<>();
    }
    this.deductionItems.add(deductionItemsItem);
    return this;
  }

  /**
   * Get deductionItems
   * @return deductionItems
  */
  @ApiModelProperty(value = "")
  public List getDeductionItems() {
    return deductionItems;
  }

  public void setDeductionItems(List deductionItems) {
    this.deductionItems = deductionItems;
  }

  public PayslipDTO algoVersion(Integer algoVersion) {
    this.algoVersion = algoVersion;
    return this;
  }

  /**
   * Get algoVersion
   * @return algoVersion
  */
  @ApiModelProperty(value = "")
  public Integer getAlgoVersion() {
    return algoVersion;
  }

  public void setAlgoVersion(Integer algoVersion) {
    this.algoVersion = algoVersion;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    PayslipDTO payslip = (PayslipDTO) o;
    return Objects.equals(this.id, payslip.id) &&
        Objects.equals(this.payPeriod, payslip.payPeriod) &&
        Objects.equals(this.employee, payslip.employee) &&
        Objects.equals(this.evalDate, payslip.evalDate) &&
        Objects.equals(this.grossSalary, payslip.grossSalary) &&
        Objects.equals(this.netSalary, payslip.netSalary) &&
        Objects.equals(this.employeeDeductions, payslip.employeeDeductions) &&
        Objects.equals(this.employerDeductions, payslip.employerDeductions) &&
        Objects.equals(this.constantValues, payslip.constantValues) &&
        Objects.equals(this.benefitItems, payslip.benefitItems) &&
        Objects.equals(this.deductionItems, payslip.deductionItems) &&
        Objects.equals(this.algoVersion, payslip.algoVersion);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, payPeriod, employee, evalDate, grossSalary, netSalary, employeeDeductions, employerDeductions, constantValues, benefitItems, deductionItems, algoVersion);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class PayslipDTO {\n");
    
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    payPeriod: ").append(toIndentedString(payPeriod)).append("\n");
    sb.append("    employee: ").append(toIndentedString(employee)).append("\n");
    sb.append("    evalDate: ").append(toIndentedString(evalDate)).append("\n");
    sb.append("    grossSalary: ").append(toIndentedString(grossSalary)).append("\n");
    sb.append("    netSalary: ").append(toIndentedString(netSalary)).append("\n");
    sb.append("    employeeDeductions: ").append(toIndentedString(employeeDeductions)).append("\n");
    sb.append("    employerDeductions: ").append(toIndentedString(employerDeductions)).append("\n");
    sb.append("    constantValues: ").append(toIndentedString(constantValues)).append("\n");
    sb.append("    benefitItems: ").append(toIndentedString(benefitItems)).append("\n");
    sb.append("    deductionItems: ").append(toIndentedString(deductionItems)).append("\n");
    sb.append("    algoVersion: ").append(toIndentedString(algoVersion)).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