Skip to content

Releases: Spoje-NET/pohoda-realpad

v0.2.0 - MultiFlexi Report Format Compliance

01 Oct 12:56

Choose a tag to compare

🚀 New Features

MultiFlexi Report Format Compliance

  • Updated report structure to conform to the MultiFlexi schema
  • Enhanced error handling with proper exception handling for connection failures
  • Comprehensive testing with new test suite for schema validation

New Report Format

The application now generates standardized reports with:

  • Required fields: status (success/error/warning), timestamp (ISO8601)
  • Optional fields: message, artifacts, metrics
  • Structured artifacts: Tracks generated files, endpoints, and responses
  • Operational metrics: Payment counts, HTTP codes, record statistics

Example Success Report

{
    "status": "success",
    "timestamp": "2025-01-01T12:00:00+00:00",
    "message": "Payment registered successfully. ID: 12345",
    "artifacts": {
        "realpad_endpoint": ["https://cms.realpad.eu/ws/v10/add-payments-pohoda"],
        "pohoda_xml": ["/tmp/Bankovni_doklady.xml"],
        "realpad_response": ["/tmp/realpad_response_abc123.txt"]
    },
    "metrics": {
        "payments_processed": 1,
        "http_response_code": 201,
        "pohoda_records_found": 5,
        "exit_code": 0
    }
}

🔧 Improvements

  • Better integration with MultiFlexi platform
  • Enhanced monitoring capabilities through structured metrics
  • Improved debugging with artifact tracking
  • Consistent error handling and status reporting

�� Installation

Download the appropriate .deb package for your system:

  • pohoda-realpad_0.2.0_all.deb - Standalone application
  • multiflexi-pohoda-realpad_0.2.0_all.deb - MultiFlexi integration package

🧪 Testing

  • ✅ All PHPUnit tests pass (4 tests, 146 assertions)
  • ✅ Report format validates against MultiFlexi schema
  • ✅ Real-world testing with various error and success scenarios