@ConfigurationProperties(value="broadleaf.cartoperation.service") public class CartOperationServiceProperties extends Object
Modifier and Type | Class and Description |
---|---|
static class |
CartOperationServiceProperties.BulkAddToCartOperation
Contains properties for bulk add to cart operations from the API.
|
static class |
CartOperationServiceProperties.ItemListSecurity
Properties related to access control of item lists.
|
static class |
CartOperationServiceProperties.PriceInvalidation
Contains properties that determine whether certain operations from the API cause prices to be
invalidated.
|
Constructor and Description |
---|
CartOperationServiceProperties() |
Modifier and Type | Method and Description |
---|---|
CartOperationServiceProperties.BulkAddToCartOperation |
getBulkAddToCartOperation()
The bulk properties configuration.
|
Duration |
getCartPricingTimeToLive()
The amount of time before the cart's pricing is considered stale.
|
String |
getDefaultVirtualFulfillmentOptionName()
The default fulfillment option name for the
FulfillmentType.VIRTUAL fulfillment type. |
CartOperationServiceProperties.ItemListSecurity |
getItemListSecurity() |
String |
getMergingType()
Globally determines how Products should merge with other similar items when they get added to
a cart.
|
CartOperationServiceProperties.PriceInvalidation |
getPriceInvalidation()
The price invalidation configuration.
|
boolean |
isCalculateFulfillmentPricingWithAdjustments()
Whether the fulfillment pricing should consider the adjustments on the order and order items.
|
boolean |
isCalculateProratedFulfillmentPricing()
Whether the fulfillment pricing should consider prorated price of the order items, after
factoring in the order adjustments.
|
boolean |
isFailConfigErrorOnAdd()
If there is a configuration error for a cart item when attempting to add it to a cart, fail
the attempt.
|
boolean |
isMatchCartItemAssetToVariant()
Determines whether the
CartItem.getImageAsset() should match the selected
Variant if possible instead of the Product.getPrimaryAsset() . |
void |
setBulkAddToCartOperation(CartOperationServiceProperties.BulkAddToCartOperation bulkAddToCartOperation)
The bulk properties configuration.
|
void |
setCalculateFulfillmentPricingWithAdjustments(boolean calculateFulfillmentPricingWithAdjustments)
Whether the fulfillment pricing should consider the adjustments on the order and order items.
|
void |
setCalculateProratedFulfillmentPricing(boolean calculateProratedFulfillmentPricing)
Whether the fulfillment pricing should consider prorated price of the order items, after
factoring in the order adjustments.
|
void |
setCartPricingTimeToLive(Duration cartPricingTimeToLive)
The amount of time before the cart's pricing is considered stale.
|
void |
setDefaultVirtualFulfillmentOptionName(String defaultVirtualFulfillmentOptionName)
The default fulfillment option name for the
FulfillmentType.VIRTUAL fulfillment type. |
void |
setFailConfigErrorOnAdd(boolean failConfigErrorOnAdd)
If there is a configuration error for a cart item when attempting to add it to a cart, fail
the attempt.
|
void |
setItemListSecurity(CartOperationServiceProperties.ItemListSecurity itemListSecurity) |
void |
setMatchCartItemAssetToVariant(boolean matchCartItemAssetToVariant)
Determines whether the
CartItem.getImageAsset() should match the selected
Variant if possible instead of the Product.getPrimaryAsset() . |
void |
setMergingType(String mergingType)
Globally determines how Products should merge with other similar items when they get added to
a cart.
|
void |
setPriceInvalidation(CartOperationServiceProperties.PriceInvalidation priceInvalidation)
The price invalidation configuration.
|
public boolean isFailConfigErrorOnAdd()
public boolean isCalculateFulfillmentPricingWithAdjustments()
public boolean isCalculateProratedFulfillmentPricing()
public String getDefaultVirtualFulfillmentOptionName()
FulfillmentType.VIRTUAL
fulfillment type.public String getMergingType()
DefaultMergingType
.public CartOperationServiceProperties.PriceInvalidation getPriceInvalidation()
public CartOperationServiceProperties.BulkAddToCartOperation getBulkAddToCartOperation()
public CartOperationServiceProperties.ItemListSecurity getItemListSecurity()
public Duration getCartPricingTimeToLive()
public boolean isMatchCartItemAssetToVariant()
CartItem.getImageAsset()
should match the selected
Variant
if possible instead of the Product.getPrimaryAsset()
. The matching
will be done via DefaultCartItemProductService
if the Variant
has
optionValues
to use to match with a
product asset
by tag.public void setFailConfigErrorOnAdd(boolean failConfigErrorOnAdd)
public void setCalculateFulfillmentPricingWithAdjustments(boolean calculateFulfillmentPricingWithAdjustments)
public void setCalculateProratedFulfillmentPricing(boolean calculateProratedFulfillmentPricing)
public void setDefaultVirtualFulfillmentOptionName(String defaultVirtualFulfillmentOptionName)
FulfillmentType.VIRTUAL
fulfillment type.public void setMergingType(String mergingType)
DefaultMergingType
.public void setPriceInvalidation(CartOperationServiceProperties.PriceInvalidation priceInvalidation)
public void setBulkAddToCartOperation(CartOperationServiceProperties.BulkAddToCartOperation bulkAddToCartOperation)
public void setItemListSecurity(CartOperationServiceProperties.ItemListSecurity itemListSecurity)
public void setCartPricingTimeToLive(Duration cartPricingTimeToLive)
public void setMatchCartItemAssetToVariant(boolean matchCartItemAssetToVariant)
CartItem.getImageAsset()
should match the selected
Variant
if possible instead of the Product.getPrimaryAsset()
. The matching
will be done via DefaultCartItemProductService
if the Variant
has
optionValues
to use to match with a
product asset
by tag.Copyright © 2021. All rights reserved.