mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 17:47:54 +08:00
feat(core): Add support for process tracker retrieve api in v2 (#7602)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -21,7 +21,8 @@ pub mod diesel_exports {
|
||||
DbDisputeStatus as DisputeStatus, DbFraudCheckStatus as FraudCheckStatus,
|
||||
DbFutureUsage as FutureUsage, DbIntentStatus as IntentStatus,
|
||||
DbMandateStatus as MandateStatus, DbPaymentMethodIssuerCode as PaymentMethodIssuerCode,
|
||||
DbPaymentType as PaymentType, DbRefundStatus as RefundStatus,
|
||||
DbPaymentType as PaymentType, DbProcessTrackerStatus as ProcessTrackerStatus,
|
||||
DbRefundStatus as RefundStatus,
|
||||
DbRequestIncrementalAuthorization as RequestIncrementalAuthorization,
|
||||
DbScaExemptionType as ScaExemptionType,
|
||||
DbSuccessBasedRoutingConclusiveState as SuccessBasedRoutingConclusiveState,
|
||||
@ -6980,6 +6981,7 @@ pub enum Resource {
|
||||
ReconReports,
|
||||
RunRecon,
|
||||
ReconConfig,
|
||||
RevenueRecovery,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Copy, Eq, PartialEq, Ord, PartialOrd, serde::Serialize, Hash)]
|
||||
@ -7819,6 +7821,60 @@ pub enum TriggeredBy {
|
||||
External,
|
||||
}
|
||||
|
||||
#[derive(
|
||||
Clone,
|
||||
Copy,
|
||||
Debug,
|
||||
Eq,
|
||||
PartialEq,
|
||||
serde::Deserialize,
|
||||
serde::Serialize,
|
||||
strum::Display,
|
||||
strum::EnumString,
|
||||
ToSchema,
|
||||
)]
|
||||
#[router_derive::diesel_enum(storage_type = "db_enum")]
|
||||
#[serde(rename_all = "snake_case")]
|
||||
#[strum(serialize_all = "snake_case")]
|
||||
pub enum ProcessTrackerStatus {
|
||||
// Picked by the producer
|
||||
Processing,
|
||||
// State when the task is added
|
||||
New,
|
||||
// Send to retry
|
||||
Pending,
|
||||
// Picked by consumer
|
||||
ProcessStarted,
|
||||
// Finished by consumer
|
||||
Finish,
|
||||
// Review the task
|
||||
Review,
|
||||
}
|
||||
|
||||
#[derive(
|
||||
serde::Serialize,
|
||||
serde::Deserialize,
|
||||
Clone,
|
||||
Copy,
|
||||
Debug,
|
||||
PartialEq,
|
||||
Eq,
|
||||
strum::EnumString,
|
||||
strum::Display,
|
||||
)]
|
||||
#[serde(rename_all = "SCREAMING_SNAKE_CASE")]
|
||||
#[strum(serialize_all = "SCREAMING_SNAKE_CASE")]
|
||||
pub enum ProcessTrackerRunner {
|
||||
PaymentsSyncWorkflow,
|
||||
RefundWorkflowRouter,
|
||||
DeleteTokenizeDataWorkflow,
|
||||
ApiKeyExpiryWorkflow,
|
||||
OutgoingWebhookRetryWorkflow,
|
||||
AttachPayoutAccountWorkflow,
|
||||
PaymentMethodStatusUpdateWorkflow,
|
||||
PassiveRecoveryWorkflow,
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub enum CryptoPadding {
|
||||
PKCS7,
|
||||
|
||||
Reference in New Issue
Block a user