Skip to content

[ACL-297] Enhance RefundUnion to support all refund statuses#249

Merged
tl-Roberto-Mancinelli merged 4 commits intomainfrom
feature/ACL-297-enhance-refund-union
Jul 24, 2025
Merged

[ACL-297] Enhance RefundUnion to support all refund statuses#249
tl-Roberto-Mancinelli merged 4 commits intomainfrom
feature/ACL-297-enhance-refund-union

Conversation

@federico1525
Copy link
Contributor

Summary

  • Enhanced RefundUnion to include all refund statuses: RefundExecuted and RefundFailed in addition to existing RefundPending and RefundAuthorized
  • Updated ListPaymentRefunds and GetPaymentRefund methods to support returning refunds in all possible states
  • Added comprehensive test coverage for the new refund statuses

Changes Made

  • Updated RefundUnion type definition in IPaymentsApi.cs, PaymentsApi.cs, and ListPaymentRefundsResponse.cs
  • Added unit tests for RefundExecuted and RefundFailed deserialization
  • Added ListPaymentRefundsResponse deserialization test with all 4 refund statuses
  • Added integration tests for ListPaymentRefunds with RefundExecuted and RefundFailed statuses
  • Updated CHANGELOG.md for version 1.24.0

Test plan

  • Unit tests pass for all refund status deserialization
  • Build succeeds with no errors
  • RefundUnion now supports all 4 refund statuses as per OpenAPI spec
  • ListPaymentRefunds can handle responses with RefundExecuted and RefundFailed
  • Test includes RefundFailed with "TUOYAP" reference as requested

🤖 Generated with Claude Code

- Updated RefundUnion to include RefundExecuted and RefundFailed in addition to RefundPending and RefundAuthorized
- Enhanced ListPaymentRefunds and GetPaymentRefund methods to support all refund states
- Added comprehensive unit tests for RefundExecuted and RefundFailed deserialization
- Added integration tests for ListPaymentRefunds with all refund statuses
- Updated CHANGELOG.md for v1.24.0 release
- Added test with TUOYAP reference for RefundFailed status testing

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@federico1525 federico1525 requested review from a team as code owners July 24, 2025 11:10
federico1525 and others added 3 commits July 24, 2025 12:15
- Reverted CHANGELOG.md to only include actual versions from 1.20.0 onwards
- Kept the ACL-297 RefundUnion enhancement as version 1.24.0

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Updated RefundUnion enhancement to be version 1.24.0
- Added intermediate versions 1.22.0 and 1.23.0 with placeholder entries
- Maintained all original changelog entries from 1.21.0 and earlier

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@tl-Roberto-Mancinelli tl-Roberto-Mancinelli merged commit f0b75e5 into main Jul 24, 2025
1 check passed
@tl-Roberto-Mancinelli tl-Roberto-Mancinelli deleted the feature/ACL-297-enhance-refund-union branch July 24, 2025 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants