{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/prosperstack/main/json-schema/prosperstack-offer-link-schema.json",
  "title": "OfferLink",
  "x-generated": "2026-10-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/prosperstack-openapi.json#/components/schemas/OfferLink",
  "type": "object",
  "required": [
    "id",
    "url",
    "subscriber_id",
    "subscription_id",
    "offer_id",
    "status",
    "created_at",
    "updated_at"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "url": {
      "type": "string"
    },
    "subscriber_id": {
      "type": "string"
    },
    "subscription_id": {
      "type": "string"
    },
    "offer_id": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "created",
        "viewed",
        "accepted",
        "invalid",
        "expired"
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}