Skip to content

Conversation

@alessandrobellesia
Copy link
Member

Major features:

  • Add Report API for payment/fee report generation (CSV, PDF, XLSX)
  • Add Session API for POS integration with fund lock payments
  • Extend Payment API with meal voucher and fringe benefits parameters
  • Support euro-to-cent amount conversion in Payment.create() and Payment.update()
  • Accept Date objects in Payment.all() for starting_after_timestamp parameter

API classes:

  • Report: create(), all(), get() for merchant-level reports
  • Session: open(), get(), update(), createEvent() for POS sessions
  • Enhanced Payment types with meal_voucher_max_amount_unit and meal_voucher_max_quantity

TypeScript:

  • Add ReportType, ReportFormatType, ReportStatus types
  • Add SessionStatus, SessionEventType types
  • Extend PaymentCreateBody and PaymentUpdateBody with meal voucher support
  • Make amount/amount_unit mutually exclusive in payment types

Testing:

  • Add 23 new unit tests for Report and Session classes (163 total passing)
  • Add E2E test suite for staging environment integration testing
  • Add setup helper functions for E2E test configuration
  • Improve test coverage with edge cases and error handling

Documentation:

  • Update CHANGELOG.md with comprehensive feature list
  • Add examples for reports (reports.ts) and POS sessions (pos-session.ts)
  • Update README with Reports, Sessions, and Meal Voucher sections

Fixes:

  • Change Environment type from 'test' to 'staging' for consistency
  • Fix Payment.all() return type from 'list' to 'data' (API compliance)
  • Add proper SSL verification disable for staging environment

Alessandro Bellesia added 2 commits December 1, 2025 22:51
Major features:
- Add Report API for payment/fee report generation (CSV, PDF, XLSX)
- Add Session API for POS integration with fund lock payments
- Extend Payment API with meal voucher and fringe benefits parameters
- Support euro-to-cent amount conversion in Payment.create() and Payment.update()
- Accept Date objects in Payment.all() for starting_after_timestamp parameter

API classes:
- Report: create(), all(), get() for merchant-level reports
- Session: open(), get(), update(), createEvent() for POS sessions
- Enhanced Payment types with meal_voucher_max_amount_unit and meal_voucher_max_quantity

TypeScript:
- Add ReportType, ReportFormatType, ReportStatus types
- Add SessionStatus, SessionEventType types
- Extend PaymentCreateBody and PaymentUpdateBody with meal voucher support
- Make amount/amount_unit mutually exclusive in payment types

Testing:
- Add 23 new unit tests for Report and Session classes (163 total passing)
- Add E2E test suite for staging environment integration testing
- Add setup helper functions for E2E test configuration
- Improve test coverage with edge cases and error handling

Documentation:
- Update CHANGELOG.md with comprehensive feature list
- Add examples for reports (reports.ts) and POS sessions (pos-session.ts)
- Update README with Reports, Sessions, and Meal Voucher sections

Fixes:
- Change Environment type from 'test' to 'staging' for consistency
- Fix Payment.all() return type from 'list' to 'data' (API compliance)
- Add proper SSL verification disable for staging environment
@coderabbitai
Copy link

coderabbitai bot commented Dec 1, 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.


Note

🎁 Summarized by CodeRabbit Free

Your organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login.

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

@alessandrobellesia alessandrobellesia merged commit 162d85a into develop Dec 1, 2025
7 checks passed
@alessandrobellesia alessandrobellesia deleted the feature/enhanced-payment-features branch December 1, 2025 23:15
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