mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-03 13:30:39 +08:00
feat(drainer): added drainer which reads from redis stream and executes queries on DB (#142)
This commit is contained in:
@ -31,7 +31,17 @@ pub struct PaymentIntent {
|
||||
pub client_secret: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, Default, Eq, PartialEq, Insertable, router_derive::DebugAsDisplay)]
|
||||
#[derive(
|
||||
Clone,
|
||||
Debug,
|
||||
Default,
|
||||
Eq,
|
||||
PartialEq,
|
||||
Insertable,
|
||||
router_derive::DebugAsDisplay,
|
||||
Serialize,
|
||||
Deserialize,
|
||||
)]
|
||||
#[diesel(table_name = payment_intent)]
|
||||
pub struct PaymentIntentNew {
|
||||
pub payment_id: String,
|
||||
@ -57,7 +67,7 @@ pub struct PaymentIntentNew {
|
||||
pub off_session: Option<bool>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
pub enum PaymentIntentUpdate {
|
||||
ResponseUpdate {
|
||||
status: storage_enums::IntentStatus,
|
||||
|
||||
Reference in New Issue
Block a user