ZMObject
|
+--ZMQuantityDiscount
public class ZMQuantityDiscount
extends ZMObject
| Fields inherited from org.zenmagick.ZMObject | |
|---|---|
| properties_ | |
| Constructor Summary | |
|---|---|
Create new instance. |
|
| Method Summary | |
|---|---|
| int | getId() Get the discount id. |
| float | getPrice() Get the calculated discount price. |
| int | Get the product id. |
| int | Get the upper quantity [excl.]. |
| float | getValue() Get the discount value (amount, percent, etc). |
| void | setId(int id) Set the discount id. |
| void | setPrice(float price) Set the calculated discount price. |
| void | setProductId(int productId) Set the product id. |
| void | setQuantity(int quantity) Set the upper quantity [excl.]. |
| void | setValue(float value) Set the discount value (amount, percent, etc). |
| Methods inherited from org.zenmagick.ZMObject | |
|---|---|
| attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton | |
public ZMQuantityDiscount()
Create new instance. /
public int getId()
Get the discount id.
public float getPrice()
Get the calculated discount price.
public int getProductId()
Get the product id.
public int getQuantity()
Get the upper quantity [excl.].
public float getValue()
Get the discount value (amount, percent, etc).
public void setId(int id)
Set the discount id.
public void setPrice(float price)
Set the calculated discount price.
public void setProductId(int productId)
Set the product id.
public void setQuantity(int quantity)
Set the upper quantity [excl.].
public void setValue(float value)
Set the discount value (amount, percent, etc).
A quantity discount.