Skip to content
Merged
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 @@ -51,6 +51,9 @@ public class BillingItemDTO extends NamedEntityDTO
@ApiModelProperty( "Whether the billing item will be included in every subscription" )
private boolean required;

@ApiModelProperty( "Whether the billing item can be downgraded" )
private boolean downgradable = true;

private ApiEndpointDTO endpoint;

public BillingItemDTO( BillingItemType type, String name, String unit, String description )
Expand Down Expand Up @@ -173,6 +176,17 @@ public BillingItemDTO setRequired( boolean required )
return this;
}

public boolean isDowngradable()
{
return downgradable;
}

public BillingItemDTO setDowngradable( boolean downgradable )
{
this.downgradable = downgradable;
return this;
}

public BillingItemValueType getValueType()
{
return valueType;
Expand Down