Skip to content

Conversation

@gustaavik
Copy link
Member

No description provided.

gustaavik added 13 commits June 25, 2025 14:47
- Introduced PaymentStatus to the Order entity and updated the OrderDTO and OrderSummaryDTO to include payment status.
- Modified CreateCompleteCheckoutResponse to check for payment status when determining if action is required.
- Updated order repository to handle payment status during order creation and updates.
- Adjusted webhook handler to update payment status based on events from payment providers.
- Created migration scripts to add payment_status column to the orders table and populate it based on existing order statuses.
- Updated frontend types to reflect changes in order and payment status.
- Enhanced unit tests to cover new payment status logic and ensure correctness.
- Implemented stock reservation logic during payment authorization in CheckoutUseCase.
- Added stock restoration for cancelled or failed payments in OrderUseCase.
- Introduced health check endpoint to monitor service status and database connectivity.
- Updated OrderItem structure to include ProductVariantID for better inventory management.
- Modified CORS middleware to allow dynamic configuration of allowed origins.
- Created migrations to add product_variant_id to order_items table for improved order tracking.
- Added comprehensive unit tests for stock management logic in OrderUseCase.
- Refactored OrderDTO and OrderSummaryDTO to include checkout_id and customer details.
Basic stock management and email considerations(WIP)
@gustaavik gustaavik merged commit 12540d0 into main Jul 2, 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