Return request lifecycle

Events

EventDescription
receivedReturn request has been received from the bank.
sentReturn request has been sent to the bank.
acceptedReturn request has been accepted by the bank.
deniedReturn request has been denied.
pending_retryReturn request file has been rejected by the bank. The return request will be sent in a new file.
retriedReturn request has been sent in a new file.
rejectedReturn request has been rejected.

Statuses

Status Description
receivedReturn request has been received from the bank.
pendingReturn request has been created and is pending being sent.
sentReturn request has been sent to the bank.
acceptedReturn request has been accepted. A return request accepted triggers a return.
deniedReturn request has been denied.
pending_retryReturn request file has been rejected by the bank. The return request will be sent in a new file.
rejectedReturn request has been rejected.

State machine