public static final class CartItemAttributeConstants.Internal extends Object
Modifier and Type | Field and Description |
---|---|
static String |
AVAILABLE_ONLINE |
static String |
CLONED_ITEM_ORIGINAL_ID
For
CartItems 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 |
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 a
FulfillmentItem . |
static String |
IS_FREE_GIFT_ITEM
Indicates if a
CartItem 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 dependent
CartItem was
successfully matched to a particular ItemChoice target (a
SpecificItemChoice or Category ) when populating item choices. |
static String |
ORIGIN_OFFER_ID
The id of the offer that this
CartItem was a target of. |
static String |
PRICING_KEY_PRICE_INFOS
|
static String |
PRODUCT_TYPE |
static String |
QUALIFIER_CART_ITEM_DETAILS
The
OfferItemDetails of the offer qualifier CartItems . |
static String |
SKU_PRICE_INFOS
Contains a map from
Product.getSku() or Variant.getSku() keys to
PriceInfo for the associated Product or Variant . |
static String |
TARGET_CART_ITEM_DETAILS
The
OfferItemDetails of the offer target CartItems . |
static String |
WEIGHT |
public static final String SKU_PRICE_INFOS
Product.getSku()
or Variant.getSku()
keys to
PriceInfo
for the associated Product
or Variant
. Used to produce
SKU-based targets for pricing.public static final String PRICING_KEY_PRICE_INFOS
Product.getPricingKey()
key to PriceInfo
for the
associated Product
. Used to produce pricingKey-based targets for pricing.public static final String CLONED_ITEM_ORIGINAL_ID
CartItems
which were cloned from another cart, this attribute will
be populated with the ID of the original item which was cloned from.public static final String ITEM_CHOICE_TARGET_KEY
CartItem
was
successfully matched to a particular ItemChoice
target (a
SpecificItemChoice
or Category
) 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.public static final String IS_FREE_GIFT_ITEM
CartItem
is a free gift item added from a Free Gift offer.public static final String QUALIFIER_CART_ITEM_DETAILS
OfferItemDetails
of the offer qualifier CartItems
. This attribute is used to identity all the offer qualifier cart items from
the cart item that was an offer target.
For example, CartItemA and CartItemB qualify for a free gift offer, which results CartItem_FG to be added as a free gift item. This attribute is used to identify CartItemA and CartItemB from free gift item CartItem_FG.
Take another example, CartItemA qualifies for a Buy 1 itemA Get 1 itemB free offer. This attribute is used to identity the qualifier item CartItemA from target item CartItemB.
public static final String TARGET_CART_ITEM_DETAILS
OfferItemDetails
of the offer target CartItems
. This attribute is used to identity the offer target cart items from the cart
item that was a qualifier of.
For example, CartItemA and CartItemB qualify for a free gift offer, which results CartItem_FG to be added as a free gift item. This attribute is used to identify CartItem_FG from offer qualifier items CartItemA and CartItemB.
Take another example, CartItemA qualifies for a Buy 1 itemA Get 1 itemB free. This attribute is used to identity target item CartItemB from qualifier item CartItemA.
public static final String ORIGIN_OFFER_ID
CartItem
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.
public static final String INVENTORY_TYPE
FulfillmentItem
.public static final String AVAILABLE_ONLINE
public static final String INVENTORY_CHECK_STRATEGY
public static final String INVENTORY_RESERVATION_STRATEGY
public static final String FULFILLMENT_FLAT_RATES
public static final String WEIGHT
public static final String DISCOUNTABLE
public static final String PRODUCT_TYPE
Copyright © 2021. All rights reserved.