Skip to content

Commit

Permalink
FINERACT-2081: Add missing fields to Loan product swagger
Browse files Browse the repository at this point in the history
  • Loading branch information
adamsaghy committed Jul 19, 2024
1 parent 905a733 commit e4c857d
Showing 1 changed file with 63 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,12 @@ private PostLoanProductsRequest() {}
public Integer recalculationCompoundingFrequencyInterval;
@Schema(example = "1")
public Integer recalculationCompoundingFrequencyOnDayType;
@Schema(example = "false")
public Boolean isArrearsBasedOnOriginalSchedule;
@Schema(example = "false")
public Boolean isCompoundingToBePostedAsTransaction;
@Schema(example = "false")
public Boolean allowCompoundingOnEod;

// Accounting
@Schema(example = "3")
Expand Down Expand Up @@ -509,6 +515,10 @@ private GetLoanProductsPreClosureInterestCalculationStrategy() {}
public GetLoanProductsPreClosureInterestCalculationStrategy preClosureInterestCalculationStrategy;
@Schema(example = "true")
public Boolean isArrearsBasedOnOriginalSchedule;
@Schema(example = "true")
public Boolean isCompoundingToBePostedAsTransaction;
@Schema(example = "true")
public Boolean allowCompoundingOnEod;
@Schema(example = "1")
public Integer recalculationCompoundingFrequencyInterval;
@Schema(example = "1")
Expand Down Expand Up @@ -1146,13 +1156,22 @@ private GetGlAccountMapping() {}
public GetGlAccountMapping loanPortfolioAccount;
public GetGlAccountMapping transfersInSuspenseAccount;
public GetGlAccountMapping receivableInterestAccount;
public GetGlAccountMapping receivableFeeAccount;
public GetGlAccountMapping receivablePenaltyAccount;
public GetGlAccountMapping interestOnLoanAccount;
public GetGlAccountMapping incomeFromFeeAccount;
public GetGlAccountMapping incomeFromPenaltyAccount;
public GetGlAccountMapping incomeFromRecoveryAccount;
public GetGlAccountMapping incomeFromChargeOffFeesAccount;
public GetGlAccountMapping incomeFromChargeOffInterestAccount;
public GetGlAccountMapping incomeFromChargeOffPenaltyAccount;
public GetGlAccountMapping incomeFromGoodwillCreditInterestAccount;
public GetGlAccountMapping incomeFromGoodwillCreditFeesAccount;
public GetGlAccountMapping incomeFromGoodwillCreditPenaltyAccount;
public GetGlAccountMapping writeOffAccount;
public GetGlAccountMapping goodwillCreditAccount;
public GetGlAccountMapping chargeOffExpenseAccount;
public GetGlAccountMapping chargeOffFraudExpenseAccount;
public GetGlAccountMapping overpaymentLiabilityAccount;
}

