Skip to content

Commit

Permalink
[SELC-5216] feat: Added parentDescription to InstitutionOnboardings r…
Browse files Browse the repository at this point in the history
…esponse (#330)

Co-authored-by: Manuel Rafeli <manuel.rafeli@pagopa.it>
Co-authored-by: pierpaolo.didato@emeal.nttdata.com <Aiap1955?^@#>
  • Loading branch information
3 people authored Jul 5, 2024
1 parent c770ead commit d0bd274
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 3 deletions.
4 changes: 4 additions & 0 deletions app/src/main/resources/swagger/api-docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -3389,6 +3389,10 @@
"type" : "string",
"description" : "Institution's details origin Id"
},
"parentDescription" : {
"type" : "string",
"description" : "Institution's parent description"
},
"taxCode" : {
"type" : "string",
"description" : "Institution's taxCode"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public class Institution {
private String externalId;
private String originId;
private String description;
private String parentDescription;
private String digitalAddress;
private String address;
private String zipCode;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ public class InstitutionUpdate {
private String id;
private InstitutionType institutionType;
private String description;
private String parentDescription;
private String digitalAddress;
private String address;
private String taxCode;
Expand Down
7 changes: 4 additions & 3 deletions connector/rest/docs/openapi/api-selfcare-onboarding-docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -1592,6 +1592,9 @@
"zipCode" : {
"type" : "string"
},
"parentDescription" : {
"type" : "string"
},
"geographicTaxonomies" : {
"type" : "array",
"items" : {
Expand Down Expand Up @@ -1970,7 +1973,7 @@
"type" : "string"
},
"OnboardingUserRequest" : {
"required" : [ "productId", "origin", "originId", "users" ],
"required" : [ "productId", "users" ],
"type" : "object",
"properties" : {
"productId" : {
Expand All @@ -1984,11 +1987,9 @@
"type" : "string"
},
"origin" : {
"minLength" : 1,
"type" : "string"
},
"originId" : {
"minLength" : 1,
"type" : "string"
},
"taxCode" : {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"originId": "test",
"institutionType": "PA",
"description": "AGENCY X",
"parentDescription": "test",
"digitalAddress": "email@pec.mail.org",
"address": "via del campo",
"taxCode": "string",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import it.pagopa.selfcare.commons.base.logging.LogUtils;
import it.pagopa.selfcare.commons.web.model.Problem;
import it.pagopa.selfcare.onboarding.common.InstitutionType;

import it.pagopa.selfcare.onboarding.core.InstitutionService;
import it.pagopa.selfcare.onboarding.web.model.CompanyOnboardingDto;
import it.pagopa.selfcare.onboarding.web.model.InstitutionResource;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ public class InstitutionResource {
@ApiModelProperty(value = "${swagger.onboarding.institutions.model.name}")
private String description;

@ApiModelProperty(value = "${swagger.onboarding.institutions.model.parentDescription}")
private String parentDescription;

@ApiModelProperty(value = "${swagger.onboarding.institutions.model.externalId}")
private String externalId;

Expand Down
1 change: 1 addition & 0 deletions web/src/main/resources/swagger/swagger_en.properties
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ swagger.onboarding.institutions.model.address=Institution's physical address
swagger.onboarding.institutions.model.digitalAddress=Institution's digitalAddress
swagger.onboarding.institutions.model.zipCode=Institution's zipCode
swagger.onboarding.institutions.model.taxCode=Institution's taxCode
swagger.onboarding.institutions.model.parentDescription=Institution's parent description
swagger.onboarding.institutions.model.taxCodeInvoicing=Institution's taxCodeInvoicing for electronic invoicing
swagger.onboarding.institutions.model.subunitCode=Institution's subunitCode
swagger.onboarding.institutions.model.subunitType=Institution's subunitType
Expand Down

0 comments on commit d0bd274

Please sign in to comment.