diff --git a/src/LoanRepaymentApi/UkStudentLoans/UkStudentLoanProjectionDto.cs b/src/LoanRepaymentApi/UkStudentLoans/UkStudentLoanProjectionDto.cs index d1d5d81..ba373ed 100644 --- a/src/LoanRepaymentApi/UkStudentLoans/UkStudentLoanProjectionDto.cs +++ b/src/LoanRepaymentApi/UkStudentLoans/UkStudentLoanProjectionDto.cs @@ -18,6 +18,8 @@ public class UkStudentLoanProjectionDto public decimal InterestApplied { get; set; } + public int Threshold { get; set; } + public decimal TotalPaid { get; set; } public decimal TotalInterestApplied { get; set; } diff --git a/test/LoanRepaymentApi.Integration.Tests/UkStudentLoans/calculate-type1-not-enough-salary-at-start-response.json b/test/LoanRepaymentApi.Integration.Tests/UkStudentLoans/calculate-type1-not-enough-salary-at-start-response.json index 167a61b..06f6b7a 100644 --- a/test/LoanRepaymentApi.Integration.Tests/UkStudentLoans/calculate-type1-not-enough-salary-at-start-response.json +++ b/test/LoanRepaymentApi.Integration.Tests/UkStudentLoans/calculate-type1-not-enough-salary-at-start-response.json @@ -12,6 +12,7 @@ "interestRate": 0.015, "paid": 0, "interestApplied": 0.0625, + "threshold": 20195, "totalPaid": 0, "totalInterestApplied": 0.0625 } @@ -34,6 +35,7 @@ "interestRate": 0.015, "paid": 50.125078125, "interestApplied": 0.062578125, + "threshold": 20195, "totalPaid": 50.125078125, "totalInterestApplied": 0.125078125 } diff --git a/test/LoanRepaymentApi.Integration.Tests/UkStudentLoans/calculate-type1-response.json b/test/LoanRepaymentApi.Integration.Tests/UkStudentLoans/calculate-type1-response.json index 94573ec..f6ee63a 100644 --- a/test/LoanRepaymentApi.Integration.Tests/UkStudentLoans/calculate-type1-response.json +++ b/test/LoanRepaymentApi.Integration.Tests/UkStudentLoans/calculate-type1-response.json @@ -12,6 +12,7 @@ "interestRate": 0.015, "paid": 436.0375, "interestApplied": 1.125, + "threshold": 20195, "totalPaid": 436.0375, "totalInterestApplied": 1.125 } @@ -34,6 +35,7 @@ "interestRate": 0.015, "paid": 384.7875, "interestApplied": 0.706359375, + "threshold": 20195, "totalPaid": 820.825, "totalInterestApplied": 1.831359375 } @@ -56,6 +58,7 @@ "interestRate": 0.015, "paid": 181.23261732421875, "interestApplied": 0.22625794921875, + "threshold": 20195, "totalPaid": 1002.0576173242188, "totalInterestApplied": 2.05761732421875 } diff --git a/test/LoanRepaymentApi.Integration.Tests/UkStudentLoans/calculate-type1-type2-response.json b/test/LoanRepaymentApi.Integration.Tests/UkStudentLoans/calculate-type1-type2-response.json index 8d2e2b2..91c375d 100644 --- a/test/LoanRepaymentApi.Integration.Tests/UkStudentLoans/calculate-type1-type2-response.json +++ b/test/LoanRepaymentApi.Integration.Tests/UkStudentLoans/calculate-type1-type2-response.json @@ -12,6 +12,7 @@ "interestRate": 0.043, "paid": 151.5375, "interestApplied": 0.7166666666666667, + "threshold": 27295, "totalPaid": 151.5375, "totalInterestApplied": 0.7166666666666667 }, @@ -22,6 +23,7 @@ "interestRate": 0.015, "paid": 53.25, "interestApplied": 0.3, + "threshold": 20195, "totalPaid": 53.25, "totalInterestApplied": 0.3 } @@ -44,6 +46,7 @@ "interestRate": 0.045, "paid": 49.363588541666665, "interestApplied": 0.184421875, + "threshold": 27295, "totalPaid": 200.90108854166667, "totalInterestApplied": 0.9010885416666666 }, @@ -54,6 +57,7 @@ "interestRate": 0.015, "paid": 187.2838125, "interestApplied": 0.2338125, + "threshold": 20195, "totalPaid": 240.5338125, "totalInterestApplied": 0.5338125 }