{"lexicon":1,"id":"network.attested.payment.scheduled","defs":{"main":{"type":"record","key":"tid","record":{"type":"object","required":["subject","amount","currency","unit","count","txnid","createdAt"],"properties":{"subject":{"type":"string","format":"did"},"amount":{"type":"integer","minimum":1,"description":"Amount per scheduled payment in smallest currency unit."},"currency":{"type":"string","maxLength":3,"minLength":3,"description":"ISO 4217 currency code."},"unit":{"type":"string","enum":["monthly","quarterly","semiannual","yearly"],"description":"Interval between scheduled payments."},"count":{"type":"integer","minimum":2,"maximum":60,"description":"Total number of scheduled payments."},"txnid":{"type":"string","description":"Unique transaction identifier for deduplication."},"createdAt":{"type":"string","format":"datetime","description":"Timestamp of schedule creation; first payment date."},"entitlements":{"type":"array","items":{"type":"ref","ref":"com.atproto.repo.strongRef"}},"signatures":{"type":"array","items":{"type":"unknown"}}}}}}}