Fix Loan Product swagger
This commit is contained in:
committed by
Arnold Gálovics
parent
0b7517a1ea
commit
6f86982346
+242
-232
@@ -21,7 +21,6 @@ package org.apache.fineract.portfolio.loanproduct.api;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDate;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import org.apache.fineract.accounting.producttoaccountmapping.data.ChargeToGLAccountMapper;
|
||||
@@ -40,6 +39,183 @@ final class LoanProductsApiResourceSwagger {
|
||||
|
||||
private PostLoanProductsRequest() {}
|
||||
|
||||
@Schema(example = "LP Accrual Accounting")
|
||||
public String name;
|
||||
@Schema(example = "LPAA")
|
||||
public String shortName;
|
||||
@Schema(example = "non-interest bearing product")
|
||||
public String description;
|
||||
@Schema(example = "10 July 2022")
|
||||
public String startDate;
|
||||
@Schema(example = "10 July 2022")
|
||||
public String closeDate;
|
||||
@Schema(example = "3")
|
||||
public Long fundId;
|
||||
|
||||
@Schema(example = "USD")
|
||||
public String currencyCode;
|
||||
@Schema(example = "2")
|
||||
public Integer digitsAfterDecimal;
|
||||
@Schema(example = "1")
|
||||
public Integer installmentAmountInMultiplesOf;
|
||||
@Schema(example = "1")
|
||||
public Integer inMultiplesOf;
|
||||
|
||||
// Terms
|
||||
@Schema(example = "5000.00")
|
||||
public Double minPrincipal;
|
||||
@Schema(example = "10000.00")
|
||||
public Double principal;
|
||||
@Schema(example = "15000.00")
|
||||
public Double maxPrincipal;
|
||||
|
||||
@Schema(example = "1")
|
||||
public Integer minNumberOfRepayments;
|
||||
@Schema(example = "1")
|
||||
public Integer maxNumberOfRepayments;
|
||||
@Schema(example = "12")
|
||||
public Integer numberOfRepayments;
|
||||
@Schema(example = "[]")
|
||||
public List<Integer> principalVariationsForBorrowerCycle;
|
||||
@Schema(example = "[]")
|
||||
public List<Integer> interestRateVariationsForBorrowerCycle;
|
||||
@Schema(example = "[]")
|
||||
public List<Integer> numberOfRepaymentVariationsForBorrowerCycle;
|
||||
@Schema(example = "0")
|
||||
public Double minInterestRatePerPeriod;
|
||||
@Schema(example = "1.75")
|
||||
public Double interestRatePerPeriod;
|
||||
@Schema(example = "23.4")
|
||||
public Double maxInterestRatePerPeriod;
|
||||
@Schema(example = "1")
|
||||
public Integer repaymentEvery;
|
||||
@Schema(example = "5.5")
|
||||
public BigDecimal fixedPrincipalPercentagePerInstallment;
|
||||
@Schema(example = "true")
|
||||
public Boolean canDefineInstallmentAmount;
|
||||
|
||||
// Settings
|
||||
@Schema(example = "false")
|
||||
public Boolean includeInBorrowerCycle;
|
||||
@Schema(example = "false")
|
||||
public Boolean useBorrowerCycle;
|
||||
@Schema(example = "2")
|
||||
public Integer repaymentFrequencyType;
|
||||
@Schema(example = "2")
|
||||
public Integer interestRateFrequencyType;
|
||||
@Schema(example = "1")
|
||||
public Integer amortizationType;
|
||||
@Schema(example = "0")
|
||||
public Integer interestType;
|
||||
@Schema(example = "1")
|
||||
public Integer interestCalculationPeriodType;
|
||||
@Schema(example = "1")
|
||||
public Long transactionProcessingStrategyId;
|
||||
@Schema(example = "false")
|
||||
public Boolean isLinkedToFloatingInterestRates;
|
||||
@Schema(example = "false")
|
||||
public Boolean allowVariableInstallments;
|
||||
@Schema(example = "30")
|
||||
public Integer minimumDaysBetweenDisbursalAndFirstRepayment;
|
||||
@Schema(example = "true")
|
||||
public Boolean allowApprovedDisbursedAmountsOverApplied;
|
||||
@Schema(example = "percentage")
|
||||
public String overAppliedCalculationType;
|
||||
@Schema(example = "50")
|
||||
public Integer overAppliedNumber;
|
||||
@Schema(example = "1")
|
||||
public Integer daysInMonthType;
|
||||
@Schema(example = "1")
|
||||
public Integer daysInYearType;
|
||||
@Schema(example = "true")
|
||||
public Boolean allowPartialPeriodInterestCalcualtion;
|
||||
@Schema(example = "179")
|
||||
public Integer overdueDaysForNPA;
|
||||
@Schema(example = "3")
|
||||
public Integer graceOnPrincipalPayment;
|
||||
@Schema(example = "3")
|
||||
public Integer graceOnInterestPayment;
|
||||
@Schema(example = "90")
|
||||
public Integer inArrearsTolerance;
|
||||
@Schema(example = "3")
|
||||
public Integer graceOnArrearsAgeing;
|
||||
@Schema(example = "false")
|
||||
public Boolean accountMovesOutOfNPAOnlyOnArrearsCompletion;
|
||||
@Schema(example = "false")
|
||||
public Boolean isEqualAmortization;
|
||||
@Schema(example = "false")
|
||||
public Boolean canUseForTopup;
|
||||
@Schema(example = "false")
|
||||
public Boolean holdGuaranteeFunds;
|
||||
|
||||
// Interest Recalculation
|
||||
@Schema(example = "false")
|
||||
public Boolean isInterestRecalculationEnabled;
|
||||
@Schema(example = "1")
|
||||
public Integer interestRecalculationCompoundingMethod;
|
||||
@Schema(example = "2")
|
||||
public Integer rescheduleStrategyMethod;
|
||||
@Schema(example = "1")
|
||||
public Integer preClosureInterestCalculationStrategy;
|
||||
@Schema(example = "1")
|
||||
public Integer recalculationCompoundingFrequencyType;
|
||||
@Schema(example = "50")
|
||||
public Integer recalculationRestFrequencyType;
|
||||
|
||||
// Accounting
|
||||
@Schema(example = "3")
|
||||
public Integer accountingRule;
|
||||
@Schema(example = "4")
|
||||
public Long fundSourceAccountId;
|
||||
@Schema(example = "8")
|
||||
public Long loanPortfolioAccountId;
|
||||
@Schema(example = "9")
|
||||
public Long receivableInterestAccountId;
|
||||
@Schema(example = "11")
|
||||
public Long receivableFeeAccountId;
|
||||
@Schema(example = "10")
|
||||
public Long receivablePenaltyAccountId;
|
||||
@Schema(example = "34")
|
||||
public Long interestOnLoanAccountId;
|
||||
@Schema(example = "37")
|
||||
public Long incomeFromFeeAccountId;
|
||||
@Schema(example = "35")
|
||||
public Long incomeFromPenaltyAccountId;
|
||||
@Schema(example = "2")
|
||||
public Long overpaymentLiabilityAccountId;
|
||||
@Schema(example = "41")
|
||||
public Long writeOffAccountId;
|
||||
@Schema(example = "5")
|
||||
public Long transfersInSuspenseAccountId;
|
||||
@Schema(example = "15")
|
||||
public Long incomeFromRecoveryAccountId;
|
||||
@Schema(example = "48")
|
||||
public Long goodwillCreditAccountId;
|
||||
public List<GetLoanProductsProductIdResponse.GetLoanPaymentChannelToFundSourceMappings> paymentChannelToFundSourceMappings;
|
||||
public List<GetLoanProductsProductIdResponse.GetLoanFeeToIncomeAccountMappings> feeToIncomeAccountMappings;
|
||||
public List<ChargeToGLAccountMapper> penaltyToIncomeAccountMappings;
|
||||
|
||||
// Multi Disburse
|
||||
@Schema(example = "true")
|
||||
public Boolean multiDisburseLoan;
|
||||
@Schema(example = "50")
|
||||
public Integer principalThresholdForLastInstallment;
|
||||
@Schema(example = "true")
|
||||
public Boolean disallowExpectedDisbursements;
|
||||
@Schema(example = "3")
|
||||
public Integer maxTrancheCount;
|
||||
@Schema(example = "36000.00")
|
||||
public Double outstandingLoanBalance;
|
||||
|
||||
public List<ChargeData> charges;
|
||||
@Schema(example = "en_GB")
|
||||
public String locale;
|
||||
@Schema(example = "dd MMMM yyyy")
|
||||
public String dateFormat;
|
||||
|
||||
public AllowAttributeOverrides allowAttributeOverrides;
|
||||
public List<RateData> rates;
|
||||
|
||||
static final class AllowAttributeOverrides {
|
||||
|
||||
private AllowAttributeOverrides() {}
|
||||
@@ -62,12 +238,12 @@ final class LoanProductsApiResourceSwagger {
|
||||
public boolean graceOnArrearsAgeing;
|
||||
}
|
||||
|
||||
static final class ChargeId {
|
||||
static final class ChargeData {
|
||||
|
||||
private ChargeId() {}
|
||||
private ChargeData() {}
|
||||
|
||||
@Schema(example = "1")
|
||||
public Integer id;
|
||||
public Long id;
|
||||
}
|
||||
|
||||
static final class RateData {
|
||||
@@ -76,174 +252,16 @@ final class LoanProductsApiResourceSwagger {
|
||||
|
||||
@Schema(example = "1")
|
||||
public Long id;
|
||||
|
||||
@Schema(example = "some name")
|
||||
public String name;
|
||||
|
||||
@Schema(example = "20")
|
||||
public BigDecimal percentage;
|
||||
|
||||
@Schema(description = "Apply specific product using its id, code, and value.")
|
||||
public EnumOptionData productApply;
|
||||
|
||||
@Schema(example = "false")
|
||||
public boolean active;
|
||||
}
|
||||
|
||||
@Schema(example = "LP Accrual Accounting")
|
||||
public String name;
|
||||
@Schema(example = "LPAA")
|
||||
public String shortName;
|
||||
@Schema(example = "USD")
|
||||
public String currencyCode;
|
||||
@Schema(example = "en_GB")
|
||||
public String locale;
|
||||
@Schema(example = "2")
|
||||
public Integer digitsAfterDecimal;
|
||||
@Schema(example = "0")
|
||||
public Integer inMultiplesOf;
|
||||
@Schema(example = "100,000.00")
|
||||
public Double principal;
|
||||
@Schema(example = "12")
|
||||
public Integer numberOfRepayments;
|
||||
@Schema(example = "1")
|
||||
public Integer repaymentEvery;
|
||||
@Schema(example = "2")
|
||||
public Integer repaymentFrequencyType;
|
||||
@Schema(example = "1")
|
||||
public Integer transactionProcessingStrategyId;
|
||||
@Schema(example = "1.75")
|
||||
public Double interestRatePerPeriod;
|
||||
@Schema(example = "2")
|
||||
public Integer interestRateFrequencyType;
|
||||
@Schema(example = "1")
|
||||
public Integer amortizationType;
|
||||
@Schema(example = "5.5")
|
||||
public BigDecimal fixedPrincipalPercentagePerInstallment;
|
||||
@Schema(example = "0")
|
||||
public Integer interestType;
|
||||
@Schema(example = "1")
|
||||
public Integer interestCalculationPeriodType;
|
||||
@Schema(example = "1")
|
||||
public Integer daysInMonthType;
|
||||
@Schema(example = "1")
|
||||
public Integer daysInYearType;
|
||||
@Schema(example = "false")
|
||||
public Boolean isInterestRecalculationEnabled;
|
||||
@Schema(example = "3")
|
||||
public Integer accountingRule;
|
||||
@Schema(example = "4")
|
||||
public Integer fundSourceAccountId;
|
||||
@Schema(example = "8")
|
||||
public Integer loanPortfolioAccountId;
|
||||
@Schema(example = "9")
|
||||
public Integer receivableInterestAccountId;
|
||||
@Schema(example = "11")
|
||||
public Integer receivableFeeAccountId;
|
||||
@Schema(example = "10")
|
||||
public Integer receivablePenaltyAccountId;
|
||||
@Schema(example = "34")
|
||||
public Integer interestOnLoanAccountId;
|
||||
@Schema(example = "37")
|
||||
public Integer incomeFromFeeAccountId;
|
||||
@Schema(example = "35")
|
||||
public Integer incomeFromPenaltyAccountId;
|
||||
@Schema(example = "2")
|
||||
public Integer overpaymentLiabilityAccountId;
|
||||
@Schema(example = "41")
|
||||
public Integer writeOffAccountId;
|
||||
@Schema(example = "48")
|
||||
public Integer goodwillCreditAccountId;
|
||||
@Schema(example = "false")
|
||||
public Boolean includeInBorrowerCycle;
|
||||
@Schema(example = "false")
|
||||
public Boolean useBorrowerCycle;
|
||||
@Schema(example = "[]")
|
||||
public List<Integer> principalVariationsForBorrowerCycle;
|
||||
@Schema(example = "[]")
|
||||
public List<Integer> interestRateVariationsForBorrowerCycle;
|
||||
@Schema(example = "[]")
|
||||
public List<Integer> numberOfRepaymentVariationsForBorrowerCycle;
|
||||
@Schema(example = "true")
|
||||
public Boolean multiDisburseLoan;
|
||||
@Schema(example = "0")
|
||||
public Integer interestRecalculationCompoundingMethod;
|
||||
@Schema(example = "2")
|
||||
public Integer rescheduleStrategyMethod;
|
||||
@Schema(example = "1")
|
||||
public Integer preClosureInterestCalculationStrategy;
|
||||
@Schema(example = "false")
|
||||
public Boolean isLinkedToFloatingInterestRates;
|
||||
@Schema(example = "false")
|
||||
public Boolean allowVariableInstallments;
|
||||
@Schema(example = "non-interest bearing product")
|
||||
public String description;
|
||||
@Schema(example = "1")
|
||||
public Integer installmentAmountInMultiplesOf;
|
||||
@Schema(example = "5000.000000")
|
||||
public Double minPrincipal;
|
||||
@Schema(example = "15000.000000")
|
||||
public Double maxPrincipal;
|
||||
@Schema(example = "30")
|
||||
public Integer minimumDaysBetweenDisbursalAndFirstRepayment;
|
||||
@Schema(example = "true")
|
||||
public Boolean allowPartialPeriodInterestCalcualtion;
|
||||
@Schema(example = "true")
|
||||
public Boolean disallowExpectedDisbursements;
|
||||
@Schema(example = "true")
|
||||
public Boolean allowApprovedDisbursedAmountsOverApplied;
|
||||
@Schema(example = "percentage")
|
||||
public String overAppliedCalculationType;
|
||||
@Schema(example = "50")
|
||||
public Integer overAppliedNumber;
|
||||
@Schema(example = "true")
|
||||
public Boolean canDefineInstallmentAmount;
|
||||
@Schema(example = "50")
|
||||
public Integer principalThresholdForLastInstallment;
|
||||
@Schema(example = "50")
|
||||
public Integer recalculationRestFrequencyType;
|
||||
@Schema(example = "3")
|
||||
public Integer maxTrancheCount;
|
||||
@Schema(example = "36000.000000")
|
||||
public Double outstandingLoanBalance;
|
||||
@Schema(example = "dd MMMM yyyy")
|
||||
public String dateFormat;
|
||||
public Set<GetLoanProductsProductIdResponse.GetLoanPaymentChannelToFundSourceMappings> paymentChannelToFundSourceMappings;
|
||||
public Set<GetLoanProductsProductIdResponse.GetLoanFeeToIncomeAccountMappings> feeToIncomeAccountMappings;
|
||||
public Collection<ChargeToGLAccountMapper> penaltyToIncomeAccountMappings;
|
||||
public AllowAttributeOverrides allowAttributeOverrides;
|
||||
public List<ChargeId> charges;
|
||||
public List<RateData> rates;
|
||||
@Schema(example = "3")
|
||||
public Long fundId;
|
||||
@Schema(example = "10 July 2022")
|
||||
public String startDate;
|
||||
@Schema(example = "10 July 2022")
|
||||
public String closeDate;
|
||||
@Schema(example = "1")
|
||||
public Integer minNumberOfRepayments;
|
||||
@Schema(example = "1")
|
||||
public Integer maxNumberOfRepayments;
|
||||
@Schema(example = "0")
|
||||
public Double minInterestRatePerPeriod;
|
||||
@Schema(example = "0")
|
||||
public Double maxInterestRatePerPeriod;
|
||||
@Schema(example = "false")
|
||||
public Boolean isEqualAmortization;
|
||||
@Schema(example = "3")
|
||||
public Integer graceOnArrearsAgeing;
|
||||
@Schema(example = "179")
|
||||
public Integer overdueDaysForNPA;
|
||||
@Schema(example = "false")
|
||||
public Boolean accountMovesOutOfNPAOnlyOnArrearsCompletion;
|
||||
@Schema(example = "false")
|
||||
public Boolean canUseForTopup;
|
||||
@Schema(example = "false")
|
||||
public Boolean holdGuaranteeFunds;
|
||||
@Schema(example = "5")
|
||||
public Long transfersInSuspenseAccountId;
|
||||
@Schema(example = "15")
|
||||
public Long incomeFromRecoveryAccountId;
|
||||
}
|
||||
|
||||
@Schema(description = "PostLoanProductsResponse")
|
||||
@@ -252,7 +270,7 @@ final class LoanProductsApiResourceSwagger {
|
||||
private PostLoanProductsResponse() {}
|
||||
|
||||
@Schema(example = "3")
|
||||
public Integer resourceId;
|
||||
public Long resourceId;
|
||||
}
|
||||
|
||||
@Schema(description = "GetLoanProductsResponse")
|
||||
@@ -285,7 +303,7 @@ final class LoanProductsApiResourceSwagger {
|
||||
private GetLoanProductsRepaymentFrequencyType() {}
|
||||
|
||||
@Schema(example = "0")
|
||||
public Integer id;
|
||||
public Long id;
|
||||
@Schema(example = "repaymentFrequency.periodFrequencyType.days")
|
||||
public String code;
|
||||
@Schema(example = "Days")
|
||||
@@ -297,7 +315,7 @@ final class LoanProductsApiResourceSwagger {
|
||||
private GetLoanProductsInterestRateFrequencyType() {}
|
||||
|
||||
@Schema(example = "3")
|
||||
public Integer id;
|
||||
public Long id;
|
||||
@Schema(example = "interestRateFrequency.periodFrequencyType.years")
|
||||
public String code;
|
||||
@Schema(example = "Per year")
|
||||
@@ -309,7 +327,7 @@ final class LoanProductsApiResourceSwagger {
|
||||
private GetLoanProductsAmortizationType() {}
|
||||
|
||||
@Schema(example = "1")
|
||||
public Integer id;
|
||||
public Long id;
|
||||
@Schema(example = "amortizationType.equal.installments")
|
||||
public String code;
|
||||
@Schema(example = "Equal installments")
|
||||
@@ -321,7 +339,7 @@ final class LoanProductsApiResourceSwagger {
|
||||
private GetLoanProductsInterestType() {}
|
||||
|
||||
@Schema(example = "1")
|
||||
public Integer id;
|
||||
public Long id;
|
||||
@Schema(example = "interestType.flat")
|
||||
public String code;
|
||||
@Schema(example = "Flat")
|
||||
@@ -333,7 +351,7 @@ final class LoanProductsApiResourceSwagger {
|
||||
private GetLoansProductsInterestCalculationPeriodType() {}
|
||||
|
||||
@Schema(example = "1")
|
||||
public Integer id;
|
||||
public Long id;
|
||||
@Schema(example = "interestCalculationPeriodType.same.as.repayment.period")
|
||||
public String code;
|
||||
@Schema(example = "Same as repayment period")
|
||||
@@ -345,7 +363,7 @@ final class LoanProductsApiResourceSwagger {
|
||||
private GetLoansProductsDaysInMonthType() {}
|
||||
|
||||
@Schema(example = "30")
|
||||
public Integer id;
|
||||
public Long id;
|
||||
@Schema(example = "DaysInMonthType.days360")
|
||||
public String code;
|
||||
@Schema(example = "30 Days")
|
||||
@@ -357,7 +375,7 @@ final class LoanProductsApiResourceSwagger {
|
||||
private GetLoansProductsDaysInYearType() {}
|
||||
|
||||
@Schema(example = "360")
|
||||
public Integer id;
|
||||
public Long id;
|
||||
@Schema(example = "DaysInYearType.days360")
|
||||
public String code;
|
||||
@Schema(example = "360 Days")
|
||||
@@ -373,7 +391,7 @@ final class LoanProductsApiResourceSwagger {
|
||||
private GetLoanProductsInterestRecalculationCompoundingType() {}
|
||||
|
||||
@Schema(example = "2")
|
||||
public Integer id;
|
||||
public Long id;
|
||||
@Schema(example = "interestRecalculationCompoundingMethod.fee")
|
||||
public String code;
|
||||
@Schema(example = "Fee")
|
||||
@@ -385,7 +403,7 @@ final class LoanProductsApiResourceSwagger {
|
||||
private GetLoanProductsInterestRecalculationCompoundingFrequencyType() {}
|
||||
|
||||
@Schema(example = "1")
|
||||
public Integer id;
|
||||
public Long id;
|
||||
@Schema(example = "interestRecalculationFrequencyType.same.as.repayment.period")
|
||||
public String code;
|
||||
@Schema(example = "Same as repayment period")
|
||||
@@ -397,7 +415,7 @@ final class LoanProductsApiResourceSwagger {
|
||||
private GetLoanProductsRescheduleStrategyType() {}
|
||||
|
||||
@Schema(example = "2")
|
||||
public Integer id;
|
||||
public Long id;
|
||||
@Schema(example = "loanRescheduleStrategyMethod.reduce.number.of.installments")
|
||||
public String code;
|
||||
@Schema(example = "Reduce number of installments")
|
||||
@@ -409,7 +427,7 @@ final class LoanProductsApiResourceSwagger {
|
||||
private GetLoanProductsPreClosureInterestCalculationStrategy() {}
|
||||
|
||||
@Schema(example = "1")
|
||||
public Integer id;
|
||||
public Long id;
|
||||
@Schema(example = "loanPreClosureInterestCalculationStrategy.tillPreClosureDate")
|
||||
public String code;
|
||||
@Schema(example = "Till preclose Date")
|
||||
@@ -417,9 +435,9 @@ final class LoanProductsApiResourceSwagger {
|
||||
}
|
||||
|
||||
@Schema(example = "3")
|
||||
public Integer id;
|
||||
public Long id;
|
||||
@Schema(example = "1")
|
||||
public Integer productId;
|
||||
public Long productId;
|
||||
public GetLoanProductsInterestRecalculationData.GetLoanProductsInterestRecalculationCompoundingType interestRecalculationCompoundingType;
|
||||
public GetLoanProductsInterestRecalculationCompoundingFrequencyType interestRecalculationCompoundingFrequencyType;
|
||||
public GetLoanProductsInterestRecalculationData.GetLoanProductsRescheduleStrategyType rescheduleStrategyType;
|
||||
@@ -434,7 +452,7 @@ final class LoanProductsApiResourceSwagger {
|
||||
private GetLoanProductsAccountingRule() {}
|
||||
|
||||
@Schema(example = "2")
|
||||
public Integer id;
|
||||
public Long id;
|
||||
@Schema(example = "accountingRuleType.cash")
|
||||
public String code;
|
||||
@Schema(example = "CASH BASED")
|
||||
@@ -442,7 +460,7 @@ final class LoanProductsApiResourceSwagger {
|
||||
}
|
||||
|
||||
@Schema(example = "1")
|
||||
public Integer id;
|
||||
public Long id;
|
||||
@Schema(example = "personal loan product")
|
||||
public String name;
|
||||
@Schema(example = "pe1")
|
||||
@@ -484,7 +502,7 @@ final class LoanProductsApiResourceSwagger {
|
||||
public GetLoanProductsInterestType interestType;
|
||||
public GetLoansProductsInterestCalculationPeriodType interestCalculationPeriodType;
|
||||
@Schema(example = "1")
|
||||
public Integer transactionProcessingStrategyId;
|
||||
public Long transactionProcessingStrategyId;
|
||||
@Schema(example = "Mifos style")
|
||||
public String transactionProcessingStrategyName;
|
||||
@Schema(example = "[]")
|
||||
@@ -533,7 +551,7 @@ final class LoanProductsApiResourceSwagger {
|
||||
private GetLoanProductsRepaymentTemplateFrequencyType() {}
|
||||
|
||||
@Schema(example = "2")
|
||||
public Integer id;
|
||||
public Long id;
|
||||
@Schema(example = "repaymentFrequency.periodFrequencyType.months")
|
||||
public String code;
|
||||
@Schema(example = "Months")
|
||||
@@ -545,7 +563,7 @@ final class LoanProductsApiResourceSwagger {
|
||||
private GetLoanProductsInterestRateTemplateFrequencyType() {}
|
||||
|
||||
@Schema(example = "2")
|
||||
public Integer id;
|
||||
public Long id;
|
||||
@Schema(example = "interestRateFrequency.periodFrequencyType.months")
|
||||
public String code;
|
||||
@Schema(example = "Per month")
|
||||
@@ -557,7 +575,7 @@ final class LoanProductsApiResourceSwagger {
|
||||
private GetLoanProductsInterestTemplateType() {}
|
||||
|
||||
@Schema(example = "0")
|
||||
public Integer id;
|
||||
public Long id;
|
||||
@Schema(example = "interestType.declining.balance")
|
||||
public String code;
|
||||
@Schema(example = "Declining Balance")
|
||||
@@ -569,7 +587,7 @@ final class LoanProductsApiResourceSwagger {
|
||||
private GetLoanProductsAccountingRule() {}
|
||||
|
||||
@Schema(example = "1")
|
||||
public Integer id;
|
||||
public Long id;
|
||||
@Schema(example = "accountingRuleType.none")
|
||||
public String code;
|
||||
@Schema(example = "NONE")
|
||||
@@ -581,7 +599,7 @@ final class LoanProductsApiResourceSwagger {
|
||||
private GetLoansProductsDaysInMonthTemplateType() {}
|
||||
|
||||
@Schema(example = "1")
|
||||
public Integer id;
|
||||
public Long id;
|
||||
@Schema(example = "DaysInMonthType.actual")
|
||||
public String code;
|
||||
@Schema(example = "Actual")
|
||||
@@ -593,7 +611,7 @@ final class LoanProductsApiResourceSwagger {
|
||||
private GetLoanProductsDaysInYearTemplateType() {}
|
||||
|
||||
@Schema(example = "1")
|
||||
public Integer id;
|
||||
public Long id;
|
||||
@Schema(example = "DaysInYearType.actual")
|
||||
public String code;
|
||||
@Schema(example = "Actual")
|
||||
@@ -609,7 +627,7 @@ final class LoanProductsApiResourceSwagger {
|
||||
private GetLoanProductsInterestRecalculationCompoundingType() {}
|
||||
|
||||
@Schema(example = "0")
|
||||
public Integer id;
|
||||
public Long id;
|
||||
@Schema(example = "interestRecalculationCompoundingMethod.none")
|
||||
public String code;
|
||||
@Schema(example = "None")
|
||||
@@ -621,7 +639,7 @@ final class LoanProductsApiResourceSwagger {
|
||||
private GetLoanProductsRescheduleStrategyType() {}
|
||||
|
||||
@Schema(example = "3")
|
||||
public Integer id;
|
||||
public Long id;
|
||||
@Schema(example = "loanRescheduleStrategyMethod.reduce.emi.amount")
|
||||
public String code;
|
||||
@Schema(example = "Reduce EMI amount")
|
||||
@@ -638,7 +656,7 @@ final class LoanProductsApiResourceSwagger {
|
||||
private GetLoanProductsPaymentTypeOptions() {}
|
||||
|
||||
@Schema(example = "10")
|
||||
public Integer id;
|
||||
public Long id;
|
||||
@Schema(example = "check")
|
||||
public String name;
|
||||
@Schema(example = "1")
|
||||
@@ -668,7 +686,7 @@ final class LoanProductsApiResourceSwagger {
|
||||
private GetLoanProductsTransactionProcessingStrategyOptions() {}
|
||||
|
||||
@Schema(example = "1")
|
||||
public Integer id;
|
||||
public Long id;
|
||||
@Schema(example = "mifos-standard-strategy")
|
||||
public String code;
|
||||
@Schema(example = "Penalties, Fees, Interest, Principal order")
|
||||
@@ -684,7 +702,7 @@ final class LoanProductsApiResourceSwagger {
|
||||
private GetLoanChargeTimeType() {}
|
||||
|
||||
@Schema(example = "1")
|
||||
public Integer id;
|
||||
public Long id;
|
||||
@Schema(example = "chargeTimeType.disbursement")
|
||||
public String code;
|
||||
@Schema(example = "Disbursement")
|
||||
@@ -696,7 +714,7 @@ final class LoanProductsApiResourceSwagger {
|
||||
private GetLoanProductsChargeAppliesTo() {}
|
||||
|
||||
@Schema(example = "1 ")
|
||||
public Integer id;
|
||||
public Long id;
|
||||
@Schema(example = "chargeAppliesTo.loan")
|
||||
public String code;
|
||||
@Schema(example = "Loan")
|
||||
@@ -708,7 +726,7 @@ final class LoanProductsApiResourceSwagger {
|
||||
private GetLoanChargeCalculationType() {}
|
||||
|
||||
@Schema(example = "1")
|
||||
public Integer id;
|
||||
public Long id;
|
||||
@Schema(example = "chargeCalculationType.flat")
|
||||
public String code;
|
||||
@Schema(example = "Flat")
|
||||
@@ -720,7 +738,7 @@ final class LoanProductsApiResourceSwagger {
|
||||
private GetLoansChargePaymentMode() {}
|
||||
|
||||
@Schema(example = "0")
|
||||
public Integer id;
|
||||
public Long id;
|
||||
@Schema(example = "chargepaymentmode.regular")
|
||||
public String code;
|
||||
@Schema(example = "Regular")
|
||||
@@ -728,7 +746,7 @@ final class LoanProductsApiResourceSwagger {
|
||||
}
|
||||
|
||||
@Schema(example = "5")
|
||||
public Integer id;
|
||||
public Long id;
|
||||
@Schema(example = "des charges")
|
||||
public String name;
|
||||
@Schema(example = "true")
|
||||
@@ -757,7 +775,7 @@ final class LoanProductsApiResourceSwagger {
|
||||
private GetLoanProductsLiabilityType() {}
|
||||
|
||||
@Schema(example = "2")
|
||||
public Integer id;
|
||||
public Long id;
|
||||
@Schema(example = "accountType.liability")
|
||||
public String code;
|
||||
@Schema(example = "LIABILITY")
|
||||
@@ -769,7 +787,7 @@ final class LoanProductsApiResourceSwagger {
|
||||
private GetLoanProductsLiabilityUsage() {}
|
||||
|
||||
@Schema(example = "1")
|
||||
public Integer id;
|
||||
public Long id;
|
||||
@Schema(example = "accountUsage.detail")
|
||||
public String code;
|
||||
@Schema(example = "DETAIL")
|
||||
@@ -781,11 +799,11 @@ final class LoanProductsApiResourceSwagger {
|
||||
private GetLoanProductsLiabilityTagId() {}
|
||||
|
||||
@Schema(example = "0")
|
||||
public Integer id;
|
||||
public Long id;
|
||||
}
|
||||
|
||||
@Schema(example = "11")
|
||||
public Integer id;
|
||||
public Long id;
|
||||
@Schema(example = "over payment")
|
||||
public String name;
|
||||
@Schema(example = "13")
|
||||
@@ -808,7 +826,7 @@ final class LoanProductsApiResourceSwagger {
|
||||
private GetLoanProductsAssetAccountOptions() {}
|
||||
|
||||
@Schema(example = "2")
|
||||
public Integer id;
|
||||
public Long id;
|
||||
@Schema(example = "Loan portfolio")
|
||||
public String name;
|
||||
@Schema(example = "02")
|
||||
@@ -835,7 +853,7 @@ final class LoanProductsApiResourceSwagger {
|
||||
private GetLoanProductsExpenseType() {}
|
||||
|
||||
@Schema(example = "5")
|
||||
public Integer id;
|
||||
public Long id;
|
||||
@Schema(example = "accountType.expense")
|
||||
public String code;
|
||||
@Schema(example = "EXPENSE")
|
||||
@@ -843,7 +861,7 @@ final class LoanProductsApiResourceSwagger {
|
||||
}
|
||||
|
||||
@Schema(example = "10")
|
||||
public Integer id;
|
||||
public Long id;
|
||||
@Schema(example = "loans written off 2")
|
||||
public String name;
|
||||
@Schema(example = "12")
|
||||
@@ -870,7 +888,7 @@ final class LoanProductsApiResourceSwagger {
|
||||
private GetLoanProductsIncomeType() {}
|
||||
|
||||
@Schema(example = "4")
|
||||
public Integer id;
|
||||
public Long id;
|
||||
@Schema(example = "accountType.income")
|
||||
public String code;
|
||||
@Schema(example = "INCOME")
|
||||
@@ -878,7 +896,7 @@ final class LoanProductsApiResourceSwagger {
|
||||
}
|
||||
|
||||
@Schema(example = "4")
|
||||
public Integer id;
|
||||
public Long id;
|
||||
@Schema(example = "income from interest")
|
||||
public String name;
|
||||
@Schema(example = "04")
|
||||
@@ -907,7 +925,7 @@ final class LoanProductsApiResourceSwagger {
|
||||
private GetLoanProductsValueConditionTypeOptions() {}
|
||||
|
||||
@Schema(example = "2")
|
||||
public Integer id;
|
||||
public Long id;
|
||||
@Schema(example = "mifos-standard-strategyLoanProductValueConditionType.equal")
|
||||
public String code;
|
||||
@Schema(example = "equals")
|
||||
@@ -966,7 +984,7 @@ final class LoanProductsApiResourceSwagger {
|
||||
private GetLoanProductsInterestRateFrequencyType() {}
|
||||
|
||||
@Schema(example = "2")
|
||||
public Integer id;
|
||||
public Long id;
|
||||
@Schema(example = "interestRateFrequency.periodFrequencyType.months")
|
||||
public String code;
|
||||
@Schema(example = "Per month")
|
||||
@@ -982,7 +1000,7 @@ final class LoanProductsApiResourceSwagger {
|
||||
private GetLoanProductsParamType() {}
|
||||
|
||||
@Schema(example = "1")
|
||||
public Integer id;
|
||||
public Long id;
|
||||
@Schema(example = "LoanProductParamType.principal")
|
||||
public String code;
|
||||
@Schema(example = "principal")
|
||||
@@ -994,7 +1012,7 @@ final class LoanProductsApiResourceSwagger {
|
||||
private GetLoanProductsValueConditionType() {}
|
||||
|
||||
@Schema(example = "2")
|
||||
public Integer id;
|
||||
public Long id;
|
||||
@Schema(example = "LoanProductValueConditionType.equal")
|
||||
public String code;
|
||||
@Schema(example = "equals")
|
||||
@@ -1002,7 +1020,7 @@ final class LoanProductsApiResourceSwagger {
|
||||
}
|
||||
|
||||
@Schema(example = "21")
|
||||
public Integer id;
|
||||
public Long id;
|
||||
@Schema(example = "1")
|
||||
public Integer borrowerCycleNumber;
|
||||
public GetLoanProductsParamType paramType;
|
||||
@@ -1024,7 +1042,7 @@ final class LoanProductsApiResourceSwagger {
|
||||
private GetLoanFundSourceAccount() {}
|
||||
|
||||
@Schema(example = "1")
|
||||
public Integer id;
|
||||
public Long id;
|
||||
@Schema(example = "fund source")
|
||||
public String name;
|
||||
@Schema(example = "01")
|
||||
@@ -1036,7 +1054,7 @@ final class LoanProductsApiResourceSwagger {
|
||||
private GetLoanPortfolioAccount() {}
|
||||
|
||||
@Schema(example = "2")
|
||||
public Integer id;
|
||||
public Long id;
|
||||
@Schema(example = "Loan portfolio")
|
||||
public String name;
|
||||
@Schema(example = "02")
|
||||
@@ -1048,7 +1066,7 @@ final class LoanProductsApiResourceSwagger {
|
||||
private GetLoanTransfersInSuspenseAccount() {}
|
||||
|
||||
@Schema(example = "3")
|
||||
public Integer id;
|
||||
public Long id;
|
||||
@Schema(example = "transfers")
|
||||
public String name;
|
||||
@Schema(example = "03")
|
||||
@@ -1060,7 +1078,7 @@ final class LoanProductsApiResourceSwagger {
|
||||
private GetLoanInterestOnLoanAccount() {}
|
||||
|
||||
@Schema(example = "4")
|
||||
public Integer id;
|
||||
public Long id;
|
||||
@Schema(example = "income from interest")
|
||||
public String name;
|
||||
@Schema(example = "04")
|
||||
@@ -1072,7 +1090,7 @@ final class LoanProductsApiResourceSwagger {
|
||||
private GetLoanIncomeFromFeeAccount() {}
|
||||
|
||||
@Schema(example = "8")
|
||||
public Integer id;
|
||||
public Long id;
|
||||
@Schema(example = "income from fees 2")
|
||||
public String name;
|
||||
@Schema(example = "10")
|
||||
@@ -1084,7 +1102,7 @@ final class LoanProductsApiResourceSwagger {
|
||||
private GetLoanIncomeFromPenaltyAccount() {}
|
||||
|
||||
@Schema(example = "9")
|
||||
public Integer id;
|
||||
public Long id;
|
||||
@Schema(example = "income from penalities 2")
|
||||
public String name;
|
||||
@Schema(example = "11")
|
||||
@@ -1096,7 +1114,7 @@ final class LoanProductsApiResourceSwagger {
|
||||
private GetLoanWriteOffAccount() {}
|
||||
|
||||
@Schema(example = "10")
|
||||
public Integer id;
|
||||
public Long id;
|
||||
@Schema(example = "loans written off 2")
|
||||
public String name;
|
||||
@Schema(example = "12")
|
||||
@@ -1108,7 +1126,7 @@ final class LoanProductsApiResourceSwagger {
|
||||
private GetLoanOverpaymentLiabilityAccount() {}
|
||||
|
||||
@Schema(example = "11")
|
||||
public Integer id;
|
||||
public Long id;
|
||||
@Schema(example = "over payment")
|
||||
public String name;
|
||||
@Schema(example = "13")
|
||||
@@ -1129,18 +1147,10 @@ final class LoanProductsApiResourceSwagger {
|
||||
|
||||
private GetLoanPaymentChannelToFundSourceMappings() {}
|
||||
|
||||
static final class GetLoanPaymentType {
|
||||
|
||||
private GetLoanPaymentType() {}
|
||||
|
||||
@Schema(example = "10")
|
||||
public Integer id;
|
||||
@Schema(example = "check")
|
||||
public String name;
|
||||
}
|
||||
|
||||
public GetLoanPaymentType paymentType;
|
||||
public GetLoanAccountingMappings.GetLoanFundSourceAccount fundSourceAccount;
|
||||
@Schema(example = "10")
|
||||
public Long paymentTypeId;
|
||||
@Schema(example = "39")
|
||||
public Long fundSourceAccountId;
|
||||
}
|
||||
|
||||
static final class GetLoanFeeToIncomeAccountMappings {
|
||||
@@ -1152,7 +1162,7 @@ final class LoanProductsApiResourceSwagger {
|
||||
private GetLoanCharge() {}
|
||||
|
||||
@Schema(example = "1")
|
||||
public Integer id;
|
||||
public Long id;
|
||||
@Schema(example = "flat install")
|
||||
public String name;
|
||||
@Schema(example = "false")
|
||||
@@ -1166,7 +1176,7 @@ final class LoanProductsApiResourceSwagger {
|
||||
}
|
||||
|
||||
@Schema(example = "11")
|
||||
public Integer id;
|
||||
public Long id;
|
||||
@Schema(example = "advanced accounting")
|
||||
public String name;
|
||||
@Schema(example = "ad11")
|
||||
@@ -1200,7 +1210,7 @@ final class LoanProductsApiResourceSwagger {
|
||||
public GetLoanProductsTemplateResponse.GetLoanProductsInterestTemplateType interestType;
|
||||
public GetLoanProductsResponse.GetLoansProductsInterestCalculationPeriodType interestCalculationPeriodType;
|
||||
@Schema(example = "1")
|
||||
public Integer transactionProcessingStrategyId;
|
||||
public Long transactionProcessingStrategyId;
|
||||
@Schema(example = "Mifos style")
|
||||
public String transactionProcessingStrategyName;
|
||||
@Schema(example = "[]")
|
||||
@@ -1254,7 +1264,7 @@ final class LoanProductsApiResourceSwagger {
|
||||
}
|
||||
|
||||
@Schema(example = "1")
|
||||
public Integer resourceId;
|
||||
public Long resourceId;
|
||||
public PutLoanChanges changes;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user