Skip to content

Commit

Permalink
fix: fixed PdfMapper
Browse files Browse the repository at this point in the history
  • Loading branch information
gianmarcoplutino committed Nov 27, 2024
1 parent 15d2682 commit 80556b9
Showing 1 changed file with 4 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,19 +100,13 @@ public static Map<String, Object> setUpCommonData(

public static Map<String, Object> setUpAttachmentData(Onboarding onboarding) {
Map<String, Object> map = new HashMap<>();
if (Objects.nonNull(onboarding.getInstitution().getPaymentServiceProvider())) {
if (Objects.nonNull(onboarding.getInstitution().getGpuData())) {
map.put(
"businessRegisterNumber",
onboarding.getInstitution().getPaymentServiceProvider().getBusinessRegisterNumber());
map.put(
"legalRegisterNumber",
onboarding.getInstitution().getPaymentServiceProvider().getLegalRegisterNumber());
onboarding.getInstitution().getGpuData().getBusinessRegisterNumber());
map.put(
"legalRegisterName",
onboarding.getInstitution().getPaymentServiceProvider().getLegalRegisterName());
}

if (Objects.nonNull(onboarding.getInstitution().getGpuData())) {
"legalRegisterNumber", onboarding.getInstitution().getGpuData().getLegalRegisterNumber());
map.put("legalRegisterName", onboarding.getInstitution().getGpuData().getLegalRegisterName());
map.put("manager", onboarding.getInstitution().getGpuData().isManager() ? "Si" : "No");
map.put(
"managerAuthorized",
Expand Down

0 comments on commit 80556b9

Please sign in to comment.