FINERACT-2181: Added test cases to cover MIR scenarios where last installment principal got updated to null
This commit is contained in:
committed by
Adam Saghy
parent
74d079bc3d
commit
5aa4afb87c
+37
-1
@@ -30,4 +30,40 @@ Feature: MerchantIssuedRefund
|
||||
| 28 May 2025 | Accrual | 0.11 | 0.0 | 0.11 | 0.0 | 0.0 | 0.0 | false | false |
|
||||
| 28 May 2025 | Merchant Issued Refund | 187.99 | 176.4 | 1.6 | 0.0 | 2.8 | 0.0 | false | true |
|
||||
| 28 May 2025 | Accrual Activity | 3.12 | 0.0 | 0.32 | 0.0 | 2.8 | 0.0 | false | true |
|
||||
| 28 May 2025 | Accrual | 2.8 | 0.0 | 0.0 | 0.0 | 2.8 | 0.0 | false | false |
|
||||
| 28 May 2025 | Accrual | 2.8 | 0.0 | 0.0 | 0.0 | 2.8 | 0.0 | false | false |
|
||||
|
||||
@TestRailId:C3774
|
||||
Scenario: Verify that the MIR works correctly when last installment principal got updated to null - 360/30
|
||||
When Admin sets the business date to "09 November 2024"
|
||||
And Admin creates a client with random data
|
||||
And Admin set "LP2_ADV_PYMNT_INTEREST_DAILY_INT_RECALCULATION_ZERO_INT_CHARGE_OFF_INT_RECOGNITION_FROM_DISB_DATE" loan product "MERCHANT_ISSUED_REFUND" transaction type to "LAST_INSTALLMENT" future installment allocation rule
|
||||
And Admin creates a fully customized loan with the following data:
|
||||
| LoanProduct | submitted on date | with Principal | ANNUAL interest rate % | interest type | interest calculation period | amortization type | loanTermFrequency | loanTermFrequencyType | repaymentEvery | repaymentFrequencyType | numberOfRepayments | graceOnPrincipalPayment | graceOnInterestPayment | interest free period | Payment strategy |
|
||||
| LP2_ADV_PYMNT_INTEREST_DAILY_INT_RECALCULATION_ZERO_INT_CHARGE_OFF_INT_RECOGNITION_FROM_DISB_DATE | 09 November 2024 | 600 | 11.99 | DECLINING_BALANCE | DAILY | EQUAL_INSTALLMENTS | 24 | MONTHS | 1 | MONTHS | 24 | 0 | 0 | 0 | ADVANCED_PAYMENT_ALLOCATION |
|
||||
And Admin successfully approves the loan on "09 November 2024" with "600" amount and expected disbursement date on "09 November 2024"
|
||||
And Admin successfully disburse the loan on "09 November 2024" with "600" EUR transaction amount
|
||||
And Admin sets the business date to "09 June 2025"
|
||||
And Customer makes "AUTOPAY" repayment on "09 June 2025" with 10 EUR transaction amount
|
||||
And Admin sets the business date to "10 June 2025"
|
||||
And Admin does charge-off the loan on "10 June 2025"
|
||||
And Customer makes "AUTOPAY" repayment on "09 June 2025" with 187.68 EUR transaction amount
|
||||
Then Customer makes "MERCHANT_ISSUED_REFUND" transaction with "AUTOPAY" payment type on "10 June 2025" with 100 EUR transaction amount and system-generated Idempotency key
|
||||
And Admin set "LP2_ADV_PYMNT_INTEREST_DAILY_INT_RECALCULATION_ZERO_INT_CHARGE_OFF_INT_RECOGNITION_FROM_DISB_DATE" loan product "MERCHANT_ISSUED_REFUND" transaction type to "NEXT_INSTALLMENT" future installment allocation rule
|
||||
|
||||
@TestRailId:C3775
|
||||
Scenario: Verify that the MIR works correctly when last installment principal got updated to null - Actual/Actual
|
||||
When Admin sets the business date to "09 November 2024"
|
||||
And Admin creates a client with random data
|
||||
And Admin set "LP2_ADV_PYMNT_INT_DAILY_EMI_ACTUAL_ACTUAL_INT_REFUND_FULL_ZERO_INT_CHARGE_OFF" loan product "MERCHANT_ISSUED_REFUND" transaction type to "LAST_INSTALLMENT" future installment allocation rule
|
||||
And Admin creates a fully customized loan with the following data:
|
||||
| LoanProduct | submitted on date | with Principal | ANNUAL interest rate % | interest type | interest calculation period | amortization type | loanTermFrequency | loanTermFrequencyType | repaymentEvery | repaymentFrequencyType | numberOfRepayments | graceOnPrincipalPayment | graceOnInterestPayment | interest free period | Payment strategy |
|
||||
| LP2_ADV_PYMNT_INT_DAILY_EMI_ACTUAL_ACTUAL_INT_REFUND_FULL_ZERO_INT_CHARGE_OFF | 09 November 2024 | 600 | 11.99 | DECLINING_BALANCE | DAILY | EQUAL_INSTALLMENTS | 24 | MONTHS | 1 | MONTHS | 24 | 0 | 0 | 0 | ADVANCED_PAYMENT_ALLOCATION |
|
||||
And Admin successfully approves the loan on "09 November 2024" with "600" amount and expected disbursement date on "09 November 2024"
|
||||
And Admin successfully disburse the loan on "09 November 2024" with "600" EUR transaction amount
|
||||
And Admin sets the business date to "09 June 2025"
|
||||
And Customer makes "AUTOPAY" repayment on "09 June 2025" with 10 EUR transaction amount
|
||||
And Admin sets the business date to "10 June 2025"
|
||||
And Admin does charge-off the loan on "10 June 2025"
|
||||
And Customer makes "AUTOPAY" repayment on "09 June 2025" with 187.68 EUR transaction amount
|
||||
Then Customer makes "MERCHANT_ISSUED_REFUND" transaction with "AUTOPAY" payment type on "10 June 2025" with 100 EUR transaction amount and system-generated Idempotency key
|
||||
And Admin set "LP2_ADV_PYMNT_INT_DAILY_EMI_ACTUAL_ACTUAL_INT_REFUND_FULL_ZERO_INT_CHARGE_OFF" loan product "MERCHANT_ISSUED_REFUND" transaction type to "NEXT_INSTALLMENT" future installment allocation rule
|
||||
|
||||
Reference in New Issue
Block a user