feat(router): implement API endpoints for managing API keys (#511)

This commit is contained in:
Sanchith Hegde
2023-02-10 14:20:57 +05:30
committed by GitHub
parent 903b452146
commit 1bdc8955c2
35 changed files with 1759 additions and 99 deletions

View File

@ -390,3 +390,11 @@ pub enum WebhooksFlowError {
#[error("Webhook not received by merchant")]
NotReceivedByMerchant,
}
#[derive(Debug, thiserror::Error)]
pub enum ApiKeyError {
#[error("Failed to read API key hash from hexadecimal string")]
FailedToReadHashFromHex,
#[error("Failed to verify provided API key hash against stored API key hash")]
HashVerificationFailed,
}