Skip to content

Commit

Permalink
[SELC-5617] feat: Replace commons InstitutionType with onboarding-sdk…
Browse files Browse the repository at this point in the history
… InstitutionType (#479)
  • Loading branch information
manuraf authored Sep 24, 2024
1 parent c0788a8 commit 629a37a
Show file tree
Hide file tree
Showing 17 changed files with 33 additions and 262 deletions.
222 changes: 4 additions & 218 deletions app/src/main/resources/swagger/api-docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -764,47 +764,6 @@
"summary" : "getInstitutions",
"description" : "Service to get all the institutions related to logged user",
"operationId" : "v2RetrieveUserInstitutions",
"parameters" : [ {
"name" : "authenticated",
"in" : "query",
"required" : false,
"style" : "form",
"schema" : {
"type" : "boolean"
}
}, {
"name" : "authorities[0].authority",
"in" : "query",
"required" : false,
"style" : "form",
"schema" : {
"type" : "string"
}
}, {
"name" : "credentials",
"in" : "query",
"required" : false,
"style" : "form",
"schema" : {
"type" : "object"
}
}, {
"name" : "details",
"in" : "query",
"required" : false,
"style" : "form",
"schema" : {
"type" : "object"
}
}, {
"name" : "principal",
"in" : "query",
"required" : false,
"style" : "form",
"schema" : {
"type" : "object"
}
} ],
"responses" : {
"200" : {
"description" : "OK",
Expand Down Expand Up @@ -1318,38 +1277,6 @@
"description" : "Service to get the users with the given user id related to a specific institution",
"operationId" : "v2RetrieveInstitutionUser",
"parameters" : [ {
"name" : "authenticated",
"in" : "query",
"required" : false,
"style" : "form",
"schema" : {
"type" : "boolean"
}
}, {
"name" : "authorities[0].authority",
"in" : "query",
"required" : false,
"style" : "form",
"schema" : {
"type" : "string"
}
}, {
"name" : "credentials",
"in" : "query",
"required" : false,
"style" : "form",
"schema" : {
"type" : "object"
}
}, {
"name" : "details",
"in" : "query",
"required" : false,
"style" : "form",
"schema" : {
"type" : "object"
}
}, {
"name" : "institutionId",
"in" : "path",
"description" : "Institution's unique internal identifier",
Expand All @@ -1358,14 +1285,6 @@
"schema" : {
"type" : "string"
}
}, {
"name" : "principal",
"in" : "query",
"required" : false,
"style" : "form",
"schema" : {
"type" : "object"
}
}, {
"name" : "userId",
"in" : "path",
Expand Down Expand Up @@ -1455,8 +1374,7 @@
"required" : true,
"style" : "simple",
"schema" : {
"type" : "string",
"enum" : [ "AS", "CON", "GSP", "PA", "PG", "PSP", "PT", "REC", "SA", "SCP" ]
"type" : "string"
}
} ],
"responses" : {
Expand Down Expand Up @@ -1702,47 +1620,6 @@
"summary" : "sendSupportRequest",
"description" : "Service to retrieve Support contact's form",
"operationId" : "sendSupportRequestUsingPOST",
"parameters" : [ {
"name" : "authenticated",
"in" : "query",
"required" : false,
"style" : "form",
"schema" : {
"type" : "boolean"
}
}, {
"name" : "authorities[0].authority",
"in" : "query",
"required" : false,
"style" : "form",
"schema" : {
"type" : "string"
}
}, {
"name" : "credentials",
"in" : "query",
"required" : false,
"style" : "form",
"schema" : {
"type" : "object"
}
}, {
"name" : "details",
"in" : "query",
"required" : false,
"style" : "form",
"schema" : {
"type" : "object"
}
}, {
"name" : "principal",
"in" : "query",
"required" : false,
"style" : "form",
"schema" : {
"type" : "object"
}
} ],
"requestBody" : {
"content" : {
"application/json" : {
Expand Down Expand Up @@ -1897,38 +1774,6 @@
"description" : "Service to create a 'Billing Token' based on a Self Care session token",
"operationId" : "billingTokenUsingGET",
"parameters" : [ {
"name" : "authenticated",
"in" : "query",
"required" : false,
"style" : "form",
"schema" : {
"type" : "boolean"
}
}, {
"name" : "authorities[0].authority",
"in" : "query",
"required" : false,
"style" : "form",
"schema" : {
"type" : "string"
}
}, {
"name" : "credentials",
"in" : "query",
"required" : false,
"style" : "form",
"schema" : {
"type" : "string"
}
}, {
"name" : "details",
"in" : "query",
"required" : false,
"style" : "form",
"schema" : {
"type" : "object"
}
}, {
"name" : "institutionId",
"in" : "query",
"description" : "Institution's unique internal identifier",
Expand All @@ -1937,22 +1782,6 @@
"schema" : {
"type" : "string"
}
}, {
"name" : "name",
"in" : "query",
"required" : false,
"style" : "form",
"schema" : {
"type" : "string"
}
}, {
"name" : "principal",
"in" : "query",
"required" : false,
"style" : "form",
"schema" : {
"type" : "object"
}
}, {
"name" : "environment",
"in" : "query",
Expand Down Expand Up @@ -2675,38 +2504,6 @@
"description" : "Service to get all the users related to a specific institution",
"operationId" : "v2GetUsersUsingGET",
"parameters" : [ {
"name" : "authenticated",
"in" : "query",
"required" : false,
"style" : "form",
"schema" : {
"type" : "boolean"
}
}, {
"name" : "authorities[0].authority",
"in" : "query",
"required" : false,
"style" : "form",
"schema" : {
"type" : "string"
}
}, {
"name" : "credentials",
"in" : "query",
"required" : false,
"style" : "form",
"schema" : {
"type" : "object"
}
}, {
"name" : "details",
"in" : "query",
"required" : false,
"style" : "form",
"schema" : {
"type" : "object"
}
}, {
"name" : "institutionId",
"in" : "path",
"description" : "Institution's unique internal identifier",
Expand All @@ -2715,14 +2512,6 @@
"schema" : {
"type" : "string"
}
}, {
"name" : "principal",
"in" : "query",
"required" : false,
"style" : "form",
"schema" : {
"type" : "object"
}
}, {
"name" : "productId",
"in" : "query",
Expand Down Expand Up @@ -3565,8 +3354,7 @@
"type" : "string"
},
"institutionType" : {
"type" : "string",
"enum" : [ "AS", "CON", "GSP", "PA", "PG", "PSP", "PT", "REC", "SA", "SCP" ]
"type" : "string"
},
"productId" : {
"type" : "string"
Expand Down Expand Up @@ -3724,8 +3512,7 @@
"type" : "string"
},
"institutionType" : {
"type" : "string",
"enum" : [ "AS", "CON", "GSP", "PA", "PG", "PSP", "PT", "REC", "SA", "SCP" ]
"type" : "string"
},
"onboarding" : {
"type" : "array",
Expand Down Expand Up @@ -3842,8 +3629,7 @@
},
"institutionType" : {
"type" : "string",
"description" : "Institution's type",
"enum" : [ "AS", "CON", "GSP", "PA", "PG", "PSP", "PT", "REC", "SA", "SCP" ]
"description" : "Institution's type"
},
"mailAddress" : {
"type" : "string",
Expand Down
6 changes: 1 addition & 5 deletions connector-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,9 @@
<dependency>
<groupId>it.pagopa.selfcare</groupId>
<artifactId>onboarding-sdk-product</artifactId>
<version>0.2.0</version>
<version>0.2.1</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-commons</artifactId>
</dependency>
</dependencies>

<repositories>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package it.pagopa.selfcare.dashboard.connector.model.delegation;

import it.pagopa.selfcare.commons.base.utils.InstitutionType;
import it.pagopa.selfcare.onboarding.common.InstitutionType;
import lombok.Data;

import java.time.OffsetDateTime;
Expand All @@ -19,7 +19,7 @@ public class DelegationWithInfo {
private DelegationType type;
private OffsetDateTime createdAt;
private OffsetDateTime updatedAt;
private InstitutionType institutionType;
private String institutionType;
private String status;
private String taxCode;
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package it.pagopa.selfcare.dashboard.connector.model.institution;

import it.pagopa.selfcare.commons.base.utils.InstitutionType;
import it.pagopa.selfcare.onboarding.common.InstitutionType;
import lombok.Data;
import lombok.EqualsAndHashCode;

Expand All @@ -19,7 +19,7 @@ public class Institution {
private String zipCode;
private String taxCode;
private String origin;
private InstitutionType institutionType;
private String institutionType;
private List<Attribute> attributes;
private List<GeographicTaxonomy> geographicTaxonomies;
private String category;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package it.pagopa.selfcare.dashboard.connector.model.institution;

import it.pagopa.selfcare.commons.base.utils.InstitutionType;
import it.pagopa.selfcare.onboarding.common.InstitutionType;
import lombok.Data;

import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package it.pagopa.selfcare.dashboard.connector.rest.model;

import it.pagopa.selfcare.commons.base.utils.InstitutionType;
import it.pagopa.selfcare.onboarding.common.InstitutionType;
import it.pagopa.selfcare.dashboard.connector.model.institution.AdditionalInformations;
import it.pagopa.selfcare.dashboard.connector.model.institution.DataProtectionOfficer;
import it.pagopa.selfcare.dashboard.connector.model.institution.PaymentServiceProvider;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package it.pagopa.selfcare.dashboard.connector.rest.model.mapper;

import it.pagopa.selfcare.commons.base.utils.InstitutionType;
import it.pagopa.selfcare.onboarding.common.InstitutionType;
import it.pagopa.selfcare.core.generated.openapi.v1.dto.*;
import it.pagopa.selfcare.dashboard.connector.model.institution.Billing;
import it.pagopa.selfcare.dashboard.connector.model.institution.*;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package it.pagopa.selfcare.dashboard.connector.rest.model.onboarding;

import it.pagopa.selfcare.commons.base.security.PartyRole;
import it.pagopa.selfcare.commons.base.utils.InstitutionType;
import it.pagopa.selfcare.onboarding.common.InstitutionType;
import it.pagopa.selfcare.dashboard.connector.model.institution.*;
import it.pagopa.selfcare.dashboard.connector.rest.model.product.ProductInfo;
import lombok.Data;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package it.pagopa.selfcare.dashboard.connector.rest.model.onboarding;

import it.pagopa.selfcare.commons.base.security.PartyRole;
import it.pagopa.selfcare.commons.base.utils.InstitutionType;
import it.pagopa.selfcare.onboarding.common.InstitutionType;
import it.pagopa.selfcare.dashboard.connector.model.institution.*;
import it.pagopa.selfcare.dashboard.connector.rest.model.product.PnPGProductInfo;
import it.pagopa.selfcare.dashboard.connector.rest.model.product.ProductInfo;
Expand Down
Loading

0 comments on commit 629a37a

Please sign in to comment.