public interface FulfillmentOption extends Serializable
Note: even though the default Broadleaf implementation of this is non-abstract (FulfillmentOptionImpl),
it is very rare that you would actually want to instantiate a raw FulfillmentOptionImpl rather than using
a subclass of this.
FulfillmentPricingProvider}, {@link FulfillmentGroup}| Modifier and Type | Method and Description |
|---|---|
FulfillmentType |
getFulfillmentType()
Gets the type of fulfillment that this option supports
|
Long |
getId() |
String |
getLongDescription()
Gets the long description for this option which can be shown to the user
to provide more information about the option they are selecting.
|
String |
getName()
Gets the name displayed to the user when they selected the FulfillmentOption for
their order.
|
Boolean |
getTaxable()
Returns if option is taxable
|
String |
getTaxCode()
Returns taxCode of option
|
Boolean |
getUseFlatRates()
Tells the
FulfillmentPricingProvider whether it should try to use the
flat rate cost for a Sku rather than try to factor that Sku
into its shipping calculation. |
void |
setFulfillmentType(FulfillmentType fulfillmentType)
Sets the type of fulfillment that this option supports
|
void |
setId(Long id) |
void |
setLongDescription(String longDescription)
Sets the long description for this option to show to the user when they select an option
for fulfilling their order
|
void |
setName(String name)
Set the display name for this option that will be shown to the user to select from
such as "2-day" or "Express" or "Super-saver shipping"
|
void |
setTaxable(Boolean taxable)
Sets taxability of option
|
void |
setTaxCode(String taxCode)
Sets the taxCode of the particular option
|
void |
setUseFlatRates(Boolean useFlatRates)
Tells the
FulfillmentPricingProvider whether it should try to use the
flat rate cost for a Sku rather than try to factor that Sku
into its shipping calculation |
Long getId()
void setId(Long id)
String getName()
void setName(String name)
name - - the display name for this optionString getLongDescription()
void setLongDescription(String longDescription)
longDescription - - the description to show to the userBoolean getUseFlatRates()
FulfillmentPricingProvider whether it should try to use the
flat rate cost for a Sku rather than try to factor that Sku
into its shipping calculation. This defaults to trueFulfillmentPricingProvider should use
the flat rate on a Sku when it's available rather than try to calculate
shipping for it, false otherwise. Default value is truevoid setUseFlatRates(Boolean useFlatRates)
FulfillmentPricingProvider whether it should try to use the
flat rate cost for a Sku rather than try to factor that Sku
into its shipping calculationuseFlatRates - FulfillmentType getFulfillmentType()
void setFulfillmentType(FulfillmentType fulfillmentType)
fulfillmentType - void setTaxCode(String taxCode)
taxCode - String getTaxCode()
Boolean getTaxable()
void setTaxable(Boolean taxable)
taxable - Copyright © 2014. All Rights Reserved.