Class CartItemAttributeConstants.Internal
java.lang.Object
com.broadleafcommerce.cartoperation.domain.CartItemAttributeConstants.Internal
- Enclosing class:
- CartItemAttributeConstants
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Inventory strategy internal attribute valuesstatic final String
static final String
ForCartItems
which were cloned from another cart, this attribute will be populated with the ID of the original item which was cloned from.static final String
static final String
A temporary storage location to store theAdjustment
for a free gift item.static final String
static final String
static final String
static final String
The following internal attributes are temporary storage locations for fulfillment related information to be used for populating aFulfillmentItem
.static final String
Indicates if aCartItem
is a free gift item added from a Free Gift offer.static final String
A temporary storage location to mark that this dependentCartItem
was successfully matched to a particularItemChoice
target (aSpecificItemChoice
orCategory
) when populating item choices.static final String
The id of the offer that thisCartItem
was a target of.static final String
static final String
static final String
static final String
Contains a map fromCatalogItem.getSku()
orVariant.getSku()
keys toPriceInfo
for the associatedCatalogItem
orVariant
.static final String
static final String
-
Method Summary
-
Field Details
-
SKU_PRICE_INFOS
Contains a map fromCatalogItem.getSku()
orVariant.getSku()
keys toPriceInfo
for the associatedCatalogItem
orVariant
. Used to produce SKU-based targets for pricing.- See Also:
-
PRICING_KEY_PRICE_INFOS
Contains a map fromCatalogItem.getPricingKey()
key toPriceInfo
for the associatedCatalogItem
. Used to produce pricingKey-based targets for pricing.- See Also:
-
CLONED_ITEM_ORIGINAL_ID
ForCartItems
which were cloned from another cart, this attribute will be populated with the ID of the original item which was cloned from.- See Also:
-
ITEM_CHOICE_TARGET_KEY
A temporary storage location to mark that this dependentCartItem
was successfully matched to a particularItemChoice
target (aSpecificItemChoice
orCategory
) when populating item choices. Contains the relevant item choice target key, either a product or variant ID, or the targeted category ID. Used to simplify later validation.- See Also:
-
IS_FREE_GIFT_ITEM
Indicates if aCartItem
is a free gift item added from a Free Gift offer.- See Also:
-
FREE_GIFT_ADJUSTMENT
A temporary storage location to store theAdjustment
for a free gift item.This is needed because
Adjustment.getAmount()
needs to be set to item's subtotal after the free gift item is automatically added. At the time of a free gift offer being applied, the Offer Engine has no idea of the price of the free gift item , hence we need to update theAdjustment
.- See Also:
-
ORIGIN_OFFER_ID
The id of the offer that thisCartItem
was a target of. This attribute is typically used to identifies which offer this item was added from, and keep track of offers to not be applied again.For example, CartItemA is a qualifier of a free gift offer OfferA, and CartItem_FG is a free gift item (target of OfferA) from the free gift offer. Whenever CartItem_FG is removed, the id of OfferA is added to
Cart.getInternalAttributes()
so that OfferA will not be applied again when CartItemA is added. -
INVENTORY_TYPE
The following internal attributes are temporary storage locations for fulfillment related information to be used for populating aFulfillmentItem
.- See Also:
-
AVAILABLE_ONLINE
- See Also:
-
INVENTORY_CHECK_STRATEGY
- See Also:
-
INVENTORY_RESERVATION_STRATEGY
- See Also:
-
FULFILLMENT_FLAT_RATES
- See Also:
-
WEIGHT
- See Also:
-
DISCOUNTABLE
- See Also:
-
PRODUCT_TYPE
- See Also:
-
TAX_CODE
- See Also:
-
SKU
- See Also:
-
ADD_TO_CART_STRATEGY
Inventory strategy internal attribute values- See Also:
-