|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ShippingServiceLevel
A ShippingServiceLevel represents a shipping option assoicated with a shipping region.
Field Summary | |
---|---|
static java.lang.String |
LOCALIZED_PROPERTY_NAME
The name of localized property -- name. |
Method Summary | |
---|---|
Money |
calculateRegularPriceShippingCost(ShoppingCart shoppingCart)
Calculate and return the shipping cost before any discount has been applied. |
Money |
calculateShippingCost(ShoppingCart shoppingCart)
Return the calculated, after-promotion shipping cost. |
void |
clearPromotions()
Clears any discount that has been set for this shipping service level. |
java.lang.String |
getCarrier()
|
LocalizedProperties |
getLocalizedProperties()
Returns the LocalizedProperties . |
java.lang.String |
getName(java.util.Locale locale)
Return the ShippingServiceLevel name for the given locale. |
Money |
getRegularPriceShippingCost()
Return the calculted before-discount shipping cost (make sure calculateRegularPriceShippingCost has been invoked already). |
Money |
getShippingCost()
Return the calculated, after-promotion shipping cost (make sure calculateShippingCost has been invoked already). |
ShippingCostCalculationMethod |
getShippingCostCalculationMethod()
Get the shipping cost calculation method associated with this ShippingServiceLevel . |
ShippingRegion |
getShippingRegion()
Get the shipping region associated with this ShippingServiceLevel . |
void |
setCarrier(java.lang.String carrier)
|
void |
setShippingCostCalculationMethod(ShippingCostCalculationMethod shippingCostCalculationMethod)
Set the shipping cost calculation method associated with this ShippingServiceLevel . |
void |
setShippingDiscount(Money discount)
Applies a discount to this shipping service level. |
void |
setShippingRegion(ShippingRegion shippingRegion)
Set the shipping region associated with this ShippingServiceLevel . |
Methods inherited from interface com.elasticpath.domain.Entity |
---|
getGuid, setGuid |
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 |
---|
static final java.lang.String LOCALIZED_PROPERTY_NAME
Method Detail |
---|
Money calculateRegularPriceShippingCost(ShoppingCart shoppingCart)
shoppingCart
- the shopping cart containing items to be shipped
Money calculateShippingCost(ShoppingCart shoppingCart)
shoppingCart
- the shopping cart containing items to be shipped
void clearPromotions()
java.lang.String getCarrier()
LocalizedProperties getLocalizedProperties()
LocalizedProperties
.
LocalizedProperties
java.lang.String getName(java.util.Locale locale)
ShippingServiceLevel
name for the given locale.
locale
- the locale to retrieve the name.
Money getRegularPriceShippingCost()
Money getShippingCost()
ShippingCostCalculationMethod getShippingCostCalculationMethod()
ShippingServiceLevel
.
ShippingRegion getShippingRegion()
ShippingServiceLevel
.
void setCarrier(java.lang.String carrier)
carrier
- The carrier to set.void setShippingCostCalculationMethod(ShippingCostCalculationMethod shippingCostCalculationMethod)
ShippingServiceLevel
.
shippingCostCalculationMethod
- the shipping cost calculation method to be associated with this shippingServiceLevel.void setShippingDiscount(Money discount)
discount
- the amount to be discountedvoid setShippingRegion(ShippingRegion shippingRegion)
ShippingServiceLevel
.
shippingRegion
- the shipping region to be associated with this shippingServiceLevel.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |