Manage sequence type with rejected payments

If all previous payments are rejected, the sequence type must be FRST.

issue4317
review6641002
Allow to re-generate message of payment group

issue4316
review14631002