mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 00:49:42 +08:00
refactor(api_keys): use merchant_id and key_id to query the table (#939)
Signed-off-by: Chethan <chethan.rao@juspay.in>
This commit is contained in:
@ -134,10 +134,13 @@ pub struct UpdateApiKeyRequest {
|
||||
/// The response body for revoking an API Key.
|
||||
#[derive(Debug, Serialize, ToSchema)]
|
||||
pub struct RevokeApiKeyResponse {
|
||||
/// The identifier for the Merchant Account.
|
||||
#[schema(max_length = 64, example = "y3oqhf46pyzuxjbcn2giaqnb44")]
|
||||
pub merchant_id: String,
|
||||
|
||||
/// The identifier for the API Key.
|
||||
#[schema(max_length = 64, example = "5hEEqkgJUyuxgSKGArHA4mWSnX")]
|
||||
pub key_id: String,
|
||||
|
||||
/// Indicates whether the API key was revoked or not.
|
||||
#[schema(example = "true")]
|
||||
pub revoked: bool,
|
||||
|
||||
Reference in New Issue
Block a user