You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fineract.apache.org by ar...@apache.org on 2022/09/21 12:55:56 UTC

[fineract] branch develop updated: FINERACT-1724: Swagger fixes for updating a loan application

This is an automated email from the ASF dual-hosted git repository.

arnold pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/fineract.git


The following commit(s) were added to refs/heads/develop by this push:
     new 0f4d23289 FINERACT-1724: Swagger fixes for updating a loan application
0f4d23289 is described below

commit 0f4d23289751b1ed4a43a55c5a17ba20462baf99
Author: Arnold Galovics <ga...@gmail.com>
AuthorDate: Wed Sep 21 10:59:08 2022 +0200

    FINERACT-1724: Swagger fixes for updating a loan application
---
 .../loanaccount/api/LoansApiResourceSwagger.java   | 85 ++++++++++++++++++++++
 1 file changed, 85 insertions(+)

diff --git a/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/api/LoansApiResourceSwagger.java b/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/api/LoansApiResourceSwagger.java
index 70f872077..e27724778 100644
--- a/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/api/LoansApiResourceSwagger.java
+++ b/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/api/LoansApiResourceSwagger.java
@@ -1117,6 +1117,8 @@ final class LoansApiResourceSwagger {
         public String locale;
         @Schema(example = "dd MMMM yyyy")
         public String dateFormat;
+        @Schema
+        public String submittedOnDate;
         @Schema(example = "1")
         public Integer productId;
         @Schema(example = "5000")
@@ -1145,6 +1147,89 @@ final class LoansApiResourceSwagger {
         public String expectedDisbursementDate;
         @Schema(example = "1")
         public Integer transactionProcessingStrategyId;
+        @Schema(example = "1")
+        public Long linkAccountId;
+        @Schema(example = "true")
+        public Boolean createStandingInstructionAtDisbursement;
+        @Schema(example = "1")
+        public Integer repaymentFrequencyNthDayType;
+        @Schema(example = "1")
+        public Integer repaymentFrequencyDayOfWeekType;
+        @Schema
+        public String repaymentsStartingFromDate;
+        @Schema
+        public String interestChargedFromDate;
+        @Schema(example = "true")
+        public Boolean isEqualAmortization;
+        @Schema(example = "1")
+        public Integer graceOnArrearsAgeing;
+        @Schema(example = "1")
+        public Long loanIdToClose;
+        @Schema(example = "true")
+        public Boolean isTopup;
+        @Schema(example = "1")
+        public Long maxOutstandingLoanBalance;
+        @Schema(example = "1")
+        public Long clientId;
+        @Schema(example = "individual")
+        public String loanType;
+        public List<PutLoansLoanIdChanges> charges;
+        public List<PutLoansLoanIdCollateral> collateral;
+        public List<PutLoansLoanIdDisbursementData> disbursementData;
+
+        static final class PutLoansLoanIdChanges {
+
+            private PutLoansLoanIdChanges() {}
+
+            @Schema(example = "dd MMMM yyyy")
+            public String dateFormat;
+            @Schema(example = "en")
+            public String locale;
+            @Schema(example = "1")
+            public Long id;
+            @Schema(example = "1")
+            public Long chargeId;
+            @Schema(example = "1")
+            public BigDecimal amount;
+            @Schema
+            public String dueDate;
+            @Schema(example = "1")
+            public Integer chargeTimeType;
+            @Schema(example = "1")
+            public Integer chargeCalculationType;
+            @Schema(example = "1")
+            public Integer chargePaymentMode;
+        }
+
+        static final class PutLoansLoanIdCollateral {
+
+            private PutLoansLoanIdCollateral() {}
+
+            @Schema(example = "1")
+            public Long clientCollateralId;
+            @Schema(example = "1")
+            public BigDecimal quantity;
+        }
+
+        static final class PutLoansLoanIdDisbursementData {
+
+            private PutLoansLoanIdDisbursementData() {}
+
+            @Schema(example = "dd MMMM yyyy")
+            public String dateFormat;
+            @Schema(example = "en")
+            public String locale;
+            @Schema
+            public String expectedDisbursementDate;
+            @Schema(example = "true")
+            public Boolean isEqualAmortization;
+            @Schema(example = "1")
+            public BigDecimal principal;
+            @Schema(example = "1")
+            public BigDecimal netDisbursalAmount;
+            @Schema(example = "1")
+            public Integer interestType;
+        }
     }
 
     @Schema(description = "PutLoansLoanIdResponse")