From 7e06d03ecd835a645486f25ca0d86071e989c648 Mon Sep 17 00:00:00 2001 From: Matteo Giordano Date: Wed, 1 Jul 2020 09:57:03 +0200 Subject: [PATCH] Count sell-outs for a product version --- .../apiclient/dto/model/dto/ProductVersionDTO.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ProductVersionDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ProductVersionDTO.java index 2f06e0f2b..2308a7499 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ProductVersionDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/ProductVersionDTO.java @@ -131,6 +131,9 @@ public class ProductVersionDTO extends NamedEntityDTO implements ProductVersionL @ApiModelProperty( "The number of markups set for the product version" ) private long markedUp; + @ApiModelProperty( "The number of sell-outs set for the product version" ) + private long soldOut; + @ApiModelProperty( value = "Descriptive label of the product version", readOnly = true ) private String label; @@ -533,6 +536,16 @@ public void setMarkedUp( long markedUp ) this.markedUp = markedUp; } + public long getSoldOut() + { + return soldOut; + } + + public void setSoldOut( long soldOut ) + { + this.soldOut = soldOut; + } + public String getLabel() { return label;