{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A payment channel — a specific place where contributions can be received (e.g. a GitHub Sponsors page, an Open Collective profile, a bank account). Each channel is an independent record, individually addressable by its AT URI.",
      "key": "any",
      "record": {
        "properties": {
          "channelType": {
            "description": "Channel category. Maps to funding.json channel.type.",
            "knownValues": [
              "payment-provider",
              "bank",
              "cheque",
              "cash",
              "other"
            ],
            "maxLength": 32,
            "type": "string"
          },
          "createdAt": {
            "description": "When this record was created or last updated.",
            "format": "datetime",
            "type": "string"
          },
          "description": {
            "description": "Human-readable description of this channel.",
            "maxLength": 500,
            "type": "string"
          },
          "uri": {
            "description": "The payment URL for this channel (e.g. https://github.com/sponsors/you). Optional for channels without a public URL (e.g. bank transfers). Maps to funding.json channel.address.",
            "format": "uri",
            "type": "string"
          }
        },
        "required": [
          "channelType"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "description": "A single payment channel where contributions can be made. Each channel is an individual record keyed by its slug ID. Maps to a funding.json channel entry.",
  "id": "fund.at.funding.channel",
  "lexicon": 1
}
