feat(revenue_recovery): Implement redis API to update the lock status for connector customer id (#9403)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
AdityaWNL
2025-09-18 20:18:01 +05:30
committed by GitHub
parent 1c0fc496d1
commit 1d23e28a17
4 changed files with 68 additions and 2 deletions

View File

@ -23,6 +23,11 @@ pub struct RevenueRecoveryBackfillRequest {
pub daily_retry_history: Option<String>,
}
#[derive(Debug, Serialize)]
pub struct UnlockStatusResponse {
pub unlocked: bool,
}
#[derive(Debug, Serialize)]
pub struct RevenueRecoveryDataBackfillResponse {
pub processed_records: usize,
@ -59,6 +64,12 @@ impl ApiEventMetric for RevenueRecoveryDataBackfillResponse {
}
}
impl ApiEventMetric for UnlockStatusResponse {
fn get_api_event_type(&self) -> Option<common_utils::events::ApiEventsType> {
Some(common_utils::events::ApiEventsType::Miscellaneous)
}
}
impl ApiEventMetric for CsvParsingResult {
fn get_api_event_type(&self) -> Option<common_utils::events::ApiEventsType> {
Some(common_utils::events::ApiEventsType::Miscellaneous)