more platform

This commit is contained in:
mats committed 2026-06-29 12:35:32 +02:00
1 parent 8a71e32149
commit 2a66754f9e
27 files changed
+2435 -540

No files matched your search

+6 -2
View File
@@ -16,14 +16,18 @@ package order
import "encoding/json"
// Line is one ordered line item, reduced to what reactors need: the SKU, how
// many units sold, and the inventory location to commit against. Pricing/tax
// live in the order grain, not on this seam.
// many units sold, the inventory location to commit against, and whether the
// item is drop-ship (fulfilled by the supplier, never decremented from local
// stock). Pricing/tax live in the order grain, not on this seam.
type Line struct {
SKU string `json:"sku"`
Quantity int `json:"quantity"`
// Location is the inventory location / store id to decrement. Empty means
// "use the order's Country" (central stock) — see Created.Country.
Location string `json:"location,omitempty"`
// DropShip marks items fulfilled directly by the supplier. The inventory
// reactor must skip the stock decrement for these lines.
DropShip bool `json:"drop_ship,omitempty"`
}
// Created is the payload of an event.OrderCreated envelope.