Offer¶
-
public class
Offer
¶ This represents the data that is shared between the terminal and the Android application. Setting the fields is only relevant when sending the data to the terminal, and conversely, getting the fields is only relevant when receiving this object from the terminal.
Methods¶
create¶
getAmount¶
getAmounts¶
-
public AmountTotals
getAmounts
()¶ Returns the amounts for this item in the basket.
getAssociatedProductCode¶
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.
getMerchantOfferCode¶
getName¶
getOfferCombinable¶
-
public boolean
getOfferCombinable
()¶ Indicates if the offer may combined with other combinable offers. This is optional.
getOfferDiscount¶
getOfferId¶
getOfferPercentDiscount¶
getOfferRefundable¶
-
public boolean
getOfferRefundable
()¶ Indicates if the purchase is returnable. This is optional.
getOfferStatus¶
-
public OfferStatus
getOfferStatus
()¶ The status of the offer. This is mainly applicable for LoyaltyVas
getOfferType¶
getProductCode¶
getProgramId¶
getQrCode¶
getReferenceBasketLineItemId¶
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¶
getSpecialProductCode¶
getTax¶
getUpc¶
setAmount¶
setAmounts¶
-
public void
setAmounts
(AmountTotals amounts)¶ Set the amounts for this item.
setAssociatedProductCode¶
-
public void
setAssociatedProductCode
(String productCode)¶ Refer to
getAssociatedProductCode()
.
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.
setMerchantOfferCode¶
-
public void
setMerchantOfferCode
(String offerCode)¶ Refer to
getMerchantOfferCode()
.
setName¶
setOfferCombinable¶
-
public void
setOfferCombinable
(boolean offerCombinable)¶ Refer to
getOfferCombinable()
.
setOfferDiscount¶
-
public void
setOfferDiscount
(Decimal offerDiscount)¶ Refer to
getOfferDiscount()
.
setOfferId¶
-
public void
setOfferId
(String offerId)¶ Refer to
getOfferId()
.
setOfferPercentDiscount¶
-
public void
setOfferPercentDiscount
(Decimal percentDiscount)¶ Refer to
getOfferPercentDiscount()
.
setOfferRefundable¶
-
public void
setOfferRefundable
(boolean offerRefundable)¶ Refer to
getOfferRefundable()
.
setOfferStatus¶
-
public void
setOfferStatus
(OfferStatus offerStatus)¶ Refer to
getOfferStatus()
.
setOfferType¶
-
public void
setOfferType
(OfferType offerType)¶ Refer to
getOfferType()
.
setProductCode¶
-
public void
setProductCode
(String productCode)¶ Refer to
getProductCode()
.
setProgramId¶
-
public void
setProgramId
(String programId)¶ Refer to
getProgramId()
.
setQrCode¶
-
public void
setQrCode
(String qrCode)¶ Refer to
getQrCode()
.
setReferenceBasketLineItemId¶
-
public void
setReferenceBasketLineItemId
(String basketLineItemId)¶ Refer to
getReferenceBasketLineItemId()
.
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.
setSku¶
setSpecialProductCode¶
-
public void
setSpecialProductCode
(String productCode)¶ Refer to
getSpecialProductCode()
.