feat: add a kv switch route for merchants (#518)

This commit is contained in:
Nishant Joshi
2023-02-09 19:18:18 +05:30
committed by GitHub
parent 3292960996
commit 763620fcc7
6 changed files with 158 additions and 1 deletions

View File

@ -340,3 +340,20 @@ pub struct DeleteMcaResponse {
#[schema(example = false)]
pub deleted: bool,
}
#[derive(Debug, Clone, Serialize, Deserialize, ToSchema)]
pub struct ToggleKVResponse {
/// The identifier for the Merchant Account
#[schema(max_length = 255, example = "y3oqhf46pyzuxjbcn2giaqnb44")]
pub merchant_id: String,
/// Status of KV for the specific merchant
#[schema(example = true)]
pub kv_enabled: bool,
}
#[derive(Debug, Clone, Serialize, Deserialize, ToSchema)]
pub struct ToggleKVRequest {
/// Status of KV for the specific merchant
#[schema(example = true)]
pub kv_enabled: bool,
}