com.dotmarketing.portlets.discountcode.model
Class DiscountCode

java.lang.Object
  extended by com.dotmarketing.beans.Inode
      extended by com.dotmarketing.portlets.discountcode.model.DiscountCode
All Implemented Interfaces:
java.io.Serializable

public class DiscountCode
extends Inode

See Also:
Serialized Form

Field Summary
static int amountDiscountType
           
static int percentageDiscountType
           
 
Fields inherited from class com.dotmarketing.beans.Inode
inode
 
Constructor Summary
DiscountCode()
           
DiscountCode(int discountType, java.util.Date startDate, java.util.Date endDate, java.lang.String codeId, java.lang.String codeDescription, boolean freeShipping, boolean noBulkDisc, int discountAmount, int minOrder)
           
 
Method Summary
 boolean equals(java.lang.Object other)
           
 java.lang.String getCodeDescription()
           
 java.lang.String getCodeId()
           
 float getDiscountAmount()
           
 int getDiscountType()
           
 java.util.Date getEndDate()
           
 boolean getFreeShipping()
           
 int getMinOrder()
           
 boolean getNoBulkDisc()
           
 java.util.List<ProductFormat> getProductFormatApplicable()
           
 java.util.Date getStartDate()
           
 void setCodeDescription(java.lang.String codeDescription)
           
 void setCodeId(java.lang.String codeId)
           
 void setDiscountAmount(float discountAmount)
           
 void setDiscountType(int discountType)
           
 void setEndDate(java.util.Date endDate)
           
 void setFreeShipping(boolean freeShipping)
           
 void setMinOrder(int minOrder)
           
 void setNoBulkDisc(boolean noBulkDisc)
           
 void setStartDate(java.util.Date startDate)
           
 
Methods inherited from class com.dotmarketing.beans.Inode
addChild, addChild, addParent, addParent, deleteChild, deleteChild, deleteParent, deleteParent, getiDate, getIDate, getIdentifier, getInode, getMap, getOwner, getType, hasChildren, hasParents, isNew, setiDate, setIDate, setIDate, setIdentifier, setInode, setInode, setOwner, setOwner, setParents, setType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

percentageDiscountType

public static final int percentageDiscountType
See Also:
Constant Field Values

amountDiscountType

public static final int amountDiscountType
See Also:
Constant Field Values
Constructor Detail

DiscountCode

public DiscountCode(int discountType,
                    java.util.Date startDate,
                    java.util.Date endDate,
                    java.lang.String codeId,
                    java.lang.String codeDescription,
                    boolean freeShipping,
                    boolean noBulkDisc,
                    int discountAmount,
                    int minOrder)

DiscountCode

public DiscountCode()
Method Detail

getDiscountType

public int getDiscountType()

setDiscountType

public void setDiscountType(int discountType)

getStartDate

public java.util.Date getStartDate()

setStartDate

public void setStartDate(java.util.Date startDate)

getEndDate

public java.util.Date getEndDate()

setEndDate

public void setEndDate(java.util.Date endDate)

getCodeId

public java.lang.String getCodeId()

setCodeId

public void setCodeId(java.lang.String codeId)

getCodeDescription

public java.lang.String getCodeDescription()

setCodeDescription

public void setCodeDescription(java.lang.String codeDescription)

getFreeShipping

public boolean getFreeShipping()

setFreeShipping

public void setFreeShipping(boolean freeShipping)

getNoBulkDisc

public boolean getNoBulkDisc()

setNoBulkDisc

public void setNoBulkDisc(boolean noBulkDisc)

getDiscountAmount

public float getDiscountAmount()

setDiscountAmount

public void setDiscountAmount(float discountAmount)

getMinOrder

public int getMinOrder()

setMinOrder

public void setMinOrder(int minOrder)

getProductFormatApplicable

public java.util.List<ProductFormat> getProductFormatApplicable()

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class Inode


Copyright © 2006 Dotmarketing, Inc. All Rights Reserved.