mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 01:27:31 +08:00
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:
@ -1,14 +1,14 @@
|
||||
#[cfg(feature = "olap")]
|
||||
use async_bb8_diesel::{AsyncConnection, AsyncRunQueryDsl};
|
||||
use common_utils::ext_traits::Encode;
|
||||
#[cfg(feature = "olap")]
|
||||
use diesel::{associations::HasTable, ExpressionMethods, QueryDsl};
|
||||
#[cfg(all(
|
||||
feature = "olap",
|
||||
any(feature = "v1", feature = "v2"),
|
||||
not(feature = "customer_v2")
|
||||
))]
|
||||
use diesel::JoinOnDsl;
|
||||
#[cfg(feature = "olap")]
|
||||
use diesel::{associations::HasTable, ExpressionMethods, NullableExpressionMethods, QueryDsl};
|
||||
use diesel::{JoinOnDsl, NullableExpressionMethods};
|
||||
#[cfg(feature = "olap")]
|
||||
use diesel_models::{
|
||||
customers::Customer as DieselCustomer, query::generics::db_metrics,
|
||||
@ -47,12 +47,15 @@ use router_env::logger;
|
||||
use router_env::{instrument, tracing};
|
||||
|
||||
#[cfg(feature = "olap")]
|
||||
use crate::{
|
||||
connection,
|
||||
store::schema::{
|
||||
customers::all_columns as cust_all_columns, payout_attempt::all_columns as poa_all_columns,
|
||||
payouts::all_columns as po_all_columns,
|
||||
},
|
||||
use crate::connection;
|
||||
#[cfg(all(
|
||||
feature = "olap",
|
||||
any(feature = "v1", feature = "v2"),
|
||||
not(feature = "customer_v2")
|
||||
))]
|
||||
use crate::store::schema::{
|
||||
customers::all_columns as cust_all_columns, payout_attempt::all_columns as poa_all_columns,
|
||||
payouts::all_columns as po_all_columns,
|
||||
};
|
||||
use crate::{
|
||||
diesel_error_to_data_error,
|
||||
|
||||
Reference in New Issue
Block a user