Class CartItemAttributeConstants.Internal
- java.lang.Object
-
- com.broadleafcommerce.cartoperation.domain.CartItemAttributeConstants.Internal
-
- Enclosing class:
- CartItemAttributeConstants
public static final class CartItemAttributeConstants.Internal extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
AVAILABLE_ONLINE
static String
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.static String
DISCOUNTABLE
static String
FREE_GIFT_ADJUSTMENT
A temporary storage location to store theAdjustment
for a free gift item.static String
FULFILLMENT_FLAT_RATES
static String
INVENTORY_CHECK_STRATEGY
static String
INVENTORY_RESERVATION_STRATEGY
static String
INVENTORY_TYPE
The following internal attributes are temporary storage locations for fulfillment related information to be used for populating aFulfillmentItem
.static String
IS_FREE_GIFT_ITEM
Indicates if aCartItem
is a free gift item added from a Free Gift offer.static String
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.static String
ORIGIN_OFFER_ID
The id of the offer that thisCartItem
was a target of.static String
PRICING_KEY_PRICE_INFOS
static String
PRODUCT_TYPE
static String
SKU_PRICE_INFOS
Contains a map fromProduct.getSku()
orVariant.getSku()
keys toPriceInfo
for the associatedProduct
orVariant
.static String
TAX_CODE
static String
WEIGHT
-
-
-
Field Detail
-
SKU_PRICE_INFOS
public static final String SKU_PRICE_INFOS
Contains a map fromProduct.getSku()
orVariant.getSku()
keys toPriceInfo
for the associatedProduct
orVariant
. Used to produce SKU-based targets for pricing.- See Also:
- Constant Field Values
-
PRICING_KEY_PRICE_INFOS
public static final String PRICING_KEY_PRICE_INFOS
Contains a map fromProduct.getPricingKey()
key toPriceInfo
for the associatedProduct
. Used to produce pricingKey-based targets for pricing.- See Also:
- Constant Field Values
-
CLONED_ITEM_ORIGINAL_ID
public static final String 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:
- Constant Field Values
-
ITEM_CHOICE_TARGET_KEY
public static final String 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:
- Constant Field Values
-
IS_FREE_GIFT_ITEM
public static final String IS_FREE_GIFT_ITEM
Indicates if aCartItem
is a free gift item added from a Free Gift offer.- See Also:
- Constant Field Values
-
FREE_GIFT_ADJUSTMENT
public static final String 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:
- Constant Field Values
-
ORIGIN_OFFER_ID
public static final String 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
public static final String INVENTORY_TYPE
The following internal attributes are temporary storage locations for fulfillment related information to be used for populating aFulfillmentItem
.- See Also:
- Constant Field Values
-
AVAILABLE_ONLINE
public static final String AVAILABLE_ONLINE
- See Also:
- Constant Field Values
-
INVENTORY_CHECK_STRATEGY
public static final String INVENTORY_CHECK_STRATEGY
- See Also:
- Constant Field Values
-
INVENTORY_RESERVATION_STRATEGY
public static final String INVENTORY_RESERVATION_STRATEGY
- See Also:
- Constant Field Values
-
FULFILLMENT_FLAT_RATES
public static final String FULFILLMENT_FLAT_RATES
- See Also:
- Constant Field Values
-
WEIGHT
public static final String WEIGHT
- See Also:
- Constant Field Values
-
DISCOUNTABLE
public static final String DISCOUNTABLE
- See Also:
- Constant Field Values
-
PRODUCT_TYPE
public static final String PRODUCT_TYPE
- See Also:
- Constant Field Values
-
TAX_CODE
public static final String TAX_CODE
- See Also:
- Constant Field Values
-
-