@@ -3361,6 +3361,67 @@ public void initialize() throws Exception {
33613361 TestContextKey .DEFAULT_LOAN_PRODUCT_CREATE_RESPONSE_LP2_PROGRESSIVE_ADV_PYMNT_BUYDOWN_FEES_CHARGE_OFF_REASON ,
33623362 responseLoanProductsRequestLP2ProgressiveAdvPaymentBuyDownFeesWithChargeOffReason );
33633363
3364+ // LP2 with progressive loan schedule + horizontal + interest EMI + 360/30
3365+ // + interest recalculation, preClosureInterestCalculationStrategy= till preclose,
3366+ // Frequency for recalculate Outstanding Principal: Daily, Frequency Interval for recalculation: 1
3367+ // capitalized income enabled; allow approved/disbursed amount over applied amount is enabled with percentage
3368+ // type
3369+ final String name129 = DefaultLoanProduct .LP2_ADV_PYMNT_INTEREST_DAILY_RECALC_EMI_360_30_MULTIDISB_APPROVED_OVER_APPLIED_CAPITALIZED_INCOME
3370+ .getName ();
3371+ final PostLoanProductsRequest loanProductsRequestLP2ProgressiveAdvPymnt36030InterestRecalcMultidisbApprovedOverAppliedCapitalizedIncome = loanProductsRequestFactory
3372+ .defaultLoanProductsRequestLP2EmiCapitalizedIncome ()//
3373+ .name (name129 )//
3374+ .daysInYearType (DaysInYearType .DAYS360 .value )//
3375+ .daysInMonthType (DaysInMonthType .DAYS30 .value )//
3376+ .isInterestRecalculationEnabled (true )//
3377+ .preClosureInterestCalculationStrategy (1 )//
3378+ .rescheduleStrategyMethod (4 )//
3379+ .interestRecalculationCompoundingMethod (0 )//
3380+ .recalculationRestFrequencyType (2 )//
3381+ .recalculationRestFrequencyInterval (1 )//
3382+ .paymentAllocation (List .of (//
3383+ createPaymentAllocation ("DEFAULT" , "NEXT_INSTALLMENT" ), //
3384+ createPaymentAllocation ("GOODWILL_CREDIT" , "LAST_INSTALLMENT" ), //
3385+ createPaymentAllocation ("MERCHANT_ISSUED_REFUND" , "REAMORTIZATION" ), //
3386+ createPaymentAllocation ("PAYOUT_REFUND" , "NEXT_INSTALLMENT" ))) //
3387+ .allowApprovedDisbursedAmountsOverApplied (true )//
3388+ .overAppliedCalculationType (OverAppliedCalculationType .PERCENTAGE .value )//
3389+ .overAppliedNumber (50 )//
3390+ .multiDisburseLoan (true )//
3391+ .disallowExpectedDisbursements (true )//
3392+ .maxTrancheCount (10 )//
3393+ .outstandingLoanBalance (10000.0 );//
3394+ final Response <PostLoanProductsResponse > responseLoanProductsRequestLP2ProgressiveAdvPymnt36030InterestRecalcMultidisbApprovedOverAppliedCapitalizedIncome = loanProductsApi
3395+ .createLoanProduct (
3396+ loanProductsRequestLP2ProgressiveAdvPymnt36030InterestRecalcMultidisbApprovedOverAppliedCapitalizedIncome )
3397+ .execute ();
3398+ TestContext .INSTANCE .set (
3399+ TestContextKey .DEFAULT_LOAN_PRODUCT_CREATE_RESPONSE_LP2_ADV_PYMNT_INTEREST_DAILY_RECALC_EMI_360_30_MULTIDISB_APPROVED_OVER_APPLIED_CAPITALIZED_INCOME ,
3400+ responseLoanProductsRequestLP2ProgressiveAdvPymnt36030InterestRecalcMultidisbApprovedOverAppliedCapitalizedIncome );
3401+
3402+ // LP1 with new due-penalty-fee-interest-principal-in-advance-principal-penalty-fee-interest-strategy payment
3403+ // strategy and with 12% FLAT interest
3404+ // multidisbursal that expects tranche(s)
3405+ // (LP1_PAYMENT_STRATEGY_DUE_IN_ADVANCE_INTEREST_FLAT)
3406+ String name130 = DefaultLoanProduct .LP1_MULTIDISBURSAL_EXPECTS_TRANCHES .getName ();
3407+ PostLoanProductsRequest loanProductsRequestMultidisbursalExpectTranches = loanProductsRequestFactory
3408+ // .defaultLoanProductsRequestLP1InterestFlat()//
3409+ // .interestType(INTEREST_TYPE_DECLINING_BALANCE)//
3410+ .defaultLoanProductsRequestLP1 () //
3411+ .interestCalculationPeriodType (0 )//
3412+ // .allowApprovedDisbursedAmountsOverApplied(false)//
3413+ .name (name130 )//
3414+ .transactionProcessingStrategyCode (
3415+ TransactionProcessingStrategyCode .DUE_PENALTY_FEE_INTEREST_PRINCIPAL_IN_ADVANCE_PRINCIPAL_PENALTY_FEE_INTEREST .value )//
3416+ .multiDisburseLoan (true )//
3417+ .disallowExpectedDisbursements (false )//
3418+ .maxTrancheCount (10 )//
3419+ .outstandingLoanBalance (10000.0 );//
3420+ Response <PostLoanProductsResponse > responseLoanProductMultidisbursalExpectTranches = loanProductsApi
3421+ .createLoanProduct (loanProductsRequestMultidisbursalExpectTranches ).execute ();
3422+ TestContext .INSTANCE .set (TestContextKey .DEFAULT_LOAN_PRODUCT_CREATE_RESPONSE_LP1_MULTIDISBURSAL_EXPECTS_TRANCHES ,
3423+ responseLoanProductMultidisbursalExpectTranches );
3424+
33643425 }
33653426
33663427 public static AdvancedPaymentData createPaymentAllocation (String transactionType , String futureInstallmentAllocationRule ,
0 commit comments