Package com.broadleafcommerce.shipping
Class FulfillmentOption
java.lang.Object
com.broadleafcommerce.shipping.FulfillmentOption
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BandedFulfillmentPricingOption
,FixedFulfillmentPricingOption
,VirtualFulfillmentPricingOption
A fulfillment option is used to hold information about a particular type of fulfillment
implementation. Third-party fulfillment implementations should extend this to provide their own
configuration options particular to that implementation.
- Author:
- Chad Harchar (charchar)
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The description of this option.getName()
The name of this option.The tax code for this option.int
hashCode()
boolean
Whether any shipping prices should be taxable for this option.boolean
Whether to use flat rates for this option.void
setDescription
(String description) The description of this option.void
The name of this option.void
setTaxable
(boolean taxable) Whether any shipping prices should be taxable for this option.void
setTaxCode
(String taxCode) The tax code for this option.void
setUseFlatRates
(boolean useFlatRates) Whether to use flat rates for this option.toString()
-
Constructor Details
-
FulfillmentOption
public FulfillmentOption()
-
-
Method Details
-
getName
The name of this option. This is expected to be unique across all options. It is used to determine which option is used for a fulfillment group and what options a specific FulfillmentPricingProvider can provide pricing for.- Returns:
- The name of this option.
-
getDescription
The description of this option. Used to display information to a customer.- Returns:
- The description of this option.
-
isUseFlatRates
public boolean isUseFlatRates()Whether to use flat rates for this option.- Returns:
- Whether to use flat rates for this option.
-
getTaxCode
The tax code for this option.- Returns:
- The tax code for this option.
-
isTaxable
public boolean isTaxable()Whether any shipping prices should be taxable for this option.- Returns:
- Whether any shipping prices should be taxable for this option.
-
setName
The name of this option. This is expected to be unique across all options. It is used to determine which option is used for a fulfillment group and what options a specific FulfillmentPricingProvider can provide pricing for.- Parameters:
name
- The name of this option.
-
setDescription
The description of this option. Used to display information to a customer.- Parameters:
description
- The description of this option.
-
setUseFlatRates
public void setUseFlatRates(boolean useFlatRates) Whether to use flat rates for this option.- Parameters:
useFlatRates
- Whether to use flat rates for this option.
-
setTaxCode
The tax code for this option.- Parameters:
taxCode
- The tax code for this option.
-
setTaxable
public void setTaxable(boolean taxable) Whether any shipping prices should be taxable for this option.- Parameters:
taxable
- Whether any shipping prices should be taxable for this option.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-