Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PPANTT-129] feat: Authorizer API key configuration with segregation codes #500

Merged
Merged
Show file tree
Hide file tree
Changes from 101 commits
Commits
Show all changes
102 commits
Select commit Hold shift + click to select a range
916d5ec
feat: Review channels flow (#438)
gioelemella Jun 24, 2024
6867a73
Bump to version 2.15.0-1-next
pagopa-github-bot Jun 24, 2024
4cb0e87
[VAS-1122] feat: Remove unused API for Station and Channels entity (#…
gioelemella Jun 25, 2024
a6d3f46
Bump to version 2.15.0-2-next
pagopa-github-bot Jun 25, 2024
bb7f18f
[VAS-1104] feat: New bundle status for available but expired bundles …
svariant Jun 26, 2024
7bb7470
Bump to version 2.15.0-3-next
pagopa-github-bot Jun 26, 2024
1b03b1b
[VAS-1103] feat: Add new field pspBusinessName to bundle details (#444)
svariant Jun 26, 2024
6b0b08a
Update next with wrapper hotfix (#445)
gioelemella Jun 26, 2024
b3641a3
Bump to version 2.15.0-4-next
pagopa-github-bot Jun 26, 2024
4c34c77
[VAS-1133] feat: Add new api key for printPaymentsNotice product (#446)
svariant Jun 27, 2024
1f57568
Bump to version 2.15.0-5-next
pagopa-github-bot Jun 27, 2024
bb45635
[VAS-1149] fix: Wrapper channel raw generic (#448)
gioelemella Jun 27, 2024
37e3146
Bump to version 2.15.0-6-next
pagopa-github-bot Jun 27, 2024
a9f8a52
[VAS-1070] feat: Change station and channel detail view on pending up…
gioelemella Jul 2, 2024
b19e919
Bump to version 2.15.0-7-next
pagopa-github-bot Jul 2, 2024
2cb0895
Merge branch 'refs/heads/main' into next
jacopocarlini Jul 2, 2024
5123b13
swagger updated
jacopocarlini Jul 2, 2024
f24f192
[VAS-962] feat: Implement authorizer when creating GPD key (#450)
svariant Jul 5, 2024
1a4aef5
Bump to version 2.15.3-1-next
pagopa-github-bot Jul 5, 2024
15e75f7
[VAS-1146] feat: Introduce new boolean "cart" for bundles (#452)
svariant Jul 10, 2024
7776bf7
Bump to version 2.15.3-2-next
pagopa-github-bot Jul 10, 2024
f7681d8
Bump to version 2.15.3-3-next [skip ci]
pagopa-github-bot Jul 10, 2024
f4d9528
Merge branch 'refs/heads/main' into next
jacopocarlini Jul 15, 2024
6c9c219
Merge branch 'refs/heads/main' into next
jacopocarlini Jul 15, 2024
785d5ae
code owner
jacopocarlini Jul 16, 2024
d7a45a2
[VAS-1195] New CI IBANs Mongo Collection (#457)
jacopocarlini Jul 18, 2024
e362ad3
Bump to version 2.17.1-1-next
pagopa-github-bot Jul 18, 2024
e02fdbe
[VAS-1168] feat: rework get institutions (#458)
alessio-cialini Jul 18, 2024
fbef115
Bump to version 2.17.1-2-next
pagopa-github-bot Jul 18, 2024
7b740fa
Merge branch 'refs/heads/main' into next
jacopocarlini Jul 23, 2024
06cb9d3
merge
jacopocarlini Jul 23, 2024
0b4def2
typo
jacopocarlini Jul 23, 2024
f804e9a
chore gec jira ticket
jacopocarlini Jul 24, 2024
be37497
[VAS-981] feat: Introduce new flags "standIn" & "aca" for CI-station …
svariant Jul 29, 2024
8401334
Bump to version 2.19.0-1-next
pagopa-github-bot Jul 29, 2024
7f4966a
fix: Mapper for new flags standIn & aca (#474)
svariant Jul 29, 2024
2c3fd5c
Bump to version 2.19.0-2-next
pagopa-github-bot Jul 29, 2024
4656832
[PPANTT-47] feat: API create stations' maintenance (#466)
svariant Jul 30, 2024
1313937
Bump to version 2.19.0-3-next
pagopa-github-bot Jul 30, 2024
f7bd6f5
[PPANTT-37] feat: API update stations' maintenance (#467)
svariant Jul 30, 2024
d9f90ac
Bump to version 2.19.0-4-next
pagopa-github-bot Jul 30, 2024
3ac96da
[PPANTT-38] feat: API get stations' maintenance list (#468)
svariant Jul 30, 2024
1e66272
Bump to version 2.19.0-5-next
pagopa-github-bot Jul 30, 2024
b1dd341
[PPANTT-35] feat: add station maintenance summary api (#469)
alessio-cialini Jul 30, 2024
89cc07a
Bump to version 2.19.0-6-next
pagopa-github-bot Jul 30, 2024
5d65971
[PPANTT-40] feat: get station maintenance details (#470)
alessio-cialini Jul 30, 2024
11c46d9
Bump to version 2.19.0-7-next
pagopa-github-bot Jul 30, 2024
e9fb402
[PPANTT-34] feat: API delete stations' maintenance (#472)
svariant Jul 30, 2024
d4087ec
Bump to version 2.19.0-8-next
pagopa-github-bot Jul 30, 2024
6fdc8fc
[PPANTT-48] feat: Add finish maintenance API (#473)
gioelemella Jul 31, 2024
6c3e866
Bump to version 2.19.0-9-next
pagopa-github-bot Jul 31, 2024
ea5ab15
fix: Path api-config api station maintenance (#477)
gioelemella Jul 31, 2024
aa75577
Bump to version 2.19.0-10-next
pagopa-github-bot Jul 31, 2024
eb8f1b2
fix: Date format (#478)
gioelemella Aug 1, 2024
1280444
Bump to version 2.19.0-11-next
pagopa-github-bot Aug 1, 2024
666a8e0
[PPANTT-88] feat: Add pagopa operator's mail to bundle scheduler's no…
svariant Aug 6, 2024
dcddf5e
Bump to version 2.19.0-12-next
pagopa-github-bot Aug 6, 2024
3423f90
Merge branch 'refs/heads/main' into next
gioelemella Aug 6, 2024
94f7e1e
chore: Merge main (#481)
gioelemella Aug 6, 2024
de5a6bc
Merge branch 'next' of https://github.com/pagopa/pagopa-selfcare-ms-b…
gioelemella Aug 6, 2024
fce036e
Bump to version 2.19.0-13-next
pagopa-github-bot Aug 6, 2024
a9d3839
Merge branch 'next' of https://github.com/pagopa/pagopa-selfcare-ms-b…
gioelemella Aug 6, 2024
fafa825
Merge main -> next
svariant Aug 23, 2024
10f7e2d
[PPANTT-93] feat: Add api key ACA (#482)
svariant Aug 23, 2024
bb88554
Bump to version 2.20.0-2-next [skip ci]
pagopa-github-bot Aug 23, 2024
8554ef6
fix: Change empty string to null in products subscription config (#484)
svariant Aug 23, 2024
4e1d2e8
Bump to version 2.20.0-3-next
pagopa-github-bot Aug 23, 2024
a554287
[PPANTT-99] feat: New filters PSP bundles' list (#485)
svariant Aug 30, 2024
a07c777
Bump to version 2.20.0-5-next
pagopa-github-bot Aug 30, 2024
be1b44b
fix: Commission bundle mail notification (#487)
gioelemella Aug 30, 2024
5fb1958
Bump to version 2.20.0-6-next
pagopa-github-bot Aug 30, 2024
8c5d59b
[PPANTT-101] feat: Add export PSP bundle api (#486)
gioelemella Sep 2, 2024
4ab5414
Bump to version 2.20.0-7-next
pagopa-github-bot Sep 2, 2024
4d0df65
Bump to version 2.20.0-8-next [skip ci]
pagopa-github-bot Sep 2, 2024
efc3c31
Merge branch 'refs/heads/main' into next
gioelemella Sep 2, 2024
928cb84
Update next with new release (#489)
gioelemella Sep 2, 2024
1b5e943
Bump to version 2.22.0-1-next
pagopa-github-bot Sep 2, 2024
9ab1b6a
Merge branch 'main' into next
gioelemella Sep 2, 2024
1a50353
[PPANTT-104] fix: Add delegations to authorizer for all GPD & ACA pro…
svariant Sep 3, 2024
62efb9b
Bump to version 2.22.0-2-next
pagopa-github-bot Sep 3, 2024
4baa70c
[PPANTT-103] chore: Avoid jira ticket creation below uat env (#492)
gioelemella Sep 3, 2024
2139d1e
Bump to version 2.22.0-3-next
pagopa-github-bot Sep 3, 2024
c7e8036
Merge branch 'main' into next
svariant Sep 4, 2024
4e98549
Merge branch 'refs/heads/main' into next
gioelemella Sep 5, 2024
7980de8
Bump to version 2.24.3-1-next [skip ci]
pagopa-github-bot Sep 5, 2024
71e5fc7
Merge main -> next
svariant Sep 11, 2024
f5ef7c0
Merge main -> next
svariant Sep 11, 2024
784fbf5
[PPANTT-129] added segregation codes in authorizer config
gioelemella Sep 19, 2024
f662ed6
[PPANTT-129] added authorizer config update in associate and disassoc…
gioelemella Sep 19, 2024
bb150df
[PPANTT-72] feat: Add new fields to Station's models for REST endpoin…
svariant Sep 19, 2024
95f2f03
Bump to version 2.24.5-1-next
pagopa-github-bot Sep 19, 2024
b535357
[PPANTT-129] do some refactor and updated unit tests
gioelemella Sep 19, 2024
c402ea4
[PPANTT-129] improved checks, updated openapi and encrypted env
gioelemella Sep 19, 2024
1e704f8
[PPANTT-129] fix code smell
gioelemella Sep 19, 2024
b45eff9
[PPANTT-129] fix code smells
gioelemella Sep 19, 2024
8306b56
Merge branch 'next' into PPANTT-129-bo-authorizer-api-key-with-segreg…
gioelemella Sep 20, 2024
d757a29
[PPANTT-129] fix api keys check
gioelemella Sep 20, 2024
686727e
Merge branch 'PPANTT-129-bo-authorizer-api-key-with-segregation-codes…
gioelemella Sep 20, 2024
aa1ce30
[PPANTT-129] fixed API response fields type and updated tests model
gioelemella Sep 20, 2024
141b289
[PPANTT-129] added rollback on update authorization failure
gioelemella Sep 20, 2024
078053d
[PPANTT-129] updated openapi
gioelemella Sep 20, 2024
ef893f9
[PPANTT-129] remove check on source branche
gioelemella Sep 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions helm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
name: pagopa-selfcare-ms-backoffice
description: Microservice that manage api keys for pagopa product from selfcare
type: application
version: 0.399.0
appVersion: "2.24.5"
version: 0.400.0
appVersion: "2.24.5-1-next"
dependencies:
- name: microservice-chart
version: 2.4.0
Expand Down
2 changes: 1 addition & 1 deletion helm/values-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ microservice-chart:
fullnameOverride: ""
image:
repository: ghcr.io/pagopa/pagopa-selfcare-ms-backoffice-backend
tag: "2.24.5"
tag: "2.24.5-1-next"
pullPolicy: Always
livenessProbe:
httpGet:
Expand Down
2 changes: 1 addition & 1 deletion helm/values-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ microservice-chart:
fullnameOverride: ""
image:
repository: ghcr.io/pagopa/pagopa-selfcare-ms-backoffice-backend
tag: "2.24.5" #improve
tag: "2.24.5-1-next" #improve
pullPolicy: Always
livenessProbe:
httpGet:
Expand Down
2 changes: 1 addition & 1 deletion helm/values-uat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ microservice-chart:
fullnameOverride: ""
image:
repository: ghcr.io/pagopa/pagopa-selfcare-ms-backoffice-backend
tag: "2.24.5" #improve
tag: "2.24.5-1-next" #improve
pullPolicy: Always
livenessProbe:
httpGet:
Expand Down
115 changes: 58 additions & 57 deletions infra/env/dev/encrypted.env

Large diffs are not rendered by default.

73 changes: 71 additions & 2 deletions openapi/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Microservice to manage PagoPA Backoffice",
"termsOfService": "https://www.pagopa.gov.it/",
"title": "SelfCare Backoffice",
"version": "2.24.5"
"version": "2.24.5-1-next"
},
"servers": [
{
Expand Down Expand Up @@ -8037,6 +8037,24 @@
"schema": {
"type": "string"
}
},
{
"description": "Broker's institution id",
"in": "query",
"name": "institutionId",
"required": true,
"schema": {
"type": "string"
}
},
{
"description": "Broker's tax code",
"in": "query",
"name": "brokerTaxCode",
"required": true,
"schema": {
"type": "string"
}
}
],
"requestBody": {
Expand Down Expand Up @@ -8358,6 +8376,24 @@
"type": "string"
}
},
{
"description": "Broker's institution id",
"in": "query",
"name": "institutionId",
"required": true,
"schema": {
"type": "string"
}
},
{
"description": "Broker's tax code",
"in": "query",
"name": "brokerTaxCode",
"required": true,
"schema": {
"type": "string"
}
},
{
"description": "Station's code",
"in": "path",
Expand Down Expand Up @@ -11278,6 +11314,7 @@
},
"/stations/station-code": {
"get": {
"deprecated": true,
"description": "Internal | External | Synchronous | Authorization | Authentication | TPS | Idempotency | Stateless | Read/Write Intense | Cacheable\n-|-|-|-|-|-|-|-|-|-\nY | N | Y | JWT | JWT | 1.0/sec | Y | Y | | N\n",
"operationId": "getStationCode",
"parameters": [
Expand Down Expand Up @@ -15298,6 +15335,10 @@
"type": "boolean",
"description": "Describe the station connection's type, true synchronous, false asynchronous"
},
"isPaymentOptionsEnabled": {
"type": "boolean",
"description": "Flag that enables EC's payment options service"
},
"modifiedAt": {
"type": "string",
"description": "Station's last modified date",
Expand Down Expand Up @@ -15404,6 +15445,10 @@
"type": "string",
"description": "Station's redirect query string"
},
"restEndpoint": {
"type": "string",
"description": "Endpoint to all the API REST of the EC"
},
"rtInstantaneousDispatch": {
"type": "boolean",
"description": "Station's instantaneous rt dispatch"
Expand Down Expand Up @@ -15532,6 +15577,10 @@
"type": "string",
"description": "Station's ip v4"
},
"isPaymentOptionsEnabled": {
"type": "boolean",
"description": "Flag that enables EC's payment options service"
},
"newPassword": {
"type": "string",
"description": "Station's new password"
Expand Down Expand Up @@ -15627,6 +15676,10 @@
"type": "string",
"description": "Station's redirect query string"
},
"restEndpoint": {
"type": "string",
"description": "Endpoint to all the API REST of the EC"
},
"rtInstantaneousDispatch": {
"type": "boolean",
"description": "Station's instantaneous rt dispatch"
Expand Down Expand Up @@ -16617,6 +16670,10 @@
"type": "boolean",
"description": "Station's activation state"
},
"isPaymentOptionsEnabled": {
"type": "boolean",
"description": "Flag that enables EC's payment options service"
},
"note": {
"type": "string",
"description": "station note description by operation team"
Expand Down Expand Up @@ -16657,6 +16714,10 @@
"type": "string",
"description": "Station's redirect query string"
},
"restEndpoint": {
"type": "string",
"description": "Endpoint to all the API REST of the EC"
},
"service": {
"type": "string",
"description": "Station's service"
Expand Down Expand Up @@ -16750,6 +16811,10 @@
"type": "boolean",
"description": "Describe the station connection's type, true synchronous, false asynchronous"
},
"isPaymentOptionsEnabled": {
"type": "boolean",
"description": "Flag that enables EC's payment options service"
},
"modifiedAt": {
"type": "string",
"description": "Station's last modified date",
Expand All @@ -16759,6 +16824,10 @@
"type": "string",
"description": "Station's pof service"
},
"restEndpoint": {
"type": "string",
"description": "Endpoint to all the API REST of the EC"
},
"service": {
"type": "string",
"description": "Station's service"
Expand Down Expand Up @@ -16847,4 +16916,4 @@
}
}
}
}
}
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<version>2.5.14</version>
</parent>
<artifactId>pagopa-selfcare-ms-backoffice</artifactId>
<version>2.24.5</version>
<version>2.24.5-1-next</version>
<name>SelfCare Backoffice</name>
<description>Microservice to manage PagoPA Backoffice</description>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import it.pagopa.selfcare.pagopa.backoffice.model.connector.creditorinstitution.BrokerCreditorInstitutionDetails;
import it.pagopa.selfcare.pagopa.backoffice.model.connector.station.StationDetailsList;
import it.pagopa.selfcare.pagopa.backoffice.model.creditorinstituions.client.CreditorInstitutionInfo;
import it.pagopa.selfcare.pagopa.backoffice.model.creditorinstituions.client.CreditorInstitutionStationSegregationCodesList;
import it.pagopa.selfcare.pagopa.backoffice.model.iban.Ibans;
import it.pagopa.selfcare.pagopa.backoffice.model.iban.IbansList;
import org.springframework.cloud.openfeign.FeignClient;
Expand Down Expand Up @@ -91,4 +92,11 @@ List<CreditorInstitutionInfo> getStationCreditorInstitutions(
@Valid
Ibans getCreditorInstitutionIbans(@PathVariable("creditorinstitutioncode") String creditorInstitutionCode,
@RequestParam String label);

@GetMapping(value = "/brokers/{broker-tax-code}/creditor-institutions/segregation-codes", produces = MediaType.APPLICATION_JSON_VALUE)
@ResponseBody
@Valid
CreditorInstitutionStationSegregationCodesList getCreditorInstitutionsSegregationCodeAssociatedToBroker(
@PathVariable("broker-tax-code") String brokerCode
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,11 @@ public AvailableCodes getCreditorInstitutionSegregationCodes(
@OpenApiTableMetadata
public CreditorInstitutionStationEditResource associateStationToCreditorInstitution(
@Parameter(description = "Creditor institution's tax code") @PathVariable("ci-tax-code") String ciTaxCode,
@Parameter(description = "Broker's institution id") @RequestParam("institutionId") String institutionId,
@Parameter(description = "Broker's tax code") @RequestParam("brokerTaxCode") String brokerTaxCode,
@RequestBody @NotNull CreditorInstitutionStationDto dto
) {
return ciService.associateStationToCreditorInstitution(ciTaxCode, dto);
return this.ciService.associateStationToCreditorInstitution(ciTaxCode, institutionId, brokerTaxCode, dto);
}

@PutMapping(value = "/{ci-tax-code}/station", produces = {MediaType.APPLICATION_JSON_VALUE})
Expand All @@ -159,7 +161,7 @@ public CreditorInstitutionStationEditResource updateStationAssociationToCreditor
@Parameter(description = "Creditor institution's tax code") @PathVariable("ci-tax-code") String ciTaxCode,
@RequestBody @NotNull CreditorInstitutionStationDto dto
) {
return ciService.updateStationAssociationToCreditorInstitution(ciTaxCode, dto);
return this.ciService.updateStationAssociationToCreditorInstitution(ciTaxCode, dto);
}


Expand All @@ -179,9 +181,11 @@ public CreditorInstitutionStationEditResource updateStationAssociationToCreditor
@OpenApiTableMetadata
public void deleteCreditorInstitutionStationRelationship(
@Parameter(description = "Creditor institution's code") @PathVariable("ci-tax-code") String ciTaxCode,
@Parameter(description = "Broker's institution id") @RequestParam("institutionId") String institutionId,
@Parameter(description = "Broker's tax code") @RequestParam("brokerTaxCode") String brokerTaxCode,
@Parameter(description = "Station's code") @PathVariable("station-code") String stationCode
) {
ciService.deleteCreditorInstitutionStationRelationship(ciTaxCode, stationCode);
this.ciService.deleteCreditorInstitutionStationRelationship(ciTaxCode, stationCode, institutionId, brokerTaxCode);
}

@PostMapping(value = "", consumes = MediaType.APPLICATION_JSON_VALUE)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,10 @@ public CreditorInstitutionResource toResorce(CreditorInstitution model) {
creditorInstitutionResource.setCbillCode(model.getCbillCode());
creditorInstitutionResource.setEnabled(model.getEnabled());
creditorInstitutionResource.setBroadcast(model.getBroadcast());
creditorInstitutionResource.setMod4(model.getMod4());
creditorInstitutionResource.setApplicationCode(model.getApplicationCode());
creditorInstitutionResource.setAuxDigit(model.getAuxDigit());
creditorInstitutionResource.setSegregationCode(model.getSegregationCode());
creditorInstitutionResource.setMod4(String.valueOf(model.getMod4()));
creditorInstitutionResource.setApplicationCode(String.valueOf(model.getApplicationCode()));
creditorInstitutionResource.setAuxDigit(String.valueOf(model.getAuxDigit()));
creditorInstitutionResource.setSegregationCode(String.valueOf(model.getSegregationCode()));
creditorInstitutionResource.setAca(model.getAca());
creditorInstitutionResource.setStandIn(model.getStandIn());

Expand Down
Loading
Loading