feat(router): add webhook source verification support for multiple mca of the same connector (#1897)

This commit is contained in:
Sai Harsha Vardhan
2023-08-10 15:24:17 +05:30
committed by GitHub
parent 29f068b205
commit 3554fec1c1
10 changed files with 230 additions and 30 deletions

View File

@ -67,11 +67,13 @@ impl From<IncomingWebhookEvent> for WebhookFlow {
pub type MerchantWebhookConfig = std::collections::HashSet<IncomingWebhookEvent>;
#[derive(Clone)]
pub enum RefundIdType {
RefundId(String),
ConnectorRefundId(String),
}
#[derive(Clone)]
pub enum ObjectReferenceId {
PaymentId(payments::PaymentIdType),
RefundId(RefundIdType),