This repository has been archived by the owner on Oct 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feature/SELC-4383
# Conflicts: # connector-api/src/main/java/it/pagopa/selfcare/mscore/config/CoreConfig.java # core/src/main/java/it/pagopa/selfcare/mscore/core/MailNotificationServiceImpl.java # infra/container_apps/env/dev-pnpg/terraform.tfvars # infra/container_apps/env/dev/terraform.tfvars # infra/container_apps/env/prod-pnpg/terraform.tfvars # infra/container_apps/env/prod/terraform.tfvars # infra/container_apps/env/uat-pnpg/terraform.tfvars # infra/container_apps/env/uat/terraform.tfvars
- Loading branch information
Showing
65 changed files
with
2,326 additions
and
278 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
connector-api/src/main/java/it/pagopa/selfcare/mscore/api/UserApiConnector.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package it.pagopa.selfcare.mscore.api; | ||
|
||
|
||
import java.util.List; | ||
|
||
public interface UserApiConnector { | ||
|
||
List<String> getUserEmails(String institutionId, String productId); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
connector-api/src/main/java/it/pagopa/selfcare/mscore/constant/Order.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package it.pagopa.selfcare.mscore.constant; | ||
|
||
public enum Order { | ||
|
||
NONE, | ||
ASC, | ||
DESC; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
...api/src/main/java/it/pagopa/selfcare/mscore/model/onboarding/VerifyOnboardingFilters.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
package it.pagopa.selfcare.mscore.model.onboarding; | ||
|
||
import it.pagopa.selfcare.mscore.constant.CustomError; | ||
import it.pagopa.selfcare.mscore.constant.RelationshipState; | ||
import it.pagopa.selfcare.mscore.exception.InvalidRequestException; | ||
import lombok.Data; | ||
import org.springframework.util.StringUtils; | ||
|
||
import java.util.List; | ||
|
||
@Data | ||
public class VerifyOnboardingFilters { | ||
private String productId; | ||
private String externalId; | ||
private String taxCode; | ||
private String origin; | ||
private String originId; | ||
private String subunitCode; | ||
private List<RelationshipState> validRelationshipStates; | ||
|
||
public VerifyOnboardingFilters(String productId, String externalId, String taxCode, String origin, String originId, String subunitCode) { | ||
this.productId = productId; | ||
|
||
/* | ||
We don't set the values of all the attributes of the class, but try to value only a portion of them based on different | ||
search patterns priority that we intend to convey. | ||
And if the provided parameters do not fall within the identified cases for a search then return exception. | ||
*/ | ||
if (StringUtils.hasText(externalId)) { | ||
this.externalId = externalId; | ||
} else if (StringUtils.hasText(taxCode)) { | ||
this.taxCode = taxCode; | ||
this.subunitCode = subunitCode; | ||
this.origin = origin; | ||
} else if(StringUtils.hasText(subunitCode)) { | ||
this.subunitCode = subunitCode; | ||
this.origin = origin; | ||
} else if (StringUtils.hasText(origin) && StringUtils.hasText(originId)) { | ||
this.origin = origin; | ||
this.originId = originId; | ||
} else { | ||
throw new InvalidRequestException(CustomError.ONBOARDING_INFO_FILTERS_ERROR.getMessage(), CustomError.ONBOARDING_INFO_FILTERS_ERROR.getCode()); | ||
} | ||
} | ||
} |
Oops, something went wrong.