Added scheduled job to mark stale payment transactions for reversal
This can happen if there are multiple payments on the cart and some of them are declined. Then, the customer steps away and doesn’t return to fix the declined payments. This job will kick off a process to reverse the authorizations or make refunds as appropriate for the non-declined payments.
Added ability to trigger a ScheduledJob manually from the Admin UI
ScheduledJobRef, which Spring Cloud Message listeners use to handle triggered jobs
In support of the previous, added
previousLastExecuted to ScheduledJob domain.
ScheduledJobRef is sent to external services to trigger jobs after the last executed date is updated to
Therefore, we actually need to store the previous
lastExecuted time before we change it.
This is for triggered-job handlers that want to use the
lastExecuted time as a boundary when fetching entities from the datastore.
Fixed: Possible NPE when deserializing a ScheduledJob from the DB because the details list was not initialized
Fixed: Scheduled Jobs running for all tenants instead of only the one they belong to.