{"action":"created","issue":{"url":"https://api.github.com/repos/gratipay/gratipay.com/issues/4569","repository_url":"https://api.github.com/repos/gratipay/gratipay.com","labels_url":"https://api.github.com/repos/gratipay/gratipay.com/issues/4569/labels{/name}","comments_url":"https://api.github.com/repos/gratipay/gratipay.com/issues/4569/comments","events_url":"https://api.github.com/repos/gratipay/gratipay.com/issues/4569/events","html_url":"https://github.com/gratipay/gratipay.com/pull/4569","id":249995801,"number":4569,"title":"Pay for package.json in aggregate","user":{"login":"whit537","id":134455,"avatar_url":"https://avatars2.githubusercontent.com/u/134455?v=4","gravatar_id":"","url":"https://api.github.com/users/whit537","html_url":"https://github.com/whit537","followers_url":"https://api.github.com/users/whit537/followers","following_url":"https://api.github.com/users/whit537/following{/other_user}","gists_url":"https://api.github.com/users/whit537/gists{/gist_id}","starred_url":"https://api.github.com/users/whit537/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whit537/subscriptions","organizations_url":"https://api.github.com/users/whit537/orgs","repos_url":"https://api.github.com/users/whit537/repos","events_url":"https://api.github.com/users/whit537/events{/privacy}","received_events_url":"https://api.github.com/users/whit537/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-08-14T10:46:51Z","updated_at":"2017-08-14T14:45:07Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/gratipay/gratipay.com/pulls/4569","html_url":"https://github.com/gratipay/gratipay.com/pull/4569","diff_url":"https://github.com/gratipay/gratipay.com/pull/4569.diff","patch_url":"https://github.com/gratipay/gratipay.com/pull/4569.patch"},"body":"So far under #4427 we've deployed _discovery_ via `package.json`, but the payment mechanic is the same one we've always had: recurring weekly payments managed individually for each and every package. This PR adds a new payment mechanic (our first in years—ever?): givers can set a single dollar amount to pay for their entire `package.json` in aggregate.\r\n\r\n### Todo\r\n\r\n- [ ] replace listing with \"How much?\" prompt\r\n- [ ] add Review page with receipt-y thing + credit card form\r\n- [ ] add cron to process distributions daily\r\n- [ ] add distribution customization UI\r\n- [ ] email receipt\r\n- [ ] email invitation to maintainers\r\n- [ ] email distribution report"},"comment":{"url":"https://api.github.com/repos/gratipay/gratipay.com/issues/comments/322209939","html_url":"https://github.com/gratipay/gratipay.com/pull/4569#issuecomment-322209939","issue_url":"https://api.github.com/repos/gratipay/gratipay.com/issues/4569","id":322209939,"user":{"login":"whit537","id":134455,"avatar_url":"https://avatars2.githubusercontent.com/u/134455?v=4","gravatar_id":"","url":"https://api.github.com/users/whit537","html_url":"https://github.com/whit537","followers_url":"https://api.github.com/users/whit537/followers","following_url":"https://api.github.com/users/whit537/following{/other_user}","gists_url":"https://api.github.com/users/whit537/gists{/gist_id}","starred_url":"https://api.github.com/users/whit537/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whit537/subscriptions","organizations_url":"https://api.github.com/users/whit537/orgs","repos_url":"https://api.github.com/users/whit537/repos","events_url":"https://api.github.com/users/whit537/events{/privacy}","received_events_url":"https://api.github.com/users/whit537/received_events","type":"User","site_admin":false},"created_at":"2017-08-14T14:45:07Z","updated_at":"2017-08-14T14:45:07Z","body":"Here's a write-up of what's sketched there:\r\n\r\n1. giver posts a package.json\r\n1. giver enters a dollar amount and a distribution (default or custom)\r\n1. giver signs up/in\r\n1. giver reviews payment instruction, enters cc details if necessary\r\n1. on post:\r\n    1. store payment instruction\r\n    1. charge giver immediately and increase their balance\r\n    1. email receipt to giver\r\n    1. if all specified packages are claimed-or-locked: distribute immediately\r\n    1. else: email maintainers of unclaimed-or-locked packages and wait\r\n\r\nDaily cron task:\r\n\r\n1. review payment instructions\r\n1. for each payment instruction that has been open for a week:\r\n    1. distribute funds based to opted-in receivers\r\n    1. email a final report to giver"}}
{"actor":{"display_login":"whit537"}}