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

dev.crashteam.openapi.keanalytics.model.DynamicSales Maven / Gradle / Ivy

Go to download

Generates jar artifact containing compiled openapi classes based on generated openapi yaml files

The newest version!
package dev.crashteam.openapi.keanalytics.model;

import java.net.URI;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import java.time.LocalDate;
import org.springframework.format.annotation.DateTimeFormat;
import org.openapitools.jackson.nullable.JsonNullable;
import java.time.OffsetDateTime;
import javax.validation.Valid;
import javax.validation.constraints.*;
import io.swagger.v3.oas.annotations.media.Schema;


import java.util.*;
import javax.annotation.Generated;

/**
 * История изменений заказов
 */

@Schema(name = "DynamicSales", description = "История изменений заказов")
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-03-26T08:59:12.399131532Z[Etc/UTC]")
public class DynamicSales {

  @DateTimeFormat(iso = DateTimeFormat.ISO.DATE)
  private LocalDate date;

  private Long orderAmount;

  public DynamicSales date(LocalDate date) {
    this.date = date;
    return this;
  }

  /**
   * День, в рамках которого зафиксированы изменения заказов
   * @return date
  */
  @Valid 
  @Schema(name = "date", example = "Thu Mar 16 00:00:00 UTC 2023", description = "День, в рамках которого зафиксированы изменения заказов", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
  @JsonProperty("date")
  public LocalDate getDate() {
    return date;
  }

  public void setDate(LocalDate date) {
    this.date = date;
  }

  public DynamicSales orderAmount(Long orderAmount) {
    this.orderAmount = orderAmount;
    return this;
  }

  /**
   * Кол-во заказов
   * @return orderAmount
  */
  
  @Schema(name = "orderAmount", description = "Кол-во заказов", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
  @JsonProperty("orderAmount")
  public Long getOrderAmount() {
    return orderAmount;
  }

  public void setOrderAmount(Long orderAmount) {
    this.orderAmount = orderAmount;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    DynamicSales dynamicSales = (DynamicSales) o;
    return Objects.equals(this.date, dynamicSales.date) &&
        Objects.equals(this.orderAmount, dynamicSales.orderAmount);
  }

  @Override
  public int hashCode() {
    return Objects.hash(date, orderAmount);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class DynamicSales {\n");
    sb.append("    date: ").append(toIndentedString(date)).append("\n");
    sb.append("    orderAmount: ").append(toIndentedString(orderAmount)).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