feat(payments_v2): add payment method list endpoint (#6805)

Co-authored-by: Sanchith Hegde <sanchith.hegde@juspay.in>
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Narayan Bhat
2024-12-23 15:37:16 +05:30
committed by GitHub
parent 1fc941056f
commit d4b3dbc155
45 changed files with 1307 additions and 721 deletions

View File

@ -420,7 +420,15 @@ impl ApiEventMetric for PaymentStartRedirectionRequest {
}
#[cfg(feature = "v2")]
impl ApiEventMetric for events::PaymentsCaptureResponse {
impl ApiEventMetric for payments::PaymentMethodListResponseForPayments {
// Payment id would be populated by the request
fn get_api_event_type(&self) -> Option<ApiEventsType> {
None
}
}
#[cfg(feature = "v2")]
impl ApiEventMetric for payments::PaymentsCaptureResponse {
fn get_api_event_type(&self) -> Option<ApiEventsType> {
Some(ApiEventsType::Payment {
payment_id: self.id.clone(),