ZMObject
└─ZMProductCouponRestriction
public class ZMProductCouponRestriction
extends ZMObject
| Fields inherited from org.zenmagick.core\ZMObject | |
|---|---|
| properties_ | |
| Method Summary | |
|---|---|
| void | __construct(boolean allowed, int productId) Create new coupon restriction. |
| A | Returns the product. |
| boolean | Checks if this coupon restriction is allowed. |
| Methods inherited from org.zenmagick.core\ZMObject | |
|---|---|
| __construct, attachMethod, get, getAttachedMethods, getProperties, getPropertyNames, set, singleton | |
public void __construct(boolean allowed, int productId)
Create new coupon restriction.
public A getProduct()
Returns the product.
ZMProduct instance.public boolean isAllowed()
Checks if this coupon restriction is allowed.
true if this coupon restriction is allowed, false if not.
Single coupon restriction.