Tracks a single Points credit record as it is progressively consumed by later debit transactions during a calc() run, recording how much has been debited against it so far and its own ledger line item.


Properties

PropertyReturnsDescription
creditLiLineItemThe ledger line item created for this credit's own issuance. Its active flag is set once calc() finishes, if this credit still has points remaining.
pointsPointsThe underlying Points credit record this active balance is tracking.
remainingBigDecimalAmount of this credit's original points not yet consumed by any debit applied against it.

Methods

getPoints()

Returns: Points

The underlying Points credit record this active balance is tracking.

getRemaining()

Returns: BigDecimal

Amount of this credit's original points not yet consumed by any debit applied against it.

getCreditLi()

Returns: LineItem

The ledger line item created for this credit's own issuance. Its active flag is set once calc() finishes, if this credit still has points remaining.

applyDebit(BigDecimal d, PointsDebit debit)

Returns: void

Records that part of this credit has been consumed by a debit, updating the total debited amount.

ParameterDescription
dthe amount of this credit consumed by the debit
debitthe debit record consuming this credit, or null if the debit is a synthetic backlog debit not tied to a specific PointsDebit
To get full access to the Kademi Hub existing customers can login here, or new customers can register here.