{"action":"created","issue":{"url":"https://api.github.com/repos/tablexi/nucore-open/issues/515","repository_url":"https://api.github.com/repos/tablexi/nucore-open","labels_url":"https://api.github.com/repos/tablexi/nucore-open/issues/515/labels{/name}","comments_url":"https://api.github.com/repos/tablexi/nucore-open/issues/515/comments","events_url":"https://api.github.com/repos/tablexi/nucore-open/issues/515/events","html_url":"https://github.com/tablexi/nucore-open/pull/515","id":143530108,"number":515,"title":"[#115285123] Send email notification on order, if configured by facility","user":{"login":"drench","id":46662,"avatar_url":"https://avatars.githubusercontent.com/u/46662?v=3","gravatar_id":"","url":"https://api.github.com/users/drench","html_url":"https://github.com/drench","followers_url":"https://api.github.com/users/drench/followers","following_url":"https://api.github.com/users/drench/following{/other_user}","gists_url":"https://api.github.com/users/drench/gists{/gist_id}","starred_url":"https://api.github.com/users/drench/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drench/subscriptions","organizations_url":"https://api.github.com/users/drench/orgs","repos_url":"https://api.github.com/users/drench/repos","events_url":"https://api.github.com/users/drench/events{/privacy}","received_events_url":"https://api.github.com/users/drench/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-25T15:59:40Z","updated_at":"2016-03-29T16:29:04Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/tablexi/nucore-open/pulls/515","html_url":"https://github.com/tablexi/nucore-open/pull/515","diff_url":"https://github.com/tablexi/nucore-open/pull/515.diff","patch_url":"https://github.com/tablexi/nucore-open/pull/515.patch"},"body":"This adds `order_notification_recipient` to the `Facility` model.\r\n\r\nIf given a value, this address will receive order notifications. These are generated the same time as receipts, and use the same templates, with minor differences: the `Subject` line is different, and only receipts should say \"Thank you for your order\".\r\n\r\nA major part of this is a refactor of `OrdersController#purchase`. I think it's an improvement though we could definitely go further if want to put more time into it. I left this method's specs mostly as-is since its coverage was near-complete."},"comment":{"url":"https://api.github.com/repos/tablexi/nucore-open/issues/comments/202985815","html_url":"https://github.com/tablexi/nucore-open/pull/515#issuecomment-202985815","issue_url":"https://api.github.com/repos/tablexi/nucore-open/issues/515","id":202985815,"user":{"login":"jhanggi","id":1099111,"avatar_url":"https://avatars.githubusercontent.com/u/1099111?v=3","gravatar_id":"","url":"https://api.github.com/users/jhanggi","html_url":"https://github.com/jhanggi","followers_url":"https://api.github.com/users/jhanggi/followers","following_url":"https://api.github.com/users/jhanggi/following{/other_user}","gists_url":"https://api.github.com/users/jhanggi/gists{/gist_id}","starred_url":"https://api.github.com/users/jhanggi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhanggi/subscriptions","organizations_url":"https://api.github.com/users/jhanggi/orgs","repos_url":"https://api.github.com/users/jhanggi/repos","events_url":"https://api.github.com/users/jhanggi/events{/privacy}","received_events_url":"https://api.github.com/users/jhanggi/received_events","type":"User","site_admin":false},"created_at":"2016-03-29T16:29:04Z","updated_at":"2016-03-29T16:29:04Z","body":"Looks like there are merge conflicts."}}