{"lexicon":1,"id":"network.attested.payment.recurring","defs":{"main":{"type":"record","key":"tid","record":{"type":"object","required":["subject","amount","currency","unit","txnid","createdAt"],"properties":{"subject":{"type":"string","format":"did","description":"DID of the creator receiving payment."},"amount":{"type":"integer","minimum":1,"description":"Amount per billing period in the smallest unit of the given currency. Applications typically enforce a monthly-equivalent range of 500–25000."},"currency":{"type":"string","maxLength":3,"minLength":3,"description":"ISO 4217 currency code (e.g. USD, EUR)."},"unit":{"type":"string","knownValues":["monthly","quarterly","semiannual","yearly"],"description":"Billing period."},"frequency":{"type":"integer","default":1,"minimum":1,"description":"Billing frequency multiplier applied to the unit (e.g. unit=monthly, frequency=3 bills every three months)."},"txnid":{"type":"string","maxLength":64,"description":"Unique transaction identifier for deduplication. Typically a ULID or UUID assigned by the payment broker."},"createdAt":{"type":"string","format":"datetime","description":"Timestamp of initial subscription creation."},"entitlements":{"type":"array","items":{"type":"ref","ref":"com.atproto.repo.strongRef"}},"signatures":{"type":"array","items":{"type":"ref","ref":"com.atproto.repo.strongRef"}}}}}}}