public class PricingAdjustment
extends java.lang.Object
implements java.io.Serializable
adjustments
list.
Properties:
AmountInfo
,
Serialized FormModifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
Constructor and Description |
---|
PricingAdjustment()
Constructors
|
PricingAdjustment(java.lang.String pAdjustmentDescription,
RepositoryItem pPricingModel,
double pTotalAdjustment,
double pQuantityWithFractionAdjusted) |
PricingAdjustment(java.lang.String pAdjustmentDescription,
RepositoryItem pPricingModel,
double pTotalAdjustment,
double pQuantityWithFractionAdjusted,
java.lang.Integer pPricingModelIndex) |
PricingAdjustment(java.lang.String pAdjustmentDescription,
RepositoryItem pPricingModel,
double pTotalAdjustment,
double pQuantityWithFractionAdjusted,
java.lang.Integer pPricingModelIndex,
java.lang.Integer pPricingModelGroupIndex) |
PricingAdjustment(java.lang.String pAdjustmentDescription,
RepositoryItem pPricingModel,
double pTotalAdjustment,
double pQuantityWithFractionAdjusted,
RepositoryItem pCoupon) |
PricingAdjustment(java.lang.String pAdjustmentDescription,
RepositoryItem pPricingModel,
double pTotalAdjustment,
long pQuantityAdjusted) |
PricingAdjustment(java.lang.String pAdjustmentDescription,
RepositoryItem pPricingModel,
double pTotalAdjustment,
long pQuantityAdjusted,
double pQuantityWithFractionAdjusted) |
PricingAdjustment(java.lang.String pAdjustmentDescription,
RepositoryItem pPricingModel,
double pTotalAdjustment,
long pQuantityAdjusted,
double pQuantityWithFractionAdjusted,
java.lang.Integer pPricingModelIndex) |
PricingAdjustment(java.lang.String pAdjustmentDescription,
RepositoryItem pPricingModel,
double pTotalAdjustment,
long pQuantityAdjusted,
double pQuantityWithFractionAdjusted,
java.lang.Integer pPricingModelIndex,
java.lang.Integer pPricingModelGroupIndex) |
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,
java.lang.Integer pPricingModelIndex,
java.lang.Integer pPricingModelGroupIndex) |
PricingAdjustment(java.lang.String pAdjustmentDescription,
RepositoryItem pPricingModel,
double pTotalAdjustment,
long pQuantityAdjusted,
RepositoryItem pCoupon) |
PricingAdjustment(java.lang.String pAdjustmentDescription,
RepositoryItem pPricingModel,
RepositoryItem pManualPricingAdjustment,
double pTotalAdjustment,
double pQuantityWithFractionAdjusted) |
PricingAdjustment(java.lang.String pAdjustmentDescription,
RepositoryItem pPricingModel,
RepositoryItem pManualPricingAdjustment,
double pTotalAdjustment,
double pQuantityWithFractionAdjusted,
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) |
Modifier and Type | Method and Description |
---|---|
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 |
getPricingModelGroupIndex()
Gets the PricingModelGroupIndex property
|
java.lang.Integer |
getPricingModelIndex()
Get property PricingModelIndex
|
long |
getQuantityAdjusted()
Get property QuantityAdjusted
|
double |
getQuantityAdjustedDerivedAsFloatingPoint()
This method will return a derived quantity value that this adjustment affected.
|
double |
getQuantityWithFractionAdjusted()
Returns the quantity with fraction that this adjustment affected.
|
java.lang.Integer |
getQuoteInfoIndex()
Gets the QuoteInfoIndex property
|
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 |
setPricingModelGroupIndex(java.lang.Integer pPricingModelGroupIndex)
Sets the PricingModelGroupIndex property
|
void |
setPricingModelIndex(java.lang.Integer pPricingModelIndex)
Set property PricingModelIndex.
|
void |
setQuantityAdjusted(long pQuantityAdjusted)
Set property QuantityAdjusted
|
void |
setQuantityWithFractionAdjusted(double pQuantityWithFractionAdjusted)
Sets the quantity with fraction that this adjustment affected.
|
void |
setQuoteInfoIndex(java.lang.Integer pQuoteInfoIndex)
Sets the QuoteInfoIndex property
|
void |
setTotalAdjustment(double pTotalAdjustment) |
java.lang.String |
toString()
Object override
|
public PricingAdjustment()
public PricingAdjustment(java.lang.String pAdjustmentDescription, RepositoryItem pPricingModel, double pTotalAdjustment, long pQuantityAdjusted)
public PricingAdjustment(java.lang.String pAdjustmentDescription, RepositoryItem pPricingModel, double pTotalAdjustment, double pQuantityWithFractionAdjusted)
public PricingAdjustment(java.lang.String pAdjustmentDescription, RepositoryItem pPricingModel, double pTotalAdjustment, long pQuantityAdjusted, double pQuantityWithFractionAdjusted)
public PricingAdjustment(java.lang.String pAdjustmentDescription, RepositoryItem pPricingModel, double pTotalAdjustment, long pQuantityAdjusted, RepositoryItem pCoupon)
public PricingAdjustment(java.lang.String pAdjustmentDescription, RepositoryItem pPricingModel, double pTotalAdjustment, double pQuantityWithFractionAdjusted, RepositoryItem pCoupon)
public PricingAdjustment(java.lang.String pAdjustmentDescription, RepositoryItem pPricingModel, RepositoryItem pManualPricingAdjustment, double pTotalAdjustment, long pQuantityAdjusted)
public PricingAdjustment(java.lang.String pAdjustmentDescription, RepositoryItem pPricingModel, RepositoryItem pManualPricingAdjustment, double pTotalAdjustment, double pQuantityWithFractionAdjusted)
public PricingAdjustment(java.lang.String pAdjustmentDescription, RepositoryItem pPricingModel, RepositoryItem pManualPricingAdjustment, double pTotalAdjustment, long pQuantityAdjusted, RepositoryItem pCoupon)
public PricingAdjustment(java.lang.String pAdjustmentDescription, RepositoryItem pPricingModel, RepositoryItem pManualPricingAdjustment, double pTotalAdjustment, double pQuantityWithFractionAdjusted, RepositoryItem pCoupon)
public PricingAdjustment(java.lang.String pAdjustmentDescription, RepositoryItem pPricingModel, double pTotalAdjustment, long pQuantityAdjusted, java.lang.Integer pPricingModelIndex)
public PricingAdjustment(java.lang.String pAdjustmentDescription, RepositoryItem pPricingModel, double pTotalAdjustment, double pQuantityWithFractionAdjusted, java.lang.Integer pPricingModelIndex)
public PricingAdjustment(java.lang.String pAdjustmentDescription, RepositoryItem pPricingModel, double pTotalAdjustment, long pQuantityAdjusted, double pQuantityWithFractionAdjusted, java.lang.Integer pPricingModelIndex)
public PricingAdjustment(java.lang.String pAdjustmentDescription, RepositoryItem pPricingModel, double pTotalAdjustment, long pQuantityAdjusted, java.lang.Integer pPricingModelIndex, java.lang.Integer pPricingModelGroupIndex)
public PricingAdjustment(java.lang.String pAdjustmentDescription, RepositoryItem pPricingModel, double pTotalAdjustment, double pQuantityWithFractionAdjusted, java.lang.Integer pPricingModelIndex, java.lang.Integer pPricingModelGroupIndex)
public PricingAdjustment(java.lang.String pAdjustmentDescription, RepositoryItem pPricingModel, double pTotalAdjustment, long pQuantityAdjusted, double pQuantityWithFractionAdjusted, java.lang.Integer pPricingModelIndex, java.lang.Integer pPricingModelGroupIndex)
public void setAdjustmentDescription(java.lang.String pAdjustmentDescription)
pAdjustmentDescription
- new value to setpublic java.lang.String getAdjustmentDescription()
public void setPricingModel(RepositoryItem pPricingModel)
public RepositoryItem getPricingModel()
public void setCoupon(RepositoryItem pCoupon)
public RepositoryItem getCoupon()
public void setManualPricingAdjustment(RepositoryItem pManualPricingAdjustment)
public RepositoryItem getManualPricingAdjustment()
public void setAdjustment(double pAdjustment)
public double getAdjustment()
public void setTotalAdjustment(double pTotalAdjustment)
public double getTotalAdjustment()
public void setQuantityAdjusted(long pQuantityAdjusted)
pQuantityAdjusted
- new value to setpublic long getQuantityAdjusted()
public void setQuantityWithFractionAdjusted(double pQuantityWithFractionAdjusted)
pQuantityWithFractionAdjusted
- represents the fractional quantity that this adjustment affected.public double getQuantityWithFractionAdjusted()
double
value.public double getQuantityAdjustedDerivedAsFloatingPoint()
It will decide upon the correct quantity adjustment value to return, returning the first non zero
value from the properties, QuantityAdjustedWithFraction
, QuantityAdjusted
, in that order.
The method should be used where there is a need to know the quantity of an item
but it is unknown to the caller as to which property (QuantityAdjustedWithFraction
or
QuantityAdjusted
holds the value.
public void setPricingModelIndex(java.lang.Integer pPricingModelIndex)
pPricingModelIndex
- index for the pricing modelpublic java.lang.Integer getPricingModelIndex()
public java.lang.Integer getPricingModelGroupIndex()
public void setPricingModelGroupIndex(java.lang.Integer pPricingModelGroupIndex)
pPricingModelGroupIndex
- group index for the pricing modelpublic java.lang.Integer getQuoteInfoIndex()
public void setQuoteInfoIndex(java.lang.Integer pQuoteInfoIndex)
pQuoteInfoIndex
- quote info index for the pricing adjustmentpublic java.lang.String toString()
toString
in class java.lang.Object