sum Obligations Or Zero
fun <P : Any> Iterable<ContractState>.sumObligationsOrZero(issuanceDef: Issued<Obligation.Terms<P>>): Amount<Issued<Obligation.Terms<P>>>
Sums the obligation states in the list, returning zero of the given product if there are none.