hyperswitch icon indicating copy to clipboard operation
hyperswitch copied to clipboard

refactor: [Mollie] Remove Default Case Handling

Open davidkurilla opened this issue 1 year ago • 1 comments

Type of Change

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

Description

Refactor mollie connector default match cases. Default match arm now accounts for all enum variants in its case rather than default _ case. This PR closes Issue #4055

Additional Changes

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

Motivation and Context

This change refactors the default case handling in the mollie connector of the router crate. This change encourages developers to cover all enum variants rather than rely on default _ case.

How did you test it?

Checklist

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

davidkurilla avatar May 03 '24 19:05 davidkurilla

@davidkurilla Could you please address the merge conflicts?

SanchithHegde avatar May 08 '24 09:05 SanchithHegde