-
Notifications
You must be signed in to change notification settings - Fork 3.9k
refactor(connector): Move connector mappings and endpoints to dedicated modules #8562
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
Conversation
Changed Files
|
9a2f2a4
to
474a85b
Compare
4500dc6
to
49a1bdf
Compare
f9618b7
to
ead9ad5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit(naming): Could have called this connector configs rather. Optional change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this module at all? Where is this module (the re-exports from this module) being accessed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
its imported in the hyperswitch_connectors crate.
We can also access it directly via the domain model, but isn't it better to access it through the interface?
2378aac
2378aac
to
2545a46
Compare
c02f932
a39688c
to
c02f932
Compare
…ayload-webhooks * 'main' of github.com:juspay/hyperswitch: refactor(connector): Move connector mappings and endpoints to dedicated modules (#8562) ci(cypress): fix `hipay` test cases (#8563) chore(version): 2025.07.09.0 fix(payment_method): update entity id used for Vault to global customer id (#8380) refactor(routing): add conditional check for invoking DE routing flows (#8559) feat(connector): [AUTHIPAY] Integrate cards non 3ds payments (#8266) ci(cypress): add payu connector (#8567) feat(connector): [silverflow] template code (#8553) chore(version): 2025.07.08.0 feat(cypress): [worldpayvantiv] add cypress test (#8234) feat(connectors): [worldpayvantiv] add connector mandate support (#8546) feat(connector): [Celero] add Connector Template Code (#8489) feat(payment-methods): create payment_token in vault confirm / do payment-confirm with temp token from session (#8525) ci(cypress): Add Tsys,Square cypress test (#8543) chore(version): 2025.07.07.0
Type of Change
Description
1)Renamed configs.rs → connector_endpoints.rs in hyperswitch_domain_models
2)Moved connector mapping logic from types/api.rs to new types/api/connector_mapping.rs
3)Created new types/connector_transformers.rs for connector transformation logic
4)Extracted connector transformer implementations from types/transformers.rs
Additional Changes
Motivation and Context
How did you test it?
No testing was required here; only code refactoring was done.
Cypress checks should cover this
Checklist
cargo +nightly fmt --all
cargo clippy