Class ItemAdjustment
java.lang.Object
com.broadleafcommerce.promotion.offer.client.web.context.info.Adjustment
com.broadleafcommerce.promotion.offer.client.web.context.discounts.ItemAdjustment
- All Implemented Interfaces:
Serializable
An adjustment for a line item of the order.
- Author:
- Chad Harchar (charchar)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanRepresents the details of the exchange rate used to convert aMonetaryAmountfrom one currency to another.inthashCode()booleanWhether this adjustment is applied to the sale price of the item.booleanWhether the adjustment amount was converted from another currency.voidsetAppliedToSalePrice(boolean appliedToSalePrice) Whether this adjustment is applied to the sale price of the item.voidsetConvertedCurrencyDetail(ConvertedCurrencyDetail convertedCurrencyDetail) Represents the details of the exchange rate used to convert aMonetaryAmountfrom one currency to another.toString()Methods inherited from class com.broadleafcommerce.promotion.offer.client.web.context.info.Adjustment
getAdjustmentAmount, getBeginPeriod, getCampaignTrackingId, getCodeUsed, getEndPeriod, getFreeTrialLength, getFreeTrialLengthUnits, getItemAdjustmentQuantity, getOfferCodeRef, getOfferRef, getOfferUses, getQualifierDetails, getQuantityPerUsage, getServiceLevel, getType, isExistingAdjustment, isFutureCredit, setAdjustmentAmount, setBeginPeriod, setCampaignTrackingId, setCodeUsed, setEndPeriod, setExistingAdjustment, setFreeTrialLength, setFreeTrialLengthUnits, setFutureCredit, setItemAdjustmentQuantity, setOfferCodeRef, setOfferRef, setOfferUses, setQualifierDetails, setQuantityPerUsage, setServiceLevel, setType
-
Constructor Details
-
ItemAdjustment
public ItemAdjustment()
-
-
Method Details
-
isCurrencyConverted
public boolean isCurrencyConverted()Whether the adjustment amount was converted from another currency.- Since:
- 2.0.4
-
isAppliedToSalePrice
public boolean isAppliedToSalePrice()Whether this adjustment is applied to the sale price of the item. -
getConvertedCurrencyDetail
Represents the details of the exchange rate used to convert aMonetaryAmountfrom one currency to another. This is used to describe the amount of the adjustment if it was converted from a base currency. This is done when the target item was in a different currency from the offer and was also converted, that is, the item's original currency was the same as that which the offer targets but its price was converted to another currency.- Since:
- 2.0.4
-
setAppliedToSalePrice
public void setAppliedToSalePrice(boolean appliedToSalePrice) Whether this adjustment is applied to the sale price of the item. -
setConvertedCurrencyDetail
Represents the details of the exchange rate used to convert aMonetaryAmountfrom one currency to another. This is used to describe the amount of the adjustment if it was converted from a base currency. This is done when the target item was in a different currency from the offer and was also converted, that is, the item's original currency was the same as that which the offer targets but its price was converted to another currency.- Since:
- 2.0.4
-
equals
- Overrides:
equalsin classAdjustment
-
canEqual
- Overrides:
canEqualin classAdjustment
-
hashCode
public int hashCode()- Overrides:
hashCodein classAdjustment
-
toString
- Overrides:
toStringin classAdjustment
-