Represents a single transaction line item against a reward's points balance, either a points credit (Points) or a points debit (PointsDebit). Implementations expose who the points were issued to and by whom, how many points the item is worth, and the reward it belongs to. The asCredit and asDebit methods let calling code recover the concrete type without an instanceof check.


Properties

PropertyReturnsDescription
issuedByProfileThe profile that issued this transaction item, ie the administrator or process that awarded or deducted the points.
issuedDateDateThe date and time this transaction item was issued.
issuedToBaseEntityThe profile or organisation this transaction item's points were issued to.
numPointsdoubleThe number of points this transaction item represents.
reasonStringFree-text explanation of why this transaction item was issued.
rewardRewardThe reward this points transaction item was issued under.

Methods

getIssuedTo()

Returns: BaseEntity

The profile or organisation this transaction item's points were issued to.

getIssuedDate()

Returns: Date

The date and time this transaction item was issued.

getIssuedBy()

Returns: Profile

The profile that issued this transaction item, ie the administrator or process that awarded or deducted the points.

getReward()

Returns: Reward

The reward this points transaction item was issued under.

getNumPoints()

Returns: double

The number of points this transaction item represents.

asCredit()

Returns: Points

Returns this item as a Points credit, if it is one.

asDebit()

Returns: PointsDebit

Returns this item as a PointsDebit, if it is one.

getReason()

Returns: String

Free-text explanation of why this transaction item was issued.

To get full access to the Kademi Hub existing customers can login here, or new customers can register here.