Skip to content

Conversation

@btkostner
Copy link
Contributor

Right now our data gets pretty messy after the API layer. This uses ecto to improve casting data into structs, and replaces all of the different session data with a single Elementary.Store.Checkout.Cart struct.

  • This includes an auto generated ID to replace session_id
  • Should include functions to convert stripe checkout session to a cart
  • Should include functions to convert a printful order to a cart
  • We should use the struct to pass all of the cart information around
  • We should do more data validation in ecto and handle changeset errors better

@tintou tintou force-pushed the master branch 4 times, most recently from da51f8f to 5d23896 Compare June 4, 2025 08:05
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