{"lexicon":1,"id":"money.atmosphere.payment.listPledges","defs":{"pledge":{"type":"object","required":["id","recipientDid","amount","currency","interval","status","autoConvert","url","createdAt"],"properties":{"id":{"type":"string","maxLength":256},"recipientDid":{"type":"string","format":"did"},"payerDid":{"type":"string","format":"did","description":"Present only for signed-in pledgers. Payer emails are never returned."},"amount":{"type":"integer","minimum":1},"currency":{"type":"string","minLength":3,"maxLength":3},"interval":{"type":"string","knownValues":["month","quarter","year"],"maxLength":16},"tierLabel":{"type":"string","maxLength":200},"subscriptionGroupKey":{"type":"string","maxLength":256},"listing":{"type":"ref","ref":"com.atproto.repo.strongRef"},"status":{"type":"string","knownValues":["pending_setup","active","converting","converted","canceled","superseded","failed","expired"],"maxLength":32},"statusDetail":{"type":"string","maxLength":500,"description":"Coarse machine-readable reason for the current state (e.g. RecipientNotPayable, RecipientAppApprovalRequired, card_declined, awaiting_autoconvert_grace)."},"autoConvert":{"type":"boolean"},"url":{"type":"string","format":"uri","maxLength":2048,"description":"ATM-hosted card-save/manage page for this pledge."},"convertedPaymentId":{"type":"string","maxLength":256},"convertedSubscriptionId":{"type":"string","maxLength":256},"convertedAt":{"type":"string","format":"datetime"},"canceledAt":{"type":"string","format":"datetime"},"canceledBy":{"type":"string","knownValues":["payer","app","creator","admin","system"],"maxLength":16},"expiresAt":{"type":"string","format":"datetime"},"createdAt":{"type":"string","format":"datetime"}}},"main":{"type":"query","description":"List pledges originated by the authenticated app. Requires app service-auth.","parameters":{"type":"params","properties":{"environment":{"type":"string","knownValues":["test","live"],"maxLength":8},"recipientDid":{"type":"string","format":"did"},"status":{"type":"string","knownValues":["pending_setup","active","converting","converted","canceled","superseded","failed","expired","all"],"maxLength":32},"limit":{"type":"integer","minimum":1,"maximum":100,"default":50},"cursor":{"type":"string","maxLength":1024}}},"output":{"encoding":"application/json","schema":{"type":"object","required":["pledges"],"properties":{"pledges":{"type":"array","items":{"type":"ref","ref":"#pledge"}},"cursor":{"type":"string","maxLength":1024}}}}}}}