com.elasticpath.domain.shipping
Interface ShippingCostCalculationParameter

All Superinterfaces:
EpDomain, Persistence, java.io.Serializable, ValueObject
All Known Implementing Classes:
ShippingCostCalculationParameterImpl

public interface ShippingCostCalculationParameter
extends ValueObject

Represents a parameter of a shipping cost calculation method, such as the dollar value of the fix base shipping cost.


Field Summary
static java.lang.String COST_PER_UNIT_WEIGHT
          Percentage of order total.
static java.lang.String FIXED_BASE_KEY
          Fix base.
static java.lang.String FIXED_PRICE_KEY
          Fixed price.
static java.lang.String PERCENTAGE_OF_ORDER_TOTOAL_KEY
          Percentage of order total.
 
Method Summary
 java.lang.String getDisplayText()
          Get the display text for this parameter.
 java.lang.String getKey()
          Get the parameter key.
 java.lang.String getValue()
          Get the parameter value.
 void setDisplayText(java.lang.String displayText)
          Set the text to be displayed for this parameter.
 void setKey(java.lang.String key)
          Set the parameter key.
 void setValue(java.lang.String value)
          Set the parameter value.
 
Methods inherited from interface com.elasticpath.domain.Persistence
executeBeforePersistAction, getUidPk, isPersistent, setDefaultValues, setUidPk
 
Methods inherited from interface com.elasticpath.domain.EpDomain
getElasticPath, setElasticPath
 

Field Detail

COST_PER_UNIT_WEIGHT

static final java.lang.String COST_PER_UNIT_WEIGHT
Percentage of order total.

See Also:
Constant Field Values

FIXED_BASE_KEY

static final java.lang.String FIXED_BASE_KEY
Fix base.

See Also:
Constant Field Values

FIXED_PRICE_KEY

static final java.lang.String FIXED_PRICE_KEY
Fixed price.

See Also:
Constant Field Values

PERCENTAGE_OF_ORDER_TOTOAL_KEY

static final java.lang.String PERCENTAGE_OF_ORDER_TOTOAL_KEY
Percentage of order total.

See Also:
Constant Field Values
Method Detail

getDisplayText

java.lang.String getDisplayText()
Get the display text for this parameter.

Returns:
the the display text, or the parameter value if there is no display text

getKey

java.lang.String getKey()
Get the parameter key.

Returns:
the parameter key

getValue

java.lang.String getValue()
Get the parameter value.

Returns:
the parameter value

setDisplayText

void setDisplayText(java.lang.String displayText)
Set the text to be displayed for this parameter. For example, the display text for a sku code id long. might be the actual text sku code

Parameters:
displayText - the text to display. Set to null to use the parameter value.

setKey

void setKey(java.lang.String key)
Set the parameter key.

Parameters:
key - the parameter key

setValue

void setValue(java.lang.String value)
Set the parameter value.

Parameters:
value - the parameter value