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
| Property | Returns | Description |
|---|---|---|
| issuedBy | Profile | The profile that issued this transaction item, ie the administrator or process that awarded or deducted the points. |
| issuedDate | Date | The date and time this transaction item was issued. |
| issuedTo | BaseEntity | The profile or organisation this transaction item's points were issued to. |
| numPoints | double | The number of points this transaction item represents. |
| reason | String | Free-text explanation of why this transaction item was issued. |
| reward | Reward | The 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.