{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "DISCOUNTS",
  "type": "array",
  "items": {
    "type": "object",
    "required": [
      "productId",
      "discount"
    ],
    "properties": {
      "productId": {
        "title": "Numer identyfikacyjny towaru",
        "type": "string",
        "examples": [
          "TOW-123"
        ]
      },
      "discount": {
        "title": "Wartość rabatu",
        "type": "number",
        "examples": [
          10.5
        ]
      },
      "minimumPrice": {
        "title": "Cena minimalna",
        "type": "number",
        "examples": [
          99.99
        ]
      },
      "quantity": {
        "title": "Ilość progowa",
        "type": "number",
        "examples": [
          5
        ]
      },
      "priority": {
        "title": "Priorytet",
        "type": "integer",
        "examples": [
          1
        ]
      },
      "salesRepresentativeId": {
        "title": "Numer identyfikacyjny przedstawiciela handlowego w firmie",
        "type": "string",
        "examples": [
          "PH001"
        ]
      },
      "customerId": {
        "title": "Numer identyfikacyjny klienta w firmie",
        "type": "string",
        "examples": [
          "KLT001"
        ]
      },
      "supplierId": {
        "title": "Numer identyfikacyjny dostawcy w firmie",
        "type": "string",
        "examples": [
          "DST001"
        ]
      },
      "active": {
        "title": "Znacznik aktywności reguły obniżania ceny",
        "type": "boolean",
        "default": true,
        "examples": [
          true
        ]
      }
    }
  }
}
