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

tech.deepdreams.worker.api.dtos.PayPeriodEventDTO 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.time.LocalDate;
import java.time.OffsetDateTime;
import org.openapitools.jackson.nullable.JsonNullable;

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

  @JsonProperty("payPeriodId")
  private Long payPeriodId;

  @JsonProperty("eventType")
  private String eventType;

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

  @JsonProperty("subscriberId")
  private Long subscriberId;

  @JsonProperty("countryId")
  private Long countryId;

  @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;

  public PayPeriodEventDTO 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 PayPeriodEventDTO payPeriodId(Long payPeriodId) {
    this.payPeriodId = payPeriodId;
    return this;
  }

  /**
   * Get payPeriodId
   * @return payPeriodId
  */
  @ApiModelProperty(value = "")
  public Long getPayPeriodId() {
    return payPeriodId;
  }

  public void setPayPeriodId(Long payPeriodId) {
    this.payPeriodId = payPeriodId;
  }

  public PayPeriodEventDTO eventType(String eventType) {
    this.eventType = eventType;
    return this;
  }

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

  public void setEventType(String eventType) {
    this.eventType = eventType;
  }

  public PayPeriodEventDTO eventDate(OffsetDateTime eventDate) {
    this.eventDate = eventDate;
    return this;
  }

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

  public void setEventDate(OffsetDateTime eventDate) {
    this.eventDate = eventDate;
  }

  public PayPeriodEventDTO subscriberId(Long subscriberId) {
    this.subscriberId = subscriberId;
    return this;
  }

  /**
   * Get subscriberId
   * @return subscriberId
  */
  @ApiModelProperty(value = "")
  public Long getSubscriberId() {
    return subscriberId;
  }

  public void setSubscriberId(Long subscriberId) {
    this.subscriberId = subscriberId;
  }

  public PayPeriodEventDTO countryId(Long countryId) {
    this.countryId = countryId;
    return this;
  }

  /**
   * Get countryId
   * @return countryId
  */
  @ApiModelProperty(value = "")
  public Long getCountryId() {
    return countryId;
  }

  public void setCountryId(Long countryId) {
    this.countryId = countryId;
  }

  public PayPeriodEventDTO 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 PayPeriodEventDTO 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 PayPeriodEventDTO 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 PayPeriodEventDTO 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 PayPeriodEventDTO 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 PayPeriodEventDTO 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;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    PayPeriodEventDTO payPeriodEvent = (PayPeriodEventDTO) o;
    return Objects.equals(this.id, payPeriodEvent.id) &&
        Objects.equals(this.payPeriodId, payPeriodEvent.payPeriodId) &&
        Objects.equals(this.eventType, payPeriodEvent.eventType) &&
        Objects.equals(this.eventDate, payPeriodEvent.eventDate) &&
        Objects.equals(this.subscriberId, payPeriodEvent.subscriberId) &&
        Objects.equals(this.countryId, payPeriodEvent.countryId) &&
        Objects.equals(this.startDate, payPeriodEvent.startDate) &&
        Objects.equals(this.endDate, payPeriodEvent.endDate) &&
        Objects.equals(this.workingHours, payPeriodEvent.workingHours) &&
        Objects.equals(this.enableOvertime, payPeriodEvent.enableOvertime) &&
        Objects.equals(this.enableAbsences, payPeriodEvent.enableAbsences) &&
        Objects.equals(this.enableSeniority, payPeriodEvent.enableSeniority);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, payPeriodId, eventType, eventDate, subscriberId, countryId, startDate, endDate, workingHours, enableOvertime, enableAbsences, enableSeniority);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class PayPeriodEventDTO {\n");
    
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    payPeriodId: ").append(toIndentedString(payPeriodId)).append("\n");
    sb.append("    eventType: ").append(toIndentedString(eventType)).append("\n");
    sb.append("    eventDate: ").append(toIndentedString(eventDate)).append("\n");
    sb.append("    subscriberId: ").append(toIndentedString(subscriberId)).append("\n");
    sb.append("    countryId: ").append(toIndentedString(countryId)).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("}");
    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