{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/getoneprofile-ai/json-schema/getoneprofile-ai-credit-pack-quote-read-schema-schema.json",
  "title": "CreditPackQuoteReadSchema",
  "description": "Response schema for the credit pack quote and purchase limits.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/getoneprofile-ai-billing-api-openapi.yml#/components/schemas/CreditPackQuoteReadSchema",
  "properties": {
    "amount_cents": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "description": "The total price in cents for the requested credit amount. None when no amount was requested.",
      "title": "Amount Cents"
    },
    "max_credits": {
      "description": "Maximum purchasable credits in a single pack.",
      "title": "Max Credits",
      "type": "integer"
    },
    "min_credits": {
      "description": "Minimum purchasable credits per pack.",
      "title": "Min Credits",
      "type": "integer"
    },
    "preset_credits": {
      "description": "Suggested pack sizes for the purchase dialog.",
      "items": {
        "type": "integer"
      },
      "title": "Preset Credits",
      "type": "array"
    },
    "unit_amount_decimal_per_credit": {
      "description": "Price per credit in cents (decimal string, e.g. '0.4').",
      "title": "Unit Amount Decimal Per Credit",
      "type": "string"
    }
  },
  "required": [
    "unit_amount_decimal_per_credit",
    "min_credits",
    "max_credits",
    "preset_credits",
    "amount_cents"
  ],
  "type": "object"
}