Class VirtualFulfillmentPricingProperties
- java.lang.Object
-
- com.broadleafcommerce.shipping.properties.DiscriminatedProperties<VirtualFulfillmentPricingProperties>
-
- com.broadleafcommerce.shipping.service.integrations.virtual.VirtualFulfillmentPricingProperties
-
@ConfigurationProperties("broadleaf.shipping.service.virtual") public class VirtualFulfillmentPricingProperties extends DiscriminatedProperties<VirtualFulfillmentPricingProperties>- Author:
- Marie Standeven (marieStandeven)
-
-
Field Summary
Fields Modifier and Type Field Description static StringVIRTUAL_SHIPPING_PREFIX
-
Constructor Summary
Constructors Constructor Description VirtualFulfillmentPricingProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.springframework.core.io.ResourcegetConfigPath()Deprecated.since 1.1.0, in favor offulfillmentOptionsList<VirtualFulfillmentPricingOption>getFulfillmentOptions(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 offulfillmentOptionsvoidsetFulfillmentOptions(List<VirtualFulfillmentPricingOption> fulfillmentOptions)List of virtual pricing fulfillment options that can be chosen.voidsetSampleConfig(boolean sampleConfig)Whether this configuration is the out-of-the-box sample.-
Methods inherited from class com.broadleafcommerce.shipping.properties.DiscriminatedProperties
getApplication, getApplicationIdFromContext, getField, getField, getTenant, getTenantIdFromContext, setApplication, setTenant
-
-
-
-
Field Detail
-
VIRTUAL_SHIPPING_PREFIX
public static final String VIRTUAL_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)
-
getFulfillmentOptions
public List<VirtualFulfillmentPricingOption> getFulfillmentOptions(@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 offulfillmentOptionsThe path to the configuration file used for virtual fulfillment calculations.
-
setFulfillmentOptions
public void setFulfillmentOptions(List<VirtualFulfillmentPricingOption> fulfillmentOptions)
List of virtual pricing fulfillment options that can be chosen.- Parameters:
shipTables- List of virtual pricing fulfillment options.
-
getConfigPath
@Deprecated @Nullable public org.springframework.core.io.Resource getConfigPath()
Deprecated.since 1.1.0, in favor offulfillmentOptionsThe path to the configuration file used for virtual fulfillment calculations.
-
-