feat(core): add profile level config for debit routing feature#7470
Merged
likhinbopanna merged 14 commits intomainfrom Mar 26, 2025
Merged
feat(core): add profile level config for debit routing feature#7470likhinbopanna merged 14 commits intomainfrom
likhinbopanna merged 14 commits intomainfrom
Conversation
Changed Files
|
…hyperswitch into add-debit-routing-profile-config
…hyperswitch into add-debit-routing-profile-config
crates/api_models/src/admin.rs
Outdated
|
|
||
| /// Indicates if debit routing is enabled or not | ||
| #[serde(default)] | ||
| pub is_debit_routing_enabled: bool, |
Contributor
There was a problem hiding this comment.
We should not make is as none if merchant has not passed the field, because we won't get to know whether merchant has sent the field or not. Instead we should have this as Optional boolean in api_models and make it as default false in the domain models.
7e51546 to
b006c99
Compare
e0a1137 to
25dc4bc
Compare
crates/api_models/src/admin.rs
Outdated
Contributor
There was a problem hiding this comment.
Add a documentation comment about the field
crates/api_models/src/admin.rs
Outdated
crates/api_models/src/admin.rs
Outdated
crates/api_models/src/admin.rs
Outdated
Contributor
There was a problem hiding this comment.
ALTER TABLE business_profile
ADD COLUMN IF NOT EXISTS merchant_business_country "CountryAlpha2" DEFAULT NULL;
25dc4bc to
4418cdb
Compare
d749b10 to
9f68b0c
Compare
eb661be to
5aa3432
Compare
3e7a657 to
e4368b2
Compare
Comment on lines
-444
to
-450
| pub routing_algorithm_id: Option<common_utils::id_type::RoutingId>, | ||
| pub order_fulfillment_time: Option<i64>, | ||
| pub order_fulfillment_time_origin: Option<common_enums::OrderFulfillmentTimeOrigin>, | ||
| pub frm_routing_algorithm_id: Option<String>, | ||
| pub payout_routing_algorithm_id: Option<common_utils::id_type::RoutingId>, | ||
| pub default_fallback_routing: Option<pii::SecretSerdeValue>, | ||
| pub should_collect_cvv_during_payment: Option<bool>, |
Contributor
There was a problem hiding this comment.
to make the ordering in sync with the one in schema & diesel models
Comment on lines
-393
to
-400
| pub routing_algorithm_id: Option<common_utils::id_type::RoutingId>, | ||
| pub order_fulfillment_time: Option<i64>, | ||
| pub order_fulfillment_time_origin: Option<common_enums::OrderFulfillmentTimeOrigin>, | ||
| pub frm_routing_algorithm_id: Option<String>, | ||
| pub payout_routing_algorithm_id: Option<common_utils::id_type::RoutingId>, | ||
| pub default_fallback_routing: Option<pii::SecretSerdeValue>, | ||
| pub should_collect_cvv_during_payment: bool, | ||
| pub id: common_utils::id_type::ProfileId, |
Contributor
There was a problem hiding this comment.
to make the ordering in sync with the one in schema & diesel models
sai-harsha-vardhan
approved these changes
Mar 25, 2025
ShankarSinghC
approved these changes
Mar 25, 2025
bsayak03
approved these changes
Mar 25, 2025
GauravRawat369
pushed a commit
that referenced
this pull request
Mar 27, 2025
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: Sayak Bhattacharya <sayak.b@Sayak-Bhattacharya-G092THXJ34.local> Co-authored-by: Sayak Bhattacharya <sayakofficial21@gmail.com>
pixincreate
added a commit
that referenced
this pull request
Mar 27, 2025
…e-status-check * 'main' of github.com:juspay/hyperswitch: build(docker): specify user for runner stage (#7641) chore(version): 2025.03.27.0 fix(connector): [Nexixpay] update status mapping nexixpay (#7612) refactor(connector): [TrustPay] Fix status and wasm changes (#7649) fix(connector): [redsys] psync transaction type mapping (#7628) feat(themes): Add email configuration support for themes (#7580) feat(core): add profile level config for debit routing feature (#7470) fix(connector): [CYBERSOURCE] change ucaf_collection_indicator for mastercard payments via netcetera (#7623) fix(connector): fix required fields for mandates supported connectors (#6930) chore(cypress): bump cypress to `v14.2.0` (#7640) feat(connector): [BRAINTREE] Pass connector request reference id (#7609) fix(connector): [GlobalPay] Address `5xx` when cancelling a paypal transaction (#7605) feat(dashboard_metadata): Add `ReconStatus` in `dashboard_metadata` (#7595) fix(connectors): [Adyen] remove redundant enums (#7601) feat: add routing support for v2 sdk session flow (#6763)
This was referenced May 21, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Type of Change
Description
Added is_debit_routing_enabled in profile Create req types and update Profile table
Additional Changes
Motivation and Context
How did you test it?
Request cURL :
Response :
Request cURL :
Response:
Request cURL :
Response :
Checklist
cargo +nightly fmt --allcargo clippy