hyperswitch
hyperswitch copied to clipboard
feat(connector/BILLWERK): add integrity check support for Authorize, PSync, Refund and RSync flows
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
amountandcurrencyfields to both theBillwerkPaymentsResponseandRefundResponsestructs. - Made the
amountandcurrencyfield public inBillwerkPaymentsRequest,BillwerkPaymentsResponseandRefundResponsestructs.
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
Changed Files
| File | Status |
|---|---|