FINERACT-2181: Format enums
This commit is contained in:
+9
-2
@@ -26,8 +26,15 @@ import java.util.Set;
|
||||
***/
|
||||
public enum AdHocJsonInputParams {
|
||||
|
||||
ID("id"), NAME("name"), QUERY("query"), TABLENAME("tableName"), TABLEFIELDS("tableFields"), ACTIVE("isActive"), REPORT_RUN_FREQUENCY(
|
||||
"reportRunFrequency"), REPORT_RUN_EVERY("reportRunEvery"), EMAIL("email");
|
||||
ID("id"), //
|
||||
NAME("name"), //
|
||||
QUERY("query"), //
|
||||
TABLENAME("tableName"), //
|
||||
TABLEFIELDS("tableFields"), //
|
||||
ACTIVE("isActive"), //
|
||||
REPORT_RUN_FREQUENCY("reportRunFrequency"), //
|
||||
REPORT_RUN_EVERY("reportRunEvery"), //
|
||||
EMAIL("email"); //
|
||||
|
||||
private final String value;
|
||||
|
||||
|
||||
+5
-2
@@ -24,8 +24,11 @@ import java.util.stream.Collectors;
|
||||
|
||||
public enum ReportRunFrequency {
|
||||
|
||||
DAILY(1, "reportRunFrequency.daily"), WEEKLY(2, "reportRunFrequency.weekly"), MONTHLY(3, "reportRunFrequency.monthly"), YEARLY(4,
|
||||
"reportRunFrequency.yearly"), CUSTOM(5, "reportRunFrequency.custom");
|
||||
DAILY(1, "reportRunFrequency.daily"), //
|
||||
WEEKLY(2, "reportRunFrequency.weekly"), //
|
||||
MONTHLY(3, "reportRunFrequency.monthly"), //
|
||||
YEARLY(4, "reportRunFrequency.yearly"), //
|
||||
CUSTOM(5, "reportRunFrequency.custom"); //
|
||||
|
||||
private static final Map<Long, ReportRunFrequency> MAP = Arrays.stream(ReportRunFrequency.values())
|
||||
.collect(Collectors.toMap(ReportRunFrequency::getValue, e -> e));
|
||||
|
||||
@@ -19,5 +19,6 @@
|
||||
package org.apache.fineract.cob.domain;
|
||||
|
||||
public enum LockOwner {
|
||||
LOAN_COB_CHUNK_PROCESSING, LOAN_INLINE_COB_PROCESSING;
|
||||
LOAN_COB_CHUNK_PROCESSING, //
|
||||
LOAN_INLINE_COB_PROCESSING; //
|
||||
}
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@ import java.util.Optional;
|
||||
|
||||
public enum BusinessStepCategory {
|
||||
|
||||
LOAN("LOAN");
|
||||
LOAN("LOAN"); //
|
||||
|
||||
private final String name;
|
||||
|
||||
|
||||
+5
-5
@@ -54,11 +54,11 @@ public final class AccountNumberFormatEnumerations {
|
||||
|
||||
public enum AccountNumberPrefixType {
|
||||
|
||||
OFFICE_NAME(1, "accountNumberPrefixType.officeName"), CLIENT_TYPE(101,
|
||||
"accountNumberPrefixType.clientType"), LOAN_PRODUCT_SHORT_NAME(201,
|
||||
"accountNumberPrefixType.loanProductShortName"), SAVINGS_PRODUCT_SHORT_NAME(301,
|
||||
"accountNumberPrefixType.savingsProductShortName"), PREFIX_SHORT_NAME(401,
|
||||
"accountNumberPrefixType.prefixShortName");
|
||||
OFFICE_NAME(1, "accountNumberPrefixType.officeName"), //
|
||||
CLIENT_TYPE(101, "accountNumberPrefixType.clientType"), //
|
||||
LOAN_PRODUCT_SHORT_NAME(201, "accountNumberPrefixType.loanProductShortName"), //
|
||||
SAVINGS_PRODUCT_SHORT_NAME(301, "accountNumberPrefixType.savingsProductShortName"), //
|
||||
PREFIX_SHORT_NAME(401, "accountNumberPrefixType.prefixShortName"); //
|
||||
|
||||
private final Integer value;
|
||||
private final String code;
|
||||
|
||||
+6
-2
@@ -23,8 +23,12 @@ import java.util.Map;
|
||||
|
||||
public enum EntityAccountType {
|
||||
|
||||
CLIENT(1, "accountType.client"), LOAN(2, "accountType.loan"), SAVINGS(3, "accountType.savings"), CENTER(4,
|
||||
"accountType.center"), GROUP(5, "accountType.group"), SHARES(6, "accountType.shares");
|
||||
CLIENT(1, "accountType.client"), //
|
||||
LOAN(2, "accountType.loan"), //
|
||||
SAVINGS(3, "accountType.savings"), //
|
||||
CENTER(4, "accountType.center"), //
|
||||
GROUP(5, "accountType.group"), //
|
||||
SHARES(6, "accountType.shares"); //
|
||||
|
||||
private final Integer value;
|
||||
private final String code;
|
||||
|
||||
+3
-2
@@ -22,8 +22,9 @@ import org.apache.fineract.infrastructure.core.exception.GeneralPlatformDomainRu
|
||||
|
||||
public enum ImportFormatType {
|
||||
|
||||
XLSX("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"), XLS("application/vnd.ms-excel"), ODS(
|
||||
"application/vnd.oasis.opendocument.spreadsheet");
|
||||
XLSX("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"), //
|
||||
XLS("application/vnd.ms-excel"), //
|
||||
ODS("application/vnd.oasis.opendocument.spreadsheet"); //
|
||||
|
||||
private final String format;
|
||||
|
||||
|
||||
+3
-1
@@ -22,7 +22,9 @@ import org.apache.fineract.infrastructure.core.data.EnumOptionData;
|
||||
|
||||
public enum CampaignType {
|
||||
|
||||
INVALID(0, "campaignType.invalid"), SMS(1, "campaignType.sms"), NOTIFICATION(2, "campaignType.notification");
|
||||
INVALID(0, "campaignType.invalid"), //
|
||||
SMS(1, "campaignType.sms"), //
|
||||
NOTIFICATION(2, "campaignType.notification"); //
|
||||
|
||||
private final Integer value;
|
||||
private final String code;
|
||||
|
||||
+3
-2
@@ -20,8 +20,9 @@ package org.apache.fineract.infrastructure.campaigns.email.domain;
|
||||
|
||||
public enum EmailCampaignType {
|
||||
|
||||
DIRECT(1, "emailCampaignStatusType.direct"), SCHEDULE(2, "emailCampaignStatusType.schedule"), TRIGGERED(3,
|
||||
"emailCampaignStatusType.triggered");
|
||||
DIRECT(1, "emailCampaignStatusType.direct"), //
|
||||
SCHEDULE(2, "emailCampaignStatusType.schedule"), //
|
||||
TRIGGERED(3, "emailCampaignStatusType.triggered"); //
|
||||
|
||||
private final Integer value;
|
||||
private final String code;
|
||||
|
||||
+4
-2
@@ -20,8 +20,10 @@ package org.apache.fineract.infrastructure.campaigns.email.domain;
|
||||
|
||||
public enum ScheduledEmailAttachmentFileFormat {
|
||||
|
||||
INVALID(0, "EmailAttachmentFileFormat.invalid", "invalid"), XLS(1, "EmailAttachmentFileFormat.xls", "xls"), PDF(2,
|
||||
"EmailAttachmentFileFormat.pdf", "pdf"), CSV(3, "EmailAttachmentFileFormat.csv", "csv");
|
||||
INVALID(0, "EmailAttachmentFileFormat.invalid", "invalid"), //
|
||||
XLS(1, "EmailAttachmentFileFormat.xls", "xls"), //
|
||||
PDF(2, "EmailAttachmentFileFormat.pdf", "pdf"), //
|
||||
CSV(3, "EmailAttachmentFileFormat.csv", "csv"); //
|
||||
|
||||
private final String code;
|
||||
private final String value;
|
||||
|
||||
+4
-5
@@ -20,11 +20,10 @@ package org.apache.fineract.infrastructure.campaigns.email.domain;
|
||||
|
||||
public enum ScheduledEmailStretchyReportParamDateOption {
|
||||
|
||||
INVALID(0, "scheduledEmailStretchyReportParamDateOption.invalid", "invalid"), TODAY(1,
|
||||
"scheduledEmailStretchyReportParamDateOption.today", "today"),
|
||||
// YESTERDAY(2, "scheduledEmailStretchyReportParamDateOption.yesterday",
|
||||
// "yesterday"),
|
||||
TOMORROW(3, "scheduledEmailStretchyReportParamDateOption.tomorrow", "tomorrow");
|
||||
INVALID(0, "scheduledEmailStretchyReportParamDateOption.invalid", "invalid"), //
|
||||
TODAY(1, "scheduledEmailStretchyReportParamDateOption.today", "today"), //
|
||||
// YESTERDAY(2, "scheduledEmailStretchyReportParamDateOption.yesterday", "yesterday"),
|
||||
TOMORROW(3, "scheduledEmailStretchyReportParamDateOption.tomorrow", "tomorrow"); //
|
||||
|
||||
private final String code;
|
||||
private final String value;
|
||||
|
||||
+4
-2
@@ -24,8 +24,10 @@ import org.apache.fineract.infrastructure.core.data.EnumOptionData;
|
||||
@Getter
|
||||
public enum SmsCampaignTriggerType {
|
||||
|
||||
INVALID(-1, "triggerType.invalid"), DIRECT(1, "triggerType.direct"), SCHEDULE(2, "triggerType.schedule"), TRIGGERED(3,
|
||||
"triggerType.triggered");
|
||||
INVALID(-1, "triggerType.invalid"), //
|
||||
DIRECT(1, "triggerType.direct"), //
|
||||
SCHEDULE(2, "triggerType.schedule"), //
|
||||
TRIGGERED(3, "triggerType.triggered"); //
|
||||
|
||||
private final Integer value;
|
||||
private final String code;
|
||||
|
||||
+20
-6
@@ -54,7 +54,9 @@ public final class ExternalServicesConstants {
|
||||
|
||||
public enum ExternalservicePropertiesJSONinputParams {
|
||||
|
||||
EXTERNAL_SERVICE_ID("external_service_id"), NAME("name"), VALUE("value");
|
||||
EXTERNAL_SERVICE_ID("external_service_id"), //
|
||||
NAME("name"), //
|
||||
VALUE("value"); //
|
||||
|
||||
private final String value;
|
||||
|
||||
@@ -86,8 +88,13 @@ public final class ExternalServicesConstants {
|
||||
|
||||
public enum SMTPJSONinputParams {
|
||||
|
||||
USERNAME("username"), PASSWORD("password"), HOST("host"), PORT("port"), USETLS("useTLS"), FROM_EMAIL("fromEmail"), FROM_NAME(
|
||||
"fromName");
|
||||
USERNAME("username"), //
|
||||
PASSWORD("password"), //
|
||||
HOST("host"), //
|
||||
PORT("port"), //
|
||||
USETLS("useTLS"), //
|
||||
FROM_EMAIL("fromEmail"), //
|
||||
FROM_NAME("fromName"); //
|
||||
|
||||
private final String value;
|
||||
|
||||
@@ -119,7 +126,10 @@ public final class ExternalServicesConstants {
|
||||
|
||||
public enum SMSJSONinputParams {
|
||||
|
||||
HASTNAME("host_name"), PORT("port_number"), END_POINT("end_point"), TENANT_APP_KEY("tenant_app_key");
|
||||
HASTNAME("host_name"), //
|
||||
PORT("port_number"), //
|
||||
END_POINT("end_point"), //
|
||||
TENANT_APP_KEY("tenant_app_key"); //
|
||||
|
||||
private final String value;
|
||||
|
||||
@@ -151,7 +161,9 @@ public final class ExternalServicesConstants {
|
||||
|
||||
public enum S3JSONinputParams {
|
||||
|
||||
S3_ACCESS_KEY("s3_access_key"), S3_BUCKET_NAME("s3_bucket_name"), S3_SECRET_KEY("s3_secret_key");
|
||||
S3_ACCESS_KEY("s3_access_key"), //
|
||||
S3_BUCKET_NAME("s3_bucket_name"), //
|
||||
S3_SECRET_KEY("s3_secret_key"); //
|
||||
|
||||
private final String value;
|
||||
|
||||
@@ -183,7 +195,9 @@ public final class ExternalServicesConstants {
|
||||
|
||||
public enum NotificationJSONinputParams {
|
||||
|
||||
SERVER_KEY("server_key"), GCM_END_POINT("gcm_end_point"), FCM_END_POINT("fcm_end_point");
|
||||
SERVER_KEY("server_key"), //
|
||||
GCM_END_POINT("gcm_end_point"), //
|
||||
FCM_END_POINT("fcm_end_point"); //
|
||||
|
||||
private final String value;
|
||||
|
||||
|
||||
+2
-1
@@ -26,7 +26,8 @@ import org.springframework.data.auditing.DateTimeProvider;
|
||||
|
||||
public enum CustomDateTimeProvider implements DateTimeProvider {
|
||||
|
||||
INSTANCE, UTC;
|
||||
INSTANCE, //
|
||||
UTC; //
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
|
||||
+8
-1
@@ -20,6 +20,13 @@ package org.apache.fineract.infrastructure.creditbureau.data;
|
||||
|
||||
public enum CreditBureauConfigurations {
|
||||
|
||||
THITSAWORKS, SUBSCRIPTIONID, SUBSCRIPTIONKEY, USERNAME, PASSWORD, TOKENURL, SEARCHURL, CREDITREPORTURL;
|
||||
THITSAWORKS, //
|
||||
SUBSCRIPTIONID, //
|
||||
SUBSCRIPTIONKEY, //
|
||||
USERNAME, //
|
||||
PASSWORD, //
|
||||
TOKENURL, //
|
||||
SEARCHURL, //
|
||||
CREDITREPORTURL; //
|
||||
|
||||
}
|
||||
|
||||
+5
-1
@@ -22,7 +22,11 @@ import jakarta.ws.rs.core.MultivaluedMap;
|
||||
|
||||
public enum DatatableExportTargetParameter {
|
||||
|
||||
CSV("exportCSV"), PDF("exportPDF"), S3("exportS3"), JSON("exportJSON"), PRETTY_JSON("pretty");
|
||||
CSV("exportCSV"), //
|
||||
PDF("exportPDF"), //
|
||||
S3("exportS3"), //
|
||||
JSON("exportJSON"), //
|
||||
PRETTY_JSON("pretty"); //
|
||||
|
||||
private final String value;
|
||||
|
||||
|
||||
+5
-2
@@ -31,8 +31,11 @@ public final class FineractEntityAccessConstants {
|
||||
***/
|
||||
public enum EntityAccessJSONinputParams {
|
||||
|
||||
ENTITY_TYPE("entityType"), ENTITY_ID("entityId"), ENTITY_ACCESS_TYPE_ID("entityAccessTypeId"), SECOND_ENTITY_TYPE(
|
||||
"secondEntityType"), SECOND_ENTITY_ID("secondEntityId");
|
||||
ENTITY_TYPE("entityType"), //
|
||||
ENTITY_ID("entityId"), //
|
||||
ENTITY_ACCESS_TYPE_ID("entityAccessTypeId"), //
|
||||
SECOND_ENTITY_TYPE("secondEntityType"), //
|
||||
SECOND_ENTITY_ID("secondEntityId"); //
|
||||
|
||||
private final String value;
|
||||
|
||||
|
||||
+2
-1
@@ -94,7 +94,8 @@ public final class Message implements Serializable {
|
||||
private Notification notification;
|
||||
|
||||
public enum Priority {
|
||||
NORMAL, HIGH
|
||||
NORMAL, //
|
||||
HIGH //
|
||||
}
|
||||
|
||||
public static final class Builder {
|
||||
|
||||
+4
-3
@@ -25,9 +25,10 @@ import org.apache.fineract.infrastructure.core.data.EnumOptionData;
|
||||
|
||||
public enum ReportMailingJobEmailAttachmentFileFormat {
|
||||
|
||||
INVALID(0, "ReportMailingJobEmailAttachmentFileFormat.INVALID", "Invalid"), XLS(1, "ReportMailingJobEmailAttachmentFileFormat.XLS",
|
||||
"XLS"), PDF(2, "ReportMailingJobEmailAttachmentFileFormat.PDF",
|
||||
"PDF"), CSV(3, "ReportMailingJobEmailAttachmentFileFormat.CSV", "CSV");
|
||||
INVALID(0, "ReportMailingJobEmailAttachmentFileFormat.INVALID", "Invalid"), //
|
||||
XLS(1, "ReportMailingJobEmailAttachmentFileFormat.XLS", "XLS"), //
|
||||
PDF(2, "ReportMailingJobEmailAttachmentFileFormat.PDF", "PDF"), //
|
||||
CSV(3, "ReportMailingJobEmailAttachmentFileFormat.CSV", "CSV"); //
|
||||
|
||||
private final String code;
|
||||
private final String value;
|
||||
|
||||
+3
-2
@@ -22,8 +22,9 @@ import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
public enum ReportMailingJobPreviousRunStatus {
|
||||
|
||||
INVALID(-1, "ReportMailingJobPreviousRunStatus.INVALID", "Invalid"), SUCCESS(1, "ReportMailingJobPreviousRunStatus.SUCCESS",
|
||||
"Success"), ERROR(0, "ReportMailingJobPreviousRunStatus.ERROR", "Error");
|
||||
INVALID(-1, "ReportMailingJobPreviousRunStatus.INVALID", "Invalid"), //
|
||||
SUCCESS(1, "ReportMailingJobPreviousRunStatus.SUCCESS", "Success"), //
|
||||
ERROR(0, "ReportMailingJobPreviousRunStatus.ERROR", "Error"); //
|
||||
|
||||
private final String code;
|
||||
private final String value;
|
||||
|
||||
+4
-4
@@ -25,10 +25,10 @@ import org.apache.fineract.infrastructure.core.data.EnumOptionData;
|
||||
|
||||
public enum ReportMailingJobStretchyReportParamDateOption {
|
||||
|
||||
INVALID(0, "ReportMailingJobStretchyReportParamDateOption.INVALID", "Invalid"), TODAY(1,
|
||||
"ReportMailingJobStretchyReportParamDateOption.TODAY", "Today"), YESTERDAY(2,
|
||||
"ReportMailingJobStretchyReportParamDateOption.YESTERDAY",
|
||||
"Yesterday"), TOMORROW(3, "ReportMailingJobStretchyReportParamDateOption.TOMORROW", "Tomorrow");
|
||||
INVALID(0, "ReportMailingJobStretchyReportParamDateOption.INVALID", "Invalid"), //
|
||||
TODAY(1, "ReportMailingJobStretchyReportParamDateOption.TODAY", "Today"), //
|
||||
YESTERDAY(2, "ReportMailingJobStretchyReportParamDateOption.YESTERDAY", "Yesterday"), //
|
||||
TOMORROW(3, "ReportMailingJobStretchyReportParamDateOption.TOMORROW", "Tomorrow"); //
|
||||
|
||||
private final String code;
|
||||
private final String value;
|
||||
|
||||
+4
-3
@@ -20,9 +20,10 @@ package org.apache.fineract.infrastructure.reportmailingjob.domain;
|
||||
|
||||
public enum ReportMailingJobEmailAttachmentFileFormat {
|
||||
|
||||
INVALID(0, "ReportMailingJobEmailAttachmentFileFormat.invalid", "invalid"), XLS(1, "ReportMailingJobEmailAttachmentFileFormat.xls",
|
||||
"xls"), PDF(2, "ReportMailingJobEmailAttachmentFileFormat.pdf",
|
||||
"pdf"), CSV(3, "ReportMailingJobEmailAttachmentFileFormat.csv", "csv");
|
||||
INVALID(0, "ReportMailingJobEmailAttachmentFileFormat.invalid", "invalid"), //
|
||||
XLS(1, "ReportMailingJobEmailAttachmentFileFormat.xls", "xls"), //
|
||||
PDF(2, "ReportMailingJobEmailAttachmentFileFormat.pdf", "pdf"), //
|
||||
CSV(3, "ReportMailingJobEmailAttachmentFileFormat.csv", "csv"); //
|
||||
|
||||
private final String code;
|
||||
private final String value;
|
||||
|
||||
+3
-2
@@ -22,9 +22,10 @@ public enum SmsMessageStatusType {
|
||||
|
||||
INVALID(0, "smsMessageStatusType.invalid"), //
|
||||
PENDING(100, "smsMessageStatusType.pending"), //
|
||||
WAITING_FOR_DELIVERY_REPORT(150, "smsMessageStatusType.waitingForDeliveryReport"), SENT(200, "smsMessageStatusType.sent"), //
|
||||
WAITING_FOR_DELIVERY_REPORT(150, "smsMessageStatusType.waitingForDeliveryReport"), //
|
||||
SENT(200, "smsMessageStatusType.sent"), //
|
||||
DELIVERED(300, "smsMessageStatusType.delivered"), //
|
||||
FAILED(400, "smsMessageStatusType.failed");
|
||||
FAILED(400, "smsMessageStatusType.failed"); //
|
||||
|
||||
private final Integer value;
|
||||
private final String code;
|
||||
|
||||
+3
-1
@@ -27,7 +27,9 @@ public class StaffRoleException extends AbstractPlatformResourceNotFoundExceptio
|
||||
|
||||
public enum StaffRole {
|
||||
|
||||
LOAN_OFFICER, BRANCH_MANAGER, SAVINGS_OFFICER;
|
||||
LOAN_OFFICER, //
|
||||
BRANCH_MANAGER, //
|
||||
SAVINGS_OFFICER; //
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
|
||||
+1
-1
@@ -1428,7 +1428,7 @@ public final class LoanProductDataValidator {
|
||||
.isOneOfTheseValues(1, 360, 364, 365);
|
||||
}
|
||||
|
||||
if (this.fromApiJsonHelper.parameterExists(LoanProductConstants.DAYS_IN_YEAR_TYPE_PARAMETER_NAME, element)) {
|
||||
if (this.fromApiJsonHelper.parameterExists(LoanProductConstants.DAYS_IN_MONTH_TYPE_PARAMETER_NAME, element)) {
|
||||
final Integer daysInMonthType = this.fromApiJsonHelper
|
||||
.extractIntegerNamed(LoanProductConstants.DAYS_IN_MONTH_TYPE_PARAMETER_NAME, element, Locale.getDefault());
|
||||
baseDataValidator.reset().parameter(LoanProductConstants.DAYS_IN_MONTH_TYPE_PARAMETER_NAME).value(daysInMonthType).notNull()
|
||||
|
||||
+7
-3
@@ -20,9 +20,13 @@ package org.apache.fineract.portfolio.shareaccounts.domain;
|
||||
|
||||
public enum PurchasedSharesStatusType {
|
||||
|
||||
INVALID(0, "purchasedSharesStatusType.invalid"), APPLIED(100, "purchasedSharesStatusType.applied"), APPROVED(300,
|
||||
"purchasedSharesStatusType.approved"), REJECTED(400, "purchasedSharesStatusType.rejected"), PURCHASED(500,
|
||||
"purchasedSharesType.purchased"), REDEEMED(600, "purchasedSharesType.redeemed"), CHARGE_PAYMENT(700, "charge.payment");
|
||||
INVALID(0, "purchasedSharesStatusType.invalid"), //
|
||||
APPLIED(100, "purchasedSharesStatusType.applied"), //
|
||||
APPROVED(300, "purchasedSharesStatusType.approved"), //
|
||||
REJECTED(400, "purchasedSharesStatusType.rejected"), //
|
||||
PURCHASED(500, "purchasedSharesType.purchased"), //
|
||||
REDEEMED(600, "purchasedSharesType.redeemed"), //
|
||||
CHARGE_PAYMENT(700, "charge.payment"); //
|
||||
|
||||
private final Integer value;
|
||||
private final String code;
|
||||
|
||||
+3
-2
@@ -20,8 +20,9 @@ package org.apache.fineract.portfolio.shareaccounts.domain;
|
||||
|
||||
public enum ShareAccountDividendStatusType {
|
||||
|
||||
INVALID(0, "shareAccountDividendStatusType.invalid"), INITIATED(100, "shareAccountDividendStatusType.initiated"), POSTED(300,
|
||||
"shareAccountDividendStatusType.posted");
|
||||
INVALID(0, "shareAccountDividendStatusType.invalid"), //
|
||||
INITIATED(100, "shareAccountDividendStatusType.initiated"), //
|
||||
POSTED(300, "shareAccountDividendStatusType.posted"); //
|
||||
|
||||
private final Integer value;
|
||||
private final String code;
|
||||
|
||||
+3
-2
@@ -20,8 +20,9 @@ package org.apache.fineract.portfolio.shareproducts.domain;
|
||||
|
||||
public enum ShareProductDividendStatusType {
|
||||
|
||||
INVALID(0, "shareAccountDividendStatusType.invalid"), INITIATED(100, "shareAccountDividendStatusType.initiated"), APPROVED(300,
|
||||
"shareAccountDividendStatusType.approved");
|
||||
INVALID(0, "shareAccountDividendStatusType.invalid"), //
|
||||
INITIATED(100, "shareAccountDividendStatusType.initiated"), //
|
||||
APPROVED(300, "shareAccountDividendStatusType.approved"); //
|
||||
|
||||
private final Integer value;
|
||||
private final String code;
|
||||
|
||||
+7
-1
@@ -28,7 +28,13 @@ public class TransferNotSupportedException extends AbstractPlatformDomainRuleExc
|
||||
/*** enum of reasons for invalid Journal Entry **/
|
||||
public enum TransferNotSupportedReason {
|
||||
|
||||
CLIENT_DESTINATION_GROUP_NOT_SPECIFIED, CLIENT_BELONGS_TO_MULTIPLE_GROUPS, SOURCE_AND_DESTINATION_GROUP_CANNOT_BE_SAME, ACTIVE_SAVINGS_ACCOUNT, BULK_CLIENT_TRANSFER_ACROSS_BRANCHES, DESTINATION_GROUP_MEETING_FREQUENCY_MISMATCH, DESTINATION_GROUP_HAS_NO_MEETING;
|
||||
CLIENT_DESTINATION_GROUP_NOT_SPECIFIED, //
|
||||
CLIENT_BELONGS_TO_MULTIPLE_GROUPS, //
|
||||
SOURCE_AND_DESTINATION_GROUP_CANNOT_BE_SAME, //
|
||||
ACTIVE_SAVINGS_ACCOUNT, //
|
||||
BULK_CLIENT_TRANSFER_ACROSS_BRANCHES, //
|
||||
DESTINATION_GROUP_MEETING_FREQUENCY_MISMATCH, //
|
||||
DESTINATION_GROUP_HAS_NO_MEETING; //
|
||||
|
||||
public String errorMessage() {
|
||||
if (name().toString().equalsIgnoreCase("ACTIVE_SAVINGS_ACCOUNT")) {
|
||||
|
||||
+4
-2
@@ -20,8 +20,10 @@ package org.apache.fineract.portfolio.transfer.service;
|
||||
|
||||
public enum TransferEventType {
|
||||
|
||||
PROPOSAL(1, "transferEvent.proposal"), ACCEPTANCE(2, "transferEvent.acceptance"), WITHDRAWAL(3,
|
||||
"transferEvent.withdrawal"), REJECTION(4, "transferEvent.rejection");
|
||||
PROPOSAL(1, "transferEvent.proposal"), //
|
||||
ACCEPTANCE(2, "transferEvent.acceptance"), //
|
||||
WITHDRAWAL(3, "transferEvent.withdrawal"), //
|
||||
REJECTION(4, "transferEvent.rejection"); //
|
||||
|
||||
private final Integer value;
|
||||
private final String code;
|
||||
|
||||
Reference in New Issue
Block a user