Skip to content

Commit 1732884

Browse files
manage GPU InstitutionType
1 parent 696be71 commit 1732884

File tree

6 files changed

+23
-12
lines changed

6 files changed

+23
-12
lines changed

connector-api/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@
2323
<dependency>
2424
<groupId>it.pagopa.selfcare</groupId>
2525
<artifactId>onboarding-sdk-product</artifactId>
26-
<version>0.3.3</version>
26+
<version>0.6.2</version>
2727
<scope>compile</scope>
2828
</dependency>
2929
<dependency>
3030
<groupId>it.pagopa.selfcare</groupId>
3131
<artifactId>onboarding-sdk-common</artifactId>
32-
<version>0.3.3</version>
32+
<version>0.6.2</version>
3333
<scope>compile</scope>
3434
</dependency>
3535
</dependencies>

connector/rest/docs/openapi/api-selfcare-core-docs.json

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -788,6 +788,15 @@
788788
"schema" : {
789789
"type" : "string"
790790
}
791+
}, {
792+
"name" : "productId",
793+
"in" : "query",
794+
"description" : "productId",
795+
"required" : false,
796+
"style" : "form",
797+
"schema" : {
798+
"type" : "string"
799+
}
791800
} ],
792801
"responses" : {
793802
"200" : {
@@ -2086,7 +2095,7 @@
20862095
"style" : "simple",
20872096
"schema" : {
20882097
"type" : "string",
2089-
"enum" : [ "AS", "CON", "GSP", "PA", "PG", "PRV", "PSP", "PT", "REC", "SA", "SCP" ]
2098+
"enum" : [ "AS", "CON", "GPU", "GSP", "PA", "PG", "PRV", "PSP", "PT", "REC", "SA", "SCP" ]
20902099
}
20912100
} ],
20922101
"responses" : {
@@ -2736,6 +2745,9 @@
27362745
"institutionFromName" : {
27372746
"type" : "string"
27382747
},
2748+
"institutionFromRootName" : {
2749+
"type" : "string"
2750+
},
27392751
"institutionToName" : {
27402752
"type" : "string"
27412753
},
@@ -2961,7 +2973,7 @@
29612973
},
29622974
"institutionType" : {
29632975
"type" : "string",
2964-
"enum" : [ "AS", "CON", "GSP", "PA", "PG", "PRV", "PSP", "PT", "REC", "SA", "SCP" ]
2976+
"enum" : [ "AS", "CON", "GPU", "GSP", "PA", "PG", "PRV", "PSP", "PT", "REC", "SA", "SCP" ]
29652977
},
29662978
"subunitCode" : {
29672979
"type" : "string"
@@ -3223,7 +3235,7 @@
32233235
},
32243236
"institutionType" : {
32253237
"type" : "string",
3226-
"enum" : [ "AS", "CON", "GSP", "PA", "PG", "PRV", "PSP", "PT", "REC", "SA", "SCP" ]
3238+
"enum" : [ "AS", "CON", "GPU", "GSP", "PA", "PG", "PRV", "PSP", "PT", "REC", "SA", "SCP" ]
32273239
},
32283240
"onboarding" : {
32293241
"type" : "array",
@@ -3437,7 +3449,7 @@
34373449
},
34383450
"institutionType" : {
34393451
"type" : "string",
3440-
"enum" : [ "AS", "CON", "GSP", "PA", "PG", "PRV", "PSP", "PT", "REC", "SA", "SCP" ]
3452+
"enum" : [ "AS", "CON", "GPU", "GSP", "PA", "PG", "PRV", "PSP", "PT", "REC", "SA", "SCP" ]
34413453
},
34423454
"ivassCode" : {
34433455
"type" : "string"

connector/rest/src/main/java/it/pagopa/selfcare/dashboard/connector/rest/CoreConnectorImpl.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
import org.springframework.util.Assert;
3333
import org.springframework.util.CollectionUtils;
3434

35-
import javax.validation.ValidationException;
3635
import java.util.Collection;
3736
import java.util.Collections;
3837
import java.util.List;
@@ -89,7 +88,7 @@ public List<Institution> getInstitutionsFromTaxCode(String taxCode, String subun
8988
log.trace("getInstitution start");
9089
log.debug("getInstitution institutionId = {}", taxCode);
9190
Assert.hasText(taxCode, REQUIRED_TAX_CODE_MESSAGE);
92-
InstitutionsResponse institutions = coreInstitutionApiRestClient._getInstitutionsUsingGET(taxCode, subunitCode, origin, originId).getBody();
91+
InstitutionsResponse institutions = coreInstitutionApiRestClient._getInstitutionsUsingGET(taxCode, subunitCode, origin, originId, null).getBody();
9392
log.debug("getInstitution result = {}", institutions);
9493
log.trace("getInstitution end");
9594
Assert.notNull(institutions, NO_INSTITUTION_FOUND);

connector/rest/src/test/java/it/pagopa/selfcare/dashboard/connector/rest/CoreConnectorImplTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,15 +146,15 @@ void getInstitutionsFromTaxCode() throws IOException {
146146
InstitutionsResponse institutionsResponse = new InstitutionsResponse();
147147
institutionsResponse.setInstitutions(List.of(institutionMock));
148148

149-
when(coreInstitutionApiRestClient._getInstitutionsUsingGET(institutionMock.getTaxCode(), null, null, null))
149+
when(coreInstitutionApiRestClient._getInstitutionsUsingGET(institutionMock.getTaxCode(), null, null, null, null))
150150
.thenReturn(ResponseEntity.of(Optional.of(institutionsResponse)));
151151
// when
152152
List<Institution> institutions = msCoreConnector.getInstitutionsFromTaxCode(institutionMock.getTaxCode(), null, null, null);
153153
// then
154154

155155
assertEquals(institutions.get(0), institutionMapperSpy.toInstitution(institutionMock));
156156
verify(coreInstitutionApiRestClient, times(1))
157-
._getInstitutionsUsingGET(institutionMock.getTaxCode(), null, null, null);
157+
._getInstitutionsUsingGET(institutionMock.getTaxCode(), null, null, null, null);
158158
}
159159

160160
@Test

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<description>Self Care Dashboard Backend</description>
2323

2424
<properties>
25-
<selc-commons.version>2.5.4</selc-commons.version>
25+
<selc-commons.version>2.5.5</selc-commons.version>
2626
<sonar.host.url>https://sonarcloud.io/</sonar.host.url>
2727
</properties>
2828

web/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
<dependency>
4343
<groupId>it.pagopa.selfcare</groupId>
4444
<artifactId>onboarding-sdk-product</artifactId>
45-
<version>0.3.2</version>
45+
<version>0.6.2</version>
4646
<scope>compile</scope>
4747
</dependency>
4848

0 commit comments

Comments
 (0)