{"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","knownValues":["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","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 schedule creation; first payment date."},"entitlements":{"type":"array","items":{"type":"ref","ref":"com.atproto.repo.strongRef"}},"signatures":{"type":"array","items":{"type":"ref","ref":"com.atproto.repo.strongRef"},"description":"Attestation entries. Each entry is a com.atproto.repo.strongRef pointing to a network.attested.payment.proof record in a creator or broker repository."}}}}}}