mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 19:46:48 +08:00
fix(merchant_account_v2): remove compatible_connector field in metadata (#5935)
This commit is contained in:
@ -188,7 +188,7 @@ pub struct MerchantAccountCreate {
|
||||
|
||||
/// Metadata is useful for storing additional, unstructured information about the merchant account.
|
||||
#[schema(value_type = Option<Object>, example = r#"{ "city": "NY", "unit": "245" }"#)]
|
||||
pub metadata: Option<MerchantAccountMetadata>,
|
||||
pub metadata: Option<pii::SecretSerdeValue>,
|
||||
|
||||
/// The id of the organization to which the merchant belongs to. Please use the organization endpoint to create an organization
|
||||
#[schema(value_type = String, max_length = 64, min_length = 1, example = "org_q98uSGAYbjEwqs0mJwnz")]
|
||||
@ -210,15 +210,6 @@ impl MerchantAccountCreate {
|
||||
.transpose()
|
||||
}
|
||||
|
||||
pub fn get_metadata_as_secret(
|
||||
&self,
|
||||
) -> CustomResult<Option<pii::SecretSerdeValue>, errors::ParsingError> {
|
||||
self.metadata
|
||||
.as_ref()
|
||||
.map(|metadata| metadata.encode_to_value().map(Secret::new))
|
||||
.transpose()
|
||||
}
|
||||
|
||||
pub fn get_primary_details_as_value(
|
||||
&self,
|
||||
) -> CustomResult<serde_json::Value, errors::ParsingError> {
|
||||
|
||||
Reference in New Issue
Block a user