atg.commerce.pricing.definition
Class DiscountDetail

java.lang.Object
  extended by atg.commerce.pricing.definition.DiscountDetail

public class DiscountDetail
extends java.lang.Object

Holds a single level of information about a discount structure.

Properties:

e.g. for bulk discounts the name is null and the attributes map stores the band and discount amount { "band", "1-5" }, { "adjuster", "10" } It is up to the calculator to interpret the information contained in this object to apply the correct price adjustment.

See Also:
DiscountStructure

Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
Constructor Summary
DiscountDetail()
           
 
Method Summary
 void addAttribute(java.lang.String pName, java.lang.Object pValue)
          Adds an attribute to the attribute map.
 java.util.Map<java.lang.String,java.lang.Object> getAttributes()
          Getter for the 'attributes' property
 java.lang.String getName()
          Getter method for the 'name' property.
 void setAttributes(java.util.Map<java.lang.String,java.lang.Object> pAttributes)
          Setter for the 'attributes' property.
 void setName(java.lang.String pName)
          Setter method for the 'name' property.
 java.lang.String toString()
          Writes out this object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static final java.lang.String CLASS_VERSION
Class version string

See Also:
Constant Field Values
Constructor Detail

DiscountDetail

public DiscountDetail()
Method Detail

getName

public java.lang.String getName()
Getter method for the 'name' property.

Returns:
String name, may be null.

setName

public void setName(java.lang.String pName)
Setter method for the 'name' property.

Parameters:
pName - String name to set

getAttributes

public java.util.Map<java.lang.String,java.lang.Object> getAttributes()
Getter for the 'attributes' property

Returns:
Map of String name to value Object entries

setAttributes

public void setAttributes(java.util.Map<java.lang.String,java.lang.Object> pAttributes)
Setter for the 'attributes' property.

Parameters:
pAttributes - Map of String name to value Object entries

addAttribute

public void addAttribute(java.lang.String pName,
                         java.lang.Object pValue)
Adds an attribute to the attribute map. Creates the map if needed.

Parameters:
pName - String attribute name
pValue - Object attribute value

toString

public java.lang.String toString()
Writes out this object

Overrides:
toString in class java.lang.Object
Returns:
String