mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 21:07:58 +08:00
feat(refunds_v2): Add refund create core flow (#7619)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -1,9 +1,13 @@
|
||||
use common_utils::events::{ApiEventMetric, ApiEventsType};
|
||||
|
||||
#[cfg(feature = "v1")]
|
||||
use crate::refunds::RefundRequest;
|
||||
#[cfg(feature = "v2")]
|
||||
use crate::refunds::RefundsCreateRequest;
|
||||
use crate::refunds::{
|
||||
RefundAggregateResponse, RefundListFilters, RefundListMetaData, RefundListRequest,
|
||||
RefundListResponse, RefundManualUpdateRequest, RefundRequest, RefundResponse,
|
||||
RefundUpdateRequest, RefundsRetrieveRequest,
|
||||
RefundListResponse, RefundManualUpdateRequest, RefundResponse, RefundUpdateRequest,
|
||||
RefundsRetrieveRequest,
|
||||
};
|
||||
|
||||
#[cfg(feature = "v1")]
|
||||
@ -19,6 +23,13 @@ impl ApiEventMetric for RefundRequest {
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "v2")]
|
||||
impl ApiEventMetric for RefundsCreateRequest {
|
||||
fn get_api_event_type(&self) -> Option<ApiEventsType> {
|
||||
None
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "v1")]
|
||||
impl ApiEventMetric for RefundResponse {
|
||||
fn get_api_event_type(&self) -> Option<ApiEventsType> {
|
||||
|
||||
Reference in New Issue
Block a user