{"action":"closed","issue":{"url":"https://api.github.com/repos/reactivepixel/Gravity/issues/16","labels_url":"https://api.github.com/repos/reactivepixel/Gravity/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/reactivepixel/Gravity/issues/16/comments","events_url":"https://api.github.com/repos/reactivepixel/Gravity/issues/16/events","html_url":"https://github.com/reactivepixel/Gravity/issues/16","id":120589794,"number":16,"title":"Create /order/update/...","user":{"login":"karhodes","id":8616187,"avatar_url":"https://avatars.githubusercontent.com/u/8616187?v=3","gravatar_id":"","url":"https://api.github.com/users/karhodes","html_url":"https://github.com/karhodes","followers_url":"https://api.github.com/users/karhodes/followers","following_url":"https://api.github.com/users/karhodes/following{/other_user}","gists_url":"https://api.github.com/users/karhodes/gists{/gist_id}","starred_url":"https://api.github.com/users/karhodes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karhodes/subscriptions","organizations_url":"https://api.github.com/users/karhodes/orgs","repos_url":"https://api.github.com/users/karhodes/repos","events_url":"https://api.github.com/users/karhodes/events{/privacy}","received_events_url":"https://api.github.com/users/karhodes/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"al1271","id":8648028,"avatar_url":"https://avatars.githubusercontent.com/u/8648028?v=3","gravatar_id":"","url":"https://api.github.com/users/al1271","html_url":"https://github.com/al1271","followers_url":"https://api.github.com/users/al1271/followers","following_url":"https://api.github.com/users/al1271/following{/other_user}","gists_url":"https://api.github.com/users/al1271/gists{/gist_id}","starred_url":"https://api.github.com/users/al1271/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/al1271/subscriptions","organizations_url":"https://api.github.com/users/al1271/orgs","repos_url":"https://api.github.com/users/al1271/repos","events_url":"https://api.github.com/users/al1271/events{/privacy}","received_events_url":"https://api.github.com/users/al1271/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/reactivepixel/Gravity/milestones/3","html_url":"https://github.com/reactivepixel/Gravity/milestones/All%20Endpoints","labels_url":"https://api.github.com/repos/reactivepixel/Gravity/milestones/3/labels","id":1457298,"number":3,"title":"All Endpoints","description":"","creator":{"login":"reactivepixel","id":430063,"avatar_url":"https://avatars.githubusercontent.com/u/430063?v=3","gravatar_id":"","url":"https://api.github.com/users/reactivepixel","html_url":"https://github.com/reactivepixel","followers_url":"https://api.github.com/users/reactivepixel/followers","following_url":"https://api.github.com/users/reactivepixel/following{/other_user}","gists_url":"https://api.github.com/users/reactivepixel/gists{/gist_id}","starred_url":"https://api.github.com/users/reactivepixel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reactivepixel/subscriptions","organizations_url":"https://api.github.com/users/reactivepixel/orgs","repos_url":"https://api.github.com/users/reactivepixel/repos","events_url":"https://api.github.com/users/reactivepixel/events{/privacy}","received_events_url":"https://api.github.com/users/reactivepixel/received_events","type":"User","site_admin":false},"open_issues":13,"closed_issues":10,"state":"open","created_at":"2015-12-12T15:25:36Z","updated_at":"2015-12-12T21:14:29Z","due_on":"2015-12-15T05:00:00Z","closed_at":null},"comments":0,"created_at":"2015-12-05T21:42:49Z","updated_at":"2015-12-12T21:14:29Z","closed_at":"2015-12-12T21:14:29Z","body":"Develop the routes & logic associated with /order/update/...\r\n\r\nFull documentation found in readme.\r\n\r\nThere are two parts to this task:  /order/update/inspect & /order/update/ship\r\nSteps (Inspect):\r\n1.  First available inspector is assigned to the order\r\n2.  Inspector verifies package against order\r\n3.  Order status changed to \"shipping\"; timestamp updated\r\n\r\nTables & columns needed (Inspect):\r\n1.  orders (all orders with status of \"inspecting\"):  uuid, status, timestamp, units on order\r\n2.  workers (uuid, name, job, status)\r\n3.  packages (match pkg order_id against order uuid, match items)\r\n\r\nSteps (Ship)\r\n1.  First available shipper is assigned to the order\r\n2.  Shipper adds shipping info (method, tracking number)\r\n3.  Order status is changed to \"shipped\"; timestamp updated\r\n\r\nTables & columns needed (Ship):\r\n1.  orders\r\n2.  workers"}}