{"action":"created","comment":{"url":"https://api.github.com/repos/omise/omise-php/pulls/comments/245202156","pull_request_review_id":189261443,"id":245202156,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0NTIwMjE1Ng==","diff_hunk":"@@ -0,0 +1,180 @@\n+<?php\n+\n+class OmiseCapabilities extends OmiseApiResource\n+{\n+    const ENDPOINT = 'capability';\n+\n+    const FILTERS = [\n+        'backend' => [ 'currency', 'type', 'chargeAmount' ]\n+    ];\n+\n+    protected function __construct($publickey = null, $secretkey = null)\n+    {\n+        parent::__construct($publickey, $secretkey);\n+        $this->_setupFilterShortcuts();\n+    }\n+\n+    /**\n+     * Sets up 'shortcuts' to filters so they may be used thus:\n+     *    $capabilities->backendFilter['currency']('THB')\n+     * As well as the original:\n+     *    $capabilities->makeBackendFilterCurrency('THB')\n+     */\n+    protected function _setupFilterShortcuts()\n+    {\n+        foreach (self::FILTERS as $filterSubject=>$availableFilters) {\n+            $filterArrayName = $filterSubject.'Filter';\n+            $this->$filterArrayName = [];\n+            $tempArr = &$this->$filterArrayName;\n+            foreach ($availableFilters as $type) {\n+                $funcName = \"make\".ucfirst($filterSubject).'Filter'.$type;\n+                $tempArr[$type] = function() use ($funcName) { return call_user_func_array([$this, $funcName], func_get_args()); };\n+            }\n+        }\n+    }\n+\n+    /**\n+     * Retrieves capabilities.\n+     *\n+     * @param  string $publickey\n+     * @param  string $secretkey\n+     *\n+     * @return OmiseCapabilities\n+     */\n+    public static function retrieve($publickey = null, $secretkey = null)\n+    {\n+        return parent::g_retrieve(get_class(), self::getUrl(), $publickey, $secretkey);\n+    }\n+\n+    /**\n+     * Retrieves array of payment backends. Optionally pass in as many filter functions as you want\n+     * (muliple arguments, or a single array)\n+     *\n+     * @param [func1,fun2,...] OR func1, func2,...\n+     *    \n+     * @return array\n+     */\n+    public function getBackends() {\n+        // check for filters\n+        if ($filters = func_get_args()) $filter = self::_combineFilters(self::_fixArgs($filters));\n+        $res = $this['payment_backends'];\n+        array_walk(\n+            $res,\n+            function($v, $k) use (&$res) {\n+                $id = array_keys($v)[0];\n+                $res[$k][$id]['_id'] = $id;\n+            }\n+        );\n+        $res = array_map(function($a) { return (object)reset($a);}, $res);\n+        return !empty($filter) ? array_filter($res, $filter) : $res;\n+    }\n+\n+    /**\n+     * Makes a filter function to check supported currency for backend.\n+     *\n+     * @param  string $currency\n+     *\n+     * @return function\n+     */\n+    public function makeBackendFilterCurrency($currency) {\n+        return function($backend) use ($currency) { return in_array(strtoupper($currency), $backend->currencies); };\n+    }\n+\n+    /**\n+     * Makes a filter function to check type of backend.\n+     *\n+     * @param  string $type\n+     *\n+     * @return function\n+     */\n+    public function makeBackendFilterType($type) {\n+        return function($backend) use ($type) { return $backend->type==$type; };\n+    }\n+\n+    /**\n+     * Makes a filter function to check if backends can handle given amount.\n+     *\n+     * @param  int $amount\n+     *\n+     * @return function\n+     */\n+    public function makeBackendFilterChargeAmount($amount) {\n+        $defMin = $this['limits']['charge_amount']['min'];\n+        $defMax = $this['limits']['charge_amount']['max'];\n+        return function($backend) use ($amount, $defMin, $defMax) {\n+            // temporary hack for now to correct min value for instalments to 500000\n+            if ($backend->type == 'installment') {\n+                $min = 500000;\n+            } else {\n+                $min = empty($backend->amount['min']) ? $defMin : $backend->amount['min'];\n+            }\n+            $max = empty($backend->amount['max']) ? $defMax : $backend->amount['max'];\n+            return $amount >= $min && $amount <= $max;\n+        };\n+    }\n+\n+    /**\n+     * Combines boolean filters.\n+     *\n+     * @param  [functions] $filters\n+     *\n+     * @return function\n+     */\n+    private static function _combineFilters($filters) {\n+        return function($a) use ($filters) {\n+            foreach ($filters as $filter) if (!$filter($a)) return false;\n+            return true;\n+        };\n+    }\n+\n+    /**\n+     * Combines boolean filters.\n+     *\n+     * @param  [functions] $filters\n+     *\n+     * @return function\n+     */\n+    private static function _fixArgs($argArray) {","path":"lib/omise/OmiseCapabilities.php","position":137,"original_position":137,"commit_id":"39287f28ba86cb608de766e890f6f2fa84fd5250","original_commit_id":"39287f28ba86cb608de766e890f6f2fa84fd5250","user":{"login":"jonrandy","id":1510194,"node_id":"MDQ6VXNlcjE1MTAxOTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/1510194?v=4","gravatar_id":"","url":"https://api.github.com/users/jonrandy","html_url":"https://github.com/jonrandy","followers_url":"https://api.github.com/users/jonrandy/followers","following_url":"https://api.github.com/users/jonrandy/following{/other_user}","gists_url":"https://api.github.com/users/jonrandy/gists{/gist_id}","starred_url":"https://api.github.com/users/jonrandy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonrandy/subscriptions","organizations_url":"https://api.github.com/users/jonrandy/orgs","repos_url":"https://api.github.com/users/jonrandy/repos","events_url":"https://api.github.com/users/jonrandy/events{/privacy}","received_events_url":"https://api.github.com/users/jonrandy/received_events","type":"User","site_admin":false},"body":"`_sanitiseArgs`?\r\n","created_at":"2019-01-04T04:36:50Z","updated_at":"2019-01-04T04:36:50Z","html_url":"https://github.com/omise/omise-php/pull/99#discussion_r245202156","pull_request_url":"https://api.github.com/repos/omise/omise-php/pulls/99","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/omise/omise-php/pulls/comments/245202156"},"html":{"href":"https://github.com/omise/omise-php/pull/99#discussion_r245202156"},"pull_request":{"href":"https://api.github.com/repos/omise/omise-php/pulls/99"}},"in_reply_to_id":245179772},"pull_request":{"url":"https://api.github.com/repos/omise/omise-php/pulls/99","id":235338237,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM1MzM4MjM3","html_url":"https://github.com/omise/omise-php/pull/99","diff_url":"https://github.com/omise/omise-php/pull/99.diff","patch_url":"https://github.com/omise/omise-php/pull/99.patch","issue_url":"https://api.github.com/repos/omise/omise-php/issues/99","number":99,"state":"open","locked":false,"title":"Add capability api","user":{"login":"jonrandy","id":1510194,"node_id":"MDQ6VXNlcjE1MTAxOTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/1510194?v=4","gravatar_id":"","url":"https://api.github.com/users/jonrandy","html_url":"https://github.com/jonrandy","followers_url":"https://api.github.com/users/jonrandy/followers","following_url":"https://api.github.com/users/jonrandy/following{/other_user}","gists_url":"https://api.github.com/users/jonrandy/gists{/gist_id}","starred_url":"https://api.github.com/users/jonrandy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonrandy/subscriptions","organizations_url":"https://api.github.com/users/jonrandy/orgs","repos_url":"https://api.github.com/users/jonrandy/repos","events_url":"https://api.github.com/users/jonrandy/events{/privacy}","received_events_url":"https://api.github.com/users/jonrandy/received_events","type":"User","site_admin":false},"body":"Adds initial functionality for using the Capability API. Quite basic right now, probably needs to be expanded upon\r\n\r\nExample usage:\r\n```php\r\n<?php\r\n\r\nrequire_once 'lib/Omise.php';\r\n\r\ndefine('OMISE_PUBLIC_KEY', 'pkey_xxxxxxxxxxxxx');\r\ndefine('OMISE_SECRET_KEY', 'skey_xxxxxxxxxxxxx');\r\n\r\n\r\n\r\n$capabilities = OmiseCapabilities::retrieve();\r\n\r\nprint_r($capabilities);\r\n\r\n\r\n$instalmentBackends = $capabilities->getBackends(\r\n\t$capabilities->makeBackendFilterType('installment'),\r\n\t$capabilities->makeBackendFilterCurrency('THB'),\r\n\t$capabilities->makeBackendFilterChargeAmount(749999)\r\n);\r\n\r\n\r\nforeach ($instalmentBackends as $backend) {\r\n\tprint_r($backend);\r\n}\r\n\r\n```","created_at":"2018-12-03T06:22:32Z","updated_at":"2019-01-04T04:36:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ab33d0ef2d5cb5dc28ea6856d88697c24661d8d9","assignee":{"login":"guzzilar","id":2154669,"node_id":"MDQ6VXNlcjIxNTQ2Njk=","avatar_url":"https://avatars3.githubusercontent.com/u/2154669?v=4","gravatar_id":"","url":"https://api.github.com/users/guzzilar","html_url":"https://github.com/guzzilar","followers_url":"https://api.github.com/users/guzzilar/followers","following_url":"https://api.github.com/users/guzzilar/following{/other_user}","gists_url":"https://api.github.com/users/guzzilar/gists{/gist_id}","starred_url":"https://api.github.com/users/guzzilar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guzzilar/subscriptions","organizations_url":"https://api.github.com/users/guzzilar/orgs","repos_url":"https://api.github.com/users/guzzilar/repos","events_url":"https://api.github.com/users/guzzilar/events{/privacy}","received_events_url":"https://api.github.com/users/guzzilar/received_events","type":"User","site_admin":false},"assignees":[{"login":"guzzilar","id":2154669,"node_id":"MDQ6VXNlcjIxNTQ2Njk=","avatar_url":"https://avatars3.githubusercontent.com/u/2154669?v=4","gravatar_id":"","url":"https://api.github.com/users/guzzilar","html_url":"https://github.com/guzzilar","followers_url":"https://api.github.com/users/guzzilar/followers","following_url":"https://api.github.com/users/guzzilar/following{/other_user}","gists_url":"https://api.github.com/users/guzzilar/gists{/gist_id}","starred_url":"https://api.github.com/users/guzzilar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guzzilar/subscriptions","organizations_url":"https://api.github.com/users/guzzilar/orgs","repos_url":"https://api.github.com/users/guzzilar/repos","events_url":"https://api.github.com/users/guzzilar/events{/privacy}","received_events_url":"https://api.github.com/users/guzzilar/received_events","type":"User","site_admin":false},{"login":"jacstn","id":10651523,"node_id":"MDQ6VXNlcjEwNjUxNTIz","avatar_url":"https://avatars1.githubusercontent.com/u/10651523?v=4","gravatar_id":"","url":"https://api.github.com/users/jacstn","html_url":"https://github.com/jacstn","followers_url":"https://api.github.com/users/jacstn/followers","following_url":"https://api.github.com/users/jacstn/following{/other_user}","gists_url":"https://api.github.com/users/jacstn/gists{/gist_id}","starred_url":"https://api.github.com/users/jacstn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacstn/subscriptions","organizations_url":"https://api.github.com/users/jacstn/orgs","repos_url":"https://api.github.com/users/jacstn/repos","events_url":"https://api.github.com/users/jacstn/events{/privacy}","received_events_url":"https://api.github.com/users/jacstn/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/omise/omise-php/pulls/99/commits","review_comments_url":"https://api.github.com/repos/omise/omise-php/pulls/99/comments","review_comment_url":"https://api.github.com/repos/omise/omise-php/pulls/comments{/number}","comments_url":"https://api.github.com/repos/omise/omise-php/issues/99/comments","statuses_url":"https://api.github.com/repos/omise/omise-php/statuses/39287f28ba86cb608de766e890f6f2fa84fd5250","head":{"label":"omise:add-capability-api","ref":"add-capability-api","sha":"39287f28ba86cb608de766e890f6f2fa84fd5250","user":{"login":"omise","id":4662729,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ2NjI3Mjk=","avatar_url":"https://avatars1.githubusercontent.com/u/4662729?v=4","gravatar_id":"","url":"https://api.github.com/users/omise","html_url":"https://github.com/omise","followers_url":"https://api.github.com/users/omise/followers","following_url":"https://api.github.com/users/omise/following{/other_user}","gists_url":"https://api.github.com/users/omise/gists{/gist_id}","starred_url":"https://api.github.com/users/omise/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omise/subscriptions","organizations_url":"https://api.github.com/users/omise/orgs","repos_url":"https://api.github.com/users/omise/repos","events_url":"https://api.github.com/users/omise/events{/privacy}","received_events_url":"https://api.github.com/users/omise/received_events","type":"Organization","site_admin":false},"repo":{"id":27426164,"node_id":"MDEwOlJlcG9zaXRvcnkyNzQyNjE2NA==","name":"omise-php","full_name":"omise/omise-php","private":false,"owner":{"login":"omise","id":4662729,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ2NjI3Mjk=","avatar_url":"https://avatars1.githubusercontent.com/u/4662729?v=4","gravatar_id":"","url":"https://api.github.com/users/omise","html_url":"https://github.com/omise","followers_url":"https://api.github.com/users/omise/followers","following_url":"https://api.github.com/users/omise/following{/other_user}","gists_url":"https://api.github.com/users/omise/gists{/gist_id}","starred_url":"https://api.github.com/users/omise/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omise/subscriptions","organizations_url":"https://api.github.com/users/omise/orgs","repos_url":"https://api.github.com/users/omise/repos","events_url":"https://api.github.com/users/omise/events{/privacy}","received_events_url":"https://api.github.com/users/omise/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/omise/omise-php","description":"Omise PHP library","fork":false,"url":"https://api.github.com/repos/omise/omise-php","forks_url":"https://api.github.com/repos/omise/omise-php/forks","keys_url":"https://api.github.com/repos/omise/omise-php/keys{/key_id}","collaborators_url":"https://api.github.com/repos/omise/omise-php/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/omise/omise-php/teams","hooks_url":"https://api.github.com/repos/omise/omise-php/hooks","issue_events_url":"https://api.github.com/repos/omise/omise-php/issues/events{/number}","events_url":"https://api.github.com/repos/omise/omise-php/events","assignees_url":"https://api.github.com/repos/omise/omise-php/assignees{/user}","branches_url":"https://api.github.com/repos/omise/omise-php/branches{/branch}","tags_url":"https://api.github.com/repos/omise/omise-php/tags","blobs_url":"https://api.github.com/repos/omise/omise-php/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/omise/omise-php/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/omise/omise-php/git/refs{/sha}","trees_url":"https://api.github.com/repos/omise/omise-php/git/trees{/sha}","statuses_url":"https://api.github.com/repos/omise/omise-php/statuses/{sha}","languages_url":"https://api.github.com/repos/omise/omise-php/languages","stargazers_url":"https://api.github.com/repos/omise/omise-php/stargazers","contributors_url":"https://api.github.com/repos/omise/omise-php/contributors","subscribers_url":"https://api.github.com/repos/omise/omise-php/subscribers","subscription_url":"https://api.github.com/repos/omise/omise-php/subscription","commits_url":"https://api.github.com/repos/omise/omise-php/commits{/sha}","git_commits_url":"https://api.github.com/repos/omise/omise-php/git/commits{/sha}","comments_url":"https://api.github.com/repos/omise/omise-php/comments{/number}","issue_comment_url":"https://api.github.com/repos/omise/omise-php/issues/comments{/number}","contents_url":"https://api.github.com/repos/omise/omise-php/contents/{+path}","compare_url":"https://api.github.com/repos/omise/omise-php/compare/{base}...{head}","merges_url":"https://api.github.com/repos/omise/omise-php/merges","archive_url":"https://api.github.com/repos/omise/omise-php/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/omise/omise-php/downloads","issues_url":"https://api.github.com/repos/omise/omise-php/issues{/number}","pulls_url":"https://api.github.com/repos/omise/omise-php/pulls{/number}","milestones_url":"https://api.github.com/repos/omise/omise-php/milestones{/number}","notifications_url":"https://api.github.com/repos/omise/omise-php/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/omise/omise-php/labels{/name}","releases_url":"https://api.github.com/repos/omise/omise-php/releases{/id}","deployments_url":"https://api.github.com/repos/omise/omise-php/deployments","created_at":"2014-12-02T09:58:14Z","updated_at":"2018-12-12T04:51:08Z","pushed_at":"2019-01-04T03:27:14Z","git_url":"git://github.com/omise/omise-php.git","ssh_url":"git@github.com:omise/omise-php.git","clone_url":"https://github.com/omise/omise-php.git","svn_url":"https://github.com/omise/omise-php","homepage":"https://www.omise.co","size":554,"stargazers_count":41,"watchers_count":41,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":17,"mirror_url":null,"archived":false,"open_issues_count":13,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":17,"open_issues":13,"watchers":41,"default_branch":"master"}},"base":{"label":"omise:master","ref":"master","sha":"c28eb1a3d68cc8a300924b0dd99291bd9b3021ef","user":{"login":"omise","id":4662729,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ2NjI3Mjk=","avatar_url":"https://avatars1.githubusercontent.com/u/4662729?v=4","gravatar_id":"","url":"https://api.github.com/users/omise","html_url":"https://github.com/omise","followers_url":"https://api.github.com/users/omise/followers","following_url":"https://api.github.com/users/omise/following{/other_user}","gists_url":"https://api.github.com/users/omise/gists{/gist_id}","starred_url":"https://api.github.com/users/omise/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omise/subscriptions","organizations_url":"https://api.github.com/users/omise/orgs","repos_url":"https://api.github.com/users/omise/repos","events_url":"https://api.github.com/users/omise/events{/privacy}","received_events_url":"https://api.github.com/users/omise/received_events","type":"Organization","site_admin":false},"repo":{"id":27426164,"node_id":"MDEwOlJlcG9zaXRvcnkyNzQyNjE2NA==","name":"omise-php","full_name":"omise/omise-php","private":false,"owner":{"login":"omise","id":4662729,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ2NjI3Mjk=","avatar_url":"https://avatars1.githubusercontent.com/u/4662729?v=4","gravatar_id":"","url":"https://api.github.com/users/omise","html_url":"https://github.com/omise","followers_url":"https://api.github.com/users/omise/followers","following_url":"https://api.github.com/users/omise/following{/other_user}","gists_url":"https://api.github.com/users/omise/gists{/gist_id}","starred_url":"https://api.github.com/users/omise/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omise/subscriptions","organizations_url":"https://api.github.com/users/omise/orgs","repos_url":"https://api.github.com/users/omise/repos","events_url":"https://api.github.com/users/omise/events{/privacy}","received_events_url":"https://api.github.com/users/omise/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/omise/omise-php","description":"Omise PHP library","fork":false,"url":"https://api.github.com/repos/omise/omise-php","forks_url":"https://api.github.com/repos/omise/omise-php/forks","keys_url":"https://api.github.com/repos/omise/omise-php/keys{/key_id}","collaborators_url":"https://api.github.com/repos/omise/omise-php/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/omise/omise-php/teams","hooks_url":"https://api.github.com/repos/omise/omise-php/hooks","issue_events_url":"https://api.github.com/repos/omise/omise-php/issues/events{/number}","events_url":"https://api.github.com/repos/omise/omise-php/events","assignees_url":"https://api.github.com/repos/omise/omise-php/assignees{/user}","branches_url":"https://api.github.com/repos/omise/omise-php/branches{/branch}","tags_url":"https://api.github.com/repos/omise/omise-php/tags","blobs_url":"https://api.github.com/repos/omise/omise-php/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/omise/omise-php/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/omise/omise-php/git/refs{/sha}","trees_url":"https://api.github.com/repos/omise/omise-php/git/trees{/sha}","statuses_url":"https://api.github.com/repos/omise/omise-php/statuses/{sha}","languages_url":"https://api.github.com/repos/omise/omise-php/languages","stargazers_url":"https://api.github.com/repos/omise/omise-php/stargazers","contributors_url":"https://api.github.com/repos/omise/omise-php/contributors","subscribers_url":"https://api.github.com/repos/omise/omise-php/subscribers","subscription_url":"https://api.github.com/repos/omise/omise-php/subscription","commits_url":"https://api.github.com/repos/omise/omise-php/commits{/sha}","git_commits_url":"https://api.github.com/repos/omise/omise-php/git/commits{/sha}","comments_url":"https://api.github.com/repos/omise/omise-php/comments{/number}","issue_comment_url":"https://api.github.com/repos/omise/omise-php/issues/comments{/number}","contents_url":"https://api.github.com/repos/omise/omise-php/contents/{+path}","compare_url":"https://api.github.com/repos/omise/omise-php/compare/{base}...{head}","merges_url":"https://api.github.com/repos/omise/omise-php/merges","archive_url":"https://api.github.com/repos/omise/omise-php/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/omise/omise-php/downloads","issues_url":"https://api.github.com/repos/omise/omise-php/issues{/number}","pulls_url":"https://api.github.com/repos/omise/omise-php/pulls{/number}","milestones_url":"https://api.github.com/repos/omise/omise-php/milestones{/number}","notifications_url":"https://api.github.com/repos/omise/omise-php/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/omise/omise-php/labels{/name}","releases_url":"https://api.github.com/repos/omise/omise-php/releases{/id}","deployments_url":"https://api.github.com/repos/omise/omise-php/deployments","created_at":"2014-12-02T09:58:14Z","updated_at":"2018-12-12T04:51:08Z","pushed_at":"2019-01-04T03:27:14Z","git_url":"git://github.com/omise/omise-php.git","ssh_url":"git@github.com:omise/omise-php.git","clone_url":"https://github.com/omise/omise-php.git","svn_url":"https://github.com/omise/omise-php","homepage":"https://www.omise.co","size":554,"stargazers_count":41,"watchers_count":41,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":17,"mirror_url":null,"archived":false,"open_issues_count":13,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":17,"open_issues":13,"watchers":41,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/omise/omise-php/pulls/99"},"html":{"href":"https://github.com/omise/omise-php/pull/99"},"issue":{"href":"https://api.github.com/repos/omise/omise-php/issues/99"},"comments":{"href":"https://api.github.com/repos/omise/omise-php/issues/99/comments"},"review_comments":{"href":"https://api.github.com/repos/omise/omise-php/pulls/99/comments"},"review_comment":{"href":"https://api.github.com/repos/omise/omise-php/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/omise/omise-php/pulls/99/commits"},"statuses":{"href":"https://api.github.com/repos/omise/omise-php/statuses/39287f28ba86cb608de766e890f6f2fa84fd5250"}},"author_association":"NONE"}}
{"actor":{"display_login":"jonrandy"}}