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

dev.crashteam.openapi.analytics.model.CategoryAnalytics 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.analytics.model;

import java.net.URI;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
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 = "CategoryAnalytics", description = "Аналитика категории")
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-04-04T20:14:40.494067127Z[Etc/UTC]", comments = "Generator version: 7.4.0")
public class CategoryAnalytics {

  private Double revenue;

  private Double revenuePerProduct;

  private Long orderAmount;

  private Long productCount;

  private Double orderPerProduct;

  private Double averageBill;

  private Long sellerCount;

  private Double orderPerSeller;

  public CategoryAnalytics revenue(Double revenue) {
    this.revenue = revenue;
    return this;
  }

  /**
   * Выручка в валюте
   * @return revenue
  */
  
  @Schema(name = "revenue", description = "Выручка в валюте", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
  @JsonProperty("revenue")
  public Double getRevenue() {
    return revenue;
  }

  public void setRevenue(Double revenue) {
    this.revenue = revenue;
  }

  public CategoryAnalytics revenuePerProduct(Double revenuePerProduct) {
    this.revenuePerProduct = revenuePerProduct;
    return this;
  }

  /**
   * Доход на продукт в валюте
   * @return revenuePerProduct
  */
  
  @Schema(name = "revenue_per_product", description = "Доход на продукт в валюте", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
  @JsonProperty("revenue_per_product")
  public Double getRevenuePerProduct() {
    return revenuePerProduct;
  }

  public void setRevenuePerProduct(Double revenuePerProduct) {
    this.revenuePerProduct = revenuePerProduct;
  }

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

  /**
   * Продажи, шт
   * @return orderAmount
  */
  
  @Schema(name = "order_amount", description = "Продажи, шт", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
  @JsonProperty("order_amount")
  public Long getOrderAmount() {
    return orderAmount;
  }

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

  public CategoryAnalytics productCount(Long productCount) {
    this.productCount = productCount;
    return this;
  }

  /**
   * Товары, шт
   * @return productCount
  */
  
  @Schema(name = "product_count", description = "Товары, шт", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
  @JsonProperty("product_count")
  public Long getProductCount() {
    return productCount;
  }

  public void setProductCount(Long productCount) {
    this.productCount = productCount;
  }

  public CategoryAnalytics orderPerProduct(Double orderPerProduct) {
    this.orderPerProduct = orderPerProduct;
    return this;
  }

  /**
   * Количество продаж, приходящееся на одну товарную позицию
   * @return orderPerProduct
  */
  
  @Schema(name = "order_per_product", description = "Количество продаж, приходящееся на одну товарную позицию", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
  @JsonProperty("order_per_product")
  public Double getOrderPerProduct() {
    return orderPerProduct;
  }

  public void setOrderPerProduct(Double orderPerProduct) {
    this.orderPerProduct = orderPerProduct;
  }

  public CategoryAnalytics averageBill(Double averageBill) {
    this.averageBill = averageBill;
    return this;
  }

  /**
   * Средний чек в валюте
   * @return averageBill
  */
  
  @Schema(name = "average_bill", description = "Средний чек в валюте", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
  @JsonProperty("average_bill")
  public Double getAverageBill() {
    return averageBill;
  }

  public void setAverageBill(Double averageBill) {
    this.averageBill = averageBill;
  }

  public CategoryAnalytics sellerCount(Long sellerCount) {
    this.sellerCount = sellerCount;
    return this;
  }

  /**
   * Продавцы, шт
   * @return sellerCount
  */
  
  @Schema(name = "seller_count", description = "Продавцы, шт", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
  @JsonProperty("seller_count")
  public Long getSellerCount() {
    return sellerCount;
  }

  public void setSellerCount(Long sellerCount) {
    this.sellerCount = sellerCount;
  }

  public CategoryAnalytics orderPerSeller(Double orderPerSeller) {
    this.orderPerSeller = orderPerSeller;
    return this;
  }

  /**
   * Кол-во продаж, приходящееся на одного продавца
   * @return orderPerSeller
  */
  
  @Schema(name = "order_per_seller", description = "Кол-во продаж, приходящееся на одного продавца", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
  @JsonProperty("order_per_seller")
  public Double getOrderPerSeller() {
    return orderPerSeller;
  }

  public void setOrderPerSeller(Double orderPerSeller) {
    this.orderPerSeller = orderPerSeller;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    CategoryAnalytics categoryAnalytics = (CategoryAnalytics) o;
    return Objects.equals(this.revenue, categoryAnalytics.revenue) &&
        Objects.equals(this.revenuePerProduct, categoryAnalytics.revenuePerProduct) &&
        Objects.equals(this.orderAmount, categoryAnalytics.orderAmount) &&
        Objects.equals(this.productCount, categoryAnalytics.productCount) &&
        Objects.equals(this.orderPerProduct, categoryAnalytics.orderPerProduct) &&
        Objects.equals(this.averageBill, categoryAnalytics.averageBill) &&
        Objects.equals(this.sellerCount, categoryAnalytics.sellerCount) &&
        Objects.equals(this.orderPerSeller, categoryAnalytics.orderPerSeller);
  }

  @Override
  public int hashCode() {
    return Objects.hash(revenue, revenuePerProduct, orderAmount, productCount, orderPerProduct, averageBill, sellerCount, orderPerSeller);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class CategoryAnalytics {\n");
    sb.append("    revenue: ").append(toIndentedString(revenue)).append("\n");
    sb.append("    revenuePerProduct: ").append(toIndentedString(revenuePerProduct)).append("\n");
    sb.append("    orderAmount: ").append(toIndentedString(orderAmount)).append("\n");
    sb.append("    productCount: ").append(toIndentedString(productCount)).append("\n");
    sb.append("    orderPerProduct: ").append(toIndentedString(orderPerProduct)).append("\n");
    sb.append("    averageBill: ").append(toIndentedString(averageBill)).append("\n");
    sb.append("    sellerCount: ").append(toIndentedString(sellerCount)).append("\n");
    sb.append("    orderPerSeller: ").append(toIndentedString(orderPerSeller)).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