Skip to content

Commit

Permalink
minimum payment option
Browse files Browse the repository at this point in the history
  • Loading branch information
simontreanor committed Feb 21, 2024
1 parent 61c8764 commit 874b493
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/PaymentSchedule.fs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Cent>
}

module Calculation =
Expand All @@ -72,6 +74,7 @@ module PaymentSchedule =
AprMethod = Apr.CalculationMethod.UsActuarial 8
RoundingOptions = { InterestRounding = RoundDown; PaymentRounding = RoundUp }
FinalPaymentAdjustment = AdjustFinalPayment
MinimumPaymentAmount = 50L<Cent>
}

/// parameters for creating a payment schedule
Expand Down

0 comments on commit 874b493

Please sign in to comment.