{"action":"created","comment":{"url":"https://api.github.com/repos/LoyaltyFactory/sdk-php/pulls/comments/138288832","pull_request_review_id":62061904,"id":138288832,"diff_hunk":"@@ -0,0 +1,58 @@\n+<?php\n+\n+namespace Easir\\SDK\\Request;\n+\n+use Easir\\SDK\\Exception\\RequestException;\n+use Easir\\SDK\\Request;\n+use Easir\\SDK\\Request\\Model as RequestModel;\n+use Easir\\SDK\\Model\\Attachment;\n+\n+class AddLeadFile extends Request\n+{\n+    /**\n+     * @var string\n+     */\n+    protected $url = '/leads/%s/files';\n+    /**\n+     * @var string\n+     */\n+    public $method = 'POST';\n+    /**\n+     * @var string\n+     */\n+    public $responseClass = Attachment::class;\n+    /**\n+     * @var string\n+     */\n+    protected $modelClass = RequestModel\\AddLeadFile::class;\n+    /**\n+     * @var string[]\n+     */\n+    public $options = ['header' => ['Content-Type' => 'multipart/form-data']];\n+\n+    /**\n+     * @param RequestModel $model","path":"src/Request/AddLeadFile.php","position":34,"original_position":34,"commit_id":"b1cb0b7e3146b66f5aaff6eff56ad8b0a5e0e200","original_commit_id":"b1cb0b7e3146b66f5aaff6eff56ad8b0a5e0e200","user":{"login":"mortenhauberg","id":3660049,"avatar_url":"https://avatars0.githubusercontent.com/u/3660049?v=4","gravatar_id":"","url":"https://api.github.com/users/mortenhauberg","html_url":"https://github.com/mortenhauberg","followers_url":"https://api.github.com/users/mortenhauberg/followers","following_url":"https://api.github.com/users/mortenhauberg/following{/other_user}","gists_url":"https://api.github.com/users/mortenhauberg/gists{/gist_id}","starred_url":"https://api.github.com/users/mortenhauberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mortenhauberg/subscriptions","organizations_url":"https://api.github.com/users/mortenhauberg/orgs","repos_url":"https://api.github.com/users/mortenhauberg/repos","events_url":"https://api.github.com/users/mortenhauberg/events{/privacy}","received_events_url":"https://api.github.com/users/mortenhauberg/received_events","type":"User","site_admin":false},"body":"Sure :) There's a `null` default value","created_at":"2017-09-12T08:56:11Z","updated_at":"2017-09-12T08:56:11Z","html_url":"https://github.com/LoyaltyFactory/sdk-php/pull/14#discussion_r138288832","pull_request_url":"https://api.github.com/repos/LoyaltyFactory/sdk-php/pulls/14","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/LoyaltyFactory/sdk-php/pulls/comments/138288832"},"html":{"href":"https://github.com/LoyaltyFactory/sdk-php/pull/14#discussion_r138288832"},"pull_request":{"href":"https://api.github.com/repos/LoyaltyFactory/sdk-php/pulls/14"}},"in_reply_to_id":138265030},"pull_request":{"url":"https://api.github.com/repos/LoyaltyFactory/sdk-php/pulls/14","id":140258027,"html_url":"https://github.com/LoyaltyFactory/sdk-php/pull/14","diff_url":"https://github.com/LoyaltyFactory/sdk-php/pull/14.diff","patch_url":"https://github.com/LoyaltyFactory/sdk-php/pull/14.patch","issue_url":"https://api.github.com/repos/LoyaltyFactory/sdk-php/issues/14","number":14,"state":"open","locked":false,"title":"EZR-4556: Add Files to Leads","user":{"login":"fatebinder","id":25077821,"avatar_url":"https://avatars1.githubusercontent.com/u/25077821?v=4","gravatar_id":"","url":"https://api.github.com/users/fatebinder","html_url":"https://github.com/fatebinder","followers_url":"https://api.github.com/users/fatebinder/followers","following_url":"https://api.github.com/users/fatebinder/following{/other_user}","gists_url":"https://api.github.com/users/fatebinder/gists{/gist_id}","starred_url":"https://api.github.com/users/fatebinder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fatebinder/subscriptions","organizations_url":"https://api.github.com/users/fatebinder/orgs","repos_url":"https://api.github.com/users/fatebinder/repos","events_url":"https://api.github.com/users/fatebinder/events{/privacy}","received_events_url":"https://api.github.com/users/fatebinder/received_events","type":"User","site_admin":false},"body":"Added support to add/remove Files for Leads","created_at":"2017-09-11T06:26:17Z","updated_at":"2017-09-12T08:56:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"760bf23fe752140087fb051d2eb336643fb3976c","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/LoyaltyFactory/sdk-php/pulls/14/commits","review_comments_url":"https://api.github.com/repos/LoyaltyFactory/sdk-php/pulls/14/comments","review_comment_url":"https://api.github.com/repos/LoyaltyFactory/sdk-php/pulls/comments{/number}","comments_url":"https://api.github.com/repos/LoyaltyFactory/sdk-php/issues/14/comments","statuses_url":"https://api.github.com/repos/LoyaltyFactory/sdk-php/statuses/b1cb0b7e3146b66f5aaff6eff56ad8b0a5e0e200","head":{"label":"fatebinder:feature/EZR-4556_add-files-to-leads","ref":"feature/EZR-4556_add-files-to-leads","sha":"b1cb0b7e3146b66f5aaff6eff56ad8b0a5e0e200","user":{"login":"fatebinder","id":25077821,"avatar_url":"https://avatars1.githubusercontent.com/u/25077821?v=4","gravatar_id":"","url":"https://api.github.com/users/fatebinder","html_url":"https://github.com/fatebinder","followers_url":"https://api.github.com/users/fatebinder/followers","following_url":"https://api.github.com/users/fatebinder/following{/other_user}","gists_url":"https://api.github.com/users/fatebinder/gists{/gist_id}","starred_url":"https://api.github.com/users/fatebinder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fatebinder/subscriptions","organizations_url":"https://api.github.com/users/fatebinder/orgs","repos_url":"https://api.github.com/users/fatebinder/repos","events_url":"https://api.github.com/users/fatebinder/events{/privacy}","received_events_url":"https://api.github.com/users/fatebinder/received_events","type":"User","site_admin":false},"repo":{"id":85685055,"name":"sdk-php","full_name":"fatebinder/sdk-php","owner":{"login":"fatebinder","id":25077821,"avatar_url":"https://avatars1.githubusercontent.com/u/25077821?v=4","gravatar_id":"","url":"https://api.github.com/users/fatebinder","html_url":"https://github.com/fatebinder","followers_url":"https://api.github.com/users/fatebinder/followers","following_url":"https://api.github.com/users/fatebinder/following{/other_user}","gists_url":"https://api.github.com/users/fatebinder/gists{/gist_id}","starred_url":"https://api.github.com/users/fatebinder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fatebinder/subscriptions","organizations_url":"https://api.github.com/users/fatebinder/orgs","repos_url":"https://api.github.com/users/fatebinder/repos","events_url":"https://api.github.com/users/fatebinder/events{/privacy}","received_events_url":"https://api.github.com/users/fatebinder/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fatebinder/sdk-php","description":null,"fork":true,"url":"https://api.github.com/repos/fatebinder/sdk-php","forks_url":"https://api.github.com/repos/fatebinder/sdk-php/forks","keys_url":"https://api.github.com/repos/fatebinder/sdk-php/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fatebinder/sdk-php/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fatebinder/sdk-php/teams","hooks_url":"https://api.github.com/repos/fatebinder/sdk-php/hooks","issue_events_url":"https://api.github.com/repos/fatebinder/sdk-php/issues/events{/number}","events_url":"https://api.github.com/repos/fatebinder/sdk-php/events","assignees_url":"https://api.github.com/repos/fatebinder/sdk-php/assignees{/user}","branches_url":"https://api.github.com/repos/fatebinder/sdk-php/branches{/branch}","tags_url":"https://api.github.com/repos/fatebinder/sdk-php/tags","blobs_url":"https://api.github.com/repos/fatebinder/sdk-php/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fatebinder/sdk-php/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fatebinder/sdk-php/git/refs{/sha}","trees_url":"https://api.github.com/repos/fatebinder/sdk-php/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fatebinder/sdk-php/statuses/{sha}","languages_url":"https://api.github.com/repos/fatebinder/sdk-php/languages","stargazers_url":"https://api.github.com/repos/fatebinder/sdk-php/stargazers","contributors_url":"https://api.github.com/repos/fatebinder/sdk-php/contributors","subscribers_url":"https://api.github.com/repos/fatebinder/sdk-php/subscribers","subscription_url":"https://api.github.com/repos/fatebinder/sdk-php/subscription","commits_url":"https://api.github.com/repos/fatebinder/sdk-php/commits{/sha}","git_commits_url":"https://api.github.com/repos/fatebinder/sdk-php/git/commits{/sha}","comments_url":"https://api.github.com/repos/fatebinder/sdk-php/comments{/number}","issue_comment_url":"https://api.github.com/repos/fatebinder/sdk-php/issues/comments{/number}","contents_url":"https://api.github.com/repos/fatebinder/sdk-php/contents/{+path}","compare_url":"https://api.github.com/repos/fatebinder/sdk-php/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fatebinder/sdk-php/merges","archive_url":"https://api.github.com/repos/fatebinder/sdk-php/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fatebinder/sdk-php/downloads","issues_url":"https://api.github.com/repos/fatebinder/sdk-php/issues{/number}","pulls_url":"https://api.github.com/repos/fatebinder/sdk-php/pulls{/number}","milestones_url":"https://api.github.com/repos/fatebinder/sdk-php/milestones{/number}","notifications_url":"https://api.github.com/repos/fatebinder/sdk-php/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fatebinder/sdk-php/labels{/name}","releases_url":"https://api.github.com/repos/fatebinder/sdk-php/releases{/id}","deployments_url":"https://api.github.com/repos/fatebinder/sdk-php/deployments","created_at":"2017-03-21T09:50:57Z","updated_at":"2017-03-21T09:50:59Z","pushed_at":"2017-09-11T06:25:24Z","git_url":"git://github.com/fatebinder/sdk-php.git","ssh_url":"git@github.com:fatebinder/sdk-php.git","clone_url":"https://github.com/fatebinder/sdk-php.git","svn_url":"https://github.com/fatebinder/sdk-php","homepage":null,"size":160,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"LoyaltyFactory:develop","ref":"develop","sha":"d3f5781060d1c25b81bb46c81d45d544e7765da4","user":{"login":"LoyaltyFactory","id":18306227,"avatar_url":"https://avatars0.githubusercontent.com/u/18306227?v=4","gravatar_id":"","url":"https://api.github.com/users/LoyaltyFactory","html_url":"https://github.com/LoyaltyFactory","followers_url":"https://api.github.com/users/LoyaltyFactory/followers","following_url":"https://api.github.com/users/LoyaltyFactory/following{/other_user}","gists_url":"https://api.github.com/users/LoyaltyFactory/gists{/gist_id}","starred_url":"https://api.github.com/users/LoyaltyFactory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LoyaltyFactory/subscriptions","organizations_url":"https://api.github.com/users/LoyaltyFactory/orgs","repos_url":"https://api.github.com/users/LoyaltyFactory/repos","events_url":"https://api.github.com/users/LoyaltyFactory/events{/privacy}","received_events_url":"https://api.github.com/users/LoyaltyFactory/received_events","type":"Organization","site_admin":false},"repo":{"id":55670982,"name":"sdk-php","full_name":"LoyaltyFactory/sdk-php","owner":{"login":"LoyaltyFactory","id":18306227,"avatar_url":"https://avatars0.githubusercontent.com/u/18306227?v=4","gravatar_id":"","url":"https://api.github.com/users/LoyaltyFactory","html_url":"https://github.com/LoyaltyFactory","followers_url":"https://api.github.com/users/LoyaltyFactory/followers","following_url":"https://api.github.com/users/LoyaltyFactory/following{/other_user}","gists_url":"https://api.github.com/users/LoyaltyFactory/gists{/gist_id}","starred_url":"https://api.github.com/users/LoyaltyFactory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LoyaltyFactory/subscriptions","organizations_url":"https://api.github.com/users/LoyaltyFactory/orgs","repos_url":"https://api.github.com/users/LoyaltyFactory/repos","events_url":"https://api.github.com/users/LoyaltyFactory/events{/privacy}","received_events_url":"https://api.github.com/users/LoyaltyFactory/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/LoyaltyFactory/sdk-php","description":null,"fork":false,"url":"https://api.github.com/repos/LoyaltyFactory/sdk-php","forks_url":"https://api.github.com/repos/LoyaltyFactory/sdk-php/forks","keys_url":"https://api.github.com/repos/LoyaltyFactory/sdk-php/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LoyaltyFactory/sdk-php/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LoyaltyFactory/sdk-php/teams","hooks_url":"https://api.github.com/repos/LoyaltyFactory/sdk-php/hooks","issue_events_url":"https://api.github.com/repos/LoyaltyFactory/sdk-php/issues/events{/number}","events_url":"https://api.github.com/repos/LoyaltyFactory/sdk-php/events","assignees_url":"https://api.github.com/repos/LoyaltyFactory/sdk-php/assignees{/user}","branches_url":"https://api.github.com/repos/LoyaltyFactory/sdk-php/branches{/branch}","tags_url":"https://api.github.com/repos/LoyaltyFactory/sdk-php/tags","blobs_url":"https://api.github.com/repos/LoyaltyFactory/sdk-php/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LoyaltyFactory/sdk-php/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LoyaltyFactory/sdk-php/git/refs{/sha}","trees_url":"https://api.github.com/repos/LoyaltyFactory/sdk-php/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LoyaltyFactory/sdk-php/statuses/{sha}","languages_url":"https://api.github.com/repos/LoyaltyFactory/sdk-php/languages","stargazers_url":"https://api.github.com/repos/LoyaltyFactory/sdk-php/stargazers","contributors_url":"https://api.github.com/repos/LoyaltyFactory/sdk-php/contributors","subscribers_url":"https://api.github.com/repos/LoyaltyFactory/sdk-php/subscribers","subscription_url":"https://api.github.com/repos/LoyaltyFactory/sdk-php/subscription","commits_url":"https://api.github.com/repos/LoyaltyFactory/sdk-php/commits{/sha}","git_commits_url":"https://api.github.com/repos/LoyaltyFactory/sdk-php/git/commits{/sha}","comments_url":"https://api.github.com/repos/LoyaltyFactory/sdk-php/comments{/number}","issue_comment_url":"https://api.github.com/repos/LoyaltyFactory/sdk-php/issues/comments{/number}","contents_url":"https://api.github.com/repos/LoyaltyFactory/sdk-php/contents/{+path}","compare_url":"https://api.github.com/repos/LoyaltyFactory/sdk-php/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LoyaltyFactory/sdk-php/merges","archive_url":"https://api.github.com/repos/LoyaltyFactory/sdk-php/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LoyaltyFactory/sdk-php/downloads","issues_url":"https://api.github.com/repos/LoyaltyFactory/sdk-php/issues{/number}","pulls_url":"https://api.github.com/repos/LoyaltyFactory/sdk-php/pulls{/number}","milestones_url":"https://api.github.com/repos/LoyaltyFactory/sdk-php/milestones{/number}","notifications_url":"https://api.github.com/repos/LoyaltyFactory/sdk-php/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LoyaltyFactory/sdk-php/labels{/name}","releases_url":"https://api.github.com/repos/LoyaltyFactory/sdk-php/releases{/id}","deployments_url":"https://api.github.com/repos/LoyaltyFactory/sdk-php/deployments","created_at":"2016-04-07T06:53:44Z","updated_at":"2017-05-04T07:29:44Z","pushed_at":"2017-09-11T06:26:18Z","git_url":"git://github.com/LoyaltyFactory/sdk-php.git","ssh_url":"git@github.com:LoyaltyFactory/sdk-php.git","clone_url":"https://github.com/LoyaltyFactory/sdk-php.git","svn_url":"https://github.com/LoyaltyFactory/sdk-php","homepage":null,"size":156,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":1,"forks":4,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/LoyaltyFactory/sdk-php/pulls/14"},"html":{"href":"https://github.com/LoyaltyFactory/sdk-php/pull/14"},"issue":{"href":"https://api.github.com/repos/LoyaltyFactory/sdk-php/issues/14"},"comments":{"href":"https://api.github.com/repos/LoyaltyFactory/sdk-php/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/LoyaltyFactory/sdk-php/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/LoyaltyFactory/sdk-php/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/LoyaltyFactory/sdk-php/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/LoyaltyFactory/sdk-php/statuses/b1cb0b7e3146b66f5aaff6eff56ad8b0a5e0e200"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"mortenhauberg"}}