{"action":"created","comment":{"url":"https://api.github.com/repos/sima-land/delivery-php-calculator/pulls/comments/88837186","pull_request_review_id":9397127,"id":88837186,"diff_hunk":"@@ -1,2 +1,31 @@\n-# delivery-php-calculator\n-Класс для расчета стоимости платной доставки ООО Сима-Ленд\n+# Расчет стоимости доставки sima-land.ru\n+\n+Основным способом расчета стоимость доставки является использование API\n+https://www.sima-land.ru/api/v3/help/#Стоимость-доставки\n+\n+Однако, в ряде случаев, предпочтительно расчитывать стоимость досавки без \n+использования API. Например:\n+\n+- очень большое количество запросов к API, которое не укладывается в лимиты\n+- нужно показывать стомость доставки прямо в каталоге и нет возможности ждать ответа API\n+\n+В данных случаях можно использовать данный класс, который позволить вычислять \n+стоимость доставки \"на лету\".\n+\n+Пример:\n+\n+```php\n+\n+$calc = new Calculator()\n+if ($calc->calculate($settlement, $items)) {\n+    echo \"Стоимость доставки \" . $calc->getResult()\n+} else {\n+    echo \"Ошибка при расчете: \" . $calc->getError();","path":"README.md","position":25,"original_position":25,"commit_id":"e3d21ca134601b4f5f5e9b89666d686f38458455","original_commit_id":"e3d21ca134601b4f5f5e9b89666d686f38458455","user":{"login":"pahanini","id":898663,"avatar_url":"https://avatars.githubusercontent.com/u/898663?v=3","gravatar_id":"","url":"https://api.github.com/users/pahanini","html_url":"https://github.com/pahanini","followers_url":"https://api.github.com/users/pahanini/followers","following_url":"https://api.github.com/users/pahanini/following{/other_user}","gists_url":"https://api.github.com/users/pahanini/gists{/gist_id}","starred_url":"https://api.github.com/users/pahanini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pahanini/subscriptions","organizations_url":"https://api.github.com/users/pahanini/orgs","repos_url":"https://api.github.com/users/pahanini/repos","events_url":"https://api.github.com/users/pahanini/events{/privacy}","received_events_url":"https://api.github.com/users/pahanini/received_events","type":"User","site_admin":false},"body":"нет. ошибка доки.","created_at":"2016-11-21T06:41:42Z","updated_at":"2016-11-21T06:41:42Z","html_url":"https://github.com/sima-land/delivery-php-calculator/pull/1#discussion_r88837186","pull_request_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/sima-land/delivery-php-calculator/pulls/comments/88837186"},"html":{"href":"https://github.com/sima-land/delivery-php-calculator/pull/1#discussion_r88837186"},"pull_request":{"href":"https://api.github.com/repos/sima-land/delivery-php-calculator/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/sima-land/delivery-php-calculator/pulls/1","id":94316924,"html_url":"https://github.com/sima-land/delivery-php-calculator/pull/1","diff_url":"https://github.com/sima-land/delivery-php-calculator/pull/1.diff","patch_url":"https://github.com/sima-land/delivery-php-calculator/pull/1.patch","issue_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/issues/1","number":1,"state":"open","locked":false,"title":"rc","user":{"login":"pahanini","id":898663,"avatar_url":"https://avatars.githubusercontent.com/u/898663?v=3","gravatar_id":"","url":"https://api.github.com/users/pahanini","html_url":"https://github.com/pahanini","followers_url":"https://api.github.com/users/pahanini/followers","following_url":"https://api.github.com/users/pahanini/following{/other_user}","gists_url":"https://api.github.com/users/pahanini/gists{/gist_id}","starred_url":"https://api.github.com/users/pahanini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pahanini/subscriptions","organizations_url":"https://api.github.com/users/pahanini/orgs","repos_url":"https://api.github.com/users/pahanini/repos","events_url":"https://api.github.com/users/pahanini/events{/privacy}","received_events_url":"https://api.github.com/users/pahanini/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-18T07:49:30Z","updated_at":"2016-11-21T06:41:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c80b3a9a5a780f21b42b03a06ed293bd33a25840","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/pulls/1/commits","review_comments_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/pulls/1/comments","review_comment_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/issues/1/comments","statuses_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/statuses/e3d21ca134601b4f5f5e9b89666d686f38458455","head":{"label":"sima-land:first-version","ref":"first-version","sha":"e3d21ca134601b4f5f5e9b89666d686f38458455","user":{"login":"sima-land","id":12048422,"avatar_url":"https://avatars.githubusercontent.com/u/12048422?v=3","gravatar_id":"","url":"https://api.github.com/users/sima-land","html_url":"https://github.com/sima-land","followers_url":"https://api.github.com/users/sima-land/followers","following_url":"https://api.github.com/users/sima-land/following{/other_user}","gists_url":"https://api.github.com/users/sima-land/gists{/gist_id}","starred_url":"https://api.github.com/users/sima-land/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sima-land/subscriptions","organizations_url":"https://api.github.com/users/sima-land/orgs","repos_url":"https://api.github.com/users/sima-land/repos","events_url":"https://api.github.com/users/sima-land/events{/privacy}","received_events_url":"https://api.github.com/users/sima-land/received_events","type":"Organization","site_admin":false},"repo":{"id":73701387,"name":"delivery-php-calculator","full_name":"sima-land/delivery-php-calculator","owner":{"login":"sima-land","id":12048422,"avatar_url":"https://avatars.githubusercontent.com/u/12048422?v=3","gravatar_id":"","url":"https://api.github.com/users/sima-land","html_url":"https://github.com/sima-land","followers_url":"https://api.github.com/users/sima-land/followers","following_url":"https://api.github.com/users/sima-land/following{/other_user}","gists_url":"https://api.github.com/users/sima-land/gists{/gist_id}","starred_url":"https://api.github.com/users/sima-land/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sima-land/subscriptions","organizations_url":"https://api.github.com/users/sima-land/orgs","repos_url":"https://api.github.com/users/sima-land/repos","events_url":"https://api.github.com/users/sima-land/events{/privacy}","received_events_url":"https://api.github.com/users/sima-land/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sima-land/delivery-php-calculator","description":"Класс для расчета стоимости платной доставки ООО Сима-Ленд","fork":false,"url":"https://api.github.com/repos/sima-land/delivery-php-calculator","forks_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/forks","keys_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/teams","hooks_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/hooks","issue_events_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/issues/events{/number}","events_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/events","assignees_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/assignees{/user}","branches_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/branches{/branch}","tags_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/tags","blobs_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/git/refs{/sha}","trees_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/statuses/{sha}","languages_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/languages","stargazers_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/stargazers","contributors_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/contributors","subscribers_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/subscribers","subscription_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/subscription","commits_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/commits{/sha}","git_commits_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/git/commits{/sha}","comments_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/comments{/number}","issue_comment_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/issues/comments{/number}","contents_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/contents/{+path}","compare_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/merges","archive_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/downloads","issues_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/issues{/number}","pulls_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/pulls{/number}","milestones_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/milestones{/number}","notifications_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/labels{/name}","releases_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/releases{/id}","deployments_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/deployments","created_at":"2016-11-14T12:12:48Z","updated_at":"2016-11-14T12:12:48Z","pushed_at":"2016-11-19T10:45:50Z","git_url":"git://github.com/sima-land/delivery-php-calculator.git","ssh_url":"git@github.com:sima-land/delivery-php-calculator.git","clone_url":"https://github.com/sima-land/delivery-php-calculator.git","svn_url":"https://github.com/sima-land/delivery-php-calculator","homepage":null,"size":10,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"sima-land:master","ref":"master","sha":"bc55c41106a670e5053838bf508114b4997b2382","user":{"login":"sima-land","id":12048422,"avatar_url":"https://avatars.githubusercontent.com/u/12048422?v=3","gravatar_id":"","url":"https://api.github.com/users/sima-land","html_url":"https://github.com/sima-land","followers_url":"https://api.github.com/users/sima-land/followers","following_url":"https://api.github.com/users/sima-land/following{/other_user}","gists_url":"https://api.github.com/users/sima-land/gists{/gist_id}","starred_url":"https://api.github.com/users/sima-land/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sima-land/subscriptions","organizations_url":"https://api.github.com/users/sima-land/orgs","repos_url":"https://api.github.com/users/sima-land/repos","events_url":"https://api.github.com/users/sima-land/events{/privacy}","received_events_url":"https://api.github.com/users/sima-land/received_events","type":"Organization","site_admin":false},"repo":{"id":73701387,"name":"delivery-php-calculator","full_name":"sima-land/delivery-php-calculator","owner":{"login":"sima-land","id":12048422,"avatar_url":"https://avatars.githubusercontent.com/u/12048422?v=3","gravatar_id":"","url":"https://api.github.com/users/sima-land","html_url":"https://github.com/sima-land","followers_url":"https://api.github.com/users/sima-land/followers","following_url":"https://api.github.com/users/sima-land/following{/other_user}","gists_url":"https://api.github.com/users/sima-land/gists{/gist_id}","starred_url":"https://api.github.com/users/sima-land/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sima-land/subscriptions","organizations_url":"https://api.github.com/users/sima-land/orgs","repos_url":"https://api.github.com/users/sima-land/repos","events_url":"https://api.github.com/users/sima-land/events{/privacy}","received_events_url":"https://api.github.com/users/sima-land/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sima-land/delivery-php-calculator","description":"Класс для расчета стоимости платной доставки ООО Сима-Ленд","fork":false,"url":"https://api.github.com/repos/sima-land/delivery-php-calculator","forks_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/forks","keys_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/teams","hooks_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/hooks","issue_events_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/issues/events{/number}","events_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/events","assignees_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/assignees{/user}","branches_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/branches{/branch}","tags_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/tags","blobs_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/git/refs{/sha}","trees_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/statuses/{sha}","languages_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/languages","stargazers_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/stargazers","contributors_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/contributors","subscribers_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/subscribers","subscription_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/subscription","commits_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/commits{/sha}","git_commits_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/git/commits{/sha}","comments_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/comments{/number}","issue_comment_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/issues/comments{/number}","contents_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/contents/{+path}","compare_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/merges","archive_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/downloads","issues_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/issues{/number}","pulls_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/pulls{/number}","milestones_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/milestones{/number}","notifications_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/labels{/name}","releases_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/releases{/id}","deployments_url":"https://api.github.com/repos/sima-land/delivery-php-calculator/deployments","created_at":"2016-11-14T12:12:48Z","updated_at":"2016-11-14T12:12:48Z","pushed_at":"2016-11-19T10:45:50Z","git_url":"git://github.com/sima-land/delivery-php-calculator.git","ssh_url":"git@github.com:sima-land/delivery-php-calculator.git","clone_url":"https://github.com/sima-land/delivery-php-calculator.git","svn_url":"https://github.com/sima-land/delivery-php-calculator","homepage":null,"size":10,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sima-land/delivery-php-calculator/pulls/1"},"html":{"href":"https://github.com/sima-land/delivery-php-calculator/pull/1"},"issue":{"href":"https://api.github.com/repos/sima-land/delivery-php-calculator/issues/1"},"comments":{"href":"https://api.github.com/repos/sima-land/delivery-php-calculator/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/sima-land/delivery-php-calculator/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/sima-land/delivery-php-calculator/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sima-land/delivery-php-calculator/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/sima-land/delivery-php-calculator/statuses/e3d21ca134601b4f5f5e9b89666d686f38458455"}}}}
{"actor":{"display_login":"pahanini"}}