mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 04:04:55 +08:00
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:
@ -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"
|
||||
|
||||
@ -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]
|
||||
|
||||
@ -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"
|
||||
|
||||
@ -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"
|
||||
|
||||
@ -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(),
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
@ -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(),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -36,6 +36,7 @@ pub enum SearchIndex {
|
||||
PaymentAttempts,
|
||||
PaymentIntents,
|
||||
Refunds,
|
||||
Disputes,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
|
||||
|
||||
Reference in New Issue
Block a user