chore(merchant_account): remove api_key field (#713)

This commit is contained in:
Sanchith Hegde
2023-03-13 14:31:20 +05:30
committed by GitHub
parent 16bc886c77
commit 230fcdd4e1
14 changed files with 22 additions and 110 deletions

View File

@ -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>,