Skip to content

Development#34

Merged
gustaavik merged 4 commits into
mainfrom
development
Jun 3, 2025
Merged

Development#34
gustaavik merged 4 commits into
mainfrom
development

Conversation

@gustaavik
Copy link
Copy Markdown
Member

No description provided.

gustaavik added 4 commits June 2, 2025 23:46
- Changed API endpoints to require SKU for adding, updating, and removing items in the checkout.
- Updated request and response structures to reflect SKU usage.
- Ensured all products must have at least one variant, creating default variants if necessary.
- Modified product repository and use case logic to handle SKU-based operations.
- Updated Postman tests to align with the new SKU requirements.
- Added migration scripts to enforce product variant constraints in the database.
- Updated documentation to reflect changes in API usage and requirements.
- Simplified the test cases for CheckoutDTO and CheckoutItemDTO by removing redundant expected values and using direct assertions.
- Added tests for minimal and multiple items in checkout conversion.
- Updated the ConvertToShippingRateDTO function to remove unnecessary nil checks for weight-based and value-based rates, improving readability.
@gustaavik gustaavik merged commit dc402f7 into main Jun 3, 2025
5 checks passed
@gustaavik gustaavik deleted the development branch June 3, 2025 14:18
@gustaavik gustaavik restored the development branch June 3, 2025 14:18
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.

1 participant