mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 04:04:55 +08:00
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:
@ -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 }
|
||||
|
||||
@ -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,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user