Skip to content
Permalink
Browse files
fixed new return type for charges list to set
  • Loading branch information
mgeiss committed Jun 28, 2017
1 parent 23688fb commit bc8748686492142fba387bcfbaceecc8bb8b2f53
Showing 1 changed file with 2 additions and 1 deletion.
@@ -31,6 +31,7 @@
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Set;

@Service
public class DepositAccountManagementService {
@@ -63,7 +64,7 @@ public List<Charge> getCharges(final TellerTransaction tellerTransaction) {
final HashMap<String, Action> mappedActions = new HashMap<>(actions.size());
actions.forEach(action -> mappedActions.put(action.getIdentifier(), action));

final List<io.mifos.deposit.api.v1.definition.domain.Charge> productCharges = productDefinition.getCharges();
final Set<io.mifos.deposit.api.v1.definition.domain.Charge> productCharges = productDefinition.getCharges();
productCharges.forEach(productCharge -> {
final Action action = mappedActions.get(productCharge.getActionIdentifier());
if (action != null

0 comments on commit bc87486

Please sign in to comment.