feat(customer_v2): customer v2 refactor customer v2 update endpoint (#5490)

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>
This commit is contained in:
Sahkal Poddar
2024-08-14 14:56:34 +05:30
committed by GitHub
parent 8bcda2cea4
commit 17703fe2cb
28 changed files with 1813 additions and 768 deletions

View File

@ -232,7 +232,8 @@ pub async fn list_payment_method_api(
#[cfg(all(
any(feature = "v2", feature = "v1"),
not(feature = "payment_methods_v2")
not(feature = "payment_methods_v2"),
not(feature = "customer_v2")
))]
/// List payment methods for a Customer
///
@ -355,7 +356,11 @@ pub async fn list_customer_payment_method_for_payment(
.await
}
#[cfg(all(feature = "v2", feature = "payment_methods_v2"))]
#[cfg(all(
feature = "v2",
feature = "payment_methods_v2",
feature = "customer_v2"
))]
/// List payment methods for a Customer v2
///
/// To filter and list the applicable payment methods for a particular Customer ID, to be used in a non-payments context
@ -418,7 +423,8 @@ pub async fn list_customer_payment_method_api(
#[cfg(all(
any(feature = "v2", feature = "v1"),
not(feature = "payment_methods_v2")
not(feature = "payment_methods_v2"),
not(feature = "customer_v2")
))]
/// List payment methods for a Customer
///