Interface Discounts
-
- All Superinterfaces:
PrettyPrintable
public interface Discounts extends PrettyPrintable
The interface that represents a wrapper for some possible purchase discounts.- Author:
- soknight
- See Also:
CouponDiscount
,MassSaleDiscount
,PurchasedProduct.getDiscounts()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull Optional<MassSaleDiscount>
getActiveMassSale()
Get the active mass sale discount.@NotNull Optional<CouponDiscount>
getUsedCoupon()
Get the used coupon discount.-
Methods inherited from interface ru.easydonate.easydonate4j.data.model.PrettyPrintable
toPrettyString
-
-
-
-
Method Detail
-
getActiveMassSale
@NotNull @NotNull Optional<MassSaleDiscount> getActiveMassSale()
Get the active mass sale discount.- Returns:
- The mass sale discount wrapper.
-
getUsedCoupon
@NotNull @NotNull Optional<CouponDiscount> getUsedCoupon()
Get the used coupon discount.- Returns:
- The coupon discount wrapper.
-
-