feat(payouts): add domain type for PayoutId (#8395)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Kashif
2025-07-01 19:12:01 +05:30
committed by GitHub
parent 18a779f94d
commit a6e3d2c71e
58 changed files with 506 additions and 269 deletions

View File

@ -9,7 +9,7 @@ use crate::payouts::{
impl ApiEventMetric for PayoutRetrieveRequest {
fn get_api_event_type(&self) -> Option<ApiEventsType> {
Some(ApiEventsType::Payout {
payout_id: self.payout_id.clone(),
payout_id: self.payout_id.to_owned(),
})
}
}
@ -17,7 +17,7 @@ impl ApiEventMetric for PayoutRetrieveRequest {
impl ApiEventMetric for PayoutCreateRequest {
fn get_api_event_type(&self) -> Option<ApiEventsType> {
self.payout_id.as_ref().map(|id| ApiEventsType::Payout {
payout_id: id.clone(),
payout_id: id.to_owned(),
})
}
}
@ -25,7 +25,7 @@ impl ApiEventMetric for PayoutCreateRequest {
impl ApiEventMetric for PayoutCreateResponse {
fn get_api_event_type(&self) -> Option<ApiEventsType> {
Some(ApiEventsType::Payout {
payout_id: self.payout_id.clone(),
payout_id: self.payout_id.to_owned(),
})
}
}
@ -33,7 +33,7 @@ impl ApiEventMetric for PayoutCreateResponse {
impl ApiEventMetric for PayoutActionRequest {
fn get_api_event_type(&self) -> Option<ApiEventsType> {
Some(ApiEventsType::Payout {
payout_id: self.payout_id.clone(),
payout_id: self.payout_id.to_owned(),
})
}
}
@ -65,7 +65,7 @@ impl ApiEventMetric for PayoutListFilters {
impl ApiEventMetric for PayoutLinkInitiateRequest {
fn get_api_event_type(&self) -> Option<ApiEventsType> {
Some(ApiEventsType::Payout {
payout_id: self.payout_id.clone(),
payout_id: self.payout_id.to_owned(),
})
}
}