AppliedPayment Module
functions for handling received payments and calculating interest and/or charges where necessary
Types
Type | Description |
a charge applied to an actual payment |
|
an actual payment made on a particular day, optionally with charges applied, with the net effect and payment status calculated |
Functions and values
Function or value |
Description
|
Full Usage:
applyPayments evaluationDay startDate settlementDay chargeConfig paymentTimeout actualPayments scheduledPayments
Parameters:
int<MeasureProduct<OffsetDay, MeasureOne>>
startDate : Date
settlementDay : SettlementDay
chargeConfig : Config option
paymentTimeout : int<MeasureProduct<DurationDay, MeasureOne>>
actualPayments : Map<int<MeasureProduct<OffsetDay, MeasureOne>>, ActualPayment array>
scheduledPayments : Map<int<MeasureProduct<OffsetDay, MeasureOne>>, ScheduledPayment>
Returns: Map<int<MeasureProduct<OffsetDay, MeasureOne>>, AppliedPayment>
|
groups payments by day, applying actual payments, adding a payment status and optionally a late payment charge if underpaid
|