hyperswitch icon indicating copy to clipboard operation
hyperswitch copied to clipboard

feat(router): add local card networks & field in PM data in domain models

Open bsayak03 opened this issue 9 months ago • 1 comments

Type of Change

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

Description

We are adding the support for local card networks such as Pulse, Nyce, Accel and Star inside the enums Card Networks. We are also introducing a new field "secondary_card_networks" inside Payment Method Data for domain models.

Additional Changes

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

Motivation and Context

Closes https://github.com/juspay/hyperswitch-cloud/issues/8843

How did you test it?

Checklist

  • [x] I formatted the code cargo +nightly fmt --all
  • [x] I addressed lints thrown by cargo clippy
  • [ ] I reviewed the submitted code
  • [ ] I added unit tests for my changes where possible

bsayak03 avatar Mar 18 '25 09:03 bsayak03

Review changes with  SemanticDiff

Changed Files
File Status
  crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs  48% smaller
  crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs  48% smaller
  crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs  39% smaller
  crates/router/src/connector/stripe/transformers.rs  39% smaller
  api-reference-v2/openapi_spec.json  34% smaller
  api-reference/openapi_spec.json  34% smaller
  crates/hyperswitch_connectors/src/connectors/hipay/transformers.rs  34% smaller
  crates/common_enums/src/enums.rs  0% smaller
  crates/hyperswitch_domain_models/src/payment_method_data.rs  0% smaller
  crates/kgraph_utils/src/transformers.rs  0% smaller
  crates/router/src/core/payment_methods/tokenize/card_executor.rs  0% smaller
  crates/router/src/core/payment_methods/tokenize/payment_method_executor.rs  0% smaller
  crates/router/src/core/payment_methods/vault.rs  0% smaller
  crates/router/src/utils/verify_connector.rs  0% smaller
  crates/router/tests/connectors/aci.rs  0% smaller
  crates/router/tests/connectors/adyen.rs  0% smaller
  crates/router/tests/connectors/airwallex.rs  0% smaller
  crates/router/tests/connectors/fiserv.rs  0% smaller
  crates/router/tests/connectors/rapyd.rs  0% smaller
  crates/router/tests/connectors/utils.rs  0% smaller
  crates/router/tests/connectors/worldline.rs  0% smaller

semanticdiff-com[bot] avatar Mar 18 '25 09:03 semanticdiff-com[bot]