From edf954c73a4eb93225aa67e7977ed43e43a3f985 Mon Sep 17 00:00:00 2001 From: Matteo Giordano Date: Tue, 28 Jul 2020 16:10:18 +0200 Subject: [PATCH] Assign reseller catalog to user company --- .../apiclient/dto/model/dto/UserCompanyDTO.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/UserCompanyDTO.java b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/UserCompanyDTO.java index 1489d76ca..f55eae618 100644 --- a/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/UserCompanyDTO.java +++ b/cloudesire-api-client-dto/src/main/java/com/cloudesire/platform/apiclient/dto/model/dto/UserCompanyDTO.java @@ -17,6 +17,10 @@ public class UserCompanyDTO extends CompanyDTO @ApiModelProperty( "If this customer can pay later, only for admin" ) private Boolean delayedPayment; + @ApiModelProperty( "The reseller catalog associated to the company" ) + @Valid + private UrlEntityDTO resellerCatalog; + public UserCompanyDTO( String name, String email ) { super( name ); @@ -63,6 +67,16 @@ public void setDelayedPayment( Boolean delayedPayment ) this.delayedPayment = delayedPayment; } + public UrlEntityDTO getResellerCatalog() + { + return resellerCatalog; + } + + public void setResellerCatalog( UrlEntityDTO resellerCatalog ) + { + this.resellerCatalog = resellerCatalog; + } + @Override public boolean equals( Object o ) {