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

policiesApi : modify the schema of retirementCapital->projectedRetirementBenefits into Get policy response #23

Open
stadja opened this issue Apr 17, 2024 · 0 comments

Comments

@stadja
Copy link

stadja commented Apr 17, 2024

Description
Currently, when requesting a policy response (GET /policies/{policyId}), the API schema states that the value of retirementCapital->projectedRetirementBenefits should be an array representing the projected retirement benefits for a series of retirement ages.

State of the Art Observations
We asked 3 pension funds to implement this API. None of them could provide us with an array of projected retirement benefits. Instead, they only provided the "real" projected retirement benefits corresponding to the client's official retirement age.

Suggested Change
I propose modifying the specification to return not an array, but just an object containing the projected retirement benefits for the client's official retirement age. If the request includes a specification in simulationData to retire before or after the retirement age (see issue 22), it should only return the resulting projected retirement benefits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant