Modifier¶
-
public class
Modifier
¶ Allows attaching a modifier to an existing merchandise object.
Methods¶
create¶
getAmount¶
getAmounts¶
-
public AmountTotals
getAmounts
()¶ Returns the amounts for this item in the basket.
getAttachedToBasketItemId¶
getBasketItemId¶
getDescription¶
getDisplayLine¶
getDisplayOrder¶
-
public int
getDisplayOrder
()¶ The display order for this item. This is generally auto-incremented as items are added to the basket, using a gap value to allow insertion between items at a later time.
getName¶
getQuantity¶
-
public Decimal
getQuantity
()¶ Refer to
setQuantity(Decimalquantity)
.
getRemoved¶
-
public boolean
getRemoved
()¶ Set to true if this item was removed from the basket, useful for business analytics. Removed items do not contribute to the total transaction amount, and are not displayed nor on the receipt. This is set by the service.
getSequence¶
-
public int
getSequence
()¶ The sequence for this item. This is generally auto-incremented as items are added to the basket. This is generally set by the underlying service, but can be set manually if required.
getSku¶
getTax¶
getUnitOfMeasurement¶
getUpc¶
setAmount¶
setAmounts¶
-
public void
setAmounts
(AmountTotals amounts)¶ Set the amounts for this item.
setAttachedToBasketItemId¶
setBasketItemId¶
-
public void
setBasketItemId
(String itemId)¶ The unique ID for this merchandise item as it exists in the basket. If multiple items with the same SKU/UPC are added individually to the basket, this basket item ID will be used to distinguish between them. This will be generated by the service if not provided.
setDescription¶
setDisplayLine¶
setDisplayOrder¶
-
public void
setDisplayOrder
(int displayOrder)¶ The display order for this item. This is generally auto-incremented as items are added to the basket, using a gap value to allow insertion between items at a later time.
setName¶
setQuantity¶
-
public void
setQuantity
(Decimal quantity)¶ Refer to
setQuantity(Decimalquantity)
.
setRemoved¶
-
public void
setRemoved
(boolean removed)¶ Set to true if this item was removed from the basket, useful for business analytics. Removed items do not contribute to the total transaction amount, and are not displayed nor on the receipt. This is set by the service.
setSequence¶
-
public void
setSequence
(int sequence)¶ The sequence for this item. This is generally auto-incremented as items are added to the basket. This is generally set by the underlying service, but can be set manually if required.