Development - #41
Merged
Merged
Conversation
- 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.
…eeding and checkout
…move unused stock increase function
Basic stock management and email considerations(WIP)
…nhance email logging and templates
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.