@marianmeres/collection-types 1.39.0 → 1.40.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/order.d.ts +8 -0
- package/package.json +1 -1
package/dist/order.d.ts
CHANGED
|
@@ -80,6 +80,14 @@ export interface OrderData {
|
|
|
80
80
|
* for owned (account-linked) orders.
|
|
81
81
|
*/
|
|
82
82
|
guest_session_id?: string;
|
|
83
|
+
/**
|
|
84
|
+
* App-specific extras — mirrors `ProductData.custom` / `CategoryData.custom`.
|
|
85
|
+
* Use for extension data that doesn't warrant a typed field (e.g. an
|
|
86
|
+
* injected shipping calculator's breakdown, third-party tracking refs).
|
|
87
|
+
* Validated by the runtime order schema with `additionalProperties: true`.
|
|
88
|
+
* Namespace sub-keys per app to avoid collisions (e.g. `carsinc_shipping`).
|
|
89
|
+
*/
|
|
90
|
+
custom?: Record<string, unknown>;
|
|
83
91
|
/** Index signature for compatibility with UserData */
|
|
84
92
|
[key: string]: unknown;
|
|
85
93
|
}
|