public class Discount
extends java.lang.Object
| Constructor and Description |
|---|
Discount() |
| Modifier and Type | Method and Description |
|---|---|
static Discount |
amountOff(int amountOff) |
static Discount |
from(DiscountType type,
int value) |
java.lang.Integer |
getAmountOff() |
java.lang.Double |
getPercentOff() |
DiscountType |
getType() |
java.lang.Double |
getUnitOff() |
java.lang.String |
getUnitType() |
static Discount |
percentOff(double percentOff) |
static Discount |
unitOff(double unitOff) |
public static Discount from(DiscountType type, int value)
public static Discount amountOff(int amountOff)
public static Discount percentOff(double percentOff)
public static Discount unitOff(double unitOff)
public DiscountType getType()
public java.lang.Integer getAmountOff()
public java.lang.Double getPercentOff()
public java.lang.Double getUnitOff()
public java.lang.String getUnitType()