FINERACT-2081: Add ChargeOffReasonOptions in the Loan Transaction Template swagger class
This commit is contained in:
committed by
Adam Saghy
parent
5f4f7ef95f
commit
8f6b8cbc47
+4
@@ -20,7 +20,9 @@ package org.apache.fineract.portfolio.loanaccount.api;
|
|||||||
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import java.time.LocalDate;
|
import java.time.LocalDate;
|
||||||
|
import java.util.List;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
import org.apache.fineract.portfolio.loanproduct.api.LoanProductsApiResourceSwagger.GetLoanProductsChargeOffReasonOptions;
|
||||||
import org.springframework.data.domain.Page;
|
import org.springframework.data.domain.Page;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -90,6 +92,8 @@ final class LoanTransactionsApiResourceSwagger {
|
|||||||
public Double penaltyChargesPortion;
|
public Double penaltyChargesPortion;
|
||||||
|
|
||||||
public GetLoanCurrency currency;
|
public GetLoanCurrency currency;
|
||||||
|
|
||||||
|
public List<GetLoanProductsChargeOffReasonOptions> chargeOffReasonOptions;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static final class GetLoanCurrency {
|
public static final class GetLoanCurrency {
|
||||||
|
|||||||
+21
-20
@@ -31,7 +31,7 @@ import org.apache.fineract.portfolio.delinquency.data.DelinquencyBucketData;
|
|||||||
/**
|
/**
|
||||||
* Created by Chirag Gupta on 12/27/17.
|
* Created by Chirag Gupta on 12/27/17.
|
||||||
*/
|
*/
|
||||||
final class LoanProductsApiResourceSwagger {
|
public final class LoanProductsApiResourceSwagger {
|
||||||
|
|
||||||
private LoanProductsApiResourceSwagger() {}
|
private LoanProductsApiResourceSwagger() {}
|
||||||
|
|
||||||
@@ -1038,24 +1038,6 @@ final class LoanProductsApiResourceSwagger {
|
|||||||
public String description;
|
public String description;
|
||||||
}
|
}
|
||||||
|
|
||||||
static final class GetLoanProductsChargeOffReasonOptions {
|
|
||||||
|
|
||||||
private GetLoanProductsChargeOffReasonOptions() {}
|
|
||||||
|
|
||||||
@Schema(example = "2")
|
|
||||||
public Long id;
|
|
||||||
@Schema(example = "debit_card")
|
|
||||||
public String name;
|
|
||||||
@Schema(example = "2")
|
|
||||||
public Integer position;
|
|
||||||
@Schema(example = "Charge-Off reason description")
|
|
||||||
public String description;
|
|
||||||
@Schema(example = "true")
|
|
||||||
public Boolean active;
|
|
||||||
@Schema(example = "false")
|
|
||||||
public Boolean mandatory;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Schema(example = "false")
|
@Schema(example = "false")
|
||||||
public Boolean includeInBorrowerCycle;
|
public Boolean includeInBorrowerCycle;
|
||||||
@Schema(example = "false")
|
@Schema(example = "false")
|
||||||
@@ -1428,7 +1410,7 @@ final class LoanProductsApiResourceSwagger {
|
|||||||
@Schema(example = "false")
|
@Schema(example = "false")
|
||||||
public Boolean enableAccrualActivityPosting;
|
public Boolean enableAccrualActivityPosting;
|
||||||
public List<StringEnumOptionData> supportedInterestRefundTypes;
|
public List<StringEnumOptionData> supportedInterestRefundTypes;
|
||||||
public List<GetLoanProductsTemplateResponse.GetLoanProductsChargeOffReasonOptions> chargeOffReasonOptions;
|
public List<GetLoanProductsChargeOffReasonOptions> chargeOffReasonOptions;
|
||||||
public StringEnumOptionData chargeOffBehaviour;
|
public StringEnumOptionData chargeOffBehaviour;
|
||||||
@Schema(example = "false")
|
@Schema(example = "false")
|
||||||
public Boolean interestRecognitionOnDisbursementDate;
|
public Boolean interestRecognitionOnDisbursementDate;
|
||||||
@@ -1743,4 +1725,23 @@ final class LoanProductsApiResourceSwagger {
|
|||||||
public Long resourceId;
|
public Long resourceId;
|
||||||
public PutLoanChanges changes;
|
public PutLoanChanges changes;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Schema(description = "GetLoanProductsChargeOffReasonOptions")
|
||||||
|
public static final class GetLoanProductsChargeOffReasonOptions {
|
||||||
|
|
||||||
|
private GetLoanProductsChargeOffReasonOptions() {}
|
||||||
|
|
||||||
|
@Schema(example = "2")
|
||||||
|
public Long id;
|
||||||
|
@Schema(example = "debit_card")
|
||||||
|
public String name;
|
||||||
|
@Schema(example = "2")
|
||||||
|
public Integer position;
|
||||||
|
@Schema(example = "Charge-Off reason description")
|
||||||
|
public String description;
|
||||||
|
@Schema(example = "true")
|
||||||
|
public Boolean active;
|
||||||
|
@Schema(example = "false")
|
||||||
|
public Boolean mandatory;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user