ZenMagick 0.9.6


org.zenmagick.model.checkout.coupons.ZMProductCouponRestriction

Class ZMProductCouponRestriction

ZMObject
|
+--ZMProductCouponRestriction

public class ZMProductCouponRestriction
extends ZMObject

Single coupon restriction.

Author:
DerManoMann
Version:
$Id: ZMProductCouponRestriction.php 954 2008-03-29 10:12:29Z DerManoMann $

Fields inherited from org.zenmagick.ZMObject
properties_
Constructor Summary

ZMProductCouponRestriction(boolean allowed, int productId)

Create new coupon restriction.

Method Summary
A

getProduct()

Returns the product.

boolean

isAllowed()

Checks if this coupon restriction is allowed.

Methods inherited from org.zenmagick.ZMObject
attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton

Constructor Detail

ZMProductCouponRestriction

public ZMProductCouponRestriction(boolean allowed, int productId)

Create new coupon restriction.

Parameters:
allowed - The allowed flag.
productId - The product id this restriction applies to.

Method Detail

getProduct

public A getProduct()

Returns the product.

Returns:
ZMProduct instance.

isAllowed

public boolean isAllowed()

Checks if this coupon restriction is allowed.

Returns:
true if this coupon restriction is allowed, false if not.

ZenMagick 0.9.6