Skip to content

Commit

Permalink
[SELC-5076] Feat: Added call to /onboarding/pa/aggregation in onboard…
Browse files Browse the repository at this point in the history
…ingProduct API (#318)
  • Loading branch information
flaminiaScarciofolo authored Jun 21, 2024
1 parent 6930a71 commit d7cb2b4
Show file tree
Hide file tree
Showing 15 changed files with 432 additions and 77 deletions.
14 changes: 1 addition & 13 deletions app/src/main/resources/swagger/api-docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -2290,7 +2290,7 @@
"geographicTaxonomies" : {
"type" : "array",
"items" : {
"$ref" : "#/components/schemas/GeographicTaxonomy"
"$ref" : "#/components/schemas/GeographicTaxonomyDto"
}
},
"origin" : {
Expand Down Expand Up @@ -2616,18 +2616,6 @@
}
}
},
"GeographicTaxonomy" : {
"title" : "GeographicTaxonomy",
"type" : "object",
"properties" : {
"code" : {
"type" : "string"
},
"desc" : {
"type" : "string"
}
}
},
"GeographicTaxonomyDto" : {
"title" : "GeographicTaxonomyDto",
"required" : [ "code", "desc" ],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,6 @@ public interface OnboardingMsConnector {
OnboardingData getOnboardingWithUserInfo(String onboardingId);

Resource getContract(String onboardingId);

void onboardingPaAggregation(OnboardingData onboardingData);
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
package it.pagopa.selfcare.onboarding.connector.model.onboarding;

import it.pagopa.selfcare.onboarding.common.InstitutionType;
import it.pagopa.selfcare.onboarding.connector.model.institutions.Institution;
import lombok.Data;
import lombok.NoArgsConstructor;

Expand Down Expand Up @@ -48,6 +49,8 @@ public class OnboardingData {
private LocalDateTime updatedAt;
private LocalDateTime expiringDate;
private String reasonForReject;
private Boolean isAggregator;
private List<Institution> aggregates;
public List<User> getUsers() {
return Optional.ofNullable(users).orElse(Collections.emptyList());
}
Expand Down
Loading

0 comments on commit d7cb2b4

Please sign in to comment.