feat: add a domain type for customer_id (#4705)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Narayan Bhat
2024-05-30 16:19:10 +05:30
committed by GitHub
parent f192fa3866
commit 93d61d1053
106 changed files with 1150 additions and 490 deletions

View File

@ -1,6 +1,8 @@
use common_enums::{PaymentMethod, PaymentMethodType};
use serde::Serialize;
use crate::id_type;
pub trait ApiEventMetric {
fn get_api_event_type(&self) -> Option<ApiEventsType> {
None
@ -24,7 +26,7 @@ pub enum ApiEventsType {
payment_method_type: Option<PaymentMethodType>,
},
Customer {
customer_id: String,
customer_id: id_type::CustomerId,
},
User {
//specified merchant_id will overridden on global defined