feat(customer_v2): add route for customer retrieve v2 (#5516)

Co-authored-by: Narayan Bhat <narayan.bhat@juspay.in>
Co-authored-by: hrithikesh026 <hrithikesh.vm@juspay.in>
Co-authored-by: Prajjwal Kumar <prajjwal.kumar@juspay.in>
Co-authored-by: Sanchith Hegde <sanchith.hegde@juspay.in>
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Co-authored-by: Sahkal Poddar <sahkalpoddar@Sahkals-MacBook-Air.local>
This commit is contained in:
Sahkal Poddar
2024-08-22 20:24:56 +05:30
committed by GitHub
parent ca40e06f8f
commit 914cab0d7b
14 changed files with 247 additions and 74 deletions

View File

@ -8,6 +8,7 @@ readme = "README.md"
license.workspace = true
[features]
default = ["v1"]
keymanager = ["dep:router_env"]
keymanager_mtls = ["reqwest/rustls-tls"]
encryption_service = ["dep:router_env"]
@ -16,6 +17,9 @@ async_ext = ["dep:async-trait", "dep:futures"]
logs = ["dep:router_env"]
metrics = ["dep:router_env", "dep:futures"]
payouts = ["common_enums/payouts"]
v1 = []
v2 = []
customer_v2 = []
[dependencies]
async-trait = { version = "0.1.79", optional = true }

View File

@ -27,6 +27,11 @@ pub enum ApiEventsType {
payment_method: Option<PaymentMethod>,
payment_method_type: Option<PaymentMethodType>,
},
#[cfg(all(feature = "v2", feature = "customer_v2"))]
Customer {
id: String,
},
#[cfg(all(any(feature = "v1", feature = "v2"), not(feature = "customer_v2")))]
Customer {
customer_id: id_type::CustomerId,
},