Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ public class ResellerCatalogDTO extends NamedEntityDTO
@Valid
private Map<UrlEntityDTO, UrlEntityDTO> categories;

@Valid
private UrlEntityDTO parent;

@ApiModelProperty( value = "When the catalog has been created", readOnly = true )
private Date createdAt;

Expand Down Expand Up @@ -101,6 +104,16 @@ public void setCategories( Map<UrlEntityDTO, UrlEntityDTO> categories )
this.categories = categories;
}

public UrlEntityDTO getParent()
{
return parent;
}

public void setParent( UrlEntityDTO parent )
{
this.parent = parent;
}

public Date getCreatedAt()
{
return createdAt;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package com.cloudesire.platform.apiclient.dto.model.enums;

import io.swagger.annotations.ApiModelProperty;

public enum ResellerPricingHierarchy
{
@ApiModelProperty( "Hide inherited pricings (default)" )
THIS,

@ApiModelProperty( "Show inherited pricings" )
FULL
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
package com.cloudesire.platform.apiclient.query;

import com.cloudesire.platform.apiclient.dto.model.enums.ResellerPricingHierarchy;

public class ResellerPricingQuery extends BaseQuery
{
private static final String RESELLER_ID = "resellerId";
private static final String CATALOG_ID = "catalogId";
private static final String PRODUCT_ID = "productId";
private static final String PRODUCT_VERSION_ID = "productVersionId";
private static final String UNPRICED = "unpriced";
private static final String HIERARCHY = "hierarchy";

public ResellerPricingQuery setPageRequest( PageRequestQuery pageRequestQuery )
{
Expand Down Expand Up @@ -43,4 +46,10 @@ public ResellerPricingQuery setUnpriced( Boolean unpriced )
put( UNPRICED, unpriced );
return this;
}

public ResellerPricingQuery setHierarchy( ResellerPricingHierarchy hierarchy )
{
put( HIERARCHY, hierarchy );
return this;
}
}