Class FulfillmentOption
- java.lang.Object
-
- com.broadleafcommerce.order.common.domain.FulfillmentOption
-
- All Implemented Interfaces:
Serializable
public class FulfillmentOption extends Object implements Serializable
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. For instance, a UPS shipping calculator might want an admin user to be able to specify which type of UPS shipping this FulfillmentOption represents. TODO: flesh out javadocs once shipping provider is added, look at legacy javadocs of this corresponding class for example of how this worked in legacy- Author:
- Chad Harchar (charchar)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FulfillmentOption()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)StringgetDescription()The description of this option.StringgetName()The name of this option.StringgetTaxCode()The tax code for this option.inthashCode()booleanisTaxable()Whether any shipping prices should be taxable for this option.booleanisUseFlatRates()Whether to use flat rates for this option.voidsetDescription(String description)The description of this option.voidsetName(String name)The name of this option.voidsetTaxable(boolean taxable)Whether any shipping prices should be taxable for this option.voidsetTaxCode(String taxCode)The tax code for this option.voidsetUseFlatRates(boolean useFlatRates)Whether to use flat rates for this option.StringtoString()
-
-
-
Method Detail
-
getName
public String getName()
The name of this option.- Returns:
- The name of this option.
-
getDescription
public String getDescription()
The description of this option.- 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
public String 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
public void setName(String name)
The name of this option.- Parameters:
name- The name of this option.
-
setDescription
public void setDescription(String description)
The description of this option.- 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
public void setTaxCode(String taxCode)
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.
-
canEqual
protected boolean canEqual(Object other)
-
-