Links a points debit to the points credit it was taken from, so a spend can be traced back to the reward and points tag the points were originally issued under. A single debit is often reconciled against several credits, and a single credit is often drawn down by several debits, so there is one link row per credit and debit pair carrying the number of points taken from that credit. The links are what make per tag and per reward points reporting possible. A link is never created with zero points.
Group: Database Entities
Implements: Serializable
Properties
| Property | Returns | Description |
|---|---|---|
| debit | PointsDebit | The debit that consumed the points. Never null. |
| id | long | Database identifier for this link. |
| numPoints | double | Number of points this link takes from the credit. This is the amount of the debit satisfied by this one credit, not the full value of either the credit or the debit. |
| points | Points | The points credit that this debit drew down. Never null, and it carries the reward, points tag and issued to entity used for reporting. |
Methods
getId()
Returns: long
Database identifier for this link.
setId(long id)
Returns: void
Sets the database identifier. Normally only assigned by the persistence layer.
| Parameter | Description |
|---|---|
id | the primary key to assign |
getPoints()
Returns: Points
The points credit that this debit drew down. Never null, and it carries the reward, points tag and issued to entity used for reporting.
setPoints(Points points)
Returns: void
Sets the points credit that the debit draws down. Required.
| Parameter | Description |
|---|---|
points | the credit the points are taken from |
getDebit()
Returns: PointsDebit
The debit that consumed the points. Never null.
setDebit(PointsDebit debit)
Returns: void
Sets the debit that consumed the points. Required.
| Parameter | Description |
|---|---|
debit | the debit the points are spent on |
getNumPoints()
Returns: double
Number of points this link takes from the credit. This is the amount of the debit satisfied by this one credit, not the full value of either the credit or the debit.
setNumPoints(double numPoints)
Returns: void
Sets the number of points this link takes from the credit.
| Parameter | Description |
|---|---|
numPoints | the number of points drawn from the credit |