refactor(payments_response): remove setter from payments response (#5676)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Narayan Bhat
2024-08-26 12:19:54 +05:30
committed by GitHub
parent e98ff95b10
commit 800da6a16a
12 changed files with 507 additions and 255 deletions

View File

@ -99,9 +99,9 @@ impl ApiEventMetric for PaymentsRequest {
impl ApiEventMetric for PaymentsResponse {
fn get_api_event_type(&self) -> Option<ApiEventsType> {
self.payment_id
.clone()
.map(|payment_id| ApiEventsType::Payment { payment_id })
Some(ApiEventsType::Payment {
payment_id: self.payment_id.clone(),
})
}
}