mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 04:04:55 +08:00
chore(merchant_account): remove api_key field (#713)
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
use common_utils::pii;
|
||||
use masking::{Secret, StrongSecret};
|
||||
use masking::Secret;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use url;
|
||||
use utoipa::ToSchema;
|
||||
@ -18,10 +18,6 @@ pub struct MerchantAccountCreate {
|
||||
#[schema(example = "NewAge Retailer")]
|
||||
pub merchant_name: Option<String>,
|
||||
|
||||
/// API key that will be used for server side API access
|
||||
#[schema(value_type = Option<String>, example = "Ah2354543543523")]
|
||||
pub api_key: Option<StrongSecret<String>>,
|
||||
|
||||
/// Merchant related details
|
||||
pub merchant_details: Option<MerchantDetails>,
|
||||
|
||||
@ -79,10 +75,6 @@ pub struct MerchantAccountUpdate {
|
||||
#[schema(example = "NewAge Retailer")]
|
||||
pub merchant_name: Option<String>,
|
||||
|
||||
/// API key that will be used for server side API access
|
||||
#[schema(value_type = Option<String>, example = "Ah2354543543523")]
|
||||
pub api_key: Option<StrongSecret<String>>,
|
||||
|
||||
/// Merchant related details
|
||||
pub merchant_details: Option<MerchantDetails>,
|
||||
|
||||
@ -139,10 +131,6 @@ pub struct MerchantAccountResponse {
|
||||
#[schema(example = "NewAge Retailer")]
|
||||
pub merchant_name: Option<String>,
|
||||
|
||||
/// API key that will be used for server side API access
|
||||
#[schema(value_type = Option<String>, example = "Ah2354543543523")]
|
||||
pub api_key: Option<StrongSecret<String>>,
|
||||
|
||||
/// The URL to redirect after the completion of the operation
|
||||
#[schema(max_length = 255, example = "https://www.example.com/success")]
|
||||
pub return_url: Option<String>,
|
||||
|
||||
Reference in New Issue
Block a user