A stand-in transaction created when an active credit expires unused, so the expiry shows up as a debit-like entry in the line item history even though no real PointsDebit record backs it.

Implements: RewardTransactionItem


Properties

PropertyReturnsDescription
idlongThe synthetic identifier assigned to this expired-credit entry, unique within one calc run.
issuedByProfileThe profile who issued the original credit that has now expired.
issuedDateDateThe date the expiry was evaluated, used as this synthetic transaction's own issued date.
issuedToBaseEntityThe account the expired credit was originally issued to.
numPointsdoubleThe number of points that expired unused.
reasonStringA human-readable description of the expiry, combining the original credit's reason and issue date.
rewardRewardThe reward the original, now-expired credit was redeemed from.

Methods

getIssuedTo() · getIssuedDate() · getIssuedBy() · getReward() · getNumPoints() · asCredit() · asDebit() · getReason() · getId()

getIssuedTo()

Returns: BaseEntity

The account the expired credit was originally issued to.

getIssuedDate()

Returns: Date

The date the expiry was evaluated, used as this synthetic transaction's own issued date.

getIssuedBy()

Returns: Profile

The profile who issued the original credit that has now expired.

getReward()

Returns: Reward

The reward the original, now-expired credit was redeemed from.

getNumPoints()

Returns: double

The number of points that expired unused.

asCredit()

Returns: Points

Synthetic expired-credit entries are represented as neither a credit nor a debit, so this always returns null.

asDebit()

Returns: PointsDebit

Synthetic expired-credit entries are represented as neither a credit nor a debit, so this always returns null.

getReason()

Returns: String

A human-readable description of the expiry, combining the original credit's reason and issue date.

getId()

Returns: long

The synthetic identifier assigned to this expired-credit entry, unique within one calc run.

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