Class FulfillmentOptionImpl
java.lang.Object
org.broadleafcommerce.core.order.domain.FulfillmentOptionImpl
- All Implemented Interfaces:
Serializable,MultiTenantCloneable<FulfillmentOption>,FulfillmentOption
- Direct Known Subclasses:
BandedPriceFulfillmentOptionImpl,BandedWeightFulfillmentOptionImpl,FixedPriceFulfillmentOptionImpl
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<G extends FulfillmentOption>
CreateResponse<G>booleanGets the type of fulfillment that this option supportsgetId()Gets the long description for this option which can be shown to the user to provide more information about the option they are selecting.getName()Gets the name displayed to the user when they selected the FulfillmentOption for their order.Returns if option is taxableReturns taxCode of optionTells theFulfillmentPricingProviderwhether it should try to use the flat rate cost for aSkurather than try to factor thatSkuinto its shipping calculation.inthashCode()voidsetFulfillmentType(FulfillmentType fulfillmentType) Sets the type of fulfillment that this option supportsvoidvoidsetLongDescription(String longDescription) Sets the long description for this option to show to the user when they select an option for fulfilling their ordervoidSet 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"voidsetTaxable(Boolean taxable) Sets taxability of optionvoidsetTaxCode(String taxCode) Sets the taxCode of the particular optionvoidsetUseFlatRates(Boolean useFlatRates) Tells theFulfillmentPricingProviderwhether it should try to use the flat rate cost for aSkurather than try to factor thatSkuinto its shipping calculation
-
Field Details
-
id
-
name
-
longDescription
-
useFlatRates
-
fulfillmentType
-
taxCode
-
taxable
-
-
Constructor Details
-
FulfillmentOptionImpl
public FulfillmentOptionImpl()
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceFulfillmentOption
-
setId
- Specified by:
setIdin interfaceFulfillmentOption
-
getName
Description copied from interface:FulfillmentOptionGets the name displayed to the user when they selected the FulfillmentOption for their order. This might be "2-day" or "Super-saver shipping"- Specified by:
getNamein interfaceFulfillmentOption- Returns:
- the display name for this option
-
setName
Description copied from interface:FulfillmentOptionSet 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"- Specified by:
setNamein interfaceFulfillmentOption- Parameters:
name- - the display name for this option
-
getLongDescription
Description copied from interface:FulfillmentOptionGets the long description for this option which can be shown to the user to provide more information about the option they are selecting. An example might be that this is shipped the next business day or that it requires additional processing time- Specified by:
getLongDescriptionin interfaceFulfillmentOption- Returns:
- the description to display to the user
-
setLongDescription
Description copied from interface:FulfillmentOptionSets the long description for this option to show to the user when they select an option for fulfilling their order- Specified by:
setLongDescriptionin interfaceFulfillmentOption- Parameters:
longDescription- - the description to show to the user
-
getUseFlatRates
Description copied from interface:FulfillmentOptionTells theFulfillmentPricingProviderwhether it should try to use the flat rate cost for aSkurather than try to factor thatSkuinto its shipping calculation. This defaults to true- Specified by:
getUseFlatRatesin interfaceFulfillmentOption- Returns:
- true if the
FulfillmentPricingProvidershould use the flat rate on aSkuwhen it's available rather than try to calculate shipping for it, false otherwise. Default value is true
-
setUseFlatRates
Description copied from interface:FulfillmentOptionTells theFulfillmentPricingProviderwhether it should try to use the flat rate cost for aSkurather than try to factor thatSkuinto its shipping calculation- Specified by:
setUseFlatRatesin interfaceFulfillmentOption
-
getFulfillmentType
Description copied from interface:FulfillmentOptionGets the type of fulfillment that this option supports- Specified by:
getFulfillmentTypein interfaceFulfillmentOption- Returns:
- the type of this option
-
setFulfillmentType
Description copied from interface:FulfillmentOptionSets the type of fulfillment that this option supports- Specified by:
setFulfillmentTypein interfaceFulfillmentOption
-
equals
-
hashCode
public int hashCode() -
getTaxable
Description copied from interface:FulfillmentOptionReturns if option is taxable- Specified by:
getTaxablein interfaceFulfillmentOption- Returns:
-
setTaxable
Description copied from interface:FulfillmentOptionSets taxability of option- Specified by:
setTaxablein interfaceFulfillmentOption
-
getTaxCode
Description copied from interface:FulfillmentOptionReturns taxCode of option- Specified by:
getTaxCodein interfaceFulfillmentOption- Returns:
-
setTaxCode
Description copied from interface:FulfillmentOptionSets the taxCode of the particular option- Specified by:
setTaxCodein interfaceFulfillmentOption
-
createOrRetrieveCopyInstance
public <G extends FulfillmentOption> CreateResponse<G> createOrRetrieveCopyInstance(MultiTenantCopyContext context) throws CloneNotSupportedException - Specified by:
createOrRetrieveCopyInstancein interfaceMultiTenantCloneable<FulfillmentOption>- Throws:
CloneNotSupportedException
-