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 Modifier and Type Field Description static String
BANDED_SHIPPING_PREFIX
-
Constructor Summary
Constructors Constructor Description BandedFulfillmentPricingProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.springframework.core.io.Resource
getConfigPath()
Deprecated.since 1.1.0, in favor ofshipTables
List<BandedFulfillmentPricingOption>
getShipTables(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
boolean
isActive(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
boolean
isSampleConfig(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
void
setActive(boolean active)
void
setConfigPath(org.springframework.core.io.Resource configPath)
Deprecated.since 1.1.0, in favor ofshipTables
void
setSampleConfig(boolean sampleConfig)
Whether this configuration is the out-of-the-box sample.void
setShipTables(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 Detail
-
BANDED_SHIPPING_PREFIX
public static final String BANDED_SHIPPING_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
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 public void setConfigPath(@Nullable org.springframework.core.io.Resource configPath)
Deprecated.since 1.1.0, in favor ofshipTables
The path to the configuration file used for banded shipping calculations.
-
setShipTables
public void setShipTables(List<BandedFulfillmentPricingOption> shipTables)
List of banded pricing fulfillment options that can be chosen.- Parameters:
shipTables
- List of banded pricing fulfillment options.
-
getConfigPath
@Deprecated @Nullable public org.springframework.core.io.Resource getConfigPath()
Deprecated.since 1.1.0, in favor ofshipTables
The path to the configuration file used for banded shipping calculations.
-
-