Interface Discount
-
- All Superinterfaces:
PrettyPrintable
- All Known Subinterfaces:
CouponDiscount
,MassSaleDiscount
public interface Discount extends PrettyPrintable
The interface that represents an abstract product discount.
It's maybe a coupon discount or a mass sale discount.- Author:
- soknight
- See Also:
CouponDiscount
,MassSaleDiscount
,Discounts
,PurchasedProduct.getDiscounts()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull String
getDescription()
Get the displayable description of this discount.double
getDiscountValue()
Get the percent value of this discount.-
Methods inherited from interface ru.easydonate.easydonate4j.data.model.PrettyPrintable
toPrettyString
-
-
-
-
Method Detail
-
getDiscountValue
double getDiscountValue()
Get the percent value of this discount.- Returns:
- The discount percent.
-
getDescription
@NotNull @NotNull String getDescription()
Get the displayable description of this discount.- Returns:
- The discount description.
-
-