{"action":"created","comment":{"url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/pulls/comments/76538535","id":76538535,"diff_hunk":"@@ -0,0 +1,128 @@\n+<?php\n+\n+if ( ! class_exists( 'WC_Connect_Payment_Methods_Store' ) ) {\n+\n+\tclass WC_Connect_Payment_Methods_Store {\n+\n+\t\t/**\n+\t\t * @var WC_Connect_Service_Settings_Store\n+\t\t */\n+\t\tprotected $service_settings_store;\n+\n+\t\t/**\n+\t\t * @var WC_Connect_API_Client\n+\t\t */\n+\t\tprotected $api_client;\n+\n+\t\t/**\n+\t\t * @var WC_Connect_Logger\n+\t\t */\n+\t\tprotected $logger;\n+\n+\t\tpublic function __construct( WC_Connect_Service_Settings_Store $service_settings_store,\n+\t\t\tWC_Connect_API_Client $api_client, WC_Connect_Logger $logger ) {\n+\n+\t\t\t$this->service_settings_store = $service_settings_store;\n+\t\t\t$this->api_client             = $api_client;\n+\t\t\t$this->logger                 = $logger;\n+\n+\t\t}\n+\n+\t\tpublic function fetch_payment_methods_from_connect_server() {\n+\n+\t\t\t$response_body = $this->api_client->get_payment_methods();\n+\n+\t\t\tif ( is_wp_error( $response_body ) ) {\n+\t\t\t\t$this->logger->log( $response_body, __FUNCTION__ );\n+\t\t\t\treturn;\n+\t\t\t}\n+\n+\t\t\t$payment_methods = $this->get_payment_methods_from_response_body( $response_body );\n+\t\t\tif ( is_wp_error( $payment_methods ) ) {\n+\t\t\t\t$this->logger->log( $payment_methods, __FUNCTION__ );\n+\t\t\t\treturn;\n+\t\t\t}\n+\n+\t\t\t$this->logger->log( 'Successfully loaded payment methods from server response.', __FUNCTION__ );\n+\t\t\t$this->update_last_fetch_timestamp();\n+\n+\t\t\t// If we made it this far, it is safe to store the object\n+\t\t\t$this->update_payment_methods( $payment_methods );\n+\n+\t\t\t// Potentially auto-update the selected method\n+\t\t\t$this->potentially_update_selected_payment_method_from_payment_methods( $payment_methods );\n+\t\t}\n+\n+\t\tprotected function potentially_update_selected_payment_method_from_payment_methods( $payment_methods ) {\n+\t\t\t$payment_method_count = count( $payment_methods );\n+\n+\t\t\t// No payment methods at all? Clear anything we have stored\n+\t\t\tif ( 0 === $payment_method_count ) {\n+\t\t\t\t$this->service_settings_store->set_selected_payment_method_id( 0 );\n+\t\t\t\treturn;\n+\t\t\t}\n+\n+\t\t\t$payment_method_ids = array();\n+\t\t\tforeach ( (array) $payment_methods as $payment_method ) {\n+\t\t\t\t$payment_method_id = intval( $payment_method->payment_method_id );\n+\t\t\t\tif ( 0 !== $payment_method_id ) {\n+\t\t\t\t\t$payment_method_ids[] = $payment_method_id;\n+\t\t\t\t}\n+\t\t\t}\n+\n+\t\t\t// Just one? Go ahead and use it\n+\t\t\tif ( 1 === $payment_method_count ) {\n+\t\t\t\t$this->service_settings_store->set_selected_payment_method_id( $payment_method_ids[ 0 ] );\n+\t\t\t\treturn;\n+\t\t\t}\n+\n+\t\t\t// Is the stored method id not in the list? Select the first one","path":"classes/class-wc-connect-payment-methods-store.php","position":75,"original_position":79,"commit_id":"33d31cb6e4ec2e3f1cbfb9274c5c01ce75d39bfc","original_commit_id":"db546f881402a4dec5baf8ebe5eade403c5f7236","user":{"login":"DanReyLop","id":1715800,"avatar_url":"https://avatars.githubusercontent.com/u/1715800?v=3","gravatar_id":"","url":"https://api.github.com/users/DanReyLop","html_url":"https://github.com/DanReyLop","followers_url":"https://api.github.com/users/DanReyLop/followers","following_url":"https://api.github.com/users/DanReyLop/following{/other_user}","gists_url":"https://api.github.com/users/DanReyLop/gists{/gist_id}","starred_url":"https://api.github.com/users/DanReyLop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanReyLop/subscriptions","organizations_url":"https://api.github.com/users/DanReyLop/orgs","repos_url":"https://api.github.com/users/DanReyLop/repos","events_url":"https://api.github.com/users/DanReyLop/events{/privacy}","received_events_url":"https://api.github.com/users/DanReyLop/received_events","type":"User","site_admin":false},"body":"https://github.com/Automattic/woocommerce-connect-client/issues/447 and https://github.com/Automattic/woocommerce-connect-client/issues/496 should cover us in those cases.\r\n\r\nWhat I'm worried about is that if a merchant has 2 credit cards, we would be essentially choosing one of them for him at random. That doesn't sound very good :(\r\nSince this is a conscious decision, my job as \"guy who points things out in PRs\" is done, I just want you to consider it carefully :)","created_at":"2016-08-28T20:27:51Z","updated_at":"2016-08-28T20:27:51Z","html_url":"https://github.com/Automattic/woocommerce-connect-client/pull/488#discussion_r76538535","pull_request_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/pulls/488","_links":{"self":{"href":"https://api.github.com/repos/Automattic/woocommerce-connect-client/pulls/comments/76538535"},"html":{"href":"https://github.com/Automattic/woocommerce-connect-client/pull/488#discussion_r76538535"},"pull_request":{"href":"https://api.github.com/repos/Automattic/woocommerce-connect-client/pulls/488"}}},"pull_request":{"url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/pulls/488","id":81680618,"html_url":"https://github.com/Automattic/woocommerce-connect-client/pull/488","diff_url":"https://github.com/Automattic/woocommerce-connect-client/pull/488.diff","patch_url":"https://github.com/Automattic/woocommerce-connect-client/pull/488.patch","issue_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/issues/488","number":488,"state":"open","locked":false,"title":"Add Settings View for Payment Method Selection","user":{"login":"allendav","id":1595739,"avatar_url":"https://avatars.githubusercontent.com/u/1595739?v=3","gravatar_id":"","url":"https://api.github.com/users/allendav","html_url":"https://github.com/allendav","followers_url":"https://api.github.com/users/allendav/followers","following_url":"https://api.github.com/users/allendav/following{/other_user}","gists_url":"https://api.github.com/users/allendav/gists{/gist_id}","starred_url":"https://api.github.com/users/allendav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allendav/subscriptions","organizations_url":"https://api.github.com/users/allendav/orgs","repos_url":"https://api.github.com/users/allendav/repos","events_url":"https://api.github.com/users/allendav/events{/privacy}","received_events_url":"https://api.github.com/users/allendav/received_events","type":"User","site_admin":false},"body":"Fixes #471 \r\n\r\nTo test:\r\nFirst, add credentials to your local server, in local.json, e.g.:\r\n\r\n```\r\n        \"dummy_auth_credentials\": {\r\n                \"authenticated\": true,\r\n                \"blog_id\": 123456,\r\n                \"blog_owner_id\": 123456\r\n        },\r\n```\r\n\r\nyou'll have to use real blog_id and blog_owner_ids, of course.\r\n\r\nThen, open your local client and go to wp-admin > WooCommerce > Settings > WooCommerce Connect\r\nVerify you see all your stored payment methods\r\nVerify the save button enables if you change the selection\r\nVerify the save button disables while saving\r\n\r\nCaveats:\r\nI'm still trying to get webpack + svgs to work (there are supposed to be card logos. Will fix before I merge this to master.\r\n\r\nNote:\r\nI created a new lib, form-base, that contains actions and reducers for forms like this. I did not want to deep link from the shared-settings container into the settings container for its state management.  We can use this new lib for other forms.\r\n\r\nI also make the shared settings root view where the notices actions are connected, since that way the root view can control the text that appears (e.g. \"Payment methods updated.\") more appropriately.","created_at":"2016-08-17T17:08:59Z","updated_at":"2016-08-28T20:27:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f810171e38eb14d37692477dd1a12641be856a3d","assignee":{"login":"allendav","id":1595739,"avatar_url":"https://avatars.githubusercontent.com/u/1595739?v=3","gravatar_id":"","url":"https://api.github.com/users/allendav","html_url":"https://github.com/allendav","followers_url":"https://api.github.com/users/allendav/followers","following_url":"https://api.github.com/users/allendav/following{/other_user}","gists_url":"https://api.github.com/users/allendav/gists{/gist_id}","starred_url":"https://api.github.com/users/allendav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allendav/subscriptions","organizations_url":"https://api.github.com/users/allendav/orgs","repos_url":"https://api.github.com/users/allendav/repos","events_url":"https://api.github.com/users/allendav/events{/privacy}","received_events_url":"https://api.github.com/users/allendav/received_events","type":"User","site_admin":false},"assignees":[{"login":"allendav","id":1595739,"avatar_url":"https://avatars.githubusercontent.com/u/1595739?v=3","gravatar_id":"","url":"https://api.github.com/users/allendav","html_url":"https://github.com/allendav","followers_url":"https://api.github.com/users/allendav/followers","following_url":"https://api.github.com/users/allendav/following{/other_user}","gists_url":"https://api.github.com/users/allendav/gists{/gist_id}","starred_url":"https://api.github.com/users/allendav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allendav/subscriptions","organizations_url":"https://api.github.com/users/allendav/orgs","repos_url":"https://api.github.com/users/allendav/repos","events_url":"https://api.github.com/users/allendav/events{/privacy}","received_events_url":"https://api.github.com/users/allendav/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/milestones/8","html_url":"https://github.com/Automattic/woocommerce-connect-client/milestones/Sprint%205","labels_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/milestones/8/labels","id":1918949,"number":8,"title":"Sprint 5","description":"","creator":{"login":"allendav","id":1595739,"avatar_url":"https://avatars.githubusercontent.com/u/1595739?v=3","gravatar_id":"","url":"https://api.github.com/users/allendav","html_url":"https://github.com/allendav","followers_url":"https://api.github.com/users/allendav/followers","following_url":"https://api.github.com/users/allendav/following{/other_user}","gists_url":"https://api.github.com/users/allendav/gists{/gist_id}","starred_url":"https://api.github.com/users/allendav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allendav/subscriptions","organizations_url":"https://api.github.com/users/allendav/orgs","repos_url":"https://api.github.com/users/allendav/repos","events_url":"https://api.github.com/users/allendav/events{/privacy}","received_events_url":"https://api.github.com/users/allendav/received_events","type":"User","site_admin":false},"open_issues":21,"closed_issues":6,"state":"open","created_at":"2016-08-02T18:06:01Z","updated_at":"2016-08-26T18:33:17Z","due_on":"2016-09-09T00:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/pulls/488/commits","review_comments_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/pulls/488/comments","review_comment_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/issues/488/comments","statuses_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/statuses/33d31cb6e4ec2e3f1cbfb9274c5c01ce75d39bfc","head":{"label":"Automattic:add/method-ui","ref":"add/method-ui","sha":"33d31cb6e4ec2e3f1cbfb9274c5c01ce75d39bfc","user":{"login":"Automattic","id":887802,"avatar_url":"https://avatars.githubusercontent.com/u/887802?v=3","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"repo":{"id":50946955,"name":"woocommerce-connect-client","full_name":"Automattic/woocommerce-connect-client","owner":{"login":"Automattic","id":887802,"avatar_url":"https://avatars.githubusercontent.com/u/887802?v=3","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Automattic/woocommerce-connect-client","description":"WooCommerce Connect is a feature plugin, currently in Alpha, that integrates the WooCommerce Connect SaaS into WooCommerce (2.6), Alpha includes real time USPS and Canada Post shipping rates and introduces our React based UI.","fork":false,"url":"https://api.github.com/repos/Automattic/woocommerce-connect-client","forks_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/forks","keys_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/teams","hooks_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/hooks","issue_events_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/issues/events{/number}","events_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/events","assignees_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/assignees{/user}","branches_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/branches{/branch}","tags_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/tags","blobs_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/statuses/{sha}","languages_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/languages","stargazers_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/stargazers","contributors_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/contributors","subscribers_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/subscribers","subscription_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/subscription","commits_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/contents/{+path}","compare_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/merges","archive_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/downloads","issues_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/issues{/number}","pulls_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/pulls{/number}","milestones_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/milestones{/number}","notifications_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/labels{/name}","releases_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/releases{/id}","deployments_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/deployments","created_at":"2016-02-02T19:44:26Z","updated_at":"2016-08-12T17:18:34Z","pushed_at":"2016-08-27T15:48:29Z","git_url":"git://github.com/Automattic/woocommerce-connect-client.git","ssh_url":"git@github.com:Automattic/woocommerce-connect-client.git","clone_url":"https://github.com/Automattic/woocommerce-connect-client.git","svn_url":"https://github.com/Automattic/woocommerce-connect-client","homepage":"","size":1440,"stargazers_count":30,"watchers_count":30,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":74,"forks":2,"open_issues":74,"watchers":30,"default_branch":"master"}},"base":{"label":"Automattic:master","ref":"master","sha":"dd44fc70c343c6294624db14a98ee13700fe4a7e","user":{"login":"Automattic","id":887802,"avatar_url":"https://avatars.githubusercontent.com/u/887802?v=3","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"repo":{"id":50946955,"name":"woocommerce-connect-client","full_name":"Automattic/woocommerce-connect-client","owner":{"login":"Automattic","id":887802,"avatar_url":"https://avatars.githubusercontent.com/u/887802?v=3","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Automattic/woocommerce-connect-client","description":"WooCommerce Connect is a feature plugin, currently in Alpha, that integrates the WooCommerce Connect SaaS into WooCommerce (2.6), Alpha includes real time USPS and Canada Post shipping rates and introduces our React based UI.","fork":false,"url":"https://api.github.com/repos/Automattic/woocommerce-connect-client","forks_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/forks","keys_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/teams","hooks_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/hooks","issue_events_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/issues/events{/number}","events_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/events","assignees_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/assignees{/user}","branches_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/branches{/branch}","tags_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/tags","blobs_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/statuses/{sha}","languages_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/languages","stargazers_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/stargazers","contributors_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/contributors","subscribers_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/subscribers","subscription_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/subscription","commits_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/contents/{+path}","compare_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/merges","archive_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/downloads","issues_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/issues{/number}","pulls_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/pulls{/number}","milestones_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/milestones{/number}","notifications_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/labels{/name}","releases_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/releases{/id}","deployments_url":"https://api.github.com/repos/Automattic/woocommerce-connect-client/deployments","created_at":"2016-02-02T19:44:26Z","updated_at":"2016-08-12T17:18:34Z","pushed_at":"2016-08-27T15:48:29Z","git_url":"git://github.com/Automattic/woocommerce-connect-client.git","ssh_url":"git@github.com:Automattic/woocommerce-connect-client.git","clone_url":"https://github.com/Automattic/woocommerce-connect-client.git","svn_url":"https://github.com/Automattic/woocommerce-connect-client","homepage":"","size":1440,"stargazers_count":30,"watchers_count":30,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":74,"forks":2,"open_issues":74,"watchers":30,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Automattic/woocommerce-connect-client/pulls/488"},"html":{"href":"https://github.com/Automattic/woocommerce-connect-client/pull/488"},"issue":{"href":"https://api.github.com/repos/Automattic/woocommerce-connect-client/issues/488"},"comments":{"href":"https://api.github.com/repos/Automattic/woocommerce-connect-client/issues/488/comments"},"review_comments":{"href":"https://api.github.com/repos/Automattic/woocommerce-connect-client/pulls/488/comments"},"review_comment":{"href":"https://api.github.com/repos/Automattic/woocommerce-connect-client/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Automattic/woocommerce-connect-client/pulls/488/commits"},"statuses":{"href":"https://api.github.com/repos/Automattic/woocommerce-connect-client/statuses/33d31cb6e4ec2e3f1cbfb9274c5c01ce75d39bfc"}}}}
{"actor":{"display_login":"DanReyLop"}}