Feature/order payments close#1
Open
yurisenik wants to merge 2 commits into
Open
Conversation
…+ payments on create These are the missing pieces for two table-order payment flows: * pay-first: pass `order.payments[]` to /order/create so the order arrives already paid (PaymentItem with paymentTypeKind=External, isProcessedExternally=true, paymentAdditionalData.credentials referencing the external acquirer's PaymentId). * cook-first with held funds: open the order without payment, append items via add_items, then attach the external payment via change_payments after the acquirer's Confirm succeeds, then close. Also adds by_id / by_table so the caller can find an existing open order on a table instead of creating duplicates when the guest re-scans a QR mid-meal. All async endpoints (close, change_payments, add_items) return correlationId; poll /api/1/commands/status to confirm completion. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
No description provided.