Class PriceableFieldProperties
PriceModifier
s or used as defaults if no price data or modifiers are found.- Author:
- Nathan Moore (nathanmoore).
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
Name of the field passed in as part ofPriceableTarget.getPriceableFields()
that maps to the base cost of making the priceable entity.protected String
Name of the field passed in as part ofPriceableTarget.getPriceableFields()
that maps to the base price of the priceable entity. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionName of the field passed in as part ofPriceableTarget.getPriceableFields()
that maps to the base cost of making the priceable entity.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.toString()
-
Field Details
-
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
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
.
-
-
Constructor Details
-
PriceableFieldProperties
public PriceableFieldProperties()
-
-
Method Details
-
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
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
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
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
. -
toString
-