Skip to content

Commit

Permalink
[SELC-6109] feat: Added aggregator value for checkbox (PRV)
Browse files Browse the repository at this point in the history
  • Loading branch information
giampieroferrara authored Dec 5, 2024
1 parent c432134 commit d1c7698
Showing 1 changed file with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,18 @@
import it.pagopa.selfcare.onboarding.common.InstitutionType;
import it.pagopa.selfcare.onboarding.common.Origin;
import it.pagopa.selfcare.onboarding.common.PricingPlan;
import it.pagopa.selfcare.onboarding.entity.*;
import it.pagopa.selfcare.onboarding.entity.Billing;
import it.pagopa.selfcare.onboarding.entity.GeographicTaxonomy;
import it.pagopa.selfcare.onboarding.entity.Institution;
import it.pagopa.selfcare.onboarding.entity.Onboarding;
import it.pagopa.selfcare.onboarding.entity.User;
import it.pagopa.selfcare.onboarding.exception.GenericOnboardingException;
import java.util.*;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import org.apache.commons.lang3.StringUtils;
import org.openapi.quarkus.user_registry_json.model.CertifiableFieldResourceOfstring;
import org.openapi.quarkus.user_registry_json.model.UserResource;
Expand Down Expand Up @@ -202,6 +211,8 @@ public static void setupPRVData(
Optional.ofNullable(onboarding.getBilling().getRecipientCode()).orElse(UNDERSCORE));
}

map.put("isAggregatorCheckbox", Boolean.TRUE.equals(onboarding.getIsAggregator()) ? "X" : "");

setECData(map, onboarding);
addAggregatesCsvLink(onboarding, map, baseUrl);
}
Expand Down

0 comments on commit d1c7698

Please sign in to comment.