mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 09:38:33 +08:00
feat(payouts): implement list and filter APIs (#3651)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: Kashif <mohammed.kashif@juspay.in>
This commit is contained in:
@ -1,7 +1,8 @@
|
||||
use common_utils::events::{ApiEventMetric, ApiEventsType};
|
||||
|
||||
use crate::payouts::{
|
||||
PayoutActionRequest, PayoutCreateRequest, PayoutCreateResponse, PayoutRetrieveRequest,
|
||||
PayoutActionRequest, PayoutCreateRequest, PayoutCreateResponse, PayoutListConstraints,
|
||||
PayoutListFilterConstraints, PayoutListFilters, PayoutListResponse, PayoutRetrieveRequest,
|
||||
};
|
||||
|
||||
impl ApiEventMetric for PayoutRetrieveRequest {
|
||||
@ -27,3 +28,27 @@ impl ApiEventMetric for PayoutActionRequest {
|
||||
Some(ApiEventsType::Payout)
|
||||
}
|
||||
}
|
||||
|
||||
impl ApiEventMetric for PayoutListConstraints {
|
||||
fn get_api_event_type(&self) -> Option<ApiEventsType> {
|
||||
Some(ApiEventsType::Payout)
|
||||
}
|
||||
}
|
||||
|
||||
impl ApiEventMetric for PayoutListFilterConstraints {
|
||||
fn get_api_event_type(&self) -> Option<ApiEventsType> {
|
||||
Some(ApiEventsType::Payout)
|
||||
}
|
||||
}
|
||||
|
||||
impl ApiEventMetric for PayoutListResponse {
|
||||
fn get_api_event_type(&self) -> Option<ApiEventsType> {
|
||||
Some(ApiEventsType::Payout)
|
||||
}
|
||||
}
|
||||
|
||||
impl ApiEventMetric for PayoutListFilters {
|
||||
fn get_api_event_type(&self) -> Option<ApiEventsType> {
|
||||
Some(ApiEventsType::Payout)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user