diff --git a/mdx-models/src/main/java/com/mx/path/model/mdx/accessor/feature/Feature.java b/mdx-models/src/main/java/com/mx/path/model/mdx/accessor/feature/Feature.java deleted file mode 100644 index ee0d7acb..00000000 --- a/mdx-models/src/main/java/com/mx/path/model/mdx/accessor/feature/Feature.java +++ /dev/null @@ -1,31 +0,0 @@ -package com.mx.path.model.mdx.accessor.feature; - -/** - * Enum representing different features in the application. - *
- * This enum serves as a centralized definition of features available in - * the application. Each constant corresponds to a specific feature, - * allowing for type-safe handling and easy reference throughout the codebase. - *
- * Usage: - *- * Use these feature constants when implementing feature-specific logic, - * error handling, or when setting headers for error responses. - *
- */ -public enum Feature { - TRANSFERS("transfers"), - REMOTE_DEPOSITS("remote_deposits"), - PAYMENTS("payments"); - // todo:All the feature names will be added here. - - private final String featureName; - - Feature(String featureName) { - this.featureName = featureName; - } - - public String getFeatureName() { - return featureName; - } -} diff --git a/mdx-models/src/main/java/com/mx/path/model/mdx/accessor/feature/FeatureMapper.java b/mdx-models/src/main/java/com/mx/path/model/mdx/accessor/feature/FeatureMapper.java new file mode 100644 index 00000000..5f750653 --- /dev/null +++ b/mdx-models/src/main/java/com/mx/path/model/mdx/accessor/feature/FeatureMapper.java @@ -0,0 +1,20 @@ +package com.mx.path.model.mdx.accessor.feature; + +import java.util.HashMap; +import java.util.Map; + +import com.mx.path.core.common.request.Feature; + +public class FeatureMapper { + + private static final Map