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

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

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

  @JsonProperty("subscriber")
  private SubscriberDTO subscriber;

  @JsonProperty("employee")
  private EmployeeDTO employee;

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

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

  @JsonProperty("amountPerRefund")
  private BigDecimal amountPerRefund;

  @JsonProperty("amount")
  private BigDecimal amount;

  @JsonProperty("refundedAmount")
  private BigDecimal refundedAmount;

  @JsonProperty("refunds")
  private Integer refunds;

  @JsonProperty("plannedRefunds")
  private Integer plannedRefunds;

  @JsonProperty("refundedRate")
  private Float refundedRate;

  @JsonProperty("status")
  private String status;

  public AdvanceDTO 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 AdvanceDTO 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 AdvanceDTO 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 AdvanceDTO requestDate(LocalDate requestDate) {
    this.requestDate = requestDate;
    return this;
  }

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

  public void setRequestDate(LocalDate requestDate) {
    this.requestDate = requestDate;
  }

  public AdvanceDTO paymentDate(LocalDate paymentDate) {
    this.paymentDate = paymentDate;
    return this;
  }

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

  public void setPaymentDate(LocalDate paymentDate) {
    this.paymentDate = paymentDate;
  }

  public AdvanceDTO amountPerRefund(BigDecimal amountPerRefund) {
    this.amountPerRefund = amountPerRefund;
    return this;
  }

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

  public void setAmountPerRefund(BigDecimal amountPerRefund) {
    this.amountPerRefund = amountPerRefund;
  }

  public AdvanceDTO 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 AdvanceDTO refundedAmount(BigDecimal refundedAmount) {
    this.refundedAmount = refundedAmount;
    return this;
  }

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

  public void setRefundedAmount(BigDecimal refundedAmount) {
    this.refundedAmount = refundedAmount;
  }

  public AdvanceDTO refunds(Integer refunds) {
    this.refunds = refunds;
    return this;
  }

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

  public void setRefunds(Integer refunds) {
    this.refunds = refunds;
  }

  public AdvanceDTO plannedRefunds(Integer plannedRefunds) {
    this.plannedRefunds = plannedRefunds;
    return this;
  }

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

  public void setPlannedRefunds(Integer plannedRefunds) {
    this.plannedRefunds = plannedRefunds;
  }

  public AdvanceDTO refundedRate(Float refundedRate) {
    this.refundedRate = refundedRate;
    return this;
  }

  /**
   * Get refundedRate
   * @return refundedRate
  */
  @ApiModelProperty(value = "")
  public Float getRefundedRate() {
    return refundedRate;
  }

  public void setRefundedRate(Float refundedRate) {
    this.refundedRate = refundedRate;
  }

  public AdvanceDTO 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;
    }
    AdvanceDTO advance = (AdvanceDTO) o;
    return Objects.equals(this.id, advance.id) &&
        Objects.equals(this.subscriber, advance.subscriber) &&
        Objects.equals(this.employee, advance.employee) &&
        Objects.equals(this.requestDate, advance.requestDate) &&
        Objects.equals(this.paymentDate, advance.paymentDate) &&
        Objects.equals(this.amountPerRefund, advance.amountPerRefund) &&
        Objects.equals(this.amount, advance.amount) &&
        Objects.equals(this.refundedAmount, advance.refundedAmount) &&
        Objects.equals(this.refunds, advance.refunds) &&
        Objects.equals(this.plannedRefunds, advance.plannedRefunds) &&
        Objects.equals(this.refundedRate, advance.refundedRate) &&
        Objects.equals(this.status, advance.status);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, subscriber, employee, requestDate, paymentDate, amountPerRefund, amount, refundedAmount, refunds, plannedRefunds, refundedRate, status);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class AdvanceDTO {\n");
    
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    subscriber: ").append(toIndentedString(subscriber)).append("\n");
    sb.append("    employee: ").append(toIndentedString(employee)).append("\n");
    sb.append("    requestDate: ").append(toIndentedString(requestDate)).append("\n");
    sb.append("    paymentDate: ").append(toIndentedString(paymentDate)).append("\n");
    sb.append("    amountPerRefund: ").append(toIndentedString(amountPerRefund)).append("\n");
    sb.append("    amount: ").append(toIndentedString(amount)).append("\n");
    sb.append("    refundedAmount: ").append(toIndentedString(refundedAmount)).append("\n");
    sb.append("    refunds: ").append(toIndentedString(refunds)).append("\n");
    sb.append("    plannedRefunds: ").append(toIndentedString(plannedRefunds)).append("\n");
    sb.append("    refundedRate: ").append(toIndentedString(refundedRate)).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