ZenMagick 0.9.6


org.zenmagick.model.catalog.ZMQuantityDiscount

Class ZMQuantityDiscount

ZMObject
|
+--ZMQuantityDiscount

public class ZMQuantityDiscount
extends ZMObject

A quantity discount.

Author:
DerManoMann
Version:
$Id: ZMQuantityDiscount.php 2054 2009-03-12 03:41:22Z dermanomann $

Fields inherited from org.zenmagick.ZMObject
properties_
Constructor Summary

ZMQuantityDiscount()

Create new instance.

Method Summary
int

getId()

Get the discount id.

float

getPrice()

Get the calculated discount price.

int

getProductId()

Get the product id.

int

getQuantity()

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

Constructor Detail

ZMQuantityDiscount

public ZMQuantityDiscount()

Create new instance. /


Method Detail

getId

public int getId()

Get the discount id.

Returns:
The discount id.

getPrice

public float getPrice()

Get the calculated discount price.

Returns:
The discounted price.

getProductId

public int getProductId()

Get the product id.

Returns:
The product id.

getQuantity

public int getQuantity()

Get the upper quantity [excl.].

Returns:
The upper quantity.

getValue

public float getValue()

Get the discount value (amount, percent, etc).

Returns:
The discount value.

setId

public void setId(int id)

Set the discount id.

Parameters:
id - The discount id.

setPrice

public void setPrice(float price)

Set the calculated discount price.

Parameters:
price - The discounted price.

setProductId

public void setProductId(int productId)

Set the product id.

Parameters:
productId - The product id.

setQuantity

public void setQuantity(int quantity)

Set the upper quantity [excl.].

Parameters:
quantity - The upper quantity.

setValue

public void setValue(float value)

Set the discount value (amount, percent, etc).

Parameters:
value - The discount value.

ZenMagick 0.9.6