From c5b12c489c9fa71e266cfc7d46453376557f31c5 Mon Sep 17 00:00:00 2001 From: peter-kovacs-dpc <79446653+peter-kovacs-dpc@users.noreply.github.com> Date: Fri, 1 Jul 2022 16:43:17 +0200 Subject: [PATCH] swagger schema extended (#2397) swagger schema extended --- .../api/LoanProductsApiResourceSwagger.java | 34 +++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanproduct/api/LoanProductsApiResourceSwagger.java b/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanproduct/api/LoanProductsApiResourceSwagger.java index 28ead7a7b..c2ab61b4b 100644 --- a/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanproduct/api/LoanProductsApiResourceSwagger.java +++ b/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanproduct/api/LoanProductsApiResourceSwagger.java @@ -6,9 +6,9 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + *

* http://www.apache.org/licenses/LICENSE-2.0 - * + *

* Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -191,6 +191,36 @@ final class LoanProductsApiResourceSwagger { public AllowAttributeOverrides allowAttributeOverrides; public List charges; public List 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")