Class BandedFulfillmentPricingProperties
java.lang.Object
com.broadleafcommerce.shipping.properties.DiscriminatedProperties<BandedFulfillmentPricingProperties>
com.broadleafcommerce.shipping.service.integrations.banded.BandedFulfillmentPricingProperties
@ConfigurationProperties("broadleaf.shipping.service.banded")
public class BandedFulfillmentPricingProperties
extends DiscriminatedProperties<BandedFulfillmentPricingProperties>
- Author:
- Chad Harchar (charchar)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.core.io.ResourceDeprecated.getShipTables(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) booleanisActive(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) booleanisSampleConfig(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) voidsetActive(boolean active) voidsetConfigPath(org.springframework.core.io.Resource configPath) Deprecated.since 1.1.0, in favor ofshipTablesvoidsetSampleConfig(boolean sampleConfig) Whether this configuration is the out-of-the-box sample.voidsetShipTables(List<BandedFulfillmentPricingOption> shipTables) List of banded pricing fulfillment options that can be chosen.Methods inherited from class com.broadleafcommerce.shipping.properties.DiscriminatedProperties
getApplication, getApplicationIdFromContext, getField, getField, getTenant, getTenantIdFromContext, setApplication, setTenant
-
Field Details
-
BANDED_SHIPPING_PREFIX
- See Also:
-
-
Constructor Details
-
BandedFulfillmentPricingProperties
public BandedFulfillmentPricingProperties()
-
-
Method Details
-
isActive
public boolean isActive(@Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
isSampleConfig
public boolean isSampleConfig(@Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
getShipTables
public List<BandedFulfillmentPricingOption> getShipTables(@Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
setActive
public void setActive(boolean active) -
setSampleConfig
public void setSampleConfig(boolean sampleConfig) Whether this configuration is the out-of-the-box sample. If true, a warning will be logged.- Parameters:
sampleConfig- Whether this configuration is the out-of-the-box sample.
-
setConfigPath
Deprecated.since 1.1.0, in favor ofshipTablesThe path to the configuration file used for banded shipping calculations. -
setShipTables
List of banded pricing fulfillment options that can be chosen.- Parameters:
shipTables- List of banded pricing fulfillment options.
-
getConfigPath
Deprecated.since 1.1.0, in favor ofshipTablesThe path to the configuration file used for banded shipping calculations.
-
shipTables