{"action":"created","comment":{"url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/pulls/comments/51527258","id":51527258,"diff_hunk":"@@ -0,0 +1,232 @@\n+<?php\n+/**\n+ * @file\n+ * Contains Drupal\\recurly\\RecurlyPreprocess.\n+ */\n+\n+namespace Drupal\\recurly;\n+\n+use Drupal\\Component\\Utility\\SafeMarkup;\n+use Drupal\\Core\\Link;\n+\n+/**\n+ * Service to abstract preprocess hooks.\n+ */\n+class RecurlyPreprocess {\n+\n+  /**\n+   * Implements hook_preprocess_recurly_subscription_plan_select().\n+   *\n+   * @param array $variables\n+   *   Theme variables to preprocess.\n+   */\n+  public function preprocessRecurlySubscriptionPlanSelect(array &$variables) {\n+    $plans = $variables['plans'];\n+    $currency = $variables['currency'];\n+    $entity_type = $variables['entity_type'];\n+    $entity = $variables['entity'];\n+    $subscriptions = $variables['subscriptions'];\n+    $subscription_id = $variables['subscription_id'];\n+\n+    $current_subscription = NULL;\n+    foreach ($subscriptions as $subscription) {\n+      if ($subscription->uuid === $subscription_id) {\n+        $current_subscription = $subscription;\n+        break;\n+      }\n+    }\n+\n+    // If currency is undefined, use the subscription currency.\n+    if ($current_subscription && empty($currency)) {\n+      $currency = $current_subscription->currency;\n+      $variables['currency'] = $currency;\n+    }\n+\n+    // Prepare an easy to loop-through list of subscriptions.\n+    $variables['filtered_plans'] = [];\n+    foreach ($plans as $plan_code => $plan) {\n+      $setup_fee_amount = NULL;\n+      foreach ($plan->setup_fee_in_cents as $setup_currency) {\n+        if ($setup_currency->currencyCode === $currency) {\n+          $setup_fee_amount = recurly_format_currency($setup_currency->amount_in_cents, $setup_currency->currencyCode, TRUE);\n+          break;\n+        }\n+      }\n+      $unit_amount = NULL;\n+      foreach ($plan->unit_amount_in_cents as $unit_currency) {\n+        if ($unit_currency->currencyCode === $currency) {\n+          $unit_amount = recurly_format_currency($unit_currency->amount_in_cents, $unit_currency->currencyCode, TRUE);\n+          break;\n+        }\n+      }\n+      $variables['filtered_plans'][$plan_code] = [\n+        'plan_code' => SafeMarkup::checkPlain($plan_code),\n+        'name' => SafeMarkup::checkPlain($plan->name),\n+        'description' => SafeMarkup::checkPlain($plan->description),\n+        'setup_fee' => $setup_fee_amount,\n+        'amount' => $unit_amount,\n+        'plan_interval' => recurly_format_price_interval($unit_amount, $plan->plan_interval_length, $plan->plan_interval_unit, TRUE),\n+        'trial_interval' => $plan->trial_interval_length ? recurly_format_price_interval(NULL, $plan->trial_interval_length, $plan->trial_interval_unit, TRUE) : NULL,\n+        'signup_url' => recurly_url('subscribe', [\n+          'entity_type' => $entity_type,\n+          'entity' => $entity,\n+          'plan_code' => $plan_code,\n+          'currency' => $currency,\n+        ]),\n+        'change_url' => $current_subscription ? recurly_url('change_plan', [\n+          'entity_type' => $entity_type,\n+          'entity' => $entity,\n+          'subscription' => $current_subscription,\n+          'plan_code' => $plan_code,\n+        ]) : NULL,\n+        'selected' => FALSE,\n+      ];\n+\n+      // If we have a pending subscription, make that its shown as selected\n+      // rather than the current active subscription. This should allow users to\n+      // switch back to a previous plan after making a pending switch to another\n+      // one.\n+      foreach ($subscriptions as $subscription) {\n+        if (!empty($subscription->pending_subscription)) {\n+          if ($subscription->pending_subscription->plan->plan_code === $plan_code) {\n+            $variables['filtered_plans'][$plan_code]['selected'] = TRUE;\n+          }\n+        }\n+        elseif ($subscription->plan->plan_code === $plan_code) {\n+          $variables['filtered_plans'][$plan_code]['selected'] = TRUE;\n+        }\n+      }\n+    }\n+\n+    // Check if this is an account that is creating a new subscription.\n+    $variables['expired_subscriptions'] = FALSE;\n+    $account = recurly_account_load(['entity_type' => $entity_type, 'entity_id' => $entity->id()]);\n+    if ($account) {\n+      $variables['expired_subscriptions'] = empty($subscriptions);\n+    }\n+  }\n+\n+  /**\n+   * Implements hook_preprocess_recurly_subscription_cancel_confirm().\n+   *\n+   * @param array $variables\n+   *   Theme variables to preprocess.\n+   */\n+  public function preprocessRecurlySubscriptionCancelConfirm(array &$variables) {\n+    $variables['subscription'] = $variables['form']['#subscription'];\n+    parse_str($this->getRequest()->getQueryString(), $query_array);\n+    $variables['past_due'] = isset($query_array['past_due']) && $query_array['past_due'] === '1';\n+  }\n+\n+  /**\n+   * Implements hook_preprocess_recurly_invoice_list().\n+   *\n+   * @param array $variables\n+   *   Theme variables to preprocess.\n+   */\n+  public function preprocessRecurlyInvoiceList(array &$variables) {\n+    $invoices = $variables['invoices'];\n+    $entity_type = $variables['entity_type'];\n+    $entity = $variables['entity'];\n+\n+    $header = [t('Number'), t('Date'), t('Total')];\n+    $rows = [];\n+    foreach ($invoices as $invoice) {\n+      $status = '';\n+      if ($invoice->state === 'past_due') {\n+        $status = ' (' . t('Past due') . ')';\n+      }\n+      elseif ($invoice->state === 'failed') {","path":"src/RecurlyPreprocess.php","position":139,"original_position":139,"commit_id":"81894d708c01230d7eb3619b94850476778bdf49","original_commit_id":"81894d708c01230d7eb3619b94850476778bdf49","user":{"login":"mmatsoo","id":6803156,"avatar_url":"https://avatars.githubusercontent.com/u/6803156?v=3","gravatar_id":"","url":"https://api.github.com/users/mmatsoo","html_url":"https://github.com/mmatsoo","followers_url":"https://api.github.com/users/mmatsoo/followers","following_url":"https://api.github.com/users/mmatsoo/following{/other_user}","gists_url":"https://api.github.com/users/mmatsoo/gists{/gist_id}","starred_url":"https://api.github.com/users/mmatsoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmatsoo/subscriptions","organizations_url":"https://api.github.com/users/mmatsoo/orgs","repos_url":"https://api.github.com/users/mmatsoo/repos","events_url":"https://api.github.com/users/mmatsoo/events{/privacy}","received_events_url":"https://api.github.com/users/mmatsoo/received_events","type":"User","site_admin":false},"body":"Same state constant todo issue as above.","created_at":"2016-02-02T05:53:39Z","updated_at":"2016-02-02T05:53:39Z","html_url":"https://github.com/CHROMATIC-LLC/recurly/pull/13#discussion_r51527258","pull_request_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/pulls/13","_links":{"self":{"href":"https://api.github.com/repos/CHROMATIC-LLC/recurly/pulls/comments/51527258"},"html":{"href":"https://github.com/CHROMATIC-LLC/recurly/pull/13#discussion_r51527258"},"pull_request":{"href":"https://api.github.com/repos/CHROMATIC-LLC/recurly/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/pulls/13","id":57887441,"html_url":"https://github.com/CHROMATIC-LLC/recurly/pull/13","diff_url":"https://github.com/CHROMATIC-LLC/recurly/pull/13.diff","patch_url":"https://github.com/CHROMATIC-LLC/recurly/pull/13.patch","issue_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/issues/13","number":13,"state":"open","locked":false,"title":"Move preprocess hooks to new RecurlyPreprocess service.","user":{"login":"markdorison","id":20355,"avatar_url":"https://avatars.githubusercontent.com/u/20355?v=3","gravatar_id":"","url":"https://api.github.com/users/markdorison","html_url":"https://github.com/markdorison","followers_url":"https://api.github.com/users/markdorison/followers","following_url":"https://api.github.com/users/markdorison/following{/other_user}","gists_url":"https://api.github.com/users/markdorison/gists{/gist_id}","starred_url":"https://api.github.com/users/markdorison/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markdorison/subscriptions","organizations_url":"https://api.github.com/users/markdorison/orgs","repos_url":"https://api.github.com/users/markdorison/repos","events_url":"https://api.github.com/users/markdorison/events{/privacy}","received_events_url":"https://api.github.com/users/markdorison/received_events","type":"User","site_admin":false},"body":"* Created RecurlyPreprocess service.\r\n* Moved preprocess hooks to RecurlyPreprocess service.\r\n\r\nhttps://www.drupal.org/node/2660076\r\n\r\ncc/ @AlannaBurke @mmatsoo @adamzimmermann ","created_at":"2016-02-01T19:30:36Z","updated_at":"2016-02-02T05:53:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5b966b9dc5d2e5e8a62318a0d011ef61f1574683","assignee":{"login":"mmatsoo","id":6803156,"avatar_url":"https://avatars.githubusercontent.com/u/6803156?v=3","gravatar_id":"","url":"https://api.github.com/users/mmatsoo","html_url":"https://github.com/mmatsoo","followers_url":"https://api.github.com/users/mmatsoo/followers","following_url":"https://api.github.com/users/mmatsoo/following{/other_user}","gists_url":"https://api.github.com/users/mmatsoo/gists{/gist_id}","starred_url":"https://api.github.com/users/mmatsoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmatsoo/subscriptions","organizations_url":"https://api.github.com/users/mmatsoo/orgs","repos_url":"https://api.github.com/users/mmatsoo/repos","events_url":"https://api.github.com/users/mmatsoo/events{/privacy}","received_events_url":"https://api.github.com/users/mmatsoo/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/pulls/13/commits","review_comments_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/pulls/13/comments","review_comment_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/issues/13/comments","statuses_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/statuses/81894d708c01230d7eb3619b94850476778bdf49","head":{"label":"CHROMATIC-LLC:2660076-recurly-preprocess","ref":"2660076-recurly-preprocess","sha":"81894d708c01230d7eb3619b94850476778bdf49","user":{"login":"CHROMATIC-LLC","id":852809,"avatar_url":"https://avatars.githubusercontent.com/u/852809?v=3","gravatar_id":"","url":"https://api.github.com/users/CHROMATIC-LLC","html_url":"https://github.com/CHROMATIC-LLC","followers_url":"https://api.github.com/users/CHROMATIC-LLC/followers","following_url":"https://api.github.com/users/CHROMATIC-LLC/following{/other_user}","gists_url":"https://api.github.com/users/CHROMATIC-LLC/gists{/gist_id}","starred_url":"https://api.github.com/users/CHROMATIC-LLC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CHROMATIC-LLC/subscriptions","organizations_url":"https://api.github.com/users/CHROMATIC-LLC/orgs","repos_url":"https://api.github.com/users/CHROMATIC-LLC/repos","events_url":"https://api.github.com/users/CHROMATIC-LLC/events{/privacy}","received_events_url":"https://api.github.com/users/CHROMATIC-LLC/received_events","type":"Organization","site_admin":false},"repo":{"id":48711064,"name":"recurly","full_name":"CHROMATIC-LLC/recurly","owner":{"login":"CHROMATIC-LLC","id":852809,"avatar_url":"https://avatars.githubusercontent.com/u/852809?v=3","gravatar_id":"","url":"https://api.github.com/users/CHROMATIC-LLC","html_url":"https://github.com/CHROMATIC-LLC","followers_url":"https://api.github.com/users/CHROMATIC-LLC/followers","following_url":"https://api.github.com/users/CHROMATIC-LLC/following{/other_user}","gists_url":"https://api.github.com/users/CHROMATIC-LLC/gists{/gist_id}","starred_url":"https://api.github.com/users/CHROMATIC-LLC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CHROMATIC-LLC/subscriptions","organizations_url":"https://api.github.com/users/CHROMATIC-LLC/orgs","repos_url":"https://api.github.com/users/CHROMATIC-LLC/repos","events_url":"https://api.github.com/users/CHROMATIC-LLC/events{/privacy}","received_events_url":"https://api.github.com/users/CHROMATIC-LLC/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CHROMATIC-LLC/recurly","description":"Recurly Drupal module mirror.","fork":false,"url":"https://api.github.com/repos/CHROMATIC-LLC/recurly","forks_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/forks","keys_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/teams","hooks_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/hooks","issue_events_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/issues/events{/number}","events_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/events","assignees_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/assignees{/user}","branches_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/branches{/branch}","tags_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/tags","blobs_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/git/refs{/sha}","trees_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/statuses/{sha}","languages_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/languages","stargazers_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/stargazers","contributors_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/contributors","subscribers_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/subscribers","subscription_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/subscription","commits_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/commits{/sha}","git_commits_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/git/commits{/sha}","comments_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/comments{/number}","issue_comment_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/issues/comments{/number}","contents_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/contents/{+path}","compare_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/merges","archive_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/downloads","issues_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/issues{/number}","pulls_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/pulls{/number}","milestones_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/milestones{/number}","notifications_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/labels{/name}","releases_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/releases{/id}","deployments_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/deployments","created_at":"2015-12-28T20:29:40Z","updated_at":"2016-01-13T01:18:03Z","pushed_at":"2016-02-01T22:03:55Z","git_url":"git://github.com/CHROMATIC-LLC/recurly.git","ssh_url":"git@github.com:CHROMATIC-LLC/recurly.git","clone_url":"https://github.com/CHROMATIC-LLC/recurly.git","svn_url":"https://github.com/CHROMATIC-LLC/recurly","homepage":"https://www.drupal.org/project/recurly","size":534,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":8,"forks":1,"open_issues":8,"watchers":0,"default_branch":"8.x-1.x"}},"base":{"label":"CHROMATIC-LLC:8.x-1.x","ref":"8.x-1.x","sha":"0fdf60e65ed332652d83355a3555125750ae0826","user":{"login":"CHROMATIC-LLC","id":852809,"avatar_url":"https://avatars.githubusercontent.com/u/852809?v=3","gravatar_id":"","url":"https://api.github.com/users/CHROMATIC-LLC","html_url":"https://github.com/CHROMATIC-LLC","followers_url":"https://api.github.com/users/CHROMATIC-LLC/followers","following_url":"https://api.github.com/users/CHROMATIC-LLC/following{/other_user}","gists_url":"https://api.github.com/users/CHROMATIC-LLC/gists{/gist_id}","starred_url":"https://api.github.com/users/CHROMATIC-LLC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CHROMATIC-LLC/subscriptions","organizations_url":"https://api.github.com/users/CHROMATIC-LLC/orgs","repos_url":"https://api.github.com/users/CHROMATIC-LLC/repos","events_url":"https://api.github.com/users/CHROMATIC-LLC/events{/privacy}","received_events_url":"https://api.github.com/users/CHROMATIC-LLC/received_events","type":"Organization","site_admin":false},"repo":{"id":48711064,"name":"recurly","full_name":"CHROMATIC-LLC/recurly","owner":{"login":"CHROMATIC-LLC","id":852809,"avatar_url":"https://avatars.githubusercontent.com/u/852809?v=3","gravatar_id":"","url":"https://api.github.com/users/CHROMATIC-LLC","html_url":"https://github.com/CHROMATIC-LLC","followers_url":"https://api.github.com/users/CHROMATIC-LLC/followers","following_url":"https://api.github.com/users/CHROMATIC-LLC/following{/other_user}","gists_url":"https://api.github.com/users/CHROMATIC-LLC/gists{/gist_id}","starred_url":"https://api.github.com/users/CHROMATIC-LLC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CHROMATIC-LLC/subscriptions","organizations_url":"https://api.github.com/users/CHROMATIC-LLC/orgs","repos_url":"https://api.github.com/users/CHROMATIC-LLC/repos","events_url":"https://api.github.com/users/CHROMATIC-LLC/events{/privacy}","received_events_url":"https://api.github.com/users/CHROMATIC-LLC/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CHROMATIC-LLC/recurly","description":"Recurly Drupal module mirror.","fork":false,"url":"https://api.github.com/repos/CHROMATIC-LLC/recurly","forks_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/forks","keys_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/teams","hooks_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/hooks","issue_events_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/issues/events{/number}","events_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/events","assignees_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/assignees{/user}","branches_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/branches{/branch}","tags_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/tags","blobs_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/git/refs{/sha}","trees_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/statuses/{sha}","languages_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/languages","stargazers_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/stargazers","contributors_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/contributors","subscribers_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/subscribers","subscription_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/subscription","commits_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/commits{/sha}","git_commits_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/git/commits{/sha}","comments_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/comments{/number}","issue_comment_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/issues/comments{/number}","contents_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/contents/{+path}","compare_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/merges","archive_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/downloads","issues_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/issues{/number}","pulls_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/pulls{/number}","milestones_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/milestones{/number}","notifications_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/labels{/name}","releases_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/releases{/id}","deployments_url":"https://api.github.com/repos/CHROMATIC-LLC/recurly/deployments","created_at":"2015-12-28T20:29:40Z","updated_at":"2016-01-13T01:18:03Z","pushed_at":"2016-02-01T22:03:55Z","git_url":"git://github.com/CHROMATIC-LLC/recurly.git","ssh_url":"git@github.com:CHROMATIC-LLC/recurly.git","clone_url":"https://github.com/CHROMATIC-LLC/recurly.git","svn_url":"https://github.com/CHROMATIC-LLC/recurly","homepage":"https://www.drupal.org/project/recurly","size":534,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":8,"forks":1,"open_issues":8,"watchers":0,"default_branch":"8.x-1.x"}},"_links":{"self":{"href":"https://api.github.com/repos/CHROMATIC-LLC/recurly/pulls/13"},"html":{"href":"https://github.com/CHROMATIC-LLC/recurly/pull/13"},"issue":{"href":"https://api.github.com/repos/CHROMATIC-LLC/recurly/issues/13"},"comments":{"href":"https://api.github.com/repos/CHROMATIC-LLC/recurly/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/CHROMATIC-LLC/recurly/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/CHROMATIC-LLC/recurly/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CHROMATIC-LLC/recurly/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/CHROMATIC-LLC/recurly/statuses/81894d708c01230d7eb3619b94850476778bdf49"}}}}