{"action":"created","comment":{"url":"https://api.github.com/repos/pantheon-systems/cli/pulls/comments/36325320","id":36325320,"diff_hunk":"@@ -292,25 +292,54 @@ public function import($url, $element) {\n   }\n \n   /**\n-   * get site instrument\n+   * Changes payment instrument of given site\n+   *\n+   * @params [string] $uuid UUID of new payment instrument\n+   * @return [Workflow] $workflow Workflow object for the request\n    */\n-  public function instrument($org=null) {\n-    $path = 'instrument';\n-    $method = 'GET';\n-    $options = null;\n-    if ($org) {\n-      $path = 'workflows';\n-      $data = array(\n-          'type'    => 'transfer_site_payment_to_organization',\n-          'params'  => array(\n-              'to_organization_id' => $org,\n-          ),\n-        );\n-      $options = array( 'body' => json_encode($data) , 'headers'=>array('Content-type'=>'application/json') );\n-      $method = 'POST';\n+  public function changeInstrument($uuid = 0) {","path":"php/Terminus/Site.php","position":24,"original_position":24,"commit_id":"62bf9f3f82b982fb4ad48e87d08ec8692f091c4e","original_commit_id":"62bf9f3f82b982fb4ad48e87d08ec8692f091c4e","user":{"login":"bensheldon","id":47554,"avatar_url":"https://avatars.githubusercontent.com/u/47554?v=3","gravatar_id":"","url":"https://api.github.com/users/bensheldon","html_url":"https://github.com/bensheldon","followers_url":"https://api.github.com/users/bensheldon/followers","following_url":"https://api.github.com/users/bensheldon/following{/other_user}","gists_url":"https://api.github.com/users/bensheldon/gists{/gist_id}","starred_url":"https://api.github.com/users/bensheldon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bensheldon/subscriptions","organizations_url":"https://api.github.com/users/bensheldon/orgs","repos_url":"https://api.github.com/users/bensheldon/repos","events_url":"https://api.github.com/users/bensheldon/events{/privacy}","received_events_url":"https://api.github.com/users/bensheldon/received_events","type":"User","site_admin":false},"body":"I'd prefer to expose the `addInstrument`/`removeInstrument` rather than try to create a toggleable wraper. \r\n\r\nAlso, I don't like polymorphic interfaces in general. I'd prefer that it only take a uuid, rather than take both a uuid or  a differently-typed \"flag\". ","created_at":"2015-08-05T16:56:08Z","updated_at":"2015-08-05T16:56:08Z","html_url":"https://github.com/pantheon-systems/cli/pull/351#discussion_r36325320","pull_request_url":"https://api.github.com/repos/pantheon-systems/cli/pulls/351","_links":{"self":{"href":"https://api.github.com/repos/pantheon-systems/cli/pulls/comments/36325320"},"html":{"href":"https://github.com/pantheon-systems/cli/pull/351#discussion_r36325320"},"pull_request":{"href":"https://api.github.com/repos/pantheon-systems/cli/pulls/351"}}},"pull_request":{"url":"https://api.github.com/repos/pantheon-systems/cli/pulls/351","id":41638606,"html_url":"https://github.com/pantheon-systems/cli/pull/351","diff_url":"https://github.com/pantheon-systems/cli/pull/351.diff","patch_url":"https://github.com/pantheon-systems/cli/pull/351.patch","issue_url":"https://api.github.com/repos/pantheon-systems/cli/issues/351","number":351,"state":"open","locked":false,"title":"Fixed instrument adding, added instrument listing","user":{"login":"TeslaDethray","id":868204,"avatar_url":"https://avatars.githubusercontent.com/u/868204?v=3","gravatar_id":"","url":"https://api.github.com/users/TeslaDethray","html_url":"https://github.com/TeslaDethray","followers_url":"https://api.github.com/users/TeslaDethray/followers","following_url":"https://api.github.com/users/TeslaDethray/following{/other_user}","gists_url":"https://api.github.com/users/TeslaDethray/gists{/gist_id}","starred_url":"https://api.github.com/users/TeslaDethray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TeslaDethray/subscriptions","organizations_url":"https://api.github.com/users/TeslaDethray/orgs","repos_url":"https://api.github.com/users/TeslaDethray/repos","events_url":"https://api.github.com/users/TeslaDethray/events{/privacy}","received_events_url":"https://api.github.com/users/TeslaDethray/received_events","type":"User","site_admin":false},"body":"`terminus site instrument` - Lists instruments of user\r\n`terminus site instrument --site=sitename` - Lists the current instrument of site sitename\r\n`terminus site instrument --site=sitename --change-to=uuid` - Changes the instrument of site sitename to UUID","created_at":"2015-08-05T02:43:31Z","updated_at":"2015-08-05T16:56:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"88cbdc805673578e601f08c8c22f962fca8b8bd5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/pantheon-systems/cli/pulls/351/commits","review_comments_url":"https://api.github.com/repos/pantheon-systems/cli/pulls/351/comments","review_comment_url":"https://api.github.com/repos/pantheon-systems/cli/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pantheon-systems/cli/issues/351/comments","statuses_url":"https://api.github.com/repos/pantheon-systems/cli/statuses/62bf9f3f82b982fb4ad48e87d08ec8692f091c4e","head":{"label":"pantheon-systems:site_instruments","ref":"site_instruments","sha":"62bf9f3f82b982fb4ad48e87d08ec8692f091c4e","user":{"login":"pantheon-systems","id":513357,"avatar_url":"https://avatars.githubusercontent.com/u/513357?v=3","gravatar_id":"","url":"https://api.github.com/users/pantheon-systems","html_url":"https://github.com/pantheon-systems","followers_url":"https://api.github.com/users/pantheon-systems/followers","following_url":"https://api.github.com/users/pantheon-systems/following{/other_user}","gists_url":"https://api.github.com/users/pantheon-systems/gists{/gist_id}","starred_url":"https://api.github.com/users/pantheon-systems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pantheon-systems/subscriptions","organizations_url":"https://api.github.com/users/pantheon-systems/orgs","repos_url":"https://api.github.com/users/pantheon-systems/repos","events_url":"https://api.github.com/users/pantheon-systems/events{/privacy}","received_events_url":"https://api.github.com/users/pantheon-systems/received_events","type":"Organization","site_admin":false},"repo":{"id":17075662,"name":"cli","full_name":"pantheon-systems/cli","owner":{"login":"pantheon-systems","id":513357,"avatar_url":"https://avatars.githubusercontent.com/u/513357?v=3","gravatar_id":"","url":"https://api.github.com/users/pantheon-systems","html_url":"https://github.com/pantheon-systems","followers_url":"https://api.github.com/users/pantheon-systems/followers","following_url":"https://api.github.com/users/pantheon-systems/following{/other_user}","gists_url":"https://api.github.com/users/pantheon-systems/gists{/gist_id}","starred_url":"https://api.github.com/users/pantheon-systems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pantheon-systems/subscriptions","organizations_url":"https://api.github.com/users/pantheon-systems/orgs","repos_url":"https://api.github.com/users/pantheon-systems/repos","events_url":"https://api.github.com/users/pantheon-systems/events{/privacy}","received_events_url":"https://api.github.com/users/pantheon-systems/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pantheon-systems/cli","description":"The Pantheon CLI — aka Terminus — a standalone utility for performing operations on the Pantheon Platform","fork":false,"url":"https://api.github.com/repos/pantheon-systems/cli","forks_url":"https://api.github.com/repos/pantheon-systems/cli/forks","keys_url":"https://api.github.com/repos/pantheon-systems/cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pantheon-systems/cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pantheon-systems/cli/teams","hooks_url":"https://api.github.com/repos/pantheon-systems/cli/hooks","issue_events_url":"https://api.github.com/repos/pantheon-systems/cli/issues/events{/number}","events_url":"https://api.github.com/repos/pantheon-systems/cli/events","assignees_url":"https://api.github.com/repos/pantheon-systems/cli/assignees{/user}","branches_url":"https://api.github.com/repos/pantheon-systems/cli/branches{/branch}","tags_url":"https://api.github.com/repos/pantheon-systems/cli/tags","blobs_url":"https://api.github.com/repos/pantheon-systems/cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pantheon-systems/cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pantheon-systems/cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/pantheon-systems/cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pantheon-systems/cli/statuses/{sha}","languages_url":"https://api.github.com/repos/pantheon-systems/cli/languages","stargazers_url":"https://api.github.com/repos/pantheon-systems/cli/stargazers","contributors_url":"https://api.github.com/repos/pantheon-systems/cli/contributors","subscribers_url":"https://api.github.com/repos/pantheon-systems/cli/subscribers","subscription_url":"https://api.github.com/repos/pantheon-systems/cli/subscription","commits_url":"https://api.github.com/repos/pantheon-systems/cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/pantheon-systems/cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/pantheon-systems/cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/pantheon-systems/cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/pantheon-systems/cli/contents/{+path}","compare_url":"https://api.github.com/repos/pantheon-systems/cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pantheon-systems/cli/merges","archive_url":"https://api.github.com/repos/pantheon-systems/cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pantheon-systems/cli/downloads","issues_url":"https://api.github.com/repos/pantheon-systems/cli/issues{/number}","pulls_url":"https://api.github.com/repos/pantheon-systems/cli/pulls{/number}","milestones_url":"https://api.github.com/repos/pantheon-systems/cli/milestones{/number}","notifications_url":"https://api.github.com/repos/pantheon-systems/cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pantheon-systems/cli/labels{/name}","releases_url":"https://api.github.com/repos/pantheon-systems/cli/releases{/id}","created_at":"2014-02-22T01:37:07Z","updated_at":"2015-08-04T09:46:17Z","pushed_at":"2015-08-05T16:34:08Z","git_url":"git://github.com/pantheon-systems/cli.git","ssh_url":"git@github.com:pantheon-systems/cli.git","clone_url":"https://github.com/pantheon-systems/cli.git","svn_url":"https://github.com/pantheon-systems/cli","homepage":"https://pantheon.io","size":5229,"stargazers_count":69,"watchers_count":69,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":42,"mirror_url":null,"open_issues_count":86,"forks":42,"open_issues":86,"watchers":69,"default_branch":"master"}},"base":{"label":"pantheon-systems:master","ref":"master","sha":"4b3b01554f7ee9ea52b06ca5ceca2b824e3bc515","user":{"login":"pantheon-systems","id":513357,"avatar_url":"https://avatars.githubusercontent.com/u/513357?v=3","gravatar_id":"","url":"https://api.github.com/users/pantheon-systems","html_url":"https://github.com/pantheon-systems","followers_url":"https://api.github.com/users/pantheon-systems/followers","following_url":"https://api.github.com/users/pantheon-systems/following{/other_user}","gists_url":"https://api.github.com/users/pantheon-systems/gists{/gist_id}","starred_url":"https://api.github.com/users/pantheon-systems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pantheon-systems/subscriptions","organizations_url":"https://api.github.com/users/pantheon-systems/orgs","repos_url":"https://api.github.com/users/pantheon-systems/repos","events_url":"https://api.github.com/users/pantheon-systems/events{/privacy}","received_events_url":"https://api.github.com/users/pantheon-systems/received_events","type":"Organization","site_admin":false},"repo":{"id":17075662,"name":"cli","full_name":"pantheon-systems/cli","owner":{"login":"pantheon-systems","id":513357,"avatar_url":"https://avatars.githubusercontent.com/u/513357?v=3","gravatar_id":"","url":"https://api.github.com/users/pantheon-systems","html_url":"https://github.com/pantheon-systems","followers_url":"https://api.github.com/users/pantheon-systems/followers","following_url":"https://api.github.com/users/pantheon-systems/following{/other_user}","gists_url":"https://api.github.com/users/pantheon-systems/gists{/gist_id}","starred_url":"https://api.github.com/users/pantheon-systems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pantheon-systems/subscriptions","organizations_url":"https://api.github.com/users/pantheon-systems/orgs","repos_url":"https://api.github.com/users/pantheon-systems/repos","events_url":"https://api.github.com/users/pantheon-systems/events{/privacy}","received_events_url":"https://api.github.com/users/pantheon-systems/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pantheon-systems/cli","description":"The Pantheon CLI — aka Terminus — a standalone utility for performing operations on the Pantheon Platform","fork":false,"url":"https://api.github.com/repos/pantheon-systems/cli","forks_url":"https://api.github.com/repos/pantheon-systems/cli/forks","keys_url":"https://api.github.com/repos/pantheon-systems/cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pantheon-systems/cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pantheon-systems/cli/teams","hooks_url":"https://api.github.com/repos/pantheon-systems/cli/hooks","issue_events_url":"https://api.github.com/repos/pantheon-systems/cli/issues/events{/number}","events_url":"https://api.github.com/repos/pantheon-systems/cli/events","assignees_url":"https://api.github.com/repos/pantheon-systems/cli/assignees{/user}","branches_url":"https://api.github.com/repos/pantheon-systems/cli/branches{/branch}","tags_url":"https://api.github.com/repos/pantheon-systems/cli/tags","blobs_url":"https://api.github.com/repos/pantheon-systems/cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pantheon-systems/cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pantheon-systems/cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/pantheon-systems/cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pantheon-systems/cli/statuses/{sha}","languages_url":"https://api.github.com/repos/pantheon-systems/cli/languages","stargazers_url":"https://api.github.com/repos/pantheon-systems/cli/stargazers","contributors_url":"https://api.github.com/repos/pantheon-systems/cli/contributors","subscribers_url":"https://api.github.com/repos/pantheon-systems/cli/subscribers","subscription_url":"https://api.github.com/repos/pantheon-systems/cli/subscription","commits_url":"https://api.github.com/repos/pantheon-systems/cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/pantheon-systems/cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/pantheon-systems/cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/pantheon-systems/cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/pantheon-systems/cli/contents/{+path}","compare_url":"https://api.github.com/repos/pantheon-systems/cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pantheon-systems/cli/merges","archive_url":"https://api.github.com/repos/pantheon-systems/cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pantheon-systems/cli/downloads","issues_url":"https://api.github.com/repos/pantheon-systems/cli/issues{/number}","pulls_url":"https://api.github.com/repos/pantheon-systems/cli/pulls{/number}","milestones_url":"https://api.github.com/repos/pantheon-systems/cli/milestones{/number}","notifications_url":"https://api.github.com/repos/pantheon-systems/cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pantheon-systems/cli/labels{/name}","releases_url":"https://api.github.com/repos/pantheon-systems/cli/releases{/id}","created_at":"2014-02-22T01:37:07Z","updated_at":"2015-08-04T09:46:17Z","pushed_at":"2015-08-05T16:34:08Z","git_url":"git://github.com/pantheon-systems/cli.git","ssh_url":"git@github.com:pantheon-systems/cli.git","clone_url":"https://github.com/pantheon-systems/cli.git","svn_url":"https://github.com/pantheon-systems/cli","homepage":"https://pantheon.io","size":5229,"stargazers_count":69,"watchers_count":69,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":42,"mirror_url":null,"open_issues_count":86,"forks":42,"open_issues":86,"watchers":69,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pantheon-systems/cli/pulls/351"},"html":{"href":"https://github.com/pantheon-systems/cli/pull/351"},"issue":{"href":"https://api.github.com/repos/pantheon-systems/cli/issues/351"},"comments":{"href":"https://api.github.com/repos/pantheon-systems/cli/issues/351/comments"},"review_comments":{"href":"https://api.github.com/repos/pantheon-systems/cli/pulls/351/comments"},"review_comment":{"href":"https://api.github.com/repos/pantheon-systems/cli/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pantheon-systems/cli/pulls/351/commits"},"statuses":{"href":"https://api.github.com/repos/pantheon-systems/cli/statuses/62bf9f3f82b982fb4ad48e87d08ec8692f091c4e"}}}}