mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 19:46:48 +08:00
feat(mca): Add new auth_type and a status field for mca (#2883)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
@ -609,6 +609,9 @@ pub struct MerchantConnectorCreate {
|
||||
pub profile_id: Option<String>,
|
||||
|
||||
pub pm_auth_config: Option<serde_json::Value>,
|
||||
|
||||
#[schema(value_type = ConnectorStatus, example = "inactive")]
|
||||
pub status: Option<api_enums::ConnectorStatus>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Serialize, Deserialize, ToSchema)]
|
||||
@ -714,6 +717,9 @@ pub struct MerchantConnectorResponse {
|
||||
pub applepay_verified_domains: Option<Vec<String>>,
|
||||
|
||||
pub pm_auth_config: Option<serde_json::Value>,
|
||||
|
||||
#[schema(value_type = ConnectorStatus, example = "inactive")]
|
||||
pub status: api_enums::ConnectorStatus,
|
||||
}
|
||||
|
||||
/// Create a new Merchant Connector for the merchant account. The connector could be a payment processor / facilitator / acquirer or specialized services like Fraud / Accounting etc."
|
||||
@ -788,6 +794,9 @@ pub struct MerchantConnectorUpdate {
|
||||
pub connector_webhook_details: Option<MerchantConnectorWebhookDetails>,
|
||||
|
||||
pub pm_auth_config: Option<serde_json::Value>,
|
||||
|
||||
#[schema(value_type = ConnectorStatus, example = "inactive")]
|
||||
pub status: Option<api_enums::ConnectorStatus>,
|
||||
}
|
||||
|
||||
///Details of FrmConfigs are mentioned here... it should be passed in payment connector create api call, and stored in merchant_connector_table
|
||||
|
||||
Reference in New Issue
Block a user