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
Modifier and TypeClassDescriptionstatic class
ShipEngine requires a FROM address for rates and labels. -
Field Summary
-
Constructor Summary
-
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.boolean
isActive()
Enable this shipping integration.boolean
Get carrier ids from properties instead of an API call if true.boolean
Determines if Fulfillment Options created from ShipEngine Rates should be marked as taxable.void
setActive
(boolean active) Enable this shipping integration.void
setAddressValidationMode
(String addressValidationMode) The ShipEngine address validation mode to use for rates and labels.void
The ShipEngine API key.void
setBaseUrl
(String baseUrl) The fully-qualified domain name of the ShipEngine API.void
setCarriers
(List<String> carriers) The list of carrier ids to use for shipping rates.void
setDefaultFromAddress
(ShipEngineProperties.DefaultFromAddress defaultFromAddress) The default FROM address to use for rates and labels.void
setGetCarriersFromProperties
(boolean getCarriersFromProperties) Get carrier ids from properties instead of an API call if true.void
setTaxable
(boolean taxable) Determines if Fulfillment Options created from ShipEngine Rates should be marked as taxable.void
setTaxCode
(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.
-