mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 09:07:09 +08:00
fix(connector): add config cleanup on payment connector deletion (#5998)
This commit is contained in:
@ -3342,6 +3342,16 @@ pub enum PresenceOfCustomerDuringPayment {
|
||||
Absent,
|
||||
}
|
||||
|
||||
impl From<ConnectorType> for TransactionType {
|
||||
fn from(connector_type: ConnectorType) -> Self {
|
||||
match connector_type {
|
||||
#[cfg(feature = "payouts")]
|
||||
ConnectorType::PayoutProcessor => Self::Payout,
|
||||
_ => Self::Payment,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, serde::Serialize, serde::Deserialize, Default, ToSchema)]
|
||||
#[serde(rename_all = "snake_case")]
|
||||
pub enum TaxCalculationOverride {
|
||||
|
||||
Reference in New Issue
Block a user