{"action":"created","comment":{"url":"https://api.github.com/repos/kosbrother/mongmongwoo/pulls/comments/77480045","id":77480045,"diff_hunk":"@@ -3,15 +3,18 @@ class Order < ActiveRecord::Base\n   include CalculatePrice\n \n   enum status: { \"新訂單\" => 0, \"處理中\" => 1, \"配送中\" => 2, \"完成取貨\" => 3, \"訂單取消\" => 4, \"已到店\" => 5, \"訂單變更\" => 6 ,\"未取訂貨\" => 7, \"退貨\" => 8 }\n+  enum ship_type: { \"store_delivery\": 0, \"home_delivery\": 1 }\n \n   COMBINE_STATUS = [\"新訂單\", \"處理中\", \"訂單變更\"]\n   RESTOCK_STATUS = [\"未取訂貨\", \"退貨\"]\n   OCCUPY_STOCK_STATUS = [\"處理中\", \"訂單變更\"]\n   CANCELABLE_STATUS = [\"新訂單\", \"處理中\"]\n   FAIL_STATUS = [\"訂單取消\", \"未取訂單\", \"退貨\"]\n   SHOW_BARCODE_STATUS = [\"配送中\", \"訂單變更\"]\n+  SHOW_SHIP_TYPE_STATUS = [\"新訂單\", \"處理中\", \"配送中\", \"完成取貨\"]\n   COMBINE_STATUS_CODE = Order::COMBINE_STATUS.map{|status| Order.statuses[status]}\n   OCCUPY_STOCK_STATUS_CODE = Order::OCCUPY_STOCK_STATUS.map{|status| Order.statuses[status]}\n+  SHOW_SHIP_TYPE_STATUS_CODE = Order::SHOW_SHIP_TYPE_STATUS.map{|status| Order.statuses[status]}","path":"app/models/order.rb","position":15,"original_position":15,"commit_id":"ecc784cc24ff37da0d99d138b60b54e4af325a6c","original_commit_id":"ecc784cc24ff37da0d99d138b60b54e4af325a6c","user":{"login":"StevenKo","id":1100488,"avatar_url":"https://avatars.githubusercontent.com/u/1100488?v=3","gravatar_id":"","url":"https://api.github.com/users/StevenKo","html_url":"https://github.com/StevenKo","followers_url":"https://api.github.com/users/StevenKo/followers","following_url":"https://api.github.com/users/StevenKo/following{/other_user}","gists_url":"https://api.github.com/users/StevenKo/gists{/gist_id}","starred_url":"https://api.github.com/users/StevenKo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StevenKo/subscriptions","organizations_url":"https://api.github.com/users/StevenKo/orgs","repos_url":"https://api.github.com/users/StevenKo/repos","events_url":"https://api.github.com/users/StevenKo/events{/privacy}","received_events_url":"https://api.github.com/users/StevenKo/received_events","type":"User","site_admin":false},"body":"刪掉","created_at":"2016-09-05T07:37:19Z","updated_at":"2016-09-05T07:37:19Z","html_url":"https://github.com/kosbrother/mongmongwoo/pull/261#discussion_r77480045","pull_request_url":"https://api.github.com/repos/kosbrother/mongmongwoo/pulls/261","_links":{"self":{"href":"https://api.github.com/repos/kosbrother/mongmongwoo/pulls/comments/77480045"},"html":{"href":"https://github.com/kosbrother/mongmongwoo/pull/261#discussion_r77480045"},"pull_request":{"href":"https://api.github.com/repos/kosbrother/mongmongwoo/pulls/261"}}},"pull_request":{"url":"https://api.github.com/repos/kosbrother/mongmongwoo/pulls/261","id":83271249,"html_url":"https://github.com/kosbrother/mongmongwoo/pull/261","diff_url":"https://github.com/kosbrother/mongmongwoo/pull/261.diff","patch_url":"https://github.com/kosbrother/mongmongwoo/pull/261.patch","issue_url":"https://api.github.com/repos/kosbrother/mongmongwoo/issues/261","number":261,"state":"open","locked":false,"title":"Admin home delivery setting","user":{"login":"gvszg","id":7985560,"avatar_url":"https://avatars.githubusercontent.com/u/7985560?v=3","gravatar_id":"","url":"https://api.github.com/users/gvszg","html_url":"https://github.com/gvszg","followers_url":"https://api.github.com/users/gvszg/followers","following_url":"https://api.github.com/users/gvszg/following{/other_user}","gists_url":"https://api.github.com/users/gvszg/gists{/gist_id}","starred_url":"https://api.github.com/users/gvszg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gvszg/subscriptions","organizations_url":"https://api.github.com/users/gvszg/orgs","repos_url":"https://api.github.com/users/gvszg/repos","events_url":"https://api.github.com/users/gvszg/events{/privacy}","received_events_url":"https://api.github.com/users/gvszg/received_events","type":"User","site_admin":false},"body":"![2016-08-30 21 24 24](https://cloud.githubusercontent.com/assets/7985560/18090708/9b431ec2-6ef8-11e6-8f06-9fd44481333a.png)\r\n\r\n\r\n![2016-08-30 20 18 05](https://cloud.githubusercontent.com/assets/7985560/18090719/a96bc3f0-6ef8-11e6-9808-f4fbce5bedc3.png)\r\n宅配只支援 xls 檔案\r\n正式上傳檔案時不會有標題","created_at":"2016-08-30T13:29:28Z","updated_at":"2016-09-05T07:37:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"52479c0fcf837efa0ebdb215b51f343fe7a843ca","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/kosbrother/mongmongwoo/pulls/261/commits","review_comments_url":"https://api.github.com/repos/kosbrother/mongmongwoo/pulls/261/comments","review_comment_url":"https://api.github.com/repos/kosbrother/mongmongwoo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kosbrother/mongmongwoo/issues/261/comments","statuses_url":"https://api.github.com/repos/kosbrother/mongmongwoo/statuses/ecc784cc24ff37da0d99d138b60b54e4af325a6c","head":{"label":"kosbrother:admin-home-delivery-setting","ref":"admin-home-delivery-setting","sha":"ecc784cc24ff37da0d99d138b60b54e4af325a6c","user":{"login":"kosbrother","id":14856209,"avatar_url":"https://avatars.githubusercontent.com/u/14856209?v=3","gravatar_id":"","url":"https://api.github.com/users/kosbrother","html_url":"https://github.com/kosbrother","followers_url":"https://api.github.com/users/kosbrother/followers","following_url":"https://api.github.com/users/kosbrother/following{/other_user}","gists_url":"https://api.github.com/users/kosbrother/gists{/gist_id}","starred_url":"https://api.github.com/users/kosbrother/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kosbrother/subscriptions","organizations_url":"https://api.github.com/users/kosbrother/orgs","repos_url":"https://api.github.com/users/kosbrother/repos","events_url":"https://api.github.com/users/kosbrother/events{/privacy}","received_events_url":"https://api.github.com/users/kosbrother/received_events","type":"Organization","site_admin":false},"repo":{"id":56124462,"name":"mongmongwoo","full_name":"kosbrother/mongmongwoo","owner":{"login":"kosbrother","id":14856209,"avatar_url":"https://avatars.githubusercontent.com/u/14856209?v=3","gravatar_id":"","url":"https://api.github.com/users/kosbrother","html_url":"https://github.com/kosbrother","followers_url":"https://api.github.com/users/kosbrother/followers","following_url":"https://api.github.com/users/kosbrother/following{/other_user}","gists_url":"https://api.github.com/users/kosbrother/gists{/gist_id}","starred_url":"https://api.github.com/users/kosbrother/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kosbrother/subscriptions","organizations_url":"https://api.github.com/users/kosbrother/orgs","repos_url":"https://api.github.com/users/kosbrother/repos","events_url":"https://api.github.com/users/kosbrother/events{/privacy}","received_events_url":"https://api.github.com/users/kosbrother/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kosbrother/mongmongwoo","description":"","fork":false,"url":"https://api.github.com/repos/kosbrother/mongmongwoo","forks_url":"https://api.github.com/repos/kosbrother/mongmongwoo/forks","keys_url":"https://api.github.com/repos/kosbrother/mongmongwoo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kosbrother/mongmongwoo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kosbrother/mongmongwoo/teams","hooks_url":"https://api.github.com/repos/kosbrother/mongmongwoo/hooks","issue_events_url":"https://api.github.com/repos/kosbrother/mongmongwoo/issues/events{/number}","events_url":"https://api.github.com/repos/kosbrother/mongmongwoo/events","assignees_url":"https://api.github.com/repos/kosbrother/mongmongwoo/assignees{/user}","branches_url":"https://api.github.com/repos/kosbrother/mongmongwoo/branches{/branch}","tags_url":"https://api.github.com/repos/kosbrother/mongmongwoo/tags","blobs_url":"https://api.github.com/repos/kosbrother/mongmongwoo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kosbrother/mongmongwoo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kosbrother/mongmongwoo/git/refs{/sha}","trees_url":"https://api.github.com/repos/kosbrother/mongmongwoo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kosbrother/mongmongwoo/statuses/{sha}","languages_url":"https://api.github.com/repos/kosbrother/mongmongwoo/languages","stargazers_url":"https://api.github.com/repos/kosbrother/mongmongwoo/stargazers","contributors_url":"https://api.github.com/repos/kosbrother/mongmongwoo/contributors","subscribers_url":"https://api.github.com/repos/kosbrother/mongmongwoo/subscribers","subscription_url":"https://api.github.com/repos/kosbrother/mongmongwoo/subscription","commits_url":"https://api.github.com/repos/kosbrother/mongmongwoo/commits{/sha}","git_commits_url":"https://api.github.com/repos/kosbrother/mongmongwoo/git/commits{/sha}","comments_url":"https://api.github.com/repos/kosbrother/mongmongwoo/comments{/number}","issue_comment_url":"https://api.github.com/repos/kosbrother/mongmongwoo/issues/comments{/number}","contents_url":"https://api.github.com/repos/kosbrother/mongmongwoo/contents/{+path}","compare_url":"https://api.github.com/repos/kosbrother/mongmongwoo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kosbrother/mongmongwoo/merges","archive_url":"https://api.github.com/repos/kosbrother/mongmongwoo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kosbrother/mongmongwoo/downloads","issues_url":"https://api.github.com/repos/kosbrother/mongmongwoo/issues{/number}","pulls_url":"https://api.github.com/repos/kosbrother/mongmongwoo/pulls{/number}","milestones_url":"https://api.github.com/repos/kosbrother/mongmongwoo/milestones{/number}","notifications_url":"https://api.github.com/repos/kosbrother/mongmongwoo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kosbrother/mongmongwoo/labels{/name}","releases_url":"https://api.github.com/repos/kosbrother/mongmongwoo/releases{/id}","deployments_url":"https://api.github.com/repos/kosbrother/mongmongwoo/deployments","created_at":"2016-04-13T05:46:41Z","updated_at":"2016-04-13T05:47:43Z","pushed_at":"2016-09-05T07:04:57Z","git_url":"git://github.com/kosbrother/mongmongwoo.git","ssh_url":"git@github.com:kosbrother/mongmongwoo.git","clone_url":"https://github.com/kosbrother/mongmongwoo.git","svn_url":"https://github.com/kosbrother/mongmongwoo","homepage":null,"size":9868,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"base":{"label":"kosbrother:master","ref":"master","sha":"9e5d9701e86ddd0c8818a9c7c20e5cb45f22407b","user":{"login":"kosbrother","id":14856209,"avatar_url":"https://avatars.githubusercontent.com/u/14856209?v=3","gravatar_id":"","url":"https://api.github.com/users/kosbrother","html_url":"https://github.com/kosbrother","followers_url":"https://api.github.com/users/kosbrother/followers","following_url":"https://api.github.com/users/kosbrother/following{/other_user}","gists_url":"https://api.github.com/users/kosbrother/gists{/gist_id}","starred_url":"https://api.github.com/users/kosbrother/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kosbrother/subscriptions","organizations_url":"https://api.github.com/users/kosbrother/orgs","repos_url":"https://api.github.com/users/kosbrother/repos","events_url":"https://api.github.com/users/kosbrother/events{/privacy}","received_events_url":"https://api.github.com/users/kosbrother/received_events","type":"Organization","site_admin":false},"repo":{"id":56124462,"name":"mongmongwoo","full_name":"kosbrother/mongmongwoo","owner":{"login":"kosbrother","id":14856209,"avatar_url":"https://avatars.githubusercontent.com/u/14856209?v=3","gravatar_id":"","url":"https://api.github.com/users/kosbrother","html_url":"https://github.com/kosbrother","followers_url":"https://api.github.com/users/kosbrother/followers","following_url":"https://api.github.com/users/kosbrother/following{/other_user}","gists_url":"https://api.github.com/users/kosbrother/gists{/gist_id}","starred_url":"https://api.github.com/users/kosbrother/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kosbrother/subscriptions","organizations_url":"https://api.github.com/users/kosbrother/orgs","repos_url":"https://api.github.com/users/kosbrother/repos","events_url":"https://api.github.com/users/kosbrother/events{/privacy}","received_events_url":"https://api.github.com/users/kosbrother/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kosbrother/mongmongwoo","description":"","fork":false,"url":"https://api.github.com/repos/kosbrother/mongmongwoo","forks_url":"https://api.github.com/repos/kosbrother/mongmongwoo/forks","keys_url":"https://api.github.com/repos/kosbrother/mongmongwoo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kosbrother/mongmongwoo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kosbrother/mongmongwoo/teams","hooks_url":"https://api.github.com/repos/kosbrother/mongmongwoo/hooks","issue_events_url":"https://api.github.com/repos/kosbrother/mongmongwoo/issues/events{/number}","events_url":"https://api.github.com/repos/kosbrother/mongmongwoo/events","assignees_url":"https://api.github.com/repos/kosbrother/mongmongwoo/assignees{/user}","branches_url":"https://api.github.com/repos/kosbrother/mongmongwoo/branches{/branch}","tags_url":"https://api.github.com/repos/kosbrother/mongmongwoo/tags","blobs_url":"https://api.github.com/repos/kosbrother/mongmongwoo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kosbrother/mongmongwoo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kosbrother/mongmongwoo/git/refs{/sha}","trees_url":"https://api.github.com/repos/kosbrother/mongmongwoo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kosbrother/mongmongwoo/statuses/{sha}","languages_url":"https://api.github.com/repos/kosbrother/mongmongwoo/languages","stargazers_url":"https://api.github.com/repos/kosbrother/mongmongwoo/stargazers","contributors_url":"https://api.github.com/repos/kosbrother/mongmongwoo/contributors","subscribers_url":"https://api.github.com/repos/kosbrother/mongmongwoo/subscribers","subscription_url":"https://api.github.com/repos/kosbrother/mongmongwoo/subscription","commits_url":"https://api.github.com/repos/kosbrother/mongmongwoo/commits{/sha}","git_commits_url":"https://api.github.com/repos/kosbrother/mongmongwoo/git/commits{/sha}","comments_url":"https://api.github.com/repos/kosbrother/mongmongwoo/comments{/number}","issue_comment_url":"https://api.github.com/repos/kosbrother/mongmongwoo/issues/comments{/number}","contents_url":"https://api.github.com/repos/kosbrother/mongmongwoo/contents/{+path}","compare_url":"https://api.github.com/repos/kosbrother/mongmongwoo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kosbrother/mongmongwoo/merges","archive_url":"https://api.github.com/repos/kosbrother/mongmongwoo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kosbrother/mongmongwoo/downloads","issues_url":"https://api.github.com/repos/kosbrother/mongmongwoo/issues{/number}","pulls_url":"https://api.github.com/repos/kosbrother/mongmongwoo/pulls{/number}","milestones_url":"https://api.github.com/repos/kosbrother/mongmongwoo/milestones{/number}","notifications_url":"https://api.github.com/repos/kosbrother/mongmongwoo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kosbrother/mongmongwoo/labels{/name}","releases_url":"https://api.github.com/repos/kosbrother/mongmongwoo/releases{/id}","deployments_url":"https://api.github.com/repos/kosbrother/mongmongwoo/deployments","created_at":"2016-04-13T05:46:41Z","updated_at":"2016-04-13T05:47:43Z","pushed_at":"2016-09-05T07:04:57Z","git_url":"git://github.com/kosbrother/mongmongwoo.git","ssh_url":"git@github.com:kosbrother/mongmongwoo.git","clone_url":"https://github.com/kosbrother/mongmongwoo.git","svn_url":"https://github.com/kosbrother/mongmongwoo","homepage":null,"size":9868,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kosbrother/mongmongwoo/pulls/261"},"html":{"href":"https://github.com/kosbrother/mongmongwoo/pull/261"},"issue":{"href":"https://api.github.com/repos/kosbrother/mongmongwoo/issues/261"},"comments":{"href":"https://api.github.com/repos/kosbrother/mongmongwoo/issues/261/comments"},"review_comments":{"href":"https://api.github.com/repos/kosbrother/mongmongwoo/pulls/261/comments"},"review_comment":{"href":"https://api.github.com/repos/kosbrother/mongmongwoo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kosbrother/mongmongwoo/pulls/261/commits"},"statuses":{"href":"https://api.github.com/repos/kosbrother/mongmongwoo/statuses/ecc784cc24ff37da0d99d138b60b54e4af325a6c"}}}}
{"actor":{"display_login":"StevenKo"}}