Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

897 B
Raw Blame
//! Refunds V2 interface

use hyperswitch_domain_models::{
    router_data_v2::flow_common_types::RefundFlowData,
    router_flow_types::refunds::{Execute, RSync, VoidPostRefund},
    router_request_types::RefundsData,
    router_response_types::RefundsResponseData,
};

use crate::api::{ConnectorCommon, ConnectorIntegrationV2};

/// trait RefundExecuteV2
pub trait RefundExecuteV2:
    ConnectorIntegrationV2<Execute, RefundFlowData, RefundsData, RefundsResponseData>
{
}

/// trait RefundSyncV2
pub trait RefundSyncV2:
    ConnectorIntegrationV2<RSync, RefundFlowData, RefundsData, RefundsResponseData>
{
}

/// trait RefundVoidPostRefundV2
pub trait RefundVoidPostRefundV2:
    ConnectorIntegrationV2<VoidPostRefund, RefundFlowData, RefundsData, RefundsResponseData>
{
}

/// trait RefundV2
pub trait RefundV2:
    ConnectorCommon + RefundExecuteV2 + RefundSyncV2 + RefundVoidPostRefundV2
{
}