{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cavuno-com/json-schema/cavuno-com-coupon-schema.json",
  "title": "Coupon",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cavuno-com-coupons-api-openapi.yml#/components/schemas/Coupon",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "object": {
      "type": "string",
      "enum": [
        "coupon"
      ]
    },
    "name": {
      "type": [
        "string",
        "null"
      ]
    },
    "percentOff": {
      "type": [
        "number",
        "null"
      ]
    },
    "amountOff": {
      "type": [
        "number",
        "null"
      ]
    },
    "currency": {
      "type": [
        "string",
        "null"
      ]
    },
    "duration": {
      "type": "string"
    },
    "durationInMonths": {
      "type": [
        "number",
        "null"
      ]
    },
    "valid": {
      "type": "boolean"
    },
    "appliesTo": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      }
    },
    "timesRedeemed": {
      "type": "number"
    },
    "created": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "object",
    "name",
    "percentOff",
    "amountOff",
    "currency",
    "duration",
    "durationInMonths",
    "valid",
    "appliesTo",
    "timesRedeemed",
    "created"
  ]
}