extractAmountsDue

fun <P : Any> extractAmountsDue(product: Obligation.Terms<P>, states: Iterable<Obligation.State<P>>): Map<<Error class: unknown class><AbstractParty, AbstractParty>, Amount<Obligation.Terms<P>>>

Convert a list of settlement states into total from each obligor to a beneficiary.

Return

a map of obligor/beneficiary pairs to the balance due.