Class ShipEngineProperties
java.lang.Object
com.broadleafcommerce.shipping.service.integrations.shipengine.config.ShipEngineProperties
@ConfigurationProperties(prefix="broadleaf.shipping.service.shipengine")
public class ShipEngineProperties
extends Object
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classShipEngine requires a FROM address for rates and labels. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe ShipEngine address validation mode to use for rates and labels.The ShipEngine API key.The fully-qualified domain name of the ShipEngine API.The list of carrier ids to use for shipping rates.The default FROM address to use for rates and labels.The tax code for Fulfillment Options created from ShipEngine Rates.booleanisActive()Enable this shipping integration.booleanGet carrier ids from properties instead of an API call if true.booleanDetermines if Fulfillment Options created from ShipEngine Rates should be marked as taxable.voidsetActive(boolean active) Enable this shipping integration.voidsetAddressValidationMode(String addressValidationMode) The ShipEngine address validation mode to use for rates and labels.voidThe ShipEngine API key.voidsetBaseUrl(String baseUrl) The fully-qualified domain name of the ShipEngine API.voidsetCarriers(List<String> carriers) The list of carrier ids to use for shipping rates.voidsetDefaultFromAddress(ShipEngineProperties.DefaultFromAddress defaultFromAddress) The default FROM address to use for rates and labels.voidsetGetCarriersFromProperties(boolean getCarriersFromProperties) Get carrier ids from properties instead of an API call if true.voidsetTaxable(boolean taxable) Determines if Fulfillment Options created from ShipEngine Rates should be marked as taxable.voidsetTaxCode(String taxCode) The tax code for Fulfillment Options created from ShipEngine Rates.
-
Field Details
-
SHIPENGINE_PREFIX
- See Also:
-
-
Constructor Details
-
ShipEngineProperties
public ShipEngineProperties()
-
-
Method Details
-
isActive
public boolean isActive()Enable this shipping integration.- Returns:
- True if this integration should be enabled
-
getApiKey
The ShipEngine API key.- Returns:
- The ShipEngine API key.
-
getBaseUrl
The fully-qualified domain name of the ShipEngine API.- Returns:
- The fully-qualified domain name of the ShipEngine API.
-
isGetCarriersFromProperties
public boolean isGetCarriersFromProperties()Get carrier ids from properties instead of an API call if true.- Returns:
- Get carrier ids from properties instead of an API call if true.
-
getCarriers
The list of carrier ids to use for shipping rates. Only used if getCarriersFromProperties is true.- Returns:
- The list of carrier ids to use for shipping rates. Only used if getCarriersFromProperties is true.
-
getDefaultFromAddress
The default FROM address to use for rates and labels.- Returns:
- The default FROM address to use for rates and labels.
-
getAddressValidationMode
The ShipEngine address validation mode to use for rates and labels.- Returns:
- The ShipEngine address validation mode to use for rates and labels.
-
isTaxable
public boolean isTaxable()Determines if Fulfillment Options created from ShipEngine Rates should be marked as taxable.- Returns:
- Determines if Fulfillment Options created from ShipEngine Rates should be marked as taxable.
-
getTaxCode
The tax code for Fulfillment Options created from ShipEngine Rates.- Returns:
- The tax code for Fulfillment Options created from ShipEngine Rates.
-
setActive
public void setActive(boolean active) Enable this shipping integration.- Parameters:
active- True if this integration should be enabled
-
setApiKey
The ShipEngine API key.- Parameters:
apiKey- The ShipEngine API key.
-
setBaseUrl
The fully-qualified domain name of the ShipEngine API.- Parameters:
baseUrl- The fully-qualified domain name of the ShipEngine API.
-
setGetCarriersFromProperties
public void setGetCarriersFromProperties(boolean getCarriersFromProperties) Get carrier ids from properties instead of an API call if true.- Parameters:
getCarriersFromProperties- Get carrier ids from properties instead of an API call if true.
-
setCarriers
The list of carrier ids to use for shipping rates. Only used if getCarriersFromProperties is true.- Parameters:
carriers- The list of carrier ids to use for shipping rates. Only used if getCarriersFromProperties is true.
-
setDefaultFromAddress
The default FROM address to use for rates and labels.- Parameters:
defaultFromAddress- The default FROM address to use for rates and labels.
-
setAddressValidationMode
The ShipEngine address validation mode to use for rates and labels.- Parameters:
addressValidationMode- The ShipEngine address validation mode to use for rates and labels.
-
setTaxable
public void setTaxable(boolean taxable) Determines if Fulfillment Options created from ShipEngine Rates should be marked as taxable.- Parameters:
taxable- Determines if Fulfillment Options created from ShipEngine Rates should be marked as taxable.
-
setTaxCode
The tax code for Fulfillment Options created from ShipEngine Rates.- Parameters:
taxCode- The tax code for Fulfillment Options created from ShipEngine Rates.
-