Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(router): profile specific fallback derivation while routing payments #2806

Merged
merged 24 commits into from
Nov 13, 2023

Conversation

prajjwalkumar17
Copy link
Contributor

@prajjwalkumar17 prajjwalkumar17 commented Nov 8, 2023

Type of Change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring
  • Dependency updates
  • Documentation
  • CI/CD

Description

default-fallbacks are defined specific to profile i.e every profile will correspond to different fallbacks and while deriving the fallbacks we are doing that based on profile.

Additional Changes

  • This PR modifies the API contract
  • This PR modifies the database schema
  • This PR modifies application configuration/environment variables

Motivation and Context

How did you test it?

The tests will be same as this PR:
https://github.com/juspay/hyperswitch-cloud/pull/2949

Checklist

  • I formatted the code cargo +nightly fmt --all
  • I addressed lints thrown by cargo clippy
  • I reviewed the submitted code
  • I added unit tests for my changes where possible
  • I added a CHANGELOG entry if applicable

@prajjwalkumar17 prajjwalkumar17 added C-feature Category: Feature request or enhancement S-waiting-on-review Status: This PR has been implemented and needs to be reviewed R-waiting-on-L1 Review: Waiting on L1 reviewer R-waiting-on-L2 Review: Waiting on L2 reviewer labels Nov 8, 2023
@prajjwalkumar17 prajjwalkumar17 added this to the November 2023 Release milestone Nov 8, 2023
@prajjwalkumar17 prajjwalkumar17 self-assigned this Nov 8, 2023
@prajjwalkumar17 prajjwalkumar17 requested review from a team as code owners November 8, 2023 07:55
vspecky
vspecky previously approved these changes Nov 8, 2023
Narayanbhat166
Narayanbhat166 previously approved these changes Nov 8, 2023
let mca = state
.store
.insert_merchant_connector_account(merchant_connector_account, &key_store)
.await
.to_duplicate_response(
errors::ApiErrorResponse::DuplicateMerchantConnectorAccount {
profile_id,
profile_id: profile_id.clone(),
connector_name: req.connector_name.to_string(),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we have to use merchant_connector_id here. There can be many connectors with the same name
cc: @vspecky

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We will make this change in next PR as we have discussed.

@Aprabhat19 Aprabhat19 linked an issue Nov 10, 2023 that may be closed by this pull request
2 tasks
Narayanbhat166
Narayanbhat166 previously approved these changes Nov 10, 2023
lsampras
lsampras previously approved these changes Nov 11, 2023
Narayanbhat166
Narayanbhat166 previously approved these changes Nov 13, 2023
@tinu-hareesswar tinu-hareesswar added this pull request to the merge queue Nov 13, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 13, 2023
Copy link
Member

@lsampras lsampras left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The events generation code seems good,

@tinu-hareesswar tinu-hareesswar added this pull request to the merge queue Nov 13, 2023
Merged via the queue into main with commit 8e538db Nov 13, 2023
10 of 12 checks passed
@tinu-hareesswar tinu-hareesswar deleted the feat/profile_specific_fallback_routing branch November 13, 2023 09:40
@prajjwalkumar17 prajjwalkumar17 added A-routing Area: Routing and removed S-waiting-on-review Status: This PR has been implemented and needs to be reviewed R-waiting-on-L1 Review: Waiting on L1 reviewer R-waiting-on-L2 Review: Waiting on L2 reviewer labels Nov 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-routing Area: Routing C-feature Category: Feature request or enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] Add support for profile-specific default routing fallback
6 participants