Is there a way to use AL to (programmatically) match Check ledger entries in the Auto bank reconciliation process

Hello there,
I’d like to automate the Check ledger entries matching in the bank reconciliation process - currently the “AutoMatch” in the UI only works for bank account ledger type (and not for check).
Can anyone has a sample of AL code that will do the apply match for Check ledger type in the bank reconciliation?