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

dev.crashteam.openapi.analytics.model.CategoryAnalyticsDifferencePercent 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 = "CategoryAnalyticsDifferencePercent", 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 CategoryAnalyticsDifferencePercent {

  private Double revenue;

  private Double revenuePerProduct;

  private Double orderAmount;

  private Double productCount;

  private Double orderPerProduct;

  private Double averageBill;

  private Double sellerCount;

  private Double orderPerSeller;

  public CategoryAnalyticsDifferencePercent 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 CategoryAnalyticsDifferencePercent 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 CategoryAnalyticsDifferencePercent orderAmount(Double orderAmount) {
    this.orderAmount = orderAmount;
    return this;
  }

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

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

  public CategoryAnalyticsDifferencePercent productCount(Double productCount) {
    this.productCount = productCount;
    return this;
  }

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

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

  public CategoryAnalyticsDifferencePercent 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 CategoryAnalyticsDifferencePercent 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 CategoryAnalyticsDifferencePercent sellerCount(Double sellerCount) {
    this.sellerCount = sellerCount;
    return this;
  }

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

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

  public CategoryAnalyticsDifferencePercent 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;
    }
    CategoryAnalyticsDifferencePercent categoryAnalyticsDifferencePercent = (CategoryAnalyticsDifferencePercent) o;
    return Objects.equals(this.revenue, categoryAnalyticsDifferencePercent.revenue) &&
        Objects.equals(this.revenuePerProduct, categoryAnalyticsDifferencePercent.revenuePerProduct) &&
        Objects.equals(this.orderAmount, categoryAnalyticsDifferencePercent.orderAmount) &&
        Objects.equals(this.productCount, categoryAnalyticsDifferencePercent.productCount) &&
        Objects.equals(this.orderPerProduct, categoryAnalyticsDifferencePercent.orderPerProduct) &&
        Objects.equals(this.averageBill, categoryAnalyticsDifferencePercent.averageBill) &&
        Objects.equals(this.sellerCount, categoryAnalyticsDifferencePercent.sellerCount) &&
        Objects.equals(this.orderPerSeller, categoryAnalyticsDifferencePercent.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 CategoryAnalyticsDifferencePercent {\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