chore(connector_events_fields): added refund_id, dispute_id to connector events (#3424)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Co-authored-by: Sampras Lopes <lsampras@pm.me>
This commit is contained in:
ivor-juspay
2024-01-31 17:09:35 +05:30
committed by GitHub
parent 757534104e
commit 90a24625ce
19 changed files with 85 additions and 18 deletions

View File

@ -1,11 +1,6 @@
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[serde(tag = "type")]
pub enum QueryType {
Payment { payment_id: String },
}
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
pub struct ConnectorEventsRequest {
#[serde(flatten)]
pub query_param: QueryType,
pub payment_id: String,
pub refund_id: Option<String>,
pub dispute_id: Option<String>,
}