{
  "manifest": {
    "spekkr": 1,
    "id": "juno/usage-billing",
    "name": "Usage-based billing",
    "summary": "Meter what customers use, rate it against a plan, and issue invoices that add up, with tests for every rounding rule.",
    "keywords": [
      "metering",
      "metered",
      "payments",
      "pricing",
      "stripe",
      "pay as you go"
    ],
    "kind": "app part",
    "version": "0.1.2",
    "author": {
      "id": "juno",
      "name": "Juno"
    },
    "targets": {
      "platforms": [
        "backend",
        "web"
      ]
    },
    "customize": {
      "settings": [
        {
          "key": "currency",
          "label": "Billing currency",
          "default": "USD",
          "help": "A three-letter code. This version bills in one currency."
        },
        {
          "key": "meter_name",
          "label": "What you meter",
          "default": "api_calls",
          "help": "The first usage meter, for example api_calls or gb_stored."
        }
      ],
      "options": [
        {
          "key": "included_usage",
          "label": "Included usage per plan",
          "default": true,
          "help": "Each plan includes an amount of usage before per-unit charges start."
        },
        {
          "key": "payment_reminders",
          "label": "Payment reminder emails",
          "default": false,
          "help": "Emails customers when an invoice is overdue."
        }
      ],
      "swaps": [
        {
          "key": "database",
          "label": "Database",
          "choices": [
            "postgres",
            "sqlite"
          ],
          "default": "postgres"
        },
        {
          "key": "collection",
          "label": "How invoices are paid",
          "choices": [
            "payment_provider",
            "manual"
          ],
          "default": "payment_provider",
          "help": "A payment provider charges a saved card. Manual marks invoices paid by hand."
        }
      ]
    },
    "files": [
      {
        "path": "spec.md",
        "about": "Requirements and acceptance criteria."
      },
      {
        "path": "design.md",
        "about": "Data model, money rules and the invoice run."
      },
      {
        "path": "tasks.md",
        "about": "Build tasks in order, each with a check."
      }
    ],
    "needs": {
      "accounts": [
        "A payment provider account, unless invoices are paid manually"
      ],
      "permissions": [
        "shell",
        "network"
      ]
    },
    "demo": {
      "screenshots": [
        "shots/plans.png",
        "shots/customers.png",
        "shots/invoices.png",
        "shots/invoice-detail.png"
      ]
    },
    "safety": {
      "secrets": [
        "DATABASE_URL",
        "PAYMENT_PROVIDER_KEY",
        "PAYMENT_WEBHOOK_SECRET",
        "INGEST_API_KEY"
      ]
    },
    "lineage": {},
    "changelog": [
      {
        "version": "0.1.2",
        "date": "2026-11-15",
        "note": "Names what it builds."
      },
      {
        "version": "0.1.1",
        "date": "2026-11-14",
        "note": "Says \"person\" where it said \"buyer\"."
      },
      {
        "version": "0.1.0",
        "date": "2026-11-14",
        "note": "Moved from dwrtz/usage-billing."
      }
    ]
  },
  "links": {
    "page": "./",
    "bundle": "bundle.tar.gz",
    "files": {
      "design.md": "files/design.md",
      "shots/customers.png": "files/shots/customers.png",
      "shots/invoice-detail.png": "files/shots/invoice-detail.png",
      "shots/invoices.png": "files/shots/invoices.png",
      "shots/plans.png": "files/shots/plans.png",
      "spec.md": "files/spec.md",
      "tasks.md": "files/tasks.md"
    }
  },
  "publishedBy": "juno",
  "uploaded": {
    "shots/customers.png": {
      "bytes": 105293,
      "type": "image/png"
    },
    "shots/invoice-detail.png": {
      "bytes": 60165,
      "type": "image/png"
    },
    "shots/invoices.png": {
      "bytes": 55782,
      "type": "image/png"
    },
    "shots/plans.png": {
      "bytes": 67751,
      "type": "image/png"
    }
  }
}
