Skip to content

Phase 1 — regenerated API types - #2

Merged
subhanlone merged 1 commit into
masterfrom
fix/phase-1-payments
Aug 27, 2026
Merged

Phase 1 — regenerated API types#2
subhanlone merged 1 commit into
masterfrom
fix/phase-1-payments

Conversation

@subhanlone

Copy link
Copy Markdown
Owner

Generated from the backend contract, not hand-edited. Pairs with subhanlone/bidvault-backend#2.

WonTransaction gains lastPaymentError.

A declined card no longer moves a transaction to FAILED — that made one decline permanent, because create-intent refused anything that was not PENDING, leaving the winner with no route back and the seller's item consumed. The reason now lives in its own optional field and the transaction stays payable.

Additive, so api:compat reports no breaking change and no contract version bump is needed.

Merge order

This one lands first. Both repos' CI cross-check the other's master, so a contract change fails the sync step on both sides until one of them merges — frontend/.github/workflows/ci.yml:88-90 documents that window as intended. Merging this unblocks the backend's check legitimately, rather than bypassing it there.

The optional field is safe to ship ahead of the backend serving it: nothing reads it yet, and its absence is what the type already permits.

Verification

audit:gate  PASS   (0 advisories)
lint        PASS
build       PASS

🤖 Generated with Claude Code

https://claude.ai/code/session_01Qn51EX4kuSFMjKXNY5jVDA

Generated from the backend contract, not hand-edited.

A declined card no longer moves a transaction to FAILED, because that
made one decline permanent: create-intent refused anything that was not
PENDING, so there was no route back. The reason now lives in its own
field and the transaction stays payable.

Pairs with bidvault-backend's payments fix (BV-001/005/006/011/054).
Additive field, so no contract version bump.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Qn51EX4kuSFMjKXNY5jVDA
Copilot AI lite review requested due to automatic review settings August 27, 2026 12:06

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@vercel

vercel Bot commented Aug 27, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
bidvault Ready Ready Preview Aug 27, 2026 12:06pm

@subhanlone
subhanlone merged commit 4e3a279 into master Aug 27, 2026
2 of 3 checks passed
@subhanlone
subhanlone deleted the fix/phase-1-payments branch August 27, 2026 12:08
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