{"action":"created","comment":{"url":"https://api.github.com/repos/meyasubaco/dashboard-api/pulls/comments/52016544","id":52016544,"diff_hunk":"@@ -2,19 +2,16 @@\n \n class AppInitializer\n   def app_initialize\n-    # Parse用の設定\n-    #########################################\n     app_id_env_name = 'PARSE_APP_ID'\n     api_key_env_name = 'PARSE_API_KEY'\n+    master_key_env_name = 'PARSE_MASTER_KEY'","path":"config/app_initializer.rb","position":8,"original_position":8,"commit_id":"210376fd70e5ece74999aee0a721ab6aad50124f","original_commit_id":"210376fd70e5ece74999aee0a721ab6aad50124f","user":{"login":"himaratsu","id":1206009,"avatar_url":"https://avatars.githubusercontent.com/u/1206009?v=3","gravatar_id":"","url":"https://api.github.com/users/himaratsu","html_url":"https://github.com/himaratsu","followers_url":"https://api.github.com/users/himaratsu/followers","following_url":"https://api.github.com/users/himaratsu/following{/other_user}","gists_url":"https://api.github.com/users/himaratsu/gists{/gist_id}","starred_url":"https://api.github.com/users/himaratsu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/himaratsu/subscriptions","organizations_url":"https://api.github.com/users/himaratsu/orgs","repos_url":"https://api.github.com/users/himaratsu/repos","events_url":"https://api.github.com/users/himaratsu/events{/privacy}","received_events_url":"https://api.github.com/users/himaratsu/received_events","type":"User","site_admin":false},"body":"> この時点でWEBPAY_SECRET_KEYの確認もしたほうが良いかな？\r\n\r\n修正します！","created_at":"2016-02-05T13:44:33Z","updated_at":"2016-02-05T13:44:33Z","html_url":"https://github.com/meyasubaco/dashboard-api/pull/76#discussion_r52016544","pull_request_url":"https://api.github.com/repos/meyasubaco/dashboard-api/pulls/76","_links":{"self":{"href":"https://api.github.com/repos/meyasubaco/dashboard-api/pulls/comments/52016544"},"html":{"href":"https://github.com/meyasubaco/dashboard-api/pull/76#discussion_r52016544"},"pull_request":{"href":"https://api.github.com/repos/meyasubaco/dashboard-api/pulls/76"}}},"pull_request":{"url":"https://api.github.com/repos/meyasubaco/dashboard-api/pulls/76","id":57153586,"html_url":"https://github.com/meyasubaco/dashboard-api/pull/76","diff_url":"https://github.com/meyasubaco/dashboard-api/pull/76.diff","patch_url":"https://github.com/meyasubaco/dashboard-api/pull/76.patch","issue_url":"https://api.github.com/repos/meyasubaco/dashboard-api/issues/76","number":76,"state":"open","locked":false,"title":"課金開始できるようにする","user":{"login":"himaratsu","id":1206009,"avatar_url":"https://avatars.githubusercontent.com/u/1206009?v=3","gravatar_id":"","url":"https://api.github.com/users/himaratsu","html_url":"https://github.com/himaratsu","followers_url":"https://api.github.com/users/himaratsu/followers","following_url":"https://api.github.com/users/himaratsu/following{/other_user}","gists_url":"https://api.github.com/users/himaratsu/gists{/gist_id}","starred_url":"https://api.github.com/users/himaratsu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/himaratsu/subscriptions","organizations_url":"https://api.github.com/users/himaratsu/orgs","repos_url":"https://api.github.com/users/himaratsu/repos","events_url":"https://api.github.com/users/himaratsu/events{/privacy}","received_events_url":"https://api.github.com/users/himaratsu/received_events","type":"User","site_admin":false},"body":"# 概要\r\n\r\n* 課金開始のためのAPIを作成しました\r\n* 課金の流れ\r\n * 1. カード情報入力UIから webpay の token を取得する\r\n * 2. token から webpay の consumer を作成する（月額課金のために必要）\r\n * 3. Payment クラスを作成し、consumer.id などを保持しておく\r\n * 4. User クラスと作成した payment を紐づけ\r\n * 5. 履歴管理用のクラス PaymentHistory に情報を保存\r\n\r\n1の部分はまだできてないので、code上で取得するようにいったんしてます。\r\n\r\n# 注意\r\n\r\n* ローカルで動かすには key の追加が必要です\r\n * Parse の MASTER_KEY\r\n * Webpay の SECRET_KEY\r\n * -> Heroku, Travis には設定済です\r\n\r\n# 懸念\r\n\r\n* 保存する部分はトランザクション張ったほうがいいかな？","created_at":"2016-01-26T00:33:01Z","updated_at":"2016-02-05T13:44:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e858af8c56fee3e3a25965d62a34d8ebbbd2f277","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/meyasubaco/dashboard-api/pulls/76/commits","review_comments_url":"https://api.github.com/repos/meyasubaco/dashboard-api/pulls/76/comments","review_comment_url":"https://api.github.com/repos/meyasubaco/dashboard-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/meyasubaco/dashboard-api/issues/76/comments","statuses_url":"https://api.github.com/repos/meyasubaco/dashboard-api/statuses/210376fd70e5ece74999aee0a721ab6aad50124f","head":{"label":"meyasubaco:start-pro-plan","ref":"start-pro-plan","sha":"210376fd70e5ece74999aee0a721ab6aad50124f","user":{"login":"meyasubaco","id":10242909,"avatar_url":"https://avatars.githubusercontent.com/u/10242909?v=3","gravatar_id":"","url":"https://api.github.com/users/meyasubaco","html_url":"https://github.com/meyasubaco","followers_url":"https://api.github.com/users/meyasubaco/followers","following_url":"https://api.github.com/users/meyasubaco/following{/other_user}","gists_url":"https://api.github.com/users/meyasubaco/gists{/gist_id}","starred_url":"https://api.github.com/users/meyasubaco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meyasubaco/subscriptions","organizations_url":"https://api.github.com/users/meyasubaco/orgs","repos_url":"https://api.github.com/users/meyasubaco/repos","events_url":"https://api.github.com/users/meyasubaco/events{/privacy}","received_events_url":"https://api.github.com/users/meyasubaco/received_events","type":"Organization","site_admin":false},"repo":{"id":35916652,"name":"dashboard-api","full_name":"meyasubaco/dashboard-api","owner":{"login":"meyasubaco","id":10242909,"avatar_url":"https://avatars.githubusercontent.com/u/10242909?v=3","gravatar_id":"","url":"https://api.github.com/users/meyasubaco","html_url":"https://github.com/meyasubaco","followers_url":"https://api.github.com/users/meyasubaco/followers","following_url":"https://api.github.com/users/meyasubaco/following{/other_user}","gists_url":"https://api.github.com/users/meyasubaco/gists{/gist_id}","starred_url":"https://api.github.com/users/meyasubaco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meyasubaco/subscriptions","organizations_url":"https://api.github.com/users/meyasubaco/orgs","repos_url":"https://api.github.com/users/meyasubaco/repos","events_url":"https://api.github.com/users/meyasubaco/events{/privacy}","received_events_url":"https://api.github.com/users/meyasubaco/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/meyasubaco/dashboard-api","description":"","fork":false,"url":"https://api.github.com/repos/meyasubaco/dashboard-api","forks_url":"https://api.github.com/repos/meyasubaco/dashboard-api/forks","keys_url":"https://api.github.com/repos/meyasubaco/dashboard-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/meyasubaco/dashboard-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/meyasubaco/dashboard-api/teams","hooks_url":"https://api.github.com/repos/meyasubaco/dashboard-api/hooks","issue_events_url":"https://api.github.com/repos/meyasubaco/dashboard-api/issues/events{/number}","events_url":"https://api.github.com/repos/meyasubaco/dashboard-api/events","assignees_url":"https://api.github.com/repos/meyasubaco/dashboard-api/assignees{/user}","branches_url":"https://api.github.com/repos/meyasubaco/dashboard-api/branches{/branch}","tags_url":"https://api.github.com/repos/meyasubaco/dashboard-api/tags","blobs_url":"https://api.github.com/repos/meyasubaco/dashboard-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/meyasubaco/dashboard-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/meyasubaco/dashboard-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/meyasubaco/dashboard-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/meyasubaco/dashboard-api/statuses/{sha}","languages_url":"https://api.github.com/repos/meyasubaco/dashboard-api/languages","stargazers_url":"https://api.github.com/repos/meyasubaco/dashboard-api/stargazers","contributors_url":"https://api.github.com/repos/meyasubaco/dashboard-api/contributors","subscribers_url":"https://api.github.com/repos/meyasubaco/dashboard-api/subscribers","subscription_url":"https://api.github.com/repos/meyasubaco/dashboard-api/subscription","commits_url":"https://api.github.com/repos/meyasubaco/dashboard-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/meyasubaco/dashboard-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/meyasubaco/dashboard-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/meyasubaco/dashboard-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/meyasubaco/dashboard-api/contents/{+path}","compare_url":"https://api.github.com/repos/meyasubaco/dashboard-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/meyasubaco/dashboard-api/merges","archive_url":"https://api.github.com/repos/meyasubaco/dashboard-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/meyasubaco/dashboard-api/downloads","issues_url":"https://api.github.com/repos/meyasubaco/dashboard-api/issues{/number}","pulls_url":"https://api.github.com/repos/meyasubaco/dashboard-api/pulls{/number}","milestones_url":"https://api.github.com/repos/meyasubaco/dashboard-api/milestones{/number}","notifications_url":"https://api.github.com/repos/meyasubaco/dashboard-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/meyasubaco/dashboard-api/labels{/name}","releases_url":"https://api.github.com/repos/meyasubaco/dashboard-api/releases{/id}","deployments_url":"https://api.github.com/repos/meyasubaco/dashboard-api/deployments","created_at":"2015-05-20T00:45:03Z","updated_at":"2016-01-14T01:30:13Z","pushed_at":"2016-02-05T13:34:45Z","git_url":"git://github.com/meyasubaco/dashboard-api.git","ssh_url":"git@github.com:meyasubaco/dashboard-api.git","clone_url":"https://github.com/meyasubaco/dashboard-api.git","svn_url":"https://github.com/meyasubaco/dashboard-api","homepage":null,"size":92,"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":11,"forks":0,"open_issues":11,"watchers":0,"default_branch":"master"}},"base":{"label":"meyasubaco:master","ref":"master","sha":"0ff50a000c302f03bdb7360dacb5bf5e793441e3","user":{"login":"meyasubaco","id":10242909,"avatar_url":"https://avatars.githubusercontent.com/u/10242909?v=3","gravatar_id":"","url":"https://api.github.com/users/meyasubaco","html_url":"https://github.com/meyasubaco","followers_url":"https://api.github.com/users/meyasubaco/followers","following_url":"https://api.github.com/users/meyasubaco/following{/other_user}","gists_url":"https://api.github.com/users/meyasubaco/gists{/gist_id}","starred_url":"https://api.github.com/users/meyasubaco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meyasubaco/subscriptions","organizations_url":"https://api.github.com/users/meyasubaco/orgs","repos_url":"https://api.github.com/users/meyasubaco/repos","events_url":"https://api.github.com/users/meyasubaco/events{/privacy}","received_events_url":"https://api.github.com/users/meyasubaco/received_events","type":"Organization","site_admin":false},"repo":{"id":35916652,"name":"dashboard-api","full_name":"meyasubaco/dashboard-api","owner":{"login":"meyasubaco","id":10242909,"avatar_url":"https://avatars.githubusercontent.com/u/10242909?v=3","gravatar_id":"","url":"https://api.github.com/users/meyasubaco","html_url":"https://github.com/meyasubaco","followers_url":"https://api.github.com/users/meyasubaco/followers","following_url":"https://api.github.com/users/meyasubaco/following{/other_user}","gists_url":"https://api.github.com/users/meyasubaco/gists{/gist_id}","starred_url":"https://api.github.com/users/meyasubaco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meyasubaco/subscriptions","organizations_url":"https://api.github.com/users/meyasubaco/orgs","repos_url":"https://api.github.com/users/meyasubaco/repos","events_url":"https://api.github.com/users/meyasubaco/events{/privacy}","received_events_url":"https://api.github.com/users/meyasubaco/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/meyasubaco/dashboard-api","description":"","fork":false,"url":"https://api.github.com/repos/meyasubaco/dashboard-api","forks_url":"https://api.github.com/repos/meyasubaco/dashboard-api/forks","keys_url":"https://api.github.com/repos/meyasubaco/dashboard-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/meyasubaco/dashboard-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/meyasubaco/dashboard-api/teams","hooks_url":"https://api.github.com/repos/meyasubaco/dashboard-api/hooks","issue_events_url":"https://api.github.com/repos/meyasubaco/dashboard-api/issues/events{/number}","events_url":"https://api.github.com/repos/meyasubaco/dashboard-api/events","assignees_url":"https://api.github.com/repos/meyasubaco/dashboard-api/assignees{/user}","branches_url":"https://api.github.com/repos/meyasubaco/dashboard-api/branches{/branch}","tags_url":"https://api.github.com/repos/meyasubaco/dashboard-api/tags","blobs_url":"https://api.github.com/repos/meyasubaco/dashboard-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/meyasubaco/dashboard-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/meyasubaco/dashboard-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/meyasubaco/dashboard-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/meyasubaco/dashboard-api/statuses/{sha}","languages_url":"https://api.github.com/repos/meyasubaco/dashboard-api/languages","stargazers_url":"https://api.github.com/repos/meyasubaco/dashboard-api/stargazers","contributors_url":"https://api.github.com/repos/meyasubaco/dashboard-api/contributors","subscribers_url":"https://api.github.com/repos/meyasubaco/dashboard-api/subscribers","subscription_url":"https://api.github.com/repos/meyasubaco/dashboard-api/subscription","commits_url":"https://api.github.com/repos/meyasubaco/dashboard-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/meyasubaco/dashboard-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/meyasubaco/dashboard-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/meyasubaco/dashboard-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/meyasubaco/dashboard-api/contents/{+path}","compare_url":"https://api.github.com/repos/meyasubaco/dashboard-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/meyasubaco/dashboard-api/merges","archive_url":"https://api.github.com/repos/meyasubaco/dashboard-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/meyasubaco/dashboard-api/downloads","issues_url":"https://api.github.com/repos/meyasubaco/dashboard-api/issues{/number}","pulls_url":"https://api.github.com/repos/meyasubaco/dashboard-api/pulls{/number}","milestones_url":"https://api.github.com/repos/meyasubaco/dashboard-api/milestones{/number}","notifications_url":"https://api.github.com/repos/meyasubaco/dashboard-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/meyasubaco/dashboard-api/labels{/name}","releases_url":"https://api.github.com/repos/meyasubaco/dashboard-api/releases{/id}","deployments_url":"https://api.github.com/repos/meyasubaco/dashboard-api/deployments","created_at":"2015-05-20T00:45:03Z","updated_at":"2016-01-14T01:30:13Z","pushed_at":"2016-02-05T13:34:45Z","git_url":"git://github.com/meyasubaco/dashboard-api.git","ssh_url":"git@github.com:meyasubaco/dashboard-api.git","clone_url":"https://github.com/meyasubaco/dashboard-api.git","svn_url":"https://github.com/meyasubaco/dashboard-api","homepage":null,"size":92,"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":11,"forks":0,"open_issues":11,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/meyasubaco/dashboard-api/pulls/76"},"html":{"href":"https://github.com/meyasubaco/dashboard-api/pull/76"},"issue":{"href":"https://api.github.com/repos/meyasubaco/dashboard-api/issues/76"},"comments":{"href":"https://api.github.com/repos/meyasubaco/dashboard-api/issues/76/comments"},"review_comments":{"href":"https://api.github.com/repos/meyasubaco/dashboard-api/pulls/76/comments"},"review_comment":{"href":"https://api.github.com/repos/meyasubaco/dashboard-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/meyasubaco/dashboard-api/pulls/76/commits"},"statuses":{"href":"https://api.github.com/repos/meyasubaco/dashboard-api/statuses/210376fd70e5ece74999aee0a721ab6aad50124f"}}}}