{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ordogrid/json-schema/ordogrid-fidelity-reward-update-schema.json",
  "title": "FidelityRewardUpdate",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ordogrid-fidelity-api-openapi.yml#/components/schemas/FidelityRewardUpdate",
  "additionalProperties": false,
  "properties": {
    "category": {
      "default": "gift",
      "enum": [
        "gift",
        "discounts",
        "exclusive"
      ],
      "type": "string"
    },
    "cost_points": {
      "default": 0,
      "minimum": 0,
      "type": "integer"
    },
    "default_language": {
      "default": "en",
      "type": "string"
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "discount_type": {
      "default": "none",
      "enum": [
        "none",
        "percentage",
        "fixed",
        "free_item"
      ],
      "type": "string"
    },
    "discount_value": {
      "description": "At most 100 for percentage discounts.",
      "minimum": 0,
      "type": "number"
    },
    "image": {
      "type": [
        "string",
        "null"
      ]
    },
    "languages": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "max_discount_cap": {
      "minimum": 0,
      "type": [
        "number",
        "null"
      ]
    },
    "min_order_amount": {
      "minimum": 0,
      "type": "number"
    },
    "name": {
      "minLength": 1,
      "type": "string"
    },
    "status": {
      "default": "active",
      "enum": [
        "active",
        "inactive"
      ],
      "type": "string"
    },
    "translations": {
      "additionalProperties": {
        "properties": {
          "description": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "type": "object"
    }
  },
  "type": "object"
}