Class FixedFulfillmentPricingProperties
java.lang.Object
com.broadleafcommerce.shipping.properties.DiscriminatedProperties<FixedFulfillmentPricingProperties>
com.broadleafcommerce.shipping.service.integrations.fixed.FixedFulfillmentPricingProperties
@ConfigurationProperties("broadleaf.shipping.service.fixed")
public class FixedFulfillmentPricingProperties
extends DiscriminatedProperties<FixedFulfillmentPricingProperties>
- Author:
- Chad Harchar (charchar)
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.core.io.Resource
Deprecated.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<FixedFulfillmentPricingOption> shipTables) List of fixed 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
-
FIXED_SHIPPING_PREFIX
- See Also:
-
-
Constructor Details
-
FixedFulfillmentPricingProperties
public FixedFulfillmentPricingProperties()
-
-
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<FixedFulfillmentPricingOption> 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 ofshipTables
The path to the configuration file used for fixed fulfillment calculations. -
setShipTables
List of fixed pricing fulfillment options that can be chosen.- Parameters:
shipTables
- List of fixed pricing fulfillment options.
-
getConfigPath
Deprecated.since 1.1.0, in favor ofshipTables
The path to the configuration file used for fixed fulfillment calculations.
-
shipTables