Expand Down Expand Up @@ -1198,6 +1217,8 @@ private GetLoanCharge() {}
public String name;
@Schema(example = "ad11")
public String shortName;
@Schema(example = "sample description")
public String description;
@Schema(example = "true")
public Boolean includeInBorrowerCycle;
@Schema(example = "true")
Expand All @@ -1213,21 +1234,41 @@ private GetLoanCharge() {}
public Double maxPrincipal;
@Schema(example = "7")
public Integer numberOfRepayments;
@Schema(example = "5")
public Integer minNumberOfRepayments;
@Schema(example = "10")
public Integer maxNumberOfRepayments;
@Schema(example = "7")
public Integer repaymentEvery;
public GetLoanProductsResponse.GetLoanProductsRepaymentFrequencyType repaymentFrequencyType;
@Schema(example = "10")
public Integer fixedLength;
@Schema(example = "5.000000")
public Double interestRatePerPeriod;
@Schema(example = "0.000000")
public Double minInterestRatePerPeriod;
@Schema(example = "10.000000")
public Double maxInterestRatePerPeriod;
public GetLoanProductsProductIdResponse.GetLoanProductsInterestRateFrequencyType interestRateFrequencyType;
@Schema(example = "60.000000")
public Double annualInterestRate;
@Schema(example = "false")
public Boolean isLinkedToFloatingInterestRates;
@Schema(example = "false")
public Boolean isFloatingInterestRateCalculationAllowed;
@Schema(example = "false")
public Boolean allowVariableInstallments;
@Schema(example = "0")
public Integer minimumGap;
@Schema(example = "1")
public Integer maximumGap;
public GetLoanProductsResponse.GetLoanProductsAmortizationType amortizationType;
@Schema(example = "5.5")
public BigDecimal fixedPrincipalPercentagePerInstallment;
public GetLoanProductsTemplateResponse.GetLoanProductsInterestTemplateType interestType;
public GetLoanProductsResponse.GetLoansProductsInterestCalculationPeriodType interestCalculationPeriodType;
@Schema(example = "false")
public Boolean allowPartialPeriodInterestCalculation;
@Schema(example = "mifos-standard-strategy")
public String transactionProcessingStrategyCode;
@Schema(example = "Mifos style")
Expand All @@ -1236,6 +1277,11 @@ private GetLoanCharge() {}
public List<AdvancedPaymentData> paymentAllocation;
@Schema(example = "[]")
public List<CreditAllocationData> creditAllocation;
@Schema(example = "false")
public Boolean isInterestRecalculationEnabled;
public GetLoanProductsResponse.GetLoanProductsInterestRecalculationData interestRecalculationData;
@Schema(example = "false")
public Boolean canDefineInstallmentAmount;
@Schema(example = "[]")
public List<Integer> charges;
public Set<GetLoanProductsPrincipalVariationsForBorrowerCycle> productsPrincipalVariationsForBorrowerCycle;
Expand All @@ -1244,24 +1290,33 @@ private GetLoanCharge() {}
@Schema(example = "[]")
public List<Integer> numberOfRepaymentVariationsForBorrowerCycle;
public GetLoanProductsResponse.GetLoanProductsAccountingRule accountingRule;
@Schema(example = "false")
public Boolean canUseForTopup;
public GetLoanAccountingMappings accountingMappings;
public Set<GetLoanPaymentChannelToFundSourceMappings> paymentChannelToFundSourceMappings;
public Set<GetLoanFeeToIncomeAccountMappings> feeToIncomeAccountMappings;
@Schema(example = "false")
public Boolean isRatesEnabled;
@Schema(example = "true")
public Boolean multiDisburseLoan;
@Schema(example = "3")
public Integer maxTrancheCount;
@Schema(example = "36000.000000")
public Double outstandingLoanBalance;
@Schema(example = "true")
public Boolean disallowExpectedDisbursements;
@Schema(example = "true")
public Boolean allowApprovedDisbursedAmountsOverApplied;
@Schema(example = "flat")
public String overAppliedCalculationType;
@Schema(example = "2")
public Integer overdueDaysForNPA;
@Schema(example = "50")
public Integer principalThresholdForLastInstalment;
public GetDelinquencyBucketsResponse delinquencyBucket;
public List<GetDelinquencyBucketsResponse> delinquencyBucketOptions;
@Schema(example = "false")
public Boolean enableInstallmentLevelDelinquency;
@Schema(example = "true")
public Boolean disallowExpectedDisbursements;
@Schema(example = "3")
public Integer dueDaysForRepaymentEvent;
@Schema(example = "3")
Expand Down Expand Up @@ -1438,6 +1493,12 @@ private PutLoanProductsProductIdRequest() {}
public Integer recalculationCompoundingFrequencyInterval;
@Schema(example = "1")
public Integer recalculationCompoundingFrequencyOnDayType;
@Schema(example = "false")
public Boolean isArrearsBasedOnOriginalSchedule;
@Schema(example = "false")
public Boolean isCompoundingToBePostedAsTransaction;
@Schema(example = "false")
public Boolean allowCompoundingOnEod;

// Accounting
@Schema(example = "3")
Expand Down

0 comments on commit e4c857d

Please sign in to comment.