dev.crashteam.openapi.analytics.model.ProductDailyAnalytics Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openapi-analytics Show documentation
Show all versions of openapi-analytics Show documentation
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 com.fasterxml.jackson.annotation.JsonValue;
import dev.crashteam.openapi.analytics.model.Marketplace;
import dev.crashteam.openapi.analytics.model.ProductCategory;
import dev.crashteam.openapi.analytics.model.ProductSeller;
import java.time.LocalDate;
import java.util.List;
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;
/**
* ProductDailyAnalytics
*/
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-04-04T20:14:40.494067127Z[Etc/UTC]", comments = "Generator version: 7.4.0")
public class ProductDailyAnalytics {
private Marketplace mp;
private Long productId;
private String title;
private String imageUrl;
private ProductSeller seller;
private ProductCategory category;
private Double revenue;
private Double fullPrice;
private Double price;
private Double rating;
private Long reviewsAmount;
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE)
private LocalDate appearAt;
private List priceChart = null;
private List revenueChart = null;
private List salesChart = null;
private List remainingsChart = null;
public ProductDailyAnalytics mp(Marketplace mp) {
this.mp = mp;
return this;
}
/**
* Get mp
* @return mp
*/
@Valid
@Schema(name = "mp", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("mp")
public Marketplace getMp() {
return mp;
}
public void setMp(Marketplace mp) {
this.mp = mp;
}
public ProductDailyAnalytics productId(Long productId) {
this.productId = productId;
return this;
}
/**
* Id товара на маркетплейсе
* @return productId
*/
@Schema(name = "product_id", description = "Id товара на маркетплейсе", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("product_id")
public Long getProductId() {
return productId;
}
public void setProductId(Long productId) {
this.productId = productId;
}
public ProductDailyAnalytics title(String title) {
this.title = title;
return this;
}
/**
* Имя товара
* @return title
*/
@Schema(name = "title", description = "Имя товара", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("title")
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public ProductDailyAnalytics imageUrl(String imageUrl) {
this.imageUrl = imageUrl;
return this;
}
/**
* Ссылка на изображение товара
* @return imageUrl
*/
@Schema(name = "image_url", description = "Ссылка на изображение товара", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("image_url")
public String getImageUrl() {
return imageUrl;
}
public void setImageUrl(String imageUrl) {
this.imageUrl = imageUrl;
}
public ProductDailyAnalytics seller(ProductSeller seller) {
this.seller = seller;
return this;
}
/**
* Get seller
* @return seller
*/
@Valid
@Schema(name = "seller", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("seller")
public ProductSeller getSeller() {
return seller;
}
public void setSeller(ProductSeller seller) {
this.seller = seller;
}
public ProductDailyAnalytics category(ProductCategory category) {
this.category = category;
return this;
}
/**
* Get category
* @return category
*/
@Valid
@Schema(name = "category", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("category")
public ProductCategory getCategory() {
return category;
}
public void setCategory(ProductCategory category) {
this.category = category;
}
public ProductDailyAnalytics 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 ProductDailyAnalytics fullPrice(Double fullPrice) {
this.fullPrice = fullPrice;
return this;
}
/**
* Цена в валюте
* @return fullPrice
*/
@Schema(name = "full_price", description = "Цена в валюте", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("full_price")
public Double getFullPrice() {
return fullPrice;
}
public void setFullPrice(Double fullPrice) {
this.fullPrice = fullPrice;
}
public ProductDailyAnalytics price(Double price) {
this.price = price;
return this;
}
/**
* Цена в валюте
* @return price
*/
@Schema(name = "price", description = "Цена в валюте", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("price")
public Double getPrice() {
return price;
}
public void setPrice(Double price) {
this.price = price;
}
public ProductDailyAnalytics rating(Double rating) {
this.rating = rating;
return this;
}
/**
* Рейтинг товара
* @return rating
*/
@Schema(name = "rating", description = "Рейтинг товара", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("rating")
public Double getRating() {
return rating;
}
public void setRating(Double rating) {
this.rating = rating;
}
public ProductDailyAnalytics reviewsAmount(Long reviewsAmount) {
this.reviewsAmount = reviewsAmount;
return this;
}
/**
* Количество отзывов
* @return reviewsAmount
*/
@Schema(name = "reviews_amount", description = "Количество отзывов", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("reviews_amount")
public Long getReviewsAmount() {
return reviewsAmount;
}
public void setReviewsAmount(Long reviewsAmount) {
this.reviewsAmount = reviewsAmount;
}
public ProductDailyAnalytics appearAt(LocalDate appearAt) {
this.appearAt = appearAt;
return this;
}
/**
* Date
* @return appearAt
*/
@Valid @Pattern(regexp = "YYYY-MM-DD")
@Schema(name = "appear_at", example = "Sun Jan 01 00:00:00 UTC 2017", description = "Date", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("appear_at")
public LocalDate getAppearAt() {
return appearAt;
}
public void setAppearAt(LocalDate appearAt) {
this.appearAt = appearAt;
}
public ProductDailyAnalytics priceChart(List priceChart) {
this.priceChart = priceChart;
return this;
}
/**
* График цены
* @return priceChart
*/
@Valid
@Schema(name = "price_chart", description = "График цены", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("price_chart")
public List getPriceChart() {
return priceChart;
}
public void setPriceChart(List priceChart) {
this.priceChart = priceChart;
}
public ProductDailyAnalytics revenueChart(List revenueChart) {
this.revenueChart = revenueChart;
return this;
}
/**
* График выручки
* @return revenueChart
*/
@Valid
@Schema(name = "revenue_chart", description = "График выручки", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("revenue_chart")
public List getRevenueChart() {
return revenueChart;
}
public void setRevenueChart(List revenueChart) {
this.revenueChart = revenueChart;
}
public ProductDailyAnalytics salesChart(List salesChart) {
this.salesChart = salesChart;
return this;
}
/**
* График продаж
* @return salesChart
*/
@Valid
@Schema(name = "sales_chart", description = "График продаж", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("sales_chart")
public List getSalesChart() {
return salesChart;
}
public void setSalesChart(List salesChart) {
this.salesChart = salesChart;
}
public ProductDailyAnalytics remainingsChart(List remainingsChart) {
this.remainingsChart = remainingsChart;
return this;
}
/**
* График остатков
* @return remainingsChart
*/
@Valid
@Schema(name = "remainings_chart", description = "График остатков", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("remainings_chart")
public List getRemainingsChart() {
return remainingsChart;
}
public void setRemainingsChart(List remainingsChart) {
this.remainingsChart = remainingsChart;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ProductDailyAnalytics productDailyAnalytics = (ProductDailyAnalytics) o;
return Objects.equals(this.mp, productDailyAnalytics.mp) &&
Objects.equals(this.productId, productDailyAnalytics.productId) &&
Objects.equals(this.title, productDailyAnalytics.title) &&
Objects.equals(this.imageUrl, productDailyAnalytics.imageUrl) &&
Objects.equals(this.seller, productDailyAnalytics.seller) &&
Objects.equals(this.category, productDailyAnalytics.category) &&
Objects.equals(this.revenue, productDailyAnalytics.revenue) &&
Objects.equals(this.fullPrice, productDailyAnalytics.fullPrice) &&
Objects.equals(this.price, productDailyAnalytics.price) &&
Objects.equals(this.rating, productDailyAnalytics.rating) &&
Objects.equals(this.reviewsAmount, productDailyAnalytics.reviewsAmount) &&
Objects.equals(this.appearAt, productDailyAnalytics.appearAt) &&
Objects.equals(this.priceChart, productDailyAnalytics.priceChart) &&
Objects.equals(this.revenueChart, productDailyAnalytics.revenueChart) &&
Objects.equals(this.salesChart, productDailyAnalytics.salesChart) &&
Objects.equals(this.remainingsChart, productDailyAnalytics.remainingsChart);
}
@Override
public int hashCode() {
return Objects.hash(mp, productId, title, imageUrl, seller, category, revenue, fullPrice, price, rating, reviewsAmount, appearAt, priceChart, revenueChart, salesChart, remainingsChart);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ProductDailyAnalytics {\n");
sb.append(" mp: ").append(toIndentedString(mp)).append("\n");
sb.append(" productId: ").append(toIndentedString(productId)).append("\n");
sb.append(" title: ").append(toIndentedString(title)).append("\n");
sb.append(" imageUrl: ").append(toIndentedString(imageUrl)).append("\n");
sb.append(" seller: ").append(toIndentedString(seller)).append("\n");
sb.append(" category: ").append(toIndentedString(category)).append("\n");
sb.append(" revenue: ").append(toIndentedString(revenue)).append("\n");
sb.append(" fullPrice: ").append(toIndentedString(fullPrice)).append("\n");
sb.append(" price: ").append(toIndentedString(price)).append("\n");
sb.append(" rating: ").append(toIndentedString(rating)).append("\n");
sb.append(" reviewsAmount: ").append(toIndentedString(reviewsAmount)).append("\n");
sb.append(" appearAt: ").append(toIndentedString(appearAt)).append("\n");
sb.append(" priceChart: ").append(toIndentedString(priceChart)).append("\n");
sb.append(" revenueChart: ").append(toIndentedString(revenueChart)).append("\n");
sb.append(" salesChart: ").append(toIndentedString(salesChart)).append("\n");
sb.append(" remainingsChart: ").append(toIndentedString(remainingsChart)).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 ");
}
}