All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.0.4 - 2025-12-03
- BREAKING:
SessionAPI aligned with official Satispay documentation- Changed
typefield tooperationin session events - Changed
SessionEventTypeenum toSessionEventOperation - Replaced
'ADD_ITEM' | 'REMOVE_ITEM' | 'UPDATE_TOTAL'with'ADD' | 'REMOVE' - Removed
UPDATE_TOTALoperation (not supported by Satispay API) - Made
currencyfield mandatory inSessionEventCreateBody
- Changed
- E2E tests for fund lock payment creation
Sessiontypes 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
0.0.3 - 2025-12-03
- BREAKING:
DailyClosuretype structure completely rewritten to match actual Satispay API response- Now returns
shop_daily_closureanddevice_daily_closureobjects - Each closure includes:
id,type,customer_uid,gross_amount_unit,refund_amount_unit,amount_unit,currency
- Now returns
- BREAKING: Removed non-existent fields from
DailyClosuretype:- Removed
datefield (useshop_daily_closure.idinstead) - Removed
total_amount_unitfield (useshop_daily_closure.amount_unitinstead) - Removed
payments_countfield (not provided by Satispay API)
- Removed
DailyClosure.get()now acceptsDateobjects in addition to string dates (YYYYMMDD format)- Updated documentation with correct API response structure and
Dateobject usage examples
DailyClosureDetailtype for structured closure informationDateUtils.formatToYYYYMMDD()utility function for date formatting- Comprehensive E2E tests for daily closure functionality (5 test cases)
- Unit tests for
Dateobject support inDailyClosure.get() - Enhanced examples showing multiple ways to retrieve daily closures
DailyClosuretype now accurately reflects Satispay's actual API response- Corrected documentation to match real API behavior verified through testing
0.0.2 - 2025-12-01
- add bin
satispay-keygento build configuration
0.0.1 - 2025-12-01
- Initial implementation of Satispay GBusiness Node.js SDK
- Zero runtime dependencies - uses only native APIs (fetch, crypto)
- Multi-runtime support: Node.js 18+, Deno 1.30+, Bun 1.0+
- Complete TypeScript definitions with full type safety
Api- Configuration and environment managementApiAuthentication- Token-based authentication and key generationPayment- Create, retrieve, list, and update payments (including meal vouchers and fringe benefits)Consumer- Retrieve consumer informationDailyClosure- Get daily closure reportsPreAuthorizedPaymentToken- Manage pre-authorized payment tokensReport- Generate and retrieve payment reports (CSV, PDF, XLSX)Session- POS integration for fund lock payments with incremental chargingRequest- HTTP operations with automatic RSA-SHA256 signingRSAService- Key generation and cryptographic operations
- CLI tool
satispay-keygenfor RSA key pair generation - Comprehensive test suite with 163 tests using Vitest
- E2E tests for integration testing with staging environment
- GitHub Actions CI/CD workflows for automated testing and npm publishing
- Vite-based build system with optimized TypeScript declaration generation
- Complete API documentation in README
- Example files for all major operations (payments, reports, sessions, webhooks, etc.)
- Runtime-specific examples for Node.js, Deno, and Bun