Repository navigation
feat: Separate order states and add fulfillment operations - #40
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This was referenced Nov 4, 2026
codejagaban
force-pushed
the
feat/order-fulfillment
branch
from
November 4, 2026 17:29
b874c75 to
35c4461
Compare
codejagaban
force-pushed
the
feat/order-fulfillment
branch
from
November 4, 2026 17:46
35c4461 to
c41d89f
Compare
This branch was successfully deployed
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.
Orders previously reused one status for payment outcomes and fulfillment. This adds independent order, payment, fulfillment, and return states, with a historical backfill that preserves existing totals and avoids inventing delivery or payment evidence.
Administrators can prepare paid orders, dispatch partial quantities, edit tracking, record delivery, complete orders, and cancel unshipped orders through authenticated workflow endpoints. Version claims and request IDs prevent stale or duplicate shipment writes. Cancellation restores stock once; refunds and shipments do not imply inventory returns. Shipment notifications commit to a durable outbox and can be retried after email failures.
The admin and customer controls are in a separate stacked PR.
Validation: local unit/integration checks pass; historical migration/backfill and rollback/reapply rehearsal passes and now runs in CI. This PR is stacked on security PR #42, which fixes all critical/high/moderate production findings. Its one remaining low-severity deepmerge advisory has no upstream patch and still fails the unchanged audit gate. Do not bypass that gate to merge this PR.