feat(events): add incoming webhook payload to api events logger (#2852)

Co-authored-by: Sampras lopes <lsampras@pm.me>
This commit is contained in:
Prasunna Soppa
2023-11-17 13:38:23 +05:30
committed by GitHub
parent 375108b6df
commit aea390a6a1
65 changed files with 259 additions and 202 deletions

View File

@ -54,6 +54,9 @@ pub enum AuthenticationType {
PublishableKey {
merchant_id: String,
},
WebhookAuth {
merchant_id: String,
},
NoAuth,
}
@ -69,7 +72,8 @@ impl AuthenticationType {
| Self::MerchantJWT {
merchant_id,
user_id: _,
} => Some(merchant_id.as_ref()),
}
| Self::WebhookAuth { merchant_id } => Some(merchant_id.as_ref()),
Self::AdminApiKey | Self::NoAuth => None,
}
}