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

tech.deepdreams.worker.api.dtos.PayPeriodDTO 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.LocalDate;
import tech.deepdreams.worker.api.dtos.SubscriberDTO;
import org.openapitools.jackson.nullable.JsonNullable;

/**
 * PayPeriodDTO
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-09-24T04:57:07.737051-04:00[America/Toronto]")
public class PayPeriodDTO   {
  @JsonProperty("id")
  private Long id;

  @JsonProperty("subscriber")
  private SubscriberDTO subscriber;

  @JsonProperty("year")
  private BigDecimal year;

  @JsonProperty("startDate")
  @org.springframework.format.annotation.DateTimeFormat(iso = org.springframework.format.annotation.DateTimeFormat.ISO.DATE)
  private LocalDate startDate;

  @JsonProperty("endDate")
  @org.springframework.format.annotation.DateTimeFormat(iso = org.springframework.format.annotation.DateTimeFormat.ISO.DATE)
  private LocalDate endDate;

  @JsonProperty("workingHours")
  private Double workingHours;

  @JsonProperty("enableOvertime")
  private Boolean enableOvertime;

  @JsonProperty("enableAbsences")
  private Boolean enableAbsences;

  @JsonProperty("enableSeniority")
  private Boolean enableSeniority;

  @JsonProperty("status")
  private String status;

  public PayPeriodDTO 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 PayPeriodDTO subscriber(SubscriberDTO subscriber) {
    this.subscriber = subscriber;
    return this;
  }

  /**
   * Get subscriber
   * @return subscriber
  */
  @ApiModelProperty(value = "")
  public SubscriberDTO getSubscriber() {
    return subscriber;
  }

  public void setSubscriber(SubscriberDTO subscriber) {
    this.subscriber = subscriber;
  }

  public PayPeriodDTO year(BigDecimal year) {
    this.year = year;
    return this;
  }

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

  public void setYear(BigDecimal year) {
    this.year = year;
  }

  public PayPeriodDTO startDate(LocalDate startDate) {
    this.startDate = startDate;
    return this;
  }

  /**
   * Get startDate
   * @return startDate
  */
  @ApiModelProperty(value = "")
  public LocalDate getStartDate() {
    return startDate;
  }

  public void setStartDate(LocalDate startDate) {
    this.startDate = startDate;
  }

  public PayPeriodDTO endDate(LocalDate endDate) {
    this.endDate = endDate;
    return this;
  }

  /**
   * Get endDate
   * @return endDate
  */
  @ApiModelProperty(value = "")
  public LocalDate getEndDate() {
    return endDate;
  }

  public void setEndDate(LocalDate endDate) {
    this.endDate = endDate;
  }

  public PayPeriodDTO workingHours(Double workingHours) {
    this.workingHours = workingHours;
    return this;
  }

  /**
   * Get workingHours
   * @return workingHours
  */
  @ApiModelProperty(value = "")
  public Double getWorkingHours() {
    return workingHours;
  }

  public void setWorkingHours(Double workingHours) {
    this.workingHours = workingHours;
  }

  public PayPeriodDTO enableOvertime(Boolean enableOvertime) {
    this.enableOvertime = enableOvertime;
    return this;
  }

  /**
   * Get enableOvertime
   * @return enableOvertime
  */
  @ApiModelProperty(value = "")
  public Boolean getEnableOvertime() {
    return enableOvertime;
  }

  public void setEnableOvertime(Boolean enableOvertime) {
    this.enableOvertime = enableOvertime;
  }

  public PayPeriodDTO enableAbsences(Boolean enableAbsences) {
    this.enableAbsences = enableAbsences;
    return this;
  }

  /**
   * Get enableAbsences
   * @return enableAbsences
  */
  @ApiModelProperty(value = "")
  public Boolean getEnableAbsences() {
    return enableAbsences;
  }

  public void setEnableAbsences(Boolean enableAbsences) {
    this.enableAbsences = enableAbsences;
  }

  public PayPeriodDTO enableSeniority(Boolean enableSeniority) {
    this.enableSeniority = enableSeniority;
    return this;
  }

  /**
   * Get enableSeniority
   * @return enableSeniority
  */
  @ApiModelProperty(value = "")
  public Boolean getEnableSeniority() {
    return enableSeniority;
  }

  public void setEnableSeniority(Boolean enableSeniority) {
    this.enableSeniority = enableSeniority;
  }

  public PayPeriodDTO status(String status) {
    this.status = status;
    return this;
  }

  /**
   * Get status
   * @return status
  */
  @ApiModelProperty(value = "")
  public String getStatus() {
    return status;
  }

  public void setStatus(String status) {
    this.status = status;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    PayPeriodDTO payPeriod = (PayPeriodDTO) o;
    return Objects.equals(this.id, payPeriod.id) &&
        Objects.equals(this.subscriber, payPeriod.subscriber) &&
        Objects.equals(this.year, payPeriod.year) &&
        Objects.equals(this.startDate, payPeriod.startDate) &&
        Objects.equals(this.endDate, payPeriod.endDate) &&
        Objects.equals(this.workingHours, payPeriod.workingHours) &&
        Objects.equals(this.enableOvertime, payPeriod.enableOvertime) &&
        Objects.equals(this.enableAbsences, payPeriod.enableAbsences) &&
        Objects.equals(this.enableSeniority, payPeriod.enableSeniority) &&
        Objects.equals(this.status, payPeriod.status);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, subscriber, year, startDate, endDate, workingHours, enableOvertime, enableAbsences, enableSeniority, status);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class PayPeriodDTO {\n");
    
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    subscriber: ").append(toIndentedString(subscriber)).append("\n");
    sb.append("    year: ").append(toIndentedString(year)).append("\n");
    sb.append("    startDate: ").append(toIndentedString(startDate)).append("\n");
    sb.append("    endDate: ").append(toIndentedString(endDate)).append("\n");
    sb.append("    workingHours: ").append(toIndentedString(workingHours)).append("\n");
    sb.append("    enableOvertime: ").append(toIndentedString(enableOvertime)).append("\n");
    sb.append("    enableAbsences: ").append(toIndentedString(enableAbsences)).append("\n");
    sb.append("    enableSeniority: ").append(toIndentedString(enableSeniority)).append("\n");
    sb.append("    status: ").append(toIndentedString(status)).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