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

PropertyReturnsDescription
debitPointsDebitThe debit that consumed the points. Never null.
idlongDatabase identifier for this link.
numPointsdoubleNumber 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.
pointsPointsThe 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.

ParameterDescription
idthe 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.

ParameterDescription
pointsthe 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.

ParameterDescription
debitthe 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.

ParameterDescription
numPointsthe number of points drawn from the credit
To get full access to the Kademi Hub existing customers can login here, or new customers can register here.