Skip to content

Commit

Permalink
[SELC-6133] feat: added attribute attachments into response for API v…
Browse files Browse the repository at this point in the history
…2/tokens/{onboardingId}
  • Loading branch information
pierpaolodidato89 authored Dec 9, 2024
1 parent 1fe4ccd commit 1d488f6
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/src/main/resources/swagger/api-docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -4267,6 +4267,13 @@
"$ref" : "#/components/schemas/UserInfo"
}
},
"attachments" : {
"type" : "array",
"description" : "Onboarding's attachments",
"items" : {
"type" : "string"
}
},
"expiringDate" : {
"type" : "string",
"description" : "Onboarding request expiring date",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ public class OnboardingData {
private String reasonForReject;
private Boolean isAggregator;
private List<Institution> aggregates;
private List<String> attachments;
public List<User> getUsers() {
return Optional.ofNullable(users).orElse(Collections.emptyList());
}
Expand Down
6 changes: 6 additions & 0 deletions connector/rest/docs/openapi/api-selfcare-onboarding-docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -2612,6 +2612,12 @@
},
"reasonForReject": {
"type": "string"
},
"attachments" : {
"type" : "array",
"items" : {
"type" : "string"
}
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ public class OnboardingRequestResource {
@ApiModelProperty(value = "${swagger.onboarding.model.reason}")
private String reasonForReject;

@ApiModelProperty(value = "${swagger.onboarding.model.attachments}")
private List<String> attachments;

@Data
@EqualsAndHashCode(of = "id")
public static class InstitutionInfo {
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 @@ -88,6 +88,7 @@ swagger.onboarding.model.status=Onboarding request's status
swagger.onboarding.model.institutionInfo=Institution specific data
swagger.onboarding.model.manager=Manager specific data. It's required when institutionType is not PT
swagger.onboarding.model.reason=Onboarding request rejection reason
swagger.onboarding.model.attachments=Onboarding's attachments
swagger.onboarding.model.updateDate=Onboarding request update date
swagger.onboarding.model.expiringDate=Onboarding request expiring date
swagger.onboarding.model.admins=Administrators specific data
Expand Down

0 comments on commit 1d488f6

Please sign in to comment.