FINERACT-2206: Fix typo in allowPartialPeriodInterestCalculation
Fixed misspelled 'allowPartialPeriodInterestCalcualtion' to 'allowPartialPeriodInterestCalculation' in REST API and code. 35 files updated as specified in JIRA.
This commit is contained in:
+2
-2
@@ -463,7 +463,7 @@ public class LoanAccountData {
|
||||
final EnumOptionData amortizationType, final BigDecimal interestRatePerPeriod, final EnumOptionData interestRateFrequencyType,
|
||||
final BigDecimal annualInterestRate, final EnumOptionData interestType, final boolean isFloatingInterestRate,
|
||||
final BigDecimal interestRateDifferential, final EnumOptionData interestCalculationPeriodType,
|
||||
Boolean allowPartialPeriodInterestCalcualtion, final LocalDate expectedFirstRepaymentOnDate,
|
||||
Boolean allowPartialPeriodInterestCalculation, final LocalDate expectedFirstRepaymentOnDate,
|
||||
final Integer graceOnPrincipalPayment, final Integer recurringMoratoriumOnPrincipalPeriods,
|
||||
final Integer graceOnInterestPayment, final Integer graceOnInterestCharged, final LocalDate interestChargedFromDate,
|
||||
final LoanApplicationTimelineData timeline, final LoanSummaryData loanSummary,
|
||||
@@ -508,7 +508,7 @@ public class LoanAccountData {
|
||||
.setInterestRateFrequencyType(interestRateFrequencyType).setAnnualInterestRate(annualInterestRate)
|
||||
.setInterestType(interestType).setFloatingInterestRate(isFloatingInterestRate)
|
||||
.setInterestRateDifferential(interestRateDifferential).setInterestCalculationPeriodType(interestCalculationPeriodType)
|
||||
.setAllowPartialPeriodInterestCalculation(allowPartialPeriodInterestCalcualtion)
|
||||
.setAllowPartialPeriodInterestCalculation(allowPartialPeriodInterestCalculation)
|
||||
.setExpectedFirstRepaymentOnDate(expectedFirstRepaymentOnDate).setGraceOnPrincipalPayment(graceOnPrincipalPayment)
|
||||
.setRecurringMoratoriumOnPrincipalPeriods(recurringMoratoriumOnPrincipalPeriods)
|
||||
.setGraceOnInterestPayment(graceOnInterestPayment).setGraceOnInterestCharged(graceOnInterestCharged)
|
||||
|
||||
+8
-8
@@ -90,7 +90,7 @@ public final class LoanApplicationTerms {
|
||||
private PeriodFrequencyType interestRatePeriodFrequencyType;
|
||||
private BigDecimal annualNominalInterestRate;
|
||||
private InterestCalculationPeriodMethod interestCalculationPeriodMethod;
|
||||
private boolean allowPartialPeriodInterestCalcualtion;
|
||||
private boolean allowPartialPeriodInterestCalculation;
|
||||
|
||||
private Money principal;
|
||||
private LocalDate expectedDisbursementDate;
|
||||
@@ -293,7 +293,7 @@ public final class LoanApplicationTerms {
|
||||
this.buyDownFeeIncomeType = builder.buyDownFeeIncomeType;
|
||||
this.merchantBuyDownFee = builder.merchantBuyDownFee;
|
||||
this.interestMethod = builder.interestMethod;
|
||||
this.allowPartialPeriodInterestCalcualtion = builder.allowPartialPeriodInterestCalculation;
|
||||
this.allowPartialPeriodInterestCalculation = builder.allowPartialPeriodInterestCalculation;
|
||||
}
|
||||
|
||||
public static class Builder {
|
||||
@@ -688,7 +688,7 @@ public final class LoanApplicationTerms {
|
||||
final PeriodFrequencyType repaymentPeriodFrequencyType, final Integer nthDay, final DayOfWeekType weekDayType,
|
||||
final AmortizationMethod amortizationMethod, final InterestMethod interestMethod, final BigDecimal interestRatePerPeriod,
|
||||
final PeriodFrequencyType interestRatePeriodFrequencyType, final BigDecimal annualNominalInterestRate,
|
||||
final InterestCalculationPeriodMethod interestCalculationPeriodMethod, final boolean allowPartialPeriodInterestCalcualtion,
|
||||
final InterestCalculationPeriodMethod interestCalculationPeriodMethod, final boolean allowPartialPeriodInterestCalculation,
|
||||
final Money principal, final LocalDate expectedDisbursementDate, final LocalDate repaymentsStartingFromDate,
|
||||
final LocalDate calculatedRepaymentsStartingFromDate, final Integer principalGrace,
|
||||
final Integer recurringMoratoriumOnPrincipalPeriods, final Integer interestPaymentGrace, final Integer interestChargingGrace,
|
||||
@@ -733,7 +733,7 @@ public final class LoanApplicationTerms {
|
||||
this.interestRatePeriodFrequencyType = interestRatePeriodFrequencyType;
|
||||
this.annualNominalInterestRate = annualNominalInterestRate;
|
||||
this.interestCalculationPeriodMethod = interestCalculationPeriodMethod;
|
||||
this.allowPartialPeriodInterestCalcualtion = allowPartialPeriodInterestCalcualtion;
|
||||
this.allowPartialPeriodInterestCalculation = allowPartialPeriodInterestCalculation;
|
||||
|
||||
this.principal = principal;
|
||||
this.disbursedPrincipal = principal;
|
||||
@@ -1106,7 +1106,7 @@ public final class LoanApplicationTerms {
|
||||
case INVALID:
|
||||
break;
|
||||
case SAME_AS_REPAYMENT_PERIOD:
|
||||
if (this.allowPartialPeriodInterestCalcualtion) {
|
||||
if (this.allowPartialPeriodInterestCalculation) {
|
||||
LocalDate startDate = getExpectedDisbursementDate();
|
||||
if (getInterestChargedFromDate() != null) {
|
||||
startDate = getInterestChargedFromLocalDate();
|
||||
@@ -1407,7 +1407,7 @@ public final class LoanApplicationTerms {
|
||||
|
||||
private BigDecimal calculateLoanTermFrequency(final LocalDate periodStartDate, final LocalDate periodEndDate) {
|
||||
BigDecimal loanTermFrequencyBigDecimal = BigDecimal.valueOf(this.repaymentEvery);
|
||||
if (this.interestCalculationPeriodMethod.isDaily() || this.allowPartialPeriodInterestCalcualtion) {
|
||||
if (this.interestCalculationPeriodMethod.isDaily() || this.allowPartialPeriodInterestCalculation) {
|
||||
loanTermFrequencyBigDecimal = calculatePeriodsBetweenDates(periodStartDate, periodEndDate);
|
||||
}
|
||||
return loanTermFrequencyBigDecimal;
|
||||
@@ -1681,7 +1681,7 @@ public final class LoanApplicationTerms {
|
||||
|
||||
return LoanProductRelatedDetail.createFrom(currency, this.principal.getAmount(), this.interestRatePerPeriod,
|
||||
this.interestRatePeriodFrequencyType, this.annualNominalInterestRate, this.interestMethod,
|
||||
this.interestCalculationPeriodMethod, this.allowPartialPeriodInterestCalcualtion, this.repaymentEvery,
|
||||
this.interestCalculationPeriodMethod, this.allowPartialPeriodInterestCalculation, this.repaymentEvery,
|
||||
this.repaymentPeriodFrequencyType, this.numberOfRepayments, this.principalGrace, this.recurringMoratoriumOnPrincipalPeriods,
|
||||
this.interestPaymentGrace, this.interestChargingGrace, this.amortizationMethod, this.inArrearsTolerance.getAmount(),
|
||||
this.graceOnArrearsAgeing, this.daysInMonthType.getValue(), this.daysInYearType.getValue(),
|
||||
@@ -1702,7 +1702,7 @@ public final class LoanApplicationTerms {
|
||||
interestCalculationPeriodMethod, daysInYearType, daysInMonthType, amortizationMethod, repaymentPeriodFrequencyType,
|
||||
repaymentEvery, numberOfRepayments,
|
||||
isInterestChargedFromDateSameAsDisbursalDateEnabled != null && isInterestChargedFromDateSameAsDisbursalDateEnabled,
|
||||
daysInYearCustomStrategy, allowPartialPeriodInterestCalcualtion, interestRecalculationEnabled, recalculationFrequencyType,
|
||||
daysInYearCustomStrategy, allowPartialPeriodInterestCalculation, interestRecalculationEnabled, recalculationFrequencyType,
|
||||
preClosureInterestCalculationStrategy);
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -130,7 +130,7 @@ public interface LoanProductConstants {
|
||||
String minimumGapBetweenInstallments = "minimumGap";
|
||||
String maximumGapBetweenInstallments = "maximumGap";
|
||||
|
||||
String ALLOW_PARTIAL_PERIOD_INTEREST_CALCUALTION_PARAM_NAME = "allowPartialPeriodInterestCalcualtion";
|
||||
String ALLOW_PARTIAL_PERIOD_INTEREST_CALCUALTION_PARAM_NAME = "allowPartialPeriodInterestCalculation";
|
||||
|
||||
String CAN_USE_FOR_TOPUP = "canUseForTopup";
|
||||
|
||||
|
||||
+2
-2
@@ -159,7 +159,7 @@ public final class LoanProductsApiResourceSwagger {
|
||||
@Schema(example = "FULL_LEAP_YEAR")
|
||||
public String daysInYearCustomStrategy;
|
||||
@Schema(example = "true")
|
||||
public Boolean allowPartialPeriodInterestCalcualtion;
|
||||
public Boolean allowPartialPeriodInterestCalculation;
|
||||
@Schema(example = "179")
|
||||
public Integer overdueDaysForNPA;
|
||||
@Schema(example = "3")
|
||||
@@ -1662,7 +1662,7 @@ public final class LoanProductsApiResourceSwagger {
|
||||
@Schema(example = "FULL_LEAP_YEAR")
|
||||
public String daysInYearCustomStrategy;
|
||||
@Schema(example = "true")
|
||||
public Boolean allowPartialPeriodInterestCalcualtion;
|
||||
public Boolean allowPartialPeriodInterestCalculation;
|
||||
@Schema(example = "179")
|
||||
public Integer overdueDaysForNPA;
|
||||
@Schema(example = "3")
|
||||
|
||||
+8
-8
@@ -305,7 +305,7 @@ public class LoanProductData implements Serializable {
|
||||
final EnumOptionData amortizationType = null;
|
||||
final EnumOptionData interestType = null;
|
||||
final EnumOptionData interestCalculationPeriodType = null;
|
||||
final Boolean allowPartialPeriodInterestCalcualtion = null;
|
||||
final Boolean allowPartialPeriodInterestCalculation = null;
|
||||
final Long fundId = null;
|
||||
final String fundName = null;
|
||||
final String transactionProcessingStrategyCode = null;
|
||||
@@ -388,7 +388,7 @@ public class LoanProductData implements Serializable {
|
||||
return new LoanProductData(id, name, shortName, description, currency, principal, minPrincipal, maxPrincipal, tolerance,
|
||||
numberOfRepayments, minNumberOfRepayments, maxNumberOfRepayments, repaymentEvery, interestRatePerPeriod,
|
||||
minInterestRatePerPeriod, maxInterestRatePerPeriod, annualInterestRate, repaymentFrequencyType, interestRateFrequencyType,
|
||||
amortizationType, interestType, interestCalculationPeriodType, allowPartialPeriodInterestCalcualtion, fundId, fundName,
|
||||
amortizationType, interestType, interestCalculationPeriodType, allowPartialPeriodInterestCalculation, fundId, fundName,
|
||||
transactionProcessingStrategyCode, transactionProcessingStrategyName, graceOnPrincipalPayment,
|
||||
recurringMoratoriumOnPrincipalPeriods, graceOnInterestPayment, graceOnInterestCharged, charges, accountingType,
|
||||
includeInBorrowerCycle, useBorrowerCycle, startDate, closeDate, status, externalId, principalVariations,
|
||||
@@ -444,7 +444,7 @@ public class LoanProductData implements Serializable {
|
||||
final EnumOptionData amortizationType = null;
|
||||
final EnumOptionData interestType = null;
|
||||
final EnumOptionData interestCalculationPeriodType = null;
|
||||
final Boolean allowPartialPeriodInterestCalcualtion = null;
|
||||
final Boolean allowPartialPeriodInterestCalculation = null;
|
||||
final Long fundId = null;
|
||||
final String fundName = null;
|
||||
final String transactionProcessingStrategyCode = null;
|
||||
@@ -529,7 +529,7 @@ public class LoanProductData implements Serializable {
|
||||
return new LoanProductData(id, name, shortName, description, currency, principal, minPrincipal, maxPrincipal, tolerance,
|
||||
numberOfRepayments, minNumberOfRepayments, maxNumberOfRepayments, repaymentEvery, interestRatePerPeriod,
|
||||
minInterestRatePerPeriod, maxInterestRatePerPeriod, annualInterestRate, repaymentFrequencyType, interestRateFrequencyType,
|
||||
amortizationType, interestType, interestCalculationPeriodType, allowPartialPeriodInterestCalcualtion, fundId, fundName,
|
||||
amortizationType, interestType, interestCalculationPeriodType, allowPartialPeriodInterestCalculation, fundId, fundName,
|
||||
transactionProcessingStrategyCode, transactionProcessingStrategyName, graceOnPrincipalPayment,
|
||||
recurringMoratoriumOnPrincipalPeriods, graceOnInterestPayment, graceOnInterestCharged, charges, accountingType,
|
||||
includeInBorrowerCycle, useBorrowerCycle, startDate, closeDate, status, externalId, principalVariations,
|
||||
@@ -590,7 +590,7 @@ public class LoanProductData implements Serializable {
|
||||
final EnumOptionData interestType = LoanEnumerations.interestType(InterestMethod.DECLINING_BALANCE);
|
||||
final EnumOptionData interestCalculationPeriodType = LoanEnumerations
|
||||
.interestCalculationPeriodType(InterestCalculationPeriodMethod.SAME_AS_REPAYMENT_PERIOD);
|
||||
final Boolean allowPartialPeriodInterestCalcualtion = null;
|
||||
final Boolean allowPartialPeriodInterestCalculation = null;
|
||||
final Long fundId = null;
|
||||
final String fundName = null;
|
||||
final String transactionProcessingStrategyCode = null;
|
||||
@@ -677,7 +677,7 @@ public class LoanProductData implements Serializable {
|
||||
return new LoanProductData(id, name, shortName, description, currency, principal, minPrincipal, maxPrincipal, tolerance,
|
||||
numberOfRepayments, minNumberOfRepayments, maxNumberOfRepayments, repaymentEvery, interestRatePerPeriod,
|
||||
minInterestRatePerPeriod, maxInterestRatePerPeriod, annualInterestRate, repaymentFrequencyType, interestRateFrequencyType,
|
||||
amortizationType, interestType, interestCalculationPeriodType, allowPartialPeriodInterestCalcualtion, fundId, fundName,
|
||||
amortizationType, interestType, interestCalculationPeriodType, allowPartialPeriodInterestCalculation, fundId, fundName,
|
||||
transactionProcessingStrategyCode, transactionProcessingStrategyName, graceOnPrincipalPayment,
|
||||
recurringMoratoriumOnPrincipalPeriods, graceOnInterestPayment, graceOnInterestCharged, charges, accountingType,
|
||||
includeInBorrowerCycle, useBorrowerCycle, startDate, closeDate, status, externalId, principalVariationsForBorrowerCycle,
|
||||
@@ -732,7 +732,7 @@ public class LoanProductData implements Serializable {
|
||||
final EnumOptionData interestType = LoanEnumerations.interestType(InterestMethod.DECLINING_BALANCE);
|
||||
final EnumOptionData interestCalculationPeriodType = LoanEnumerations
|
||||
.interestCalculationPeriodType(InterestCalculationPeriodMethod.SAME_AS_REPAYMENT_PERIOD);
|
||||
final Boolean allowPartialPeriodInterestCalcualtion = null;
|
||||
final Boolean allowPartialPeriodInterestCalculation = null;
|
||||
final Long fundId = null;
|
||||
final String fundName = null;
|
||||
final String transactionProcessingStrategyCode = null;
|
||||
@@ -819,7 +819,7 @@ public class LoanProductData implements Serializable {
|
||||
return new LoanProductData(id, name, shortName, description, currency, principal, minPrincipal, maxPrincipal, tolerance,
|
||||
numberOfRepayments, minNumberOfRepayments, maxNumberOfRepayments, repaymentEvery, interestRatePerPeriod,
|
||||
minInterestRatePerPeriod, maxInterestRatePerPeriod, annualInterestRate, repaymentFrequencyType, interestRateFrequencyType,
|
||||
amortizationType, interestType, interestCalculationPeriodType, allowPartialPeriodInterestCalcualtion, fundId, fundName,
|
||||
amortizationType, interestType, interestCalculationPeriodType, allowPartialPeriodInterestCalculation, fundId, fundName,
|
||||
transactionProcessingStrategyCode, transactionProcessingStrategyName, graceOnPrincipalPayment,
|
||||
recurringMoratoriumOnPrincipalPeriods, graceOnInterestPayment, graceOnInterestCharged, charges, accountingType,
|
||||
includeInBorrowerCycle, useBorrowerCycle, startDate, closeDate, status, externalId, principalVariationsForBorrowerCycle,
|
||||
|
||||
+2
-2
@@ -213,7 +213,7 @@ public class LoanProductRelatedDetail {
|
||||
public static LoanProductRelatedDetail createFrom(final CurrencyData currencyData, final BigDecimal principal,
|
||||
final BigDecimal nominalInterestRatePerPeriod, final PeriodFrequencyType interestRatePeriodFrequencyType,
|
||||
final BigDecimal nominalAnnualInterestRate, final InterestMethod interestMethod,
|
||||
final InterestCalculationPeriodMethod interestCalculationPeriodMethod, final boolean allowPartialPeriodInterestCalcualtion,
|
||||
final InterestCalculationPeriodMethod interestCalculationPeriodMethod, final boolean allowPartialPeriodInterestCalculation,
|
||||
final Integer repaymentEvery, final PeriodFrequencyType repaymentPeriodFrequencyType, final Integer numberOfRepayments,
|
||||
final Integer graceOnPrincipalPayment, final Integer recurringMoratoriumOnPrincipalPeriods,
|
||||
final Integer graceOnInterestPayment, final Integer graceOnInterestCharged, final AmortizationMethod amortizationMethod,
|
||||
@@ -233,7 +233,7 @@ public class LoanProductRelatedDetail {
|
||||
|
||||
final MonetaryCurrency currency = MonetaryCurrency.fromCurrencyData(currencyData);
|
||||
return new LoanProductRelatedDetail(currency, principal, nominalInterestRatePerPeriod, interestRatePeriodFrequencyType,
|
||||
nominalAnnualInterestRate, interestMethod, interestCalculationPeriodMethod, allowPartialPeriodInterestCalcualtion,
|
||||
nominalAnnualInterestRate, interestMethod, interestCalculationPeriodMethod, allowPartialPeriodInterestCalculation,
|
||||
repaymentEvery, repaymentPeriodFrequencyType, numberOfRepayments, graceOnPrincipalPayment,
|
||||
recurringMoratoriumOnPrincipalPeriods, graceOnInterestPayment, graceOnInterestCharged, amortizationMethod,
|
||||
inArrearsTolerance, graceOnArrearsAgeing, daysInMonthType, daysInYearType, isInterestRecalculationEnabled,
|
||||
|
||||
Reference in New Issue
Block a user