@@ -2585,7 +2585,8 @@ public void initialize() throws Exception {
25852585 .name (name104 )//
25862586 .enableDownPayment (true )//
25872587 .disbursedAmountPercentageForDownPayment (new BigDecimal (25 ))//
2588- .enableAutoRepaymentForDownPayment (true ).daysInYearType (DaysInYearType .DAYS360 .value )//
2588+ .enableAutoRepaymentForDownPayment (true )//
2589+ .daysInYearType (DaysInYearType .DAYS360 .value )//
25892590 .daysInMonthType (DaysInMonthType .DAYS30 .value )//
25902591 .isInterestRecalculationEnabled (true )//
25912592 .preClosureInterestCalculationStrategy (1 )//
@@ -2936,6 +2937,7 @@ public void initialize() throws Exception {
29362937 TestContext .INSTANCE .set (
29372938 TestContextKey .DEFAULT_LOAN_PRODUCT_CREATE_RESPONSE_LP2_ADV_PYMNT_INTEREST_DAILY_RECALC_EMI_360_30_APPROVED_OVER_APPLIED_FLAT_CAPITALIZED_INCOME ,
29382939 responseLoanProductsRequestLP2ProgressiveAdvPymnt36030InterestRecalcApprovedOverAppliedFlatCapitalizedIncome );
2940+
29392941 // LP2 with progressive loan schedule + horizontal + interest EMI + 360/30
29402942 // + interest recalculation=false, buy down fees enabled
29412943 final String name114 = DefaultLoanProduct .LP2_PROGRESSIVE_ADVANCED_PAYMENT_ALLOCATION_BUYDOWN_FEES .getName ();
@@ -2953,6 +2955,27 @@ public void initialize() throws Exception {
29532955 .createLoanProduct (loanProductsRequestLP2ProgressiveAdvPaymentBuyDownFees ).execute ();
29542956 TestContext .INSTANCE .set (TestContextKey .DEFAULT_LOAN_PRODUCT_CREATE_RESPONSE_LP2_PROGRESSIVE_ADV_PYMNT_BUYDOWN_FEES ,
29552957 responseLoanProductsRequestLP2ProgressiveAdvPaymentBuyDownFees );
2958+
2959+ // LP2 + interest recalculation + zero-interest chargeOff behaviour + progressive loan schedule + horizontal
2960+ // (LP2_ADV_PYMNT_360_30_INTEREST_RECALC_AUTO_DOWNPAYMENT_ZERO_INTEREST_CHARGE_OFF_ACCRUAL_ACTIVITY)
2961+ final String name115 = DefaultLoanProduct .LP2_ADV_PYMNT_360_30_INTEREST_RECALC_AUTO_DOWNPAYMENT_ZERO_INTEREST_CHARGE_OFF_ACCRUAL_ACTIVITY
2962+ .getName ();
2963+ final PostLoanProductsRequest loanProductsRequestAdvInterestRecalculationAutoDownpaymentZeroInterestChargeOffBehaviourAccrualActivity = loanProductsRequestFactory
2964+ .defaultLoanProductsRequestLP2InterestDailyRecalculation ()//
2965+ .name (name115 )//
2966+ .enableDownPayment (true )//
2967+ .disbursedAmountPercentageForDownPayment (new BigDecimal (25 ))//
2968+ .enableAutoRepaymentForDownPayment (true )//
2969+ .paymentAllocation (List .of (//
2970+ createPaymentAllocation ("DEFAULT" , "NEXT_INSTALLMENT" )))
2971+ .enableAccrualActivityPosting (true )//
2972+ .chargeOffBehaviour ("ZERO_INTEREST" );//
2973+ final Response <PostLoanProductsResponse > responseLoanProductsRequestAdvInterestRecalculationAutoDownpaymentZeroInterestChargeOffBehaviourAccrualActivity = loanProductsApi
2974+ .createLoanProduct (loanProductsRequestAdvInterestRecalculationAutoDownpaymentZeroInterestChargeOffBehaviourAccrualActivity )
2975+ .execute ();
2976+ TestContext .INSTANCE .set (
2977+ TestContextKey .DEFAULT_LOAN_PRODUCT_CREATE_RESPONSE_LP2_ADV_PYMNT_360_30_INTEREST_RECALC_AUTO_DOWNPAYMENT_ZERO_INTEREST_CHARGE_OFF_ACCRUAL_ACTIVITY ,
2978+ responseLoanProductsRequestAdvInterestRecalculationAutoDownpaymentZeroInterestChargeOffBehaviourAccrualActivity );
29562979 }
29572980
29582981 public static AdvancedPaymentData createPaymentAllocation (String transactionType , String futureInstallmentAllocationRule ,
0 commit comments