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, double pTotalAdjustment, long pQuantityAdjusted, java.lang.Integer pPricingModelIndex)
           
PricingAdjustment(java.lang.String pAdjustmentDescription, RepositoryItem pPricingModel, double pTotalAdjustment, long pQuantityAdjusted, RepositoryItem pCoupon)
           
PricingAdjustment(java.lang.String pAdjustmentDescription, RepositoryItem pPricingModel, RepositoryItem pManualPricingAdjustment, double pTotalAdjustment, long pQuantityAdjusted)
           
PricingAdjustment(java.lang.String pAdjustmentDescription, RepositoryItem pPricingModel, RepositoryItem pManualPricingAdjustment, double pTotalAdjustment, long pQuantityAdjusted, RepositoryItem pCoupon)
           
 
Method Summary
 double getAdjustment()
          The unit price adjustment
 java.lang.String getAdjustmentDescription()
          Get property AdjustmentDescription
 RepositoryItem getCoupon()
          The Coupon claimed that caused the pricing model to be granted
 RepositoryItem getManualPricingAdjustment()
          The manual pricing adjustment that caused this price adjustment
 RepositoryItem getPricingModel()
          The pricing model that caused this price adjustment
 java.lang.Integer getPricingModelIndex()
          Get property PricingModelIndex
 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 setCoupon(RepositoryItem pCoupon)
           
 void setManualPricingAdjustment(RepositoryItem pManualPricingAdjustment)
           
 void setPricingModel(RepositoryItem pPricingModel)
           
 void setPricingModelIndex(java.lang.Integer pPricingModelIndex)
          Set property PricingModelIndex.
 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,
                         double pTotalAdjustment,
                         long pQuantityAdjusted,
                         RepositoryItem pCoupon)

PricingAdjustment

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

PricingAdjustment

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

PricingAdjustment

public PricingAdjustment(java.lang.String pAdjustmentDescription,
                         RepositoryItem pPricingModel,
                         double pTotalAdjustment,
                         long pQuantityAdjusted,
                         java.lang.Integer pPricingModelIndex)
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


setCoupon

public void setCoupon(RepositoryItem pCoupon)

getCoupon

public RepositoryItem getCoupon()
The Coupon claimed that caused the pricing model to be granted


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

setPricingModelIndex

public void setPricingModelIndex(java.lang.Integer pPricingModelIndex)
Set property PricingModelIndex.

Parameters:
pPricingModelIndex - index for the pricing model

getPricingModelIndex

public java.lang.Integer getPricingModelIndex()
Get property PricingModelIndex

Returns:
index for the pricing model

toString

public java.lang.String toString()
Object override

Overrides:
toString in class java.lang.Object