hyperswitch icon indicating copy to clipboard operation
hyperswitch copied to clipboard

feat(connector/BILLWERK): add integrity check support for Authorize, PSync, Refund and RSync flows

Open akileshas opened this issue 2 months ago • 1 comments

Type of Change

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

Description

For the BILLWERK connector, i have implemented the integrity checks for Authorize, PSync, RSync, Capture, and Refund flows by using the respective integrity object functions ( get_authorise_integrity_object for Authorize, get_sync_integrity_object for Payments Sync, get_refund_integrity_object for Refund and RSync and get_capture_integrity_object for Capture ) from the utils.

TL;DR Changelog:

  • Added amount and currency fields to both the BillwerkPaymentsResponse and RefundResponse structs.
  • Made the amount and currency field public in BillwerkPaymentsRequest, BillwerkPaymentsResponse and RefundResponse structs.

Additional Changes

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

Motivation and Context

Verifies the integrity between different flows. Resolves: #9150 Mentor: @bsayak03

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
  • [x] I added unit tests for my changes where possible

akileshas avatar Oct 23 '25 09:10 akileshas

Review changes with  SemanticDiff

Changed Files
File Status
  crates/hyperswitch_connectors/src/connectors/billwerk.rs  28% smaller
  crates/hyperswitch_connectors/src/connectors/billwerk/transformers.rs  5% smaller

semanticdiff-com[bot] avatar Oct 23 '25 09:10 semanticdiff-com[bot]