Class PriceableFieldProperties
- java.lang.Object
-
- com.broadleafcommerce.pricing.service.autoconfigure.PriceableFieldProperties
-
@ConfigurationProperties("broadleaf.pricing.priceable.fields") public class PriceableFieldProperties extends ObjectConfiguration properties for defining the names of the priceable fields that can be targeted byPriceModifiers or used as defaults if no price data or modifiers are found.- Author:
- Nathan Moore (nathanmoore).
-
-
Field Summary
Fields Modifier and Type Field Description protected StringbaseCostName of the field passed in as part ofPriceableTarget.getPriceableFields()that maps to the base cost of making the priceable entity.protected StringbasePriceName of the field passed in as part ofPriceableTarget.getPriceableFields()that maps to the base price of the priceable entity.
-
Constructor Summary
Constructors Constructor Description PriceableFieldProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBaseCost()Name of the field passed in as part ofPriceableTarget.getPriceableFields()that maps to the base cost of making the priceable entity.StringgetBasePrice()Name of the field passed in as part ofPriceableTarget.getPriceableFields()that maps to the base price of the priceable entity.voidsetBaseCost(String baseCost)Name of the field passed in as part ofPriceableTarget.getPriceableFields()that maps to the base cost of making the priceable entity.voidsetBasePrice(String basePrice)Name of the field passed in as part ofPriceableTarget.getPriceableFields()that maps to the base price of the priceable entity.StringtoString()
-
-
-
Field Detail
-
basePrice
protected String basePrice
Name of the field passed in as part of
PriceableTarget.getPriceableFields()that maps to the base price of the priceable entity. This could be the MRSP.This price can be used as the basis for modifications performed by
PriceModifierswhen there are noPriceDataor as the default price if there are no price modifiers either.
-
baseCost
protected String baseCost
Name of the field passed in as part of
PriceableTarget.getPriceableFields()that maps to the base cost of making the priceable entity.This cost can be used as the basis for modifications performed by
PriceModifierswhen there are noPriceData. In particular, this can be used when setting prices based on profit margin. Thus, if thebaseCostis$1.00and you want to maintain a 50% margin using astandard price list, then thestandard pricewould be$1.50.
-
-
Method Detail
-
getBasePrice
public String getBasePrice()
Name of the field passed in as part of
PriceableTarget.getPriceableFields()that maps to the base price of the priceable entity. This could be the MRSP.This price can be used as the basis for modifications performed by
PriceModifierswhen there are noPriceDataor as the default price if there are no price modifiers either.
-
getBaseCost
public String getBaseCost()
Name of the field passed in as part of
PriceableTarget.getPriceableFields()that maps to the base cost of making the priceable entity.This cost can be used as the basis for modifications performed by
PriceModifierswhen there are noPriceData. In particular, this can be used when setting prices based on profit margin. Thus, if thebaseCostis$1.00and you want to maintain a 50% margin using astandard price list, then thestandard pricewould be$1.50.
-
setBasePrice
public void setBasePrice(String basePrice)
Name of the field passed in as part of
PriceableTarget.getPriceableFields()that maps to the base price of the priceable entity. This could be the MRSP.This price can be used as the basis for modifications performed by
PriceModifierswhen there are noPriceDataor as the default price if there are no price modifiers either.
-
setBaseCost
public void setBaseCost(String baseCost)
Name of the field passed in as part of
PriceableTarget.getPriceableFields()that maps to the base cost of making the priceable entity.This cost can be used as the basis for modifications performed by
PriceModifierswhen there are noPriceData. In particular, this can be used when setting prices based on profit margin. Thus, if thebaseCostis$1.00and you want to maintain a 50% margin using astandard price list, then thestandard pricewould be$1.50.
-
-