atg.commerce.pricing
Class PricingAdjustment

java.lang.Object
  extended by atg.commerce.pricing.PricingAdjustment
All Implemented Interfaces:
java.io.Serializable

public class PricingAdjustment
extends java.lang.Object
implements java.io.Serializable

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, Serialized Form

Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
Constructor Summary
PricingAdjustment()
          Constructors
PricingAdjustment(java.lang.String pAdjustmentDescription, RepositoryItem pPricingModel, double pTotalAdjustment, long pQuantityAdjusted)
           
PricingAdjustment(java.lang.String pAdjustmentDescription, RepositoryItem pPricingModel, RepositoryItem pManualPricingAdjustment, double pTotalAdjustment, long pQuantityAdjusted)
           
 
Method Summary
 double getAdjustment()
          The unit price adjustment
 java.lang.String getAdjustmentDescription()
          Get property AdjustmentDescription
 RepositoryItem getManualPricingAdjustment()
          The manual pricing adjustment that caused this price adjustment
 RepositoryItem getPricingModel()
          The pricing model that caused this price adjustment
 long getQuantityAdjusted()
          Get property QuantityAdjusted
 double getTotalAdjustment()
          The total price adjustment
 void setAdjustment(double pAdjustment)
          Deprecated.  
 void setAdjustmentDescription(java.lang.String pAdjustmentDescription)
          Set property AdjustmentDescription
 void setManualPricingAdjustment(RepositoryItem pManualPricingAdjustment)
           
 void setPricingModel(RepositoryItem pPricingModel)
           
 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

PricingAdjustment

public PricingAdjustment()
Constructors


PricingAdjustment

public PricingAdjustment(java.lang.String pAdjustmentDescription,
                         RepositoryItem pPricingModel,
                         double pTotalAdjustment,
                         long pQuantityAdjusted)

PricingAdjustment

public PricingAdjustment(java.lang.String pAdjustmentDescription,
                         RepositoryItem pPricingModel,
                         RepositoryItem pManualPricingAdjustment,
                         double pTotalAdjustment,
                         long pQuantityAdjusted)
Method Detail

setAdjustmentDescription

public void setAdjustmentDescription(java.lang.String pAdjustmentDescription)
Set property AdjustmentDescription

Parameters:
pAdjustmentDescription - new value to set

getAdjustmentDescription

public java.lang.String getAdjustmentDescription()
Get property AdjustmentDescription

Returns:
AdjustmentDescription

setPricingModel

public void setPricingModel(RepositoryItem pPricingModel)

getPricingModel

public RepositoryItem getPricingModel()
The pricing model that caused this price adjustment


setManualPricingAdjustment

public void setManualPricingAdjustment(RepositoryItem pManualPricingAdjustment)

getManualPricingAdjustment

public RepositoryItem getManualPricingAdjustment()
The manual pricing adjustment that caused this price adjustment


setAdjustment

public void setAdjustment(double pAdjustment)
Deprecated. 

Set the unit price adjustment. This will actually set the total adjustment.


getAdjustment

public double getAdjustment()
The unit 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