fix(connector): add config cleanup on payment connector deletion (#5998)

This commit is contained in:
Noa
2024-12-06 12:58:36 +05:00
committed by GitHub
parent d75625f11d
commit 512ae85c81
2 changed files with 150 additions and 1 deletions

View File

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