From 874b493e2bc2365a88e4f70ae794919ee4e4468b Mon Sep 17 00:00:00 2001 From: Simon Treanor Date: Wed, 21 Feb 2024 18:08:53 +0000 Subject: [PATCH] minimum payment option --- src/PaymentSchedule.fs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/PaymentSchedule.fs b/src/PaymentSchedule.fs index 16ef110..4da96e3 100644 --- a/src/PaymentSchedule.fs +++ b/src/PaymentSchedule.fs @@ -64,6 +64,8 @@ module PaymentSchedule = RoundingOptions: RoundingOptions /// how to adjust the final payment FinalPaymentAdjustment: FinalPaymentAdjustment + /// the minimum payment that can be taken, usually due to payment-provider restrictions + MinimumPaymentAmount: int64 } module Calculation = @@ -72,6 +74,7 @@ module PaymentSchedule = AprMethod = Apr.CalculationMethod.UsActuarial 8 RoundingOptions = { InterestRounding = RoundDown; PaymentRounding = RoundUp } FinalPaymentAdjustment = AdjustFinalPayment + MinimumPaymentAmount = 50L } /// parameters for creating a payment schedule