@marianmeres/collection-types 1.39.0 → 1.41.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/customer.d.ts +9 -1
- package/dist/order.d.ts +8 -0
- package/package.json +1 -1
package/dist/customer.d.ts
CHANGED
|
@@ -55,8 +55,16 @@ export interface AddressData {
|
|
|
55
55
|
city: string;
|
|
56
56
|
/** Postal/ZIP code */
|
|
57
57
|
postal_code: string;
|
|
58
|
-
/** Country code
|
|
58
|
+
/** Country code (ISO alpha-2 from the stuic ≥ 3.85 picker; legacy rows
|
|
59
|
+
* may still hold free-text values like "United States"). */
|
|
59
60
|
country: string;
|
|
61
|
+
/**
|
|
62
|
+
* State / region / province. Optional at the schema level; the checkout
|
|
63
|
+
* flow enforces it for US addresses (substantive for tax + shipping
|
|
64
|
+
* carrier). Free text — no enum today; see plan for future US-state
|
|
65
|
+
* dropdown follow-up.
|
|
66
|
+
*/
|
|
67
|
+
state_or_region?: string;
|
|
60
68
|
/** Contact phone */
|
|
61
69
|
phone?: string;
|
|
62
70
|
/** Whether this is the default address for its type */
|
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
|
}
|