corda / net.corda.finance.contracts.asset / extractAmountsDue

extractAmountsDue

fun <P : Any> extractAmountsDue(product: Terms<P>, states: Iterable<State<P>>): Map<Pair<AbstractParty, AbstractParty>, Amount<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.