feat(payouts): implement KVRouterStore (#3889)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Co-authored-by: Kashif <mohammed.kashif@juspay.in>
This commit is contained in:
octicon-git-branch(16/)
octicon-tag(16/)
Kashif
2024-03-19 15:33:37 +05:30
committed by GitHub
gitea-unlock(16/)
parent 3eb464250e
commit 944089d691
octicon-diff(16/tw-mr-1) 59 changed files with 2176 additions and 782 deletions

10
crates/router/src/core/admin.rs
View File

@@ -206,7 +206,10 @@ pub async fn create_merchant_account(
modified_at: date_time::now(),
intent_fulfillment_time: None,
frm_routing_algorithm: req.frm_routing_algorithm,
#[cfg(feature = "payouts")]
payout_routing_algorithm: req.payout_routing_algorithm,
#[cfg(not(feature = "payouts"))]
payout_routing_algorithm: None,
id: None,
organization_id,
is_recon_enabled: false,
@@ -432,6 +435,7 @@ pub async fn update_business_profile_cascade(
routing_algorithm: None,
intent_fulfillment_time: None,
frm_routing_algorithm: None,
#[cfg(feature = "payouts")]
payout_routing_algorithm: None,
applepay_verified_domains: None,
payment_link_config: None,
@@ -589,7 +593,10 @@ pub async fn merchant_account_update(
primary_business_details,
frm_routing_algorithm: req.frm_routing_algorithm,
intent_fulfillment_time: None,
#[cfg(feature = "payouts")]
payout_routing_algorithm: req.payout_routing_algorithm,
#[cfg(not(feature = "payouts"))]
payout_routing_algorithm: None,
default_profile: business_profile_id_update,
payment_link_config: None,
};
@@ -1661,7 +1668,10 @@ pub async fn update_business_profile(
routing_algorithm: request.routing_algorithm,
intent_fulfillment_time: request.intent_fulfillment_time.map(i64::from),
frm_routing_algorithm: request.frm_routing_algorithm,
#[cfg(feature = "payouts")]
payout_routing_algorithm: request.payout_routing_algorithm,
#[cfg(not(feature = "payouts"))]
payout_routing_algorithm: None,
is_recon_enabled: None,
applepay_verified_domains: request.applepay_verified_domains,
payment_link_config,