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-6133] feat: added attribute attachments into response for API v2/tokens/{onboardingId} #378

Merged
merged 3 commits into from
Dec 9, 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
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
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
Loading