xxxxxxxxxx
{
"conditions": {
"all": [
{
"fact": "totalPurchaseAmount",
"operator": "greaterThanOrEqual",
"value": 100
},
{
"any": [
{
"all": [
{
"fact": "hasShirt",
"operator": "equal",
"value": true
},
{
"fact": "hasPants",
"operator": "equal",
"value": true
}
]
},
{
"all": [
{
"fact": "hasShirt",
"operator": "equal",
"value": true
},
{
"fact": "hasShoes",
"operator": "equal",
"value": true
}
]
}
]
}
]
},
"event": {
"type": "discount",
"params": {
"percentage": 15
}
}
}