Class BasketStatsDTO
java.lang.Object
sk.iway.iwcm.components.basket.rest.BasketStatsDTO
Carries aggregate invoice, revenue, product, category, and fee statistics for the basket dashboard.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents one node in the hierarchical product-category statistics.static classAssociates a display name with an aggregated occurrence or item count.static classRepresents revenue totals for one calendar day in the sales timeline. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonglongvoidsetAverageInvoiceValue(BigDecimal averageInvoiceValue) voidsetAverageItemsPerInvoice(BigDecimal averageItemsPerInvoice) voidsetCategoryTree(BasketStatsDTO.CategoryNode categoryTree) voidsetCurrency(String currency) voidsetDeliveryFees(BigDecimal deliveryFees) voidsetDeliveryMethods(List<BasketStatsDTO.NameCount> deliveryMethods) voidsetInvoiceCount(long invoiceCount) voidsetInvoiceStatuses(List<BasketStatsDTO.NameCount> invoiceStatuses) voidsetNetRevenue(BigDecimal netRevenue) voidsetPaymentFees(BigDecimal paymentFees) voidsetPaymentMethods(List<BasketStatsDTO.NameCount> paymentMethods) voidsetRevenue(BigDecimal revenue) voidsetSalesTimeline(List<BasketStatsDTO.SalesTimelinePoint> salesTimeline) voidsetSoldItemCount(long soldItemCount) voidsetTopProducts(List<BasketStatsDTO.NameCount> topProducts)
-
Constructor Details
-
BasketStatsDTO
public BasketStatsDTO()
-
-
Method Details
-
getInvoiceCount
public long getInvoiceCount() -
getSoldItemCount
public long getSoldItemCount() -
getRevenue
-
getAverageInvoiceValue
-
getAverageItemsPerInvoice
-
getDeliveryFees
-
getPaymentFees
-
getNetRevenue
-
getCurrency
-
getSalesTimeline
-
getTopProducts
-
getCategoryTree
-
getDeliveryMethods
-
getPaymentMethods
-
getInvoiceStatuses
-
setInvoiceCount
public void setInvoiceCount(long invoiceCount) -
setSoldItemCount
public void setSoldItemCount(long soldItemCount) -
setRevenue
-
setAverageInvoiceValue
-
setAverageItemsPerInvoice
-
setDeliveryFees
-
setPaymentFees
-
setNetRevenue
-
setCurrency
-
setSalesTimeline
-
setTopProducts
-
setCategoryTree
-
setDeliveryMethods
-
setPaymentMethods
-
setInvoiceStatuses
-