mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 19:46:48 +08:00
feat(billing): add support to configure billing processor in profile (#9438)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -2210,6 +2210,10 @@ pub struct ProfileCreate {
|
||||
|
||||
/// External Vault Connector Details
|
||||
pub external_vault_connector_details: Option<ExternalVaultConnectorDetails>,
|
||||
|
||||
/// Merchant Connector id to be stored for billing_processor connector
|
||||
#[schema(value_type = Option<String>)]
|
||||
pub billing_processor_id: Option<id_type::MerchantConnectorAccountId>,
|
||||
}
|
||||
|
||||
#[nutype::nutype(
|
||||
@ -2367,6 +2371,10 @@ pub struct ProfileCreate {
|
||||
/// Enable split payments, i.e., split the amount between multiple payment methods
|
||||
#[schema(value_type = Option<SplitTxnsEnabled>, default = "skip")]
|
||||
pub split_txns_enabled: Option<common_enums::SplitTxnsEnabled>,
|
||||
|
||||
/// Merchant Connector id to be stored for billing_processor connector
|
||||
#[schema(value_type = Option<String>)]
|
||||
pub billing_processor_id: Option<id_type::MerchantConnectorAccountId>,
|
||||
}
|
||||
|
||||
#[cfg(feature = "v1")]
|
||||
@ -2567,6 +2575,10 @@ pub struct ProfileResponse {
|
||||
|
||||
/// External Vault Connector Details
|
||||
pub external_vault_connector_details: Option<ExternalVaultConnectorDetails>,
|
||||
|
||||
/// Merchant Connector id to be stored for billing_processor connector
|
||||
#[schema(value_type = Option<String>)]
|
||||
pub billing_processor_id: Option<id_type::MerchantConnectorAccountId>,
|
||||
}
|
||||
|
||||
#[cfg(feature = "v2")]
|
||||
@ -2737,6 +2749,10 @@ pub struct ProfileResponse {
|
||||
#[schema(value_type = Option<RevenueRecoveryAlgorithmType>, example = "cascading")]
|
||||
pub revenue_recovery_retry_algorithm_type:
|
||||
Option<common_enums::enums::RevenueRecoveryAlgorithmType>,
|
||||
|
||||
/// Merchant Connector id to be stored for billing_processor connector
|
||||
#[schema(value_type = Option<String>)]
|
||||
pub billing_processor_id: Option<id_type::MerchantConnectorAccountId>,
|
||||
}
|
||||
|
||||
#[cfg(feature = "v1")]
|
||||
@ -2927,6 +2943,10 @@ pub struct ProfileUpdate {
|
||||
|
||||
/// External Vault Connector Details
|
||||
pub external_vault_connector_details: Option<ExternalVaultConnectorDetails>,
|
||||
|
||||
/// Merchant Connector id to be stored for billing_processor connector
|
||||
#[schema(value_type = Option<String>)]
|
||||
pub billing_processor_id: Option<id_type::MerchantConnectorAccountId>,
|
||||
}
|
||||
|
||||
#[cfg(feature = "v2")]
|
||||
@ -3079,6 +3099,10 @@ pub struct ProfileUpdate {
|
||||
/// Enable split payments, i.e., split the amount between multiple payment methods
|
||||
#[schema(value_type = Option<SplitTxnsEnabled>, default = "skip")]
|
||||
pub split_txns_enabled: Option<common_enums::SplitTxnsEnabled>,
|
||||
|
||||
/// Merchant Connector id to be stored for billing_processor connector
|
||||
#[schema(value_type = Option<String>)]
|
||||
pub billing_processor_id: Option<id_type::MerchantConnectorAccountId>,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize, ToSchema)]
|
||||
|
||||
Reference in New Issue
Block a user