{"action":"closed","number":259,"pull_request":{"url":"https://api.github.com/repos/recurly/recurly-client-php/pulls/259","id":80297421,"html_url":"https://github.com/recurly/recurly-client-php/pull/259","diff_url":"https://github.com/recurly/recurly-client-php/pull/259.diff","patch_url":"https://github.com/recurly/recurly-client-php/pull/259.patch","issue_url":"https://api.github.com/repos/recurly/recurly-client-php/issues/259","number":259,"state":"closed","locked":false,"title":"Account Acquisition data","user":{"login":"drewish","id":68750,"avatar_url":"https://avatars.githubusercontent.com/u/68750?v=3","gravatar_id":"","url":"https://api.github.com/users/drewish","html_url":"https://github.com/drewish","followers_url":"https://api.github.com/users/drewish/followers","following_url":"https://api.github.com/users/drewish/following{/other_user}","gists_url":"https://api.github.com/users/drewish/gists{/gist_id}","starred_url":"https://api.github.com/users/drewish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drewish/subscriptions","organizations_url":"https://api.github.com/users/drewish/orgs","repos_url":"https://api.github.com/users/drewish/repos","events_url":"https://api.github.com/users/drewish/events{/privacy}","received_events_url":"https://api.github.com/users/drewish/received_events","type":"User","site_admin":false},"body":"Create:\r\n```php\r\n$account_code = 'pickles';\r\n\r\n// Happy path\r\n$acquisition = new Recurly_AccountAcquisition();\r\n$acquisition->account_code = $account_code;\r\n$acquisition->cost_in_cents = 1234;\r\n$acquisition->currency = 'USD';\r\n$acquisition->channel = 'paid_search';\r\n$acquisition->subchannel = 'and dip';\r\n$acquisition->campaign = 'asdf';\r\n$acquisition->create();\r\n\r\n// Sad path:\r\n$acquisition = new Recurly_AccountAcquisition();\r\n$acquisition->account_code = $account_code;\r\n$acquisition->cost_in_cents = -20;\r\n$acquisition->currency = 'USD';\r\n$acquisition->channel = 'wrong';\r\n$acquisition->subchannel = 'way to loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooog';\r\n$acquisition->campaign = 'super loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooog';\r\n$acquisition->create();\r\n```\r\n\r\nFetch:\r\n```php\r\nRecurly_AccountAcquisition::get($account_code);\r\n```\r\n\r\nDelete:\r\n```php\r\nRecurly_AccountAcquisition::deleteForAccount($account_code);\r\n```","created_at":"2016-08-05T19:49:21Z","updated_at":"2016-08-15T19:38:42Z","closed_at":"2016-08-15T19:38:41Z","merged_at":"2016-08-15T19:38:41Z","merge_commit_sha":"c08493c6c18d19725cd8fcfb02880055eefca5e8","assignee":{"login":"bhelx","id":185919,"avatar_url":"https://avatars.githubusercontent.com/u/185919?v=3","gravatar_id":"","url":"https://api.github.com/users/bhelx","html_url":"https://github.com/bhelx","followers_url":"https://api.github.com/users/bhelx/followers","following_url":"https://api.github.com/users/bhelx/following{/other_user}","gists_url":"https://api.github.com/users/bhelx/gists{/gist_id}","starred_url":"https://api.github.com/users/bhelx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhelx/subscriptions","organizations_url":"https://api.github.com/users/bhelx/orgs","repos_url":"https://api.github.com/users/bhelx/repos","events_url":"https://api.github.com/users/bhelx/events{/privacy}","received_events_url":"https://api.github.com/users/bhelx/received_events","type":"User","site_admin":false},"assignees":[{"login":"bhelx","id":185919,"avatar_url":"https://avatars.githubusercontent.com/u/185919?v=3","gravatar_id":"","url":"https://api.github.com/users/bhelx","html_url":"https://github.com/bhelx","followers_url":"https://api.github.com/users/bhelx/followers","following_url":"https://api.github.com/users/bhelx/following{/other_user}","gists_url":"https://api.github.com/users/bhelx/gists{/gist_id}","starred_url":"https://api.github.com/users/bhelx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhelx/subscriptions","organizations_url":"https://api.github.com/users/bhelx/orgs","repos_url":"https://api.github.com/users/bhelx/repos","events_url":"https://api.github.com/users/bhelx/events{/privacy}","received_events_url":"https://api.github.com/users/bhelx/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/recurly/recurly-client-php/pulls/259/commits","review_comments_url":"https://api.github.com/repos/recurly/recurly-client-php/pulls/259/comments","review_comment_url":"https://api.github.com/repos/recurly/recurly-client-php/pulls/comments{/number}","comments_url":"https://api.github.com/repos/recurly/recurly-client-php/issues/259/comments","statuses_url":"https://api.github.com/repos/recurly/recurly-client-php/statuses/2f34bcc671da057ad04e4b7a882e2ce714d95ff6","head":{"label":"recurly:account_acquisition","ref":"account_acquisition","sha":"2f34bcc671da057ad04e4b7a882e2ce714d95ff6","user":{"login":"recurly","id":144605,"avatar_url":"https://avatars.githubusercontent.com/u/144605?v=3","gravatar_id":"","url":"https://api.github.com/users/recurly","html_url":"https://github.com/recurly","followers_url":"https://api.github.com/users/recurly/followers","following_url":"https://api.github.com/users/recurly/following{/other_user}","gists_url":"https://api.github.com/users/recurly/gists{/gist_id}","starred_url":"https://api.github.com/users/recurly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/recurly/subscriptions","organizations_url":"https://api.github.com/users/recurly/orgs","repos_url":"https://api.github.com/users/recurly/repos","events_url":"https://api.github.com/users/recurly/events{/privacy}","received_events_url":"https://api.github.com/users/recurly/received_events","type":"Organization","site_admin":false},"repo":{"id":357644,"name":"recurly-client-php","full_name":"recurly/recurly-client-php","owner":{"login":"recurly","id":144605,"avatar_url":"https://avatars.githubusercontent.com/u/144605?v=3","gravatar_id":"","url":"https://api.github.com/users/recurly","html_url":"https://github.com/recurly","followers_url":"https://api.github.com/users/recurly/followers","following_url":"https://api.github.com/users/recurly/following{/other_user}","gists_url":"https://api.github.com/users/recurly/gists{/gist_id}","starred_url":"https://api.github.com/users/recurly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/recurly/subscriptions","organizations_url":"https://api.github.com/users/recurly/orgs","repos_url":"https://api.github.com/users/recurly/repos","events_url":"https://api.github.com/users/recurly/events{/privacy}","received_events_url":"https://api.github.com/users/recurly/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/recurly/recurly-client-php","description":"Recurly PHP Client","fork":false,"url":"https://api.github.com/repos/recurly/recurly-client-php","forks_url":"https://api.github.com/repos/recurly/recurly-client-php/forks","keys_url":"https://api.github.com/repos/recurly/recurly-client-php/keys{/key_id}","collaborators_url":"https://api.github.com/repos/recurly/recurly-client-php/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/recurly/recurly-client-php/teams","hooks_url":"https://api.github.com/repos/recurly/recurly-client-php/hooks","issue_events_url":"https://api.github.com/repos/recurly/recurly-client-php/issues/events{/number}","events_url":"https://api.github.com/repos/recurly/recurly-client-php/events","assignees_url":"https://api.github.com/repos/recurly/recurly-client-php/assignees{/user}","branches_url":"https://api.github.com/repos/recurly/recurly-client-php/branches{/branch}","tags_url":"https://api.github.com/repos/recurly/recurly-client-php/tags","blobs_url":"https://api.github.com/repos/recurly/recurly-client-php/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/recurly/recurly-client-php/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/recurly/recurly-client-php/git/refs{/sha}","trees_url":"https://api.github.com/repos/recurly/recurly-client-php/git/trees{/sha}","statuses_url":"https://api.github.com/repos/recurly/recurly-client-php/statuses/{sha}","languages_url":"https://api.github.com/repos/recurly/recurly-client-php/languages","stargazers_url":"https://api.github.com/repos/recurly/recurly-client-php/stargazers","contributors_url":"https://api.github.com/repos/recurly/recurly-client-php/contributors","subscribers_url":"https://api.github.com/repos/recurly/recurly-client-php/subscribers","subscription_url":"https://api.github.com/repos/recurly/recurly-client-php/subscription","commits_url":"https://api.github.com/repos/recurly/recurly-client-php/commits{/sha}","git_commits_url":"https://api.github.com/repos/recurly/recurly-client-php/git/commits{/sha}","comments_url":"https://api.github.com/repos/recurly/recurly-client-php/comments{/number}","issue_comment_url":"https://api.github.com/repos/recurly/recurly-client-php/issues/comments{/number}","contents_url":"https://api.github.com/repos/recurly/recurly-client-php/contents/{+path}","compare_url":"https://api.github.com/repos/recurly/recurly-client-php/compare/{base}...{head}","merges_url":"https://api.github.com/repos/recurly/recurly-client-php/merges","archive_url":"https://api.github.com/repos/recurly/recurly-client-php/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/recurly/recurly-client-php/downloads","issues_url":"https://api.github.com/repos/recurly/recurly-client-php/issues{/number}","pulls_url":"https://api.github.com/repos/recurly/recurly-client-php/pulls{/number}","milestones_url":"https://api.github.com/repos/recurly/recurly-client-php/milestones{/number}","notifications_url":"https://api.github.com/repos/recurly/recurly-client-php/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/recurly/recurly-client-php/labels{/name}","releases_url":"https://api.github.com/repos/recurly/recurly-client-php/releases{/id}","deployments_url":"https://api.github.com/repos/recurly/recurly-client-php/deployments","created_at":"2009-11-02T03:51:40Z","updated_at":"2016-08-11T04:58:51Z","pushed_at":"2016-08-15T19:38:42Z","git_url":"git://github.com/recurly/recurly-client-php.git","ssh_url":"git@github.com:recurly/recurly-client-php.git","clone_url":"https://github.com/recurly/recurly-client-php.git","svn_url":"https://github.com/recurly/recurly-client-php","homepage":"http://recurly.com","size":1709,"stargazers_count":111,"watchers_count":111,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":62,"mirror_url":null,"open_issues_count":29,"forks":62,"open_issues":29,"watchers":111,"default_branch":"master"}},"base":{"label":"recurly:api-2.4","ref":"api-2.4","sha":"dff5f63d90d97253156b898c97b7302c5207df90","user":{"login":"recurly","id":144605,"avatar_url":"https://avatars.githubusercontent.com/u/144605?v=3","gravatar_id":"","url":"https://api.github.com/users/recurly","html_url":"https://github.com/recurly","followers_url":"https://api.github.com/users/recurly/followers","following_url":"https://api.github.com/users/recurly/following{/other_user}","gists_url":"https://api.github.com/users/recurly/gists{/gist_id}","starred_url":"https://api.github.com/users/recurly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/recurly/subscriptions","organizations_url":"https://api.github.com/users/recurly/orgs","repos_url":"https://api.github.com/users/recurly/repos","events_url":"https://api.github.com/users/recurly/events{/privacy}","received_events_url":"https://api.github.com/users/recurly/received_events","type":"Organization","site_admin":false},"repo":{"id":357644,"name":"recurly-client-php","full_name":"recurly/recurly-client-php","owner":{"login":"recurly","id":144605,"avatar_url":"https://avatars.githubusercontent.com/u/144605?v=3","gravatar_id":"","url":"https://api.github.com/users/recurly","html_url":"https://github.com/recurly","followers_url":"https://api.github.com/users/recurly/followers","following_url":"https://api.github.com/users/recurly/following{/other_user}","gists_url":"https://api.github.com/users/recurly/gists{/gist_id}","starred_url":"https://api.github.com/users/recurly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/recurly/subscriptions","organizations_url":"https://api.github.com/users/recurly/orgs","repos_url":"https://api.github.com/users/recurly/repos","events_url":"https://api.github.com/users/recurly/events{/privacy}","received_events_url":"https://api.github.com/users/recurly/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/recurly/recurly-client-php","description":"Recurly PHP Client","fork":false,"url":"https://api.github.com/repos/recurly/recurly-client-php","forks_url":"https://api.github.com/repos/recurly/recurly-client-php/forks","keys_url":"https://api.github.com/repos/recurly/recurly-client-php/keys{/key_id}","collaborators_url":"https://api.github.com/repos/recurly/recurly-client-php/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/recurly/recurly-client-php/teams","hooks_url":"https://api.github.com/repos/recurly/recurly-client-php/hooks","issue_events_url":"https://api.github.com/repos/recurly/recurly-client-php/issues/events{/number}","events_url":"https://api.github.com/repos/recurly/recurly-client-php/events","assignees_url":"https://api.github.com/repos/recurly/recurly-client-php/assignees{/user}","branches_url":"https://api.github.com/repos/recurly/recurly-client-php/branches{/branch}","tags_url":"https://api.github.com/repos/recurly/recurly-client-php/tags","blobs_url":"https://api.github.com/repos/recurly/recurly-client-php/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/recurly/recurly-client-php/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/recurly/recurly-client-php/git/refs{/sha}","trees_url":"https://api.github.com/repos/recurly/recurly-client-php/git/trees{/sha}","statuses_url":"https://api.github.com/repos/recurly/recurly-client-php/statuses/{sha}","languages_url":"https://api.github.com/repos/recurly/recurly-client-php/languages","stargazers_url":"https://api.github.com/repos/recurly/recurly-client-php/stargazers","contributors_url":"https://api.github.com/repos/recurly/recurly-client-php/contributors","subscribers_url":"https://api.github.com/repos/recurly/recurly-client-php/subscribers","subscription_url":"https://api.github.com/repos/recurly/recurly-client-php/subscription","commits_url":"https://api.github.com/repos/recurly/recurly-client-php/commits{/sha}","git_commits_url":"https://api.github.com/repos/recurly/recurly-client-php/git/commits{/sha}","comments_url":"https://api.github.com/repos/recurly/recurly-client-php/comments{/number}","issue_comment_url":"https://api.github.com/repos/recurly/recurly-client-php/issues/comments{/number}","contents_url":"https://api.github.com/repos/recurly/recurly-client-php/contents/{+path}","compare_url":"https://api.github.com/repos/recurly/recurly-client-php/compare/{base}...{head}","merges_url":"https://api.github.com/repos/recurly/recurly-client-php/merges","archive_url":"https://api.github.com/repos/recurly/recurly-client-php/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/recurly/recurly-client-php/downloads","issues_url":"https://api.github.com/repos/recurly/recurly-client-php/issues{/number}","pulls_url":"https://api.github.com/repos/recurly/recurly-client-php/pulls{/number}","milestones_url":"https://api.github.com/repos/recurly/recurly-client-php/milestones{/number}","notifications_url":"https://api.github.com/repos/recurly/recurly-client-php/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/recurly/recurly-client-php/labels{/name}","releases_url":"https://api.github.com/repos/recurly/recurly-client-php/releases{/id}","deployments_url":"https://api.github.com/repos/recurly/recurly-client-php/deployments","created_at":"2009-11-02T03:51:40Z","updated_at":"2016-08-11T04:58:51Z","pushed_at":"2016-08-15T19:38:42Z","git_url":"git://github.com/recurly/recurly-client-php.git","ssh_url":"git@github.com:recurly/recurly-client-php.git","clone_url":"https://github.com/recurly/recurly-client-php.git","svn_url":"https://github.com/recurly/recurly-client-php","homepage":"http://recurly.com","size":1709,"stargazers_count":111,"watchers_count":111,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":62,"mirror_url":null,"open_issues_count":29,"forks":62,"open_issues":29,"watchers":111,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/recurly/recurly-client-php/pulls/259"},"html":{"href":"https://github.com/recurly/recurly-client-php/pull/259"},"issue":{"href":"https://api.github.com/repos/recurly/recurly-client-php/issues/259"},"comments":{"href":"https://api.github.com/repos/recurly/recurly-client-php/issues/259/comments"},"review_comments":{"href":"https://api.github.com/repos/recurly/recurly-client-php/pulls/259/comments"},"review_comment":{"href":"https://api.github.com/repos/recurly/recurly-client-php/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/recurly/recurly-client-php/pulls/259/commits"},"statuses":{"href":"https://api.github.com/repos/recurly/recurly-client-php/statuses/2f34bcc671da057ad04e4b7a882e2ce714d95ff6"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"bhelx","id":185919,"avatar_url":"https://avatars.githubusercontent.com/u/185919?v=3","gravatar_id":"","url":"https://api.github.com/users/bhelx","html_url":"https://github.com/bhelx","followers_url":"https://api.github.com/users/bhelx/followers","following_url":"https://api.github.com/users/bhelx/following{/other_user}","gists_url":"https://api.github.com/users/bhelx/gists{/gist_id}","starred_url":"https://api.github.com/users/bhelx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhelx/subscriptions","organizations_url":"https://api.github.com/users/bhelx/orgs","repos_url":"https://api.github.com/users/bhelx/repos","events_url":"https://api.github.com/users/bhelx/events{/privacy}","received_events_url":"https://api.github.com/users/bhelx/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":1,"additions":129,"deletions":0,"changed_files":8}}
{"actor":{"display_login":"bhelx"}}