dev.crashteam.openapi.keanalytics.model.CategoryOverallInfo200Response Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openapi-ke-analytics Show documentation
Show all versions of openapi-ke-analytics Show documentation
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 com.fasterxml.jackson.annotation.JsonTypeName;
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;
/**
* CategoryOverallInfo200Response
*/
@JsonTypeName("categoryOverallInfo_200_response")
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-03-26T08:59:12.399131532Z[Etc/UTC]")
public class CategoryOverallInfo200Response {
private Double averagePrice;
private Double revenue;
private Long orderCount;
private Long sellerCount;
private Double salesPerSeller;
private Long productCount;
private Long productZeroSalesCount;
private Long sellersZeroSalesCount;
public CategoryOverallInfo200Response averagePrice(Double averagePrice) {
this.averagePrice = averagePrice;
return this;
}
/**
* Средняя цена в категории
* @return averagePrice
*/
@Schema(name = "averagePrice", example = "10", description = "Средняя цена в категории", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("averagePrice")
public Double getAveragePrice() {
return averagePrice;
}
public void setAveragePrice(Double averagePrice) {
this.averagePrice = averagePrice;
}
public CategoryOverallInfo200Response 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 CategoryOverallInfo200Response orderCount(Long orderCount) {
this.orderCount = orderCount;
return this;
}
/**
* Кол-во заказов
* @return orderCount
*/
@Schema(name = "orderCount", description = "Кол-во заказов", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("orderCount")
public Long getOrderCount() {
return orderCount;
}
public void setOrderCount(Long orderCount) {
this.orderCount = orderCount;
}
public CategoryOverallInfo200Response sellerCount(Long sellerCount) {
this.sellerCount = sellerCount;
return this;
}
/**
* Кол-во продавцов
* @return sellerCount
*/
@Schema(name = "sellerCount", description = "Кол-во продавцов", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("sellerCount")
public Long getSellerCount() {
return sellerCount;
}
public void setSellerCount(Long sellerCount) {
this.sellerCount = sellerCount;
}
public CategoryOverallInfo200Response salesPerSeller(Double salesPerSeller) {
this.salesPerSeller = salesPerSeller;
return this;
}
/**
* Кол-во продаж на одного продавца
* @return salesPerSeller
*/
@Schema(name = "salesPerSeller", example = "10", description = "Кол-во продаж на одного продавца", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("salesPerSeller")
public Double getSalesPerSeller() {
return salesPerSeller;
}
public void setSalesPerSeller(Double salesPerSeller) {
this.salesPerSeller = salesPerSeller;
}
public CategoryOverallInfo200Response productCount(Long productCount) {
this.productCount = productCount;
return this;
}
/**
* Кол-во товаров (карточек)
* @return productCount
*/
@Schema(name = "productCount", description = "Кол-во товаров (карточек)", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("productCount")
public Long getProductCount() {
return productCount;
}
public void setProductCount(Long productCount) {
this.productCount = productCount;
}
public CategoryOverallInfo200Response productZeroSalesCount(Long productZeroSalesCount) {
this.productZeroSalesCount = productZeroSalesCount;
return this;
}
/**
* Кол-во товаров с нулевыми продажами
* @return productZeroSalesCount
*/
@Schema(name = "productZeroSalesCount", description = "Кол-во товаров с нулевыми продажами", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("productZeroSalesCount")
public Long getProductZeroSalesCount() {
return productZeroSalesCount;
}
public void setProductZeroSalesCount(Long productZeroSalesCount) {
this.productZeroSalesCount = productZeroSalesCount;
}
public CategoryOverallInfo200Response sellersZeroSalesCount(Long sellersZeroSalesCount) {
this.sellersZeroSalesCount = sellersZeroSalesCount;
return this;
}
/**
* Кол-во продавцов с нулевыми продажами
* @return sellersZeroSalesCount
*/
@Schema(name = "sellersZeroSalesCount", description = "Кол-во продавцов с нулевыми продажами", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("sellersZeroSalesCount")
public Long getSellersZeroSalesCount() {
return sellersZeroSalesCount;
}
public void setSellersZeroSalesCount(Long sellersZeroSalesCount) {
this.sellersZeroSalesCount = sellersZeroSalesCount;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CategoryOverallInfo200Response categoryOverallInfo200Response = (CategoryOverallInfo200Response) o;
return Objects.equals(this.averagePrice, categoryOverallInfo200Response.averagePrice) &&
Objects.equals(this.revenue, categoryOverallInfo200Response.revenue) &&
Objects.equals(this.orderCount, categoryOverallInfo200Response.orderCount) &&
Objects.equals(this.sellerCount, categoryOverallInfo200Response.sellerCount) &&
Objects.equals(this.salesPerSeller, categoryOverallInfo200Response.salesPerSeller) &&
Objects.equals(this.productCount, categoryOverallInfo200Response.productCount) &&
Objects.equals(this.productZeroSalesCount, categoryOverallInfo200Response.productZeroSalesCount) &&
Objects.equals(this.sellersZeroSalesCount, categoryOverallInfo200Response.sellersZeroSalesCount);
}
@Override
public int hashCode() {
return Objects.hash(averagePrice, revenue, orderCount, sellerCount, salesPerSeller, productCount, productZeroSalesCount, sellersZeroSalesCount);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CategoryOverallInfo200Response {\n");
sb.append(" averagePrice: ").append(toIndentedString(averagePrice)).append("\n");
sb.append(" revenue: ").append(toIndentedString(revenue)).append("\n");
sb.append(" orderCount: ").append(toIndentedString(orderCount)).append("\n");
sb.append(" sellerCount: ").append(toIndentedString(sellerCount)).append("\n");
sb.append(" salesPerSeller: ").append(toIndentedString(salesPerSeller)).append("\n");
sb.append(" productCount: ").append(toIndentedString(productCount)).append("\n");
sb.append(" productZeroSalesCount: ").append(toIndentedString(productZeroSalesCount)).append("\n");
sb.append(" sellersZeroSalesCount: ").append(toIndentedString(sellersZeroSalesCount)).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 ");
}
}