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

[SELC-5216] feat: Added parentDescription to InstitutionOnboardings response #330

Merged
merged 7 commits into from
Jul 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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: 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
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
Loading