ZoneRuleGroup
Rule group on the redis zone document.
RELATED (NOT merged): admin.ZoneRuleGroup types the stored entity, where
default/products/rules are required; the redis document copies
observed on the wire may omit them, hence the looser optionality here.
Type: object
| Field | Type | Description |
|---|---|---|
default optional | boolean | |
products optional | any | |
productIds optional | any | |
mode | "manual" | "collection" | "recommended" | "empty" | |
rules optional | ZoneRule[] |
Example (illustrative)
{
"default": false,
"products": null,
"productIds": null,
"mode": "manual",
"rules": [
{
"type": "price",
"value": 1,
"condition": "productTypeContains"
}
]
}Used by
Declared in api-types/src/storefront/models.ts.