{"action":"created","issue":{"url":"https://api.github.com/repos/guardian/membership-frontend/issues/802","labels_url":"https://api.github.com/repos/guardian/membership-frontend/issues/802/labels{/name}","comments_url":"https://api.github.com/repos/guardian/membership-frontend/issues/802/comments","events_url":"https://api.github.com/repos/guardian/membership-frontend/issues/802/events","html_url":"https://github.com/guardian/membership-frontend/pull/802","id":111196872,"number":802,"title":"Fix bug getting the latest invoice items","user":{"login":"tomverran","id":1388226,"avatar_url":"https://avatars.githubusercontent.com/u/1388226?v=3","gravatar_id":"","url":"https://api.github.com/users/tomverran","html_url":"https://github.com/tomverran","followers_url":"https://api.github.com/users/tomverran/followers","following_url":"https://api.github.com/users/tomverran/following{/other_user}","gists_url":"https://api.github.com/users/tomverran/gists{/gist_id}","starred_url":"https://api.github.com/users/tomverran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomverran/subscriptions","organizations_url":"https://api.github.com/users/tomverran/orgs","repos_url":"https://api.github.com/users/tomverran/repos","events_url":"https://api.github.com/users/tomverran/events{/privacy}","received_events_url":"https://api.github.com/users/tomverran/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"rtyley","id":52038,"avatar_url":"https://avatars.githubusercontent.com/u/52038?v=3","gravatar_id":"","url":"https://api.github.com/users/rtyley","html_url":"https://github.com/rtyley","followers_url":"https://api.github.com/users/rtyley/followers","following_url":"https://api.github.com/users/rtyley/following{/other_user}","gists_url":"https://api.github.com/users/rtyley/gists{/gist_id}","starred_url":"https://api.github.com/users/rtyley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rtyley/subscriptions","organizations_url":"https://api.github.com/users/rtyley/orgs","repos_url":"https://api.github.com/users/rtyley/repos","events_url":"https://api.github.com/users/rtyley/events{/privacy}","received_events_url":"https://api.github.com/users/rtyley/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-10-13T14:50:50Z","updated_at":"2015-10-15T10:00:47Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/guardian/membership-frontend/pulls/802","html_url":"https://github.com/guardian/membership-frontend/pull/802","diff_url":"https://github.com/guardian/membership-frontend/pull/802.diff","patch_url":"https://github.com/guardian/membership-frontend/pull/802.patch"},"body":"It is possible to make amendments through the Zuora web UI which change the ID of the subscription, resulting in a subscription ID with no associated invoices.\r\n\r\nAs such this code alters the query to fetch the payment summary for a given member to instead query on subscription name (number) and then filters the items to return only those associated with the most recent invoice."},"comment":{"url":"https://api.github.com/repos/guardian/membership-frontend/issues/comments/148339318","html_url":"https://github.com/guardian/membership-frontend/pull/802#issuecomment-148339318","issue_url":"https://api.github.com/repos/guardian/membership-frontend/issues/802","id":148339318,"user":{"login":"chrisjowen","id":80583,"avatar_url":"https://avatars.githubusercontent.com/u/80583?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisjowen","html_url":"https://github.com/chrisjowen","followers_url":"https://api.github.com/users/chrisjowen/followers","following_url":"https://api.github.com/users/chrisjowen/following{/other_user}","gists_url":"https://api.github.com/users/chrisjowen/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisjowen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisjowen/subscriptions","organizations_url":"https://api.github.com/users/chrisjowen/orgs","repos_url":"https://api.github.com/users/chrisjowen/repos","events_url":"https://api.github.com/users/chrisjowen/events{/privacy}","received_events_url":"https://api.github.com/users/chrisjowen/received_events","type":"User","site_admin":false},"created_at":"2015-10-15T10:00:47Z","updated_at":"2015-10-15T10:00:47Z","body":"Build is broken, needs pushing with correct membership-common version. Happy to plus one when this is done"}}