net.wireservice.plan

A paid offering: subscription, membership, or donation. Public, so renderers and other apps can display offers. The CMS mirrors each plan to the payment processor.

Repository @wireservice.net did:plc:lktj64hp7lc3fzuf6iyy7lwj not from the namespace authority
Details · record, key tid
Kindrecord
Record keytid
Authoritywireservice.net
Indexed
cid bafyreihsxrmzbljcnmbs3eraufii6tgspjrqeyfomf6mnpbr6fhtcmtkp4

Checks

Valid
  • large-string defs.main.record.properties.descriptionmaxLength is over 20 KB. Use a blob for content that large.
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A paid offering: subscription, membership, or donation. Public, so renderers and other apps can display offers. The CMS mirrors each plan to the payment processor.",
      "key": "tid",
      "record": {
        "properties": {
          "active": {
            "description": "Whether new readers can sign up. Existing entitlements are unaffected.",
            "type": "boolean"
          },
          "amount": {
            "description": "Price in the currency's minor unit (e.g., cents). Omit for donor-chosen amounts.",
            "minimum": 0,
            "type": "integer"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "currency": {
            "description": "ISO 4217 currency code, lowercase (e.g., 'usd').",
            "maxLength": 3,
            "type": "string"
          },
          "description": {
            "maxGraphemes": 3000,
            "maxLength": 30000,
            "type": "string"
          },
          "interval": {
            "knownValues": [
              "month",
              "year",
              "once"
            ],
            "maxLength": 64,
            "type": "string"
          },
          "kind": {
            "knownValues": [
              "subscription",
              "membership",
              "donation"
            ],
            "maxLength": 64,
            "type": "string"
          },
          "name": {
            "maxGraphemes": 200,
            "maxLength": 2000,
            "type": "string"
          },
          "spaces": {
            "description": "Spaces an active entitlement to this plan grants access to. Empty for plans that grant no access.",
            "items": {
              "format": "space-ref",
              "type": "string"
            },
            "type": "array"
          },
          "stripePriceId": {
            "description": "Stripe price this plan is sold through. Stripe prices are immutable, so changing amount or interval means a new price.",
            "maxLength": 256,
            "type": "string"
          }
        },
        "required": [
          "name",
          "kind",
          "currency",
          "interval",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "net.wireservice.plan",
  "lexicon": 1
}