Skip to content

Feature/order payments close#1

Open
yurisenik wants to merge 2 commits into
ZeroFlowTech:masterfrom
yurisenik:feature/order-payments-close
Open

Feature/order payments close#1
yurisenik wants to merge 2 commits into
ZeroFlowTech:masterfrom
yurisenik:feature/order-payments-close

Conversation

@yurisenik
Copy link
Copy Markdown

No description provided.

y.senik and others added 2 commits May 5, 2026 23:23
…+ 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>
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.

1 participant