{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/seamlessevents-io/json-schema/seamlessevents-io-ticket-type-base-schema.json",
  "title": "TicketTypeBase",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/seamlessevents-io-openapi.json#/components/schemas/TicketTypeBase",
  "properties": {
    "eventId": {
      "type": "string",
      "format": "uuid",
      "title": "Eventid"
    },
    "title": {
      "type": "string",
      "title": "Title"
    },
    "slug": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Slug"
    },
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Description"
    },
    "price": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Price"
    },
    "currency": {
      "type": "string",
      "title": "Currency",
      "default": "USD"
    },
    "taxExclusive": {
      "type": "boolean",
      "title": "Taxexclusive",
      "default": false
    },
    "priceDegressive": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Pricedegressive"
    },
    "quantity": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Quantity"
    },
    "minPerOrder": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Minperorder"
    },
    "maxPerOrder": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Maxperorder"
    },
    "defaultQuantity": {
      "type": "integer",
      "title": "Defaultquantity",
      "default": 0
    },
    "startAt": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Startat"
    },
    "endAt": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Endat"
    },
    "secret": {
      "type": "boolean",
      "title": "Secret",
      "default": false
    },
    "position": {
      "type": "integer",
      "title": "Position",
      "default": 0
    },
    "donation": {
      "type": "boolean",
      "title": "Donation",
      "default": false
    },
    "requireName": {
      "type": "boolean",
      "title": "Requirename",
      "default": true
    },
    "requireEmail": {
      "type": "boolean",
      "title": "Requireemail",
      "default": true
    },
    "showCompanyName": {
      "type": "boolean",
      "title": "Showcompanyname",
      "default": false
    },
    "requireCompanyName": {
      "type": "boolean",
      "title": "Requirecompanyname",
      "default": false
    },
    "showPhoneNumber": {
      "type": "boolean",
      "title": "Showphonenumber",
      "default": false
    },
    "showQrCode": {
      "type": "boolean",
      "title": "Showqrcode",
      "default": true
    },
    "successMessage": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Successmessage"
    },
    "failMessage": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Failmessage"
    },
    "metadata": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Metadata"
    },
    "id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Id"
    },
    "quantitySold": {
      "type": "integer",
      "title": "Quantitysold",
      "default": 0
    },
    "status": {
      "type": "string",
      "title": "Status",
      "default": "on_sale"
    },
    "archived": {
      "type": "boolean",
      "title": "Archived",
      "default": false
    },
    "createdAt": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Createdat"
    },
    "updatedAt": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Updatedat"
    },
    "eventSlug": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Eventslug"
    },
    "soldOut": {
      "type": "boolean",
      "title": "Soldout",
      "readOnly": true
    },
    "available": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Available",
      "readOnly": true
    },
    "displayPrice": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Displayprice",
      "readOnly": true
    },
    "upcoming": {
      "type": "boolean",
      "title": "Upcoming",
      "description": "True if sale start date is in the future.",
      "readOnly": true
    },
    "expired": {
      "type": "boolean",
      "title": "Expired",
      "description": "True if sale end date is in the past.",
      "readOnly": true
    },
    "offSale": {
      "type": "boolean",
      "title": "Offsale",
      "description": "True if status is not on_sale.",
      "readOnly": true
    },
    "deletable": {
      "type": "boolean",
      "title": "Deletable",
      "description": "True if no tickets have been sold.",
      "readOnly": true
    },
    "paymentType": {
      "type": "string",
      "title": "Paymenttype",
      "description": "Computed payment type: 'free', 'paid', or 'donation'.",
      "readOnly": true
    },
    "shareUrl": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Shareurl",
      "description": "Shareable URL for this ticket type.",
      "readOnly": true
    }
  },
  "type": "object",
  "required": [
    "eventId",
    "title",
    "soldOut",
    "available",
    "displayPrice",
    "upcoming",
    "expired",
    "offSale",
    "deletable",
    "paymentType",
    "shareUrl"
  ]
}