@@ -4058,6 +4058,39 @@ public void initialize() throws Exception {
40584058 TestContextKey .DEFAULT_LOAN_PRODUCT_CREATE_RESPONSE_LP2_ADV_CUSTOM_PMT_ALLOC_PROGRESSIVE_INTEREST_DAILY_EMI_360_30_INTEREST_RECALCULATION_DAILY ,
40594059 responseLoanProductsResponseAdvCustomPaymentAllocationProgressiveLoanInterestDailyEmi36030InterestRecalculationDaily );
40604060
4061+ // LP2 with progressive loan schedule + horizontal + interest EMI + 360/30 + multidisbursement +
4062+ // contract termination with interest recognition
4063+ // (LP2_ADV_PYMNT_INTEREST_DAILY_INTEREST_RECALCULATION_CONTRACT_TERMINATION_INT_RECOGNITION)
4064+ final String name148 = DefaultLoanProduct .LP2_ADV_PYMNT_INTEREST_DAILY_INTEREST_RECALCULATION_CONTRACT_TERMINATION_INT_RECOGNITION
4065+ .getName ();
4066+
4067+ final PostLoanProductsRequest loanProductsRequestAdvCustomContractTerminationProgressiveLoanScheduleIntRecalcRecog = loanProductsRequestFactory
4068+ .defaultLoanProductsRequestLP2InterestDailyRecalculation ()//
4069+ .interestRecognitionOnDisbursementDate (true ) //
4070+ .name (name148 )//
4071+ .paymentAllocation (List .of (//
4072+ createPaymentAllocation ("DEFAULT" , "NEXT_INSTALLMENT" ,
4073+ LoanProductPaymentAllocationRule .AllocationTypesEnum .PAST_DUE_PENALTY , //
4074+ LoanProductPaymentAllocationRule .AllocationTypesEnum .PAST_DUE_FEE , //
4075+ LoanProductPaymentAllocationRule .AllocationTypesEnum .PAST_DUE_INTEREST , //
4076+ LoanProductPaymentAllocationRule .AllocationTypesEnum .PAST_DUE_PRINCIPAL , //
4077+ LoanProductPaymentAllocationRule .AllocationTypesEnum .DUE_PENALTY , //
4078+ LoanProductPaymentAllocationRule .AllocationTypesEnum .DUE_FEE , //
4079+ LoanProductPaymentAllocationRule .AllocationTypesEnum .DUE_PRINCIPAL , //
4080+ LoanProductPaymentAllocationRule .AllocationTypesEnum .DUE_INTEREST , //
4081+ LoanProductPaymentAllocationRule .AllocationTypesEnum .IN_ADVANCE_PENALTY , //
4082+ LoanProductPaymentAllocationRule .AllocationTypesEnum .IN_ADVANCE_FEE , //
4083+ LoanProductPaymentAllocationRule .AllocationTypesEnum .IN_ADVANCE_PRINCIPAL , //
4084+ LoanProductPaymentAllocationRule .AllocationTypesEnum .IN_ADVANCE_INTEREST ), //
4085+ createPaymentAllocation ("GOODWILL_CREDIT" , "LAST_INSTALLMENT" ), //
4086+ createPaymentAllocation ("MERCHANT_ISSUED_REFUND" , "REAMORTIZATION" ), //
4087+ createPaymentAllocation ("PAYOUT_REFUND" , "NEXT_INSTALLMENT" )));//
4088+ final Response <PostLoanProductsResponse > responseLoanProductsRequestAdvCustomContractTerminationProgressiveLoanScheduleIntRecalcRecog = loanProductsApi
4089+ .createLoanProduct (loanProductsRequestAdvCustomContractTerminationProgressiveLoanScheduleIntRecalcRecog ).execute ();
4090+ TestContext .INSTANCE .set (
4091+ TestContextKey .DEFAULT_LOAN_PRODUCT_CREATE_RESPONSE_LP2_ADV_PYMNT_INTEREST_DAILY_INTEREST_RECALCULATION_CONTRACT_TERMINATION_INT_RECOGNITION ,
4092+ responseLoanProductsRequestAdvCustomContractTerminationProgressiveLoanScheduleIntRecalcRecog );
4093+
40614094 // (LP1_WITH_OVERRIDES) - Loan product with all attribute overrides ENABLED
40624095 final String nameWithOverrides = DefaultLoanProduct .LP1_WITH_OVERRIDES .getName ();
40634096 final PostLoanProductsRequest loanProductsRequestWithOverrides = loanProductsRequestFactory .defaultLoanProductsRequestLP1 () //
@@ -4106,12 +4139,13 @@ public void initialize() throws Exception {
41064139 .execute ();
41074140 TestContext .INSTANCE .set (TestContextKey .DEFAULT_LOAN_PRODUCT_CREATE_RESPONSE_LP1_NO_OVERRIDES , responseNoOverrides );
41084141
4109- // LP2 advanced + progressive loan schedule + horizontal + interest recalculation
4142+ // LP2 advanced custom payment allocation + progressive loan schedule + horizontal + interest recalculation
41104143 // Frequency for recalculate Outstanding Principal: Daily, Frequency Interval for recalculation: 1
4111- String name148 = DefaultLoanProduct .LP2_ADV_INTEREST_DAILY_EMI_ACTUAL_ACTUAL_INTEREST_RECALC_ZERO_CHARGE_OF_ACCRUAL .getName ();
4112- PostLoanProductsRequest loanProductsResponseAdvCustomPaymentAllocationProgressiveLoanInterestDailyEmiActualInterestRecalcZeroChargeOffChargebackAccruals = loanProductsRequestFactory
4144+ String name149 = DefaultLoanProduct .LP2_ADV_CUSTOM_PMT_ALLOC_INTEREST_DAILY_EMI_ACTUAL_ACTUAL_INTEREST_RECALC_ZERO_CHARGE_OFF_ACCRUAL
4145+ .getName ();
4146+ PostLoanProductsRequest loanProductsResponseAdvCustomPaymentAllocationProgressiveLoanInterestDailyEmiActualInterestRecalcZeroChargeOffAccruals = loanProductsRequestFactory
41134147 .defaultLoanProductsRequestLP2Emi ()//
4114- .name (name148 )//
4148+ .name (name149 )//
41154149 .supportedInterestRefundTypes (supportedInterestRefundTypes ).installmentAmountInMultiplesOf (null ) //
41164150 .daysInYearType (DaysInYearType .ACTUAL .value )//
41174151 .daysInMonthType (DaysInMonthType .ACTUAL .value )//
@@ -4124,22 +4158,24 @@ public void initialize() throws Exception {
41244158 .enableAccrualActivityPosting (true ) //
41254159 .chargeOffBehaviour (ZERO_INTEREST .value )//
41264160 .paymentAllocation (List .of (//
4127- createPaymentAllocation ("DEFAULT" , "NEXT_INSTALLMENT" ))); //
4128- Response <PostLoanProductsResponse > responseLoanProductsResponseAdvCustomPaymentAllocationProgressiveLoanInterestDailyEmiActualInterestRecalcZeroChargeOffChargebackAccruals = loanProductsApi
4161+ createPaymentAllocation ("DEFAULT" , "NEXT_INSTALLMENT" ), //
4162+ createPaymentAllocation ("GOODWILL_CREDIT" , "LAST_INSTALLMENT" ), //
4163+ createPaymentAllocation ("MERCHANT_ISSUED_REFUND" , "REAMORTIZATION" ), //
4164+ createPaymentAllocation ("PAYOUT_REFUND" , "NEXT_INSTALLMENT" ))); //
4165+ Response <PostLoanProductsResponse > responseLoanProductsResponseAdvCustomPaymentAllocationProgressiveLoanInterestDailyEmiActualInterestRecalcZeroChargeOffAccruals = loanProductsApi
41294166 .createLoanProduct (
4130- loanProductsResponseAdvCustomPaymentAllocationProgressiveLoanInterestDailyEmiActualInterestRecalcZeroChargeOffChargebackAccruals )
4167+ loanProductsResponseAdvCustomPaymentAllocationProgressiveLoanInterestDailyEmiActualInterestRecalcZeroChargeOffAccruals )
41314168 .execute ();
41324169 TestContext .INSTANCE .set (
4133- TestContextKey .DEFAULT_LOAN_PRODUCT_CREATE_RESPONSE_LP2_ADV_INTEREST_DAILY_EMI_ACTUAL_ACTUAL_INTEREST_RECALC_ZERO_CHARGE_OF_ACCRUAL ,
4134- responseLoanProductsResponseAdvCustomPaymentAllocationProgressiveLoanInterestDailyEmiActualInterestRecalcZeroChargeOffChargebackAccruals );
4170+ TestContextKey .DEFAULT_LOAN_PRODUCT_CREATE_RESPONSE_LP2_ADV_CUSTOM_PMT_ALLOC_INTEREST_DAILY_EMI_ACTUAL_ACTUAL_INTEREST_RECALC_ZERO_CHARGE_OFF_ACCRUAL ,
4171+ responseLoanProductsResponseAdvCustomPaymentAllocationProgressiveLoanInterestDailyEmiActualInterestRecalcZeroChargeOffAccruals );
41354172
4136- // LP2 advanced custom payment allocation + progressive loan schedule + horizontal + interest recalculation
4173+ // LP2 advanced + progressive loan schedule + horizontal + interest recalculation
41374174 // Frequency for recalculate Outstanding Principal: Daily, Frequency Interval for recalculation: 1
4138- String name149 = DefaultLoanProduct .LP2_ADV_CUSTOM_PMT_ALLOC_INTEREST_DAILY_EMI_ACTUAL_ACTUAL_INTEREST_RECALC_ZERO_CHARGE_OFF_ACCRUAL
4139- .getName ();
4140- PostLoanProductsRequest loanProductsResponseAdvCustomPaymentAllocationProgressiveLoanInterestDailyEmiActualInterestRecalcZeroChargeOffAccruals = loanProductsRequestFactory
4175+ String name150 = DefaultLoanProduct .LP2_ADV_INTEREST_DAILY_EMI_ACTUAL_ACTUAL_INTEREST_RECALC_ZERO_CHARGE_OF_ACCRUAL .getName ();
4176+ PostLoanProductsRequest loanProductsResponseAdvCustomPaymentAllocationProgressiveLoanInterestDailyEmiActualInterestRecalcZeroChargeOffChargebackAccruals = loanProductsRequestFactory
41414177 .defaultLoanProductsRequestLP2Emi ()//
4142- .name (name149 )//
4178+ .name (name150 )//
41434179 .supportedInterestRefundTypes (supportedInterestRefundTypes ).installmentAmountInMultiplesOf (null ) //
41444180 .daysInYearType (DaysInYearType .ACTUAL .value )//
41454181 .daysInMonthType (DaysInMonthType .ACTUAL .value )//
@@ -4152,17 +4188,14 @@ public void initialize() throws Exception {
41524188 .enableAccrualActivityPosting (true ) //
41534189 .chargeOffBehaviour (ZERO_INTEREST .value )//
41544190 .paymentAllocation (List .of (//
4155- createPaymentAllocation ("DEFAULT" , "NEXT_INSTALLMENT" ), //
4156- createPaymentAllocation ("GOODWILL_CREDIT" , "LAST_INSTALLMENT" ), //
4157- createPaymentAllocation ("MERCHANT_ISSUED_REFUND" , "REAMORTIZATION" ), //
4158- createPaymentAllocation ("PAYOUT_REFUND" , "NEXT_INSTALLMENT" ))); //
4159- Response <PostLoanProductsResponse > responseLoanProductsResponseAdvCustomPaymentAllocationProgressiveLoanInterestDailyEmiActualInterestRecalcZeroChargeOffAccruals = loanProductsApi
4191+ createPaymentAllocation ("DEFAULT" , "NEXT_INSTALLMENT" ))); //
4192+ Response <PostLoanProductsResponse > responseLoanProductsResponseAdvCustomPaymentAllocationProgressiveLoanInterestDailyEmiActualInterestRecalcZeroChargeOffChargebackAccruals = loanProductsApi
41604193 .createLoanProduct (
4161- loanProductsResponseAdvCustomPaymentAllocationProgressiveLoanInterestDailyEmiActualInterestRecalcZeroChargeOffAccruals )
4194+ loanProductsResponseAdvCustomPaymentAllocationProgressiveLoanInterestDailyEmiActualInterestRecalcZeroChargeOffChargebackAccruals )
41624195 .execute ();
41634196 TestContext .INSTANCE .set (
4164- TestContextKey .DEFAULT_LOAN_PRODUCT_CREATE_RESPONSE_LP2_ADV_CUSTOM_PMT_ALLOC_INTEREST_DAILY_EMI_ACTUAL_ACTUAL_INTEREST_RECALC_ZERO_CHARGE_OFF_ACCRUAL ,
4165- responseLoanProductsResponseAdvCustomPaymentAllocationProgressiveLoanInterestDailyEmiActualInterestRecalcZeroChargeOffAccruals );
4197+ TestContextKey .DEFAULT_LOAN_PRODUCT_CREATE_RESPONSE_LP2_ADV_INTEREST_DAILY_EMI_ACTUAL_ACTUAL_INTEREST_RECALC_ZERO_CHARGE_OF_ACCRUAL ,
4198+ responseLoanProductsResponseAdvCustomPaymentAllocationProgressiveLoanInterestDailyEmiActualInterestRecalcZeroChargeOffChargebackAccruals );
41664199 }
41674200
41684201 public static AdvancedPaymentData createPaymentAllocation (String transactionType , String futureInstallmentAllocationRule ,
0 commit comments