{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/blackbaud/main/json-schema/blackbaud-new-event-registration-option-schema.json",
  "title": "NewEventRegistrationOption",
  "description": "CreateEventRegistrationOption",
  "x-generated": "2026-10-14",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/blackbaud-altru-event-api-openapi.yml#/components/schemas/NewEventRegistrationOption",
  "required": [
    "event_id",
    "event_registration_type",
    "amount",
    "name",
    "registration_count"
  ],
  "type": "object",
  "properties": {
    "event_id": {
      "type": "string",
      "description": "The event ID."
    },
    "event_registration_type": {
      "type": "string",
      "description": "The registration type. This simple list can be queried at https://api.sky.blackbaud.com/alt-adnmg/simplelists/5c69fd15-969c-4034-a040-49ab3fea8cd5?parameters=include_inactive,{0}."
    },
    "amount": {
      "type": "number",
      "description": "The registration fee.",
      "format": "double"
    },
    "cost": {
      "type": "number",
      "description": "The cost.",
      "format": "double"
    },
    "receipt_amount": {
      "type": "number",
      "description": "The receipt amount.",
      "format": "double"
    },
    "benefit": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/NewEventRegistrationOptionBenefit"
      },
      "description": "Benefit."
    },
    "name": {
      "maxLength": 100,
      "minLength": 0,
      "type": "string",
      "description": "The name."
    },
    "registration_count": {
      "type": "integer",
      "description": "The registration count.",
      "format": "int32"
    },
    "event_registration_types": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/NewEventRegistrationOptionEventRegistrationTypes"
      },
      "description": "Event registration types."
    },
    "base_currency_id": {
      "type": "string",
      "description": "The base currency ID. Read-only in the SOAP API."
    },
    "event_base_currency_decimal_digits": {
      "type": "integer",
      "description": "The event base currency decimal digits. Read-only in the SOAP API.",
      "format": "int32"
    },
    "event_base_currency_rounding_type_code": {
      "type": "integer",
      "description": "The event base currency rounding type code. Read-only in the SOAP API.",
      "format": "int32"
    }
  },
  "additionalProperties": false,
  "x-display-name": "Registration Option Add Form 2",
  "x-display-id": "Registration Option Add Form 2",
  "$defs": {
    "NewEventRegistrationOptionBenefit": {
      "required": [
        "benefit_id"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "id"
        },
        "benefit_id": {
          "type": "string",
          "description": "benefit"
        },
        "quantity": {
          "type": "integer",
          "description": "quantity"
        },
        "unit_value": {
          "type": "number",
          "description": "unit value"
        },
        "total_value": {
          "type": "number",
          "description": "total value"
        },
        "details": {
          "type": "string",
          "description": "details"
        },
        "base_currency_id": {
          "type": "string",
          "description": "base currency id"
        },
        "event_base_currency_total_value": {
          "type": "number",
          "description": "event currency total value"
        }
      },
      "description": "NewEventRegistrationOptionBenefit",
      "x-display-name": "benefit",
      "x-display-id": "benefit"
    },
    "NewEventRegistrationOptionEventRegistrationTypes": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "id"
        },
        "description": {
          "type": "string",
          "description": "description"
        },
        "registration_count": {
          "type": "integer",
          "description": "registration count"
        },
        "active": {
          "type": "boolean",
          "description": "active"
        }
      },
      "description": "NewEventRegistrationOptionEventRegistrationTypes",
      "x-display-name": "event_registration_types",
      "x-display-id": "event_registration_types"
    }
  }
}