{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/trajectory/json-schema/trajectory-organization-billing-schema.json",
  "title": "OrganizationBilling",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/trajectory-billing-api-openapi.yml#/components/schemas/OrganizationBilling",
  "properties": {
    "billing_policy": {
      "$ref": "#/$defs/BillingPolicy"
    },
    "provisioned": {
      "type": "boolean",
      "title": "Provisioned"
    },
    "metronome_customer_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Metronome Customer Url"
    },
    "balance_cents": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Balance Cents"
    },
    "refreshed_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Refreshed At"
    }
  },
  "type": "object",
  "required": [
    "billing_policy",
    "provisioned",
    "metronome_customer_url",
    "balance_cents",
    "refreshed_at"
  ],
  "$defs": {
    "BillingPolicy": {
      "type": "string",
      "enum": [
        "standard",
        "free"
      ],
      "title": "BillingPolicy"
    }
  }
}