mirror of
https://github.com/aljazceru/cdk.git
synced 2026-01-05 05:55:30 +01:00
* feat: implement secondary repayment queue for any-amount invoices - Keep original immediate payment behavior for ALL invoices (fixed and any-amount) - Add secondary repayment queue that randomly repays any-amount invoices again - Secondary repayments occur at random intervals between 30 seconds and 3 minutes - Only any-amount invoices (amount=0) are added to secondary repayment queue - Each any-amount invoice gets paid twice: once immediately, once from secondary queue - Queue has configurable max size with LRU eviction policy - Add comprehensive tests and update documentation * test: add test for multiple payment verification - Add test to verify that secondary repayment system creates multiple payments - Test checks that immediate payment is received first - Demonstrates the dual payment system working correctly