hyperswitch icon indicating copy to clipboard operation
hyperswitch copied to clipboard

[Refactor] Deprecate impl KakfaProducer functions and use MessageInterface instead

Open lsampras opened this issue 1 year ago • 0 comments

Remove the following functions from KafkaProducer to rely on MessageInterface instead.

pub async fn log_payment_attempt(
}

pub async fn log_payment_attempt_delete(
}

pub async fn log_payment_intent(
}

pub async fn log_payment_intent_delete(
}

pub async fn log_refund(&self, refund: &Refund, old_refund: Option<Refund>) -> MQResult<()> {
}

pub async fn log_refund_delete(&self, delete_old_refund: &Refund) -> MQResult<()> {
}

pub async fn log_dispute(
}

#[cfg(feature = "payouts")]
pub async fn log_payout(
}

#[cfg(feature = "payouts")]
pub async fn log_payout_delete(&self, delete_old_payout: &KafkaPayout<'_>) -> MQResult<()> {
}

https://github.com/juspay/hyperswitch/blob/main/crates/router/src/services/kafka.rs#L265-L386

lsampras avatar Apr 29 '24 14:04 lsampras