nikpawar89 commented on a change in pull request #738: GSIM and GLIM with test 
cases (FINERACT-603)
URL: https://github.com/apache/fineract/pull/738#discussion_r410958791
 
 

 ##########
 File path: 
fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/data/GroupLoanIndividualMonitoringAccountData.java
 ##########
 @@ -0,0 +1,119 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * 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
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.fineract.portfolio.loanaccount.data;
+
+import java.math.BigDecimal;
+
+public class GroupLoanIndividualMonitoringAccountData
+{
+    private final BigDecimal glimId;
+
+    private final BigDecimal groupId;
+
+    private final String accountNumber;
+
+    private final String childAccountNumber;
+
+    private final BigDecimal childPrincipalAmount;
+
+    private final BigDecimal parentPrincipalAmount;
+
+    private final Long childAccountsCount;
+
+    private final String loanStatus;
+
+    private GroupLoanIndividualMonitoringAccountData(final BigDecimal 
glimId,final BigDecimal groupId,final String accountNumber, final String 
childAccountNumber,
+            final BigDecimal childPrincipalAmount, final BigDecimal 
parentPrincipalAmount,
+            final Long childAccountsCount,final String loanStatus) {
+        this.glimId=glimId;
+        this.groupId=groupId;
+        this.accountNumber = accountNumber;
+        this.childAccountNumber = childAccountNumber;
+        this.childPrincipalAmount = childPrincipalAmount;
+        this.parentPrincipalAmount = parentPrincipalAmount;
+        this.childAccountsCount = childAccountsCount;
+        this.loanStatus=loanStatus;
+    }
+
+    public static GroupLoanIndividualMonitoringAccountData getInstance(final 
BigDecimal glimId, final BigDecimal groupId,final String accountNumber, final 
String childAccountNumber,
+            final BigDecimal childPrincipalAmount, final BigDecimal 
parentPrincipalAmount,
+            final Long childAccountsCount,final String loanStatus)
+    {
+        return new 
GroupLoanIndividualMonitoringAccountData(glimId,groupId,accountNumber,childAccountNumber,
+                
childPrincipalAmount,parentPrincipalAmount,childAccountsCount,loanStatus);
+    }
+
+    public static GroupLoanIndividualMonitoringAccountData getInstance1(final 
BigDecimal glimId,final BigDecimal groupId,final String accountNumber,
+            final BigDecimal parentPrincipalAmount,final String loanStatus)
+    {
+        return new 
GroupLoanIndividualMonitoringAccountData(glimId,groupId,accountNumber,null,null,parentPrincipalAmount,null,loanStatus);
+    }
+
+
+
+    public BigDecimal getGlimId() {
+        return glimId;
+    }
+
+    public BigDecimal getGroupId() {
+        return groupId;
+    }
+
+
+    public String getAccountNumber() {
+        return accountNumber;
+    }
+
+    public String getChildAccountNumber() {
+        return childAccountNumber;
+    }
+
+    public BigDecimal getChildPrincipalAmount() {
+        return childPrincipalAmount;
+    }
+
+    public BigDecimal getParentPrincipalAmount() {
+        return parentPrincipalAmount;
+    }
+
+    public Long getChildAccountsCount() {
+        return childAccountsCount;
+    }
+
+    public String getLoanStatus() {
+        return loanStatus;
+    }
+
 
 Review comment:
   There are too many whitespaces and new line throughout the PR- just try to 
eliminate them, if possible.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to