{
  "id": "<root>",
  "type": "ROOT",
  "entryPoint": {
    "id": "buy-x-required-0",
    "then": {
      "id": "apply-discount-add-on-0",
      "type": "APPLY_DISCOUNT",
      "title": "Add-on deal",
      "value": {
        "type": "GET_Y",
        "quantity": "1",
        "customerGets": {
          "type": "SPECIFIC_PRODUCTS",
          "asListOfIds": "add-on-product",
          "selectedProducts": []
        },
        "atDiscountedValue": {
          "type": "PERCENTAGE",
          "percentage": "10"
        }
      }
    },
    "type": "BUY_X",
    "otherwise": null,
    "requirements": [
      {
        "quantity": 1,
        "productEligibility": {
          "type": "SPECIFIC_PRODUCTS",
          "asListOfIds": "required-product-1,required-product-2",
          "selectedProducts": []
        }
      }
    ],
    "disableCurrencyConversion": false
  }
}
