feat(router): add requeue support for payments and fix duplicate entry error in process tracker for requeued payments (#1567)

This commit is contained in:
Sai Harsha Vardhan
2023-07-03 12:56:01 +05:30
committed by GitHub
parent 7489c870d9
commit b967d23251
18 changed files with 133 additions and 22 deletions

View File

@ -973,3 +973,23 @@ pub struct UnresolvedResponseReason {
/// A message to merchant to give hint on next action he/she should do to resolve
pub message: String,
}
#[derive(
Debug,
serde::Deserialize,
serde::Serialize,
strum::Display,
strum::EnumString,
Clone,
PartialEq,
Eq,
ToSchema,
)]
#[serde(rename_all = "snake_case")]
#[strum(serialize_all = "snake_case")]
pub enum RetryAction {
/// Payment can be retried from the client side until the payment is successful or payment expires or the attempts(configured by the merchant) for payment are exhausted
ManualRetry,
/// Denotes that the payment is requeued
Requeue,
}