Skip to content

Conversation

@gustaavik
Copy link
Member

No description provided.

gustaavik added 19 commits May 23, 2025 23:42
… API client

- Added migrations for creating checkouts and checkout_items tables.
- Implemented rollback migrations for disabling cart tables and archiving data.
- Created an email template for checkout recovery to encourage users to complete their purchases.
- Developed a mock checkout repository for testing purposes.
- Added a comprehensive API client for managing guest and user checkouts, including methods for creating, updating, and retrieving checkout data.
- Defined TypeScript interfaces for checkout-related data structures and requests.
- Updated CheckoutUseCase to include PaymentTransactionRepository and PaymentService.
- Modified MockPaymentService to remove PayPal and Bank Transfer methods.
- Removed deprecated CartRedirectHandler and updated routes to use CheckoutHandler.
- Enhanced CheckoutHandler to manage session IDs for guest users and streamline checkout processes.
- Updated API routes to reflect new checkout structure and removed deprecated endpoints.
- Improved documentation to highlight the new session-based checkout system.
…es; add migration for checkouts table with session_id column; delete outdated Postman collection
…adjust client methods

- Removed CartDTO and related structures, replacing them with CheckoutDTO and associated types.
- Updated API client methods to reflect the transition from cart to checkout, including renaming and restructuring requests.
- Removed deprecated cart endpoints and adjusted server routes accordingly.
- Updated README and documentation to reflect the new checkout system and its usage.
- Cleaned up session management by removing unused session cookie constants.
- Deleted test database utility and pagination utility as they are no longer needed.
…ew DTOs

- Updated CheckoutDTO to use ShippingMethodDetailDTO instead of ShippingMethodDTO.
- Introduced new ShippingMethodDetailDTO and related DTOs for shipping methods, zones, rates, and options.
- Refactored shipping handler methods to utilize new DTOs for request and response handling.
- Added conversion functions for new DTOs to streamline data transformation between domain entities and API responses.
- Implement tests for shipping method, zone, rate, and option DTOs to ensure correct conversion and functionality.
- Add tests for creating and updating shipping methods and zones.
- Include tests for weight-based and value-based rates.
- Introduce tests for user DTOs, including creation, updates, and login requests.
- Validate responses for user lists and password changes.
@gustaavik gustaavik merged commit 00f3f26 into main Jun 1, 2025
5 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