# Changelog

All notable changes to the Caterpoint Integration Module are documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Added
- Magento-style Caterpoint setup screen with API settings, import settings, connection test, and manual import actions.
- New web configuration controller and form model for persisting Caterpoint module settings to params-local.php.

### Changed
- Module bootstrap now maps Caterpoint setup routes similar to ahs-magento (`caterpoint/<action>` to config actions).
- Caterpoint client request handling now normalizes endpoint paths to avoid duplicated `/api` segments and improves HTTP error handling.
- Order import service can now optionally mark imported Caterpoint orders as exported.

## [v1.0.0] - 2026-03-06

### Added
- Initial release of Caterpoint integration module
- CaterpointClient component for API communication via GuzzleHTTP
- OrderImportService for order synchronization with cursor-based incremental imports
- CaterpointCursorStore service for persistent import state management
- OrderImportController console command for CLI-based imports with dry-run support
- OrderController REST API endpoints for web-based import triggers
- CaterpointOrder template model for database integration
- Support for order status mapping and customization
- Support for order confirmation and invoice submission
- Comprehensive error handling and logging
- Full documentation and configuration examples

### Features
- Incremental order imports using cursor tracking
- Dry-run mode for previewing changes without persistence
- Console command with verbose output and progress tracking
- REST API endpoints for programmatic access
- Transaction-based imports for data consistency
- Automatic status code translation
- Support for local order number generation
- Per-order error handling with detailed error reporting
