adamsaghy commented on code in PR #5872:
URL: https://github.com/apache/fineract/pull/5872#discussion_r3339986779


##########
fineract-working-capital-loan/src/main/java/org/apache/fineract/portfolio/workingcapitalloan/api/WorkingCapitalLoanChargesApiResourceSwagger.java:
##########
@@ -0,0 +1,221 @@
+/**
+ * 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.workingcapitalloan.api;
+
+import io.swagger.v3.oas.annotations.media.Schema;
+import java.time.LocalDate;
+import java.util.Set;
+
+final class WorkingCapitalLoanChargesApiResourceSwagger {
+
+    private WorkingCapitalLoanChargesApiResourceSwagger() {}
+
+    @Schema(description = "GetLoansLoanIdChargesChargeIdResponse")
+    public static final class GetLoansLoanIdChargesChargeIdResponse {
+
+        private GetLoansLoanIdChargesChargeIdResponse() {}
+
+        public static final class GetLoanChargeTimeType {
+
+            private GetLoanChargeTimeType() {}
+
+            @Schema(example = "1")
+            public Long id;
+            @Schema(example = "chargeTimeType.disbursement")
+            public String code;
+            @Schema(example = "Disbursement")
+            public String description;
+        }
+
+        public static final class GetLoanChargePaymentMethod {
+
+            private GetLoanChargePaymentMethod() {}
+
+            @Schema(example = "0")
+            public Long id;
+            @Schema(example = "chargepaymentmode.regular")
+            public String code;
+            @Schema(example = "Regular")
+            public String description;
+        }
+
+        public static final class GetLoanChargeCalculationType {
+
+            private GetLoanChargeCalculationType() {}
+
+            @Schema(example = "1")
+            public Long id;
+            @Schema(example = "chargeCalculationType.flat")
+            public String code;
+            @Schema(example = "Flat")
+            public String description;
+        }
+
+        public static final class GetLoanChargeCurrency {
+
+            private GetLoanChargeCurrency() {}
+
+            @Schema(example = "USD")
+            public String code;
+            @Schema(example = "US Dollar")
+            public String name;
+            @Schema(example = "2")
+            public Integer decimalPlaces;
+            @Schema(example = "$")
+            public String displaySymbol;
+            @Schema(example = "currency.USD")
+            public String nameCode;
+            @Schema(example = "US Dollar ($)")
+            public String displayLabel;
+        }
+
+        @Schema(example = "1")
+        public Long id;
+        @Schema(example = "1")
+        public Long chargeId;
+        @Schema(example = "Loan Processing fee")
+        public String name;
+        public GetLoanChargeTimeType chargeTimeType;
+        public GetLoanChargeCalculationType chargeCalculationType;
+        public GetLoanChargePaymentMethod chargePaymentMode;
+        @Schema(example = "0")
+        public Double percentage;

Review Comment:
   Please return only the fields that are supported for Working Capital type of 
charge...



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to