Skip to content

Commit

Permalink
[SELC-5683] Feat: Added county city and zipCode in verify csv for APP…
Browse files Browse the repository at this point in the history
… IO (#521)
  • Loading branch information
flaminiaScarciofolo authored Oct 4, 2024
1 parent 36be580 commit 76c7c21
Show file tree
Hide file tree
Showing 25 changed files with 375 additions and 1,407 deletions.
6 changes: 6 additions & 0 deletions apps/onboarding-ms/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@
<artifactId>quarkus-junit5</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>net.jodah</groupId>
<artifactId>expiringmap</artifactId>
<version>0.5.10</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-junit5-mockito</artifactId>
Expand Down
315 changes: 11 additions & 304 deletions apps/onboarding-ms/src/main/docs/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,51 +47,6 @@
}
}
},
"responses" : {
"200" : {
"description" : "OK",
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/VerifyAggregateAppIoResponse"
}
}
}
},
"401" : {
"description" : "Not Authorized"
},
"403" : {
"description" : "Not Allowed"
}
},
"security" : [ {
"SecurityScheme" : [ ]
} ]
}
},
"/v1/aggregates/verification/prod-pagopa" : {
"post" : {
"tags" : [ "Aggregates Controller" ],
"summary" : "Validate the data related to the aggregated entities present in a CSV file",
"description" : "Validates aggregated entity data specific to the PROD-Pagopa environment by processing the provided CSV file. This ensures that all entries meet the required criteria before further processing.",
"operationId" : "verifyPagoPaAggregatesCsv",
"requestBody" : {
"content" : {
"multipart/form-data" : {
"schema" : {
"required" : [ "aggregates" ],
"type" : "object",
"properties" : {
"aggregates" : {
"format" : "binary",
"type" : "string"
}
}
}
}
}
},
"responses" : {
"200" : {
"description" : "OK",
Expand All @@ -115,51 +70,6 @@
} ]
}
},
"/v1/aggregates/verification/prod-pn" : {
"post" : {
"tags" : [ "Aggregates Controller" ],
"summary" : "Validate the data related to the aggregated entities present in a CSV file",
"description" : "Validates aggregated entity data specific to the PROD-PN environment by processing the provided CSV file. This ensures that all entries meet the required criteria before further processing.",
"operationId" : "verifySendAggregatesCsv",
"requestBody" : {
"content" : {
"multipart/form-data" : {
"schema" : {
"required" : [ "aggregates" ],
"type" : "object",
"properties" : {
"aggregates" : {
"format" : "binary",
"type" : "string"
}
}
}
}
}
},
"responses" : {
"200" : {
"description" : "OK",
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/VerifyAggregateSendResponse"
}
}
}
},
"401" : {
"description" : "Not Authorized"
},
"403" : {
"description" : "Not Allowed"
}
},
"security" : [ {
"SecurityScheme" : [ ]
} ]
}
},
"/v1/notification/resend" : {
"post" : {
"tags" : [ "Notification Controller" ],
Expand Down Expand Up @@ -1442,7 +1352,7 @@
}
}
},
"AggregateAppIo" : {
"Aggregate" : {
"type" : "object",
"properties" : {
"subunitCode" : {
Expand All @@ -1466,6 +1376,15 @@
"address" : {
"type" : "string"
},
"city" : {
"type" : "string"
},
"county" : {
"type" : "string"
},
"zipCode" : {
"type" : "string"
},
"originId" : {
"type" : "string"
},
Expand Down Expand Up @@ -1547,67 +1466,6 @@
}
}
},
"AggregateSend" : {
"type" : "object",
"properties" : {
"description" : {
"type" : "string"
},
"pec" : {
"type" : "string"
},
"taxCode" : {
"type" : "string"
},
"vatNumber" : {
"type" : "string"
},
"codeSDI" : {
"type" : "string"
},
"address" : {
"type" : "string"
},
"city" : {
"type" : "string"
},
"province" : {
"type" : "string"
},
"subunitType" : {
"type" : "string"
},
"subunitCode" : {
"type" : "string"
},
"users" : {
"type" : "array",
"items" : {
"$ref" : "#/components/schemas/AggregateUser"
}
}
}
},
"AggregateUser" : {
"type" : "object",
"properties" : {
"name" : {
"type" : "string"
},
"surname" : {
"type" : "string"
},
"taxCode" : {
"type" : "string"
},
"email" : {
"type" : "string"
},
"role" : {
"type" : "string"
}
}
},
"BillingPaRequest" : {
"type" : "object",
"properties" : {
Expand Down Expand Up @@ -1653,20 +1511,6 @@
}
}
},
"DataProtectionOfficer" : {
"type" : "object",
"properties" : {
"address" : {
"type" : "string"
},
"email" : {
"type" : "string"
},
"pec" : {
"type" : "string"
}
}
},
"DataProtectionOfficerRequest" : {
"type" : "object",
"properties" : {
Expand Down Expand Up @@ -1703,89 +1547,6 @@
}
}
},
"Institution" : {
"type" : "object",
"properties" : {
"id" : {
"type" : "string"
},
"institutionType" : {
"$ref" : "#/components/schemas/InstitutionType"
},
"taxCode" : {
"type" : "string"
},
"subunitCode" : {
"type" : "string"
},
"subunitType" : {
"$ref" : "#/components/schemas/InstitutionPaSubunitType"
},
"origin" : {
"$ref" : "#/components/schemas/Origin"
},
"originId" : {
"type" : "string"
},
"city" : {
"type" : "string"
},
"country" : {
"type" : "string"
},
"county" : {
"type" : "string"
},
"istatCode" : {
"type" : "string"
},
"description" : {
"type" : "string"
},
"digitalAddress" : {
"type" : "string"
},
"address" : {
"type" : "string"
},
"zipCode" : {
"type" : "string"
},
"geographicTaxonomies" : {
"type" : "array",
"items" : {
"$ref" : "#/components/schemas/GeographicTaxonomy"
}
},
"rea" : {
"type" : "string"
},
"shareCapital" : {
"type" : "string"
},
"businessRegisterPlace" : {
"type" : "string"
},
"supportEmail" : {
"type" : "string"
},
"supportPhone" : {
"type" : "string"
},
"imported" : {
"type" : "boolean"
},
"paymentServiceProvider" : {
"$ref" : "#/components/schemas/PaymentServiceProvider"
},
"dataProtectionOfficer" : {
"$ref" : "#/components/schemas/DataProtectionOfficer"
},
"parentDescription" : {
"type" : "string"
}
}
},
"InstitutionBaseRequest" : {
"required" : [ "institutionType", "digitalAddress" ],
"type" : "object",
Expand Down Expand Up @@ -2477,26 +2238,6 @@
"enum" : [ "MANAGER", "DELEGATE", "SUB_DELEGATE", "OPERATOR", "ADMIN_EA" ],
"type" : "string"
},
"PaymentServiceProvider" : {
"type" : "object",
"properties" : {
"abiCode" : {
"type" : "string"
},
"businessRegisterNumber" : {
"type" : "string"
},
"legalRegisterNumber" : {
"type" : "string"
},
"legalRegisterName" : {
"type" : "string"
},
"vatNumberGroup" : {
"type" : "boolean"
}
}
},
"PaymentServiceProviderRequest" : {
"type" : "object",
"properties" : {
Expand Down Expand Up @@ -2650,47 +2391,13 @@
}
}
},
"VerifyAggregateAppIoResponse" : {
"type" : "object",
"properties" : {
"aggregates" : {
"type" : "array",
"items" : {
"$ref" : "#/components/schemas/AggregateAppIo"
}
},
"errors" : {
"type" : "array",
"items" : {
"$ref" : "#/components/schemas/RowError"
}
}
}
},
"VerifyAggregateResponse" : {
"type" : "object",
"properties" : {
"aggregates" : {
"type" : "array",
"items" : {
"$ref" : "#/components/schemas/Institution"
}
},
"errors" : {
"type" : "array",
"items" : {
"$ref" : "#/components/schemas/RowError"
}
}
}
},
"VerifyAggregateSendResponse" : {
"type" : "object",
"properties" : {
"aggregates" : {
"type" : "array",
"items" : {
"$ref" : "#/components/schemas/AggregateSend"
"$ref" : "#/components/schemas/Aggregate"
}
},
"errors" : {
Expand Down
Loading

0 comments on commit 76c7c21

Please sign in to comment.