{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/defianceinternational-io/json-schema/defianceinternational-io-get-bundle-200-schema.json",
  "title": "getBundle.200",
  "description": "One public research stack by id or slug, with its computed price.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/defianceinternational-io-platform-api-openapi.yml#/components/schemas/getBundle.200",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "name": {
      "type": "string"
    },
    "slug": {
      "type": "string"
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "products": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "description": "The product record id. Equal to productSkuId."
          },
          "productSkuId": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "name": {
            "type": "string",
            "description": "The display name: the chemical sequence name with its size."
          },
          "chemicalSequenceName": {
            "type": "string"
          },
          "chemicalSequenceSlug": {
            "type": "string"
          },
          "sku": {
            "type": "string"
          },
          "size": {
            "type": "string"
          },
          "price": {
            "type": "integer",
            "minimum": 100,
            "maximum": 9007199254740991,
            "description": "Integer cents, equal to priceCents."
          },
          "priceCents": {
            "type": "integer",
            "minimum": 100,
            "maximum": 9007199254740991,
            "description": "The component price in integer cents, at least the public price floor."
          },
          "inStock": {
            "type": "boolean"
          },
          "stockQuantity": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "id",
          "productSkuId",
          "name",
          "chemicalSequenceName",
          "chemicalSequenceSlug",
          "sku",
          "size",
          "price",
          "priceCents",
          "inStock",
          "stockQuantity"
        ],
        "additionalProperties": false,
        "description": "One component, in the display shape of the detail. Its release state is on the matching member."
      }
    },
    "members": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "productSkuId": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "sku": {
            "type": "string"
          },
          "size": {
            "type": "string"
          },
          "priceCents": {
            "type": "integer",
            "minimum": 100,
            "maximum": 9007199254740991,
            "description": "The component price in integer cents, at least the public price floor."
          },
          "chemicalSequenceSlug": {
            "type": "string"
          },
          "chemicalSequenceName": {
            "type": "string",
            "description": "The chemical sequence name."
          },
          "inStock": {
            "type": "boolean"
          },
          "stockQuantity": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "Available units."
          },
          "releaseState": {
            "type": "string",
            "enum": [
              "released",
              "in_analytical_review",
              "not_released"
            ],
            "description": "The public release state of the product: released, in analytical review, or not released."
          },
          "productStatus": {
            "type": "string",
            "enum": [
              "in_stock",
              "out_of_stock",
              "withdrawn",
              "in_analytical_review",
              "not_released"
            ],
            "description": "The product status: in stock, out of stock, withdrawn from sale, in analytical review, or not yet released."
          },
          "status": {
            "type": "string",
            "enum": [
              "in_stock",
              "out_of_stock",
              "withdrawn",
              "in_analytical_review",
              "not_released"
            ],
            "description": "The status of this member size. Add is offered only when it is in stock."
          }
        },
        "required": [
          "productSkuId",
          "sku",
          "size",
          "priceCents",
          "chemicalSequenceSlug",
          "chemicalSequenceName",
          "inStock",
          "stockQuantity",
          "releaseState",
          "productStatus",
          "status"
        ],
        "additionalProperties": false,
        "description": "One component of the bundle."
      }
    },
    "totalPriceCents": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991,
      "description": "The sum of the component prices, integer cents."
    },
    "bundlePriceCents": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991,
      "description": "The stack price after the discount, integer cents."
    },
    "savingsCents": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991,
      "description": "Total minus stack price, integer cents."
    },
    "discountPercent": {
      "type": "integer",
      "minimum": 0,
      "maximum": 100,
      "description": "The whole-percent discount."
    },
    "researchUseOnly": {
      "type": "string",
      "description": "The boundary statement, stated once at the top level.",
      "pattern": "^Research use only\\. Not for human consumption\\.$"
    }
  },
  "required": [
    "id",
    "name",
    "slug",
    "description",
    "products",
    "members",
    "totalPriceCents",
    "bundlePriceCents",
    "savingsCents",
    "discountPercent",
    "researchUseOnly"
  ],
  "additionalProperties": false
}