Skip to content
This repository was archived by the owner on Jul 11, 2025. It is now read-only.

Refactor process_order to handle quantities and string item IDs #15

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

seer-by-sentry[bot]
Copy link

Fixes ANDROID-25. The issue was that: Backend inventory shortage caused checkout POST 500, triggering Android error handling that intentionally throws 'Failed to init delivery workflow' exception.

  • Increased initial inventory for all items to 10.
  • Added item '3' to the inventory with a quantity of 10.
  • Modified process_order to accept a cart dictionary containing 'items' and 'quantities'.
  • Converted item IDs to strings for consistency.
  • Implemented quantity handling in process_order, allowing for purchasing multiple items at once.
  • Updated inventory update logic to reflect purchased quantities.

This fix was generated by Seer in Sentry, triggered by Dustin Bailey. 👁️ Run ID: 49403

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants