mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-04 05:59:48 +08:00
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:
@ -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(),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user