atg.commerce.pricing.result
Class PriceAdjustment

java.lang.Object
  extended by atg.commerce.pricing.result.PriceAdjustment

public class PriceAdjustment
extends java.lang.Object

Represents an element of a price's audit trail. A chain of these objects represents all of the changes that a price has undergone. This is useful in examining how a price was calculated. These appear in the AmountInfo's adjustments list. Properties:

Note: a unit adjustment amount is just the total adjustment divided by the quantity

See Also:
AmountInfo

Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
Constructor Summary
PriceAdjustment()
          Constructors
PriceAdjustment(java.lang.String pDescription, java.lang.String pPricingModelId, double pTotalAdjustment, long pQuantityAdjusted)
           
 
Method Summary
 java.lang.String getDescription()
          Get property Description
 java.lang.String getPricingModelId()
          The pricing model that caused this price adjustment
 long getQuantityAdjusted()
          Get property QuantityAdjusted
 double getTotalAdjustment()
          The total price adjustment
 void setDescription(java.lang.String pDescription)
          Set property Description
 void setPricingModelId(java.lang.String pPricingModelId)
           
 void setQuantityAdjusted(long pQuantityAdjusted)
          Set property QuantityAdjusted
 void setTotalAdjustment(double pTotalAdjustment)
           
 java.lang.String toString()
          Object override
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Class version string

Constructor Detail

PriceAdjustment

public PriceAdjustment()
Constructors


PriceAdjustment

public PriceAdjustment(java.lang.String pDescription,
                       java.lang.String pPricingModelId,
                       double pTotalAdjustment,
                       long pQuantityAdjusted)
Method Detail

setDescription

public void setDescription(java.lang.String pDescription)
Set property Description

Parameters:
pDescription - new value to set

getDescription

public java.lang.String getDescription()
Get property Description

Returns:
Description

setPricingModelId

public void setPricingModelId(java.lang.String pPricingModelId)

getPricingModelId

public java.lang.String getPricingModelId()
The pricing model that caused this price adjustment


setTotalAdjustment

public void setTotalAdjustment(double pTotalAdjustment)

getTotalAdjustment

public double getTotalAdjustment()
The total price adjustment


setQuantityAdjusted

public void setQuantityAdjusted(long pQuantityAdjusted)
Set property QuantityAdjusted

Parameters:
pQuantityAdjusted - new value to set

getQuantityAdjusted

public long getQuantityAdjusted()
Get property QuantityAdjusted

Returns:
QuantityAdjusted

toString

public java.lang.String toString()
Object override

Overrides:
toString in class java.lang.Object