Class PriceableFieldProperties
- java.lang.Object
-
- com.broadleafcommerce.pricing.service.autoconfigure.PriceableFieldProperties
-
@ConfigurationProperties("broadleaf.pricing.priceable.fields") public class PriceableFieldProperties extends Object
Configuration properties for defining the names of the priceable fields that can be targeted byPriceModifier
s 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 String
baseCost
Name of the field passed in as part ofPriceableTarget.getPriceableFields()
that maps to the base cost of making the priceable entity.protected String
basePrice
Name 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 String
getBaseCost()
Name of the field passed in as part ofPriceableTarget.getPriceableFields()
that maps to the base cost of making the priceable entity.String
getBasePrice()
Name of the field passed in as part ofPriceableTarget.getPriceableFields()
that maps to the base price of the priceable entity.void
setBaseCost(String baseCost)
Name of the field passed in as part ofPriceableTarget.getPriceableFields()
that maps to the base cost of making the priceable entity.void
setBasePrice(String basePrice)
Name of the field passed in as part ofPriceableTarget.getPriceableFields()
that maps to the base price of the priceable entity.String
toString()
-
-
-
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
PriceModifiers
when there are noPriceData
or 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
PriceModifiers
when there are noPriceData
. In particular, this can be used when setting prices based on profit margin. Thus, if thebaseCost
is$1.00
and you want to maintain a 50% margin using astandard price list
, then thestandard price
would 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
PriceModifiers
when there are noPriceData
or 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
PriceModifiers
when there are noPriceData
. In particular, this can be used when setting prices based on profit margin. Thus, if thebaseCost
is$1.00
and you want to maintain a 50% margin using astandard price list
, then thestandard price
would 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
PriceModifiers
when there are noPriceData
or 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
PriceModifiers
when there are noPriceData
. In particular, this can be used when setting prices based on profit margin. Thus, if thebaseCost
is$1.00
and you want to maintain a 50% margin using astandard price list
, then thestandard price
would be$1.50
.
-
-