Class PriceableFieldProperties
PriceModifiers or used as defaults if no price data or modifiers are found.- Author:
- Nathan Moore (nathanmoore).
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringName of the field passed in as part ofPriceableTarget.getPriceableFields()that maps to the base cost of making the priceable entity.protected StringName of the field passed in as part ofPriceableTarget.getPriceableFields()that maps to the base price of the priceable entity. -
Constructor Summary
Constructors -
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.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.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
PriceModifierswhen there are noPriceDataor 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
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.
-
-
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
PriceModifierswhen there are noPriceDataor 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
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
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
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. -
toString
-