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

Increase GIS max income limit when partner is receiving partial OAS #100

Merged
merged 1 commit into from
Jan 19, 2022
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
16 changes: 16 additions & 0 deletions __tests__/pages/api/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1083,6 +1083,22 @@ describe('basic GIS scenarios', () => {
expect(res.body.results.gis.eligibilityResult).toEqual(ResultKey.ELIGIBLE)
expect(res.body.results.gis.reason).toEqual(ResultReason.NONE)
})
it('returns "eligible" when married and partner partial OAS and income under 46656 and partner income 0', async () => {
const res = await mockGetRequest({
income: 46655,
age: 65,
maritalStatus: MaritalStatus.MARRIED,
livingCountry: LivingCountry.CANADA,
legalStatus: LegalStatus.CANADIAN_CITIZEN,
legalStatusOther: undefined,
yearsInCanadaSince18: 40,
everLivedSocialCountry: undefined,
partnerBenefitStatus: PartnerBenefitStatus.PARTIAL_OAS_GIS,
partnerIncome: 0,
})
expect(res.body.results.gis.eligibilityResult).toEqual(ResultKey.ELIGIBLE)
expect(res.body.results.gis.reason).toEqual(ResultReason.NONE)
})
})

describe('GIS entitlement scenarios', () => {
Expand Down
7 changes: 6 additions & 1 deletion utils/api/benefits/checkGis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,13 @@ export default function checkGis(input: ProcessedInput): BenefitResult {
oasResult.eligibilityResult === ResultKey.ELIGIBLE ||
oasResult.eligibilityResult === ResultKey.CONDITIONAL
const meetsReqLegal = input.legalStatus.canadian
/*
Please note that the logic below is currently imperfect. Specifically, when partnerBenefitStatus == partialOas,
we do not know the correct income limit. As a compromise, we are going with the higher limit,
which may result in us returning "eligible" when in fact they are not.
*/
const maxIncome = input.maritalStatus.partnered
? input.partnerBenefitStatus.anyOas
? input.partnerBenefitStatus.fullOas
? MAX_GIS_INCOME_PARTNER_OAS
: MAX_GIS_INCOME_PARTNER_NO_OAS_NO_ALLOWANCE
: MAX_GIS_INCOME_SINGLE
Expand Down