Commit 0124e09c authored by Pratik Shrivastava's avatar Pratik Shrivastava

feat: create FEES_STRUCTURE enum

parent 78a5f007
package com.example.LaMartin.admission.enums;
import lombok.Getter;
import java.util.List;
@Getter
public enum FEES_STRUCTURE {
// Lamartiniere Boys
LMB_EX_LN("Lamartiniere Boys", "Lower Nursery", true, List.of("69,500.00", "34,500.00", "34,500.00", "34,500.00", "1,73,000.00")),
LMB_NEW_LN("Lamartiniere Boys", "Lower Nursery", false, List.of("1,79,500.00", "1,34,500.00", "1,34,500.00", "1,34,500.00", "5,83,000.00")),
LMB_EX_UN("Lamartiniere Boys", "Upper Nursery", true, List.of("69,500.00", "34,500.00", "34,500.00", "34,500.00", "1,73,000.00")),
LMB_NEW_UN("Lamartiniere Boys", "Upper Nursery", false, List.of("1,79,500.00", "1,34,500.00", "1,34,500.00", "1,34,500.00", "5,83,000.00")),
LMB_EX_KG("Lamartiniere Boys", "Kindergarten", true, List.of("69,500.00", "34,500.00", "34,500.00", "34,500.00", "1,73,000.00")),
LMB_NEW_KG("Lamartiniere Boys", "Kindergarten", false, List.of("1,79,500.00", "1,34,500.00", "1,34,500.00", "1,34,500.00", "5,83,000.00")),
LMB_EX_C1("Lamartiniere Boys", "Class 1", true, List.of("69,500.00", "34,500.00", "34,500.00", "34,500.00", "1,73,000.00")),
LMB_NEW_C1("Lamartiniere Boys", "Class 1", false, List.of("1,79,500.00", "1,34,500.00", "1,34,500.00", "1,34,500.00", "5,83,000.00")),
LMB_EX_C2("Lamartiniere Boys", "Class 2", true, List.of("64,500.00", "29,500.00", "29,500.00", "29,500.00", "1,53,000.00")),
LMB_NEW_C2("Lamartiniere Boys", "Class 2", false, List.of("1,67,000.00", "1,22,000.00", "1,22,000.00", "1,22,000.00", "5,33,000.00")),
LMB_EX_C3("Lamartiniere Boys", "Class 3", true, List.of("64,500.00", "29,500.00", "29,500.00", "29,500.00", "1,53,000.00")),
LMB_NEW_C3("Lamartiniere Boys", "Class 3", false, List.of("1,67,000.00", "1,22,000.00", "1,22,000.00", "1,22,000.00", "5,33,000.00")),
LMB_EX_C4("Lamartiniere Boys", "Class 4", true, List.of("64,500.00", "29,500.00", "29,500.00", "29,500.00", "1,53,000.00")),
LMB_NEW_C4("Lamartiniere Boys", "Class 4", false, List.of("1,67,000.00", "1,22,000.00", "1,22,000.00", "1,22,000.00", "5,33,000.00")),
LMB_EX_C5("Lamartiniere Boys", "Class 5", true, List.of("64,500.00", "29,500.00", "29,500.00", "29,500.00", "1,53,000.00")),
LMB_NEW_C5("Lamartiniere Boys", "Class 5", false, List.of("1,67,000.00", "1,22,000.00", "1,22,000.00", "1,22,000.00", "5,33,000.00")),
LMB_EX_C6("Lamartiniere Boys", "Class 6", true, List.of("64,500.00", "29,500.00", "29,500.00", "29,500.00", "1,53,000.00")),
LMB_NEW_C6("Lamartiniere Boys", "Class 6", false, List.of("1,67,000.00", "1,22,000.00", "1,22,000.00", "1,22,000.00", "5,33,000.00")),
LMB_EX_C7("Lamartiniere Boys", "Class 7", true, List.of("64,500.00", "29,500.00", "29,500.00", "29,500.00", "1,53,000.00")),
LMB_NEW_C7("Lamartiniere Boys", "Class 7", false, List.of("1,67,000.00", "1,22,000.00", "1,22,000.00", "1,22,000.00", "5,33,000.00")),
LMB_EX_C8("Lamartiniere Boys", "Class 8", true, List.of("64,500.00", "29,500.00", "29,500.00", "29,500.00", "1,53,000.00")),
LMB_NEW_C8("Lamartiniere Boys", "Class 8", false, List.of("1,67,000.00", "1,22,000.00", "1,22,000.00", "1,22,000.00", "5,33,000.00")),
LMB_EX_C9("Lamartiniere Boys", "Class 9", true, List.of("63,500.00", "28,500.00", "28,500.00", "28,500.00", "1,49,000.00")),
LMB_NEW_C9("Lamartiniere Boys", "Class 9", false, List.of("1,48,000.00", "1,01,000.00", "1,01,000.00", "1,01,000.00", "4,49,000.00")),
LMB_EX_C10("Lamartiniere Boys", "Class 10", true, List.of("63,500.00", "28,500.00", "28,500.00", "28,500.00", "1,49,000.00")),
LMB_NEW_C10("Lamartiniere Boys", "Class 10", false, List.of("1,48,000.00", "1,01,000.00", "1,01,000.00", "1,01,000.00", "4,49,000.00")),
LMB_EX_C11("Lamartiniere Boys", "Class 11", true, List.of("63,500.00", "28,500.00", "28,500.00", "28,500.00", "1,49,000.00")),
LMB_NEW_C11("Lamartiniere Boys", "Class 11", false, List.of("1,48,000.00", "1,01,000.00", "1,01,000.00", "1,01,000.00", "4,49,000.00")),
LMB_EX_C12("Lamartiniere Boys", "Class 12", true, List.of("63,500.00", "28,500.00", "28,500.00", "28,500.00", "1,49,000.00")),
LMB_NEW_C12("Lamartiniere Boys", "Class 12", false, List.of("1,48,000.00", "1,01,000.00", "1,01,000.00", "1,01,000.00", "4,49,000.00")),
// Lamartiniere Girls
LMG_EX_LN("Lamartiniere Girls", "Lower Nursery", true, List.of("69,500.00", "34,500.00", "34,500.00", "34,500.00", "1,73,000.00")),
LMG_NEW_LN("Lamartiniere Girls", "Lower Nursery", false, List.of("1,79,500.00", "1,34,500.00", "1,34,500.00", "1,34,500.00", "5,83,000.00")),
LMG_EX_UN("Lamartiniere Girls", "Upper Nursery", true, List.of("69,500.00", "34,500.00", "34,500.00", "34,500.00", "1,73,000.00")),
LMG_NEW_UN("Lamartiniere Girls", "Upper Nursery", false, List.of("1,79,500.00", "1,34,500.00", "1,34,500.00", "1,34,500.00", "5,83,000.00")),
LMG_EX_KG("Lamartiniere Girls", "Kindergarten", true, List.of("69,500.00", "34,500.00", "34,500.00", "34,500.00", "1,73,000.00")),
LMG_NEW_KG("Lamartiniere Girls", "Kindergarten", false, List.of("1,79,500.00", "1,34,500.00", "1,34,500.00", "1,34,500.00", "5,83,000.00")),
LMG_EX_C1("Lamartiniere Girls", "Class 1", true, List.of("69,500.00", "34,500.00", "34,500.00", "34,500.00", "1,73,000.00")),
LMG_NEW_C1("Lamartiniere Girls", "Class 1", false, List.of("1,79,500.00", "1,34,500.00", "1,34,500.00", "1,34,500.00", "5,83,000.00")),
LMG_EX_C2("Lamartiniere Girls", "Class 2", true, List.of("64,500.00", "29,500.00", "29,500.00", "29,500.00", "1,53,000.00")),
LMG_NEW_C2("Lamartiniere Girls", "Class 2", false, List.of("1,67,000.00", "1,22,000.00", "1,22,000.00", "1,22,000.00", "5,33,000.00")),
LMG_EX_C3("Lamartiniere Girls", "Class 3", true, List.of("64,500.00", "29,500.00", "29,500.00", "29,500.00", "1,53,000.00")),
LMG_NEW_C3("Lamartiniere Girls", "Class 3", false, List.of("1,67,000.00", "1,22,000.00", "1,22,000.00", "1,22,000.00", "5,33,000.00")),
LMG_EX_C4("Lamartiniere Girls", "Class 4", true, List.of("64,500.00", "29,500.00", "29,500.00", "29,500.00", "1,53,000.00")),
LMG_NEW_C4("Lamartiniere Girls", "Class 4", false, List.of("1,67,000.00", "1,22,000.00", "1,22,000.00", "1,22,000.00", "5,33,000.00")),
LMG_EX_C5("Lamartiniere Girls", "Class 5", true, List.of("64,500.00", "29,500.00", "29,500.00", "29,500.00", "1,53,000.00")),
LMG_NEW_C5("Lamartiniere Girls", "Class 5", false, List.of("1,67,000.00", "1,22,000.00", "1,22,000.00", "1,22,000.00", "5,33,000.00")),
LMG_EX_C6("Lamartiniere Girls", "Class 6", true, List.of("64,500.00", "29,500.00", "29,500.00", "29,500.00", "1,53,000.00")),
LMG_NEW_C6("Lamartiniere Girls", "Class 6", false, List.of("1,67,000.00", "1,22,000.00", "1,22,000.00", "1,22,000.00", "5,33,000.00")),
LMG_EX_C7("Lamartiniere Girls", "Class 7", true, List.of("64,500.00", "29,500.00", "29,500.00", "29,500.00", "1,53,000.00")),
LMG_NEW_C7("Lamartiniere Girls", "Class 7", false, List.of("1,67,000.00", "1,22,000.00", "1,22,000.00", "1,22,000.00", "5,33,000.00")),
LMG_EX_C8("Lamartiniere Girls", "Class 8", true, List.of("64,500.00", "29,500.00", "29,500.00", "29,500.00", "1,53,000.00")),
LMG_NEW_C8("Lamartiniere Girls", "Class 8", false, List.of("1,67,000.00", "1,22,000.00", "1,22,000.00", "1,22,000.00", "5,33,000.00")),
LMG_EX_C9("Lamartiniere Girls", "Class 9", true, List.of("63,500.00", "28,500.00", "28,500.00", "28,500.00", "1,49,000.00")),
LMG_NEW_C9("Lamartiniere Girls", "Class 9", false, List.of("1,48,000.00", "1,01,000.00", "1,01,000.00", "1,01,000.00", "4,49,000.00")),
LMG_EX_C10("Lamartiniere Girls", "Class 10", true, List.of("63,500.00", "28,500.00", "28,500.00", "28,500.00", "1,49,000.00")),
LMG_NEW_C10("Lamartiniere Girls", "Class 10", false, List.of("1,48,000.00", "1,01,000.00", "1,01,000.00", "1,01,000.00", "4,49,000.00")),
LMG_EX_C11("Lamartiniere Girls", "Class 11", true, List.of("63,500.00", "28,500.00", "28,500.00", "28,500.00", "1,49,000.00")),
LMG_NEW_C11("Lamartiniere Girls", "Class 11", false, List.of("1,48,000.00", "1,01,000.00", "1,01,000.00", "1,01,000.00", "4,49,000.00")),
LMG_EX_C12("Lamartiniere Girls", "Class 12", true, List.of("63,500.00", "28,500.00", "28,500.00", "28,500.00", "1,49,000.00")),
LMG_NEW_C12("Lamartiniere Girls", "Class 12", false, List.of("1,48,000.00", "1,01,000.00", "1,01,000.00", "1,01,000.00", "4,49,000.00"));
private final String schoolName;
private final String className;
private final boolean existing;
private final List<String> fees;
FEES_STRUCTURE(String schoolName, String className, boolean existing, List<String> fees) {
this.schoolName = schoolName;
this.className = className;
this.existing = existing;
this.fees = fees;
}
public static List<String> getFeesStructure (
String schoolName,
String className,
boolean existing
) {
for (FEES_STRUCTURE structure : FEES_STRUCTURE.values()) {
if (structure.getSchoolName().equals(schoolName)
&& structure.getClassName().equals(className)
&& structure.isExisting() == existing) {
return structure.getFees();
}
}
return null;
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment