public class PromotionOption extends Object
| Constructor and Description |
|---|
PromotionOption() |
| Modifier and Type | Method and Description |
|---|---|
PromotionOption |
discount(Double discount) |
boolean |
equals(Object o) |
Double |
getDiscount()
The amount of the discount
|
Amount |
getMaxAmount()
Get maxAmount
|
Amount |
getMinAmount()
Get minAmount
|
Integer |
getStock()
The amount of stock left on an item
|
TimeDuration |
getTimeLeft()
Get timeLeft
|
int |
hashCode() |
PromotionOption |
maxAmount(Amount maxAmount) |
PromotionOption |
minAmount(Amount minAmount) |
void |
setDiscount(Double discount) |
void |
setMaxAmount(Amount maxAmount) |
void |
setMinAmount(Amount minAmount) |
void |
setStock(Integer stock) |
void |
setTimeLeft(TimeDuration timeLeft) |
PromotionOption |
stock(Integer stock) |
PromotionOption |
timeLeft(TimeDuration timeLeft) |
String |
toString() |
public PromotionOption maxAmount(Amount maxAmount)
public Amount getMaxAmount()
public void setMaxAmount(Amount maxAmount)
public PromotionOption minAmount(Amount minAmount)
public Amount getMinAmount()
public void setMinAmount(Amount minAmount)
public PromotionOption discount(Double discount)
public Double getDiscount()
public void setDiscount(Double discount)
public PromotionOption timeLeft(TimeDuration timeLeft)
public TimeDuration getTimeLeft()
public void setTimeLeft(TimeDuration timeLeft)
public PromotionOption stock(Integer stock)
public Integer getStock()
public void setStock(Integer stock)
Copyright © 2019. All rights reserved.