feat(global-search): add dispute events index to global-search (#4068)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
ivor-juspay
2024-03-19 15:03:08 +05:30
committed by GitHub
parent 17a866a735
commit 9345379f85
7 changed files with 9 additions and 1 deletions

View File

@ -600,3 +600,4 @@ region = "eu-central-1"
payment_attempts = "hyperswitch-payment-attempt-events"
payment_intents = "hyperswitch-payment-intent-events"
refunds = "hyperswitch-refund-events"
disputes = "hyperswitch-dispute-events"

View File

@ -215,6 +215,7 @@ region = "eu-central-1"
payment_attempts = "hyperswitch-payment-attempt-events"
payment_intents = "hyperswitch-payment-intent-events"
refunds = "hyperswitch-refund-events"
disputes = "hyperswitch-dispute-events"
# This section provides some secret values.
[secrets]

View File

@ -597,3 +597,4 @@ region = "eu-central-1"
payment_attempts = "hyperswitch-payment-attempt-events"
payment_intents = "hyperswitch-payment-intent-events"
refunds = "hyperswitch-refund-events"
disputes = "hyperswitch-dispute-events"

View File

@ -455,4 +455,5 @@ region = "eu-central-1"
[opensearch.indexes]
payment_attempts = "hyperswitch-payment-attempt-events"
payment_intents = "hyperswitch-payment-intent-events"
refunds = "hyperswitch-refund-events"
refunds = "hyperswitch-refund-events"
disputes = "hyperswitch-dispute-events"

View File

@ -679,6 +679,7 @@ pub struct OpensearchIndexes {
pub payment_attempts: String,
pub payment_intents: String,
pub refunds: String,
pub disputes: String,
}
#[derive(Clone, Debug, serde::Deserialize)]
@ -700,6 +701,7 @@ impl Default for OpensearchConfig {
payment_attempts: "hyperswitch-payment-attempt-events".to_string(),
payment_intents: "hyperswitch-payment-intent-events".to_string(),
refunds: "hyperswitch-refund-events".to_string(),
disputes: "hyperswitch-dispute-events".to_string(),
},
}
}

View File

@ -34,6 +34,7 @@ pub fn search_index_to_opensearch_index(index: SearchIndex, config: &OpensearchI
SearchIndex::PaymentAttempts => config.payment_attempts.clone(),
SearchIndex::PaymentIntents => config.payment_intents.clone(),
SearchIndex::Refunds => config.refunds.clone(),
SearchIndex::Disputes => config.disputes.clone(),
}
}

View File

@ -36,6 +36,7 @@ pub enum SearchIndex {
PaymentAttempts,
PaymentIntents,
Refunds,
Disputes,
}
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]