/**
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package org.mifosplatform.organisation.provisioning.constants;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
public interface ProvisioningCriteriaConstants {
public final static String JSON_LOCALE_PARAM = "locale" ;
public final static String JSON_CRITERIAID_PARAM = "criteriaId" ;
public final static String JSON_CRITERIANAME_PARAM = "criteriaName";
public final static String JSON_LOANPRODUCTS_PARAM = "loanProducts";
public final static String JSON_LOAN_PRODUCT_ID_PARAM = "id" ;
public final static String JSON_LOAN_PRODUCTNAME_PARAM = "name" ;
public final static String JSON_LOAN_PRODUCT_BORROWERCYCLE_PARAM = "includeInBorrowerCycle" ;
public final static String JSON_PROVISIONING_DEFINITIONS_PARAM = "definitions";
public final static String JSON_CATEOGRYID_PARAM = "categoryId";
public final static String JSON_CATEOGRYNAME_PARAM = "categoryName";
public final static String JSON_MINIMUM_AGE_PARAM = "minAge";
public final static String JSON_MAXIMUM_AGE_PARAM = "maxAge";
public final static String JSON_PROVISIONING_PERCENTAGE_PARAM = "provisioningPercentage";
public final static String JSON_LIABILITY_ACCOUNT_PARAM = "liabilityAccount";
public final static String JSON_EXPENSE_ACCOUNT_PARAM = "expenseAccount";
Set<String> supportedParametersForCreate = new HashSet<>(Arrays.asList(JSON_LOCALE_PARAM, JSON_CRITERIANAME_PARAM,
JSON_LOANPRODUCTS_PARAM, JSON_PROVISIONING_DEFINITIONS_PARAM));
Set<String> supportedParametersForUpdate = new HashSet<>(Arrays.asList(JSON_CRITERIAID_PARAM, JSON_LOCALE_PARAM, JSON_CRITERIANAME_PARAM,
JSON_LOANPRODUCTS_PARAM, JSON_PROVISIONING_DEFINITIONS_PARAM));
Set<String> loanProductSupportedParams = new HashSet<>(Arrays.asList(JSON_LOAN_PRODUCT_ID_PARAM,
JSON_LOAN_PRODUCTNAME_PARAM, JSON_LOAN_PRODUCT_BORROWERCYCLE_PARAM)) ;
Set<String> provisioningcriteriaSupportedParams = new HashSet<>(Arrays.asList(JSON_CATEOGRYID_PARAM,
JSON_CATEOGRYNAME_PARAM, JSON_MINIMUM_AGE_PARAM, JSON_MAXIMUM_AGE_PARAM, JSON_MINIMUM_AGE_PARAM, JSON_PROVISIONING_PERCENTAGE_PARAM, JSON_EXPENSE_ACCOUNT_PARAM, JSON_LIABILITY_ACCOUNT_PARAM)) ;
Set<String> PROVISIONING_CRITERIA_TEMPLATE_PARAMETER = new HashSet<>(Arrays.asList("definitions", "loanProducts",
"glAccounts"));
Set<String> PROVISIONING_CRITERIA_PARAMETERS = new HashSet<>(Arrays.asList("criteriaName", "loanProducts",
"definitions"));
Set<String> ALL_PROVISIONING_CRITERIA_PARAMETERS = new HashSet<>(Arrays.asList("criteriaId", "criterianame",
"createdby"));
}