Skip to content

Conversation

@alessandrobellesia
Copy link
Member

@alessandrobellesia alessandrobellesia commented Dec 3, 2025

[0.0.4] - 2025-12-03

Changed

  • BREAKING: Session API aligned with official Satispay documentation
    • Changed type field to operation in session events
    • Changed SessionEventType enum to SessionEventOperation
    • Replaced 'ADD_ITEM' | 'REMOVE_ITEM' | 'UPDATE_TOTAL' with 'ADD' | 'REMOVE'
    • Removed UPDATE_TOTAL operation (not supported by Satispay API)
    • Made currency field mandatory in SessionEventCreateBody

Added

  • E2E tests for fund lock payment creation

Fixed

  • Session types and operations now match official Satispay API specification
  • Corrected Session examples in README and examples/pos-session.ts
  • Corrected Pre-Authorized Payment Tokens documentation in README
  • Removed duplicate "Create a Payment" section from README

Alessandro Bellesia and others added 2 commits December 3, 2025 20:47
fix!: align Session API with official Satispay specification

BREAKING CHANGE: Session event operations updated

- Changed `type` → `operation` in session events
- Changed `SessionEventType` → `SessionEventOperation`
- Replaced 'ADD_ITEM'/'REMOVE_ITEM' with 'ADD'/'REMOVE'
- Removed 'UPDATE_TOTAL' operation (not supported by API)
- Made `currency` field mandatory in SessionEventCreateBody
- Fixed Pre-Authorized Payment Tokens documentation
- Removed duplicate "Create a Payment" section in README
- Added E2E tests for fund lock payments
@coderabbitai
Copy link

coderabbitai bot commented Dec 3, 2025

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch develop

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@codecov
Copy link

codecov bot commented Dec 3, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 3, 2025

@alessandrobellesia alessandrobellesia merged commit 67dd824 into main Dec 3, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants