{"action":"created","issue":{"url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/issues/297","labels_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/issues/297/labels{/name}","comments_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/issues/297/comments","events_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/issues/297/events","html_url":"https://github.com/openfoodfoundation/openfoodnetwork/issues/297","id":49408807,"number":297,"title":"User balance functionality","user":{"login":"lin-d-hop","id":8669848,"avatar_url":"https://avatars.githubusercontent.com/u/8669848?v=3","gravatar_id":"","url":"https://api.github.com/users/lin-d-hop","html_url":"https://github.com/lin-d-hop","followers_url":"https://api.github.com/users/lin-d-hop/followers","following_url":"https://api.github.com/users/lin-d-hop/following{/other_user}","gists_url":"https://api.github.com/users/lin-d-hop/gists{/gist_id}","starred_url":"https://api.github.com/users/lin-d-hop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lin-d-hop/subscriptions","organizations_url":"https://api.github.com/users/lin-d-hop/orgs","repos_url":"https://api.github.com/users/lin-d-hop/repos","events_url":"https://api.github.com/users/lin-d-hop/events{/privacy}","received_events_url":"https://api.github.com/users/lin-d-hop/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/labels/uk","name":"uk","color":"bfdadc"}],"state":"closed","locked":false,"assignee":{"login":"lin-d-hop","id":8669848,"avatar_url":"https://avatars.githubusercontent.com/u/8669848?v=3","gravatar_id":"","url":"https://api.github.com/users/lin-d-hop","html_url":"https://github.com/lin-d-hop","followers_url":"https://api.github.com/users/lin-d-hop/followers","following_url":"https://api.github.com/users/lin-d-hop/following{/other_user}","gists_url":"https://api.github.com/users/lin-d-hop/gists{/gist_id}","starred_url":"https://api.github.com/users/lin-d-hop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lin-d-hop/subscriptions","organizations_url":"https://api.github.com/users/lin-d-hop/orgs","repos_url":"https://api.github.com/users/lin-d-hop/repos","events_url":"https://api.github.com/users/lin-d-hop/events{/privacy}","received_events_url":"https://api.github.com/users/lin-d-hop/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/milestones/1","labels_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/milestones/1/labels","id":835974,"number":1,"title":"UK v0.1","description":"Issues and stories that need to be done to test OFN in parallel with Stroudco software.","creator":{"login":"pmackay","id":115115,"avatar_url":"https://avatars.githubusercontent.com/u/115115?v=3","gravatar_id":"","url":"https://api.github.com/users/pmackay","html_url":"https://github.com/pmackay","followers_url":"https://api.github.com/users/pmackay/followers","following_url":"https://api.github.com/users/pmackay/following{/other_user}","gists_url":"https://api.github.com/users/pmackay/gists{/gist_id}","starred_url":"https://api.github.com/users/pmackay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmackay/subscriptions","organizations_url":"https://api.github.com/users/pmackay/orgs","repos_url":"https://api.github.com/users/pmackay/repos","events_url":"https://api.github.com/users/pmackay/events{/privacy}","received_events_url":"https://api.github.com/users/pmackay/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":9,"state":"open","created_at":"2014-10-22T13:56:41Z","updated_at":"2015-01-12T13:56:42Z","due_on":null,"closed_at":null},"comments":14,"created_at":"2014-11-19T15:39:57Z","updated_at":"2015-01-12T13:56:42Z","closed_at":"2015-01-12T13:56:42Z","body":"Integral to the UK food hub usage is the ability for the user and the reports to access their balance, as a function of money paid and order totals.\r\n\r\nThe /accounts page lists all orders for a user, so adding a balance to this page solves the user side.\r\n\r\nI'd rather not store the balance in a DB table, but create it on the fly whenever needed. \r\n\r\nThis will feed into a number of the reporting issues under the UK label including #266  #267.\r\n"},"comment":{"url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/issues/comments/69572627","html_url":"https://github.com/openfoodfoundation/openfoodnetwork/issues/297#issuecomment-69572627","issue_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/issues/297","id":69572627,"user":{"login":"lin-d-hop","id":8669848,"avatar_url":"https://avatars.githubusercontent.com/u/8669848?v=3","gravatar_id":"","url":"https://api.github.com/users/lin-d-hop","html_url":"https://github.com/lin-d-hop","followers_url":"https://api.github.com/users/lin-d-hop/followers","following_url":"https://api.github.com/users/lin-d-hop/following{/other_user}","gists_url":"https://api.github.com/users/lin-d-hop/gists{/gist_id}","starred_url":"https://api.github.com/users/lin-d-hop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lin-d-hop/subscriptions","organizations_url":"https://api.github.com/users/lin-d-hop/orgs","repos_url":"https://api.github.com/users/lin-d-hop/repos","events_url":"https://api.github.com/users/lin-d-hop/events{/privacy}","received_events_url":"https://api.github.com/users/lin-d-hop/received_events","type":"User","site_admin":false},"created_at":"2015-01-12T13:56:42Z","updated_at":"2015-01-12T13:56:42Z","body":"Now merged in #313 \r\nClosing :-)"}}